Advertisement
blistovmhz

Untitled

Apr 13th, 2022
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.41 KB | None | 0 0
  1. {
  2. "fe8fe6839c47b18e595e": {
  3. "id": 24,
  4. "created_at": "2022-04-11T23:21:50.681Z",
  5. "updated_at": "2022-04-13T16:43:16.000Z",
  6. "name": "Address Card",
  7. "uid": "fe8fe6839c47b18e595e",
  8. "description": null,
  9. "linked_page": null,
  10. "pageConfig": {
  11. "viewer": {
  12. "type": "Container",
  13. "id": "fe8fe6839c47b18e595e",
  14. "viewType": "Group",
  15. "columns": 1,
  16. "items": [
  17. {
  18. "icon": "view_day",
  19. "type": "Card",
  20. "name": "Card",
  21. "args": {},
  22. "id": "c668eb5f0ca7d3646d47",
  23. "bindStore": "address",
  24. "buttonsRight": [
  25. {
  26. "color": "secondary",
  27. "text": "",
  28. "icon": "link",
  29. "action": [
  30. {
  31. "actionType": "dialog",
  32. "description": "Create address",
  33. "actionArgs": {
  34. "payloads": [],
  35. "uid": "d0b22e0a8cae89fd9c72",
  36. "transfers": [
  37. {
  38. "name": "Push address ID to dialog",
  39. "from": {
  40. "type": "store_value",
  41. "store": "address",
  42. "path": "address.0.id"
  43. },
  44. "to": {
  45. "type": "store_value",
  46. "store": "inputs",
  47. "path": "address_id"
  48. },
  49. "target": "{instance_uid}-d0b22e0a8cae89fd9c72",
  50. "initiator": "{instance_uid}",
  51. "v": "1",
  52. "event": "change",
  53. "action": {},
  54. "target_uid": "d0b22e0a8cae89fd9c72"
  55. },
  56. {
  57. "name": "Modify Save Button Configuration",
  58. "v": "2",
  59. "target": "{instance_uid}-c0003da453bb627f7313",
  60. "event": "dialog_open",
  61. "initiator": "{instance_uid}",
  62. "type": "update_element_config",
  63. "config": {
  64. "action": {
  65. "mode": "overwrite",
  66. "value": [
  67. {
  68. "actionType": "sendPayload",
  69. "description": "New Action",
  70. "actionArgs": {
  71. "payloads": [
  72. {
  73. "name": "save",
  74. "target": "{instance_uid}",
  75. "action": {
  76. "type": "save_datasource",
  77. "store": "address",
  78. "stores": []
  79. }
  80. },
  81. {
  82. "name": "Callback the record ID",
  83. "target": "{parent_instance_uid}",
  84. "action": {
  85. "type": "update_store_value",
  86. "to": {
  87. "type": "store_value",
  88. "store": "inputs",
  89. "path": "address_id"
  90. },
  91. "value": {
  92. "type": "store_value",
  93. "store": "address",
  94. "path": "address.0.id"
  95. }
  96. }
  97. },
  98. {
  99. "name": "Reload parent ds",
  100. "target": "{parent_instance_uid}",
  101. "action": {
  102. "type": "force_datasource_update",
  103. "store": "address",
  104. "stores": []
  105. }
  106. },
  107. {
  108. "name": "Close Dialog",
  109. "target": "{instance_uid}",
  110. "action": {
  111. "type": "close_dialog"
  112. }
  113. }
  114. ]
  115. },
  116. "debug": false
  117. }
  118. ]
  119. }
  120. },
  121. "action": {},
  122. "target_uid": "d0b22e0a8cae89fd9c72"
  123. }
  124. ]
  125. },
  126. "debug": false
  127. }
  128. ]
  129. }
  130. ],
  131. "template": "<p><span data-mention=\"$:street1\"><span class=\"mention\" data-mention=\"$:street1\">$:street1</span></span> <span data-mention=\"$:street2\"><span class=\"mention\" data-mention=\"$:street2\">$:street2</span></span>&nbsp;<br><span data-mention=\"$:city\"><span class=\"mention\" data-mention=\"$:city\">$:city</span></span>, <span data-mention=\"$:state\"><span class=\"mention\" data-mention=\"$:state\">$:state</span></span>&nbsp;<br><span data-mention=\"$:country\"><span class=\"mention\" data-mention=\"$:country\">$:country</span></span>&nbsp;<br><span data-mention=\"$:zip\"><span class=\"mention\" data-mention=\"$:zip\">$:zip</span></span>&nbsp;</p>",
  132. "label": "Address",
  133. "bindProperty": "address.0"
  134. }
  135. ],
  136. "bindStore": ""
  137. },
  138. "stores": [
  139. {
  140. "name": "address",
  141. "type": "Datasource",
  142. "isFetching": false,
  143. "afterFetch": [],
  144. "datasource": {
  145. "type": "GqlizerRaw",
  146. "value": "query ($address_id: JSON) {\n address(where: [\"AND\", {id: {eq: $address_id}}]) {\n id\n street1\n street2\n unit\n pobox\n city\n zip\n state\n country\n }\n}",
  147. "vars": {
  148. "address_id": {
  149. "required": false,
  150. "varType": "Unknown",
  151. "name": "address_id",
  152. "store_value": {
  153. "store": "inputs",
  154. "property": "address_id"
  155. },
  156. "dev_value": ""
  157. }
  158. },
  159. "autoload_disabled": false
  160. }
  161. }
  162. ],
  163. "inputs": [
  164. {
  165. "field": "address_id",
  166. "paramid": "b984e91ac4074ab894ce",
  167. "title": "address_id",
  168. "type": "string",
  169. "nice_name": "address_id",
  170. "required": false
  171. }
  172. ]
  173. }
  174. }
  175. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement