@operato/data-grist 0.2.22 → 0.2.30

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.
@@ -892,7 +892,7 @@
892
892
  ],
893
893
  "superclass": {
894
894
  "name": "LitElement",
895
- "package": "lit-element"
895
+ "package": "lit"
896
896
  },
897
897
  "tagName": "ox-empty-note",
898
898
  "customElement": true
@@ -1045,481 +1045,255 @@
1045
1045
  },
1046
1046
  {
1047
1047
  "kind": "javascript-module",
1048
- "path": "src/configure/column-builder.ts",
1048
+ "path": "src/data-card/data-card-field.ts",
1049
1049
  "declarations": [
1050
1050
  {
1051
- "kind": "function",
1052
- "name": "buildColumn",
1053
- "return": {
1054
- "type": {
1055
- "text": "ColumnConfig"
1051
+ "kind": "class",
1052
+ "description": "",
1053
+ "name": "DataCardField",
1054
+ "members": [
1055
+ {
1056
+ "kind": "field",
1057
+ "name": "align",
1058
+ "type": {
1059
+ "text": "string | undefined"
1060
+ },
1061
+ "attribute": "align"
1062
+ },
1063
+ {
1064
+ "kind": "field",
1065
+ "name": "record",
1066
+ "type": {
1067
+ "text": "GristRecord"
1068
+ },
1069
+ "default": "ZERO_RECORD",
1070
+ "attribute": "record"
1071
+ },
1072
+ {
1073
+ "kind": "field",
1074
+ "name": "column",
1075
+ "type": {
1076
+ "text": "ColumnConfig"
1077
+ },
1078
+ "default": "ZERO_COLUMN",
1079
+ "attribute": "column"
1080
+ },
1081
+ {
1082
+ "kind": "field",
1083
+ "name": "rowIndex",
1084
+ "type": {
1085
+ "text": "number"
1086
+ },
1087
+ "default": "-1",
1088
+ "attribute": "rowIndex"
1089
+ },
1090
+ {
1091
+ "kind": "field",
1092
+ "name": "value",
1093
+ "type": {
1094
+ "text": "object | undefined"
1095
+ },
1096
+ "attribute": "value"
1056
1097
  }
1057
- },
1058
- "parameters": [
1098
+ ],
1099
+ "attributes": [
1100
+ {
1101
+ "name": "align",
1102
+ "type": {
1103
+ "text": "string | undefined"
1104
+ },
1105
+ "fieldName": "align"
1106
+ },
1107
+ {
1108
+ "name": "record",
1109
+ "type": {
1110
+ "text": "GristRecord"
1111
+ },
1112
+ "default": "ZERO_RECORD",
1113
+ "resolveInitializer": {
1114
+ "module": "/src/configure/config-types"
1115
+ },
1116
+ "fieldName": "record"
1117
+ },
1059
1118
  {
1060
1119
  "name": "column",
1061
1120
  "type": {
1062
- "text": "any"
1063
- }
1121
+ "text": "ColumnConfig"
1122
+ },
1123
+ "default": "ZERO_COLUMN",
1124
+ "resolveInitializer": {
1125
+ "module": "/src/configure/config-types"
1126
+ },
1127
+ "fieldName": "column"
1128
+ },
1129
+ {
1130
+ "name": "rowIndex",
1131
+ "type": {
1132
+ "text": "number"
1133
+ },
1134
+ "default": "-1",
1135
+ "fieldName": "rowIndex"
1136
+ },
1137
+ {
1138
+ "name": "value",
1139
+ "type": {
1140
+ "text": "object | undefined"
1141
+ },
1142
+ "fieldName": "value"
1064
1143
  }
1065
- ]
1144
+ ],
1145
+ "superclass": {
1146
+ "name": "LitElement",
1147
+ "package": "lit"
1148
+ },
1149
+ "tagName": "ox-card-field",
1150
+ "customElement": true
1066
1151
  }
1067
1152
  ],
1068
1153
  "exports": [
1069
1154
  {
1070
1155
  "kind": "js",
1071
- "name": "buildColumn",
1156
+ "name": "DataCardField",
1072
1157
  "declaration": {
1073
- "name": "buildColumn",
1074
- "module": "src/configure/column-builder.ts"
1158
+ "name": "DataCardField",
1159
+ "module": "src/data-card/data-card-field.ts"
1160
+ }
1161
+ },
1162
+ {
1163
+ "kind": "custom-element-definition",
1164
+ "name": "ox-card-field",
1165
+ "declaration": {
1166
+ "name": "DataCardField",
1167
+ "module": "src/data-card/data-card-field.ts"
1075
1168
  }
1076
1169
  }
1077
1170
  ]
1078
1171
  },
1079
1172
  {
1080
1173
  "kind": "javascript-module",
1081
- "path": "src/configure/config-builder.ts",
1174
+ "path": "src/data-card/data-card-gutter-menu.ts",
1082
1175
  "declarations": [
1083
1176
  {
1084
- "kind": "function",
1085
- "name": "buildConfig",
1086
- "return": {
1087
- "type": {
1088
- "text": "GristConfig"
1089
- }
1090
- },
1091
- "parameters": [
1177
+ "kind": "class",
1178
+ "description": "",
1179
+ "name": "DataCardGutterMenu",
1180
+ "members": [
1092
1181
  {
1093
- "name": "config",
1182
+ "kind": "field",
1183
+ "name": "gutters",
1094
1184
  "type": {
1095
- "text": "any"
1185
+ "text": "ColumnConfig[]"
1186
+ },
1187
+ "attribute": "gutters"
1188
+ },
1189
+ {
1190
+ "kind": "field",
1191
+ "name": "rowIndex",
1192
+ "type": {
1193
+ "text": "number"
1194
+ },
1195
+ "attribute": "rowIndex"
1196
+ },
1197
+ {
1198
+ "kind": "field",
1199
+ "name": "record",
1200
+ "type": {
1201
+ "text": "GristRecord"
1202
+ },
1203
+ "attribute": "record"
1204
+ },
1205
+ {
1206
+ "kind": "field",
1207
+ "name": "icon",
1208
+ "type": {
1209
+ "text": "Element"
1096
1210
  }
1211
+ },
1212
+ {
1213
+ "kind": "method",
1214
+ "name": "menuRender"
1215
+ },
1216
+ {
1217
+ "kind": "method",
1218
+ "name": "open"
1097
1219
  }
1098
- ]
1220
+ ],
1221
+ "attributes": [
1222
+ {
1223
+ "name": "gutters",
1224
+ "type": {
1225
+ "text": "ColumnConfig[]"
1226
+ },
1227
+ "fieldName": "gutters"
1228
+ },
1229
+ {
1230
+ "name": "rowIndex",
1231
+ "type": {
1232
+ "text": "number"
1233
+ },
1234
+ "fieldName": "rowIndex"
1235
+ },
1236
+ {
1237
+ "name": "record",
1238
+ "type": {
1239
+ "text": "GristRecord"
1240
+ },
1241
+ "fieldName": "record"
1242
+ }
1243
+ ],
1244
+ "superclass": {
1245
+ "name": "LitElement",
1246
+ "package": "lit"
1247
+ },
1248
+ "tagName": "ox-card-gutter-menu",
1249
+ "customElement": true
1099
1250
  }
1100
1251
  ],
1101
1252
  "exports": [
1102
1253
  {
1103
- "kind": "js",
1104
- "name": "buildConfig",
1254
+ "kind": "custom-element-definition",
1255
+ "name": "ox-card-gutter-menu",
1105
1256
  "declaration": {
1106
- "name": "buildConfig",
1107
- "module": "src/configure/config-builder.ts"
1257
+ "name": "DataCardGutterMenu",
1258
+ "module": "src/data-card/data-card-gutter-menu.ts"
1108
1259
  }
1109
1260
  }
1110
1261
  ]
1111
1262
  },
