@almadar/std 16.189.0 → 16.191.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.
@@ -49422,6 +49422,17 @@ function stdModalModalRecordOrbital(params = {}) {
49422
49422
  "pending"
49423
49423
  ]
49424
49424
  },
49425
+ {
49426
+ "default": {},
49427
+ "description": "The row an edit-mode OPEN pre-fills from when its payload carries no row. Stashed by SEED \u2014 hosts route the surface's loaded event here (e.g. a document look's RecordItemLoaded) so scalar-only action events ({ id }) can still open a fully seeded settings form.",
49428
+ "intrinsic": true,
49429
+ "name": "seedRow",
49430
+ "relation": {
49431
+ "cardinality": "one",
49432
+ "entity": "ModalRecord"
49433
+ },
49434
+ "type": "relation"
49435
+ },
49425
49436
  {
49426
49437
  "name": "createdAt",
49427
49438
  "type": "string"
@@ -49572,7 +49583,9 @@ function stdModalModalRecordOrbital(params = {}) {
49572
49583
  }
49573
49584
  ],
49574
49585
  "entityContract": {
49575
- "provides": [],
49586
+ "provides": [
49587
+ "seedRow"
49588
+ ],
49576
49589
  "requires": []
49577
49590
  },
49578
49591
  "entityRebindable": true,
@@ -49585,6 +49598,19 @@ function stdModalModalRecordOrbital(params = {}) {
49585
49598
  "key": "INIT",
49586
49599
  "name": "Initialize"
49587
49600
  },
49601
+ {
49602
+ "description": "Stash the row an edit-mode OPEN will pre-fill from. Hosts route the owning surface's loaded event here (e.g. RecordItemLoaded from a document look) so an OPEN carrying only { id } still opens a fully seeded form.",
49603
+ "key": "SEED",
49604
+ "name": "Seed",
49605
+ "payloadSchema": [
49606
+ {
49607
+ "name": "row",
49608
+ "type": "ModalRecord"
49609
+ }
49610
+ ],
49611
+ "synonyms": "preload row, stash record, seed form, prefill",
49612
+ "tier": "domain"
49613
+ },
49588
49614
  {
49589
49615
  "description": "A request to display the modal window.",
49590
49616
  "key": "OPEN",
@@ -49681,6 +49707,22 @@ function stdModalModalRecordOrbital(params = {}) {
49681
49707
  "from": "closed",
49682
49708
  "to": "closed"
49683
49709
  },
49710
+ {
49711
+ "effects": [
49712
+ [
49713
+ "set",
49714
+ "@entity.seedRow",
49715
+ [
49716
+ "object/merge",
49717
+ "@payload.row",
49718
+ {}
49719
+ ]
49720
+ ]
49721
+ ],
49722
+ "event": "SEED",
49723
+ "from": "closed",
49724
+ "to": "closed"
49725
+ },
49684
49726
  {
49685
49727
  "effects": [
49686
49728
  [
@@ -49714,7 +49756,15 @@ function stdModalModalRecordOrbital(params = {}) {
49714
49756
  },
49715
49757
  {
49716
49758
  "cancelEvent": "CLOSE",
49717
- "entity": "@payload.row",
49759
+ "entity": [
49760
+ "object/merge",
49761
+ "@entity.seedRow",
49762
+ [
49763
+ "object/merge",
49764
+ "@payload.row",
49765
+ {}
49766
+ ]
49767
+ ],
49718
49768
  "fieldOverrides": "@config.fieldOverrides",
49719
49769
  "fields": "@config.fields",
49720
49770
  "mode": "@config.mode",
@@ -49737,10 +49787,39 @@ function stdModalModalRecordOrbital(params = {}) {
49737
49787
  "@config.mode",
49738
49788
  "create"
49739
49789
  ],
49740
- "@payload.row"
49790
+ "@payload.row",
49791
+ [
49792
+ "!=",
49793
+ [
49794
+ "str/default",
49795
+ [
49796
+ "object/get",
49797
+ "@entity.seedRow",
49798
+ "id"
49799
+ ],
49800
+ ""
49801
+ ],
49802
+ ""
49803
+ ]
49741
49804
  ],
49742
49805
  "to": "open"
49743
49806
  },
49807
+ {
49808
+ "effects": [
49809
+ [
49810
+ "set",
49811
+ "@entity.seedRow",
49812
+ [
49813
+ "object/merge",
49814
+ "@payload.row",
49815
+ {}
49816
+ ]
49817
+ ]
49818
+ ],
49819
+ "event": "SEED",
49820
+ "from": "open",
49821
+ "to": "open"
49822
+ },
49744
49823
  {
49745
49824
  "effects": [
49746
49825
  [
@@ -61843,7 +61922,7 @@ function stdRecordDetailRecordItemOrbital(params = {}) {
61843
61922
  },
61844
61923
  {
61845
61924
  "default": {},
61846
- "description": "The full row exactly as last fetched (relations hydrated when config.include asks). The document look binds it as the panel's entity and hands it to header actions as ?row, so a settings modal seeds from the real record instead of the atom's four mapped columns.",
61925
+ "description": "The full row exactly as last fetched (relations hydrated when config.include asks). The details drawer binds it, and hosts that need it (e.g. a settings modal) stash it from RecordItemLoaded \u2014 the document panel itself takes only scalar props and emits scalar payloads ({ id, title }).",
61847
61926
  "intrinsic": true,
61848
61927
  "name": "loadedRow",
61849
61928
  "type": "object"
@@ -61981,7 +62060,7 @@ function stdRecordDetailRecordItemOrbital(params = {}) {
61981
62060
  "className": "w-full",
61982
62061
  "editEvent": "EDIT_CONTENT",
61983
62062
  "editLabel": "@config.editLabel",
61984
- "entity": "@entity.loadedRow",
62063
+ "id": "@entity.id",
61985
62064
  "maxInlineActions": "@config.maxInlineActions",
61986
62065
  "placeholder": "@config.placeholder",
61987
62066
  "subtitle": "@entity.description",
@@ -62004,7 +62083,7 @@ function stdRecordDetailRecordItemOrbital(params = {}) {
62004
62083
  "doneEvent": "DONE_EDITING",
62005
62084
  "doneLabel": "@config.doneLabel",
62006
62085
  "editing": true,
62007
- "entity": "@entity.loadedRow",
62086
+ "id": "@entity.id",
62008
62087
  "maxInlineActions": "@config.maxInlineActions",
62009
62088
  "placeholder": "@config.placeholder",
62010
62089
  "subtitle": "@entity.description",