@ketvietlab/ketsuite 0.1.29 → 0.1.30

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 (762) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/modules/account_backend/index.js +0 -6
  3. package/dist/modules/account_backend/index.js.map +1 -1
  4. package/dist/modules/account_backend/screens/account-defaults.d.ts.map +1 -1
  5. package/dist/modules/account_backend/screens/account-defaults.js +1 -1
  6. package/dist/modules/account_backend/screens/account-defaults.js.map +1 -1
  7. package/dist/modules/account_backend/screens/account-form.d.ts.map +1 -1
  8. package/dist/modules/account_backend/screens/account-form.js +3 -1
  9. package/dist/modules/account_backend/screens/account-form.js.map +1 -1
  10. package/dist/modules/account_backend/screens/accounts-list.d.ts.map +1 -1
  11. package/dist/modules/account_backend/screens/accounts-list.js +1 -1
  12. package/dist/modules/account_backend/screens/accounts-list.js.map +1 -1
  13. package/dist/modules/account_backend/screens/customer-invoice-form.d.ts.map +1 -1
  14. package/dist/modules/account_backend/screens/customer-invoice-form.js +1 -1
  15. package/dist/modules/account_backend/screens/customer-invoice-form.js.map +1 -1
  16. package/dist/modules/account_backend/screens/customer-invoices-list.d.ts.map +1 -1
  17. package/dist/modules/account_backend/screens/customer-invoices-list.js +1 -1
  18. package/dist/modules/account_backend/screens/customer-invoices-list.js.map +1 -1
  19. package/dist/modules/account_backend/screens/journal-entries-list.d.ts.map +1 -1
  20. package/dist/modules/account_backend/screens/journal-entries-list.js +1 -1
  21. package/dist/modules/account_backend/screens/journal-entries-list.js.map +1 -1
  22. package/dist/modules/account_backend/screens/journal-entry-create.d.ts.map +1 -1
  23. package/dist/modules/account_backend/screens/journal-entry-create.js +1 -1
  24. package/dist/modules/account_backend/screens/journal-entry-create.js.map +1 -1
  25. package/dist/modules/account_backend/screens/journal-form.d.ts.map +1 -1
  26. package/dist/modules/account_backend/screens/journal-form.js +3 -3
  27. package/dist/modules/account_backend/screens/journal-form.js.map +1 -1
  28. package/dist/modules/account_backend/screens/journals-list.d.ts.map +1 -1
  29. package/dist/modules/account_backend/screens/journals-list.js +1 -1
  30. package/dist/modules/account_backend/screens/journals-list.js.map +1 -1
  31. package/dist/modules/account_backend/screens/move-detail.d.ts.map +1 -1
  32. package/dist/modules/account_backend/screens/move-detail.js +3 -1
  33. package/dist/modules/account_backend/screens/move-detail.js.map +1 -1
  34. package/dist/modules/account_backend/screens/opening-balances.d.ts.map +1 -1
  35. package/dist/modules/account_backend/screens/opening-balances.js +2 -2
  36. package/dist/modules/account_backend/screens/opening-balances.js.map +1 -1
  37. package/dist/modules/account_backend/screens/overview.js +4 -2
  38. package/dist/modules/account_backend/screens/overview.js.map +1 -1
  39. package/dist/modules/account_backend/screens/payment-form.d.ts.map +1 -1
  40. package/dist/modules/account_backend/screens/payment-form.js +1 -1
  41. package/dist/modules/account_backend/screens/payment-form.js.map +1 -1
  42. package/dist/modules/account_backend/screens/payment-term-form.d.ts.map +1 -1
  43. package/dist/modules/account_backend/screens/payment-term-form.js +4 -2
  44. package/dist/modules/account_backend/screens/payment-term-form.js.map +1 -1
  45. package/dist/modules/account_backend/screens/payment-terms-list.d.ts.map +1 -1
  46. package/dist/modules/account_backend/screens/payment-terms-list.js +1 -1
  47. package/dist/modules/account_backend/screens/payment-terms-list.js.map +1 -1
  48. package/dist/modules/account_backend/screens/payments-list.d.ts.map +1 -1
  49. package/dist/modules/account_backend/screens/payments-list.js +1 -1
  50. package/dist/modules/account_backend/screens/payments-list.js.map +1 -1
  51. package/dist/modules/account_backend/screens/period-closes.d.ts.map +1 -1
  52. package/dist/modules/account_backend/screens/period-closes.js +1 -1
  53. package/dist/modules/account_backend/screens/period-closes.js.map +1 -1
  54. package/dist/modules/account_backend/screens/tax-form.d.ts.map +1 -1
  55. package/dist/modules/account_backend/screens/tax-form.js +3 -1
  56. package/dist/modules/account_backend/screens/tax-form.js.map +1 -1
  57. package/dist/modules/account_backend/screens/taxes-list.d.ts.map +1 -1
  58. package/dist/modules/account_backend/screens/taxes-list.js +1 -1
  59. package/dist/modules/account_backend/screens/taxes-list.js.map +1 -1
  60. package/dist/modules/account_backend/screens/vendor-bill-form.d.ts.map +1 -1
  61. package/dist/modules/account_backend/screens/vendor-bill-form.js +1 -1
  62. package/dist/modules/account_backend/screens/vendor-bill-form.js.map +1 -1
  63. package/dist/modules/account_backend/screens/vendor-bills-list.d.ts.map +1 -1
  64. package/dist/modules/account_backend/screens/vendor-bills-list.js +1 -1
  65. package/dist/modules/account_backend/screens/vendor-bills-list.js.map +1 -1
  66. package/dist/modules/account_partner_backend/screens/accounting-terms.d.ts.map +1 -1
  67. package/dist/modules/account_partner_backend/screens/accounting-terms.js +1 -1
  68. package/dist/modules/account_partner_backend/screens/accounting-terms.js.map +1 -1
  69. package/dist/modules/activity_backend/index.d.ts.map +1 -1
  70. package/dist/modules/activity_backend/index.js +0 -2
  71. package/dist/modules/activity_backend/index.js.map +1 -1
  72. package/dist/modules/activity_backend/screens/activities-list.d.ts.map +1 -1
  73. package/dist/modules/activity_backend/screens/activities-list.js +1 -1
  74. package/dist/modules/activity_backend/screens/activities-list.js.map +1 -1
  75. package/dist/modules/address_backend/index.d.ts.map +1 -1
  76. package/dist/modules/address_backend/index.js +0 -2
  77. package/dist/modules/address_backend/index.js.map +1 -1
  78. package/dist/modules/address_backend/screens/catalogs-list.d.ts.map +1 -1
  79. package/dist/modules/address_backend/screens/catalogs-list.js +1 -1
  80. package/dist/modules/address_backend/screens/catalogs-list.js.map +1 -1
  81. package/dist/modules/attendance_backend/screens/credentials.d.ts.map +1 -1
  82. package/dist/modules/attendance_backend/screens/credentials.js +1 -1
  83. package/dist/modules/attendance_backend/screens/credentials.js.map +1 -1
  84. package/dist/modules/attendance_backend/screens/period.d.ts.map +1 -1
  85. package/dist/modules/attendance_backend/screens/period.js +1 -1
  86. package/dist/modules/attendance_backend/screens/period.js.map +1 -1
  87. package/dist/modules/backend/current-company.d.ts +4 -0
  88. package/dist/modules/backend/current-company.d.ts.map +1 -0
  89. package/dist/modules/backend/current-company.js +27 -0
  90. package/dist/modules/backend/current-company.js.map +1 -0
  91. package/dist/modules/backend/design/client/backend-shell.d.mts +2 -2
  92. package/dist/modules/backend/design/client/backend-shell.d.mts.map +1 -1
  93. package/dist/modules/backend/design/client/backend-shell.mjs +1 -1
  94. package/dist/modules/backend/design/client/backend-shell.mjs.map +4 -4
  95. package/dist/modules/backend/design/client/ket-table.d.mts +2 -2
  96. package/dist/modules/backend/design/client/ket-table.d.mts.map +1 -1
  97. package/dist/modules/backend/design/client/ket-table.mjs +1 -1
  98. package/dist/modules/backend/design/client/ket-table.mjs.map +3 -3
  99. package/dist/modules/backend/design/client/search-filter.d.mts +2 -2
  100. package/dist/modules/backend/design/client/search-filter.d.mts.map +1 -1
  101. package/dist/modules/backend/design/client/search-filter.mjs +1 -1
  102. package/dist/modules/backend/design/client/search-filter.mjs.map +3 -3
  103. package/dist/modules/backend/design/forms.css +31 -0
  104. package/dist/modules/backend/index.d.ts +1 -0
  105. package/dist/modules/backend/index.d.ts.map +1 -1
  106. package/dist/modules/backend/index.js +1 -0
  107. package/dist/modules/backend/index.js.map +1 -1
  108. package/dist/modules/backend/optional-read.d.ts +4 -0
  109. package/dist/modules/backend/optional-read.d.ts.map +1 -0
  110. package/dist/modules/backend/optional-read.js +7 -0
  111. package/dist/modules/backend/optional-read.js.map +1 -0
  112. package/dist/modules/company_backend/index.d.ts.map +1 -1
  113. package/dist/modules/company_backend/index.js +0 -2
  114. package/dist/modules/company_backend/index.js.map +1 -1
  115. package/dist/modules/company_backend/screens/branch-form.d.ts.map +1 -1
  116. package/dist/modules/company_backend/screens/branch-form.js +3 -1
  117. package/dist/modules/company_backend/screens/branch-form.js.map +1 -1
  118. package/dist/modules/company_backend/screens/companies-list.d.ts.map +1 -1
  119. package/dist/modules/company_backend/screens/companies-list.js +1 -1
  120. package/dist/modules/company_backend/screens/companies-list.js.map +1 -1
  121. package/dist/modules/company_backend/screens/company-form.d.ts.map +1 -1
  122. package/dist/modules/company_backend/screens/company-form.js +1 -3
  123. package/dist/modules/company_backend/screens/company-form.js.map +1 -1
  124. package/dist/modules/company_backend/screens/context.d.ts.map +1 -1
  125. package/dist/modules/company_backend/screens/context.js +1 -1
  126. package/dist/modules/company_backend/screens/context.js.map +1 -1
  127. package/dist/modules/company_backend/screens/hierarchy.d.ts.map +1 -1
  128. package/dist/modules/company_backend/screens/hierarchy.js +1 -1
  129. package/dist/modules/company_backend/screens/hierarchy.js.map +1 -1
  130. package/dist/modules/crm_backend/client/crm-case-modal.d.mts +7 -7
  131. package/dist/modules/crm_backend/client/crm-case-modal.d.mts.map +1 -1
  132. package/dist/modules/crm_backend/client/crm-case-modal.mjs +1 -1
  133. package/dist/modules/crm_backend/client/crm-case-modal.mjs.map +3 -3
  134. package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts +50 -50
  135. package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts.map +1 -1
  136. package/dist/modules/crm_backend/client/crm-configuration-modal.mjs +1 -1
  137. package/dist/modules/crm_backend/client/crm-configuration-modal.mjs.map +3 -3
  138. package/dist/modules/crm_backend/messages.d.ts +0 -10
  139. package/dist/modules/crm_backend/messages.d.ts.map +1 -1
  140. package/dist/modules/crm_backend/messages.js +0 -10
  141. package/dist/modules/crm_backend/messages.js.map +1 -1
  142. package/dist/modules/crm_backend/screens/activity-planner.d.ts.map +1 -1
  143. package/dist/modules/crm_backend/screens/activity-planner.js +1 -1
  144. package/dist/modules/crm_backend/screens/activity-planner.js.map +1 -1
  145. package/dist/modules/crm_backend/screens/case-create.d.ts.map +1 -1
  146. package/dist/modules/crm_backend/screens/case-create.js +1 -1
  147. package/dist/modules/crm_backend/screens/case-create.js.map +1 -1
  148. package/dist/modules/crm_backend/screens/case-detail.d.ts.map +1 -1
  149. package/dist/modules/crm_backend/screens/case-detail.js +2 -2
  150. package/dist/modules/crm_backend/screens/case-detail.js.map +1 -1
  151. package/dist/modules/crm_backend/screens/cases-list.d.ts.map +1 -1
  152. package/dist/modules/crm_backend/screens/cases-list.js +1 -1
  153. package/dist/modules/crm_backend/screens/cases-list.js.map +1 -1
  154. package/dist/modules/crm_backend/screens/configuration.d.ts.map +1 -1
  155. package/dist/modules/crm_backend/screens/configuration.js +1 -1
  156. package/dist/modules/crm_backend/screens/configuration.js.map +1 -1
  157. package/dist/modules/crm_backend/screens/leaderboard.d.ts.map +1 -1
  158. package/dist/modules/crm_backend/screens/leaderboard.js +1 -1
  159. package/dist/modules/crm_backend/screens/leaderboard.js.map +1 -1
  160. package/dist/modules/crm_backend/screens/pipeline.d.ts.map +1 -1
  161. package/dist/modules/crm_backend/screens/pipeline.js +1 -1
  162. package/dist/modules/crm_backend/screens/pipeline.js.map +1 -1
  163. package/dist/modules/flow/domain/command-check.d.ts +3 -0
  164. package/dist/modules/flow/domain/command-check.d.ts.map +1 -0
  165. package/dist/modules/flow/domain/command-check.js +9 -0
  166. package/dist/modules/flow/domain/command-check.js.map +1 -0
  167. package/dist/modules/flow/domain/command.d.ts +33 -0
  168. package/dist/modules/flow/domain/command.d.ts.map +1 -0
  169. package/dist/modules/flow/domain/command.js +35 -0
  170. package/dist/modules/flow/domain/command.js.map +1 -0
  171. package/dist/modules/flow/domain/issue-bulk.d.ts +50 -0
  172. package/dist/modules/flow/domain/issue-bulk.d.ts.map +1 -0
  173. package/dist/modules/flow/domain/issue-bulk.js +97 -0
  174. package/dist/modules/flow/domain/issue-bulk.js.map +1 -0
  175. package/dist/modules/flow/domain/issue-dependency.d.ts +19 -0
  176. package/dist/modules/flow/domain/issue-dependency.d.ts.map +1 -0
  177. package/dist/modules/flow/domain/issue-dependency.js +59 -0
  178. package/dist/modules/flow/domain/issue-dependency.js.map +1 -0
  179. package/dist/modules/flow/domain/issue-discussion.d.ts +52 -0
  180. package/dist/modules/flow/domain/issue-discussion.d.ts.map +1 -0
  181. package/dist/modules/flow/domain/issue-discussion.js +114 -0
  182. package/dist/modules/flow/domain/issue-discussion.js.map +1 -0
  183. package/dist/modules/flow/domain/issue-transfer.d.ts +62 -0
  184. package/dist/modules/flow/domain/issue-transfer.d.ts.map +1 -0
  185. package/dist/modules/flow/domain/issue-transfer.js +171 -0
  186. package/dist/modules/flow/domain/issue-transfer.js.map +1 -0
  187. package/dist/modules/flow/domain/issue-validation.d.ts +68 -0
  188. package/dist/modules/flow/domain/issue-validation.d.ts.map +1 -0
  189. package/dist/modules/flow/domain/issue-validation.js +136 -0
  190. package/dist/modules/flow/domain/issue-validation.js.map +1 -0
  191. package/dist/modules/flow/domain/issue-write.d.ts +118 -0
  192. package/dist/modules/flow/domain/issue-write.d.ts.map +1 -0
  193. package/dist/modules/flow/domain/issue-write.js +372 -0
  194. package/dist/modules/flow/domain/issue-write.js.map +1 -0
  195. package/dist/modules/flow/domain/sprint-lifecycle.d.ts +61 -0
  196. package/dist/modules/flow/domain/sprint-lifecycle.d.ts.map +1 -0
  197. package/dist/modules/flow/domain/sprint-lifecycle.js +145 -0
  198. package/dist/modules/flow/domain/sprint-lifecycle.js.map +1 -0
  199. package/dist/modules/flow/functions/board.d.ts +7 -0
  200. package/dist/modules/flow/functions/board.d.ts.map +1 -0
  201. package/dist/modules/flow/functions/board.js +59 -0
  202. package/dist/modules/flow/functions/board.js.map +1 -0
  203. package/dist/modules/flow/functions/column.d.ts +8 -0
  204. package/dist/modules/flow/functions/column.d.ts.map +1 -0
  205. package/dist/modules/flow/functions/column.js +64 -0
  206. package/dist/modules/flow/functions/column.js.map +1 -0
  207. package/dist/modules/flow/functions/effects.d.ts +21 -0
  208. package/dist/modules/flow/functions/effects.d.ts.map +1 -0
  209. package/dist/modules/flow/functions/effects.js +96 -0
  210. package/dist/modules/flow/functions/effects.js.map +1 -0
  211. package/dist/modules/flow/functions/entity-save.d.ts +4 -0
  212. package/dist/modules/flow/functions/entity-save.d.ts.map +1 -0
  213. package/dist/modules/flow/functions/entity-save.js +60 -0
  214. package/dist/modules/flow/functions/entity-save.js.map +1 -0
  215. package/dist/modules/flow/functions/epic.d.ts +26 -0
  216. package/dist/modules/flow/functions/epic.d.ts.map +1 -0
  217. package/dist/modules/flow/functions/epic.js +151 -0
  218. package/dist/modules/flow/functions/epic.js.map +1 -0
  219. package/dist/modules/flow/functions/field.d.ts +9 -0
  220. package/dist/modules/flow/functions/field.d.ts.map +1 -0
  221. package/dist/modules/flow/functions/field.js +117 -0
  222. package/dist/modules/flow/functions/field.js.map +1 -0
  223. package/dist/modules/flow/functions/index.d.ts +5 -0
  224. package/dist/modules/flow/functions/index.d.ts.map +1 -0
  225. package/dist/modules/flow/functions/index.js +42 -0
  226. package/dist/modules/flow/functions/index.js.map +1 -0
  227. package/dist/modules/flow/functions/issue-batch.d.ts +6 -0
  228. package/dist/modules/flow/functions/issue-batch.d.ts.map +1 -0
  229. package/dist/modules/flow/functions/issue-batch.js +149 -0
  230. package/dist/modules/flow/functions/issue-batch.js.map +1 -0
  231. package/dist/modules/flow/functions/issue-dependency.d.ts +8 -0
  232. package/dist/modules/flow/functions/issue-dependency.d.ts.map +1 -0
  233. package/dist/modules/flow/functions/issue-dependency.js +54 -0
  234. package/dist/modules/flow/functions/issue-dependency.js.map +1 -0
  235. package/dist/modules/flow/functions/issue-discussion.d.ts +6 -0
  236. package/dist/modules/flow/functions/issue-discussion.d.ts.map +1 -0
  237. package/dist/modules/flow/functions/issue-discussion.js +86 -0
  238. package/dist/modules/flow/functions/issue-discussion.js.map +1 -0
  239. package/dist/modules/flow/functions/issue-read.d.ts +18 -0
  240. package/dist/modules/flow/functions/issue-read.d.ts.map +1 -0
  241. package/dist/modules/flow/functions/issue-read.js +159 -0
  242. package/dist/modules/flow/functions/issue-read.js.map +1 -0
  243. package/dist/modules/flow/functions/issue-write.d.ts +9 -0
  244. package/dist/modules/flow/functions/issue-write.d.ts.map +1 -0
  245. package/dist/modules/flow/functions/issue-write.js +149 -0
  246. package/dist/modules/flow/functions/issue-write.js.map +1 -0
  247. package/dist/modules/flow/functions/issueType.d.ts +8 -0
  248. package/dist/modules/flow/functions/issueType.d.ts.map +1 -0
  249. package/dist/modules/flow/functions/issueType.js +66 -0
  250. package/dist/modules/flow/functions/issueType.js.map +1 -0
  251. package/dist/modules/flow/functions/page.d.ts +22 -0
  252. package/dist/modules/flow/functions/page.d.ts.map +1 -0
  253. package/dist/modules/flow/functions/page.js +202 -0
  254. package/dist/modules/flow/functions/page.js.map +1 -0
  255. package/dist/modules/flow/functions/project.d.ts +26 -0
  256. package/dist/modules/flow/functions/project.d.ts.map +1 -0
  257. package/dist/modules/flow/functions/project.js +381 -0
  258. package/dist/modules/flow/functions/project.js.map +1 -0
  259. package/dist/modules/flow/functions/sprint.d.ts +17 -0
  260. package/dist/modules/flow/functions/sprint.d.ts.map +1 -0
  261. package/dist/modules/flow/functions/sprint.js +173 -0
  262. package/dist/modules/flow/functions/sprint.js.map +1 -0
  263. package/dist/modules/flow/functions/tag.d.ts +14 -0
  264. package/dist/modules/flow/functions/tag.d.ts.map +1 -0
  265. package/dist/modules/flow/functions/tag.js +88 -0
  266. package/dist/modules/flow/functions/tag.js.map +1 -0
  267. package/dist/modules/flow/index.d.ts +8 -2
  268. package/dist/modules/flow/index.d.ts.map +1 -1
  269. package/dist/modules/flow/index.js +7 -2
  270. package/dist/modules/flow/index.js.map +1 -1
  271. package/dist/modules/flow/pages.d.ts +1 -1
  272. package/dist/modules/flow/pages.d.ts.map +1 -1
  273. package/dist/modules/flow/pages.js +1 -1
  274. package/dist/modules/flow/pages.js.map +1 -1
  275. package/dist/modules/flow/queries/calendar.d.ts +21 -0
  276. package/dist/modules/flow/queries/calendar.d.ts.map +1 -0
  277. package/dist/modules/flow/queries/calendar.js +31 -0
  278. package/dist/modules/flow/queries/calendar.js.map +1 -0
  279. package/dist/modules/flow/queries/issue-dependencies.d.ts +17 -0
  280. package/dist/modules/flow/queries/issue-dependencies.d.ts.map +1 -0
  281. package/dist/modules/flow/queries/issue-dependencies.js +46 -0
  282. package/dist/modules/flow/queries/issue-dependencies.js.map +1 -0
  283. package/dist/modules/flow/queries/issue-followers.d.ts +6 -0
  284. package/dist/modules/flow/queries/issue-followers.d.ts.map +1 -0
  285. package/dist/modules/flow/queries/issue-followers.js +18 -0
  286. package/dist/modules/flow/queries/issue-followers.js.map +1 -0
  287. package/dist/modules/flow/queries/issue-list.d.ts +153 -0
  288. package/dist/modules/flow/queries/issue-list.d.ts.map +1 -0
  289. package/dist/modules/flow/queries/issue-list.js +439 -0
  290. package/dist/modules/flow/queries/issue-list.js.map +1 -0
  291. package/dist/modules/flow/queries/options.d.ts +4 -0
  292. package/dist/modules/flow/queries/options.d.ts.map +1 -0
  293. package/dist/modules/flow/queries/options.js +13 -0
  294. package/dist/modules/flow/queries/options.js.map +1 -0
  295. package/dist/modules/flow/queries/progress.d.ts +24 -0
  296. package/dist/modules/flow/queries/progress.d.ts.map +1 -0
  297. package/dist/modules/flow/queries/progress.js +54 -0
  298. package/dist/modules/flow/queries/progress.js.map +1 -0
  299. package/dist/modules/flow/queries/project-list.d.ts +4 -0
  300. package/dist/modules/flow/queries/project-list.d.ts.map +1 -0
  301. package/dist/modules/flow/queries/project-list.js +19 -0
  302. package/dist/modules/flow/queries/project-list.js.map +1 -0
  303. package/dist/modules/flow_backend/messages.d.ts +1 -2
  304. package/dist/modules/flow_backend/messages.d.ts.map +1 -1
  305. package/dist/modules/flow_backend/messages.js +0 -2
  306. package/dist/modules/flow_backend/messages.js.map +1 -1
  307. package/dist/modules/flow_backend/routes.js +1 -1
  308. package/dist/modules/flow_backend/routes.js.map +1 -1
  309. package/dist/modules/flow_backend/screens/all-epics.d.ts.map +1 -1
  310. package/dist/modules/flow_backend/screens/all-epics.js +1 -1
  311. package/dist/modules/flow_backend/screens/all-epics.js.map +1 -1
  312. package/dist/modules/flow_backend/screens/all-pages.d.ts.map +1 -1
  313. package/dist/modules/flow_backend/screens/all-pages.js +1 -1
  314. package/dist/modules/flow_backend/screens/all-pages.js.map +1 -1
  315. package/dist/modules/flow_backend/screens/epic-detail.js +1 -1
  316. package/dist/modules/flow_backend/screens/epic-detail.js.map +1 -1
  317. package/dist/modules/flow_backend/screens/gantt.d.ts.map +1 -1
  318. package/dist/modules/flow_backend/screens/gantt.js +1 -1
  319. package/dist/modules/flow_backend/screens/gantt.js.map +1 -1
  320. package/dist/modules/flow_backend/screens/issue-detail.js +2 -1
  321. package/dist/modules/flow_backend/screens/issue-detail.js.map +1 -1
  322. package/dist/modules/flow_backend/screens/issues.d.ts.map +1 -1
  323. package/dist/modules/flow_backend/screens/issues.js +1 -1
  324. package/dist/modules/flow_backend/screens/issues.js.map +1 -1
  325. package/dist/modules/flow_backend/screens/map.js +1 -1
  326. package/dist/modules/flow_backend/screens/map.js.map +1 -1
  327. package/dist/modules/flow_backend/screens/my-work.d.ts.map +1 -1
  328. package/dist/modules/flow_backend/screens/my-work.js +1 -1
  329. package/dist/modules/flow_backend/screens/my-work.js.map +1 -1
  330. package/dist/modules/flow_backend/screens/page-detail.js +1 -1
  331. package/dist/modules/flow_backend/screens/page-detail.js.map +1 -1
  332. package/dist/modules/flow_backend/screens/project-create.d.ts.map +1 -1
  333. package/dist/modules/flow_backend/screens/project-create.js +1 -1
  334. package/dist/modules/flow_backend/screens/project-create.js.map +1 -1
  335. package/dist/modules/flow_backend/screens/project-pages.d.ts.map +1 -1
  336. package/dist/modules/flow_backend/screens/project-pages.js +1 -1
  337. package/dist/modules/flow_backend/screens/project-pages.js.map +1 -1
  338. package/dist/modules/flow_backend/screens/projects-list.d.ts.map +1 -1
  339. package/dist/modules/flow_backend/screens/projects-list.js +1 -1
  340. package/dist/modules/flow_backend/screens/projects-list.js.map +1 -1
  341. package/dist/modules/flow_backend/screens/sprints.d.ts.map +1 -1
  342. package/dist/modules/flow_backend/screens/sprints.js +1 -1
  343. package/dist/modules/flow_backend/screens/sprints.js.map +1 -1
  344. package/dist/modules/flow_staff_channel/channel-routes.js +1 -1
  345. package/dist/modules/flow_staff_channel/channel-routes.js.map +1 -1
  346. package/dist/modules/hospitality_billing/messages.d.ts.map +1 -1
  347. package/dist/modules/hospitality_billing/messages.js +0 -2
  348. package/dist/modules/hospitality_billing/messages.js.map +1 -1
  349. package/dist/modules/hospitality_billing/screens/billing.d.ts.map +1 -1
  350. package/dist/modules/hospitality_billing/screens/billing.js +1 -1
  351. package/dist/modules/hospitality_billing/screens/billing.js.map +1 -1
  352. package/dist/modules/hospitality_billing/screens/page-frame.d.ts +1 -2
  353. package/dist/modules/hospitality_billing/screens/page-frame.d.ts.map +1 -1
  354. package/dist/modules/hospitality_billing/screens/page-frame.js +1 -1
  355. package/dist/modules/hospitality_billing/screens/page-frame.js.map +1 -1
  356. package/dist/modules/hospitality_core/messages.js +2 -2
  357. package/dist/modules/hospitality_core/messages.js.map +1 -1
  358. package/dist/modules/hospitality_core/screens/check-out-prep.d.ts.map +1 -1
  359. package/dist/modules/hospitality_core/screens/check-out-prep.js +1 -1
  360. package/dist/modules/hospitality_core/screens/check-out-prep.js.map +1 -1
  361. package/dist/modules/hospitality_core/screens/front-desk.d.ts.map +1 -1
  362. package/dist/modules/hospitality_core/screens/front-desk.js +40 -40
  363. package/dist/modules/hospitality_core/screens/front-desk.js.map +1 -1
  364. package/dist/modules/hospitality_core/screens/page-frame.d.ts +2 -3
  365. package/dist/modules/hospitality_core/screens/page-frame.d.ts.map +1 -1
  366. package/dist/modules/hospitality_core/screens/page-frame.js +3 -3
  367. package/dist/modules/hospitality_core/screens/page-frame.js.map +1 -1
  368. package/dist/modules/hospitality_core/screens/tape-chart.d.ts.map +1 -1
  369. package/dist/modules/hospitality_core/screens/tape-chart.js +3 -12
  370. package/dist/modules/hospitality_core/screens/tape-chart.js.map +1 -1
  371. package/dist/modules/hr_backend/screens/employee-form.d.ts.map +1 -1
  372. package/dist/modules/hr_backend/screens/employee-form.js +1 -1
  373. package/dist/modules/hr_backend/screens/employee-form.js.map +1 -1
  374. package/dist/modules/hr_backend/screens/leaves-list.d.ts.map +1 -1
  375. package/dist/modules/hr_backend/screens/leaves-list.js +1 -1
  376. package/dist/modules/hr_backend/screens/leaves-list.js.map +1 -1
  377. package/dist/modules/livedoc/islands.d.ts +9 -0
  378. package/dist/modules/livedoc/islands.d.ts.map +1 -1
  379. package/dist/modules/loyalty_backend/messages.d.ts +0 -10
  380. package/dist/modules/loyalty_backend/messages.d.ts.map +1 -1
  381. package/dist/modules/loyalty_backend/messages.js +0 -10
  382. package/dist/modules/loyalty_backend/messages.js.map +1 -1
  383. package/dist/modules/loyalty_backend/screens/index.d.ts.map +1 -1
  384. package/dist/modules/loyalty_backend/screens/index.js +5 -5
  385. package/dist/modules/loyalty_backend/screens/index.js.map +1 -1
  386. package/dist/modules/loyalty_backend/screens/page-frame.d.ts +2 -3
  387. package/dist/modules/loyalty_backend/screens/page-frame.d.ts.map +1 -1
  388. package/dist/modules/loyalty_backend/screens/page-frame.js +2 -2
  389. package/dist/modules/loyalty_backend/screens/page-frame.js.map +1 -1
  390. package/dist/modules/mail_backend/index.d.ts.map +1 -1
  391. package/dist/modules/mail_backend/index.js +0 -2
  392. package/dist/modules/mail_backend/index.js.map +1 -1
  393. package/dist/modules/mail_backend/screens/inbox-list.d.ts.map +1 -1
  394. package/dist/modules/mail_backend/screens/inbox-list.js +1 -1
  395. package/dist/modules/mail_backend/screens/inbox-list.js.map +1 -1
  396. package/dist/modules/mail_inbound_backend/index.d.ts.map +1 -1
  397. package/dist/modules/mail_inbound_backend/index.js +0 -2
  398. package/dist/modules/mail_inbound_backend/index.js.map +1 -1
  399. package/dist/modules/mail_inbound_backend/screens/inbound-list.d.ts.map +1 -1
  400. package/dist/modules/mail_inbound_backend/screens/inbound-list.js +1 -1
  401. package/dist/modules/mail_inbound_backend/screens/inbound-list.js.map +1 -1
  402. package/dist/modules/mail_transport_backend/index.d.ts.map +1 -1
  403. package/dist/modules/mail_transport_backend/index.js +0 -2
  404. package/dist/modules/mail_transport_backend/index.js.map +1 -1
  405. package/dist/modules/mail_transport_backend/screens/outbox-list.d.ts.map +1 -1
  406. package/dist/modules/mail_transport_backend/screens/outbox-list.js +1 -1
  407. package/dist/modules/mail_transport_backend/screens/outbox-list.js.map +1 -1
  408. package/dist/modules/manufacturing_backend/screens/order-execution.d.ts.map +1 -1
  409. package/dist/modules/manufacturing_backend/screens/order-execution.js +1 -1
  410. package/dist/modules/manufacturing_backend/screens/order-execution.js.map +1 -1
  411. package/dist/modules/oauth_backend/messages.d.ts +0 -4
  412. package/dist/modules/oauth_backend/messages.d.ts.map +1 -1
  413. package/dist/modules/oauth_backend/messages.js +0 -4
  414. package/dist/modules/oauth_backend/messages.js.map +1 -1
  415. package/dist/modules/oauth_backend/screens/index.d.ts.map +1 -1
  416. package/dist/modules/oauth_backend/screens/index.js +5 -5
  417. package/dist/modules/oauth_backend/screens/index.js.map +1 -1
  418. package/dist/modules/partner_backend/screens/form.d.ts.map +1 -1
  419. package/dist/modules/partner_backend/screens/form.js +3 -1
  420. package/dist/modules/partner_backend/screens/form.js.map +1 -1
  421. package/dist/modules/partner_backend/screens/list.d.ts.map +1 -1
  422. package/dist/modules/partner_backend/screens/list.js +1 -1
  423. package/dist/modules/partner_backend/screens/list.js.map +1 -1
  424. package/dist/modules/partner_backend/screens/new.d.ts.map +1 -1
  425. package/dist/modules/partner_backend/screens/new.js +1 -1
  426. package/dist/modules/partner_backend/screens/new.js.map +1 -1
  427. package/dist/modules/pricing_backend/index.js +0 -2
  428. package/dist/modules/pricing_backend/index.js.map +1 -1
  429. package/dist/modules/pricing_backend/screens/pricelist-detail.d.ts.map +1 -1
  430. package/dist/modules/pricing_backend/screens/pricelist-detail.js +1 -1
  431. package/dist/modules/pricing_backend/screens/pricelist-detail.js.map +1 -1
  432. package/dist/modules/pricing_backend/screens/pricelists-list.d.ts.map +1 -1
  433. package/dist/modules/pricing_backend/screens/pricelists-list.js +1 -1
  434. package/dist/modules/pricing_backend/screens/pricelists-list.js.map +1 -1
  435. package/dist/modules/product_backend/client/attribute-modal.d.mts +4 -4
  436. package/dist/modules/product_backend/client/attribute-modal.d.mts.map +1 -1
  437. package/dist/modules/product_backend/client/attribute-modal.mjs +1 -1
  438. package/dist/modules/product_backend/client/attribute-modal.mjs.map +3 -3
  439. package/dist/modules/product_backend/client/product-modal.d.mts +8 -8
  440. package/dist/modules/product_backend/client/product-modal.d.mts.map +1 -1
  441. package/dist/modules/product_backend/client/product-modal.mjs +1 -1
  442. package/dist/modules/product_backend/client/product-modal.mjs.map +3 -3
  443. package/dist/modules/product_backend/client/variant-editor.d.mts +3 -3
  444. package/dist/modules/product_backend/client/variant-editor.d.mts.map +1 -1
  445. package/dist/modules/product_backend/client/variant-editor.mjs +1 -1
  446. package/dist/modules/product_backend/client/variant-editor.mjs.map +3 -3
  447. package/dist/modules/product_backend/screens/detail.d.ts.map +1 -1
  448. package/dist/modules/product_backend/screens/detail.js +3 -2
  449. package/dist/modules/product_backend/screens/detail.js.map +1 -1
  450. package/dist/modules/product_backend/screens/variant.d.ts.map +1 -1
  451. package/dist/modules/product_backend/screens/variant.js +3 -2
  452. package/dist/modules/product_backend/screens/variant.js.map +1 -1
  453. package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts +185 -0
  454. package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts.map +1 -0
  455. package/dist/modules/purchase_backend/client/purchase-order-modal.mjs +2 -0
  456. package/dist/modules/purchase_backend/client/purchase-order-modal.mjs.map +7 -0
  457. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts +52 -0
  458. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts.map +1 -0
  459. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs +2 -0
  460. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs.map +7 -0
  461. package/dist/modules/purchase_backend/index.js +83 -14
  462. package/dist/modules/purchase_backend/index.js.map +1 -1
  463. package/dist/modules/purchase_backend/modal/context.d.ts +4 -0
  464. package/dist/modules/purchase_backend/modal/context.d.ts.map +1 -0
  465. package/dist/modules/purchase_backend/modal/context.js +94 -0
  466. package/dist/modules/purchase_backend/modal/context.js.map +1 -0
  467. package/dist/modules/purchase_backend/modal/order-modal-view.d.ts +18 -0
  468. package/dist/modules/purchase_backend/modal/order-modal-view.d.ts.map +1 -0
  469. package/dist/modules/purchase_backend/modal/order-modal-view.js +290 -0
  470. package/dist/modules/purchase_backend/modal/order-modal-view.js.map +1 -0
  471. package/dist/modules/purchase_backend/modal/pricelist-context.d.ts +3 -0
  472. package/dist/modules/purchase_backend/modal/pricelist-context.d.ts.map +1 -0
  473. package/dist/modules/purchase_backend/modal/pricelist-context.js +36 -0
  474. package/dist/modules/purchase_backend/modal/pricelist-context.js.map +1 -0
  475. package/dist/modules/purchase_backend/modal/pricelist-view.d.ts +12 -0
  476. package/dist/modules/purchase_backend/modal/pricelist-view.d.ts.map +1 -0
  477. package/dist/modules/purchase_backend/modal/pricelist-view.js +78 -0
  478. package/dist/modules/purchase_backend/modal/pricelist-view.js.map +1 -0
  479. package/dist/modules/purchase_backend/screens/order-detail.d.ts.map +1 -1
  480. package/dist/modules/purchase_backend/screens/order-detail.js +4 -2
  481. package/dist/modules/purchase_backend/screens/order-detail.js.map +1 -1
  482. package/dist/modules/purchase_backend/screens/overview.d.ts +5 -0
  483. package/dist/modules/purchase_backend/screens/overview.d.ts.map +1 -1
  484. package/dist/modules/purchase_backend/screens/overview.js +27 -6
  485. package/dist/modules/purchase_backend/screens/overview.js.map +1 -1
  486. package/dist/modules/purchase_backend/screens/rfq-create.d.ts.map +1 -1
  487. package/dist/modules/purchase_backend/screens/rfq-create.js +1 -1
  488. package/dist/modules/purchase_backend/screens/rfq-create.js.map +1 -1
  489. package/dist/modules/purchase_backend/screens/rfqs-list.d.ts +1 -1
  490. package/dist/modules/purchase_backend/screens/rfqs-list.d.ts.map +1 -1
  491. package/dist/modules/purchase_backend/screens/rfqs-list.js +1 -1
  492. package/dist/modules/purchase_backend/screens/rfqs-list.js.map +1 -1
  493. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.d.ts.map +1 -1
  494. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js +1 -1
  495. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js.map +1 -1
  496. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts +2 -1
  497. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts.map +1 -1
  498. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js +2 -2
  499. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js.map +1 -1
  500. package/dist/modules/purchase_backend/search.d.ts +1 -1
  501. package/dist/modules/sale/functions/line-edit.d.ts +4 -0
  502. package/dist/modules/sale/functions/line-edit.d.ts.map +1 -0
  503. package/dist/modules/sale/functions/line-edit.js +120 -0
  504. package/dist/modules/sale/functions/line-edit.js.map +1 -0
  505. package/dist/modules/sale/index.d.ts.map +1 -1
  506. package/dist/modules/sale/index.js +16 -1
  507. package/dist/modules/sale/index.js.map +1 -1
  508. package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts +53 -0
  509. package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts.map +1 -0
  510. package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs +2 -0
  511. package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs.map +7 -0
  512. package/dist/modules/sale_backend/client/sale-order-modal.d.mts +161 -0
  513. package/dist/modules/sale_backend/client/sale-order-modal.d.mts.map +1 -0
  514. package/dist/modules/sale_backend/client/sale-order-modal.mjs +2 -0
  515. package/dist/modules/sale_backend/client/sale-order-modal.mjs.map +7 -0
  516. package/dist/modules/sale_backend/index.js +81 -20
  517. package/dist/modules/sale_backend/index.js.map +1 -1
  518. package/dist/modules/sale_backend/modal/context.d.ts +4 -0
  519. package/dist/modules/sale_backend/modal/context.d.ts.map +1 -0
  520. package/dist/modules/sale_backend/modal/context.js +94 -0
  521. package/dist/modules/sale_backend/modal/context.js.map +1 -0
  522. package/dist/modules/sale_backend/modal/order-modal-view.d.ts +18 -0
  523. package/dist/modules/sale_backend/modal/order-modal-view.d.ts.map +1 -0
  524. package/dist/modules/sale_backend/modal/order-modal-view.js +289 -0
  525. package/dist/modules/sale_backend/modal/order-modal-view.js.map +1 -0
  526. package/dist/modules/sale_backend/modal/policy-context.d.ts +3 -0
  527. package/dist/modules/sale_backend/modal/policy-context.d.ts.map +1 -0
  528. package/dist/modules/sale_backend/modal/policy-context.js +26 -0
  529. package/dist/modules/sale_backend/modal/policy-context.js.map +1 -0
  530. package/dist/modules/sale_backend/modal/policy-view.d.ts +11 -0
  531. package/dist/modules/sale_backend/modal/policy-view.d.ts.map +1 -0
  532. package/dist/modules/sale_backend/modal/policy-view.js +70 -0
  533. package/dist/modules/sale_backend/modal/policy-view.js.map +1 -0
  534. package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts +1 -1
  535. package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts.map +1 -1
  536. package/dist/modules/sale_backend/screens/invoicing-policies-list.js +1 -1
  537. package/dist/modules/sale_backend/screens/invoicing-policies-list.js.map +1 -1
  538. package/dist/modules/sale_backend/screens/invoicing-policy-create.d.ts.map +1 -1
  539. package/dist/modules/sale_backend/screens/invoicing-policy-create.js +1 -1
  540. package/dist/modules/sale_backend/screens/invoicing-policy-create.js.map +1 -1
  541. package/dist/modules/sale_backend/screens/order-detail.d.ts.map +1 -1
  542. package/dist/modules/sale_backend/screens/order-detail.js +3 -1
  543. package/dist/modules/sale_backend/screens/order-detail.js.map +1 -1
  544. package/dist/modules/sale_backend/screens/overview.d.ts +3 -0
  545. package/dist/modules/sale_backend/screens/overview.d.ts.map +1 -1
  546. package/dist/modules/sale_backend/screens/overview.js +22 -14
  547. package/dist/modules/sale_backend/screens/overview.js.map +1 -1
  548. package/dist/modules/sale_backend/screens/quotation-create.d.ts.map +1 -1
  549. package/dist/modules/sale_backend/screens/quotation-create.js +1 -1
  550. package/dist/modules/sale_backend/screens/quotation-create.js.map +1 -1
  551. package/dist/modules/sale_backend/screens/quotations-list.d.ts +1 -1
  552. package/dist/modules/sale_backend/screens/quotations-list.d.ts.map +1 -1
  553. package/dist/modules/sale_backend/screens/quotations-list.js +1 -1
  554. package/dist/modules/sale_backend/screens/quotations-list.js.map +1 -1
  555. package/dist/modules/sale_backend/screens/sales-orders-list.d.ts.map +1 -1
  556. package/dist/modules/sale_backend/screens/sales-orders-list.js +1 -1
  557. package/dist/modules/sale_backend/screens/sales-orders-list.js.map +1 -1
  558. package/dist/modules/stock/functions/inventory-preview.d.ts +4 -0
  559. package/dist/modules/stock/functions/inventory-preview.d.ts.map +1 -0
  560. package/dist/modules/stock/functions/inventory-preview.js +68 -0
  561. package/dist/modules/stock/functions/inventory-preview.js.map +1 -0
  562. package/dist/modules/stock/index.d.ts.map +1 -1
  563. package/dist/modules/stock/index.js +14 -1
  564. package/dist/modules/stock/index.js.map +1 -1
  565. package/dist/modules/stock_backend/client/inventory-count-modal.d.mts +60 -0
  566. package/dist/modules/stock_backend/client/inventory-count-modal.d.mts.map +1 -0
  567. package/dist/modules/stock_backend/client/inventory-count-modal.mjs +2 -0
  568. package/dist/modules/stock_backend/client/inventory-count-modal.mjs.map +7 -0
  569. package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts +105 -0
  570. package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts.map +1 -0
  571. package/dist/modules/stock_backend/client/stock-configuration-modal.mjs +2 -0
  572. package/dist/modules/stock_backend/client/stock-configuration-modal.mjs.map +7 -0
  573. package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts +130 -0
  574. package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts.map +1 -0
  575. package/dist/modules/stock_backend/client/stock-transfer-modal.mjs +2 -0
  576. package/dist/modules/stock_backend/client/stock-transfer-modal.mjs.map +7 -0
  577. package/dist/modules/stock_backend/functions/index.d.ts +10 -0
  578. package/dist/modules/stock_backend/functions/index.d.ts.map +1 -0
  579. package/dist/modules/stock_backend/functions/index.js +20 -0
  580. package/dist/modules/stock_backend/functions/index.js.map +1 -0
  581. package/dist/modules/stock_backend/functions.d.ts +1 -9
  582. package/dist/modules/stock_backend/functions.d.ts.map +1 -1
  583. package/dist/modules/stock_backend/functions.js +1 -18
  584. package/dist/modules/stock_backend/functions.js.map +1 -1
  585. package/dist/modules/stock_backend/index.js +52 -0
  586. package/dist/modules/stock_backend/index.js.map +1 -1
  587. package/dist/modules/stock_backend/islands.d.ts +8 -0
  588. package/dist/modules/stock_backend/islands.d.ts.map +1 -1
  589. package/dist/modules/stock_backend/islands.js +41 -0
  590. package/dist/modules/stock_backend/islands.js.map +1 -1
  591. package/dist/modules/stock_backend/modal/configuration-context.d.ts +3 -0
  592. package/dist/modules/stock_backend/modal/configuration-context.d.ts.map +1 -0
  593. package/dist/modules/stock_backend/modal/configuration-context.js +65 -0
  594. package/dist/modules/stock_backend/modal/configuration-context.js.map +1 -0
  595. package/dist/modules/stock_backend/modal/configuration-view.d.ts +21 -0
  596. package/dist/modules/stock_backend/modal/configuration-view.d.ts.map +1 -0
  597. package/dist/modules/stock_backend/modal/configuration-view.js +201 -0
  598. package/dist/modules/stock_backend/modal/configuration-view.js.map +1 -0
  599. package/dist/modules/stock_backend/modal/configuration.d.ts +20 -0
  600. package/dist/modules/stock_backend/modal/configuration.d.ts.map +1 -0
  601. package/dist/modules/stock_backend/modal/configuration.js +117 -0
  602. package/dist/modules/stock_backend/modal/configuration.js.map +1 -0
  603. package/dist/modules/stock_backend/modal/inventory-context.d.ts +3 -0
  604. package/dist/modules/stock_backend/modal/inventory-context.d.ts.map +1 -0
  605. package/dist/modules/stock_backend/modal/inventory-context.js +37 -0
  606. package/dist/modules/stock_backend/modal/inventory-context.js.map +1 -0
  607. package/dist/modules/stock_backend/modal/inventory-view.d.ts +14 -0
  608. package/dist/modules/stock_backend/modal/inventory-view.d.ts.map +1 -0
  609. package/dist/modules/stock_backend/modal/inventory-view.js +142 -0
  610. package/dist/modules/stock_backend/modal/inventory-view.js.map +1 -0
  611. package/dist/modules/stock_backend/modal/transfer-context.d.ts +3 -0
  612. package/dist/modules/stock_backend/modal/transfer-context.d.ts.map +1 -0
  613. package/dist/modules/stock_backend/modal/transfer-context.js +54 -0
  614. package/dist/modules/stock_backend/modal/transfer-context.js.map +1 -0
  615. package/dist/modules/stock_backend/modal/transfer-view.d.ts +15 -0
  616. package/dist/modules/stock_backend/modal/transfer-view.d.ts.map +1 -0
  617. package/dist/modules/stock_backend/modal/transfer-view.js +252 -0
  618. package/dist/modules/stock_backend/modal/transfer-view.js.map +1 -0
  619. package/dist/modules/stock_backend/routes.d.ts.map +1 -1
  620. package/dist/modules/stock_backend/routes.js +117 -34
  621. package/dist/modules/stock_backend/routes.js.map +1 -1
  622. package/dist/modules/stock_backend/screens/forecast.d.ts.map +1 -1
  623. package/dist/modules/stock_backend/screens/forecast.js +5 -32
  624. package/dist/modules/stock_backend/screens/forecast.js.map +1 -1
  625. package/dist/modules/stock_backend/screens/inventory.d.ts +3 -1
  626. package/dist/modules/stock_backend/screens/inventory.d.ts.map +1 -1
  627. package/dist/modules/stock_backend/screens/inventory.js +27 -74
  628. package/dist/modules/stock_backend/screens/inventory.js.map +1 -1
  629. package/dist/modules/stock_backend/screens/location-create.d.ts.map +1 -1
  630. package/dist/modules/stock_backend/screens/location-create.js +1 -1
  631. package/dist/modules/stock_backend/screens/location-create.js.map +1 -1
  632. package/dist/modules/stock_backend/screens/locations-list.d.ts +1 -1
  633. package/dist/modules/stock_backend/screens/locations-list.d.ts.map +1 -1
  634. package/dist/modules/stock_backend/screens/locations-list.js +1 -1
  635. package/dist/modules/stock_backend/screens/locations-list.js.map +1 -1
  636. package/dist/modules/stock_backend/screens/lot-create.d.ts.map +1 -1
  637. package/dist/modules/stock_backend/screens/lot-create.js +1 -1
  638. package/dist/modules/stock_backend/screens/lot-create.js.map +1 -1
  639. package/dist/modules/stock_backend/screens/lot-detail.d.ts.map +1 -1
  640. package/dist/modules/stock_backend/screens/lot-detail.js +3 -2
  641. package/dist/modules/stock_backend/screens/lot-detail.js.map +1 -1
  642. package/dist/modules/stock_backend/screens/lots-list.d.ts +1 -1
  643. package/dist/modules/stock_backend/screens/lots-list.d.ts.map +1 -1
  644. package/dist/modules/stock_backend/screens/lots-list.js +1 -1
  645. package/dist/modules/stock_backend/screens/lots-list.js.map +1 -1
  646. package/dist/modules/stock_backend/screens/overview.d.ts +9 -0
  647. package/dist/modules/stock_backend/screens/overview.d.ts.map +1 -0
  648. package/dist/modules/stock_backend/screens/overview.js +38 -0
  649. package/dist/modules/stock_backend/screens/overview.js.map +1 -0
  650. package/dist/modules/stock_backend/screens/picking-type-create.d.ts.map +1 -1
  651. package/dist/modules/stock_backend/screens/picking-type-create.js +1 -1
  652. package/dist/modules/stock_backend/screens/picking-type-create.js.map +1 -1
  653. package/dist/modules/stock_backend/screens/picking-types-list.d.ts +1 -1
  654. package/dist/modules/stock_backend/screens/picking-types-list.d.ts.map +1 -1
  655. package/dist/modules/stock_backend/screens/picking-types-list.js +1 -1
  656. package/dist/modules/stock_backend/screens/picking-types-list.js.map +1 -1
  657. package/dist/modules/stock_backend/screens/replenishment-create.d.ts.map +1 -1
  658. package/dist/modules/stock_backend/screens/replenishment-create.js +1 -1
  659. package/dist/modules/stock_backend/screens/replenishment-create.js.map +1 -1
  660. package/dist/modules/stock_backend/screens/replenishment-list.d.ts +2 -2
  661. package/dist/modules/stock_backend/screens/replenishment-list.d.ts.map +1 -1
  662. package/dist/modules/stock_backend/screens/replenishment-list.js +2 -2
  663. package/dist/modules/stock_backend/screens/replenishment-list.js.map +1 -1
  664. package/dist/modules/stock_backend/screens/stock-route-create.d.ts.map +1 -1
  665. package/dist/modules/stock_backend/screens/stock-route-create.js +1 -1
  666. package/dist/modules/stock_backend/screens/stock-route-create.js.map +1 -1
  667. package/dist/modules/stock_backend/screens/stock-route-detail.js +2 -1
  668. package/dist/modules/stock_backend/screens/stock-route-detail.js.map +1 -1
  669. package/dist/modules/stock_backend/screens/stock-routes-list.d.ts +1 -1
  670. package/dist/modules/stock_backend/screens/stock-routes-list.d.ts.map +1 -1
  671. package/dist/modules/stock_backend/screens/stock-routes-list.js +1 -1
  672. package/dist/modules/stock_backend/screens/stock-routes-list.js.map +1 -1
  673. package/dist/modules/stock_backend/screens/transfer-create.d.ts.map +1 -1
  674. package/dist/modules/stock_backend/screens/transfer-create.js +1 -1
  675. package/dist/modules/stock_backend/screens/transfer-create.js.map +1 -1
  676. package/dist/modules/stock_backend/screens/transfer-detail.d.ts.map +1 -1
  677. package/dist/modules/stock_backend/screens/transfer-detail.js +3 -2
  678. package/dist/modules/stock_backend/screens/transfer-detail.js.map +1 -1
  679. package/dist/modules/stock_backend/screens/transfers-list.d.ts +1 -1
  680. package/dist/modules/stock_backend/screens/transfers-list.d.ts.map +1 -1
  681. package/dist/modules/stock_backend/screens/transfers-list.js +1 -1
  682. package/dist/modules/stock_backend/screens/transfers-list.js.map +1 -1
  683. package/dist/modules/stock_backend/screens/warehouse-create.d.ts.map +1 -1
  684. package/dist/modules/stock_backend/screens/warehouse-create.js +1 -1
  685. package/dist/modules/stock_backend/screens/warehouse-create.js.map +1 -1
  686. package/dist/modules/stock_backend/screens/warehouses-list.d.ts +1 -1
  687. package/dist/modules/stock_backend/screens/warehouses-list.d.ts.map +1 -1
  688. package/dist/modules/stock_backend/screens/warehouses-list.js +1 -1
  689. package/dist/modules/stock_backend/screens/warehouses-list.js.map +1 -1
  690. package/dist/modules/stock_backend/search.d.ts +29 -0
  691. package/dist/modules/stock_backend/search.d.ts.map +1 -1
  692. package/dist/modules/stock_backend/search.js +22 -0
  693. package/dist/modules/stock_backend/search.js.map +1 -1
  694. package/dist/modules/user_backend/client/access-policy-modal.d.mts +4 -4
  695. package/dist/modules/user_backend/client/access-policy-modal.d.mts.map +1 -1
  696. package/dist/modules/user_backend/client/access-policy-modal.mjs +1 -1
  697. package/dist/modules/user_backend/client/access-policy-modal.mjs.map +3 -3
  698. package/dist/modules/user_backend/client/role-modal.d.mts +6 -6
  699. package/dist/modules/user_backend/client/role-modal.d.mts.map +1 -1
  700. package/dist/modules/user_backend/client/role-modal.mjs +1 -1
  701. package/dist/modules/user_backend/client/role-modal.mjs.map +3 -3
  702. package/dist/modules/user_backend/client/user-modal.d.mts +8 -8
  703. package/dist/modules/user_backend/client/user-modal.d.mts.map +1 -1
  704. package/dist/modules/user_backend/client/user-modal.mjs +1 -1
  705. package/dist/modules/user_backend/client/user-modal.mjs.map +3 -3
  706. package/dist/modules/user_backend/messages.d.ts +0 -6
  707. package/dist/modules/user_backend/messages.d.ts.map +1 -1
  708. package/dist/modules/user_backend/messages.js +0 -6
  709. package/dist/modules/user_backend/messages.js.map +1 -1
  710. package/dist/modules/user_backend/screens/access-policies-list.d.ts.map +1 -1
  711. package/dist/modules/user_backend/screens/access-policies-list.js +1 -1
  712. package/dist/modules/user_backend/screens/access-policies-list.js.map +1 -1
  713. package/dist/modules/user_backend/screens/profile-form.d.ts.map +1 -1
  714. package/dist/modules/user_backend/screens/profile-form.js +1 -1
  715. package/dist/modules/user_backend/screens/profile-form.js.map +1 -1
  716. package/dist/modules/user_backend/screens/roles-list.d.ts.map +1 -1
  717. package/dist/modules/user_backend/screens/roles-list.js +1 -1
  718. package/dist/modules/user_backend/screens/roles-list.js.map +1 -1
  719. package/dist/modules/user_backend/screens/users-list.d.ts.map +1 -1
  720. package/dist/modules/user_backend/screens/users-list.js +1 -1
  721. package/dist/modules/user_backend/screens/users-list.js.map +1 -1
  722. package/dist/modules/website_backend/screens/page-frame.d.ts +2 -3
  723. package/dist/modules/website_backend/screens/page-frame.d.ts.map +1 -1
  724. package/dist/modules/website_backend/screens/page-frame.js +2 -2
  725. package/dist/modules/website_backend/screens/page-frame.js.map +1 -1
  726. package/dist/permission-catalogue.d.ts.map +1 -1
  727. package/dist/permission-catalogue.js +2 -0
  728. package/dist/permission-catalogue.js.map +1 -1
  729. package/dist/role-templates.d.ts.map +1 -1
  730. package/dist/role-templates.js +23 -3
  731. package/dist/role-templates.js.map +1 -1
  732. package/dist/scaffold/index.js +1 -1
  733. package/dist/ui/client/live-doc-shell.d.ts +27 -1
  734. package/dist/ui/client/live-doc-shell.d.ts.map +1 -1
  735. package/dist/ui/client/live-doc-shell.js +43 -5
  736. package/dist/ui/client/live-doc-shell.js.map +1 -1
  737. package/dist/ui/client/live-doc-tail.d.ts +4 -0
  738. package/dist/ui/client/live-doc-tail.d.ts.map +1 -0
  739. package/dist/ui/client/live-doc-tail.js +21 -0
  740. package/dist/ui/client/live-doc-tail.js.map +1 -0
  741. package/dist/ui/client/live-doc-view.d.ts +18 -0
  742. package/dist/ui/client/live-doc-view.d.ts.map +1 -1
  743. package/dist/ui/client/live-doc-view.js +183 -4
  744. package/dist/ui/client/live-doc-view.js.map +1 -1
  745. package/dist/ui/client/live-doc.css +81 -0
  746. package/dist/ui/client/live-doc.d.mts +6 -3
  747. package/dist/ui/client/live-doc.d.mts.map +1 -1
  748. package/dist/ui/client/live-doc.mjs +14 -10
  749. package/dist/ui/client/live-doc.mjs.map +4 -4
  750. package/dist/ui/layout.d.ts +2 -2
  751. package/dist/ui/layout.d.ts.map +1 -1
  752. package/dist/ui/layout.js +3 -3
  753. package/dist/ui/layout.js.map +1 -1
  754. package/package.json +4 -4
  755. package/dist/modules/flow/functions.d.ts +0 -3
  756. package/dist/modules/flow/functions.d.ts.map +0 -1
  757. package/dist/modules/flow/functions.js +0 -1857
  758. package/dist/modules/flow/functions.js.map +0 -1
  759. package/dist/modules/flow/operations.d.ts +0 -414
  760. package/dist/modules/flow/operations.d.ts.map +0 -1
  761. package/dist/modules/flow/operations.js +0 -1671
  762. package/dist/modules/flow/operations.js.map +0 -1