1112
1263
  {
1113
1264
  "kind": "javascript-module",
1114
- "path": "src/configure/config-types.ts",
1265
+ "path": "src/data-card/data-card-gutter.ts",
1115
1266
  "declarations": [
1116
1267
  {
1117
- "kind": "function",
1118
- "name": "ZERO_CLASSIFIER",
1119
- "parameters": [
1120
- {
1121
- "name": "record"
1122
- },
1123
- {
1124
- "name": "rowIndex"
1125
- }
1126
- ]
1127
- },
1128
- {
1129
- "kind": "function",
1130
- "name": "ZERO_FIELD_RENDERER",
1131
- "parameters": [
1268
+ "kind": "class",
1269
+ "description": "",
1270
+ "name": "DataCardGutter",
1271
+ "members": [
1132
1272
  {
1133
- "name": "value"
1273
+ "kind": "field",
1274
+ "name": "align",
1275
+ "type": {
1276
+ "text": "string | undefined"
1277
+ },
1278
+ "attribute": "align"
1134
1279
  },
1135
1280
  {
1136
- "name": "column"
1281
+ "kind": "field",
1282
+ "name": "record",
1283
+ "type": {
1284
+ "text": "GristRecord"
1285
+ },
1286
+ "default": "ZERO_RECORD",
1287
+ "attribute": "record"
1137
1288
  },
1138
1289
  {
1139
- "name": "record"
1140
- },
1141
- {
1142
- "name": "rowIndex"
1143
- },
1144
- {
1145
- "name": "owner"
1146
- }
1147
- ]
1148
- },
1149
- {
1150
- "kind": "variable",
1151
- "name": "ZERO_THUMBNAIL_TEMPLATE",
1152
- "default": "function (record: GristRecord, rowIndex: number) {}"
1153
- },
1154
- {
1155
- "kind": "variable",
1156
- "name": "ZERO_EVENTHANDLERSET",
1157
- "type": {
1158
- "text": "GristEventHandlerSet"
1159
- },
1160
- "default": "{\n click: undefined,\n dblclick: undefined\n}"
1161
- },
1162
- {
1163
- "kind": "variable",
1164
- "name": "ZERO_COLUMNS",
1165
- "type": {
1166
- "text": "ColumnConfig[]"
1167
- },
1168
- "default": "[]"
1169
- },
1170
- {
1171
- "kind": "variable",
1172
- "name": "ZERO_GROUPS",
1173
- "type": {
1174
- "text": "GroupConfig[]"
1175
- },
1176
- "default": "[]"
1177
- },
1178
- {
1179
- "kind": "variable",
1180
- "name": "ZERO_TOTALS",
1181
- "type": {
1182
- "text": "[]"
1183
- },
1184
- "default": "[]"
1185
- },
1186
- {
1187
- "kind": "variable",
1188
- "name": "ZERO_LABEL",
1189
- "type": {
1190
- "text": "LabelConfig"
1191
- },
1192
- "default": "false"
1193
- },
1194
- {
1195
- "kind": "variable",
1196
- "name": "ZERO_COLUMN",
1197
- "type": {
1198
- "text": "ColumnConfig"
1199
- },
1200
- "default": "{\n type: '',\n name: '',\n header: {\n renderer: column => {}\n },\n record: {\n renderer: ZERO_FIELD_RENDERER,\n classifier: ZERO_CLASSIFIER,\n options: {}\n },\n handlers: ZERO_EVENTHANDLERSET,\n label: ZERO_LABEL\n}"
1201
- },
1202
- {
1203
- "kind": "variable",
1204
- "name": "ZERO_ROWS",
1205
- "type": {
1206
- "text": "RowsConfig"
1207
- },
1208
- "default": "{\n appendable: false,\n insertable: false,\n groups: ZERO_GROUPS,\n totals: ZERO_TOTALS,\n classifier: ZERO_CLASSIFIER,\n handlers: ZERO_EVENTHANDLERSET\n}"
1209
- },
1210
- {
1211
- "kind": "variable",
1212
- "name": "ZERO_LIST",
1213
- "type": {
1214
- "text": "ListConfig"
1215
- },
1216
- "default": "{\n thumbnail: ZERO_THUMBNAIL_TEMPLATE,\n fields: ['name', 'description', 'updatedAt'],\n details: []\n}"
1217
- },
1218
- {
1219
- "kind": "variable",
1220
- "name": "ZERO_CONFIG",
1221
- "type": {
1222
- "text": "GristConfig"
1223
- },
1224
- "default": "{\n columns: ZERO_COLUMNS,\n rows: ZERO_ROWS,\n list: ZERO_LIST\n}"
1225
- },
1226
- {
1227
- "kind": "variable",
1228
- "name": "ZERO_RECORD",
1229
- "type": {
1230
- "text": "GristRecord"
1231
- },
1232
- "default": "{}"
1233
- },
1234
- {
1235
- "kind": "variable",
1236
- "name": "ZERO_RECORDS",
1237
- "type": {
1238
- "text": "GristRecord[]"
1239
- },
1240
- "default": "[]"
1241
- },
1242
- {
1243
- "kind": "variable",
1244
- "name": "ZERO_DATA",
1245
- "type": {
1246
- "text": "GristData"
1247
- },
1248
- "default": "{\n records: ZERO_RECORDS\n}"
1249
- },
1250
- {
1251
- "kind": "variable",
1252
- "name": "ZERO_PAGINATION",
1253
- "type": {
1254
- "text": "object"
1255
- },
1256
- "default": "{\n page: 1,\n limit: 20,\n total: 0\n}"
1257
- }
1258
- ],
1259
- "exports": [
1260
- {
1261
- "kind": "js",
1262
- "name": "ZERO_CLASSIFIER",
1263
- "declaration": {
1264
- "name": "ZERO_CLASSIFIER",
1265
- "module": "src/configure/config-types.ts"
1266
- }
1267
- },
1268
- {
1269
- "kind": "js",
1270
- "name": "ZERO_FIELD_RENDERER",
1271
- "declaration": {
1272
- "name": "ZERO_FIELD_RENDERER",
1273
- "module": "src/configure/config-types.ts"
1274
- }
1275
- },
1276
- {
1277
- "kind": "js",
1278
- "name": "ZERO_THUMBNAIL_TEMPLATE",
1279
- "declaration": {
1280
- "name": "ZERO_THUMBNAIL_TEMPLATE",
1281
- "module": "src/configure/config-types.ts"
1282
- }
1283
- },
1284
- {
1285
- "kind": "js",
1286
- "name": "ZERO_EVENTHANDLERSET",
1287
- "declaration": {
1288
- "name": "ZERO_EVENTHANDLERSET",
1289
- "module": "src/configure/config-types.ts"
1290
- }
1291
- },
1292
- {
1293
- "kind": "js",
1294
- "name": "ZERO_COLUMNS",
1295
- "declaration": {
1296
- "name": "ZERO_COLUMNS",
1297
- "module": "src/configure/config-types.ts"
1298
- }
1299
- },
1300
- {
1301
- "kind": "js",
1302
- "name": "ZERO_GROUPS",
1303
- "declaration": {
1304
- "name": "ZERO_GROUPS",
1305
- "module": "src/configure/config-types.ts"
1306
- }
1307
- },
1308
- {
1309
- "kind": "js",
1310
- "name": "ZERO_TOTALS",
1311
- "declaration": {
1312
- "name": "ZERO_TOTALS",
1313
- "module": "src/configure/config-types.ts"
1314
- }
1315
- },
1316
- {
1317
- "kind": "js",
1318
- "name": "ZERO_LABEL",
1319
- "declaration": {
1320
- "name": "ZERO_LABEL",
1321
- "module": "src/configure/config-types.ts"
1322
- }
1323
- },
1324
- {
1325
- "kind": "js",
1326
- "name": "ZERO_COLUMN",
1327
- "declaration": {
1328
- "name": "ZERO_COLUMN",
1329
- "module": "src/configure/config-types.ts"
1330
- }
1331
- },
1332
- {
1333
- "kind": "js",
1334
- "name": "ZERO_ROWS",
1335
- "declaration": {
1336
- "name": "ZERO_ROWS",
1337
- "module": "src/configure/config-types.ts"
1338
- }
1339
- },
1340
- {
1341
- "kind": "js",
1342
- "name": "ZERO_LIST",
1343
- "declaration": {
1344
- "name": "ZERO_LIST",
1345
- "module": "src/configure/config-types.ts"
1346
- }
1347
- },
1348
- {
1349
- "kind": "js",
1350
- "name": "ZERO_CONFIG",
1351
- "declaration": {
1352
- "name": "ZERO_CONFIG",
1353
- "module": "src/configure/config-types.ts"
1354
- }
1355
- },
1356
- {
1357
- "kind": "js",
1358
- "name": "ZERO_RECORD",
1359
- "declaration": {
1360
- "name": "ZERO_RECORD",
1361
- "module": "src/configure/config-types.ts"
1362
- }
1363
- },
1364
- {
1365
- "kind": "js",
1366
- "name": "ZERO_RECORDS",
1367
- "declaration": {
1368
- "name": "ZERO_RECORDS",
1369
- "module": "src/configure/config-types.ts"
1370
- }
1371
- },
1372
- {
1373
- "kind": "js",
1374
- "name": "ZERO_DATA",
1375
- "declaration": {
1376
- "name": "ZERO_DATA",
1377
- "module": "src/configure/config-types.ts"
1378
- }
1379
- },
1380
- {
1381
- "kind": "js",
1382
- "name": "ZERO_PAGINATION",
1383
- "declaration": {
1384
- "name": "ZERO_PAGINATION",
1385
- "module": "src/configure/config-types.ts"
1386
- }
1387
- }
1388
- ]
1389
- },
1390
- {
1391
- "kind": "javascript-module",
1392
- "path": "src/configure/imex-option-builder.ts",
1393
- "declarations": [
1394
- {
1395
- "kind": "function",
1396
- "name": "buildImexOptions",
1397
- "return": {
1398
- "type": {
1399
- "text": "ImexConfig | undefined"
1400
- }
1401
- },
1402
- "parameters": [
1403
- {
1404
- "name": "imex",
1405
- "type": {
1406
- "text": "any"
1407
- }
1408
- }
1409
- ]
1410
- }
1411
- ],
1412
- "exports": [
1413
- {
1414
- "kind": "js",
1415
- "name": "buildImexOptions",
1416
- "declaration": {
1417
- "name": "buildImexOptions",
1418
- "module": "src/configure/imex-option-builder.ts"
1419
- }
1420
- }
1421
- ]
1422
- },
1423
- {
1424
- "kind": "javascript-module",
1425
- "path": "src/configure/list-option-builder.ts",
1426
- "declarations": [
1427
- {
1428
- "kind": "function",
1429
- "name": "buildListOptions",
1430
- "return": {
1431
- "type": {
1432
- "text": "ListConfig"
1433
- }
1434
- },
1435
- "parameters": [
1436
- {
1437
- "name": "list",
1438
- "type": {
1439
- "text": "ListConfig | undefined"
1440
- }
1441
- }
1442
- ]
1443
- }
1444
- ],
1445
- "exports": [
1446
- {
1447
- "kind": "js",
1448
- "name": "buildListOptions",
1449
- "declaration": {
1450
- "name": "buildListOptions",
1451
- "module": "src/configure/list-option-builder.ts"
1452
- }
1453
- }
1454
- ]
1455
- },
1456
- {
1457
- "kind": "javascript-module",
1458
- "path": "src/configure/rows-option-builder.ts",
1459
- "declarations": [
1460
- {
1461
- "kind": "function",
1462
- "name": "buildRowsOptions",
1463
- "return": {
1464
- "type": {
1465
- "text": "RowsConfig"
1466
- }
1467
- },
1468
- "parameters": [
1469
- {
1470
- "name": "rows",
1471
- "type": {
1472
- "text": "any"
1473
- }
1474
- }
1475
- ]
1476
- }
1477
- ],
1478
- "exports": [
1479
- {
1480
- "kind": "js",
1481
- "name": "buildRowsOptions",
1482
- "declaration": {
1483
- "name": "buildRowsOptions",
1484
- "module": "src/configure/rows-option-builder.ts"
1485
- }
1486
- }
1487
- ]
1488
- },
1489
- {
1490
- "kind": "javascript-module",
1491
- "path": "src/data-card/data-card-field.ts",
1492
- "declarations": [
1493
- {
1494
- "kind": "class",
1495
- "description": "",
1496
- "name": "DataCardField",
1497
- "members": [
1498
- {
1499
- "kind": "field",
1500
- "name": "align",
1501
- "type": {
1502
- "text": "string | undefined"
1503
- },
1504
- "attribute": "align"
1505
- },
1506
- {
1507
- "kind": "field",
1508
- "name": "record",
1509
- "type": {
1510
- "text": "GristRecord"
1511
- },
1512
- "default": "ZERO_RECORD",
1513
- "attribute": "record"
1514
- },
1515
- {
1516
- "kind": "field",
1517
- "name": "column",
1518
- "type": {
1519
- "text": "ColumnConfig"
1520
- },
1521
- "default": "ZERO_COLUMN",
1522
- "attribute": "column"
1290
+ "kind": "field",
1291
+ "name": "column",
1292
+ "type": {
1293
+ "text": "ColumnConfig"
1294
+ },
1295
+ "default": "ZERO_COLUMN",
1296
+ "attribute": "column"
1523
1297
  },
1524
1298
  {
1525
1299
  "kind": "field",
@@ -1537,6 +1311,10 @@
1537
1311
  "text": "object | undefined"
1538
1312
  },
1539
1313
  "attribute": "value"
1314
+ },
1315
+ {
1316
+ "kind": "field",
1317
+ "name": "isEditing"
1540
1318
  }
1541
1319
  ],
1542
1320
  "attributes": [
@@ -1589,136 +1367,242 @@
1589
1367
  "name": "LitElement",
1590
1368
  "package": "lit"
1591
1369
  },
1592
- "tagName": "ox-card-field",
1370
+ "tagName": "ox-card-gutter",
1593
1371
  "customElement": true
1594
1372
  }
1595
1373
  ],
1596
1374
  "exports": [
1597
- {
1598
- "kind": "js",
1599
- "name": "DataCardField",
1600
- "declaration": {
1601
- "name": "DataCardField",
1602
- "module": "src/data-card/data-card-field.ts"
1603
- }
1604
- },
1605
1375
  {
1606
1376
  "kind": "custom-element-definition",
1607
- "name": "ox-card-field",
1377
+ "name": "ox-card-gutter",
1608
1378
  "declaration": {
1609
- "name": "DataCardField",
1610
- "module": "src/data-card/data-card-field.ts"
1379
+ "name": "DataCardGutter",
1380
+ "module": "src/data-card/data-card-gutter.ts"
1611
1381
  }
1612
1382
  }
1613
1383
  ]
1614
1384
  },
