@lotics/cli 0.320.5 → 0.320.6

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.
@@ -78,6 +78,7 @@ the screen already holds.
78
78
  | `<entity>_pictures` | The picture and name of each <entity> row among the ids handed in. | `<entity>_ids` | a link to several pictured rows |
79
79
  | `<entity>_count_by_<scope>` | How many <entity> rows each <scope entity> holds. | | an app stating `scope` |
80
80
  | `<task>_progress_by_<link>` | How many <task> rows each <entity> row handed in holds, at each status. | `<entity>_ids` | rows whose task rows are counted done |
81
+ | `<child>_nested_by_<link>` | The <child> rows under any <entity> handed in, through "<link>". | `<entity>_ids` | each plain List of child rows on the page of rows a List holds open by `nested`, for the rows it draws; named as that List's read under one record, `_nested` after the child |
81
82
  | `<entity>_sub_counts_by_<link>` | How many <entity> rows stand under each <entity> row handed in, through <link>, at each status. | `<entity>_ids` | a record's rows block over a hierarchy (`nests`), for the rows it draws |
82
83
  | `<entity>_plan_places` | Every <place> the <entity> rows stand at, with what the plan draws of each. | | a register laid out as a `plan`: the places its rows stand at |
83
84
  | `<lane>_lanes` | The <lane> rows of one <scope entity>, each a lane of the board. | `<scope entity>_id` | a lanes board inside an app stating `scope` |
package/docs/examples.md CHANGED
@@ -1452,6 +1452,99 @@ among them: the `design` reference. Every key: `reference`, at the pages each se
1452
1452
  }
1453
1453
  ```
1454
1454
 
1455
+ ## Lines and sources
1456
+
1457
+ **The job.** Fill each line of an order from several suppliers, editing a line and what each supplier sends on one page, as in a spreadsheet.
1458
+
1459
+ **Read.** A child List stating `nested`: each line stands open on the List its own page holds (the sources), written in place; a line's ⋯ duplicates it.
1460
+
1461
+ **Keys.** `reference/list-node`
1462
+
1463
+ **Not when.** Rows whose own children are read one row at a time, or grouped by a link instead (`group`): open them one at a time.
1464
+
1465
+ ```json
1466
+ {
1467
+ "tables": [
1468
+ {
1469
+ "ref": "don_hang",
1470
+ "title": "so_don",
1471
+ "fields": {
1472
+ "so_don": {"type": "text"},
1473
+ "khach_hang": {"type": "link", "table": "khach_hang", "multi": false},
1474
+ "ngay_giao": {"type": "date"},
1475
+ "trang_thai": {
1476
+ "type": "select",
1477
+ "options": [
1478
+ {"alias": "moi", "color": "blue"},
1479
+ {"alias": "da_dat", "color": "amber"},
1480
+ {"alias": "da_giao", "color": "green"}
1481
+ ]
1482
+ }
1483
+ },
1484
+ "records": {"subtitle": ["khach_hang", "ngay_giao"], "status": {"field": "trang_thai"}}
1485
+ },
1486
+ {
1487
+ "ref": "dong_don",
1488
+ "title": "mat_hang",
1489
+ "fields": {
1490
+ "don_hang": {"type": "link", "table": "don_hang", "multi": false},
1491
+ "mat_hang": {"type": "link", "table": "mat_hang", "multi": false},
1492
+ "so_luong": {"type": "number"},
1493
+ "da_dat": {"type": "rollup"},
1494
+ "nguon": {"type": "link", "table": "nguon", "multi": true}
1495
+ },
1496
+ "records": {"figure": "so_luong"}
1497
+ }
1498
+ ],
1499
+ "body": {
1500
+ "type": "App",
1501
+ "key": "don_hang",
1502
+ "name": "Đơn hàng",
1503
+ "icon": "shopping-cart",
1504
+ "color": "green",
1505
+ "children": [
1506
+ {
1507
+ "type": "List",
1508
+ "entity": "don_hang",
1509
+ "columns": ["ngay_giao"],
1510
+ "filters": ["trang_thai"],
1511
+ "search": ["so_don", "khach_hang"],
1512
+ "sort": {"field": "ngay_giao", "desc": true}
1513
+ }
1514
+ ],
1515
+ "pages": [
1516
+ {
1517
+ "type": "Record",
1518
+ "entity": "don_hang",
1519
+ "children": [
1520
+ {
1521
+ "type": "Section",
1522
+ "key": "dong_hang",
1523
+ "title": "Dòng hàng",
1524
+ "children": [
1525
+ {
1526
+ "type": "List",
1527
+ "entity": "dong_don",
1528
+ "nested": true,
1529
+ "columns": [{"field": "so_luong", "edit": true}, "da_dat"]
1530
+ }
1531
+ ]
1532
+ }
1533
+ ]
1534
+ },
1535
+ {
1536
+ "type": "Record",
1537
+ "entity": "dong_don",
1538
+ "children": ["so_luong", {"type": "List", "entity": "nguon", "columns": [{"field": "so_luong", "edit": true}]}]
1539
+ },
1540
+ {"type": "Record", "entity": "khach_hang", "add": ["ten", "dia_chi", "dien_thoai"]},
1541
+ {"type": "Record", "entity": "mat_hang", "add": ["ten", "don_vi"]},
1542
+ {"type": "Record", "entity": "nha_cung_cap", "add": ["ten", "loai", "dien_thoai"]}
1543
+ ]
1544
+ }
1545
+ }
1546
+ ```
1547
+
1455
1548
  ## Calls
1456
1549
 
1457
1550
  **The job.** Call a lead from their record, and keep what was said as a touch on its timeline.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/cli",
3
- "version": "0.320.5",
3
+ "version": "0.320.6",
4
4
  "description": "Lotics SDK and CLI for AI agents",
5
5
  "type": "module",
6
6
  "bin": {