@@ -0,0 +1,54 @@
1
+ import { randomUUID } from 'node:crypto';
2
+ import { json, text } from '@ketvietlab/ketjs';
3
+ import { optionalRead } from '../../backend/optional-read.js';
4
+ import { USER_RECORD_MODAL_LABELS } from '../../user/modal-labels.js';
5
+ export const transferContext = (ctx) => async (url, req, params) => {
6
+ if (req.method !== 'GET')
7
+ return text('GET', { status: 405 });
8
+ const creating = params.id === 'new';
9
+ if (!(await ctx.allows(creating ? 'stock.createPicking' : 'stock.getPicking', url, req)))
10
+ return text('Forbidden', { status: 403 });
11
+ const record = creating
12
+ ? { id: '', name: '', state: 'draft', moves: [] }
13
+ : (await ctx.call('stock.getPicking', { id: params.id }, url, req));
14
+ if (!record)
15
+ return text('Not found', { status: 404 });
16
+ const permissions = Object.fromEntries(await Promise.all([
17
+ 'createPicking',
18
+ 'savePicking',
19
+ 'addMove',
20
+ 'saveMoveLine',
21
+ 'confirmPicking',
22
+ 'assignPicking',
23
+ 'validatePicking',
24
+ 'cancelPicking',
25
+ ].map(async (name) => [name, await ctx.allows(`stock.${name}`, url, req)])));
26
+ const lookup = (fn) => optionalRead(ctx, fn, {}, url, req, []);
27
+ const [pickingTypes, locations, templates, units, lots] = await Promise.all([
28
+ lookup('stock.listPickingTypes'),
29
+ lookup('stock.listLocations'),
30
+ permissions.addMove ? lookup('stock.listStorableProducts') : [],
31
+ permissions.addMove ? lookup('uom.listUnits') : [],
32
+ permissions.saveMoveLine ? lookup('stock.listLots') : [],
33
+ ]);
34
+ const products = templates.flatMap((template) => (template.variants ?? []).map((variant) => ({
35
+ ...variant,
36
+ name: `${template.name}${variant.defaultCode ? ` · ${variant.defaultCode}` : ''}`,
37
+ })));
38
+ const lang = ctx.localeOf(url, req) === 'en' ? 'en' : 'vi';
39
+ const manifest = await ctx.live(req);
40
+ return json({
41
+ data: {
42
+ record,
43
+ detailsHref: `/admin/stock/transfers/${encodeURIComponent(params.id)}?${new URLSearchParams([...url.searchParams].filter(([key]) => ['lang', 'company', 'branch'].includes(key)))}`,
44
+ permissions,
45
+ draftId: randomUUID(),
46
+ choices: { pickingTypes, locations, products, units, lots },
47
+ },
48
+ messages: {
49
+ ...Object.fromEntries(Object.entries(manifest.messages?.[lang] ?? {}).filter(([key]) => key.startsWith('stock_backend.'))),
50
+ ...USER_RECORD_MODAL_LABELS[lang],
51
+ },
52
+ });
53
+ };
54
+ //# sourceMappingURL=transfer-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-context.js","sourceRoot":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row & {
5
+ moves: Row[];
6
+ };
7
+ permissions: Record<string, boolean>;
8
+ choices: Record<string, Row[]>;
9
+ detailsHref?: string;
10
+ draftId: string;
11
+ };
12
+ export declare const transferModalDefinition: RecordModalDefinition<Data>;
13
+ export declare const transferModal: () => import("@ketvietlab/ketjs-view").IslandController;
14
+ export {};
15
+ //# sourceMappingURL=transfer-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-view.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/stock_backend/modal/transfer-view.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAOpG,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAClC,KAAK,IAAI,GAAG;IACV,MAAM,EAAE,GAAG,GAAG;QAAE,KAAK,EAAE,GAAG,EAAE,CAAA;KAAE,CAAA;IAC9B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACpC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAA;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAwED,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,CAAC,IAAI,CA8R/D,CAAA;AACD,eAAO,MAAM,aAAa,yDAA6C,CAAA"}
@@ -0,0 +1,252 @@
1
+ import { jsx as _jsx } from "@ketvietlab/ketjs-view/jsx-runtime";
2
+ import { ActionGroup, Badge, Button, LinkButton, DataTable, DescriptionList, Section, Stack, } from '@ketvietlab/design-system';
3
+ import { createRecordModal } from '../../../ui/client/record-modal.js';
4
+ import { RecordModalForm, RecordDialogTrigger, RecordActionForm, } from '../../../ui/client/record-modal-form.js';
5
+ import { USER_RECORD_MODAL_LABELS } from '../../user/modal-labels.js';
6
+ const lang = () => (typeof document !== 'undefined' && document.documentElement.lang === 'en' ? 'en' : 'vi');
7
+ const t = (c, key) => c.t(`stock_backend.${key}`);
8
+ const open = (c) => !['done', 'cancel'].includes(String(c.data.record.state));
9
+ const options = (c, key) => [
10
+ { value: '', label: '—' },
11
+ ...(c.data.choices[key] ?? []).map((row) => ({ value: String(row.id), label: String(row.name) })),
12
+ ];
13
+ const field = (c, name, label, props = {}) => ({
14
+ id: `transfer-${c.dialog?.name ?? 'record'}-${name}`,
15
+ name,
16
+ label: t(c, label),
17
+ ...props,
18
+ value: c.draft(name, String(props.value ?? '')),
19
+ error: c.fieldError(name),
20
+ disabled: c.busy,
21
+ });
22
+ const inputs = (form, keys) => Object.fromEntries(keys.flatMap((key) => {
23
+ const value = String(form.get(key) ?? '');
24
+ return value ? [[key, value]] : [];
25
+ }));
26
+ const editFields = (c) => [
27
+ field(c, 'name', 'transfer.list.col.reference', {
28
+ required: true,
29
+ value: String(c.data.record.name ?? ''),
30
+ }),
31
+ field(c, 'pickingTypeId', 'field.operationType', {
32
+ type: 'select',
33
+ options: options(c, 'pickingTypes'),
34
+ required: true,
35
+ value: String(c.data.record.pickingTypeId ?? ''),
36
+ }),
37
+ field(c, 'locationId', 'field.sourceLocation', {
38
+ type: 'select',
39
+ options: options(c, 'locations'),
40
+ value: String(c.data.record.locationId ?? ''),
41
+ }),
42
+ field(c, 'locationDestId', 'field.destinationLocation', {
43
+ type: 'select',
44
+ options: options(c, 'locations'),
45
+ value: String(c.data.record.locationDestId ?? ''),
46
+ }),
47
+ field(c, 'scheduledDate', 'transfer.list.col.scheduledDate', {
48
+ type: 'date',
49
+ value: String(c.data.record.scheduledDate ?? '').slice(0, 10),
50
+ }),
51
+ ];
52
+ const action = (c, name, label) => (_jsx(RecordActionForm, { kind: c.kind, command: name, children: _jsx(Button, { type: "submit", label: t(c, `action.${label}`), disabled: c.busy }) }));
53
+ const dialog = (c, name, label) => (_jsx(RecordDialogTrigger, { dialog: name, children: _jsx(Button, { label: t(c, label), disabled: c.busy }) }));
54
+ const selectedLine = (c) => c.data.record.moves
55
+ .flatMap((move) => move.lines ?? [])
56
+ .find((row) => `line:${row.id}` === c.dialog?.params.id);
57
+ const selectedMove = (c) => c.data.record.moves.find((row) => `move:${row.id}` === c.dialog?.params.id || row.id === selectedLine(c)?.moveId);
58
+ const saveButton = (c) => (_jsx(Button, { type: "submit", label: c.t('recordModal.save'), variant: "primary", disabled: c.busy }));
59
+ export const transferModalDefinition = {
60
+ kind: 'stock.transfer',
61
+ size: 'large',
62
+ labels: () => USER_RECORD_MODAL_LABELS[lang()],
63
+ context: {
64
+ route: (id, creating) => {
65
+ const record = creating ? 'new' : encodeURIComponent(id);
66
+ return `/admin/stock/transfer/${record}/context?lang=${lang()}`;
67
+ },
68
+ query: ['company', 'branch'],
69
+ },
70
+ title: (c) => (c.creating ? t(c, 'transfer.create.title') : String(c.data.record.name)),
71
+ status: (c) => (c.creating ? null : _jsx(Badge, { label: t(c, `state.${c.data.record.state}`) })),
72
+ body: (c) => c.creating ? (_jsx(RecordModalForm, { kind: c.kind, command: "create", fields: editFields(c), actions: [saveButton(c)] })) : (_jsx(Stack, { items: [
73
+ c.data.detailsHref ? (_jsx(LinkButton, { href: c.data.detailsHref, label: t(c, 'modal.relatedOperations'), variant: "secondary" })) : null,
74
+ _jsx(Section, { title: t(c, 'modal.information'), actions: open(c) && c.data.permissions.savePicking ? dialog(c, 'edit', 'modal.edit') : null, body: _jsx(DescriptionList, { items: [
75
+ {
76
+ id: 'type',
77
+ label: t(c, 'field.operationType'),
78
+ value: String(c.data.choices.pickingTypes?.find((row) => row.id === c.data.record.pickingTypeId)
79
+ ?.name ?? c.data.record.pickingTypeId),
80
+ },
81
+ ...['locationId', 'locationDestId'].map((key, index) => ({
82
+ id: key,
83
+ label: t(c, index === 0 ? 'field.sourceLocation' : 'field.destinationLocation'),
84
+ value: String(c.data.choices.locations?.find((row) => row.id === c.data.record[key])?.name ??
85
+ c.data.record[key]),
86
+ })),
87
+ ] }) }),
88
+ _jsx(Section, { title: t(c, 'modal.products'), actions: open(c) && c.data.permissions.addMove ? dialog(c, 'add', 'action.addMove') : null, body: _jsx(DataTable, { rows: c.data.record.moves, id: (row) => String(row.id), responsive: "scroll", columns: [
89
+ { key: 'name', label: t(c, 'field.product'), cell: (row) => String(row.name) },
90
+ { key: 'demand', label: t(c, 'modal.demand'), cell: (row) => String(row.productUomQty) },
91
+ {
92
+ key: 'state',
93
+ label: t(c, 'transfer.list.col.state'),
94
+ cell: (row) => t(c, `state.${row.state}`),
95
+ },
96
+ {
97
+ key: 'operate',
98
+ label: t(c, 'modal.picked'),
99
+ cell: (row) => open(c) && c.data.permissions.saveMoveLine ? (_jsx(RecordDialogTrigger, { dialog: "line", id: `move:${row.id}`, children: _jsx(Button, { label: t(c, 'modal.recordPicked'), variant: "tertiary" }) })) : (''),
100
+ },
101
+ ] }) }),
102
+ _jsx(Section, { title: t(c, 'modal.picked'), body: _jsx(DataTable, { rows: c.data.record.moves.flatMap((move) => (move.lines ?? []).map((line) => ({ ...line, name: move.name }))), id: (row) => String(row.id), responsive: "scroll", columns: [
103
+ { key: 'name', label: t(c, 'field.product'), cell: (row) => String(row.name) },
104
+ { key: 'quantity', label: t(c, 'modal.quantity'), cell: (row) => String(row.quantity) },
105
+ {
106
+ key: 'lot',
107
+ label: t(c, 'field.lot'),
108
+ cell: (row) => String(c.data.choices.lots?.find((lot) => lot.id === row.lotId)?.name ?? row.lotId ?? '—'),
109
+ },
110
+ {
111
+ key: 'picked',
112
+ label: t(c, 'modal.picked'),
113
+ cell: (row) => t(c, row.picked ? 'modal.yes' : 'modal.no'),
114
+ },
115
+ {
116
+ key: 'edit',
117
+ label: t(c, 'modal.edit'),
118
+ cell: (row) => open(c) && c.data.permissions.saveMoveLine ? (_jsx(RecordDialogTrigger, { dialog: "line", id: `line:${row.id}`, children: _jsx(Button, { label: t(c, 'modal.edit'), variant: "tertiary" }) })) : (''),
119
+ },
120
+ ] }) }),
121
+ ] })),
122
+ actions: (c) => c.creating || !open(c) ? undefined : (_jsx(ActionGroup, { actions: [
123
+ ...(c.data.record.state === 'draft' && c.data.permissions.confirmPicking
124
+ ? [action(c, 'confirm', 'confirm')]
125
+ : []),
126
+ ...(c.data.record.state !== 'draft' && c.data.permissions.assignPicking
127
+ ? [action(c, 'assign', 'assign')]
128
+ : []),
129
+ ...(c.data.record.state !== 'draft' && c.data.permissions.validatePicking
130
+ ? [dialog(c, 'validate', 'action.validate')]
131
+ : []),
132
+ ...(c.data.permissions.cancelPicking ? [action(c, 'cancel', 'cancel')] : []),
133
+ ] })),
134
+ dialogs: {
135
+ edit: {
136
+ title: (c) => t(c, 'modal.edit'),
137
+ view: (c) => (_jsx(RecordModalForm, { kind: c.kind, command: "edit", fields: editFields(c), actions: [saveButton(c)] })),
138
+ },
139
+ add: {
140
+ title: (c) => t(c, 'action.addMove'),
141
+ view: (c) => (_jsx(RecordModalForm, { kind: c.kind, command: "add", fields: [
142
+ field(c, 'productId', 'field.product', {
143
+ type: 'select',
144
+ options: options(c, 'products'),
145
+ required: true,
146
+ }),
147
+ field(c, 'productUomId', 'field.uom', {
148
+ type: 'select',
149
+ options: options(c, 'units'),
150
+ required: true,
151
+ }),
152
+ field(c, 'productUomQty', 'modal.demand', { type: 'decimal', value: '1', required: true }),
153
+ ], actions: [saveButton(c)] })),
154
+ },
155
+ line: {
156
+ title: (c) => t(c, 'modal.recordPicked'),
157
+ view: (c) => (_jsx(RecordModalForm, { kind: c.kind, command: "line", fields: [
158
+ field(c, 'quantity', 'modal.quantity', {
159
+ type: 'decimal',
160
+ value: String(selectedLine(c)?.quantity ?? '1'),
161
+ required: true,
162
+ }),
163
+ field(c, 'lotId', 'field.lot', {
164
+ type: 'select',
165
+ value: String(selectedLine(c)?.lotId ?? ''),
166
+ options: [
167
+ { value: '', label: '—' },
168
+ ...(c.data.choices.lots ?? [])
169
+ .filter((row) => row.productId === selectedMove(c)?.productId)
170
+ .map((row) => ({ value: String(row.id), label: String(row.name) })),
171
+ ],
172
+ }),
173
+ {
174
+ ...field(c, 'picked', 'modal.picked', { type: 'checkbox' }),
175
+ value: c.draftChecked('picked', undefined, selectedLine(c)?.picked !== false),
176
+ },
177
+ ], actions: [saveButton(c)] })),
178
+ },
179
+ validate: {
180
+ title: (c) => t(c, 'action.validate'),
181
+ view: (c) => (_jsx(RecordModalForm, { kind: c.kind, command: "validate", fields: [
182
+ field(c, 'backorder', 'modal.remaining', {
183
+ type: 'radio',
184
+ value: 'create',
185
+ options: [
186
+ { value: 'create', label: t(c, 'action.validateCreateBackorder') },
187
+ { value: 'cancel', label: t(c, 'action.validateNoBackorder') },
188
+ ],
189
+ required: true,
190
+ }),
191
+ ], actions: [
192
+ _jsx(Button, { type: "submit", label: t(c, 'action.validate'), variant: "primary", disabled: c.busy }),
193
+ ] })),
194
+ },
195
+ },
196
+ commands: {
197
+ create: {
198
+ fn: 'stock.createPicking',
199
+ input: (form, c) => ({
200
+ id: c.data.draftId,
201
+ ...inputs(form, ['name', 'pickingTypeId', 'locationId', 'locationDestId', 'scheduledDate']),
202
+ }),
203
+ after: 'open',
204
+ },
205
+ edit: {
206
+ fn: 'stock.savePicking',
207
+ input: (form, c) => ({
208
+ id: c.id,
209
+ moveType: c.data.record.moveType,
210
+ ...inputs(form, ['name', 'pickingTypeId', 'locationId', 'locationDestId', 'scheduledDate']),
211
+ }),
212
+ after: 'reload',
213
+ },
214
+ add: {
215
+ fn: 'stock.addMove',
216
+ input: (form, c) => ({
217
+ id: c.data.draftId,
218
+ pickingId: c.id,
219
+ name: String(c.data.choices.products?.find((row) => row.id === form.get('productId'))?.name ??
220
+ form.get('productId')),
221
+ ...inputs(form, ['productId', 'productUomId', 'productUomQty']),
222
+ }),
223
+ after: 'reload',
224
+ },
225
+ line: {
226
+ fn: 'stock.saveMoveLine',
227
+ input: (form, c) => ({
228
+ id: selectedLine(c)?.id ?? c.data.draftId,
229
+ moveId: selectedMove(c)?.id,
230
+ quantity: String(form.get('quantity') ?? ''),
231
+ lotId: form.get('lotId') ? String(form.get('lotId')) : null,
232
+ picked: form.has('picked'),
233
+ }),
234
+ after: 'reload',
235
+ },
236
+ confirm: { fn: 'stock.confirmPicking', input: (_form, c) => ({ id: c.id }), after: 'reload' },
237
+ assign: { fn: 'stock.assignPicking', input: (_form, c) => ({ id: c.id }), after: 'reload' },
238
+ validate: {
239
+ fn: 'stock.validatePicking',
240
+ input: (form, c) => ({ id: c.id, backorder: String(form.get('backorder') ?? 'create') }),
241
+ after: 'reload',
242
+ },
243
+ cancel: {
244
+ fn: 'stock.cancelPicking',
245
+ input: (_form, c) => ({ id: c.id }),
246
+ after: 'reload',
247
+ confirm: (c) => t(c, 'modal.confirmCancel'),
248
+ },
249
+ },
250
+ };
251
+ export const transferModal = createRecordModal(transferModalDefinition);
252
+ //# sourceMappingURL=transfer-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-view.js","sourceRoot":"","sources":["../../../../../../../../packages/ketsuite/src/modules/stock_backend/modal/transfer-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,WAAW,EACX,KAAK,EACL,MAAM,EACN,UAAU,EACV,SAAS,EACT,eAAe,EACf,OAAO,EACP,KAAK,GACN,MAAM,2BAA2B,CAAA;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAqC,CAAA;AAEvE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,yCAA0C,CAAA;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAUrE,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,CAAC,OAAO,QAAQ,KAAK,WAAW,IAAI,QAAQ,CAAC,eAAe,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;AAC5G,MAAM,CAAC,GAAG,CAAC,CAAU,EAAE,GAAW,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,GAAG,EAAE,CAAC,CA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KAAK,EAAE,QAAQ;SAChB;QACD,MAAM,EAAE;YACN,EAAE,EAAE,qBAAqB;YACzB,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;YACnC,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,qBAAqB,CAAC;SAC5C;KACF;CACF,CAAA;AACD,MAAM,CAAC,MAAM,aAAa,GAAG,iBAAiB,CAAC,uBAAuB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../../packages/ketsuite/src/modules/stock_backend/routes.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAS,UAAU,EAAgB,MAAM,mBAAmB,CAAA;AA8MxE,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAo3C7C,CAAA"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../../packages/ketsuite/src/modules/stock_backend/routes.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAS,UAAU,EAAgB,MAAM,mBAAmB,CAAA;AA8MxE,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CA+7C7C,CAAA"}
@@ -1,5 +1,11 @@
1
+ import { stockOverviewScreen } from './screens/overview.js';
2
+ import { transferContext } from './modal/transfer-context.js';
3
+ import { inventoryCountContext } from './modal/inventory-context.js';
4
+ import { stockConfigurationContext } from './modal/configuration-context.js';
5
+ import { recordModalCreateHref, recordModalHref } from '../../ui/record-modal.js';
6
+ import { optionalRead } from '../backend/optional-read.js';
1
7
  import { rowListSearch } from '../backend/row-list.js';