1615
1385
  {
1616
1386
  "kind": "javascript-module",
1617
- "path": "src/data-card/data-card-gutter-menu.ts",
1387
+ "path": "src/data-card/data-card.ts",
1618
1388
  "declarations": [
1619
1389
  {
1620
1390
  "kind": "class",
1621
1391
  "description": "",
1622
- "name": "DataCardGutterMenu",
1392
+ "name": "DataCard",
1623
1393
  "members": [
1624
1394
  {
1625
1395
  "kind": "field",
1626
- "name": "gutters",
1396
+ "name": "config",
1627
1397
  "type": {
1628
- "text": "ColumnConfig[]"
1398
+ "text": "GristConfig"
1629
1399
  },
1630
- "attribute": "gutters"
1400
+ "default": "ZERO_CONFIG",
1401
+ "attribute": "config"
1631
1402
  },
1632
1403
  {
1633
1404
  "kind": "field",
1634
- "name": "rowIndex",
1405
+ "name": "data",
1406
+ "type": {
1407
+ "text": "GristData"
1408
+ },
1409
+ "default": "ZERO_DATA",
1410
+ "attribute": "data"
1411
+ },
1412
+ {
1413
+ "kind": "field",
1414
+ "name": "isTop",
1415
+ "type": {
1416
+ "text": "boolean"
1417
+ },
1418
+ "default": "false",
1419
+ "attribute": "isTop"
1420
+ },
1421
+ {
1422
+ "kind": "field",
1423
+ "name": "_records",
1424
+ "type": {
1425
+ "text": "GristRecord[]"
1426
+ },
1427
+ "privacy": "private",
1428
+ "default": "[]",
1429
+ "attribute": "_records"
1430
+ },
1431
+ {
1432
+ "kind": "field",
1433
+ "name": "_total",
1635
1434
  "type": {
1636
1435
  "text": "number"
1637
1436
  },
1638
- "attribute": "rowIndex"
1437
+ "privacy": "private",
1438
+ "default": "0"
1639
1439
  },
1640
1440
  {
1641
1441
  "kind": "field",
1642
- "name": "record",
1442
+ "name": "_limit",
1643
1443
  "type": {
1644
- "text": "GristRecord"
1444
+ "text": "number"
1645
1445
  },
1646
- "attribute": "record"
1446
+ "privacy": "private",
1447
+ "default": "20"
1647
1448
  },
1648
1449
  {
1649
1450
  "kind": "field",
1650
- "name": "icon",
1451
+ "name": "_page",
1651
1452
  "type": {
1652
- "text": "Element"
1653
- }
1453
+ "text": "number"
1454
+ },
1455
+ "privacy": "private",
1456
+ "default": "1"
1654
1457
  },
1655
1458
  {
1656
1459
  "kind": "method",
1657
- "name": "menuRender"
1460
+ "name": "onRecordChanged",
1461
+ "parameters": [
1462
+ {
1463
+ "name": "recordData",
1464
+ "type": {
1465
+ "text": "GristRecord"
1466
+ }
1467
+ },
1468
+ {
1469
+ "name": "row",
1470
+ "type": {
1471
+ "text": "number"
1472
+ }
1473
+ },
1474
+ {
1475
+ "name": "column",
1476
+ "type": {
1477
+ "text": "ColumnConfig | null"
1478
+ }
1479
+ }
1480
+ ]
1658
1481
  },
1659
1482
  {
1660
1483
  "kind": "method",
1661
- "name": "open"
1484
+ "name": "gotoTop",
1485
+ "parameters": [
1486
+ {
1487
+ "name": "e",
1488
+ "type": {
1489
+ "text": "Event"
1490
+ }
1491
+ }
1492
+ ]
1493
+ },
1494
+ {
1495
+ "kind": "field",
1496
+ "name": "pullToRefreshTarget"
1497
+ }
1498
+ ],
1499
+ "events": [
1500
+ {
1501
+ "name": "attach-page",
1502
+ "type": {
1503
+ "text": "CustomEvent"
1504
+ }
1505
+ },
1506
+ {
1507
+ "name": "record-change",
1508
+ "type": {
1509
+ "text": "CustomEvent"
1510
+ }
1662
1511
  }
1663
1512
  ],
1664
1513
  "attributes": [
1665
1514
  {
1666
- "name": "gutters",
1515
+ "name": "config",
1667
1516
  "type": {
1668
- "text": "ColumnConfig[]"
1517
+ "text": "GristConfig"
1669
1518
  },
1670
- "fieldName": "gutters"
1519
+ "default": "ZERO_CONFIG",
1520
+ "resolveInitializer": {
1521
+ "module": "/src/configure/config-types"
1522
+ },
1523
+ "fieldName": "config"
1671
1524
  },
1672
1525
  {
1673
- "name": "rowIndex",
1526
+ "name": "data",
1674
1527
  "type": {
1675
- "text": "number"
1528
+ "text": "GristData"
1676
1529
  },
1677
- "fieldName": "rowIndex"
1530
+ "default": "ZERO_DATA",
1531
+ "resolveInitializer": {
1532
+ "module": "/src/configure/config-types"
1533
+ },
1534
+ "fieldName": "data"
1678
1535
  },
1679
1536
  {
1680
- "name": "record",
1537
+ "name": "isTop",
1681
1538
  "type": {
1682
- "text": "GristRecord"
1539
+ "text": "boolean"
1683
1540
  },
1684
- "fieldName": "record"
1541
+ "default": "false",
1542
+ "fieldName": "isTop"
1543
+ },
1544
+ {
1545
+ "name": "_records",
1546
+ "type": {
1547
+ "text": "GristRecord[]"
1548
+ },
1549
+ "default": "[]",
1550
+ "fieldName": "_records"
1685
1551
  }
1686
1552
  ],
1687
1553
  "superclass": {
1688
1554
  "name": "LitElement",
1689
1555
  "package": "lit"
1690
1556
  },
1691
- "tagName": "ox-card-gutter-menu",
1557
+ "tagName": "ox-card",
1692
1558
  "customElement": true
1693
1559
  }
1694
1560
  ],
1695
1561
  "exports": [
1562
+ {
1563
+ "kind": "js",
1564
+ "name": "DataCard",
1565
+ "declaration": {
1566
+ "name": "DataCard",
1567
+ "module": "src/data-card/data-card.ts"
1568
+ }
1569
+ },
1696
1570
  {
1697
1571
  "kind": "custom-element-definition",
1698
- "name": "ox-card-gutter-menu",
1572
+ "name": "ox-card",
1699
1573
  "declaration": {
1700
- "name": "DataCardGutterMenu",
1701
- "module": "src/data-card/data-card-gutter-menu.ts"
1574
+ "name": "DataCard",
1575
+ "module": "src/data-card/data-card.ts"
1702
1576
  }
1703
1577
  }
1704
1578
  ]
1705
1579
  },
1706
1580
  {
1707
1581
  "kind": "javascript-module",
1708
- "path": "src/data-card/data-card-gutter.ts",
1582
+ "path": "src/data-card/record-card.ts",
1709
1583
  "declarations": [
1710
1584
  {
1711
1585
  "kind": "class",
1712
1586
  "description": "",
1713
- "name": "DataCardGutter",
1587
+ "name": "RecordCard",
1714
1588
  "members": [
1715
1589
  {
1716
1590
  "kind": "field",
1717
- "name": "align",
1591
+ "name": "config",
1718
1592
  "type": {
1719
- "text": "string | undefined"
1593
+ "text": "GristConfig"
1720
1594
  },
1721
- "attribute": "align"
1595
+ "default": "ZERO_CONFIG",
1596
+ "attribute": "config"
1597
+ },
1598
+ {
1599
+ "kind": "field",
1600
+ "name": "data",
1601
+ "type": {
1602
+ "text": "GristData"
1603
+ },
1604
+ "default": "ZERO_DATA",
1605
+ "attribute": "data"
1722
1606
  },
1723
1607
  {
1724
1608
  "kind": "field",
@@ -1731,64 +1615,98 @@
1731
1615
  },
1732
1616
  {
1733
1617
  "kind": "field",
1734
- "name": "column",
1618
+ "name": "rowIndex",
1735
1619
  "type": {
1736
- "text": "ColumnConfig"
1620
+ "text": "number"
1737
1621
  },
1738
- "default": "ZERO_COLUMN",
1739
- "attribute": "column"
1622
+ "default": "-1",
1623
+ "attribute": "rowIndex"
1624
+ },
1625
+ {
1626
+ "kind": "field",
1627
+ "name": "selectedRow",
1628
+ "type": {
1629
+ "text": "boolean"
1630
+ },
1631
+ "default": "false",
1632
+ "attribute": "selected-row"
1633
+ },
1634
+ {
1635
+ "kind": "field",
1636
+ "name": "_recordView",
1637
+ "type": {
1638
+ "text": "any"
1639
+ },
1640
+ "privacy": "private"
1641
+ },
1642
+ {
1643
+ "kind": "method",
1644
+ "name": "onFieldChange",
1645
+ "parameters": [
1646
+ {
1647
+ "name": "e",
1648
+ "type": {
1649
+ "text": "Event"
1650
+ }
1651
+ }
1652
+ ]
1740
1653
  },
1741
1654
  {
1742
1655
  "kind": "field",
1743
- "name": "rowIndex",
1744
- "type": {
1745
- "text": "number"
1746
- },
1747
- "default": "-1",
1748
- "attribute": "rowIndex"
1656
+ "name": "recordView"
1749
1657
  },
1750
1658
  {
1751
- "kind": "field",
1752
- "name": "value",
1659
+ "kind": "method",
1660
+ "name": "popupRecordView"
1661
+ }
1662
+ ],
1663
+ "events": [
1664
+ {
1665
+ "name": "field-change",
1753
1666
  "type": {
1754
- "text": "object | undefined"
1755
- },
1756
- "attribute": "value"
1667
+ "text": "CustomEvent"
1668
+ }
1757
1669
  },
1758
1670
  {
1759
- "kind": "field",
1760
- "name": "isEditing"
1671
+ "name": "record-reset",
1672
+ "type": {
1673
+ "text": "CustomEvent"
1674
+ }
1761
1675
  }
1762
1676
  ],
1763
1677
  "attributes": [
1764
1678
  {
1765
- "name": "align",
1679
+ "name": "config",
1766
1680
  "type": {
1767
- "text": "string | undefined"
1681
+ "text": "GristConfig"
1768
1682
  },
1769
- "fieldName": "align"
1683
+ "default": "ZERO_CONFIG",
1684
+ "resolveInitializer": {
1685
+ "module": "/src/configure/config-types"
1686
+ },
1687
+ "fieldName": "config"
1770
1688
  },
1771
1689
  {
1772
- "name": "record",
1690
+ "name": "data",
1773
1691
  "type": {
1774
- "text": "GristRecord"
1692
+ "text": "GristData"
1775
1693
  },
1776
- "default": "ZERO_RECORD",
1694
+ "default": "ZERO_DATA",
1777
1695
  "resolveInitializer": {
1778
1696
  "module": "/src/configure/config-types"
1779
1697
  },
1780
- "fieldName": "record"
1698
+ "fieldName": "data"
1781
1699
  },
1782
1700
  {
1783
- "name": "column",
1701
+ "name": "record",
1784
1702
  "type": {
1785
- "text": "ColumnConfig"
1703
+ "text": "GristRecord"
1786
1704
  },
1787
- "default": "ZERO_COLUMN",
1705
+ "default": "ZERO_RECORD",
1788
1706
  "resolveInitializer": {
1789
1707
  "module": "/src/configure/config-types"
1790
1708
  },
1791
- "fieldName": "column"
1709
+ "fieldName": "record"
1792
1710
  },
1793
1711
  {
1794
1712
  "name": "rowIndex",
@@ -1799,398 +1717,480 @@
1799
1717
  "fieldName": "rowIndex"
1800
1718
  },
1801
1719
  {
1802
- "name": "value",
1720
+ "name": "selected-row",
1803
1721
  "type": {
1804
- "text": "object | undefined"
1722
+ "text": "boolean"
1805
1723
  },
1806
- "fieldName": "value"
1724
+ "default": "false",
1725
+ "fieldName": "selectedRow"
1807
1726
  }
1808
1727
  ],
1809
1728
  "superclass": {
1810
1729
  "name": "LitElement",
1811
1730
  "package": "lit"
1812
1731
  },
1813
- "tagName": "ox-card-gutter",
1732
+ "tagName": "ox-record-card",
1814
1733
  "customElement": true
1815
1734
  }
1816
1735
  ],
