@jigx/core-sdk 1.2.0-next.6 → 1.2.0-next.60

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.
Files changed (479) hide show
  1. package/README.md +9 -83
  2. package/dist/PACKAGE.d.ts +1 -0
  3. package/dist/PACKAGE.d.ts.map +1 -1
  4. package/dist/PACKAGE.js +3 -2
  5. package/dist/abstract/app-name.d.ts +2 -2
  6. package/dist/abstract/app-name.d.ts.map +1 -1
  7. package/dist/abstract/app-name.js +3 -3
  8. package/dist/abstract/sdk.expression.d.ts +8 -0
  9. package/dist/abstract/sdk.expression.d.ts.map +1 -1
  10. package/dist/abstract/sdk.expression.js +13 -3
  11. package/dist/abstract/sdk.text.d.ts +1 -0
  12. package/dist/abstract/sdk.text.d.ts.map +1 -1
  13. package/dist/abstract/sdk.text.js +8 -2
  14. package/dist/abstract/sdk.types.d.ts +3 -3
  15. package/dist/abstract/sdk.types.d.ts.map +1 -1
  16. package/dist/abstract/sdk.types.js +21 -30
  17. package/dist/abstract/zod.types.d.ts +24 -4
  18. package/dist/abstract/zod.types.d.ts.map +1 -1
  19. package/dist/abstract/zod.types.js +11 -4
  20. package/dist/action/index.d.ts +5 -0
  21. package/dist/action/index.d.ts.map +1 -1
  22. package/dist/action/index.js +3 -1
  23. package/dist/action/ja.action-list.d.ts +2 -3
  24. package/dist/action/ja.action-list.d.ts.map +1 -1
  25. package/dist/action/ja.action-list.js +2 -3
  26. package/dist/action/ja.confirm.d.ts +2 -1
  27. package/dist/action/ja.confirm.d.ts.map +1 -1
  28. package/dist/action/ja.confirm.js +24 -6
  29. package/dist/action/ja.connect-sign-in.d.ts +34 -0
  30. package/dist/action/ja.connect-sign-in.d.ts.map +1 -0
  31. package/dist/action/ja.connect-sign-in.js +29 -0
  32. package/dist/action/ja.delete-queue-command.d.ts +11 -6
  33. package/dist/action/ja.delete-queue-command.d.ts.map +1 -1
  34. package/dist/action/ja.delete-queue-command.js +8 -8
  35. package/dist/action/ja.execute-entities.d.ts +2 -1
  36. package/dist/action/ja.execute-entities.d.ts.map +1 -1
  37. package/dist/action/ja.execute-entities.js +3 -2
  38. package/dist/action/ja.execute-entity.abstract.d.ts +13 -2
  39. package/dist/action/ja.execute-entity.abstract.d.ts.map +1 -1
  40. package/dist/action/ja.execute-entity.abstract.js +25 -1
  41. package/dist/action/ja.execute-sql.d.ts +4 -1
  42. package/dist/action/ja.execute-sql.d.ts.map +1 -1
  43. package/dist/action/ja.execute-sql.js +31 -15
  44. package/dist/action/ja.generate-pdf.d.ts +48 -2
  45. package/dist/action/ja.generate-pdf.d.ts.map +1 -1
  46. package/dist/action/ja.generate-pdf.js +7 -1
  47. package/dist/action/ja.in-background.d.ts +19 -2
  48. package/dist/action/ja.in-background.d.ts.map +1 -1
  49. package/dist/action/ja.in-background.factory.d.ts +9 -1
  50. package/dist/action/ja.in-background.factory.d.ts.map +1 -1
  51. package/dist/action/ja.in-background.factory.js +5 -1
  52. package/dist/action/ja.in-background.js +26 -3
  53. package/dist/action/ja.jig-actions.d.ts +3 -2
  54. package/dist/action/ja.jig-actions.d.ts.map +1 -1
  55. package/dist/action/ja.jig-actions.js +7 -6
  56. package/dist/action/ja.on-button.factory.d.ts +4 -0
  57. package/dist/action/ja.on-button.factory.d.ts.map +1 -1
  58. package/dist/action/ja.on-button.factory.js +5 -1
  59. package/dist/action/ja.open-map.abstract.d.ts +2 -2
  60. package/dist/action/ja.open-map.abstract.d.ts.map +1 -1
  61. package/dist/action/ja.open-map.abstract.js +1 -1
  62. package/dist/action/ja.open-map.d.ts +1 -1
  63. package/dist/action/ja.open-map.js +8 -4
  64. package/dist/action/ja.open-media-picker.abstract.d.ts +8 -0
  65. package/dist/action/ja.open-media-picker.abstract.d.ts.map +1 -1
  66. package/dist/action/ja.open-media-picker.abstract.js +1 -1
  67. package/dist/action/ja.open-media-picker.d.ts +8 -0
  68. package/dist/action/ja.open-media-picker.d.ts.map +1 -1
  69. package/dist/action/ja.open-media-picker.js +8 -1
  70. package/dist/action/ja.queue-options.d.ts +27 -0
  71. package/dist/action/ja.queue-options.d.ts.map +1 -0
  72. package/dist/action/ja.queue-options.js +30 -0
  73. package/dist/action/ja.retry-queue-command.d.ts +9 -4
  74. package/dist/action/ja.retry-queue-command.d.ts.map +1 -1
  75. package/dist/action/ja.retry-queue-command.js +9 -5
  76. package/dist/action/ja.set-screen-state.js +2 -2
  77. package/dist/action/ja.set-state.d.ts +22 -0
  78. package/dist/action/ja.set-state.d.ts.map +1 -0
  79. package/dist/action/ja.set-state.js +24 -0
  80. package/dist/action/ja.share.d.ts +2 -3
  81. package/dist/action/ja.share.d.ts.map +1 -1
  82. package/dist/action/ja.share.js +1 -1
  83. package/dist/action/ja.show-alert.d.ts +12 -30
  84. package/dist/action/ja.show-alert.d.ts.map +1 -1
  85. package/dist/action/ja.show-alert.js +17 -20
  86. package/dist/action/ja.submit-form.d.ts +10 -2
  87. package/dist/action/ja.submit-form.d.ts.map +1 -1
  88. package/dist/action/ja.submit-form.js +12 -5
  89. package/dist/action/ja.swipeable-action.d.ts.map +1 -1
  90. package/dist/action/ja.swipeable-action.js +4 -1
  91. package/dist/action/ja.sync-entities.d.ts +3 -2
  92. package/dist/action/ja.sync-entities.d.ts.map +1 -1
  93. package/dist/action/ja.sync-entities.js +9 -12
  94. package/dist/application/application.component.d.ts +90 -0
  95. package/dist/application/application.component.d.ts.map +1 -0
  96. package/dist/application/application.component.js +69 -0
  97. package/dist/application/application.sdk.d.ts +32 -6
  98. package/dist/application/application.sdk.d.ts.map +1 -1
  99. package/dist/application/application.sdk.js +43 -12
  100. package/dist/application/application.tab.d.ts +4 -3
  101. package/dist/application/application.tab.d.ts.map +1 -1
  102. package/dist/application/application.tab.js +2 -2
  103. package/dist/application/application.table-changed.d.ts +19 -0
  104. package/dist/application/application.table-changed.d.ts.map +1 -0
  105. package/dist/application/application.table-changed.js +22 -0
  106. package/dist/application/context.sdk.d.ts +14 -10
  107. package/dist/application/context.sdk.d.ts.map +1 -1
  108. package/dist/application/context.sdk.js +34 -45
  109. package/dist/application/index.d.ts +2 -0
  110. package/dist/application/index.d.ts.map +1 -1
  111. package/dist/application/index.js +3 -1
  112. package/dist/assets/example-extraction-cache.json +5 -5
  113. package/dist/assets/extracted-core-sdk-examples.yaml +1512 -1032
  114. package/dist/assets/tabler-icons.csv +5185 -0
  115. package/dist/builder/application-analyzer/application-analyzer.d.ts +1 -1
  116. package/dist/builder/application-analyzer/application-analyzer.d.ts.map +1 -1
  117. package/dist/builder/application-analyzer/application-analyzer.js +16 -13
  118. package/dist/builder/builder.js +3 -3
  119. package/dist/builder/types.d.ts +1 -1
  120. package/dist/builder/types.d.ts.map +1 -1
  121. package/dist/builder/types.js +1 -1
  122. package/dist/builder/validate-datasource-ids.d.ts +0 -10
  123. package/dist/builder/validate-datasource-ids.d.ts.map +1 -1
  124. package/dist/builder/validate-datasource-ids.js +2 -5
  125. package/dist/component/common/jc.chart.common.builders.d.ts.map +1 -1
  126. package/dist/component/common/jc.chart.common.builders.js +2 -1
  127. package/dist/component/common/jc.component.types.d.ts +22 -5
  128. package/dist/component/common/jc.component.types.d.ts.map +1 -1
  129. package/dist/component/common/jc.component.types.js +19 -19
  130. package/dist/component/common/jc.context.d.ts +1 -1
  131. package/dist/component/common/jc.context.d.ts.map +1 -1
  132. package/dist/component/common/jc.context.js +1 -1
  133. package/dist/component/common/jc.field-base.types.d.ts +1 -1
  134. package/dist/component/common/jc.field-base.types.d.ts.map +1 -1
  135. package/dist/component/common/jc.field-base.types.js +1 -1
  136. package/dist/component/common/jc.left-right.element.icon.d.ts.map +1 -1
  137. package/dist/component/common/jc.left-right.element.icon.js +3 -8
  138. package/dist/component/common/jc.picker-field-options.types.d.ts +4 -0
  139. package/dist/component/common/jc.picker-field-options.types.d.ts.map +1 -1
  140. package/dist/component/common/jc.picker-field-options.types.js +1 -1
  141. package/dist/component/common/jc.validation.d.ts +1 -1
  142. package/dist/component/common/jc.validation.d.ts.map +1 -1
  143. package/dist/component/common/jc.validation.js +2 -2
  144. package/dist/component/index.d.ts +3 -0
  145. package/dist/component/index.d.ts.map +1 -1
  146. package/dist/component/index.js +4 -1
  147. package/dist/component/jc.abstract.d.ts +3 -3
  148. package/dist/component/jc.abstract.d.ts.map +1 -1
  149. package/dist/component/jc.abstract.factory.d.ts +11 -1
  150. package/dist/component/jc.abstract.factory.d.ts.map +1 -1
  151. package/dist/component/jc.abstract.factory.js +87 -173
  152. package/dist/component/jc.abstract.js +1 -1
  153. package/dist/component/jc.abstract.utils.d.ts.map +1 -1
  154. package/dist/component/jc.abstract.utils.js +1 -2
  155. package/dist/component/jc.amount-control.d.ts +2 -2
  156. package/dist/component/jc.amount-control.d.ts.map +1 -1
  157. package/dist/component/jc.amount-control.js +1 -1
  158. package/dist/component/jc.avatar-field.d.ts.map +1 -1
  159. package/dist/component/jc.avatar-field.js +4 -1
  160. package/dist/component/jc.avatar.d.ts.map +1 -1
  161. package/dist/component/jc.avatar.js +7 -2
  162. package/dist/component/jc.banner.d.ts +2 -0
  163. package/dist/component/jc.banner.d.ts.map +1 -1
  164. package/dist/component/jc.card.on-custom-component.d.ts +89 -0
  165. package/dist/component/jc.card.on-custom-component.d.ts.map +1 -0
  166. package/dist/component/jc.card.on-custom-component.js +89 -0
  167. package/dist/component/jc.card.on-default.d.ts +5 -1
  168. package/dist/component/jc.card.on-default.d.ts.map +1 -1
  169. package/dist/component/jc.card.on-default.js +5 -1
  170. package/dist/component/jc.carousel.js +2 -2
  171. package/dist/component/jc.chat-message.d.ts.map +1 -1
  172. package/dist/component/jc.chat-message.js +11 -5
  173. package/dist/component/jc.chat.d.ts +1 -0
  174. package/dist/component/jc.chat.d.ts.map +1 -1
  175. package/dist/component/jc.chat.js +3 -3
  176. package/dist/component/jc.custom-component.interop.d.ts +4 -1
  177. package/dist/component/jc.custom-component.interop.d.ts.map +1 -1
  178. package/dist/component/jc.custom-component.interop.js +5 -2
  179. package/dist/component/jc.dropdown.item.d.ts.map +1 -1
  180. package/dist/component/jc.dropdown.item.js +9 -4
  181. package/dist/component/jc.duration-picker.d.ts.map +1 -1
  182. package/dist/component/jc.duration-picker.js +10 -14
  183. package/dist/component/jc.email-field.d.ts +2 -2
  184. package/dist/component/jc.email-field.d.ts.map +1 -1
  185. package/dist/component/jc.email-field.js +4 -5
  186. package/dist/component/jc.entity-field.d.ts.map +1 -1
  187. package/dist/component/jc.entity-field.js +3 -6
  188. package/dist/component/jc.expander.d.ts +1 -1
  189. package/dist/component/jc.expander.header.d.ts.map +1 -1
  190. package/dist/component/jc.expander.header.js +1 -1
  191. package/dist/component/jc.field-row.d.ts +2 -0
  192. package/dist/component/jc.field-row.d.ts.map +1 -1
  193. package/dist/component/jc.field-row.js +3 -1
  194. package/dist/component/jc.form.d.ts +3 -1
  195. package/dist/component/jc.form.d.ts.map +1 -1
  196. package/dist/component/jc.form.js +3 -1
  197. package/dist/component/jc.grid-item.d.ts +2 -2
  198. package/dist/component/jc.grid-item.d.ts.map +1 -1
  199. package/dist/component/jc.grid-item.js +10 -7
  200. package/dist/component/jc.grid.d.ts +1 -1
  201. package/dist/component/jc.grid.d.ts.map +1 -1
  202. package/dist/component/jc.grid.js +8 -6
  203. package/dist/component/jc.guards.d.ts +1 -1
  204. package/dist/component/jc.guards.d.ts.map +1 -1
  205. package/dist/component/jc.guards.js +1 -1
  206. package/dist/component/jc.icon.js +2 -2
  207. package/dist/component/jc.image.d.ts +3 -2
  208. package/dist/component/jc.image.d.ts.map +1 -1
  209. package/dist/component/jc.image.js +1 -1
  210. package/dist/component/jc.image.on-custom-component.d.ts +53 -0
  211. package/dist/component/jc.image.on-custom-component.d.ts.map +1 -0
  212. package/dist/component/jc.image.on-custom-component.js +29 -0
  213. package/dist/component/jc.interactive-image.d.ts +21 -7
  214. package/dist/component/jc.interactive-image.d.ts.map +1 -1
  215. package/dist/component/jc.interactive-image.js +20 -13
  216. package/dist/component/jc.jig-header.d.ts +1 -0
  217. package/dist/component/jc.jig-header.d.ts.map +1 -1
  218. package/dist/component/jc.jig-header.js +2 -1
  219. package/dist/component/jc.list-item.d.ts +2 -0
  220. package/dist/component/jc.list-item.d.ts.map +1 -1
  221. package/dist/component/jc.list-item.js +7 -1
  222. package/dist/component/jc.list-item.standalone.d.ts.map +1 -1
  223. package/dist/component/jc.list-item.standalone.js +1 -5
  224. package/dist/component/jc.list.abstract.d.ts +1 -1
  225. package/dist/component/jc.list.abstract.js +1 -1
  226. package/dist/component/jc.list.d.ts +2 -2
  227. package/dist/component/jc.list.d.ts.map +1 -1
  228. package/dist/component/jc.list.js +5 -20
  229. package/dist/component/jc.location.js +2 -2
  230. package/dist/component/jc.marker-item.d.ts +3 -10
  231. package/dist/component/jc.marker-item.d.ts.map +1 -1
  232. package/dist/component/jc.marker-item.js +3 -19
  233. package/dist/component/jc.media-field.d.ts +1 -3
  234. package/dist/component/jc.media-field.d.ts.map +1 -1
  235. package/dist/component/jc.media-field.js +4 -1
  236. package/dist/component/jc.menu-item.d.ts +2 -0
  237. package/dist/component/jc.menu-item.d.ts.map +1 -1
  238. package/dist/component/jc.number-field.d.ts +1 -0
  239. package/dist/component/jc.number-field.d.ts.map +1 -1
  240. package/dist/component/jc.number-field.js +2 -1
  241. package/dist/component/jc.product-item.d.ts +1 -2
  242. package/dist/component/jc.product-item.d.ts.map +1 -1
  243. package/dist/component/jc.product-item.js +2 -20
  244. package/dist/component/jc.progress-bar.d.ts +3 -4
  245. package/dist/component/jc.progress-bar.d.ts.map +1 -1
  246. package/dist/component/jc.progress-bar.js +1 -1
  247. package/dist/component/jc.rating.js +2 -2
  248. package/dist/component/jc.scanner-field.d.ts +29 -0
  249. package/dist/component/jc.scanner-field.d.ts.map +1 -0
  250. package/dist/component/jc.scanner-field.js +41 -0
  251. package/dist/component/jc.section.abstract.d.ts +2 -0
  252. package/dist/component/jc.section.abstract.d.ts.map +1 -1
  253. package/dist/component/jc.section.on-default.d.ts +4 -3
  254. package/dist/component/jc.section.on-default.d.ts.map +1 -1
  255. package/dist/component/jc.section.on-default.js +4 -3
  256. package/dist/component/jc.stepper.d.ts.map +1 -1
  257. package/dist/component/jc.stepper.js +4 -20
  258. package/dist/component/jc.summary.abstract.d.ts +2 -2
  259. package/dist/component/jc.summary.abstract.js +3 -3
  260. package/dist/component/jc.summary.card.d.ts +2 -3
  261. package/dist/component/jc.summary.card.d.ts.map +1 -1
  262. package/dist/component/jc.summary.card.js +5 -13
  263. package/dist/component/jc.summary.counter.d.ts +1 -2
  264. package/dist/component/jc.summary.counter.d.ts.map +1 -1
  265. package/dist/component/jc.summary.counter.js +4 -12
  266. package/dist/component/jc.summary.default.d.ts +0 -1
  267. package/dist/component/jc.summary.default.d.ts.map +1 -1
  268. package/dist/component/jc.summary.default.js +3 -11
  269. package/dist/component/jc.summary.layout.d.ts +7 -0
  270. package/dist/component/jc.summary.layout.d.ts.map +1 -0
  271. package/dist/component/jc.summary.layout.js +16 -0
  272. package/dist/component/jc.summary.progress.d.ts +7 -9
  273. package/dist/component/jc.summary.progress.d.ts.map +1 -1
  274. package/dist/component/jc.summary.progress.js +3 -11
  275. package/dist/component/jc.tab-button.js +2 -2
  276. package/dist/component/jc.text.d.ts +2 -3
  277. package/dist/component/jc.text.d.ts.map +1 -1
  278. package/dist/component/jc.text.js +1 -1
  279. package/dist/component/jc.titles.d.ts +1 -0
  280. package/dist/component/jc.titles.d.ts.map +1 -1
  281. package/dist/component/jc.titles.js +1 -1
  282. package/dist/component/jc.types.d.ts +1 -0
  283. package/dist/component/jc.types.d.ts.map +1 -1
  284. package/dist/component/jc.types.js +2 -1
  285. package/dist/component/jc.video-player.on-jig.d.ts +3 -4
  286. package/dist/component/jc.video-player.on-jig.d.ts.map +1 -1
  287. package/dist/component/jc.video-player.on-jig.js +1 -11
  288. package/dist/component/jc.view.d.ts +10 -6
  289. package/dist/component/jc.view.d.ts.map +1 -1
  290. package/dist/component/jc.view.js +14 -10
  291. package/dist/component/jc.web-view.abstract.d.ts +1 -0
  292. package/dist/component/jc.web-view.abstract.d.ts.map +1 -1
  293. package/dist/component/jc.web-view.abstract.js +1 -1
  294. package/dist/component/jc.web-view.on-full.d.ts +1 -0
  295. package/dist/component/jc.web-view.on-full.d.ts.map +1 -1
  296. package/dist/component/jc.web-view.on-full.js +7 -3
  297. package/dist/database/database.abstract.d.ts +4 -9
  298. package/dist/database/database.abstract.d.ts.map +1 -1
  299. package/dist/database/database.abstract.js +2 -2
  300. package/dist/datasource/datasource.abstract.d.ts +2 -2
  301. package/dist/datasource/datasource.abstract.js +1 -1
  302. package/dist/datasource/datasource.reference.d.ts.map +1 -1
  303. package/dist/datasource/datasource.reference.js +7 -2
  304. package/dist/datasource/datasource.sqlite.d.ts +8 -6
  305. package/dist/datasource/datasource.sqlite.d.ts.map +1 -1
  306. package/dist/datasource/datasource.sqlite.js +110 -34
  307. package/dist/datasource/datasource.static.d.ts +4 -3
  308. package/dist/datasource/datasource.static.d.ts.map +1 -1
  309. package/dist/datasource/datasource.static.js +8 -4
  310. package/dist/datasource/datasource.system.d.ts +1 -1
  311. package/dist/datasource/datasource.system.js +2 -2
  312. package/dist/datasource/sqlite-normalizer.d.ts +16 -2
  313. package/dist/datasource/sqlite-normalizer.d.ts.map +1 -1
  314. package/dist/datasource/sqlite-normalizer.js +75 -11
  315. package/dist/datasource/sqlite-validator.d.ts +11 -3
  316. package/dist/datasource/sqlite-validator.d.ts.map +1 -1
  317. package/dist/datasource/sqlite-validator.js +98 -61
  318. package/dist/function/function.abstract.d.ts +21 -12
  319. package/dist/function/function.abstract.d.ts.map +1 -1
  320. package/dist/function/function.abstract.js +22 -10
  321. package/dist/function/function.guard.d.ts +2 -1
  322. package/dist/function/function.guard.d.ts.map +1 -1
  323. package/dist/function/function.guard.js +6 -5
  324. package/dist/function/function.operation.d.ts +7 -3
  325. package/dist/function/function.operation.d.ts.map +1 -1
  326. package/dist/function/function.operation.js +12 -6
  327. package/dist/function/function.rest.d.ts +8 -0
  328. package/dist/function/function.rest.d.ts.map +1 -1
  329. package/dist/function/function.rest.error-builder.d.ts +5 -5
  330. package/dist/function/function.rest.error-builder.d.ts.map +1 -1
  331. package/dist/function/function.rest.error-builder.js +8 -10
  332. package/dist/function/function.rest.js +12 -7
  333. package/dist/function/function.rest.parameter-builder.d.ts +1 -1
  334. package/dist/function/function.rest.parameter-builder.d.ts.map +1 -1
  335. package/dist/function/function.rest.parameter-builder.js +15 -5
  336. package/dist/function/function.rest.types.d.ts +2 -0
  337. package/dist/function/function.rest.types.d.ts.map +1 -1
  338. package/dist/function/function.rest.types.js +1 -1
  339. package/dist/function/function.soap.d.ts.map +1 -1
  340. package/dist/function/function.soap.js +3 -6
  341. package/dist/function/function.soap.parameter-builder.d.ts.map +1 -1
  342. package/dist/function/function.soap.parameter-builder.js +8 -3
  343. package/dist/function/function.sql.d.ts +2 -0
  344. package/dist/function/function.sql.d.ts.map +1 -1
  345. package/dist/function/function.sql.js +5 -6
  346. package/dist/function/function.sql.parameter-builder.d.ts +4 -4
  347. package/dist/function/function.sql.parameter-builder.js +5 -5
  348. package/dist/icon/sdk.icon.d.ts +7 -6
  349. package/dist/icon/sdk.icon.d.ts.map +1 -1
  350. package/dist/icon/sdk.icon.data.d.ts +2 -2
  351. package/dist/icon/sdk.icon.data.d.ts.map +1 -1
  352. package/dist/icon/sdk.icon.data.js +5187 -19280
  353. package/dist/icon/sdk.icon.js +10 -9
  354. package/dist/icon/sdk.icon.name.d.ts +3 -4
  355. package/dist/icon/sdk.icon.name.d.ts.map +1 -1
  356. package/dist/icon/sdk.icon.name.js +4906 -19000
  357. package/dist/jsonata/context.d.ts.map +1 -1
  358. package/dist/jsonata/context.js +23 -7
  359. package/dist/jsonata/expression.d.ts.map +1 -1
  360. package/dist/jsonata/expression.js +2 -6
  361. package/dist/jsonata/validate-all-expressions.d.ts +16 -5
  362. package/dist/jsonata/validate-all-expressions.d.ts.map +1 -1
  363. package/dist/jsonata/validate-all-expressions.js +388 -6
  364. package/dist/screen/common/screen.bottom-sheet.d.ts +4 -14
  365. package/dist/screen/common/screen.bottom-sheet.d.ts.map +1 -1
  366. package/dist/screen/common/screen.bottom-sheet.js +1 -1
  367. package/dist/screen/common/screen.default-children.d.ts +4 -2
  368. package/dist/screen/common/screen.default-children.d.ts.map +1 -1
  369. package/dist/screen/common/screen.default-children.js +4 -2
  370. package/dist/screen/common/screen.input-definition.d.ts +12 -12
  371. package/dist/screen/common/screen.input-definition.d.ts.map +1 -1
  372. package/dist/screen/common/screen.input-definition.js +4 -18
  373. package/dist/screen/common/screen.preview.actions.d.ts +1 -14
  374. package/dist/screen/common/screen.preview.actions.d.ts.map +1 -1
  375. package/dist/screen/common/screen.preview.actions.js +2 -2
  376. package/dist/screen/common/screen.preview.d.ts.map +1 -1
  377. package/dist/screen/common/screen.preview.js +1 -9
  378. package/dist/screen/common/screen.summary.d.ts.map +1 -1
  379. package/dist/screen/common/screen.summary.js +2 -7
  380. package/dist/screen/index.d.ts +2 -0
  381. package/dist/screen/index.d.ts.map +1 -1
  382. package/dist/screen/index.js +1 -1
  383. package/dist/screen/normalize-screen-datasource.d.ts +5 -0
  384. package/dist/screen/normalize-screen-datasource.d.ts.map +1 -0
  385. package/dist/screen/normalize-screen-datasource.js +10 -0
  386. package/dist/screen/screen.abstract.d.ts +1 -1
  387. package/dist/screen/screen.abstract.d.ts.map +1 -1
  388. package/dist/screen/screen.abstract.js +5 -6
  389. package/dist/screen/screen.calendar.d.ts.map +1 -1
  390. package/dist/screen/screen.calendar.js +4 -13
  391. package/dist/screen/screen.default.d.ts +4 -2
  392. package/dist/screen/screen.default.d.ts.map +1 -1
  393. package/dist/screen/screen.document.d.ts +9 -16
  394. package/dist/screen/screen.document.d.ts.map +1 -1
  395. package/dist/screen/screen.document.js +1 -1
  396. package/dist/screen/screen.full-screen.d.ts +6 -2
  397. package/dist/screen/screen.full-screen.d.ts.map +1 -1
  398. package/dist/screen/screen.full-screen.js +10 -2
  399. package/dist/screen/screen.gallery.d.ts +5 -4
  400. package/dist/screen/screen.gallery.d.ts.map +1 -1
  401. package/dist/screen/screen.gallery.js +6 -5
  402. package/dist/screen/screen.grid.base.d.ts +1 -1
  403. package/dist/screen/screen.grid.base.d.ts.map +1 -1
  404. package/dist/screen/screen.grid.dynamic.d.ts.map +1 -1
  405. package/dist/screen/screen.grid.dynamic.js +4 -13
  406. package/dist/screen/screen.guards.d.ts +4 -0
  407. package/dist/screen/screen.guards.d.ts.map +1 -1
  408. package/dist/screen/screen.guards.js +3 -1
  409. package/dist/screen/screen.list.d.ts +5 -3
  410. package/dist/screen/screen.list.d.ts.map +1 -1
  411. package/dist/screen/screen.list.js +12 -13
  412. package/dist/screen/screen.sdk.d.ts +4 -3
  413. package/dist/screen/screen.sdk.d.ts.map +1 -1
  414. package/dist/screen/screen.sdk.js +1 -1
  415. package/dist/screen/screen.tabs.d.ts +1 -1
  416. package/dist/screen/screen.tabs.d.ts.map +1 -1
  417. package/dist/screen/screen.tabs.instance.d.ts +4 -1
  418. package/dist/screen/screen.tabs.instance.d.ts.map +1 -1
  419. package/dist/screen/screen.tabs.instance.js +7 -11
  420. package/dist/screen/screen.tabs.js +1 -2
  421. package/dist/screen/screen.wizard.d.ts +10 -3
  422. package/dist/screen/screen.wizard.d.ts.map +1 -1
  423. package/dist/screen/screen.wizard.instance.d.ts.map +1 -1
  424. package/dist/screen/screen.wizard.instance.js +3 -5
  425. package/dist/screen/screen.wizard.js +2 -5
  426. package/dist/utils/dedent.d.ts +3 -13
  427. package/dist/utils/dedent.d.ts.map +1 -1
  428. package/dist/utils/dedent.js +4 -14
  429. package/dist/utils/index.d.ts +0 -1
  430. package/dist/utils/index.d.ts.map +1 -1
  431. package/dist/utils/index.js +1 -1
  432. package/dist/utils/utils.d.ts +1 -9
  433. package/dist/utils/utils.d.ts.map +1 -1
  434. package/dist/utils/utils.js +1 -18
  435. package/dist/widget/jw.abstract.d.ts +4 -4
  436. package/dist/widget/jw.abstract.d.ts.map +1 -1
  437. package/dist/widget/jw.abstract.js +1 -1
  438. package/dist/widget/jw.actions.d.ts +1 -2
  439. package/dist/widget/jw.actions.d.ts.map +1 -1
  440. package/dist/widget/jw.actions.js +1 -4
  441. package/dist/widget/jw.chart.d.ts.map +1 -1
  442. package/dist/widget/jw.chart.js +2 -5
  443. package/dist/widget/jw.image.js +2 -2
  444. package/dist/widget/jw.list.d.ts.map +1 -1
  445. package/dist/widget/jw.list.js +2 -5
  446. package/dist/widget/jw.location.d.ts +2 -2
  447. package/dist/widget/jw.location.d.ts.map +1 -1
  448. package/dist/widget/jw.location.js +7 -4
  449. package/docs/array-fields.md +5 -5
  450. package/docs/conditional-logic.md +2 -2
  451. package/docs/dropdown-fields.md +13 -13
  452. package/docs/field-state.md +5 -5
  453. package/docs/field-types-overview.md +2 -2
  454. package/docs/formatting.md +3 -3
  455. package/docs/icons.md +34 -30
  456. package/docs/index.md +26 -20
  457. package/docs/jsonata-expressions.md +3 -3
  458. package/docs/media-fields.md +1 -1
  459. package/docs/overview.md +42 -467
  460. package/docs/pattern-build-deploy.md +18 -6
  461. package/docs/pattern-command-batches.md +103 -0
  462. package/docs/pattern-data-runtime.md +99 -0
  463. package/docs/pattern-datasources.md +7 -0
  464. package/docs/pattern-forms.md +6 -6
  465. package/docs/pattern-global-actions.md +1 -1
  466. package/docs/pattern-javascript-functions.md +5 -5
  467. package/docs/pattern-navigation.md +16 -8
  468. package/docs/pattern-pdf-generation.md +57 -8
  469. package/docs/pattern-rest-acumatica.md +12 -5
  470. package/docs/pattern-sync.md +14 -11
  471. package/docs/pattern-tabs-form.md +4 -4
  472. package/docs/recipe-index.md +3 -0
  473. package/docs/runtime-variables.md +68 -1
  474. package/docs/sections.md +1 -1
  475. package/package.json +18 -16
  476. package/dist/assets/stream-line-icons.csv +0 -19278
  477. package/dist/utils/types.d.ts +0 -2
  478. package/dist/utils/types.d.ts.map +0 -1
  479. package/dist/utils/types.js +0 -2