2
- import { locationListSearch, lotListSearch, pickingTypeListSearch, replenishmentListSearch, stockRouteListSearch, transferListSearch, warehouseListSearch, } from './search.js';
8
+ import { inventoryListSearch, locationListSearch, lotListSearch, pickingTypeListSearch, replenishmentListSearch, stockRouteListSearch, transferListSearch, warehouseListSearch, } from './search.js';
3
9
  import { randomUUID } from 'node:crypto';
4
10
  import { fragment, json, NAVIGATION_TYPE, text, withHeaders } from '@ketvietlab/ketjs';
5
11
  import { backendPage, formatDateTime, modalWorkspace } from '../../ui/index.js';
@@ -149,12 +155,12 @@ const dateTimeLabel = (value, lang) => {
149
155
  const common = async (ctx, url, req) => {
150
156
  const _ = ctx.translate(ctx.localeOf(url, req));
151
157
  const [warehouses, locations, pickingTypes, lots, routes, units] = (await Promise.all([
152
- ctx.call('stock.listWarehouses', {}, url, req),
153
- ctx.call('stock.listLocations', {}, url, req),
154
- ctx.call('stock.listPickingTypes', {}, url, req),
155
- ctx.call('stock.listLots', {}, url, req),
156
- ctx.call('stock.listRoutes', {}, url, req),
157
- ctx.call('uom.listUnits', {}, url, req),
158
+ optionalRead(ctx, 'stock.listWarehouses', {}, url, req, []),
159
+ optionalRead(ctx, 'stock.listLocations', {}, url, req, []),
160
+ optionalRead(ctx, 'stock.listPickingTypes', {}, url, req, []),
161
+ optionalRead(ctx, 'stock.listLots', {}, url, req, []),
162
+ optionalRead(ctx, 'stock.listRoutes', {}, url, req, []),
163
+ optionalRead(ctx, 'uom.listUnits', {}, url, req, []),
158
164
  ]));
159
165
  return {
160
166
  warehouses,
@@ -166,6 +172,27 @@ const common = async (ctx, url, req) => {
166
172
  };
167
173
  };
168
174
  export const routes = {
175
+ '/admin/stock': (ctx) => async (url, req) => {
176
+ if (req.method !== 'GET')
177
+ return text('GET', { status: 405 });
178
+ const rows = (await ctx.call('stock.listPickings', {}, url, req));
179
+ return adminPage(ctx, url, req, {
180
+ title: 'stock_backend.overview.title',
181
+ body: async (_, frame) => stockOverviewScreen(_, frame, {
182
+ rows,
183
+ at: (path) => inLocale(url, path),
184
+ rowHref: (row) => recordModalHref(url, { kind: 'stock.transfer', id: String(row.id) }),
185
+ createHref: (await ctx.allows('stock.createPicking', url, req))
186
+ ? recordModalCreateHref(new URL(inLocale(url, '/admin/stock/transfers'), url), {
187
+ kind: 'stock.transfer',
188
+ })
189
+ : null,
190
+ }),
191
+ });
192
+ },
193
+ '/admin/stock/transfer/{id}/context': transferContext,
194
+ '/admin/stock/count/{id}/context': inventoryCountContext,
195
+ '/admin/stock/record/{kind}/{id}/context': stockConfigurationContext,
169
196
  '/admin/stock/inventory': (ctx) => async (url, req) => {
170
197
  const lang = ctx.localeOf(url, req);
171
198
  const _ = ctx.translate(lang);
@@ -225,18 +252,35 @@ export const routes = {
225
252
  });
226
253
  return adminPage(ctx, url, req, {
227
254
  title: 'stock_backend.inventory',
228
- body: (_, frame) => inventoryScreen(_, {
229
- rows,
230
- products: products.map(({ value, label }) => ({ value, label })),
231
- locations: options(data.locations.filter((row) => row.usage === 'internal')),
232
- inventoryLocations: options(data.locations.filter((row) => row.usage === 'inventory')),
233
- units: options(data.units),
234
- lots: options(data.lots),
235
- action: inLocale(url, '/admin/stock/inventory'),
236
- locationsHref: inLocale(url, '/admin/stock/locations'),
237
- applied: url.searchParams.has('applied'),
238
- errors: invalid(url, _),
239
- }, frame),
255
+ body: async (_, frame) => {
256
+ const search = await rowListSearch(ctx, url, req, {
257
+ spec: inventoryListSearch,
258
+ rows,
259
+ frame,
260
+ name: 'stock-inventory-filter',
261
+ bodyId: 'stock-inventory-list',
262
+ functions: stockSearchFunctions,
263
+ });
264
+ return inventoryScreen(_, {
265
+ rows: search.rows,
266
+ createHref: (await ctx.allows('stock.adjustInventory', url, req))
267
+ ? recordModalCreateHref(url, { kind: 'stock.count' })
268
+ : null,
269
+ table: {
270
+ ...(search.groups ? { groups: search.groups } : {}),
271
+ rowHref: (row) => recordModalHref(url, { kind: 'stock.count', id: row.id }),
272
+ },
273
+ products: products.map(({ value, label }) => ({ value, label })),
274
+ locations: options(data.locations.filter((row) => row.usage === 'internal')),
275
+ inventoryLocations: options(data.locations.filter((row) => row.usage === 'inventory')),
276
+ units: options(data.units),
277
+ lots: options(data.lots),
278
+ action: inLocale(url, '/admin/stock/inventory'),
279
+ locationsHref: inLocale(url, '/admin/stock/locations'),
280
+ applied: url.searchParams.has('applied'),
281
+ errors: invalid(url, _),
282
+ }, search.frame);
283
+ },
240
284
  });
241
285
  },
242
286
  '/admin/stock/transfers': (ctx) => async (url, req) => {
@@ -279,7 +323,7 @@ export const routes = {
279
323
  destination: locationsById.get(String(row.locationDestId)) ?? String(row.locationDestId),
280
324
  scheduledDate: dateTimeLabel(row.scheduledDate, lang),
281
325
  state: String(row.state),
282
- href: inLocale(url, `/admin/stock/transfers/${String(row.id)}`),
326
+ href: recordModalHref(url, { kind: 'stock.transfer', id: String(row.id) }),
283
327
  })),
284
328
  name: 'stock-transfer-filter',
285
329
  bodyId: 'stock-transfer-list',
@@ -290,7 +334,9 @@ export const routes = {
290
334
  return transfersListScreen(_, {
291
335
  rows: search.rows,
292
336
  ...(search.groups ? { table: { groups: search.groups } } : {}),
293
- createHref: inLocale(url, '/admin/stock/transfers/new'),
337
+ createHref: (await ctx.allows('stock.createPicking', url, req))
338
+ ? recordModalCreateHref(url, { kind: 'stock.transfer' })
339
+ : null,
294
340
  }, search.frame);
295
341
  },
296
342
  });