1817
1736
  "exports": [
1737
+ {
1738
+ "kind": "js",
1739
+ "name": "RecordCard",
1740
+ "declaration": {
1741
+ "name": "RecordCard",
1742
+ "module": "src/data-card/record-card.ts"
1743
+ }
1744
+ },
1818
1745
  {
1819
1746
  "kind": "custom-element-definition",
1820
- "name": "ox-card-gutter",
1747
+ "name": "ox-record-card",
1821
1748
  "declaration": {
1822
- "name": "DataCardGutter",
1823
- "module": "src/data-card/data-card-gutter.ts"
1749
+ "name": "RecordCard",
1750
+ "module": "src/data-card/record-card.ts"
1824
1751
  }
1825
1752
  }
1826
1753
  ]
1827
1754
  },
1828
1755
  {
1829
1756
  "kind": "javascript-module",
1830
- "path": "src/data-card/data-card.ts",
1757
+ "path": "src/configure/column-builder.ts",
1831
1758
  "declarations": [
1832
1759
  {
1833
- "kind": "class",
1834
- "description": "",
1835
- "name": "DataCard",
1836
- "members": [
1837
- {
1838
- "kind": "field",
1839
- "name": "config",
1840
- "type": {
1841
- "text": "GristConfig"
1842
- },
1843
- "default": "ZERO_CONFIG",
1844
- "attribute": "config"
1845
- },
1846
- {
1847
- "kind": "field",
1848
- "name": "data",
1849
- "type": {
1850
- "text": "GristData"
1851
- },
1852
- "default": "ZERO_DATA",
1853
- "attribute": "data"
1854
- },
1855
- {
1856
- "kind": "field",
1857
- "name": "isTop",
1858
- "type": {
1859
- "text": "boolean"
1860
- },
1861
- "default": "false",
1862
- "attribute": "isTop"
1863
- },
1864
- {
1865
- "kind": "field",
1866
- "name": "_records",
1867
- "type": {
1868
- "text": "GristRecord[]"
1869
- },
1870
- "privacy": "private",
1871
- "default": "[]",
1872
- "attribute": "_records"
1873
- },
1874
- {
1875
- "kind": "field",
1876
- "name": "_total",
1877
- "type": {
1878
- "text": "number"
1879
- },
1880
- "privacy": "private",
1881
- "default": "0"
1882
- },
1760
+ "kind": "function",
1761
+ "name": "buildColumn",
1762
+ "return": {
1763
+ "type": {
1764
+ "text": "ColumnConfig"
1765
+ }
1766
+ },
1767
+ "parameters": [
1883
1768
  {
1884
- "kind": "field",
1885
- "name": "_limit",
1769
+ "name": "column",
1886
1770
  "type": {
1887
- "text": "number"
1888
- },
1889
- "privacy": "private",
1890
- "default": "20"
1891
- },
1771
+ "text": "any"
1772
+ }
1773
+ }
1774
+ ]
1775
+ }
1776
+ ],
1777
+ "exports": [
1778
+ {
1779
+ "kind": "js",
1780
+ "name": "buildColumn",
1781
+ "declaration": {
1782
+ "name": "buildColumn",
1783
+ "module": "src/configure/column-builder.ts"
1784
+ }
1785
+ }
1786
+ ]
1787
+ },
1788
+ {
1789
+ "kind": "javascript-module",
1790
+ "path": "src/configure/config-builder.ts",
1791
+ "declarations": [
1792
+ {
1793
+ "kind": "function",
1794
+ "name": "buildConfig",
1795
+ "return": {
1796
+ "type": {
1797
+ "text": "GristConfig"
1798
+ }
1799
+ },
1800
+ "parameters": [
1892
1801
  {
1893
- "kind": "field",
1894
- "name": "_page",
1802
+ "name": "config",
1895
1803
  "type": {
1896
- "text": "number"
1897
- },
1898
- "privacy": "private",
1899
- "default": "1"
1900
- },
1901
- {
1902
- "kind": "method",
1903
- "name": "onRecordChanged",
1904
- "parameters": [
1905
- {
1906
- "name": "recordData",
1907
- "type": {
1908
- "text": "GristRecord"
1909
- }
1910
- },
1911
- {
1912
- "name": "row",
1913
- "type": {
1914
- "text": "number"
1915
- }
1916
- },
1917
- {
1918
- "name": "column",
1919
- "type": {
1920
- "text": "ColumnConfig | null"
1921
- }
1922
- }
1923
- ]
1924
- },
1804
+ "text": "any"
1805
+ }
1806
+ }
1807
+ ]
1808
+ }
1809
+ ],
1810
+ "exports": [
1811
+ {
1812
+ "kind": "js",
1813
+ "name": "buildConfig",
1814
+ "declaration": {
1815
+ "name": "buildConfig",
1816
+ "module": "src/configure/config-builder.ts"
1817
+ }
1818
+ }
1819
+ ]
1820
+ },
1821
+ {
1822
+ "kind": "javascript-module",
1823
+ "path": "src/configure/config-types.ts",
1824
+ "declarations": [
1825
+ {
1826
+ "kind": "function",
1827
+ "name": "ZERO_CLASSIFIER",
1828
+ "parameters": [
1925
1829
  {
1926
- "kind": "method",
1927
- "name": "gotoTop",
1928
- "parameters": [
1929
- {
1930
- "name": "e",
1931
- "type": {
1932
- "text": "Event"
1933
- }
1934
- }
1935
- ]
1830
+ "name": "record"
1936
1831
  },
1937
1832
  {
1938
- "kind": "field",
1939
- "name": "pullToRefreshTarget"
1833
+ "name": "rowIndex"
1940
1834
  }
1941
- ],
1942
- "events": [
1835
+ ]
1836
+ },
1837
+ {
1838
+ "kind": "function",
1839
+ "name": "ZERO_FIELD_RENDERER",
1840
+ "parameters": [
1943
1841
  {
1944
- "name": "attach-page",
1945
- "type": {
1946
- "text": "CustomEvent"
1947
- }
1842
+ "name": "value"
1948
1843
  },
1949
1844
  {
1950
- "name": "record-change",
1951
- "type": {
1952
- "text": "CustomEvent"
1953
- }
1954
- }
1955
- ],
1956
- "attributes": [
1957
- {
1958
- "name": "config",
1959
- "type": {
1960
- "text": "GristConfig"
1961
- },
1962
- "default": "ZERO_CONFIG",
1963
- "resolveInitializer": {
1964
- "module": "/src/configure/config-types"
1965
- },
1966
- "fieldName": "config"
1845
+ "name": "column"
1967
1846
  },
1968
1847
  {
1969
- "name": "data",
1970
- "type": {
1971
- "text": "GristData"
1972
- },
1973
- "default": "ZERO_DATA",
1974
- "resolveInitializer": {
1975
- "module": "/src/configure/config-types"
1976
- },
1977
- "fieldName": "data"
1848
+ "name": "record"
1978
1849
  },
1979
1850
  {
1980
- "name": "isTop",
1981
- "type": {
1982
- "text": "boolean"
1983
- },
1984
- "default": "false",
1985
- "fieldName": "isTop"
1851
+ "name": "rowIndex"
1986
1852
  },
1987
1853
  {
1988
- "name": "_records",
1989
- "type": {
1990
- "text": "GristRecord[]"
1991
- },
1992
- "default": "[]",
1993
- "fieldName": "_records"
1854
+ "name": "owner"
1994
1855
  }
1995
- ],
1996
- "superclass": {
1997
- "name": "LitElement",
1998
- "package": "lit"
1856
+ ]
1857
+ },
1858
+ {
1859
+ "kind": "variable",
1860
+ "name": "ZERO_THUMBNAIL_TEMPLATE",
1861
+ "default": "function (record: GristRecord, rowIndex: number) {}"
1862
+ },
1863
+ {
1864
+ "kind": "variable",
1865
+ "name": "ZERO_EVENTHANDLERSET",
1866
+ "type": {
1867
+ "text": "GristEventHandlerSet"
1999
1868
  },
2000
- "tagName": "ox-card",
2001
- "customElement": true
1869
+ "default": "{\n click: undefined,\n dblclick: undefined\n}"
1870
+ },
1871
+ {
1872
+ "kind": "variable",
1873
+ "name": "ZERO_COLUMNS",
1874
+ "type": {
1875
+ "text": "ColumnConfig[]"
1876
+ },
1877
+ "default": "[]"
1878
+ },
1879
+ {
1880
+ "kind": "variable",
1881
+ "name": "ZERO_GROUPS",
1882
+ "type": {
1883
+ "text": "GroupConfig[]"
1884
+ },
1885
+ "default": "[]"
1886
+ },
1887
+ {
1888
+ "kind": "variable",
1889
+ "name": "ZERO_TOTALS",
1890
+ "type": {
1891
+ "text": "[]"
1892
+ },
1893
+ "default": "[]"
1894
+ },
1895
+ {
1896
+ "kind": "variable",
1897
+ "name": "ZERO_LABEL",
1898
+ "type": {
1899
+ "text": "LabelConfig"
1900
+ },
1901
+ "default": "false"
1902
+ },
1903
+ {
1904
+ "kind": "variable",
1905
+ "name": "ZERO_COLUMN",
1906
+ "type": {
1907
+ "text": "ColumnConfig"
1908
+ },
1909
+ "default": "{\n type: '',\n name: '',\n header: {\n renderer: column => {}\n },\n record: {\n renderer: ZERO_FIELD_RENDERER,\n classifier: ZERO_CLASSIFIER,\n options: {}\n },\n handlers: ZERO_EVENTHANDLERSET,\n label: ZERO_LABEL\n}"
1910
+ },
1911
+ {
1912
+ "kind": "variable",
1913
+ "name": "ZERO_ROWS",
1914
+ "type": {
1915
+ "text": "RowsConfig"
1916
+ },
1917
+ "default": "{\n appendable: false,\n insertable: false,\n groups: ZERO_GROUPS,\n totals: ZERO_TOTALS,\n classifier: ZERO_CLASSIFIER,\n handlers: ZERO_EVENTHANDLERSET\n}"
1918
+ },
1919
+ {
1920
+ "kind": "variable",
1921
+ "name": "ZERO_LIST",
1922
+ "type": {
1923
+ "text": "ListConfig"
1924
+ },
1925
+ "default": "{\n thumbnail: ZERO_THUMBNAIL_TEMPLATE,\n fields: ['name', 'description', 'updatedAt'],\n details: []\n}"
1926
+ },
1927
+ {
1928
+ "kind": "variable",
1929
+ "name": "ZERO_CONFIG",
1930
+ "type": {
1931
+ "text": "GristConfig"
1932
+ },
1933
+ "default": "{\n columns: ZERO_COLUMNS,\n rows: ZERO_ROWS,\n list: ZERO_LIST\n}"
1934
+ },
1935
+ {
1936
+ "kind": "variable",
1937
+ "name": "ZERO_RECORD",
1938
+ "type": {
1939
+ "text": "GristRecord"
1940
+ },
1941
+ "default": "{}"
1942
+ },
1943
+ {
1944
+ "kind": "variable",
1945
+ "name": "ZERO_RECORDS",
1946
+ "type": {
1947
+ "text": "GristRecord[]"
1948
+ },
1949
+ "default": "[]"
1950
+ },
1951
+ {
1952
+ "kind": "variable",
1953
+ "name": "ZERO_DATA",
1954
+ "type": {
1955
+ "text": "GristData"
1956
+ },
1957
+ "default": "{\n records: ZERO_RECORDS\n}"
1958
+ },
1959
+ {
1960
+ "kind": "variable",
1961
+ "name": "ZERO_PAGINATION",
1962
+ "type": {
1963
+ "text": "object"
1964
+ },
1965
+ "default": "{\n page: 1,\n limit: 20,\n total: 0\n}"
2002
1966
  }
2003
1967
  ],
2004
1968
  "exports": [
2005
1969
  {
2006
1970
  "kind": "js",
2007
- "name": "DataCard",
1971
+ "name": "ZERO_CLASSIFIER",
1972
+ "declaration": {
1973
+ "name": "ZERO_CLASSIFIER",
1974
+ "module": "src/configure/config-types.ts"
1975
+ }
1976
+ },
1977
+ {
1978
+ "kind": "js",
1979
+ "name": "ZERO_FIELD_RENDERER",
1980
+ "declaration": {
1981
+ "name": "ZERO_FIELD_RENDERER",
1982
+ "module": "src/configure/config-types.ts"
1983
+ }
1984
+ },
1985
+ {
1986
+ "kind": "js",
1987
+ "name": "ZERO_THUMBNAIL_TEMPLATE",
1988
+ "declaration": {
1989
+ "name": "ZERO_THUMBNAIL_TEMPLATE",
1990
+ "module": "src/configure/config-types.ts"
1991
+ }
1992
+ },
1993
+ {
1994
+ "kind": "js",
1995
+ "name": "ZERO_EVENTHANDLERSET",
1996
+ "declaration": {
1997
+ "name": "ZERO_EVENTHANDLERSET",
1998
+ "module": "src/configure/config-types.ts"
1999
+ }
2000
+ },
2001
+ {
2002
+ "kind": "js",
2003
+ "name": "ZERO_COLUMNS",
2004
+ "declaration": {
2005
+ "name": "ZERO_COLUMNS",
2006
+ "module": "src/configure/config-types.ts"
2007
+ }
2008
+ },
2009
+ {
2010
+ "kind": "js",
2011
+ "name": "ZERO_GROUPS",
2012
+ "declaration": {
2013
+ "name": "ZERO_GROUPS",
2014
+ "module": "src/configure/config-types.ts"
2015
+ }
2016
+ },
2017
+ {
2018
+ "kind": "js",
2019
+ "name": "ZERO_TOTALS",
2020
+ "declaration": {
2021
+ "name": "ZERO_TOTALS",
2022
+ "module": "src/configure/config-types.ts"
2023
+ }
2024
+ },
2025
+ {
2026
+ "kind": "js",
2027
+ "name": "ZERO_LABEL",
2028
+ "declaration": {
2029
+ "name": "ZERO_LABEL",
2030
+ "module": "src/configure/config-types.ts"
2031
+ }
2032
+ },
2033
+ {
2034
+ "kind": "js",
2035
+ "name": "ZERO_COLUMN",
2036
+ "declaration": {
2037
+ "name": "ZERO_COLUMN",
2038
+ "module": "src/configure/config-types.ts"
2039
+ }
2040
+ },
2041
+ {
2042
+ "kind": "js",
2043
+ "name": "ZERO_ROWS",
2044
+ "declaration": {
2045
+ "name": "ZERO_ROWS",
2046
+ "module": "src/configure/config-types.ts"
2047
+ }
2048
+ },
2049
+ {
2050
+ "kind": "js",
2051
+ "name": "ZERO_LIST",
2052
+ "declaration": {
2053
+ "name": "ZERO_LIST",
2054
+ "module": "src/configure/config-types.ts"
2055
+ }
2056
+ },
2057
+ {
2058
+ "kind": "js",
2059
+ "name": "ZERO_CONFIG",
2060
+ "declaration": {
2061
+ "name": "ZERO_CONFIG",
2062
+ "module": "src/configure/config-types.ts"
2063
+ }
2064
+ },
2065
+ {
2066
+ "kind": "js",
2067
+ "name": "ZERO_RECORD",
2008
2068
  "declaration": {
2009
- "name": "DataCard",
2010
- "module": "src/data-card/data-card.ts"
2069
+ "name": "ZERO_RECORD",
2070
+ "module": "src/configure/config-types.ts"
2011
2071
  }
2012
2072
  },
2013
2073
  {
2014
- "kind": "custom-element-definition",
2015
- "name": "ox-card",
2074
+ "kind": "js",
2075
+ "name": "ZERO_RECORDS",
2016
2076
  "declaration": {
2017
- "name": "DataCard",
2018
- "module": "src/data-card/data-card.ts"
2077
+ "name": "ZERO_RECORDS",
2078
+ "module": "src/configure/config-types.ts"
2079
+ }
2080
+ },
2081
+ {
2082
+ "kind": "js",
2083
+ "name": "ZERO_DATA",
2084
+ "declaration": {
2085
+ "name": "ZERO_DATA",
2086
+ "module": "src/configure/config-types.ts"
2087
+ }
2088
+ },
2089
+ {
2090
+ "kind": "js",
2091
+ "name": "ZERO_PAGINATION",
2092
+ "declaration": {
2093
+ "name": "ZERO_PAGINATION",
2094
+ "module": "src/configure/config-types.ts"
2019
2095
  }
2020
2096
  }
2021
2097
  ]
2022
2098
  },