@@ -0,0 +1,99 @@
1
+ # Data runtime behavior
2
+
3
+ These authoring notes track mobile source at `84410ee557` (September 18, 2026).
4
+ Confirm feature inclusion in the target mobile build. Web-renderer support and
5
+ backend deployment availability are separate checks.
6
+
7
+ ## REST network retries and offline replay
8
+
9
+ [Mobile #7709](https://github.com/jigx-com/jigx/pull/7709) adds a literal boolean:
10
+
11
+ ```typescript
12
+ const create = app.addFunction.rest({
13
+ functionId: 'create-order',
14
+ method: 'POST',
15
+ url: 'https://api.example.com/orders',
16
+ disableNetworkRetries: true,
17
+ })
18
+ // Alternatively: create.disableNetworkRetries(true)
19
+ ```
20
+
21
+ The default remains false. This controls automatic network retries, not queue replay,
22
+ function error-handler retry policies or exactly-once delivery. A server can accept
23
+ a request whose response is lost; a later offline replay can send it again. Prefer a
24
+ stable request ID with server-side deduplication. A reconciling guard can check for
25
+ an existing remote record before a create, but check-then-create alone is not atomic.
26
+ Do not use an Expression for disableNetworkRetries: the runtime does not evaluate it.
27
+
28
+ ## Guard and when short-circuits
29
+
30
+ [Mobile #7547](https://github.com/jigx-com/jigx/pull/7547) makes REST function error
31
+ handlers eligible when the function's when or guard result is falsy. An explicit
32
+ unconditional handler, such as `.error(true)`, can therefore turn an intentional
33
+ skip into an error. Match the intended condition and available function context:
34
+
35
+ ```typescript
36
+ create.error('=@ctx.response.status >= 400').title('Order could not be sent')
37
+ ```
38
+
39
+ This example matches HTTP failures only; it does not match a pre-request guard skip
40
+ or a network failure without a response. Use a separate deliberate handler for those
41
+ cases when needed. In the audited current source, a handler with no when defaults
42
+ to a caught error or a failed attempted request; a missing response before any request
43
+ is not by itself a provider error. This differs from the earlier PR description.
44
+ A skip with no matching handler preserves the runtime's short-circuit result.
45
+
46
+ Function `guard.onRetry` already exists. Internal provider retry-count plumbing from
47
+ [#7777](https://github.com/jigx-com/jigx/pull/7777) adds no new public SDK option or
48
+ expression variable.
49
+
50
+ ## File conversions and JSON bodies
51
+
52
+ [Mobile #7648](https://github.com/jigx-com/jigx/pull/7648) fixes local REST
53
+ (`useLocalCall: true`) inputTransform evaluation to see converted body values:
54
+
55
+ ```typescript
56
+ const fn = app.addFunction.rest({
57
+ functionId: 'send-attachment', method: 'POST',
58
+ url: 'https://api.example.com/messages', useLocalCall: true,
59
+ })
60
+ fn.params.body('file', { type: 'string', required: true })
61
+ fn.params.body('subject', { type: 'string', required: true })
62
+ fn.conversion('file', 'local-uri', 'base64')
63
+ fn.inputTransform('={"subject": @ctx.parameters.subject, "attachment": @ctx.parameters.file}')
64
+ ```
65
+
66
+ A transform consuming file embeds converted content inside its JSON envelope.
67
+ A raw-file upload without such a transform can use native streaming. Do not combine
68
+ a JSON envelope expectation with an assumption that the request body is raw file
69
+ bytes. This fix is local REST behavior; do not infer identical changes in a remote
70
+ proxy from this mobile PR.
71
+
72
+ ## Dynamic Data transfers
73
+
74
+ [Resumable transfers #7577](https://github.com/jigx-com/jigx/pull/7577) use runtime
75
+ and backend capabilities, with whole-file fallback. TUS uploads require the CLF
76
+ runtime and supporting backend; there is no new public SDK resumable switch.
77
+ Dynamic Data downloads use Range support when available. REST uploads follow their
78
+ own streaming/JSON path; an authenticated open-url viewer is a separate path too.
79
+
80
+ [Offline transfers #7690](https://github.com/jigx-com/jigx/pull/7690) can be requeued.
81
+ [Async upload defaults #7747](https://github.com/jigx-com/jigx/pull/7747) mean later
82
+ writes can proceed before an upload finishes. Use explicit scheduling from
83
+ [Command batches](./pattern-command-batches.md) when ordering is required.
84
+
85
+ ## Basic Auth
86
+
87
+ [Mobile #7744](https://github.com/jigx-com/jigx/pull/7744) fixes credential resolution
88
+ for existing basicAuth parameters. Use the existing credential configuration;
89
+ do not add an OAuth token dependency as a workaround. No new builder option is needed.
90
+
91
+ ## SQLite calculations
92
+
93
+ [Parser update #7742](https://github.com/jigx-com/jigx/pull/7742) preserves grouping
94
+ and delegates calculations to SQLite. `9 / 2` evaluates to `4`; use `9.0 / 2` or
95
+ `CAST(value AS REAL)` when a fractional result is intended. Do not assume JavaScript
96
+ arithmetic. Continue using parameterized queries and the
97
+ [datasource recipes](./pattern-datasources.md). The datasource's existing
98
+ `rewriteQuery(false)` opts out of rewriting; an internal function-query implementation
99
+ argument is not a new public Function query property.
@@ -1,5 +1,12 @@
1
1
  # Pattern: Datasources
2
2
 
3
+ ## SQLite runtime arithmetic
4
+
5
+ The mobile runtime evaluates calculations using SQLite semantics: `9 / 2` is `4`;
6
+ use `9.0 / 2` for a fractional result. See [Data runtime behavior](./pattern-data-runtime.md)
7
+ for the source baseline and [Command batches](./pattern-command-batches.md) for
8
+ queued write dependencies.
9
+
3
10
  This is the standard approach unless the user instructs otherwise.
4
11
 
5
12
  ## Rules
@@ -48,13 +48,13 @@ The `isDiscardChangesAlertEnabled` expression is the hook for suppressing the
48
48
 
49
49
  ```typescript
50
50
  // WRONG — button looks enabled but silently unresponsive when invalid
51
- buttons.add.list({
51
+ buttons.addAction.list({
52
52
  title: 'Save',
53
53
  when: '=@ctx.components.form.state.isValid',
54
54
  }).actions
55
55
 
56
56
  // RIGHT — button visibly disabled until form is valid
57
- buttons.add.list({
57
+ buttons.addAction.list({
58
58
  title: 'Save',
59
59
  isDisabled: '=@ctx.components.form.state.isValid = true ? false:true',
60
60
  }).actions
@@ -64,8 +64,8 @@ buttons.add.list({
64
64
  SDK transforms it to `style.isDisabled` in the output YAML — you don't write the
65
65
  nested `style` wrapper in TypeScript.
66
66
 
67
- Applies to `buttons.add.list({...})`, `buttons.add.executeEntity({...})`,
68
- `buttons.add.executeAction({...})`, `.swipeLeft()`, `.swipeRight()` — anywhere you
67
+ Applies to `buttons.addAction.list({...})`, `buttons.addAction.executeEntity({...})`,
68
+ `buttons.addAction.executeAction({...})`, `.swipeLeft()`, `.swipeRight()` — anywhere you
69
69
  have an action button.
70
70
 
71
71
  ## Save action list — correct ordering
@@ -87,7 +87,7 @@ const form = screen.addControl.form({
87
87
  isDiscardChangesAlertEnabled: '=@ctx.jig.state.upload = true ? false:true',
88
88
  })
89
89
 
90
- const saveActions = screen.bottomPanel().add.list({
90
+ const saveActions = screen.bottomPanel().addAction.list({
91
91
  concurrency: 'sequential',
92
92
  title: 'Save Information',
93
93
  isDisabled: '=@ctx.components.contactInfo.state.isValid = true ? false:true',
@@ -369,7 +369,7 @@ export function actQuoteSaveCustomerInfo(app: ApplicationBuilder): void {
369
369
  ### Calling from the form screen
370
370
 
371
371
  ```typescript
372
- const saveActions = screen.bottomPanel().add.list({
372
+ const saveActions = screen.bottomPanel().addAction.list({
373
373
  concurrency: 'sequential',
374
374
  title: 'Save',
375
375
  isDisabled: '=@ctx.components.contactInfo.state.isValid = true ? false:true',
@@ -29,7 +29,7 @@ workflow.actions
29
29
  Build the data via JSONata in the jig, pass as parameter:
30
30
 
31
31
  ```typescript
32
- buttons.add.executeAction({
32
+ buttons.addAction.executeAction({
33
33
  title: 'Save',
34
34
  isPrimary: true,
35
35
  action: 'act-customer-save',
@@ -10,7 +10,7 @@ Reach for this whenever JSONata becomes awkward or unreadable. Typical categorie
10
10
  | --- | --- |
11
11
  | **HTML/text template building** | PDF generation, email body composition, report rendering |
12
12
  | **Non-trivial math** | Pricing tiers, tax/discount rules, amortization, unit conversions |
13
- | **Date/time beyond `$fromMillis`** | Business-day arithmetic, timezone conversions, date-range diffs |
13
+ | **Date/time beyond `$fromMillis`** | Business-day arithmetic, date-range diffs. For timezone conversion use [`$utcToTimezone` / `$timezoneToUtc`](./runtime-variables.md#timezone) |
14
14
  | **Data shaping** | Group-by, pivot, multi-level aggregation, CSV/TSV export |
15
15
  | **Validation logic** | Complex multi-field checks, regex-heavy rules, checksum/Luhn |
16
16
  | **String parsing and formatting** | Phone normalization, address parsing, slugify, abbreviation |
@@ -26,13 +26,13 @@ Keep as pure JSONata:
26
26
 
27
27
  ## API — `ApplicationBuilder.script(name, script)`
28
28
 
29
- Source: `packages/core-sdk/src/application/application.sdk.ts:360`
29
+ Source: [ApplicationBuilder.script](../src/application/application.sdk.ts).
30
30
 
31
31
  ```typescript
32
32
  script(name: string, script: unknown): this
33
33
  ```
34
34
 
35
- The JSDoc reads "reserved for future use", but it is in active use by the Expert SDK for PDF generation (`packages/expert-sdk/src/expert-form/utils/attach-pdf-action.ts:34`). Treat it as a real but semi-internal feature — no public docs, no validation of the JS body, no TypeScript checking.
35
+ The JSDoc reads "reserved for future use", but it is in active use by the Expert SDK for PDF generation ([Expert SDK PDF action](https://github.com/jigx-com/jigx-sdk/blob/develop/packages/expert-sdk/src/expert-form/utils/attach-pdf-action.ts)). Treat it as a real but semi-internal feature — no public docs, no validation of the JS body, no TypeScript checking.
36
36
 
37
37
  On `build()`, scripts are transformed into `{ scripts: { expressions: { <name>: <body> } } }` in the output config.
38
38
 
@@ -366,7 +366,7 @@ JSONata's built-in `$merge` does a full overwrite — if the patch has `null`, i
366
366
 
367
367
  ### Expert SDK — PDF generation helper
368
368
 
369
- `packages/expert-sdk/src/expert-form/utils/attach-pdf-action.ts:34`
369
+ [Expert SDK PDF action](https://github.com/jigx-com/jigx-sdk/blob/develop/packages/expert-sdk/src/expert-form/utils/attach-pdf-action.ts)
370
370
 
371
371
  ```typescript
372
372
  app.script('pdf.js', readScriptFile('pdf.js'))
@@ -382,7 +382,7 @@ actions.generatePdf({
382
382
 
383
383
  ### doorpro-door-quote — Sales form HTML helper
384
384
 
385
- `workspace/acumatica-apps/doorpro-door-quote/src/scripts/html.js` — ~1950 lines exporting multiple `*GenerateHTML(...)` functions for different form types. Registered in `src/app.ts` via:
385
+ A project can export several HTML rendering functions from one JavaScript file. Register the file in `src/app.ts`:
386
386
 
387
387
  ```typescript
388
388
  app.script('html.js', readScriptFile('html.js'))
@@ -1,5 +1,12 @@
1
1
  # Pattern: Navigation
2
2
 
3
+ ## Screen instance lifetime
4
+
5
+ The mobile runtime cleans up Screen instance state when that instance unmounts
6
+ ([mobile #7507](https://github.com/jigx-com/jigx/pull/7507)). Do not use a popped
7
+ Screen as durable storage. Persist drafts in local tables and pass inputs when
8
+ reopening the Screen; Application state has a different lifetime.
9
+
3
10
  ## Screen lifecycle — `onFocus` vs `onLoad`
4
11
 
5
12
  - **`onFocus`** fires when the user navigates *to* a screen (via `goto`, a tab switch,
@@ -31,7 +38,7 @@ screen.onFocus.executeAction({
31
38
  When navigating to a create form from a list, use `behaviour: 'new'` and a UUID instance:
32
39
 
33
40
  ```typescript
34
- screen.bottomPanel().add.goto({
41
+ screen.bottomPanel().addAction.goto({
35
42
  title: 'New Customer',
36
43
  linkTo: SCREEN.CUSTOMER_CREATE,
37
44
  isPrimary: true,
@@ -45,7 +52,7 @@ For standalone create screens, the generated UUID can be used as `@ctx.jig.insta
45
52
  For child-create screens inside a parent aggregate, do not rely on the child screen `@ctx.jig.instanceId` as the row id. Generate the child row id at the `go-to` call and pass it in explicitly:
46
53
 
47
54
  ```typescript
48
- buttons.add.goto({
55
+ buttons.addAction.goto({
49
56
  title: 'Add Detail',
50
57
  linkTo: SCREEN.DETAIL_CREATE,
51
58
  behaviour: 'new',
@@ -61,11 +68,12 @@ Then save the child row with the passed `detailId`.
61
68
  ## Bottom panel action order
62
69
 
63
70
  The first action in `bottomPanel()` is the visible button. Additional actions go into the overflow menu (accessed via `...`).
71
+ Use `addAction` for new code. Existing code can still use the deprecated `add` alias.
64
72
 
65
73
  ```typescript
66
74
  const buttons = tabs.bottomPanel()
67
- buttons.add.executeAction({ title: 'Save', isPrimary: true, ... }) // Visible
68
- buttons.add.goBack({ title: 'Cancel' }) // Overflow
75
+ buttons.addAction.executeAction({ title: 'Save', isPrimary: true, ... }) // Visible
76
+ buttons.addAction.goBack({ title: 'Cancel' }) // Overflow
69
77
  ```
70
78
 
71
79
  ## Navigation flow: List → Detail → Child form
@@ -89,7 +97,7 @@ listItem.onPress.goto({
89
97
  ### Detail to child form (forwarding parent ID)
90
98
 
91
99
  ```typescript
92
- buttons.add.goto({
100
+ buttons.addAction.goto({
93
101
  title: 'Add Contact',
94
102
  linkTo: SCREEN.CONTACT_CREATE,
95
103
  parameters: { customerId: '=@ctx.jig.inputs.customerId' },
@@ -123,7 +131,7 @@ contactsTab.input('customerName', '=@ctx.jigs.general-instance.components.Custom
123
131
  The child list tab opens a modal form to create new records:
124
132
 
125
133
  ```typescript
126
- screen.bottomPanel().add.goto({
134
+ screen.bottomPanel().addAction.goto({
127
135
  title: 'Add Contact',
128
136
  linkTo: SCREEN.CONTACT_CREATE,
129
137
  isPrimary: true,
@@ -199,7 +207,7 @@ List items support `swipeLeft()` and `swipeRight()`. Each returns a `SwipeableAc
199
207
  item
200
208
  .swipeRight()
201
209
  .label('Delete')
202
- .icon('delete-1')
210
+ .icon('trash')
203
211
  .color('negative')
204
212
  .onPress.confirm({
205
213
  modal: {
@@ -229,7 +237,7 @@ the copy is intentionally moving between parents.
229
237
  item
230
238
  .swipeLeft()
231
239
  .label('Copy')
232
- .icon('copy-1')
240
+ .icon('copy')
233
241
  .color('positive')
234
242
  .onPress.confirm({
235
243
  modal: { title: 'Copy Item?', confirm: 'Copy', cancel: 'Cancel' },
@@ -291,7 +291,7 @@ const header = screen.header()
291
291
 
292
292
  header.actions.executeAction({
293
293
  title: 'Regenerate',
294
- icon: 'synchronize-arrows-1',
294
+ icon: 'refresh',
295
295
  action: 'act-generate-quote-pdf',
296
296
  parameters: { opportunityID: '=@ctx.jig.inputs.opportunityID' },
297
297
  })
@@ -353,19 +353,68 @@ only to a real generated PDF, not the temporary screen-state PDF.
353
353
  regeneration, add success and failure `infoModal` actions gated by
354
354
  `$exists(@ctx.actions.<instanceId>.outputs.uri)` so the user knows whether a new
355
355
  file was created.
356
- - **Do not rely on print-only CSS for production appearance.** The current iOS
357
- `action.generate-pdf` path renders HTML through the native Jigx PDF generator
358
- using a WebView PDF export, not a full browser print flow. `@page`,
359
- `page-break-after`, and `@media print` are useful hints, but normal screen CSS
360
- must already look acceptable because iOS can export the scrollable WebView as a
361
- single tall page. Avoid dark-only presentation slides, oversized decorative
362
- absolute shapes, and backgrounds that only get corrected inside `@media print`.
356
+ - **Page size and margins come from the `page` option, not from CSS.** CSS
357
+ `@page` rules do not set the page size or margins, and fixed or absolute
358
+ elements do not repeat on every page on all platforms. For content on every page, use a
359
+ `header` / `footer` band (see [Header and footer on every page](#header-and-footer-on-every-page)).
360
+ Do not rely on print-only CSS for production appearance: normal screen CSS
361
+ must already look acceptable. Avoid dark-only presentation slides, oversized
362
+ decorative absolute shapes, and backgrounds that only get corrected inside
363
+ `@media print`.
363
364
  - **Prefer flat, explicit PDF styling.** Native and desktop PDF viewers can render
364
365
  transparency, gradients, and CSS shadows differently. For customer-facing PDFs,
365
366
  prefer `background: #ffffff`, solid borders, and simple accent colors over
366
367
  `rgba()`, `linear-gradient()`, and `box-shadow`. This keeps Android preview,
367
368
  shared PDFs, macOS Preview, and browser print output closer to each other.
368
369
 
370
+ ## Header and footer on every page
371
+
372
+ `generatePdf` takes optional `header` and `footer` bands. The runtime draws a
373
+ band on every page, inside the page margin, and reserves its height so the
374
+ document content never runs under it.
375
+
376
+ ```typescript
377
+ actions.generatePdf({
378
+ fileName: 'report.pdf',
379
+ html: '=$pdf.create(@ctx.jig.state.report)',
380
+ page: { size: 'a4', margin: { top: 36, right: 54, bottom: 36, left: 54 } },
381
+ footer: {
382
+ height: 24,
383
+ style: 'font-size: 9px; color: #666',
384
+ left: { text: '=@ctx.jig.state.report.title' },
385
+ right: { text: 'Page {pageNumber} of {pageCount}' },
386
+ },
387
+ })
388
+ ```
389
+
390
+ - **Slots.** A band has up to three one-line text slots: `left`, `center`,
391
+ `right`. At least one is required. No HTML and no images.
392
+ - **Tokens.** `{pageNumber}` and `{pageCount}` in slot text are replaced on
393
+ every page. A slot text expression is evaluated once per PDF, so the tokens
394
+ go inside its strings (`="By " & @ctx.user.displayName & " · {pageNumber}"`).
395
+ - **Height** is in PDF points, larger than 0 and at most 200.
396
+ - **Margins.** The band sits between `page.margin.left` and
397
+ `page.margin.right`. Put side spacing in `page.margin`, not in a `body`
398
+ margin, or the band reaches the paper edge. A full-width design keeps side
399
+ margins of 0 and sets `inset` (points, 0–144) instead: it moves the slot
400
+ text in from the band's edges, off the paper edge.
401
+ - **Style is how the band looks, never its box.** By default the band uses the
402
+ font, size and color of the document body. `style` (whole band) and slot
403
+ `style` take any CSS for how the band looks. The runtime owns the band's box:
404
+ its size comes from `height` and its side spacing from `inset`. The body
405
+ background stops at the page margin, so style a band like the page around
406
+ it. A band with a background sits on the paper edge (margin 0 on its side,
407
+ space from `height`): on iOS a margin there stays a white strip. The box is
408
+ the band height on iOS and reaches on to the paper edge on
409
+ Android and web, so anything drawn on its outer edge differs per platform.
410
+ Style may not contain `{ } @ < > \`, line breaks, comments, `url(`,
411
+ `!important` or unbalanced quotes or parentheses.
412
+ - **A whole band can be an expression**, e.g. `footer: '=$pdf.pdfFooter(data)'`
413
+ from a custom script function. `null` means no band; an invalid band is
414
+ dropped and the PDF still prints.
415
+ - **`skipFirstPage: true`** leaves the band out on page 1; the space stays reserved.
416
+ - Android 7 and app versions without band support print the PDF without the band.
417
+
369
418
  ## Global action caller context
370
419
 
371
420
  A key thing to understand: when `executeAction` calls a global action, expressions inside the global action's steps resolve in the **caller's screen context**. That means `@ctx.datasources.X` refers to the caller's screen-level datasources, not anything defined on the action itself (global actions don't have datasources).
@@ -1,5 +1,12 @@
1
1
  # Pattern: REST Integration (Acumatica)
2
2
 
3
+ ## Current mobile data behavior
4
+
5
+ Use [Command batches](./pattern-command-batches.md) for dependent queued calls and
6
+ [Data runtime behavior](./pattern-data-runtime.md) for disableNetworkRetries, guard
7
+ short-circuits, Basic Auth and conversions inside a JSON attachment body. Keep
8
+ server-side idempotency and persisted completion checks even when calls share a batch.
9
+
3
10
  ## Best-practice boundary
4
11
 
5
12
  Use this file to define how Acumatica REST functions are built, not when UI flows should call them.
@@ -185,7 +192,7 @@ Query results are accessed via `@ctx.queries.<queryName>`. With `jsonColumns: ['
185
192
  The action only passes `id` and `remote` — no data parameter:
186
193
 
187
194
  ```typescript
188
- buttons.add.executeAction({
195
+ buttons.addAction.executeAction({
189
196
  action: ACTION.CUSTOMER_SAVE_REMOTE,
190
197
  parameters: {
191
198
  id: '=@ctx.datasources.data-select-customer-to-save.id',
@@ -371,7 +378,7 @@ For batch sync from a header action, the UI should pass a datasource collection
371
378
  header.actions.executeAction({
372
379
  title: 'Sync',
373
380
  action: ACTION.SYNC_ALL,
374
- icon: 'cloud-sync',
381
+ icon: 'cloud-data-connection',
375
382
  parameters: {
376
383
  records: '=@ctx.datasources.syncable-records',
377
384
  },
@@ -505,13 +512,13 @@ app.script('acumaticaerrors.js', readScriptFile('acumaticaerrors.js'))
505
512
  export function addAcumaticaPutErrorHandlers(fn: RestFunctionBuilder, entityLabel: string): void {
506
513
  fn.error('=@ctx.response.status = 401')
507
514
  .notification(true)
508
- .alert({ icon: 'on-error-sad', title: '401 - Not authenticated', description: '...' })
515
+ .alert({ icon: 'mood-sad', title: '401 - Not authenticated', description: '...' })
509
516
 
510
517
  fn.error('=@ctx.response.status = 422')
511
518
  .notification(true)
512
519
  .details(`=$acumaticaerrors.findNestedErrors(@ctx.response.body,
513
520
  "Acumatica rejected the request. Review the values and try again.")`)
514
- .alert({ icon: 'on-error-sad', title: '422 - Data Validation error',
521
+ .alert({ icon: 'mood-sad', title: '422 - Data Validation error',
515
522
  description: `=$acumaticaerrors.findNestedErrors(@ctx.response.body,
516
523
  "Acumatica rejected the ${entityLabel}. Review the values and try again.")` })
517
524
  .operation('=@ctx.response.body')
@@ -521,7 +528,7 @@ export function addAcumaticaPutErrorHandlers(fn: RestFunctionBuilder, entityLabe
521
528
  fn.error('=@ctx.response.status = 503')
522
529
  .retry({ delay: 5000, maxRetries: 3 })
523
530
  .notification(true)
524
- .alert({ icon: 'on-error-sad', title: '503 - Acumatica Unavailable', description: '...' })
531
+ .alert({ icon: 'mood-sad', title: '503 - Acumatica Unavailable', description: '...' })
525
532
  .operation('=@ctx.response.body')
526
533
  .upsertReplace('diff-sync-errors')
527
534
 
@@ -1,5 +1,13 @@
1
1
  # Pattern: Data Sync (Acumatica)
2
2
 
3
+ ## Queued write ordering
4
+
5
+ For dependent writes, use [Command batches](./pattern-command-batches.md).
6
+ Sequential action lists control enqueueing, while batch processing controls remote
7
+ execution. Dynamic Data file uploads now default to async; choose explicit sync
8
+ when subsequent work requires upload completion. See [Data runtime behavior](./pattern-data-runtime.md)
9
+ for replay, guard and transfer semantics.
10
+
3
11
  ## Overview
4
12
 
5
13
  Syncing data from Acumatica involves:
@@ -114,7 +122,7 @@ Example shape:
114
122
  header.actions.executeAction({
115
123
  title: 'Sync',
116
124
  action: 'act-sync-all',
117
- icon: 'cloud-sync',
125
+ icon: 'cloud-data-connection',
118
126
  parameters: {
119
127
  records: '=@ctx.datasources.syncable-records',
120
128
  },
@@ -433,7 +441,7 @@ Acumatica exposes two API styles. Use REST endpoints where possible — the resp
433
441
  | Response format | Nested JSON with `.value` wrappers | Flat fields |
434
442
  | Records location | Top-level array (`@ctx.response.body`) | Under `value` array (`@ctx.response.body.value`) |
435
443
  | outputTransform | Simple — add `id` + `Remote` | Complex — reshape flat → nested with `.value` wrappers |
436
- | Date handling | ISO format with timezone | Needs timezone conversion (hard-code or from config) |
444
+ | Date handling | ISO format with timezone | Needs timezone conversion (zone name from config) |
437
445
  | Counting for continuation | `$count(@ctx.output.data)` | `$count(@ctx.output.data)` (after transform) |
438
446
 
439
447
  For non-Acumatica systems, the same patterns apply — just adapt the URL, auth, response format, and outputTransform to match the API.
@@ -626,21 +634,16 @@ record so the next sync can compute a new local max. Preserve the same
626
634
 
627
635
  ## Acumatica-specific: OData timezone handling
628
636
 
629
- OData responses from Acumatica use a different datetime format than REST. A timezone conversion function is needed in the outputTransform:
637
+ OData responses from Acumatica use a different datetime format than REST. A timezone conversion is needed in the outputTransform. The outputTransform must start with `=` and the function must set `useLocalCall: true` ([availability](./runtime-variables.md#where-they-are-available)):
630
638
 
631
639
  ```jsonata
632
- $tz := "+02:00";
633
- $tzSign := $substring($tz, 0, 1) = "-" ? -1 : 1;
634
- $tzH := $number($substring($tz, 1, 2));
635
- $tzM := $number($substring($tz, 4, 2));
636
- $tzOffsetMs := $tzSign * ($tzH * 60 + $tzM) * 60 * 1000;
637
- $pic := "[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001]";
640
+ $zone := "Europe/Prague";
638
641
  $fmtDT := function($d) {
639
- $d ? $fromMillis($toMillis($d & "Z") + $tzOffsetMs, $pic) & $tz : undefined
642
+ $d ? $utcToTimezone($d & "Z", $zone, "YYYY-MM-DDTHH:mm:ss.SSSZ") : undefined
640
643
  };
641
644
  ```
642
645
 
643
- Ideally, store the timezone value in the config table and fetch it via a query in the function, rather than hardcoding.
646
+ Use an IANA zone name, not a fixed offset, so the offset is correct on both sides of a DST change. Ideally, store the zone name in the config table and fetch it via a query in the function, rather than hardcoding.
644
647
 
645
648
  ## Error handlers for GET functions
646
649
 
@@ -28,7 +28,7 @@ Use `.input()` to pass state from the tabs screen to child screens:
28
28
 
29
29
  ```typescript
30
30
  const generalTab = tabs.addInstance.tab(SCREEN.CUSTOMER_GENERAL, TAB_INSTANCE.GENERAL)
31
- generalTab.button({ instanceId: 'general-btn', title: 'General', icon: 'contact' })
31
+ generalTab.button({ instanceId: 'general-btn', title: 'General', icon: 'address-book' })
32
32
  generalTab.input('showDiscardAlert', '=@ctx.jig.state.showDiscardAlert')
33
33
  ```
34
34
 
@@ -93,7 +93,7 @@ screen.addControl.jig({
93
93
  when: '=@ctx.components.manufacturer.state.value = "AMARR"',
94
94
  })
95
95
 
96
- screen.bottomPanel().add.list({
96
+ screen.bottomPanel().addAction.list({
97
97
  title: 'Save Door',
98
98
  isDisabled: '=@ctx.components.manufacturer.state.value ? false:true',
99
99
  })
@@ -160,7 +160,7 @@ This is the stable local key for the whole aggregate until remote sync happens.
160
160
  Example:
161
161
 
162
162
  ```typescript
163
- const createActions = list.bottomPanel().add.list({
163
+ const createActions = list.bottomPanel().addAction.list({
164
164
  title: 'New Service Order',
165
165
  isPrimary: true,
166
166
  concurrency: 'sequential',
@@ -262,7 +262,7 @@ Use as `isDisabled` (inverted) on the save button — see
262
262
  `isDisabled` not `when`.
263
263
 
264
264
  ```typescript
265
- tabs.bottomPanel().add.executeAction({
265
+ tabs.bottomPanel().addAction.executeAction({
266
266
  title: 'Save',
267
267
  action: 'act-customer-save',
268
268
  isDisabled: `=(${IS_VALID}) = true ? false:true`,
@@ -15,9 +15,12 @@ Reference implementation: `workspace/acumatica-apps/create-customer/`
15
15
  | [pattern-global-actions.md](pattern-global-actions.md) | Parameter snapshotting, local save action, JSONata save expression, TypeScript helpers |
16
16
  | [pattern-rest-acumatica.md](pattern-rest-acumatica.md) | REST functions, Acumatica conventions, functionCall, accessToken, remote sync flag |
17
17
  | [pattern-navigation.md](pattern-navigation.md) | behaviour: 'new', $uuid(), bottom panel order, list-detail-child flow, screen-scoped datasources |
18
+ | [pattern-command-batches.md](pattern-command-batches.md) | Queue ordering, sync/parallel/async scheduling, uploads and batch recovery |
19
+ | [pattern-data-runtime.md](pattern-data-runtime.md) | REST retries, guards, converted attachments and runtime compatibility |
18
20
  | [pattern-sync.md](pattern-sync.md) | Initial sync, continuation, diff sync, sync scopes, OData vs REST |
19
21
  | [pattern-sync-progress.md](pattern-sync-progress.md) | Sync progress bar UI ideas — weights, step text, show/hide, cards |
20
22
  | [pattern-javascript-functions.md](pattern-javascript-functions.md) | `app.script()` — extend JSONata with custom JS functions (math, formatting, HTML templates, validation, transformation) |
23
+ | [runtime-variables.md](runtime-variables.md#timezone) | Runtime variables; `$utcToTimezone` / `$timezoneToUtc` — UTC instant to local text and back, DST-correct, where they are available |
21
24
  | [pattern-pdf-generation.md](pattern-pdf-generation.md) | `generate-pdf` action + `app.script()` + `jig.document` screen — generate, persist, preview, share PDFs |
22
25
  | [pattern-build-deploy.md](pattern-build-deploy.md) | Build order, typecheck, JSON/YAML generation, deploy script, Jigx API |
23
26
 
@@ -35,7 +35,74 @@ import { Auth, System, JsonataBuilder } from '@jigx/expert-sdk'
35
35
  | Variable | Type | Description |
36
36
  | --- | --- | --- |
37
37
  | `System.timezone.name` | string | Timezone name (e.g., 'America/New_York') |
38
- | `System.timezone.offset` | number | UTC offset in minutes |
38
+ | `System.timezone.offset` | string | UTC offset as `±HHMM` (e.g., '+0200'), for today only. Mobile reads it again each time the app becomes active. Web reads it once per page load, so an open page keeps the old offset across a DST change. |
39
+
40
+ `$utcToTimezone` and `$timezoneToUtc` are runtime Expression functions. They convert between a UTC instant and local wall-clock text, with the correct DST offset for the date of the value.
41
+
42
+ These notes track [Mobile #7696](https://github.com/jigx-com/jigx/pull/7696). Confirm that the target app build includes it.
43
+
44
+ #### Conversion functions
45
+
46
+ | Function | Input | Output |
47
+ | --- | --- | --- |
48
+ | `$utcToTimezone(value, zone?, format?)` | ISO 8601 string with `Z` or an offset, or epoch millis | Text in `zone`. Without `format`: ISO 8601 with offset |
49
+ | `$timezoneToUtc(wallClock, zone?)` | ISO 8601 string with no offset (`2026-07-15T08:00:00`, `2026-07-15`). Date-only means midnight in `zone` | UTC ISO 8601 string |
50
+
51
+ - `zone`: IANA name (`Europe/Prague`), `'UTC'`, or `'local'` (device zone). Default: `'local'`.
52
+ - `format`: moment tokens (`HH:mm`, `YYYY-MM-DD`), not `$fromMillis` picture strings.
53
+ - Null or undefined input returns `undefined`.
54
+ - Invalid input does not throw. The function logs a warning and returns the input unchanged. A value with no offset passed to `$utcToTimezone` is invalid, and so is a value with an offset passed to `$timezoneToUtc`.
55
+
56
+ #### Conversion examples
57
+
58
+ ```typescript
59
+ // UTC instant -> local text for an external system
60
+ screen.addWidget
61
+ .value({ name: 'departed-local' })
62
+ .value('=$utcToTimezone(@ctx.jig.inputs.departedAt, "local", "YYYY-MM-DDTHH:mm:ss")')
63
+
64
+ // Local calendar day. $now() is UTC, so it can be a different day
65
+ screen.addWidget
66
+ .value({ name: 'local-today' })
67
+ .value('=$utcToTimezone($now(), "local", "YYYY-MM-DD")')
68
+
69
+ // Time at a site, not on the device
70
+ screen.addWidget
71
+ .value({ name: 'site-time' })
72
+ .value('=$utcToTimezone(@ctx.jig.inputs.arrivalAt, @ctx.jig.inputs.siteZone, "HH:mm")')
73
+
74
+ // Local wall-clock text -> UTC instant
75
+ screen.addWidget
76
+ .value({ name: 'shift-start-utc' })
77
+ .value('=$timezoneToUtc(@ctx.jig.inputs.shiftStartLocal, @ctx.jig.inputs.siteZone)')
78
+ ```
79
+
80
+ #### Which zone
81
+
82
+ | Value | Zone |
83
+ | --- | --- |
84
+ | A moment in time (created, submitted) | `'local'` |
85
+ | A calendar date (transaction date, period) | `'local'` |
86
+ | A time of day at a site (shift start, appointment) | IANA name of the site, from configuration |
87
+
88
+ #### When not to use them
89
+
90
+ | Goal | Use |
91
+ | --- | --- |
92
+ | Show a date to the user | Date `format` with `timezone`. It does not change the stored value |
93
+ | Compare or calculate with dates | `$toMillis` / `$millis()` |
94
+ | Business-day arithmetic | [JavaScript functions](./pattern-javascript-functions.md) |
95
+
96
+ Do not calculate local time from `@ctx.system.timezone.offset`. It is the offset for today, so a date in the other DST season is one hour wrong.
97
+
98
+ #### Where they are available
99
+
100
+ | Location | Available |
101
+ | --- | --- |
102
+ | Expressions with a leading `=` on device | Yes |
103
+ | `outputTransform` with a leading `=` and `useLocalCall: true` | Yes |
104
+ | `outputTransform` with no leading `=` (legacy) | No. It evaluates with stock JSONata |
105
+ | `outputTransform` of a remote function (no `useLocalCall`) | Not confirmed. It does not run on the device, so do not use them there |
39
106
 
40
107
  ## User Variables (Auth.user)
41
108
 
package/docs/sections.md CHANGED
@@ -57,7 +57,7 @@ section.addText({ name: 'description', label: 'Description' })
57
57
  ## Example: Multi-Section Step
58
58
 
59
59
  ```typescript
60
- form.addStep({ instanceId: 'profile', icon: 'single-neutral' }, (step) => {
60
+ form.addStep({ instanceId: 'profile', icon: 'user' }, (step) => {
61
61
  // Personal section
62
62
  const personal = step.addSection({ title: 'Personal' })
63
63
  personal.addText({ name: 'full-name', label: 'Full Name' })