@@ -501,6 +547,8 @@ export const routes = {
501
547
  }
502
548
  if (req.method !== 'GET')
503
549
  return text('GET or POST', { status: 405 });
550
+ if (!(await ctx.allows('stock.listWarehouses', url, req)))
551
+ return text('Forbidden', { status: 403 });
504
552
  const rows = (await ctx.call('stock.listWarehouses', {}, url, req));
505
553
  return adminPage(ctx, url, req, {
506
554
  title: 'stock_backend.warehouses',
@@ -524,8 +572,13 @@ export const routes = {
524
572
  });
525
573
  const list = warehousesListScreen(_, {
526
574
  rows: search.rows,
527
- ...(search.groups ? { table: { groups: search.groups } } : {}),
528
- createHref: createModalHref(url, '/admin/stock/warehouses'),
575
+ table: {
576
+ ...(search.groups ? { groups: search.groups } : {}),
577
+ rowHref: (row) => recordModalHref(url, { kind: 'stock.warehouse', id: String(row.id) }),
578
+ },
579
+ createHref: (await ctx.allows('stock.saveWarehouse', url, req))
580
+ ? recordModalCreateHref(url, { kind: 'stock.warehouse' })
581
+ : null,
529
582
  }, search.frame);
530
583
  return createModalOpen(url)
531
584
  ? modalWorkspace(list, warehouseCreateModal(_, {
@@ -579,6 +632,8 @@ export const routes = {
579
632
  }
580
633
  if (req.method !== 'GET')
581
634
  return text('GET or POST', { status: 405 });
635
+ if (!(await ctx.allows('stock.listLocations', url, req)))
636
+ return text('Forbidden', { status: 403 });
582
637
  const data = await common(ctx, url, req);
583
638
  const nameById = new Map(data.locations.map((row) => [String(row.id), String(row.name)]));
584
639
  const warehouseById = new Map(data.warehouses.map((row) => [String(row.id), String(row.name)]));
@@ -603,8 +658,13 @@ export const routes = {
603
658
  });
604
659
  const list = locationsListScreen(_, {
605
660
  rows: search.rows,
606
- ...(search.groups ? { table: { groups: search.groups } } : {}),
607
- createHref: createModalHref(url, '/admin/stock/locations'),
661
+ table: {
662
+ ...(search.groups ? { groups: search.groups } : {}),
663
+ rowHref: (row) => recordModalHref(url, { kind: 'stock.location', id: String(row.id) }),
664
+ },
665
+ createHref: (await ctx.allows('stock.saveLocation', url, req))
666
+ ? recordModalCreateHref(url, { kind: 'stock.location' })
667
+ : null,
608
668
  }, search.frame);
609
669
  if (!createModalOpen(url))
610
670
  return list;
@@ -665,6 +725,8 @@ export const routes = {
665
725
  }
666
726
  if (req.method !== 'GET')
667
727
  return text('GET or POST', { status: 405 });
728
+ if (!(await ctx.allows('stock.listPickingTypes', url, req)))
729
+ return text('Forbidden', { status: 403 });
668
730
  const data = await common(ctx, url, req);
669
731
  const rawLocationNameById = new Map(data.locations.map((row) => [String(row.id), String(row.name)]));
670
732
  const completeLocationNameById = new Map(data.locations.map((row) => [String(row.id), completeLocationName(row, rawLocationNameById)]));
@@ -693,8 +755,13 @@ export const routes = {
693
755
  });
694
756
  const list = pickingTypesListScreen(_, {
695
757
  rows: search.rows,
696
- ...(search.groups ? { table: { groups: search.groups } } : {}),
697
- createHref: createModalHref(url, '/admin/stock/picking-types'),
758
+ table: {
759
+ ...(search.groups ? { groups: search.groups } : {}),
760
+ rowHref: (row) => recordModalHref(url, { kind: 'stock.pickingType', id: String(row.id) }),
761
+ },
762
+ createHref: (await ctx.allows('stock.savePickingType', url, req))
763
+ ? recordModalCreateHref(url, { kind: 'stock.pickingType' })
764
+ : null,
698
765
  }, search.frame);
699
766
  if (!createModalOpen(url))
700
767
  return list;
@@ -801,8 +868,13 @@ export const routes = {
801
868
  });
802
869
  const list = lotsListScreen(_, {
803
870
  rows: search.rows,
804
- ...(search.groups ? { table: { groups: search.groups } } : {}),
805
- createHref: createModalHref(url, '/admin/stock/lots'),
871
+ table: {
872
+ ...(search.groups ? { groups: search.groups } : {}),
873
+ rowHref: (row) => recordModalHref(url, { kind: 'stock.lot', id: String(row.id) }),
874
+ },
875
+ createHref: (await ctx.allows('stock.saveLot', url, req))
876
+ ? recordModalCreateHref(url, { kind: 'stock.lot' })
877
+ : null,
806
878
  }, search.frame);
807
879
  return createModalOpen(url)
808
880
  ? modalWorkspace(list, lotCreateModal(_, {
@@ -982,8 +1054,13 @@ export const routes = {
982
1054
  });
983
1055
  const list = stockRoutesListScreen(_, {
984
1056
  rows: search.rows,
985
- ...(search.groups ? { table: { groups: search.groups } } : {}),
986
- createHref: createModalHref(url, '/admin/stock/routes'),
1057
+ table: {
1058
+ ...(search.groups ? { groups: search.groups } : {}),
1059
+ rowHref: (row) => recordModalHref(url, { kind: 'stock.route', id: String(row.id) }),
1060
+ },
1061
+ createHref: (await ctx.allows('stock.saveRoute', url, req))
1062
+ ? recordModalCreateHref(url, { kind: 'stock.route' })
1063
+ : null,
987
1064
  }, search.frame);
988
1065
  return createModalOpen(url)
989
1066
  ? modalWorkspace(list, stockRouteCreateModal(_, {
@@ -1091,6 +1168,7 @@ export const routes = {
1091
1168
  });
1092
1169
  },
1093
1170
  '/admin/stock/replenishment': (ctx) => async (url, req) => {
1171
+ const canRun = await ctx.allows('stock.runOrderpoint', url, req);
1094
1172
  const lang = ctx.localeOf(url, req);
1095
1173
  const _ = ctx.translate(lang);
1096
1174
  if (req.method === 'POST') {
@@ -1164,7 +1242,7 @@ export const routes = {
1164
1242
  forecasted,
1165
1243
  toOrder: String(quantity),
1166
1244
  replenishmentUom: unitById.get(String(row.replenishmentUomId)) ?? String(row.replenishmentUomId ?? '—'),
1167
- runAction: inLocale(url, `/admin/stock/replenishment/${String(row.id)}/run`),
1245
+ runAction: canRun ? inLocale(url, `/admin/stock/replenishment/${String(row.id)}/run`) : null,
1168
1246
  };
1169
1247
  }),
1170
1248
  name: 'stock-replenishment-filter',
@@ -1175,8 +1253,13 @@ export const routes = {
1175
1253
  });
1176
1254
  return replenishmentListScreen(_, {
1177
1255
  rows: search.rows,
1178
- ...(search.groups ? { table: { groups: search.groups } } : {}),
1179
- createHref: inLocale(url, '/admin/stock/replenishment/new'),
1256
+ table: {
1257
+ ...(search.groups ? { groups: search.groups } : {}),
1258
+ rowHref: (row) => recordModalHref(url, { kind: 'stock.replenishment', id: String(row.id) }),
1259
+ },
1260
+ createHref: (await ctx.allows('stock.saveOrderpoint', url, req))
1261
+ ? recordModalCreateHref(url, { kind: 'stock.replenishment' })
1262
+ : null,
1180
1263
  }, search.frame);
1181
1264
  },
1182
1265
  });