2023
2099
  {
2024
2100
  "kind": "javascript-module",
2025
- "path": "src/data-card/record-card.ts",
2101
+ "path": "src/configure/imex-option-builder.ts",
2026
2102
  "declarations": [
2027
2103
  {
2028
- "kind": "class",
2029
- "description": "",
2030
- "name": "RecordCard",
2031
- "members": [
2032
- {
2033
- "kind": "field",
2034
- "name": "config",
2035
- "type": {
2036
- "text": "GristConfig"
2037
- },
2038
- "default": "ZERO_CONFIG",
2039
- "attribute": "config"
2040
- },
2041
- {
2042
- "kind": "field",
2043
- "name": "data",
2044
- "type": {
2045
- "text": "GristData"
2046
- },
2047
- "default": "ZERO_DATA",
2048
- "attribute": "data"
2049
- },
2050
- {
2051
- "kind": "field",
2052
- "name": "record",
2053
- "type": {
2054
- "text": "GristRecord"
2055
- },
2056
- "default": "ZERO_RECORD",
2057
- "attribute": "record"
2058
- },
2059
- {
2060
- "kind": "field",
2061
- "name": "rowIndex",
2062
- "type": {
2063
- "text": "number"
2064
- },
2065
- "default": "-1",
2066
- "attribute": "rowIndex"
2067
- },
2068
- {
2069
- "kind": "field",
2070
- "name": "selectedRow",
2071
- "type": {
2072
- "text": "boolean"
2073
- },
2074
- "default": "false",
2075
- "attribute": "selected-row"
2076
- },
2077
- {
2078
- "kind": "field",
2079
- "name": "_recordView",
2080
- "type": {
2081
- "text": "any"
2082
- },
2083
- "privacy": "private"
2084
- },
2085
- {
2086
- "kind": "method",
2087
- "name": "onFieldChange",
2088
- "parameters": [
2089
- {
2090
- "name": "e",
2091
- "type": {
2092
- "text": "Event"
2093
- }
2094
- }
2095
- ]
2096
- },
2097
- {
2098
- "kind": "field",
2099
- "name": "recordView"
2100
- },
2101
- {
2102
- "kind": "method",
2103
- "name": "popupRecordView"
2104
+ "kind": "function",
2105
+ "name": "buildImexOptions",
2106
+ "return": {
2107
+ "type": {
2108
+ "text": "ImexConfig | undefined"
2104
2109
  }
2105
- ],
2106
- "events": [
2107
- {
2108
- "name": "field-change",
2109
- "type": {
2110
- "text": "CustomEvent"
2111
- }
2112
- },
2110
+ },
2111
+ "parameters": [
2113
2112
  {
2114
- "name": "record-reset",
2113
+ "name": "imex",
2115
2114
  "type": {
2116
- "text": "CustomEvent"
2115
+ "text": "any"
2117
2116
  }
2118
2117
  }
2119
- ],
2120
- "attributes": [
2121
- {
2122
- "name": "config",
2123
- "type": {
2124
- "text": "GristConfig"
2125
- },
2126
- "default": "ZERO_CONFIG",
2127
- "resolveInitializer": {
2128
- "module": "/src/configure/config-types"
2129
- },
2130
- "fieldName": "config"
2131
- },
2132
- {
2133
- "name": "data",
2134
- "type": {
2135
- "text": "GristData"
2136
- },
2137
- "default": "ZERO_DATA",
2138
- "resolveInitializer": {
2139
- "module": "/src/configure/config-types"
2140
- },
2141
- "fieldName": "data"
2142
- },
2143
- {
2144
- "name": "record",
2145
- "type": {
2146
- "text": "GristRecord"
2147
- },
2148
- "default": "ZERO_RECORD",
2149
- "resolveInitializer": {
2150
- "module": "/src/configure/config-types"
2151
- },
2152
- "fieldName": "record"
2153
- },
2154
- {
2155
- "name": "rowIndex",
2156
- "type": {
2157
- "text": "number"
2158
- },
2159
- "default": "-1",
2160
- "fieldName": "rowIndex"
2161
- },
2118
+ ]
2119
+ }
2120
+ ],
2121
+ "exports": [
2122
+ {
2123
+ "kind": "js",
2124
+ "name": "buildImexOptions",
2125
+ "declaration": {
2126
+ "name": "buildImexOptions",
2127
+ "module": "src/configure/imex-option-builder.ts"
2128
+ }
2129
+ }
2130
+ ]
2131
+ },
2132
+ {
2133
+ "kind": "javascript-module",
2134
+ "path": "src/configure/list-option-builder.ts",
2135
+ "declarations": [
2136
+ {
2137
+ "kind": "function",
2138
+ "name": "buildListOptions",
2139
+ "return": {
2140
+ "type": {
2141
+ "text": "ListConfig"
2142
+ }
2143
+ },
2144
+ "parameters": [
2162
2145
  {
2163
- "name": "selected-row",
2146
+ "name": "list",
2164
2147
  "type": {
2165
- "text": "boolean"
2166
- },
2167
- "default": "false",
2168
- "fieldName": "selectedRow"
2148
+ "text": "ListConfig | undefined"
2149
+ }
2169
2150
  }
2170
- ],
2171
- "superclass": {
2172
- "name": "LitElement",
2173
- "package": "lit"
2174
- },
2175
- "tagName": "ox-record-card",
2176
- "customElement": true
2151
+ ]
2177
2152
  }
2178
2153
  ],
2179
2154
  "exports": [
2180
2155
  {
2181
2156
  "kind": "js",
2182
- "name": "RecordCard",
2157
+ "name": "buildListOptions",
2183
2158
  "declaration": {
2184
- "name": "RecordCard",
2185
- "module": "src/data-card/record-card.ts"
2159
+ "name": "buildListOptions",
2160
+ "module": "src/configure/list-option-builder.ts"
2186
2161
  }
2187
- },
2162
+ }
2163
+ ]
2164
+ },
2165
+ {
2166
+ "kind": "javascript-module",
2167
+ "path": "src/configure/rows-option-builder.ts",
2168
+ "declarations": [
2188
2169
  {
2189
- "kind": "custom-element-definition",
2190
- "name": "ox-record-card",
2170
+ "kind": "function",
2171
+ "name": "buildRowsOptions",
2172
+ "return": {
2173
+ "type": {
2174
+ "text": "RowsConfig"
2175
+ }
2176
+ },
2177
+ "parameters": [
2178
+ {
2179
+ "name": "rows",
2180
+ "type": {
2181
+ "text": "any"
2182
+ }
2183
+ }
2184
+ ]
2185
+ }
2186
+ ],
2187
+ "exports": [
2188
+ {
2189
+ "kind": "js",
2190
+ "name": "buildRowsOptions",
2191
2191
  "declaration": {
2192
- "name": "RecordCard",
2193
- "module": "src/data-card/record-card.ts"
2192
+ "name": "buildRowsOptions",
2193
+ "module": "src/configure/rows-option-builder.ts"
2194
2194
  }
2195
2195
  }
2196
2196
  ]