@genesislcap/ai-assistant 15.37.0 → 15.38.0
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/custom-elements.json +638 -0
- package/dist/dts/genesis/calendar.d.ts +25 -0
- package/dist/dts/genesis/calendar.d.ts.map +1 -0
- package/dist/dts/genesis/config.d.ts +16 -0
- package/dist/dts/genesis/config.d.ts.map +1 -1
- package/dist/dts/genesis/criteria.d.ts +24 -2
- package/dist/dts/genesis/criteria.d.ts.map +1 -1
- package/dist/dts/genesis/event-fields.d.ts +84 -0
- package/dist/dts/genesis/event-fields.d.ts.map +1 -0
- package/dist/dts/genesis/filter-fields.d.ts +69 -5
- package/dist/dts/genesis/filter-fields.d.ts.map +1 -1
- package/dist/dts/genesis/index.d.ts +3 -0
- package/dist/dts/genesis/index.d.ts.map +1 -1
- package/dist/dts/genesis/register-genesis-assistant.d.ts +13 -0
- package/dist/dts/genesis/register-genesis-assistant.d.ts.map +1 -1
- package/dist/dts/genesis/resource-tools.d.ts.map +1 -1
- package/dist/dts/genesis/review-model.d.ts +202 -0
- package/dist/dts/genesis/review-model.d.ts.map +1 -0
- package/dist/dts/genesis/row-source.d.ts +102 -0
- package/dist/dts/genesis/row-source.d.ts.map +1 -0
- package/dist/dts/genesis/serialisable.d.ts +25 -0
- package/dist/dts/genesis/serialisable.d.ts.map +1 -0
- package/dist/dts/genesis/server-text.d.ts +63 -0
- package/dist/dts/genesis/server-text.d.ts.map +1 -0
- package/dist/dts/genesis/type-name.d.ts +18 -0
- package/dist/dts/genesis/type-name.d.ts.map +1 -0
- package/dist/dts/genesis/types.d.ts +7 -0
- package/dist/dts/genesis/types.d.ts.map +1 -1
- package/dist/dts/genesis/value-compare.d.ts +19 -0
- package/dist/dts/genesis/value-compare.d.ts.map +1 -0
- package/dist/dts/genesis/write-commit.d.ts +53 -0
- package/dist/dts/genesis/write-commit.d.ts.map +1 -0
- package/dist/dts/genesis/write-outcome.d.ts +133 -0
- package/dist/dts/genesis/write-outcome.d.ts.map +1 -0
- package/dist/dts/genesis/write-payload.d.ts +129 -0
- package/dist/dts/genesis/write-payload.d.ts.map +1 -0
- package/dist/dts/genesis/write-plan.d.ts +109 -0
- package/dist/dts/genesis/write-plan.d.ts.map +1 -0
- package/dist/dts/genesis/write-review/write-review.d.ts +127 -0
- package/dist/dts/genesis/write-review/write-review.d.ts.map +1 -0
- package/dist/dts/genesis/write-review/write-review.styles.d.ts +2 -0
- package/dist/dts/genesis/write-review/write-review.styles.d.ts.map +1 -0
- package/dist/dts/genesis/write-review/write-review.template.d.ts +4 -0
- package/dist/dts/genesis/write-review/write-review.template.d.ts.map +1 -0
- package/dist/dts/genesis/write-tools.d.ts +99 -0
- package/dist/dts/genesis/write-tools.d.ts.map +1 -0
- package/dist/dts/react.d.ts +10 -0
- package/dist/esm/genesis/calendar.js +38 -0
- package/dist/esm/genesis/config.js +36 -1
- package/dist/esm/genesis/criteria.js +59 -55
- package/dist/esm/genesis/event-fields.js +158 -0
- package/dist/esm/genesis/filter-fields.js +111 -20
- package/dist/esm/genesis/index.js +2 -0
- package/dist/esm/genesis/register-genesis-assistant.js +76 -4
- package/dist/esm/genesis/resource-tools.js +21 -103
- package/dist/esm/genesis/review-model.js +248 -0
- package/dist/esm/genesis/row-source.js +127 -0
- package/dist/esm/genesis/serialisable.js +38 -0
- package/dist/esm/genesis/server-text.js +186 -0
- package/dist/esm/genesis/type-name.js +20 -0
- package/dist/esm/genesis/value-compare.js +87 -0
- package/dist/esm/genesis/write-commit.js +78 -0
- package/dist/esm/genesis/write-outcome.js +299 -0
- package/dist/esm/genesis/write-payload.js +632 -0
- package/dist/esm/genesis/write-plan.js +275 -0
- package/dist/esm/genesis/write-review/write-review.js +252 -0
- package/dist/esm/genesis/write-review/write-review.styles.js +214 -0
- package/dist/esm/genesis/write-review/write-review.template.js +182 -0
- package/dist/esm/genesis/write-tools.js +660 -0
- package/dist/react.cjs +7 -0
- package/dist/react.mjs +6 -0
- package/docs/genesis.md +152 -10
- package/package.json +18 -18
|
@@ -1847,6 +1847,12 @@
|
|
|
1847
1847
|
"declarations": [],
|
|
1848
1848
|
"exports": []
|
|
1849
1849
|
},
|
|
1850
|
+
{
|
|
1851
|
+
"kind": "javascript-module",
|
|
1852
|
+
"path": "src/genesis/calendar.ts",
|
|
1853
|
+
"declarations": [],
|
|
1854
|
+
"exports": []
|
|
1855
|
+
},
|
|
1850
1856
|
{
|
|
1851
1857
|
"kind": "javascript-module",
|
|
1852
1858
|
"path": "src/genesis/config.ts",
|
|
@@ -1997,6 +2003,12 @@
|
|
|
1997
2003
|
}
|
|
1998
2004
|
]
|
|
1999
2005
|
},
|
|
2006
|
+
{
|
|
2007
|
+
"kind": "javascript-module",
|
|
2008
|
+
"path": "src/genesis/event-fields.ts",
|
|
2009
|
+
"declarations": [],
|
|
2010
|
+
"exports": []
|
|
2011
|
+
},
|
|
2000
2012
|
{
|
|
2001
2013
|
"kind": "javascript-module",
|
|
2002
2014
|
"path": "src/genesis/filter-fields.ts",
|
|
@@ -2064,6 +2076,54 @@
|
|
|
2064
2076
|
"module": "./resource-tools"
|
|
2065
2077
|
}
|
|
2066
2078
|
},
|
|
2079
|
+
{
|
|
2080
|
+
"kind": "js",
|
|
2081
|
+
"name": "createGenesisWriteTools",
|
|
2082
|
+
"declaration": {
|
|
2083
|
+
"name": "createGenesisWriteTools",
|
|
2084
|
+
"module": "./write-tools"
|
|
2085
|
+
}
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
"kind": "js",
|
|
2089
|
+
"name": "GenesisWriteResult",
|
|
2090
|
+
"declaration": {
|
|
2091
|
+
"name": "GenesisWriteResult",
|
|
2092
|
+
"module": "./write-tools"
|
|
2093
|
+
}
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
"kind": "js",
|
|
2097
|
+
"name": "GenesisWriteRowStatus",
|
|
2098
|
+
"declaration": {
|
|
2099
|
+
"name": "GenesisWriteRowStatus",
|
|
2100
|
+
"module": "./write-tools"
|
|
2101
|
+
}
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
"kind": "js",
|
|
2105
|
+
"name": "GenesisWriteToolsOptions",
|
|
2106
|
+
"declaration": {
|
|
2107
|
+
"name": "GenesisWriteToolsOptions",
|
|
2108
|
+
"module": "./write-tools"
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
"kind": "js",
|
|
2113
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
2114
|
+
"declaration": {
|
|
2115
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
2116
|
+
"module": "./write-review/write-review"
|
|
2117
|
+
}
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
"kind": "js",
|
|
2121
|
+
"name": "GenesisWriteReview",
|
|
2122
|
+
"declaration": {
|
|
2123
|
+
"name": "GenesisWriteReview",
|
|
2124
|
+
"module": "./write-review/write-review"
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2067
2127
|
{
|
|
2068
2128
|
"kind": "js",
|
|
2069
2129
|
"name": "GenesisReadResult",
|
|
@@ -2271,6 +2331,109 @@
|
|
|
2271
2331
|
}
|
|
2272
2332
|
]
|
|
2273
2333
|
},
|
|
2334
|
+
{
|
|
2335
|
+
"kind": "javascript-module",
|
|
2336
|
+
"path": "src/genesis/review-model.ts",
|
|
2337
|
+
"declarations": [
|
|
2338
|
+
{
|
|
2339
|
+
"kind": "variable",
|
|
2340
|
+
"name": "LONG_VALUE",
|
|
2341
|
+
"type": {
|
|
2342
|
+
"text": "number"
|
|
2343
|
+
},
|
|
2344
|
+
"default": "24",
|
|
2345
|
+
"description": "Past this many characters a value wraps; at or under it, it stays on one line."
|
|
2346
|
+
}
|
|
2347
|
+
],
|
|
2348
|
+
"exports": [
|
|
2349
|
+
{
|
|
2350
|
+
"kind": "js",
|
|
2351
|
+
"name": "LONG_VALUE",
|
|
2352
|
+
"declaration": {
|
|
2353
|
+
"name": "LONG_VALUE",
|
|
2354
|
+
"module": "src/genesis/review-model.ts"
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
]
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
"kind": "javascript-module",
|
|
2361
|
+
"path": "src/genesis/row-source.ts",
|
|
2362
|
+
"declarations": [],
|
|
2363
|
+
"exports": []
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
"kind": "javascript-module",
|
|
2367
|
+
"path": "src/genesis/serialisable.ts",
|
|
2368
|
+
"declarations": [],
|
|
2369
|
+
"exports": []
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
"kind": "javascript-module",
|
|
2373
|
+
"path": "src/genesis/server-text.ts",
|
|
2374
|
+
"declarations": [
|
|
2375
|
+
{
|
|
2376
|
+
"kind": "function",
|
|
2377
|
+
"name": "readsLikeFieldName",
|
|
2378
|
+
"return": {
|
|
2379
|
+
"type": {
|
|
2380
|
+
"text": "boolean"
|
|
2381
|
+
}
|
|
2382
|
+
},
|
|
2383
|
+
"parameters": [
|
|
2384
|
+
{
|
|
2385
|
+
"name": "text",
|
|
2386
|
+
"type": {
|
|
2387
|
+
"text": "string"
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2390
|
+
],
|
|
2391
|
+
"description": "Whether text is a Genesis identifier, the FIELD_NAME shape. @internal"
|
|
2392
|
+
},
|
|
2393
|
+
{
|
|
2394
|
+
"kind": "function",
|
|
2395
|
+
"name": "describeFailure",
|
|
2396
|
+
"return": {
|
|
2397
|
+
"type": {
|
|
2398
|
+
"text": "string | undefined"
|
|
2399
|
+
}
|
|
2400
|
+
},
|
|
2401
|
+
"parameters": [
|
|
2402
|
+
{
|
|
2403
|
+
"name": "error",
|
|
2404
|
+
"type": {
|
|
2405
|
+
"text": "unknown"
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
],
|
|
2409
|
+
"description": "Whatever a rejection turns out to be, as a sentence."
|
|
2410
|
+
}
|
|
2411
|
+
],
|
|
2412
|
+
"exports": [
|
|
2413
|
+
{
|
|
2414
|
+
"kind": "js",
|
|
2415
|
+
"name": "readsLikeFieldName",
|
|
2416
|
+
"declaration": {
|
|
2417
|
+
"name": "readsLikeFieldName",
|
|
2418
|
+
"module": "src/genesis/server-text.ts"
|
|
2419
|
+
}
|
|
2420
|
+
},
|
|
2421
|
+
{
|
|
2422
|
+
"kind": "js",
|
|
2423
|
+
"name": "describeFailure",
|
|
2424
|
+
"declaration": {
|
|
2425
|
+
"name": "describeFailure",
|
|
2426
|
+
"module": "src/genesis/server-text.ts"
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
]
|
|
2430
|
+
},
|
|
2431
|
+
{
|
|
2432
|
+
"kind": "javascript-module",
|
|
2433
|
+
"path": "src/genesis/type-name.ts",
|
|
2434
|
+
"declarations": [],
|
|
2435
|
+
"exports": []
|
|
2436
|
+
},
|
|
2274
2437
|
{
|
|
2275
2438
|
"kind": "javascript-module",
|
|
2276
2439
|
"path": "src/genesis/types.ts",
|
|
@@ -2296,6 +2459,136 @@
|
|
|
2296
2459
|
}
|
|
2297
2460
|
]
|
|
2298
2461
|
},
|
|
2462
|
+
{
|
|
2463
|
+
"kind": "javascript-module",
|
|
2464
|
+
"path": "src/genesis/value-compare.ts",
|
|
2465
|
+
"declarations": [],
|
|
2466
|
+
"exports": []
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
"kind": "javascript-module",
|
|
2470
|
+
"path": "src/genesis/write-commit.ts",
|
|
2471
|
+
"declarations": [],
|
|
2472
|
+
"exports": []
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
"kind": "javascript-module",
|
|
2476
|
+
"path": "src/genesis/write-outcome.ts",
|
|
2477
|
+
"declarations": [],
|
|
2478
|
+
"exports": []
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
"kind": "javascript-module",
|
|
2482
|
+
"path": "src/genesis/write-payload.ts",
|
|
2483
|
+
"declarations": [
|
|
2484
|
+
{
|
|
2485
|
+
"kind": "function",
|
|
2486
|
+
"name": "buildEventPayload",
|
|
2487
|
+
"return": {
|
|
2488
|
+
"type": {
|
|
2489
|
+
"text": "PayloadResult"
|
|
2490
|
+
}
|
|
2491
|
+
},
|
|
2492
|
+
"parameters": [
|
|
2493
|
+
{
|
|
2494
|
+
"name": "fields",
|
|
2495
|
+
"type": {
|
|
2496
|
+
"text": "readonly GenesisEventField[]"
|
|
2497
|
+
}
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
"name": "row",
|
|
2501
|
+
"type": {
|
|
2502
|
+
"text": "unknown"
|
|
2503
|
+
}
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
"name": "{ op, preImage }",
|
|
2507
|
+
"default": "{}",
|
|
2508
|
+
"type": {
|
|
2509
|
+
"text": "BuildPayloadOptions"
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
]
|
|
2513
|
+
}
|
|
2514
|
+
],
|
|
2515
|
+
"exports": [
|
|
2516
|
+
{
|
|
2517
|
+
"kind": "js",
|
|
2518
|
+
"name": "buildEventPayload",
|
|
2519
|
+
"declaration": {
|
|
2520
|
+
"name": "buildEventPayload",
|
|
2521
|
+
"module": "src/genesis/write-payload.ts"
|
|
2522
|
+
}
|
|
2523
|
+
}
|
|
2524
|
+
]
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
"kind": "javascript-module",
|
|
2528
|
+
"path": "src/genesis/write-plan.ts",
|
|
2529
|
+
"declarations": [
|
|
2530
|
+
{
|
|
2531
|
+
"kind": "variable",
|
|
2532
|
+
"name": "MAX_WRITE_ROWS",
|
|
2533
|
+
"type": {
|
|
2534
|
+
"text": "number"
|
|
2535
|
+
},
|
|
2536
|
+
"default": "25",
|
|
2537
|
+
"description": "A batch a person can actually read before approving it."
|
|
2538
|
+
}
|
|
2539
|
+
],
|
|
2540
|
+
"exports": [
|
|
2541
|
+
{
|
|
2542
|
+
"kind": "js",
|
|
2543
|
+
"name": "MAX_WRITE_ROWS",
|
|
2544
|
+
"declaration": {
|
|
2545
|
+
"name": "MAX_WRITE_ROWS",
|
|
2546
|
+
"module": "src/genesis/write-plan.ts"
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
]
|
|
2550
|
+
},
|
|
2551
|
+
{
|
|
2552
|
+
"kind": "javascript-module",
|
|
2553
|
+
"path": "src/genesis/write-tools.ts",
|
|
2554
|
+
"declarations": [
|
|
2555
|
+
{
|
|
2556
|
+
"kind": "function",
|
|
2557
|
+
"name": "createGenesisWriteTools",
|
|
2558
|
+
"return": {
|
|
2559
|
+
"type": {
|
|
2560
|
+
"text": "{ toolDefinitions: () => Promise<ChatToolDefinition[]>; toolHandlers: ChatToolHandlers }"
|
|
2561
|
+
}
|
|
2562
|
+
},
|
|
2563
|
+
"parameters": [
|
|
2564
|
+
{
|
|
2565
|
+
"name": "resources",
|
|
2566
|
+
"type": {
|
|
2567
|
+
"text": "readonly GenesisAiResource[]"
|
|
2568
|
+
}
|
|
2569
|
+
},
|
|
2570
|
+
{
|
|
2571
|
+
"name": "options",
|
|
2572
|
+
"default": "{}",
|
|
2573
|
+
"type": {
|
|
2574
|
+
"text": "GenesisWriteToolsOptions"
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
],
|
|
2578
|
+
"description": "Builds the assistant's write tools from an app's event resources."
|
|
2579
|
+
}
|
|
2580
|
+
],
|
|
2581
|
+
"exports": [
|
|
2582
|
+
{
|
|
2583
|
+
"kind": "js",
|
|
2584
|
+
"name": "createGenesisWriteTools",
|
|
2585
|
+
"declaration": {
|
|
2586
|
+
"name": "createGenesisWriteTools",
|
|
2587
|
+
"module": "src/genesis/write-tools.ts"
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
]
|
|
2591
|
+
},
|
|
2299
2592
|
{
|
|
2300
2593
|
"kind": "javascript-module",
|
|
2301
2594
|
"path": "src/main/attachment-controller.ts",
|
|
@@ -14747,6 +15040,351 @@
|
|
|
14747
15040
|
"declarations": [],
|
|
14748
15041
|
"exports": []
|
|
14749
15042
|
},
|
|
15043
|
+
{
|
|
15044
|
+
"kind": "javascript-module",
|
|
15045
|
+
"path": "src/genesis/write-review/write-review.styles.ts",
|
|
15046
|
+
"declarations": [
|
|
15047
|
+
{
|
|
15048
|
+
"kind": "variable",
|
|
15049
|
+
"name": "WriteReviewStyles",
|
|
15050
|
+
"default": "css`\n :host {\n display: block;\n font: inherit;\n\n /* The diff tints — see the diff rules below for why they are backgrounds only. */\n --write-review-added: color-mix(in srgb, var(--success-fill-rest, #2da44e) 18%, transparent);\n --write-review-removed: color-mix(in srgb, var(--error-fill-rest, #cf222e) 18%, transparent);\n }\n\n /*\n * The review mounts inside the chat bubble's dialog content, which is overflow: hidden — so a\n * wide event's columns were CLIPPED rather than pushed off screen, with no scrollbar to say\n * anything was missing. A user approving values they cannot see is the failure this whole\n * component exists to prevent, so the table scrolls within itself.\n */\n .scroller {\n overflow-x: auto;\n max-width: 100%;\n }\n\n table {\n border-collapse: collapse;\n width: 100%;\n }\n\n th,\n td {\n border-bottom: calc(var(--stroke-width, 1) * 1px) solid var(--neutral-stroke-rest);\n padding: calc(var(--design-unit, 4) * 1px) calc(var(--design-unit, 4) * 2px);\n text-align: left;\n }\n\n /* A heading is a column name: kept on one line. */\n th {\n white-space: nowrap;\n }\n\n /*\n * A value is never clipped. Every character stays on screen.\n *\n * Clipping was the first bound, and the wrong one: 24ch with an ellipsis cut the END of every\n * cell, which in a changed cell is the NEW value, so the user approved a value they never saw.\n * No cell is safe to clip either. An insert has no pre-image, so none of its cells is\n * \"changed\", and every one of them is a value being written; a delete's cells are the record\n * being removed; and a title attribute holding the full text reaches nobody on a keyboard or a\n * touch screen.\n *\n * A SHORT value stays whole on one line, and the table scrolls. Wrapping every cell broke a\n * short value mid-token in a squeezed table — \"101.\" over \"2345\" — and the first line could\n * pass for the whole value.\n *\n * A LONG value (review-model marks it) wraps within a bound. With no bound at all, one long\n * value (a NOTE another user wrote) widened its column until the changed one sat out of view,\n * behind a scrollbar an overlay-scrollbar platform does not draw until you scroll.\n */\n td {\n white-space: nowrap;\n }\n\n td.long {\n white-space: normal;\n overflow-wrap: anywhere;\n\n /*\n * A floor as well as a ceiling. With only the ceiling, a squeezed table shrank a long value's\n * column to a sliver (a 100-character note became 22 lines of a few characters each) while\n * the one-line cells kept their width. The table scrolls instead.\n */\n min-width: 20ch;\n max-width: 40ch;\n }\n\n /*\n * The two marks this table carries — \"this field is changing\" and \"this field decides which\n * record disappears\" — were weight, colour and a strike-through only. None of that reaches\n * somebody using a screen reader, who is the one approver with no other way to tell, so each\n * mark has words as well.\n */\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n /*\n * A delete shows the whole record and sends its key alone, so the fields that actually decide\n * which record disappears are marked. Not colour alone — an underline carries to a user who\n * cannot distinguish it.\n */\n td.identifying {\n font-weight: 600;\n text-decoration: underline;\n }\n\n /*\n * The diff, the way a code review shows one: what goes is tinted as removed and struck through,\n * what comes in is tinted as added and bold. Only the BACKGROUND is tinted, at low alpha, from\n * the theme's own success and error tokens (with fallbacks, as foundation-forms does), and the\n * text keeps the normal foreground colour: coloured text on a coloured ground is where contrast\n * fails, dark mode first. The tint is never the only signal. Strike-through, weight, the visible\n * + and − marks and the spoken \"was\" and \"now\" all carry the same thing without colour.\n */\n\n /* The mark a user's eye needs: this field is being changed. */\n td.changed {\n font-weight: 600;\n }\n\n /* On its own line above the new value, so neither can push the other out of view. */\n td.changed .was {\n display: block;\n font-weight: 400;\n text-decoration: line-through;\n background: var(--write-review-removed);\n }\n\n td.changed .now {\n display: block;\n background: var(--write-review-added);\n }\n\n /* Room inside the tint, so the − and + do not sit on its edge. */\n td.changed .was,\n td.changed .now {\n padding-inline: calc(var(--design-unit, 4) * 1px);\n }\n\n /*\n * A row that will not be written is never tinted, not even inside a cell. For a refused row\n * review-model already gives it no changed cells, and this is the second guard. For a row the\n * resolved review did not approve, the − and + stay as the record of what was proposed, but\n * without the tint that says it will happen.\n */\n tr.refused td.changed .was,\n tr.refused td.changed .now,\n tr.unwritten td.changed .was,\n tr.unwritten td.changed .now {\n background: none;\n }\n\n /* A whole row coming in, or going. A refused row is neither, and keeps its muted look. */\n tr.added td {\n background: var(--write-review-added);\n }\n\n tr.removed td {\n background: var(--write-review-removed);\n }\n\n /*\n * A closed review's row that was not approved says so in words — without them, a denied modify\n * read in greyscale or by a screen reader exactly like an approved one.\n */\n .not-written {\n margin-inline-start: calc(var(--design-unit, 4) * 1.5px);\n font-size: var(--type-ramp-minus-1-font-size, 0.875em);\n color: var(--neutral-foreground-hint);\n }\n\n /* The empty placeholder: a style no row text can take, so a literal \"(blank)\" cannot pass for it. */\n .blank {\n font-style: italic;\n font-weight: 400;\n color: var(--neutral-foreground-hint);\n }\n\n .mark {\n font-weight: 600;\n padding-inline-end: calc(var(--design-unit, 4) * 1px);\n user-select: none;\n }\n\n /* The row's + or − sits beside its checkbox, not on the baseline under it (where − reads as _). */\n td.select {\n white-space: nowrap;\n }\n\n td.select rapid-checkbox,\n td.select .mark {\n vertical-align: middle;\n }\n\n /* A gap from the checkbox, so the mark reads as the row's sign rather than part of the box. */\n td.select .mark {\n margin-inline-start: calc(var(--design-unit, 4) * 1.5px);\n }\n\n /* The strike-through belongs to the value, not to its − mark. */\n td.changed .was .mark {\n display: inline-block;\n text-decoration: none;\n }\n\n tr.refused {\n color: var(--neutral-foreground-hint);\n }\n\n /* A refusal is a sentence, and it spans the table: it wraps rather than running off it. */\n .problems {\n color: var(--error-fill-rest, #c00);\n white-space: normal;\n }\n\n .actions {\n display: flex;\n gap: calc(var(--design-unit, 4) * 2px);\n margin-top: calc(var(--design-unit, 4) * 2px);\n }\n`"
|
|
15051
|
+
}
|
|
15052
|
+
],
|
|
15053
|
+
"exports": [
|
|
15054
|
+
{
|
|
15055
|
+
"kind": "js",
|
|
15056
|
+
"name": "WriteReviewStyles",
|
|
15057
|
+
"declaration": {
|
|
15058
|
+
"name": "WriteReviewStyles",
|
|
15059
|
+
"module": "src/genesis/write-review/write-review.styles.ts"
|
|
15060
|
+
}
|
|
15061
|
+
}
|
|
15062
|
+
]
|
|
15063
|
+
},
|
|
15064
|
+
{
|
|
15065
|
+
"kind": "javascript-module",
|
|
15066
|
+
"path": "src/genesis/write-review/write-review.template.ts",
|
|
15067
|
+
"declarations": [
|
|
15068
|
+
{
|
|
15069
|
+
"kind": "variable",
|
|
15070
|
+
"name": "WriteReviewTemplate",
|
|
15071
|
+
"type": {
|
|
15072
|
+
"text": "ViewTemplate<GenesisWriteReview>"
|
|
15073
|
+
},
|
|
15074
|
+
"default": "html<GenesisWriteReview>`\n ${when(\n (x) => !!x.model,\n html<GenesisWriteReview>`\n <p>\n ${(x) => x.model?.op} ${(x) => x.model?.rows.length} row(s) in ${(x) => x.model?.resource}.\n Nothing is written until you choose rows and select Write.\n </p>\n <div class=\"scroller\">\n <table aria-label=\"Rows to be written to ${(x) => x.model?.resource}\">\n <thead>\n <tr>\n <th>\n <rapid-checkbox\n aria-label=\"Select all rows\"\n :checked=\"${(x) => x.allSelected}\"\n ?disabled=\"${(x) => x.resolved || !x.model?.selectable.length}\"\n @change=\"${(x, c) => x.setAll(checkedOf(c.event))}\"\n ></rapid-checkbox>\n </th>\n ${repeat(\n (x) => x.model?.columns ?? [],\n html<ReviewColumn>`\n <th>${(c) => c.label}</th>\n `,\n )}\n </tr>\n </thead>\n <tbody>${repeat((x) => x.model?.rows ?? [], row)}</tbody>\n </table>\n </div>\n <div class=\"actions\">\n <rapid-button\n appearance=\"accent\"\n ?disabled=\"${(x) => !x.writable}\"\n @click=\"${(x) => x.write()}\"\n >\n Write ${(x) => (x.rowsSelected ? `${x.rowsSelected} row(s)` : '')}\n </rapid-button>\n ${when(\n (x) => !x.denying,\n html<GenesisWriteReview>`\n <rapid-button ?disabled=\"${(x) => x.resolved}\" @click=\"${(x) => x.startDeny()}\">\n Deny\n </rapid-button>\n `,\n )}\n ${when(\n (x) => x.denying,\n html<GenesisWriteReview>`\n <rapid-text-field\n placeholder=\"Why not? (optional)\"\n :value=\"${(x) => x.denyReason}\"\n @input=\"${(x, c) => {\n x.setDenyReason((c.event.target as HTMLInputElement).value);\n return true;\n }}\"\n ></rapid-text-field>\n <rapid-button ?disabled=\"${(x) => x.resolved}\" @click=\"${(x) => x.confirmDeny()}\">\n Confirm deny\n </rapid-button>\n `,\n )}\n </div>\n `,\n )}\n ${when(\n (x) => x.resolved,\n html<GenesisWriteReview>`\n <p class=\"closed\">${(x) => x.closedSummary}</p>\n `,\n )}\n`"
|
|
15075
|
+
}
|
|
15076
|
+
],
|
|
15077
|
+
"exports": [
|
|
15078
|
+
{
|
|
15079
|
+
"kind": "js",
|
|
15080
|
+
"name": "WriteReviewTemplate",
|
|
15081
|
+
"declaration": {
|
|
15082
|
+
"name": "WriteReviewTemplate",
|
|
15083
|
+
"module": "src/genesis/write-review/write-review.template.ts"
|
|
15084
|
+
}
|
|
15085
|
+
}
|
|
15086
|
+
]
|
|
15087
|
+
},
|
|
15088
|
+
{
|
|
15089
|
+
"kind": "javascript-module",
|
|
15090
|
+
"path": "src/genesis/write-review/write-review.ts",
|
|
15091
|
+
"declarations": [
|
|
15092
|
+
{
|
|
15093
|
+
"kind": "variable",
|
|
15094
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
15095
|
+
"type": {
|
|
15096
|
+
"text": "string"
|
|
15097
|
+
},
|
|
15098
|
+
"default": "'genesis-write-review'",
|
|
15099
|
+
"description": "The tag the bridge asks for by name when it requests the review interaction."
|
|
15100
|
+
},
|
|
15101
|
+
{
|
|
15102
|
+
"kind": "class",
|
|
15103
|
+
"description": "The review a user reads before anything is written.",
|
|
15104
|
+
"name": "GenesisWriteReview",
|
|
15105
|
+
"members": [
|
|
15106
|
+
{
|
|
15107
|
+
"kind": "field",
|
|
15108
|
+
"name": "interactionId",
|
|
15109
|
+
"type": {
|
|
15110
|
+
"text": "string"
|
|
15111
|
+
},
|
|
15112
|
+
"default": "''",
|
|
15113
|
+
"description": "Set by the interaction wrapper on every (re)mount."
|
|
15114
|
+
},
|
|
15115
|
+
{
|
|
15116
|
+
"kind": "field",
|
|
15117
|
+
"name": "interaction",
|
|
15118
|
+
"type": {
|
|
15119
|
+
"text": "AiChatInteraction<ReviewModel, number[]>"
|
|
15120
|
+
},
|
|
15121
|
+
"description": "The host-set descriptor: the model to render while pending, the outcome once resolved."
|
|
15122
|
+
},
|
|
15123
|
+
{
|
|
15124
|
+
"kind": "field",
|
|
15125
|
+
"name": "selected",
|
|
15126
|
+
"type": {
|
|
15127
|
+
"text": "number[]"
|
|
15128
|
+
},
|
|
15129
|
+
"description": "Chosen rows, by index. Starts empty — see canWrite and the model's own reasoning."
|
|
15130
|
+
},
|
|
15131
|
+
{
|
|
15132
|
+
"kind": "field",
|
|
15133
|
+
"name": "denying",
|
|
15134
|
+
"type": {
|
|
15135
|
+
"text": "boolean"
|
|
15136
|
+
},
|
|
15137
|
+
"default": "false",
|
|
15138
|
+
"description": "True while the user is writing a reason for denying."
|
|
15139
|
+
},
|
|
15140
|
+
{
|
|
15141
|
+
"kind": "field",
|
|
15142
|
+
"name": "denyReason",
|
|
15143
|
+
"type": {
|
|
15144
|
+
"text": "string"
|
|
15145
|
+
},
|
|
15146
|
+
"default": "''"
|
|
15147
|
+
},
|
|
15148
|
+
{
|
|
15149
|
+
"kind": "field",
|
|
15150
|
+
"name": "model",
|
|
15151
|
+
"type": {
|
|
15152
|
+
"text": "ReviewModel | undefined"
|
|
15153
|
+
},
|
|
15154
|
+
"description": "The rows, whether the review is still open or already resolved: a user who has approved a\nwrite should still be able to see what they approved. Acting on it is what `resolved`\nstops, not reading it.",
|
|
15155
|
+
"readonly": true
|
|
15156
|
+
},
|
|
15157
|
+
{
|
|
15158
|
+
"kind": "field",
|
|
15159
|
+
"name": "resolved",
|
|
15160
|
+
"type": {
|
|
15161
|
+
"text": "boolean"
|
|
15162
|
+
},
|
|
15163
|
+
"readonly": true
|
|
15164
|
+
},
|
|
15165
|
+
{
|
|
15166
|
+
"kind": "field",
|
|
15167
|
+
"name": "approved",
|
|
15168
|
+
"type": {
|
|
15169
|
+
"text": "number[]"
|
|
15170
|
+
},
|
|
15171
|
+
"description": "The rows the user approved, once the review has resolved — empty for a rejection or a\ntimeout, and while it is still open.",
|
|
15172
|
+
"readonly": true
|
|
15173
|
+
},
|
|
15174
|
+
{
|
|
15175
|
+
"kind": "field",
|
|
15176
|
+
"name": "closedSummary",
|
|
15177
|
+
"type": {
|
|
15178
|
+
"text": "string"
|
|
15179
|
+
},
|
|
15180
|
+
"description": "What a CLOSED review can truthfully say about its outcome.",
|
|
15181
|
+
"readonly": true
|
|
15182
|
+
},
|
|
15183
|
+
{
|
|
15184
|
+
"kind": "method",
|
|
15185
|
+
"name": "interactionChanged",
|
|
15186
|
+
"return": {
|
|
15187
|
+
"type": {
|
|
15188
|
+
"text": "void"
|
|
15189
|
+
}
|
|
15190
|
+
},
|
|
15191
|
+
"description": "Every mount is a fresh element whose selection starts empty, so each state says where its\nselection comes from."
|
|
15192
|
+
},
|
|
15193
|
+
{
|
|
15194
|
+
"kind": "method",
|
|
15195
|
+
"name": "park",
|
|
15196
|
+
"privacy": "private",
|
|
15197
|
+
"return": {
|
|
15198
|
+
"type": {
|
|
15199
|
+
"text": "void"
|
|
15200
|
+
}
|
|
15201
|
+
},
|
|
15202
|
+
"description": "Keeps what the user has done so far on the interaction's context, where the next mount of a\nstill-open review finds it."
|
|
15203
|
+
},
|
|
15204
|
+
{
|
|
15205
|
+
"kind": "field",
|
|
15206
|
+
"name": "rowsSelected",
|
|
15207
|
+
"type": {
|
|
15208
|
+
"text": "number"
|
|
15209
|
+
},
|
|
15210
|
+
"readonly": true
|
|
15211
|
+
},
|
|
15212
|
+
{
|
|
15213
|
+
"kind": "field",
|
|
15214
|
+
"name": "writable",
|
|
15215
|
+
"type": {
|
|
15216
|
+
"text": "boolean"
|
|
15217
|
+
},
|
|
15218
|
+
"description": "Whether Write may fire: never on an empty selection.",
|
|
15219
|
+
"readonly": true
|
|
15220
|
+
},
|
|
15221
|
+
{
|
|
15222
|
+
"kind": "field",
|
|
15223
|
+
"name": "allSelected",
|
|
15224
|
+
"type": {
|
|
15225
|
+
"text": "boolean"
|
|
15226
|
+
},
|
|
15227
|
+
"readonly": true
|
|
15228
|
+
},
|
|
15229
|
+
{
|
|
15230
|
+
"kind": "method",
|
|
15231
|
+
"name": "isSelected",
|
|
15232
|
+
"return": {
|
|
15233
|
+
"type": {
|
|
15234
|
+
"text": "boolean"
|
|
15235
|
+
}
|
|
15236
|
+
},
|
|
15237
|
+
"parameters": [
|
|
15238
|
+
{
|
|
15239
|
+
"name": "index",
|
|
15240
|
+
"type": {
|
|
15241
|
+
"text": "number"
|
|
15242
|
+
}
|
|
15243
|
+
}
|
|
15244
|
+
]
|
|
15245
|
+
},
|
|
15246
|
+
{
|
|
15247
|
+
"kind": "method",
|
|
15248
|
+
"name": "setSelected",
|
|
15249
|
+
"return": {
|
|
15250
|
+
"type": {
|
|
15251
|
+
"text": "void"
|
|
15252
|
+
}
|
|
15253
|
+
},
|
|
15254
|
+
"parameters": [
|
|
15255
|
+
{
|
|
15256
|
+
"name": "index",
|
|
15257
|
+
"type": {
|
|
15258
|
+
"text": "number"
|
|
15259
|
+
}
|
|
15260
|
+
},
|
|
15261
|
+
{
|
|
15262
|
+
"name": "checked",
|
|
15263
|
+
"type": {
|
|
15264
|
+
"text": "boolean"
|
|
15265
|
+
}
|
|
15266
|
+
}
|
|
15267
|
+
],
|
|
15268
|
+
"description": "Makes one row agree with what its checkbox now says. A row the bridge refused cannot be\nchosen, whatever the markup does."
|
|
15269
|
+
},
|
|
15270
|
+
{
|
|
15271
|
+
"kind": "method",
|
|
15272
|
+
"name": "setAll",
|
|
15273
|
+
"return": {
|
|
15274
|
+
"type": {
|
|
15275
|
+
"text": "void"
|
|
15276
|
+
}
|
|
15277
|
+
},
|
|
15278
|
+
"parameters": [
|
|
15279
|
+
{
|
|
15280
|
+
"name": "checked",
|
|
15281
|
+
"type": {
|
|
15282
|
+
"text": "boolean"
|
|
15283
|
+
}
|
|
15284
|
+
}
|
|
15285
|
+
],
|
|
15286
|
+
"description": "One click for a good batch — a deliberate one, which is the point of starting empty."
|
|
15287
|
+
},
|
|
15288
|
+
{
|
|
15289
|
+
"kind": "method",
|
|
15290
|
+
"name": "write",
|
|
15291
|
+
"return": {
|
|
15292
|
+
"type": {
|
|
15293
|
+
"text": "void"
|
|
15294
|
+
}
|
|
15295
|
+
}
|
|
15296
|
+
},
|
|
15297
|
+
{
|
|
15298
|
+
"kind": "method",
|
|
15299
|
+
"name": "resolve",
|
|
15300
|
+
"privacy": "private",
|
|
15301
|
+
"return": {
|
|
15302
|
+
"type": {
|
|
15303
|
+
"text": "void"
|
|
15304
|
+
}
|
|
15305
|
+
},
|
|
15306
|
+
"parameters": [
|
|
15307
|
+
{
|
|
15308
|
+
"name": "result",
|
|
15309
|
+
"type": {
|
|
15310
|
+
"text": "InteractionResult<number[]>"
|
|
15311
|
+
}
|
|
15312
|
+
}
|
|
15313
|
+
],
|
|
15314
|
+
"description": "The one way this widget talks back: `interaction-completed`, exactly once."
|
|
15315
|
+
},
|
|
15316
|
+
{
|
|
15317
|
+
"kind": "method",
|
|
15318
|
+
"name": "startDeny",
|
|
15319
|
+
"return": {
|
|
15320
|
+
"type": {
|
|
15321
|
+
"text": "void"
|
|
15322
|
+
}
|
|
15323
|
+
}
|
|
15324
|
+
},
|
|
15325
|
+
{
|
|
15326
|
+
"kind": "method",
|
|
15327
|
+
"name": "setDenyReason",
|
|
15328
|
+
"return": {
|
|
15329
|
+
"type": {
|
|
15330
|
+
"text": "void"
|
|
15331
|
+
}
|
|
15332
|
+
},
|
|
15333
|
+
"parameters": [
|
|
15334
|
+
{
|
|
15335
|
+
"name": "reason",
|
|
15336
|
+
"type": {
|
|
15337
|
+
"text": "string"
|
|
15338
|
+
}
|
|
15339
|
+
}
|
|
15340
|
+
],
|
|
15341
|
+
"description": "The deny reason as the user types it."
|
|
15342
|
+
},
|
|
15343
|
+
{
|
|
15344
|
+
"kind": "method",
|
|
15345
|
+
"name": "confirmDeny",
|
|
15346
|
+
"return": {
|
|
15347
|
+
"type": {
|
|
15348
|
+
"text": "void"
|
|
15349
|
+
}
|
|
15350
|
+
}
|
|
15351
|
+
}
|
|
15352
|
+
],
|
|
15353
|
+
"superclass": {
|
|
15354
|
+
"name": "GenesisElement",
|
|
15355
|
+
"package": "@genesislcap/web-core"
|
|
15356
|
+
},
|
|
15357
|
+
"tagName": "GENESIS_WRITE_REVIEW",
|
|
15358
|
+
"customElement": true
|
|
15359
|
+
}
|
|
15360
|
+
],
|
|
15361
|
+
"exports": [
|
|
15362
|
+
{
|
|
15363
|
+
"kind": "js",
|
|
15364
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
15365
|
+
"declaration": {
|
|
15366
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
15367
|
+
"module": "src/genesis/write-review/write-review.ts"
|
|
15368
|
+
}
|
|
15369
|
+
},
|
|
15370
|
+
{
|
|
15371
|
+
"kind": "js",
|
|
15372
|
+
"name": "GenesisWriteReview",
|
|
15373
|
+
"declaration": {
|
|
15374
|
+
"name": "GenesisWriteReview",
|
|
15375
|
+
"module": "src/genesis/write-review/write-review.ts"
|
|
15376
|
+
}
|
|
15377
|
+
},
|
|
15378
|
+
{
|
|
15379
|
+
"kind": "custom-element-definition",
|
|
15380
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
15381
|
+
"declaration": {
|
|
15382
|
+
"name": "GenesisWriteReview",
|
|
15383
|
+
"module": "src/genesis/write-review/write-review.ts"
|
|
15384
|
+
}
|
|
15385
|
+
}
|
|
15386
|
+
]
|
|
15387
|
+
},
|
|
14750
15388
|
{
|
|
14751
15389
|
"kind": "javascript-module",
|
|
14752
15390
|
"path": "src/state/persistence/build-timeline-entries.ts",
|