@ketvietlab/ketsuite 0.1.29 → 0.1.31

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 (781) 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/content.css +5 -5
  104. package/dist/modules/backend/design/controls.css +10 -36
  105. package/dist/modules/backend/design/forms.css +33 -188
  106. package/dist/modules/backend/design/lists.css +1 -50
  107. package/dist/modules/backend/index.d.ts +1 -0
  108. package/dist/modules/backend/index.d.ts.map +1 -1
  109. package/dist/modules/backend/index.js +1 -0
  110. package/dist/modules/backend/index.js.map +1 -1
  111. package/dist/modules/backend/optional-read.d.ts +4 -0
  112. package/dist/modules/backend/optional-read.d.ts.map +1 -0
  113. package/dist/modules/backend/optional-read.js +7 -0
  114. package/dist/modules/backend/optional-read.js.map +1 -0
  115. package/dist/modules/company_backend/index.d.ts.map +1 -1
  116. package/dist/modules/company_backend/index.js +0 -2
  117. package/dist/modules/company_backend/index.js.map +1 -1
  118. package/dist/modules/company_backend/screens/branch-form.d.ts.map +1 -1
  119. package/dist/modules/company_backend/screens/branch-form.js +3 -1
  120. package/dist/modules/company_backend/screens/branch-form.js.map +1 -1
  121. package/dist/modules/company_backend/screens/companies-list.d.ts.map +1 -1
  122. package/dist/modules/company_backend/screens/companies-list.js +1 -1
  123. package/dist/modules/company_backend/screens/companies-list.js.map +1 -1
  124. package/dist/modules/company_backend/screens/company-form.d.ts.map +1 -1
  125. package/dist/modules/company_backend/screens/company-form.js +1 -3
  126. package/dist/modules/company_backend/screens/company-form.js.map +1 -1
  127. package/dist/modules/company_backend/screens/context.d.ts.map +1 -1
  128. package/dist/modules/company_backend/screens/context.js +1 -1
  129. package/dist/modules/company_backend/screens/context.js.map +1 -1
  130. package/dist/modules/company_backend/screens/hierarchy.d.ts.map +1 -1
  131. package/dist/modules/company_backend/screens/hierarchy.js +1 -1
  132. package/dist/modules/company_backend/screens/hierarchy.js.map +1 -1
  133. package/dist/modules/crm_backend/client/crm-case-modal.d.mts +8 -8
  134. package/dist/modules/crm_backend/client/crm-case-modal.d.mts.map +1 -1
  135. package/dist/modules/crm_backend/client/crm-case-modal.mjs +1 -1
  136. package/dist/modules/crm_backend/client/crm-case-modal.mjs.map +3 -3
  137. package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts +55 -55
  138. package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts.map +1 -1
  139. package/dist/modules/crm_backend/client/crm-configuration-modal.mjs +1 -1
  140. package/dist/modules/crm_backend/client/crm-configuration-modal.mjs.map +3 -3
  141. package/dist/modules/crm_backend/messages.d.ts +0 -10
  142. package/dist/modules/crm_backend/messages.d.ts.map +1 -1
  143. package/dist/modules/crm_backend/messages.js +0 -10
  144. package/dist/modules/crm_backend/messages.js.map +1 -1
  145. package/dist/modules/crm_backend/screens/activity-planner.d.ts.map +1 -1
  146. package/dist/modules/crm_backend/screens/activity-planner.js +1 -1
  147. package/dist/modules/crm_backend/screens/activity-planner.js.map +1 -1
  148. package/dist/modules/crm_backend/screens/case-create.d.ts.map +1 -1
  149. package/dist/modules/crm_backend/screens/case-create.js +1 -1
  150. package/dist/modules/crm_backend/screens/case-create.js.map +1 -1
  151. package/dist/modules/crm_backend/screens/case-detail.d.ts.map +1 -1
  152. package/dist/modules/crm_backend/screens/case-detail.js +2 -2
  153. package/dist/modules/crm_backend/screens/case-detail.js.map +1 -1
  154. package/dist/modules/crm_backend/screens/cases-list.d.ts.map +1 -1
  155. package/dist/modules/crm_backend/screens/cases-list.js +1 -1
  156. package/dist/modules/crm_backend/screens/cases-list.js.map +1 -1
  157. package/dist/modules/crm_backend/screens/configuration.d.ts.map +1 -1
  158. package/dist/modules/crm_backend/screens/configuration.js +1 -1
  159. package/dist/modules/crm_backend/screens/configuration.js.map +1 -1
  160. package/dist/modules/crm_backend/screens/leaderboard.d.ts.map +1 -1
  161. package/dist/modules/crm_backend/screens/leaderboard.js +1 -1
  162. package/dist/modules/crm_backend/screens/leaderboard.js.map +1 -1
  163. package/dist/modules/crm_backend/screens/pipeline.d.ts.map +1 -1
  164. package/dist/modules/crm_backend/screens/pipeline.js +1 -1
  165. package/dist/modules/crm_backend/screens/pipeline.js.map +1 -1
  166. package/dist/modules/flow/domain/command-check.d.ts +3 -0
  167. package/dist/modules/flow/domain/command-check.d.ts.map +1 -0
  168. package/dist/modules/flow/domain/command-check.js +9 -0
  169. package/dist/modules/flow/domain/command-check.js.map +1 -0
  170. package/dist/modules/flow/domain/command.d.ts +33 -0
  171. package/dist/modules/flow/domain/command.d.ts.map +1 -0
  172. package/dist/modules/flow/domain/command.js +35 -0
  173. package/dist/modules/flow/domain/command.js.map +1 -0
  174. package/dist/modules/flow/domain/issue-bulk.d.ts +50 -0
  175. package/dist/modules/flow/domain/issue-bulk.d.ts.map +1 -0
  176. package/dist/modules/flow/domain/issue-bulk.js +97 -0
  177. package/dist/modules/flow/domain/issue-bulk.js.map +1 -0
  178. package/dist/modules/flow/domain/issue-dependency.d.ts +19 -0
  179. package/dist/modules/flow/domain/issue-dependency.d.ts.map +1 -0
  180. package/dist/modules/flow/domain/issue-dependency.js +59 -0
  181. package/dist/modules/flow/domain/issue-dependency.js.map +1 -0
  182. package/dist/modules/flow/domain/issue-discussion.d.ts +52 -0
  183. package/dist/modules/flow/domain/issue-discussion.d.ts.map +1 -0
  184. package/dist/modules/flow/domain/issue-discussion.js +114 -0
  185. package/dist/modules/flow/domain/issue-discussion.js.map +1 -0
  186. package/dist/modules/flow/domain/issue-transfer.d.ts +62 -0
  187. package/dist/modules/flow/domain/issue-transfer.d.ts.map +1 -0
  188. package/dist/modules/flow/domain/issue-transfer.js +171 -0
  189. package/dist/modules/flow/domain/issue-transfer.js.map +1 -0
  190. package/dist/modules/flow/domain/issue-validation.d.ts +68 -0
  191. package/dist/modules/flow/domain/issue-validation.d.ts.map +1 -0
  192. package/dist/modules/flow/domain/issue-validation.js +136 -0
  193. package/dist/modules/flow/domain/issue-validation.js.map +1 -0
  194. package/dist/modules/flow/domain/issue-write.d.ts +118 -0
  195. package/dist/modules/flow/domain/issue-write.d.ts.map +1 -0
  196. package/dist/modules/flow/domain/issue-write.js +372 -0
  197. package/dist/modules/flow/domain/issue-write.js.map +1 -0
  198. package/dist/modules/flow/domain/sprint-lifecycle.d.ts +61 -0
  199. package/dist/modules/flow/domain/sprint-lifecycle.d.ts.map +1 -0
  200. package/dist/modules/flow/domain/sprint-lifecycle.js +145 -0
  201. package/dist/modules/flow/domain/sprint-lifecycle.js.map +1 -0
  202. package/dist/modules/flow/functions/board.d.ts +7 -0
  203. package/dist/modules/flow/functions/board.d.ts.map +1 -0
  204. package/dist/modules/flow/functions/board.js +59 -0
  205. package/dist/modules/flow/functions/board.js.map +1 -0
  206. package/dist/modules/flow/functions/column.d.ts +8 -0
  207. package/dist/modules/flow/functions/column.d.ts.map +1 -0
  208. package/dist/modules/flow/functions/column.js +64 -0
  209. package/dist/modules/flow/functions/column.js.map +1 -0
  210. package/dist/modules/flow/functions/effects.d.ts +21 -0
  211. package/dist/modules/flow/functions/effects.d.ts.map +1 -0
  212. package/dist/modules/flow/functions/effects.js +96 -0
  213. package/dist/modules/flow/functions/effects.js.map +1 -0
  214. package/dist/modules/flow/functions/entity-save.d.ts +4 -0
  215. package/dist/modules/flow/functions/entity-save.d.ts.map +1 -0
  216. package/dist/modules/flow/functions/entity-save.js +60 -0
  217. package/dist/modules/flow/functions/entity-save.js.map +1 -0
  218. package/dist/modules/flow/functions/epic.d.ts +26 -0
  219. package/dist/modules/flow/functions/epic.d.ts.map +1 -0
  220. package/dist/modules/flow/functions/epic.js +151 -0
  221. package/dist/modules/flow/functions/epic.js.map +1 -0
  222. package/dist/modules/flow/functions/field.d.ts +9 -0
  223. package/dist/modules/flow/functions/field.d.ts.map +1 -0
  224. package/dist/modules/flow/functions/field.js +117 -0
  225. package/dist/modules/flow/functions/field.js.map +1 -0
  226. package/dist/modules/flow/functions/index.d.ts +5 -0
  227. package/dist/modules/flow/functions/index.d.ts.map +1 -0
  228. package/dist/modules/flow/functions/index.js +42 -0
  229. package/dist/modules/flow/functions/index.js.map +1 -0
  230. package/dist/modules/flow/functions/issue-batch.d.ts +6 -0
  231. package/dist/modules/flow/functions/issue-batch.d.ts.map +1 -0
  232. package/dist/modules/flow/functions/issue-batch.js +149 -0
  233. package/dist/modules/flow/functions/issue-batch.js.map +1 -0
  234. package/dist/modules/flow/functions/issue-dependency.d.ts +8 -0
  235. package/dist/modules/flow/functions/issue-dependency.d.ts.map +1 -0
  236. package/dist/modules/flow/functions/issue-dependency.js +54 -0
  237. package/dist/modules/flow/functions/issue-dependency.js.map +1 -0
  238. package/dist/modules/flow/functions/issue-discussion.d.ts +6 -0
  239. package/dist/modules/flow/functions/issue-discussion.d.ts.map +1 -0
  240. package/dist/modules/flow/functions/issue-discussion.js +86 -0
  241. package/dist/modules/flow/functions/issue-discussion.js.map +1 -0
  242. package/dist/modules/flow/functions/issue-read.d.ts +18 -0
  243. package/dist/modules/flow/functions/issue-read.d.ts.map +1 -0
  244. package/dist/modules/flow/functions/issue-read.js +159 -0
  245. package/dist/modules/flow/functions/issue-read.js.map +1 -0
  246. package/dist/modules/flow/functions/issue-write.d.ts +9 -0
  247. package/dist/modules/flow/functions/issue-write.d.ts.map +1 -0
  248. package/dist/modules/flow/functions/issue-write.js +149 -0
  249. package/dist/modules/flow/functions/issue-write.js.map +1 -0
  250. package/dist/modules/flow/functions/issueType.d.ts +8 -0
  251. package/dist/modules/flow/functions/issueType.d.ts.map +1 -0
  252. package/dist/modules/flow/functions/issueType.js +66 -0
  253. package/dist/modules/flow/functions/issueType.js.map +1 -0
  254. package/dist/modules/flow/functions/page.d.ts +22 -0
  255. package/dist/modules/flow/functions/page.d.ts.map +1 -0
  256. package/dist/modules/flow/functions/page.js +202 -0
  257. package/dist/modules/flow/functions/page.js.map +1 -0
  258. package/dist/modules/flow/functions/project.d.ts +26 -0
  259. package/dist/modules/flow/functions/project.d.ts.map +1 -0
  260. package/dist/modules/flow/functions/project.js +381 -0
  261. package/dist/modules/flow/functions/project.js.map +1 -0
  262. package/dist/modules/flow/functions/sprint.d.ts +17 -0
  263. package/dist/modules/flow/functions/sprint.d.ts.map +1 -0
  264. package/dist/modules/flow/functions/sprint.js +173 -0
  265. package/dist/modules/flow/functions/sprint.js.map +1 -0
  266. package/dist/modules/flow/functions/tag.d.ts +14 -0
  267. package/dist/modules/flow/functions/tag.d.ts.map +1 -0
  268. package/dist/modules/flow/functions/tag.js +88 -0
  269. package/dist/modules/flow/functions/tag.js.map +1 -0
  270. package/dist/modules/flow/index.d.ts +8 -2
  271. package/dist/modules/flow/index.d.ts.map +1 -1
  272. package/dist/modules/flow/index.js +7 -2
  273. package/dist/modules/flow/index.js.map +1 -1
  274. package/dist/modules/flow/pages.d.ts +1 -1
  275. package/dist/modules/flow/pages.d.ts.map +1 -1
  276. package/dist/modules/flow/pages.js +1 -1
  277. package/dist/modules/flow/pages.js.map +1 -1
  278. package/dist/modules/flow/queries/calendar.d.ts +21 -0
  279. package/dist/modules/flow/queries/calendar.d.ts.map +1 -0
  280. package/dist/modules/flow/queries/calendar.js +31 -0
  281. package/dist/modules/flow/queries/calendar.js.map +1 -0
  282. package/dist/modules/flow/queries/issue-dependencies.d.ts +17 -0
  283. package/dist/modules/flow/queries/issue-dependencies.d.ts.map +1 -0
  284. package/dist/modules/flow/queries/issue-dependencies.js +46 -0
  285. package/dist/modules/flow/queries/issue-dependencies.js.map +1 -0
  286. package/dist/modules/flow/queries/issue-followers.d.ts +6 -0
  287. package/dist/modules/flow/queries/issue-followers.d.ts.map +1 -0
  288. package/dist/modules/flow/queries/issue-followers.js +18 -0
  289. package/dist/modules/flow/queries/issue-followers.js.map +1 -0
  290. package/dist/modules/flow/queries/issue-list.d.ts +153 -0
  291. package/dist/modules/flow/queries/issue-list.d.ts.map +1 -0
  292. package/dist/modules/flow/queries/issue-list.js +439 -0
  293. package/dist/modules/flow/queries/issue-list.js.map +1 -0
  294. package/dist/modules/flow/queries/options.d.ts +4 -0
  295. package/dist/modules/flow/queries/options.d.ts.map +1 -0
  296. package/dist/modules/flow/queries/options.js +13 -0
  297. package/dist/modules/flow/queries/options.js.map +1 -0
  298. package/dist/modules/flow/queries/progress.d.ts +24 -0
  299. package/dist/modules/flow/queries/progress.d.ts.map +1 -0
  300. package/dist/modules/flow/queries/progress.js +54 -0
  301. package/dist/modules/flow/queries/progress.js.map +1 -0
  302. package/dist/modules/flow/queries/project-list.d.ts +4 -0
  303. package/dist/modules/flow/queries/project-list.d.ts.map +1 -0
  304. package/dist/modules/flow/queries/project-list.js +19 -0
  305. package/dist/modules/flow/queries/project-list.js.map +1 -0
  306. package/dist/modules/flow_backend/messages.d.ts +1 -2
  307. package/dist/modules/flow_backend/messages.d.ts.map +1 -1
  308. package/dist/modules/flow_backend/messages.js +0 -2
  309. package/dist/modules/flow_backend/messages.js.map +1 -1
  310. package/dist/modules/flow_backend/routes.js +1 -1
  311. package/dist/modules/flow_backend/routes.js.map +1 -1
  312. package/dist/modules/flow_backend/screens/all-epics.d.ts.map +1 -1
  313. package/dist/modules/flow_backend/screens/all-epics.js +1 -1
  314. package/dist/modules/flow_backend/screens/all-epics.js.map +1 -1
  315. package/dist/modules/flow_backend/screens/all-pages.d.ts.map +1 -1
  316. package/dist/modules/flow_backend/screens/all-pages.js +1 -1
  317. package/dist/modules/flow_backend/screens/all-pages.js.map +1 -1
  318. package/dist/modules/flow_backend/screens/epic-detail.js +1 -1
  319. package/dist/modules/flow_backend/screens/epic-detail.js.map +1 -1
  320. package/dist/modules/flow_backend/screens/gantt.d.ts.map +1 -1
  321. package/dist/modules/flow_backend/screens/gantt.js +1 -1
  322. package/dist/modules/flow_backend/screens/gantt.js.map +1 -1
  323. package/dist/modules/flow_backend/screens/issue-detail.js +2 -1
  324. package/dist/modules/flow_backend/screens/issue-detail.js.map +1 -1
  325. package/dist/modules/flow_backend/screens/issues.d.ts.map +1 -1
  326. package/dist/modules/flow_backend/screens/issues.js +1 -1
  327. package/dist/modules/flow_backend/screens/issues.js.map +1 -1
  328. package/dist/modules/flow_backend/screens/map.js +1 -1
  329. package/dist/modules/flow_backend/screens/map.js.map +1 -1
  330. package/dist/modules/flow_backend/screens/my-work.d.ts.map +1 -1
  331. package/dist/modules/flow_backend/screens/my-work.js +1 -1
  332. package/dist/modules/flow_backend/screens/my-work.js.map +1 -1
  333. package/dist/modules/flow_backend/screens/page-detail.js +1 -1
  334. package/dist/modules/flow_backend/screens/page-detail.js.map +1 -1
  335. package/dist/modules/flow_backend/screens/project-create.d.ts.map +1 -1
  336. package/dist/modules/flow_backend/screens/project-create.js +1 -1
  337. package/dist/modules/flow_backend/screens/project-create.js.map +1 -1
  338. package/dist/modules/flow_backend/screens/project-pages.d.ts.map +1 -1
  339. package/dist/modules/flow_backend/screens/project-pages.js +1 -1
  340. package/dist/modules/flow_backend/screens/project-pages.js.map +1 -1
  341. package/dist/modules/flow_backend/screens/projects-list.d.ts.map +1 -1
  342. package/dist/modules/flow_backend/screens/projects-list.js +1 -1
  343. package/dist/modules/flow_backend/screens/projects-list.js.map +1 -1
  344. package/dist/modules/flow_backend/screens/sprints.d.ts.map +1 -1
  345. package/dist/modules/flow_backend/screens/sprints.js +1 -1
  346. package/dist/modules/flow_backend/screens/sprints.js.map +1 -1
  347. package/dist/modules/flow_staff_channel/channel-routes.js +1 -1
  348. package/dist/modules/flow_staff_channel/channel-routes.js.map +1 -1
  349. package/dist/modules/hospitality_billing/messages.d.ts.map +1 -1
  350. package/dist/modules/hospitality_billing/messages.js +0 -2
  351. package/dist/modules/hospitality_billing/messages.js.map +1 -1
  352. package/dist/modules/hospitality_billing/screens/billing.d.ts.map +1 -1
  353. package/dist/modules/hospitality_billing/screens/billing.js +1 -1
  354. package/dist/modules/hospitality_billing/screens/billing.js.map +1 -1
  355. package/dist/modules/hospitality_billing/screens/page-frame.d.ts +1 -2
  356. package/dist/modules/hospitality_billing/screens/page-frame.d.ts.map +1 -1
  357. package/dist/modules/hospitality_billing/screens/page-frame.js +1 -1
  358. package/dist/modules/hospitality_billing/screens/page-frame.js.map +1 -1
  359. package/dist/modules/hospitality_core/messages.js +2 -2
  360. package/dist/modules/hospitality_core/messages.js.map +1 -1
  361. package/dist/modules/hospitality_core/screens/check-out-prep.d.ts.map +1 -1
  362. package/dist/modules/hospitality_core/screens/check-out-prep.js +1 -1
  363. package/dist/modules/hospitality_core/screens/check-out-prep.js.map +1 -1
  364. package/dist/modules/hospitality_core/screens/front-desk.d.ts.map +1 -1
  365. package/dist/modules/hospitality_core/screens/front-desk.js +40 -40
  366. package/dist/modules/hospitality_core/screens/front-desk.js.map +1 -1
  367. package/dist/modules/hospitality_core/screens/page-frame.d.ts +2 -3
  368. package/dist/modules/hospitality_core/screens/page-frame.d.ts.map +1 -1
  369. package/dist/modules/hospitality_core/screens/page-frame.js +3 -3
  370. package/dist/modules/hospitality_core/screens/page-frame.js.map +1 -1
  371. package/dist/modules/hospitality_core/screens/tape-chart.d.ts.map +1 -1
  372. package/dist/modules/hospitality_core/screens/tape-chart.js +3 -12
  373. package/dist/modules/hospitality_core/screens/tape-chart.js.map +1 -1
  374. package/dist/modules/hr_backend/screens/employee-form.d.ts.map +1 -1
  375. package/dist/modules/hr_backend/screens/employee-form.js +1 -1
  376. package/dist/modules/hr_backend/screens/employee-form.js.map +1 -1
  377. package/dist/modules/hr_backend/screens/leaves-list.d.ts.map +1 -1
  378. package/dist/modules/hr_backend/screens/leaves-list.js +1 -1
  379. package/dist/modules/hr_backend/screens/leaves-list.js.map +1 -1
  380. package/dist/modules/livedoc/islands.d.ts +9 -0
  381. package/dist/modules/livedoc/islands.d.ts.map +1 -1
  382. package/dist/modules/loyalty_backend/messages.d.ts +0 -10
  383. package/dist/modules/loyalty_backend/messages.d.ts.map +1 -1
  384. package/dist/modules/loyalty_backend/messages.js +0 -10
  385. package/dist/modules/loyalty_backend/messages.js.map +1 -1
  386. package/dist/modules/loyalty_backend/screens/index.d.ts.map +1 -1
  387. package/dist/modules/loyalty_backend/screens/index.js +5 -5
  388. package/dist/modules/loyalty_backend/screens/index.js.map +1 -1
  389. package/dist/modules/loyalty_backend/screens/page-frame.d.ts +2 -3
  390. package/dist/modules/loyalty_backend/screens/page-frame.d.ts.map +1 -1
  391. package/dist/modules/loyalty_backend/screens/page-frame.js +2 -2
  392. package/dist/modules/loyalty_backend/screens/page-frame.js.map +1 -1
  393. package/dist/modules/mail_backend/index.d.ts.map +1 -1
  394. package/dist/modules/mail_backend/index.js +0 -2
  395. package/dist/modules/mail_backend/index.js.map +1 -1
  396. package/dist/modules/mail_backend/screens/inbox-list.d.ts.map +1 -1
  397. package/dist/modules/mail_backend/screens/inbox-list.js +1 -1
  398. package/dist/modules/mail_backend/screens/inbox-list.js.map +1 -1
  399. package/dist/modules/mail_inbound_backend/index.d.ts.map +1 -1
  400. package/dist/modules/mail_inbound_backend/index.js +0 -2
  401. package/dist/modules/mail_inbound_backend/index.js.map +1 -1
  402. package/dist/modules/mail_inbound_backend/screens/inbound-list.d.ts.map +1 -1
  403. package/dist/modules/mail_inbound_backend/screens/inbound-list.js +1 -1
  404. package/dist/modules/mail_inbound_backend/screens/inbound-list.js.map +1 -1
  405. package/dist/modules/mail_transport_backend/index.d.ts.map +1 -1
  406. package/dist/modules/mail_transport_backend/index.js +0 -2
  407. package/dist/modules/mail_transport_backend/index.js.map +1 -1
  408. package/dist/modules/mail_transport_backend/screens/outbox-list.d.ts.map +1 -1
  409. package/dist/modules/mail_transport_backend/screens/outbox-list.js +1 -1
  410. package/dist/modules/mail_transport_backend/screens/outbox-list.js.map +1 -1
  411. package/dist/modules/manufacturing_backend/screens/order-execution.d.ts.map +1 -1
  412. package/dist/modules/manufacturing_backend/screens/order-execution.js +1 -1
  413. package/dist/modules/manufacturing_backend/screens/order-execution.js.map +1 -1
  414. package/dist/modules/oauth_backend/messages.d.ts +0 -4
  415. package/dist/modules/oauth_backend/messages.d.ts.map +1 -1
  416. package/dist/modules/oauth_backend/messages.js +0 -4
  417. package/dist/modules/oauth_backend/messages.js.map +1 -1
  418. package/dist/modules/oauth_backend/screens/index.d.ts.map +1 -1
  419. package/dist/modules/oauth_backend/screens/index.js +5 -5
  420. package/dist/modules/oauth_backend/screens/index.js.map +1 -1
  421. package/dist/modules/partner_backend/screens/form.d.ts.map +1 -1
  422. package/dist/modules/partner_backend/screens/form.js +3 -1
  423. package/dist/modules/partner_backend/screens/form.js.map +1 -1
  424. package/dist/modules/partner_backend/screens/list.d.ts.map +1 -1
  425. package/dist/modules/partner_backend/screens/list.js +1 -1
  426. package/dist/modules/partner_backend/screens/list.js.map +1 -1
  427. package/dist/modules/partner_backend/screens/new.d.ts.map +1 -1
  428. package/dist/modules/partner_backend/screens/new.js +1 -1
  429. package/dist/modules/partner_backend/screens/new.js.map +1 -1
  430. package/dist/modules/pricing_backend/index.js +0 -2
  431. package/dist/modules/pricing_backend/index.js.map +1 -1
  432. package/dist/modules/pricing_backend/screens/pricelist-detail.d.ts.map +1 -1
  433. package/dist/modules/pricing_backend/screens/pricelist-detail.js +1 -1
  434. package/dist/modules/pricing_backend/screens/pricelist-detail.js.map +1 -1
  435. package/dist/modules/pricing_backend/screens/pricelists-list.d.ts.map +1 -1
  436. package/dist/modules/pricing_backend/screens/pricelists-list.js +1 -1
  437. package/dist/modules/pricing_backend/screens/pricelists-list.js.map +1 -1
  438. package/dist/modules/product_backend/client/attribute-modal.d.mts +5 -5
  439. package/dist/modules/product_backend/client/attribute-modal.d.mts.map +1 -1
  440. package/dist/modules/product_backend/client/attribute-modal.mjs +1 -1
  441. package/dist/modules/product_backend/client/attribute-modal.mjs.map +3 -3
  442. package/dist/modules/product_backend/client/product-modal.d.mts +8 -8
  443. package/dist/modules/product_backend/client/product-modal.d.mts.map +1 -1
  444. package/dist/modules/product_backend/client/product-modal.mjs +1 -1
  445. package/dist/modules/product_backend/client/product-modal.mjs.map +3 -3
  446. package/dist/modules/product_backend/client/variant-editor.d.mts +3 -3
  447. package/dist/modules/product_backend/client/variant-editor.d.mts.map +1 -1
  448. package/dist/modules/product_backend/client/variant-editor.mjs +1 -1
  449. package/dist/modules/product_backend/client/variant-editor.mjs.map +3 -3
  450. package/dist/modules/product_backend/screens/detail.d.ts.map +1 -1
  451. package/dist/modules/product_backend/screens/detail.js +3 -2
  452. package/dist/modules/product_backend/screens/detail.js.map +1 -1
  453. package/dist/modules/product_backend/screens/variant.d.ts.map +1 -1
  454. package/dist/modules/product_backend/screens/variant.js +3 -2
  455. package/dist/modules/product_backend/screens/variant.js.map +1 -1
  456. package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts +185 -0
  457. package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts.map +1 -0
  458. package/dist/modules/purchase_backend/client/purchase-order-modal.mjs +2 -0
  459. package/dist/modules/purchase_backend/client/purchase-order-modal.mjs.map +7 -0
  460. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts +52 -0
  461. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts.map +1 -0
  462. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs +2 -0
  463. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs.map +7 -0
  464. package/dist/modules/purchase_backend/index.js +83 -14
  465. package/dist/modules/purchase_backend/index.js.map +1 -1
  466. package/dist/modules/purchase_backend/modal/context.d.ts +4 -0
  467. package/dist/modules/purchase_backend/modal/context.d.ts.map +1 -0
  468. package/dist/modules/purchase_backend/modal/context.js +94 -0
  469. package/dist/modules/purchase_backend/modal/context.js.map +1 -0
  470. package/dist/modules/purchase_backend/modal/order-modal-view.d.ts +18 -0
  471. package/dist/modules/purchase_backend/modal/order-modal-view.d.ts.map +1 -0
  472. package/dist/modules/purchase_backend/modal/order-modal-view.js +290 -0
  473. package/dist/modules/purchase_backend/modal/order-modal-view.js.map +1 -0
  474. package/dist/modules/purchase_backend/modal/pricelist-context.d.ts +3 -0
  475. package/dist/modules/purchase_backend/modal/pricelist-context.d.ts.map +1 -0
  476. package/dist/modules/purchase_backend/modal/pricelist-context.js +36 -0
  477. package/dist/modules/purchase_backend/modal/pricelist-context.js.map +1 -0
  478. package/dist/modules/purchase_backend/modal/pricelist-view.d.ts +12 -0
  479. package/dist/modules/purchase_backend/modal/pricelist-view.d.ts.map +1 -0
  480. package/dist/modules/purchase_backend/modal/pricelist-view.js +78 -0
  481. package/dist/modules/purchase_backend/modal/pricelist-view.js.map +1 -0
  482. package/dist/modules/purchase_backend/screens/order-detail.d.ts.map +1 -1
  483. package/dist/modules/purchase_backend/screens/order-detail.js +4 -2
  484. package/dist/modules/purchase_backend/screens/order-detail.js.map +1 -1
  485. package/dist/modules/purchase_backend/screens/overview.d.ts +5 -0
  486. package/dist/modules/purchase_backend/screens/overview.d.ts.map +1 -1
  487. package/dist/modules/purchase_backend/screens/overview.js +27 -6
  488. package/dist/modules/purchase_backend/screens/overview.js.map +1 -1
  489. package/dist/modules/purchase_backend/screens/rfq-create.d.ts.map +1 -1
  490. package/dist/modules/purchase_backend/screens/rfq-create.js +1 -1
  491. package/dist/modules/purchase_backend/screens/rfq-create.js.map +1 -1
  492. package/dist/modules/purchase_backend/screens/rfqs-list.d.ts +1 -1
  493. package/dist/modules/purchase_backend/screens/rfqs-list.d.ts.map +1 -1
  494. package/dist/modules/purchase_backend/screens/rfqs-list.js +1 -1
  495. package/dist/modules/purchase_backend/screens/rfqs-list.js.map +1 -1
  496. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.d.ts.map +1 -1
  497. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js +1 -1
  498. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js.map +1 -1
  499. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts +2 -1
  500. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts.map +1 -1
  501. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js +2 -2
  502. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js.map +1 -1
  503. package/dist/modules/purchase_backend/search.d.ts +1 -1
  504. package/dist/modules/sale/functions/line-edit.d.ts +4 -0
  505. package/dist/modules/sale/functions/line-edit.d.ts.map +1 -0
  506. package/dist/modules/sale/functions/line-edit.js +120 -0
  507. package/dist/modules/sale/functions/line-edit.js.map +1 -0
  508. package/dist/modules/sale/index.d.ts.map +1 -1
  509. package/dist/modules/sale/index.js +16 -1
  510. package/dist/modules/sale/index.js.map +1 -1
  511. package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts +53 -0
  512. package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts.map +1 -0
  513. package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs +2 -0
  514. package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs.map +7 -0
  515. package/dist/modules/sale_backend/client/sale-order-modal.d.mts +161 -0
  516. package/dist/modules/sale_backend/client/sale-order-modal.d.mts.map +1 -0
  517. package/dist/modules/sale_backend/client/sale-order-modal.mjs +2 -0
  518. package/dist/modules/sale_backend/client/sale-order-modal.mjs.map +7 -0
  519. package/dist/modules/sale_backend/index.js +81 -20
  520. package/dist/modules/sale_backend/index.js.map +1 -1
  521. package/dist/modules/sale_backend/modal/context.d.ts +4 -0
  522. package/dist/modules/sale_backend/modal/context.d.ts.map +1 -0
  523. package/dist/modules/sale_backend/modal/context.js +94 -0
  524. package/dist/modules/sale_backend/modal/context.js.map +1 -0
  525. package/dist/modules/sale_backend/modal/order-modal-view.d.ts +18 -0
  526. package/dist/modules/sale_backend/modal/order-modal-view.d.ts.map +1 -0
  527. package/dist/modules/sale_backend/modal/order-modal-view.js +289 -0
  528. package/dist/modules/sale_backend/modal/order-modal-view.js.map +1 -0
  529. package/dist/modules/sale_backend/modal/policy-context.d.ts +3 -0
  530. package/dist/modules/sale_backend/modal/policy-context.d.ts.map +1 -0
  531. package/dist/modules/sale_backend/modal/policy-context.js +26 -0
  532. package/dist/modules/sale_backend/modal/policy-context.js.map +1 -0
  533. package/dist/modules/sale_backend/modal/policy-view.d.ts +11 -0
  534. package/dist/modules/sale_backend/modal/policy-view.d.ts.map +1 -0
  535. package/dist/modules/sale_backend/modal/policy-view.js +70 -0
  536. package/dist/modules/sale_backend/modal/policy-view.js.map +1 -0
  537. package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts +1 -1
  538. package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts.map +1 -1
  539. package/dist/modules/sale_backend/screens/invoicing-policies-list.js +1 -1
  540. package/dist/modules/sale_backend/screens/invoicing-policies-list.js.map +1 -1
  541. package/dist/modules/sale_backend/screens/invoicing-policy-create.d.ts.map +1 -1
  542. package/dist/modules/sale_backend/screens/invoicing-policy-create.js +1 -1
  543. package/dist/modules/sale_backend/screens/invoicing-policy-create.js.map +1 -1
  544. package/dist/modules/sale_backend/screens/order-detail.d.ts.map +1 -1
  545. package/dist/modules/sale_backend/screens/order-detail.js +3 -1
  546. package/dist/modules/sale_backend/screens/order-detail.js.map +1 -1
  547. package/dist/modules/sale_backend/screens/overview.d.ts +3 -0
  548. package/dist/modules/sale_backend/screens/overview.d.ts.map +1 -1
  549. package/dist/modules/sale_backend/screens/overview.js +22 -14
  550. package/dist/modules/sale_backend/screens/overview.js.map +1 -1
  551. package/dist/modules/sale_backend/screens/quotation-create.d.ts.map +1 -1
  552. package/dist/modules/sale_backend/screens/quotation-create.js +1 -1
  553. package/dist/modules/sale_backend/screens/quotation-create.js.map +1 -1
  554. package/dist/modules/sale_backend/screens/quotations-list.d.ts +1 -1
  555. package/dist/modules/sale_backend/screens/quotations-list.d.ts.map +1 -1
  556. package/dist/modules/sale_backend/screens/quotations-list.js +1 -1
  557. package/dist/modules/sale_backend/screens/quotations-list.js.map +1 -1
  558. package/dist/modules/sale_backend/screens/sales-orders-list.d.ts.map +1 -1
  559. package/dist/modules/sale_backend/screens/sales-orders-list.js +1 -1
  560. package/dist/modules/sale_backend/screens/sales-orders-list.js.map +1 -1
  561. package/dist/modules/stock/functions/inventory-preview.d.ts +4 -0
  562. package/dist/modules/stock/functions/inventory-preview.d.ts.map +1 -0
  563. package/dist/modules/stock/functions/inventory-preview.js +68 -0
  564. package/dist/modules/stock/functions/inventory-preview.js.map +1 -0
  565. package/dist/modules/stock/index.d.ts.map +1 -1
  566. package/dist/modules/stock/index.js +14 -1
  567. package/dist/modules/stock/index.js.map +1 -1
  568. package/dist/modules/stock_backend/client/inventory-count-modal.d.mts +60 -0
  569. package/dist/modules/stock_backend/client/inventory-count-modal.d.mts.map +1 -0
  570. package/dist/modules/stock_backend/client/inventory-count-modal.mjs +2 -0
  571. package/dist/modules/stock_backend/client/inventory-count-modal.mjs.map +7 -0
  572. package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts +105 -0
  573. package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts.map +1 -0
  574. package/dist/modules/stock_backend/client/stock-configuration-modal.mjs +2 -0
  575. package/dist/modules/stock_backend/client/stock-configuration-modal.mjs.map +7 -0
  576. package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts +130 -0
  577. package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts.map +1 -0
  578. package/dist/modules/stock_backend/client/stock-transfer-modal.mjs +2 -0
  579. package/dist/modules/stock_backend/client/stock-transfer-modal.mjs.map +7 -0
  580. package/dist/modules/stock_backend/functions/index.d.ts +10 -0
  581. package/dist/modules/stock_backend/functions/index.d.ts.map +1 -0
  582. package/dist/modules/stock_backend/functions/index.js +20 -0
  583. package/dist/modules/stock_backend/functions/index.js.map +1 -0
  584. package/dist/modules/stock_backend/functions.d.ts +1 -9
  585. package/dist/modules/stock_backend/functions.d.ts.map +1 -1
  586. package/dist/modules/stock_backend/functions.js +1 -18
  587. package/dist/modules/stock_backend/functions.js.map +1 -1
  588. package/dist/modules/stock_backend/index.js +52 -0
  589. package/dist/modules/stock_backend/index.js.map +1 -1
  590. package/dist/modules/stock_backend/islands.d.ts +8 -0
  591. package/dist/modules/stock_backend/islands.d.ts.map +1 -1
  592. package/dist/modules/stock_backend/islands.js +41 -0
  593. package/dist/modules/stock_backend/islands.js.map +1 -1
  594. package/dist/modules/stock_backend/modal/configuration-context.d.ts +3 -0
  595. package/dist/modules/stock_backend/modal/configuration-context.d.ts.map +1 -0
  596. package/dist/modules/stock_backend/modal/configuration-context.js +65 -0
  597. package/dist/modules/stock_backend/modal/configuration-context.js.map +1 -0
  598. package/dist/modules/stock_backend/modal/configuration-view.d.ts +21 -0
  599. package/dist/modules/stock_backend/modal/configuration-view.d.ts.map +1 -0
  600. package/dist/modules/stock_backend/modal/configuration-view.js +201 -0
  601. package/dist/modules/stock_backend/modal/configuration-view.js.map +1 -0
  602. package/dist/modules/stock_backend/modal/configuration.d.ts +20 -0
  603. package/dist/modules/stock_backend/modal/configuration.d.ts.map +1 -0
  604. package/dist/modules/stock_backend/modal/configuration.js +117 -0
  605. package/dist/modules/stock_backend/modal/configuration.js.map +1 -0
  606. package/dist/modules/stock_backend/modal/inventory-context.d.ts +3 -0
  607. package/dist/modules/stock_backend/modal/inventory-context.d.ts.map +1 -0
  608. package/dist/modules/stock_backend/modal/inventory-context.js +37 -0
  609. package/dist/modules/stock_backend/modal/inventory-context.js.map +1 -0
  610. package/dist/modules/stock_backend/modal/inventory-view.d.ts +14 -0
  611. package/dist/modules/stock_backend/modal/inventory-view.d.ts.map +1 -0
  612. package/dist/modules/stock_backend/modal/inventory-view.js +142 -0
  613. package/dist/modules/stock_backend/modal/inventory-view.js.map +1 -0
  614. package/dist/modules/stock_backend/modal/transfer-context.d.ts +3 -0
  615. package/dist/modules/stock_backend/modal/transfer-context.d.ts.map +1 -0
  616. package/dist/modules/stock_backend/modal/transfer-context.js +54 -0
  617. package/dist/modules/stock_backend/modal/transfer-context.js.map +1 -0
  618. package/dist/modules/stock_backend/modal/transfer-view.d.ts +15 -0
  619. package/dist/modules/stock_backend/modal/transfer-view.d.ts.map +1 -0
  620. package/dist/modules/stock_backend/modal/transfer-view.js +252 -0
  621. package/dist/modules/stock_backend/modal/transfer-view.js.map +1 -0
  622. package/dist/modules/stock_backend/routes.d.ts.map +1 -1
  623. package/dist/modules/stock_backend/routes.js +117 -34
  624. package/dist/modules/stock_backend/routes.js.map +1 -1
  625. package/dist/modules/stock_backend/screens/forecast.d.ts.map +1 -1
  626. package/dist/modules/stock_backend/screens/forecast.js +5 -32
  627. package/dist/modules/stock_backend/screens/forecast.js.map +1 -1
  628. package/dist/modules/stock_backend/screens/inventory.d.ts +3 -1
  629. package/dist/modules/stock_backend/screens/inventory.d.ts.map +1 -1
  630. package/dist/modules/stock_backend/screens/inventory.js +27 -74
  631. package/dist/modules/stock_backend/screens/inventory.js.map +1 -1
  632. package/dist/modules/stock_backend/screens/location-create.d.ts.map +1 -1
  633. package/dist/modules/stock_backend/screens/location-create.js +1 -1
  634. package/dist/modules/stock_backend/screens/location-create.js.map +1 -1
  635. package/dist/modules/stock_backend/screens/locations-list.d.ts +1 -1
  636. package/dist/modules/stock_backend/screens/locations-list.d.ts.map +1 -1
  637. package/dist/modules/stock_backend/screens/locations-list.js +1 -1
  638. package/dist/modules/stock_backend/screens/locations-list.js.map +1 -1
  639. package/dist/modules/stock_backend/screens/lot-create.d.ts.map +1 -1
  640. package/dist/modules/stock_backend/screens/lot-create.js +1 -1
  641. package/dist/modules/stock_backend/screens/lot-create.js.map +1 -1
  642. package/dist/modules/stock_backend/screens/lot-detail.d.ts.map +1 -1
  643. package/dist/modules/stock_backend/screens/lot-detail.js +3 -2
  644. package/dist/modules/stock_backend/screens/lot-detail.js.map +1 -1
  645. package/dist/modules/stock_backend/screens/lots-list.d.ts +1 -1
  646. package/dist/modules/stock_backend/screens/lots-list.d.ts.map +1 -1
  647. package/dist/modules/stock_backend/screens/lots-list.js +1 -1
  648. package/dist/modules/stock_backend/screens/lots-list.js.map +1 -1
  649. package/dist/modules/stock_backend/screens/overview.d.ts +9 -0
  650. package/dist/modules/stock_backend/screens/overview.d.ts.map +1 -0
  651. package/dist/modules/stock_backend/screens/overview.js +38 -0
  652. package/dist/modules/stock_backend/screens/overview.js.map +1 -0
  653. package/dist/modules/stock_backend/screens/picking-type-create.d.ts.map +1 -1
  654. package/dist/modules/stock_backend/screens/picking-type-create.js +1 -1
  655. package/dist/modules/stock_backend/screens/picking-type-create.js.map +1 -1
  656. package/dist/modules/stock_backend/screens/picking-types-list.d.ts +1 -1
  657. package/dist/modules/stock_backend/screens/picking-types-list.d.ts.map +1 -1
  658. package/dist/modules/stock_backend/screens/picking-types-list.js +1 -1
  659. package/dist/modules/stock_backend/screens/picking-types-list.js.map +1 -1
  660. package/dist/modules/stock_backend/screens/replenishment-create.d.ts.map +1 -1
  661. package/dist/modules/stock_backend/screens/replenishment-create.js +1 -1
  662. package/dist/modules/stock_backend/screens/replenishment-create.js.map +1 -1
  663. package/dist/modules/stock_backend/screens/replenishment-list.d.ts +2 -2
  664. package/dist/modules/stock_backend/screens/replenishment-list.d.ts.map +1 -1
  665. package/dist/modules/stock_backend/screens/replenishment-list.js +2 -2
  666. package/dist/modules/stock_backend/screens/replenishment-list.js.map +1 -1
  667. package/dist/modules/stock_backend/screens/stock-route-create.d.ts.map +1 -1
  668. package/dist/modules/stock_backend/screens/stock-route-create.js +1 -1
  669. package/dist/modules/stock_backend/screens/stock-route-create.js.map +1 -1
  670. package/dist/modules/stock_backend/screens/stock-route-detail.js +2 -1
  671. package/dist/modules/stock_backend/screens/stock-route-detail.js.map +1 -1
  672. package/dist/modules/stock_backend/screens/stock-routes-list.d.ts +1 -1
  673. package/dist/modules/stock_backend/screens/stock-routes-list.d.ts.map +1 -1
  674. package/dist/modules/stock_backend/screens/stock-routes-list.js +1 -1
  675. package/dist/modules/stock_backend/screens/stock-routes-list.js.map +1 -1
  676. package/dist/modules/stock_backend/screens/transfer-create.d.ts.map +1 -1
  677. package/dist/modules/stock_backend/screens/transfer-create.js +1 -1
  678. package/dist/modules/stock_backend/screens/transfer-create.js.map +1 -1
  679. package/dist/modules/stock_backend/screens/transfer-detail.d.ts.map +1 -1
  680. package/dist/modules/stock_backend/screens/transfer-detail.js +3 -2
  681. package/dist/modules/stock_backend/screens/transfer-detail.js.map +1 -1
  682. package/dist/modules/stock_backend/screens/transfers-list.d.ts +1 -1
  683. package/dist/modules/stock_backend/screens/transfers-list.d.ts.map +1 -1
  684. package/dist/modules/stock_backend/screens/transfers-list.js +1 -1
  685. package/dist/modules/stock_backend/screens/transfers-list.js.map +1 -1
  686. package/dist/modules/stock_backend/screens/warehouse-create.d.ts.map +1 -1
  687. package/dist/modules/stock_backend/screens/warehouse-create.js +1 -1
  688. package/dist/modules/stock_backend/screens/warehouse-create.js.map +1 -1
  689. package/dist/modules/stock_backend/screens/warehouses-list.d.ts +1 -1
  690. package/dist/modules/stock_backend/screens/warehouses-list.d.ts.map +1 -1
  691. package/dist/modules/stock_backend/screens/warehouses-list.js +1 -1
  692. package/dist/modules/stock_backend/screens/warehouses-list.js.map +1 -1
  693. package/dist/modules/stock_backend/search.d.ts +29 -0
  694. package/dist/modules/stock_backend/search.d.ts.map +1 -1
  695. package/dist/modules/stock_backend/search.js +22 -0
  696. package/dist/modules/stock_backend/search.js.map +1 -1
  697. package/dist/modules/user_backend/client/access-policy-modal.d.mts +4 -4
  698. package/dist/modules/user_backend/client/access-policy-modal.d.mts.map +1 -1
  699. package/dist/modules/user_backend/client/access-policy-modal.mjs +1 -1
  700. package/dist/modules/user_backend/client/access-policy-modal.mjs.map +3 -3
  701. package/dist/modules/user_backend/client/role-modal.d.mts +6 -6
  702. package/dist/modules/user_backend/client/role-modal.d.mts.map +1 -1
  703. package/dist/modules/user_backend/client/role-modal.mjs +1 -1
  704. package/dist/modules/user_backend/client/role-modal.mjs.map +3 -3
  705. package/dist/modules/user_backend/client/user-modal.d.mts +9 -9
  706. package/dist/modules/user_backend/client/user-modal.d.mts.map +1 -1
  707. package/dist/modules/user_backend/client/user-modal.mjs +1 -1
  708. package/dist/modules/user_backend/client/user-modal.mjs.map +3 -3
  709. package/dist/modules/user_backend/messages.d.ts +0 -6
  710. package/dist/modules/user_backend/messages.d.ts.map +1 -1
  711. package/dist/modules/user_backend/messages.js +0 -6
  712. package/dist/modules/user_backend/messages.js.map +1 -1
  713. package/dist/modules/user_backend/screens/access-policies-list.d.ts.map +1 -1
  714. package/dist/modules/user_backend/screens/access-policies-list.js +1 -1
  715. package/dist/modules/user_backend/screens/access-policies-list.js.map +1 -1
  716. package/dist/modules/user_backend/screens/profile-form.d.ts.map +1 -1
  717. package/dist/modules/user_backend/screens/profile-form.js +1 -1
  718. package/dist/modules/user_backend/screens/profile-form.js.map +1 -1
  719. package/dist/modules/user_backend/screens/roles-list.d.ts.map +1 -1
  720. package/dist/modules/user_backend/screens/roles-list.js +1 -1
  721. package/dist/modules/user_backend/screens/roles-list.js.map +1 -1
  722. package/dist/modules/user_backend/screens/users-list.d.ts.map +1 -1
  723. package/dist/modules/user_backend/screens/users-list.js +1 -1
  724. package/dist/modules/user_backend/screens/users-list.js.map +1 -1
  725. package/dist/modules/website_backend/screens/page-frame.d.ts +2 -3
  726. package/dist/modules/website_backend/screens/page-frame.d.ts.map +1 -1
  727. package/dist/modules/website_backend/screens/page-frame.js +2 -2
  728. package/dist/modules/website_backend/screens/page-frame.js.map +1 -1
  729. package/dist/permission-catalogue.d.ts.map +1 -1
  730. package/dist/permission-catalogue.js +2 -0
  731. package/dist/permission-catalogue.js.map +1 -1
  732. package/dist/role-templates.d.ts.map +1 -1
  733. package/dist/role-templates.js +23 -3
  734. package/dist/role-templates.js.map +1 -1
  735. package/dist/scaffold/index.js +1 -1
  736. package/dist/ui/client/live-doc-shell.d.ts +27 -1
  737. package/dist/ui/client/live-doc-shell.d.ts.map +1 -1
  738. package/dist/ui/client/live-doc-shell.js +43 -5
  739. package/dist/ui/client/live-doc-shell.js.map +1 -1
  740. package/dist/ui/client/live-doc-tail.d.ts +4 -0
  741. package/dist/ui/client/live-doc-tail.d.ts.map +1 -0
  742. package/dist/ui/client/live-doc-tail.js +21 -0
  743. package/dist/ui/client/live-doc-tail.js.map +1 -0
  744. package/dist/ui/client/live-doc-view.d.ts +18 -0
  745. package/dist/ui/client/live-doc-view.d.ts.map +1 -1
  746. package/dist/ui/client/live-doc-view.js +183 -4
  747. package/dist/ui/client/live-doc-view.js.map +1 -1
  748. package/dist/ui/client/live-doc.css +81 -0
  749. package/dist/ui/client/live-doc.d.mts +6 -3
  750. package/dist/ui/client/live-doc.d.mts.map +1 -1
  751. package/dist/ui/client/live-doc.mjs +14 -10
  752. package/dist/ui/client/live-doc.mjs.map +4 -4
  753. package/dist/ui/client/record-modal-form.d.ts +10 -0
  754. package/dist/ui/client/record-modal-form.d.ts.map +1 -1
  755. package/dist/ui/client/record-modal-form.js +3 -1
  756. package/dist/ui/client/record-modal-form.js.map +1 -1
  757. package/dist/ui/client/record-modal.d.ts +9 -1
  758. package/dist/ui/client/record-modal.d.ts.map +1 -1
  759. package/dist/ui/client/record-modal.js +78 -17
  760. package/dist/ui/client/record-modal.js.map +1 -1
  761. package/dist/ui/index.d.ts +2 -2
  762. package/dist/ui/index.d.ts.map +1 -1
  763. package/dist/ui/index.js +2 -2
  764. package/dist/ui/index.js.map +1 -1
  765. package/dist/ui/layout.d.ts +2 -2
  766. package/dist/ui/layout.d.ts.map +1 -1
  767. package/dist/ui/layout.js +3 -3
  768. package/dist/ui/layout.js.map +1 -1
  769. package/dist/ui/record-modal.d.ts +3 -0
  770. package/dist/ui/record-modal.d.ts.map +1 -1
  771. package/dist/ui/record-modal.js +15 -1
  772. package/dist/ui/record-modal.js.map +1 -1
  773. package/package.json +4 -4
  774. package/dist/modules/flow/functions.d.ts +0 -3
  775. package/dist/modules/flow/functions.d.ts.map +0 -1
  776. package/dist/modules/flow/functions.js +0 -1857
  777. package/dist/modules/flow/functions.js.map +0 -1
  778. package/dist/modules/flow/operations.d.ts +0 -414
  779. package/dist/modules/flow/operations.d.ts.map +0 -1
  780. package/dist/modules/flow/operations.js +0 -1671
  781. package/dist/modules/flow/operations.js.map +0 -1
@@ -0,0 +1,130 @@
1
+ declare var di: {
2
+ kind: string;
3
+ size: string;
4
+ labels: () => {
5
+ "recordModal.close": string;
6
+ "recordModal.loading": string;
7
+ "recordModal.loadFailed": string;
8
+ "recordModal.notFound": string;
9
+ "recordModal.retry": string;
10
+ "recordModal.errorTitle": string;
11
+ "recordModal.saveFailed": string;
12
+ "recordModal.savedTitle": string;
13
+ "recordModal.saved": string;
14
+ "recordModal.unsaved": string;
15
+ "recordModal.uploadFailed": string;
16
+ } | {
17
+ "recordModal.close": string;
18
+ "recordModal.loading": string;
19
+ "recordModal.loadFailed": string;
20
+ "recordModal.notFound": string;
21
+ "recordModal.retry": string;
22
+ "recordModal.errorTitle": string;
23
+ "recordModal.saveFailed": string;
24
+ "recordModal.savedTitle": string;
25
+ "recordModal.saved": string;
26
+ "recordModal.unsaved": string;
27
+ "recordModal.uploadFailed": string;
28
+ };
29
+ context: {
30
+ route: (e: any, t: any) => string;
31
+ query: string[];
32
+ };
33
+ title: (e: any) => any;
34
+ status: (e: any) => any;
35
+ body: (e: any) => any;
36
+ actions: (e: any) => any;
37
+ dialogs: {
38
+ edit: {
39
+ title: (e: any) => any;
40
+ view: (e: any) => any;
41
+ };
42
+ add: {
43
+ title: (e: any) => any;
44
+ view: (e: any) => any;
45
+ };
46
+ line: {
47
+ title: (e: any) => any;
48
+ view: (e: any) => any;
49
+ };
50
+ validate: {
51
+ title: (e: any) => any;
52
+ view: (e: any) => any;
53
+ };
54
+ };
55
+ commands: {
56
+ create: {
57
+ fn: string;
58
+ input: (e: any, t: any) => {
59
+ id: any;
60
+ };
61
+ after: string;
62
+ };
63
+ edit: {
64
+ fn: string;
65
+ input: (e: any, t: any) => {
66
+ id: any;
67
+ moveType: any;
68
+ };
69
+ after: string;
70
+ };
71
+ add: {
72
+ fn: string;
73
+ input: (e: any, t: any) => {
74
+ id: any;
75
+ pickingId: any;
76
+ name: string;
77
+ };
78
+ after: string;
79
+ };
80
+ line: {
81
+ fn: string;
82
+ input: (e: any, t: any) => {
83
+ id: any;
84
+ moveId: any;
85
+ quantity: string;
86
+ lotId: string | null;
87
+ picked: any;
88
+ };
89
+ after: string;
90
+ };
91
+ confirm: {
92
+ fn: string;
93
+ input: (e: any, t: any) => {
94
+ id: any;
95
+ };
96
+ after: string;
97
+ };
98
+ assign: {
99
+ fn: string;
100
+ input: (e: any, t: any) => {
101
+ id: any;
102
+ };
103
+ after: string;
104
+ };
105
+ validate: {
106
+ fn: string;
107
+ input: (e: any, t: any) => {
108
+ id: any;
109
+ backorder: string;
110
+ };
111
+ after: string;
112
+ };
113
+ cancel: {
114
+ fn: string;
115
+ input: (e: any, t: any) => {
116
+ id: any;
117
+ };
118
+ after: string;
119
+ confirm: (e: any) => any;
120
+ };
121
+ };
122
+ }, $f: () => {
123
+ view: () => any;
124
+ mount: ({ root: r, lifetime: d }: {
125
+ lifetime: any;
126
+ root: any;
127
+ }) => void;
128
+ };
129
+ export { $f as transferModal, di as transferModalDefinition };
130
+ //# sourceMappingURL=stock-transfer-modal.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stock-transfer-modal.d.mts","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/stock_backend/client/stock-transfer-modal.mjs"],"names":[],"mappings":"AAC6vvD,QAAA,IAA6nD,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAswJ,EAAE;gBAA2B,MAAM;gBAAW,QAAQ;gBAA+B,KAAK;gBAA4C,MAAM;;;;;;;gBAAqF,EAAE;;;;;;;gBAAwE,EAAE;;;;;;;gBAA4E,EAAE;gBAAM,SAAS;;;;;;;gBAAwG,EAAE;;;;;;CAA+D,EAAC,EAAE;;;;;;CAAO,CAAC;AAAA,OAAM,EAAC,EAAE,IAAI,aAAa,EAAC,EAAE,IAAI,uBAAuB,EAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ // @ts-nocheck Generated by tools/build-backend-client.mjs — do not edit.
2
+ import{each as gn}from"/_ket/view/index.js";import{Fragment as Et,jsx as K,jsxs as fn}from"/_ket/view/jsx-runtime.js";var Mt=["action","action-leading","action-label","action-spinner","action-group"],at=e=>fn(Et,{children:[e.loading===!0&&K("span",{"data-ui":"action-spinner","aria-hidden":"true"}),e.loading!==!0&&e.leading!==void 0&&K("span",{"data-ui":"action-leading","aria-hidden":"true",children:e.leading}),!e.iconOnly&&K("span",{"data-ui":"action-label",children:e.label})]}),C=e=>K("button",{"data-ui":"action","data-variant":e.variant??"secondary","data-size":e.size??"default",type:e.type??"button",name:e.name??null,value:e.value??null,form:e.form??null,disabled:e.disabled===!0||e.loading===!0,"aria-busy":e.loading===!0?"true":null,"aria-describedby":e.describedBy??null,"aria-expanded":e.expanded===void 0?null:String(e.expanded),"aria-controls":e.controls??null,children:K(at,{...e})});var ie=e=>e.disabled||e.loading?K("button",{"data-ui":"action","data-variant":e.variant??"secondary","data-size":e.size??"default",type:"button",disabled:!0,"aria-busy":e.loading===!0?"true":null,"aria-describedby":e.describedBy??null,children:K(at,{...e})}):K("a",{"data-ui":"action","data-variant":e.variant??"secondary","data-size":e.size??"default",href:e.href,"aria-describedby":e.describedBy??null,children:K(at,{...e})}),_=e=>K("div",{"data-ui":"action-group",role:"group","aria-label":e.label??null,children:gn(e.actions,(t,a)=>a,t=>K(Et,{children:t}))});import{jsx as bn,jsxs as fi}from"/_ket/view/jsx-runtime.js";var Ft=["badge","tag","tag-remove","count-badge","avatar","code","text","media-label","media-label-image","media-label-copy"];var Pe=e=>bn("span",{"data-ui":"badge","data-pattern":"badge","data-tone":e.tone??"neutral","data-value":e.value??"",children:e.label});import{each as pn}from"/_ket/view/index.js";import{Fragment as ze,jsx as k,jsxs as Q}from"/_ket/view/jsx-runtime.js";var Ht=["notice","notice-mark","notice-copy","notice-title","notice-message","notice-actions","empty","empty-mark","empty-title","empty-message","empty-actions","loading","loading-label"],hn={info:()=>Q(ze,{children:[k("circle",{cx:"12",cy:"12",r:"10"}),k("path",{d:"M12 16v-4"}),k("path",{d:"M12 8h.01"})]}),positive:()=>Q(ze,{children:[k("circle",{cx:"12",cy:"12",r:"10"}),k("path",{d:"m9 12 2 2 4-4"})]}),warning:()=>Q(ze,{children:[k("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),k("path",{d:"M12 9v4"}),k("path",{d:"M12 17h.01"})]}),danger:()=>Q(ze,{children:[k("circle",{cx:"12",cy:"12",r:"10"}),k("path",{d:"M12 8v4"}),k("path",{d:"M12 16h.01"})]})},j=e=>Q("aside",{"data-ui":"notice","data-pattern":"notice","data-tone":e.tone??"info",role:e.tone==="danger"?"alert":"status",children:[k("span",{"data-ui":"notice-mark","aria-hidden":"true",children:k("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false",children:hn[e.tone??"info"]()})}),Q("div",{"data-ui":"notice-copy",children:[k("p",{"data-ui":"notice-title",children:e.title}),k("p",{"data-ui":"notice-message",children:e.message})]}),e.actions!==void 0&&k("div",{"data-ui":"notice-actions",children:e.actions})]}),re=e=>Q("div",{"data-ui":"empty",role:"status",children:[k("span",{"data-ui":"empty-mark","aria-hidden":"true",children:"\u25C7"}),k("p",{"data-ui":"empty-title",children:e.title}),k("p",{"data-ui":"empty-message",children:e.message}),e.actions!==void 0&&k("div",{"data-ui":"empty-actions",children:e.actions})]}),he=e=>Q("div",{"data-ui":"loading",role:"status","aria-live":"polite",children:[k("span",{"data-ui":"loading-label",children:e.label}),k("div",{"data-ui":"skeleton","aria-hidden":"true",children:pn(Array.from({length:Math.max(1,e.lines??3)}),(t,a)=>a,(t,a)=>k("span",{"data-ui":"skeleton-line","data-line":String(a+1)}))})]});import{each as lt}from"/_ket/view/index.js";import{each as Tn}from"/_ket/view/index.js";import{jsx as J,jsxs as Me}from"/_ket/view/jsx-runtime.js";var Dt=["modal-layer","modal-backdrop","modal-sheet","modal-head","modal-heading","modal-title-row","modal-title","modal-description","modal-close","modal-body","modal-actions"],oe=e=>{let t=e.mode==="client",a=e.mode==="embedded";return Me("div",{"data-ui":"modal-layer","data-mode":e.mode??"overlay","data-route-modal":a||t?null:"true","data-client-modal":t?"true":null,"data-presentation":e.presentation??"sheet","data-unsaved-prompt":e.unsavedPrompt??null,children:[t?J("button",{"data-ui":"modal-backdrop",type:"button","aria-hidden":"true",tabIndex:-1,children:J("span",{children:e.closeLabel})}):J("a",{"data-ui":"modal-backdrop",href:e.closeHref??"#","aria-label":e.closeLabel,children:J("span",{children:e.closeLabel})}),Me("section",{id:e.id,"data-ui":"modal-sheet","data-size":e.size??"default","data-height":e.height==="fixed"?"fixed":null,style:e.height==="fixed"&&e.fixedHeight?`--kv-modal-fixed-height: ${e.fixedHeight}`:"",...e.dialogSemantics==="parent"?{}:{role:"dialog","aria-modal":a?"false":"true"},"aria-labelledby":e.dialogSemantics==="parent"?null:`${e.id}-title`,"aria-describedby":e.dialogSemantics!=="parent"&&e.description?`${e.id}-description`:null,tabindex:a?null:"-1",children:[Me("header",{"data-ui":"modal-head",children:[Me("div",{"data-ui":"modal-heading",children:[Me("div",{"data-ui":"modal-title-row",children:[J("h2",{"data-ui":"modal-title",id:`${e.id}-title`,children:e.title}),e.status!==void 0&&e.status]}),!!e.description&&J("p",{"data-ui":"modal-description",id:`${e.id}-description`,children:e.description})]}),t?J("button",{"data-ui":"modal-close",type:"button","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"}):J("a",{"data-ui":"modal-close",href:e.closeHref??"#","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"})]}),J("div",{"data-ui":"modal-body",children:e.body}),e.actions!==void 0&&J("footer",{"data-ui":"modal-actions",children:e.actions})]})]})};import{Fragment as wi,jsx as ki,jsxs as Ti}from"/_ket/view/jsx-runtime.js";import{Fragment as Fi,jsx as Mi,jsxs as Ei}from"/_ket/view/jsx-runtime.js";var It=["app-shell","app-shell-topbar","app-topbar","app-location-bar","app-location-context","app-brand","app-topbar-brand","app-topbar-context","global-search-trigger","global-search-trigger-label","global-search-shortcut","global-search-dialog","global-search","global-search-input","global-search-submit","app-sidebar","app-main","app-right-rail","page","page-context","page-header","page-heading","page-eyebrow","page-title-row","page-title","page-subline","page-status","page-actions","page-meta","page-body","record-canvas","record-content","record-section","record-section-title"];import{Fragment as At,jsx as P,jsxs as le}from"/_ket/view/jsx-runtime.js";var $t=["stack","inline","grid","card-grid","surface","surface-head","surface-heading","surface-title","surface-description","surface-actions","disclosure","disclosure-summary","disclosure-body","section","section-head","section-eyebrow","section-title","section-description","section-actions","section-body","content-card","card-media","card-head","card-leading","card-heading","card-eyebrow","card-title","card-summary","card-status","card-body","card-meta","card-actions","kanban","kanban-card","kanban-media","kanban-title","kanban-meta","kanban-note","kanban-actions","metric","metric-icon","metric-label","metric-value","metric-detail"],wn=e=>P(At,{children:Tn(e.items,(t,a)=>a,t=>typeof t=="string"||typeof t=="number"?P("span",{children:t}):P(At,{children:t}))}),it=e=>P("div",{"data-ui":"stack","data-pattern":"stack","data-gap":e.gap??"default","data-divided":e.divided===!0?"true":null,children:P(wn,{items:e.items})});var rt=e=>le("div",{"data-ui":"surface","data-tone":e.tone??"default","data-padding":e.padding??"default","data-has-heading":e.title?"true":null,children:[e.title&&le("header",{"data-ui":"surface-head",children:[e.description?le("div",{"data-ui":"surface-heading",children:[P("h2",{"data-ui":"surface-title",children:e.title}),P("p",{"data-ui":"surface-description",children:e.description})]}):P("h2",{"data-ui":"surface-title",children:e.title}),e.actions!==void 0&&P("div",{"data-ui":"surface-actions",children:e.actions})]}),e.body]}),ot=e=>le("details",{"data-ui":"disclosure",open:e.open===!0?!0:void 0,children:[P("summary",{"data-ui":"disclosure-summary",children:e.summary}),P("div",{"data-ui":"disclosure-body",children:e.body})]}),ye=e=>le("section",{"data-ui":"section",children:[le("header",{"data-ui":"section-head",children:[le("div",{children:[!!e.eyebrow&&P("p",{"data-ui":"section-eyebrow",children:e.eyebrow}),P("h2",{"data-ui":"section-title",children:e.title}),!!e.description&&P("p",{"data-ui":"section-description",children:e.description})]}),e.actions!==void 0&&P("div",{"data-ui":"section-actions",children:e.actions})]}),P("div",{"data-ui":"section-body",children:e.body})]});import{each as Rn}from"/_ket/view/index.js";import{Fragment as Cn,jsx as Ee}from"/_ket/view/jsx-runtime.js";var Ve=(e,t)=>e.control!==void 0?Ee(Cn,{children:e.control}):e.type==="textarea"?Ee("textarea",{"data-ui":"field-control","data-appearance":e.appearance==="embedded"?"embedded":null,id:e.id,name:e.name,placeholder:e.placeholder??null,required:e.required===!0,disabled:e.disabled===!0,readonly:e.readOnly===!0,"aria-invalid":e.error?"true":null,"aria-describedby":t,children:String(e.value??"")}):e.type==="select"?Ee("select",{"data-ui":"field-control","data-appearance":e.appearance==="embedded"?"embedded":null,id:e.id,name:e.name,required:e.required===!0,disabled:e.disabled===!0,"aria-invalid":e.error?"true":null,"aria-describedby":t,children:Rn(e.options??[],a=>a.value,a=>Ee("option",{value:a.value,selected:String(e.value??"")===a.value,disabled:a.disabled===!0,children:a.label}))}):Ee("input",{"data-ui":"field-control","data-appearance":e.appearance==="embedded"?"embedded":null,id:e.id,type:e.type==="decimal"?"number":e.type??"text",name:e.name,value:e.type==="checkbox"?"1":String(e.value??""),checked:e.type==="checkbox"&&(e.value===!0||e.value==="1"),placeholder:e.placeholder??null,required:e.required===!0,disabled:e.disabled===!0,readonly:e.readOnly===!0,min:e.min,max:e.max,"aria-invalid":e.error?"true":null,"aria-describedby":t,autocomplete:e.autocomplete??"off",step:e.type==="decimal"?e.step??"any":e.step??null});import{jsx as w,jsxs as W}from"/_ket/view/jsx-runtime.js";var Bt=["field","field-label","field-required","field-control","field-options","field-option","field-option-input","field-help","field-error"],Kt=e=>!!e.error||(e.fields?.some(Kt)??!1),se=e=>{let t=e.help?`${e.id}-help`:null,a=e.error?`${e.id}-error`:null,l=[t,a].filter(Boolean).join(" ")||null,g=W("span",{"data-ui":"field-label",children:[e.label,e.required&&w("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]});return e.fields?W("div",{"data-ui":"field","data-kind":"group","data-span":"full","data-invalid":String(!!e.error),children:[w(ot,{summary:e.label,open:e.open||Kt(e),body:w("div",{"data-ui":"form-grid",children:lt(e.fields.map(u=>({...u,disabled:e.disabled||u.disabled,readOnly:e.readOnly||u.readOnly})),u=>u.id,u=>w(se,{...u}))})}),!!e.help&&w("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&w("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]}):e.type==="checkbox-group"?W("div",{"data-ui":"field","data-kind":"checkbox-group","data-span":e.span??"half","data-invalid":String(!!e.error),children:[W("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&w("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),w("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"group","aria-labelledby":`${e.id}-label`,children:lt(e.options??[],u=>u.name??u.value,u=>W("label",{"data-ui":"field-option",children:[w("input",{"data-ui":"field-option-input",type:"checkbox",name:u.name??`${e.name}[]`,value:u.value,checked:u.checked===!0,disabled:e.disabled===!0||u.disabled===!0,"aria-invalid":e.error?"true":null,"aria-describedby":l,autocomplete:"off"}),w("span",{children:u.label})]}))}),!!e.help&&w("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&w("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]}):e.type==="radio"?W("div",{"data-ui":"field","data-kind":"radio","data-span":e.span??"half","data-invalid":String(!!e.error),children:[W("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&w("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),w("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"radiogroup","aria-labelledby":`${e.id}-label`,children:lt(e.options??[],u=>u.value,u=>W("label",{"data-ui":"field-option",children:[w("input",{"data-ui":"field-option-input",type:"radio",name:e.name,value:u.value,checked:String(e.value??"")===u.value,required:e.required===!0,disabled:e.disabled===!0||u.disabled===!0,"aria-invalid":e.error?"true":null,"aria-describedby":l,autocomplete:"off"}),w("span",{children:u.label})]}))}),!!e.help&&w("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&w("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]}):W("label",{"data-ui":"field","data-kind":e.type??"text","data-label-hidden":e.labelHidden?"true":null,"data-selection-hidden":e.selectionHidden?"true":null,"data-span":e.span??"half","data-invalid":String(!!e.error),for:e.id,children:[e.type==="checkbox"&&Ve(e,l),g,e.type!=="checkbox"&&Ve(e,l),!!e.help&&w("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&w("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]})};import{each as Ln}from"/_ket/view/index.js";import{jsx as ve,jsxs as dt}from"/_ket/view/jsx-runtime.js";var qt=["breadcrumbs","breadcrumb","breadcrumb-overflow","breadcrumb-overflow-trigger","breadcrumb-overflow-list","nav-list","nav-item","nav-item-leading","nav-item-label","nav-item-count","tabs","tab","tab-count","tabbed-view","tabbed-view-context","tab-panel"];var Nt=e=>dt("a",{"data-ui":"tab","data-active":e.active===!0?"true":null,id:e.elementId,href:e.href,"aria-current":e.active===!0?"page":null,"aria-controls":e.controls,children:[e.label,e.count!==void 0&&ve("span",{"data-ui":"tab-count",children:String(e.count)})]}),Jt=(e,t)=>`${e}-${t.replace(/[^a-zA-Z0-9_-]+/gu,"-")}-tab`,Xt=e=>dt("nav",{"data-ui":"tabs","data-pattern":"tabs","aria-label":e.label,children:[Ln(e.items,t=>t.id,t=>ve(Nt,{...t,elementId:e.id?Jt(e.id,t.id):void 0,controls:e.panelId})),e.extension]}),zt=e=>ve("section",{"data-ui":"tab-panel",id:e.id,"aria-labelledby":e.labelledBy,tabindex:"-1",children:e.body}),st=e=>{let t=`${e.id}-tabs`,a=`${e.id}-panel`,l=e.items.find(g=>g.active===!0);return dt("div",{"data-ui":"tabbed-view",children:[e.context!==void 0&&e.context!==""?ve("div",{"data-ui":"tabbed-view-context",children:e.context}):"",ve(Xt,{id:t,label:e.label,items:e.items,extension:e.extension,panelId:a}),ve(zt,{id:a,labelledBy:l?Jt(t,l.id):void 0,body:e.body})]})};import{jsx as ji,jsxs as er}from"/_ket/view/jsx-runtime.js";var Vt=["progress","progress-label","progress-value","progress-track","progress-bar"];import{each as nr}from"/_ket/view/index.js";import{Fragment as lr,jsx as rr,jsxs as or}from"/_ket/view/jsx-runtime.js";var Gt=["menu","menu-trigger","menu-trigger-count","menu-panel","menu-search","menu-search-input","menu-label","menu-separator","menu-item","menu-item-leading","menu-item-copy","menu-item-check","menu-item-shortcut"];import{jsx as cr,jsxs as ur}from"/_ket/view/jsx-runtime.js";var Ut=["popover","popover-trigger","popover-panel","popover-close"];import{jsx as fr,jsxs as br}from"/_ket/view/jsx-runtime.js";var _t=["tooltip","tooltip-trigger","tooltip-content"];import{jsx as xr}from"/_ket/view/jsx-runtime.js";var Wt=["dialog","confirm-dialog-message"];import{each as Tr}from"/_ket/view/index.js";import{jsx as Rr,jsxs as Cr}from"/_ket/view/jsx-runtime.js";var Zt=["toast-region","toast","toast-copy","toast-title","toast-message","toast-actions"];import{jsx as Mr}from"/_ket/view/jsx-runtime.js";var Yt=["spinner","visually-hidden"];import{each as Hr}from"/_ket/view/index.js";import{jsx as Or}from"/_ket/view/jsx-runtime.js";var Qt=["skeleton","skeleton-line"];import{each as $r,effect as Br,signal as Kr}from"/_ket/view/index.js";import{jsx as Jr,jsxs as Nr}from"/_ket/view/jsx-runtime.js";var jt=["relation-select","relation-native","relation-trigger","relation-value","relation-caret","relation-chips","relation-chip","relation-chip-clear","relation-menu","relation-search","relation-options","relation-option","relation-footer","relation-empty","relation-editor","relation-dialog-toolbar","relation-search-field","relation-search-icon","relation-dialog-list","relation-dialog-row","relation-dialog-main","relation-dialog-meta","relation-dialog-actions"];import{each as Vr,signal as Gr}from"/_ket/view/index.js";import{jsx as _r,jsxs as Wr}from"/_ket/view/jsx-runtime.js";var ea=["lightbox","lightbox-thumbs","lightbox-thumb","lightbox-empty","lightbox-layer","lightbox-backdrop","lightbox-toolbar","lightbox-counter","lightbox-tool","lightbox-stage","lightbox-image","lightbox-nav","lightbox-caption"];import{each as jr,signal as eo}from"/_ket/view/index.js";import{Fragment as io,jsx as no,jsxs as ao}from"/_ket/view/jsx-runtime.js";var ta=["search-filter","search-filter-bar","search-filter-section-toggle","search-filter-sheet","search-filter-clear","search-filter-icon","search-filter-field","search-filter-input","search-filter-facets","search-filter-facet","search-filter-facet-remove","search-filter-suggestions","search-filter-suggestion","search-filter-toggle","search-filter-columns","search-filter-column","search-filter-column-title","search-filter-empty","search-filter-grouping","search-filter-grouping-head","search-filter-grouping-list","search-filter-grouping-item","search-filter-grouping-order","search-filter-grouping-label","search-filter-grouping-actions","search-filter-grouping-action","search-filter-grouping-clear","search-filter-grouping-add-label","custom-filter","custom-filter-row","custom-filter-add","custom-group-by","favorite-list","favorite-item","favorite-item-default","favorite-item-remove","favorite-save","favorite-save-toggle","favorite-save-row"];import{each as uo,effect as mo,signal as go}from"/_ket/view/index.js";import{jsx as lo}from"/_ket/view/jsx-runtime.js";var aa=["formatted-date","formatted-number","formatted-money"];import{Fragment as yo,jsx as vo,jsxs as xo}from"/_ket/view/jsx-runtime.js";var ia=["ket-table","kt-scroll","kt-selection-target","kt-grid","kt-select-col","kt-select-all","kt-col","kt-sort-button","kt-sort-icon","kt-row","kt-cell","kt-person","kt-select-cell","kt-row-select","kt-row-link","kt-group-row","kt-group-cell","kt-group-toggle","kt-group-indent","kt-group-count","kt-group-pager","kt-pager","kt-pager-label","kt-pager-button","kt-select-persisted","kt-caption","kt-tools"];var Io=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","summary",'[tabindex]:not([tabindex="-1"])'].join(",");var Dn=['[data-ui="timeframe-menu"]','[data-ui="view-settings"]'],Ao=Dn.map(e=>`${e}[open]`).join(", ");import{jsx as Ko,jsxs as qo}from"/_ket/view/jsx-runtime.js";import{jsx as Vo,jsxs as Go}from"/_ket/view/jsx-runtime.js";var ra=["switch-control","switch-track"];import{each as Wo}from"/_ket/view/index.js";import{Fragment as el,jsx as Qo,jsxs as jo}from"/_ket/view/jsx-runtime.js";var oa=["combobox","combobox-input-row","combobox-toggle","combobox-listbox","combobox-option","combobox-empty","tag-picker"];import{Fragment as cl,jsx as sl,jsxs as dl}from"/_ket/view/jsx-runtime.js";var la=["date-picker","date-range","date-inputs","date-control-row","date-tools","date-range-error","date-calendar","date-calendar-head","date-calendar-title","date-calendar-body","date-field-control","date-range-preset","date-boundary","date-calendar-months","date-month","date-month-title","date-grid","date-weekday","date-cell","date-day","date-calendar-footer","date-calendar-status"];import{jsx as fl,jsxs as bl}from"/_ket/view/jsx-runtime.js";var sa=["file-upload","drop-zone","upload-status"];import{jsx as vl}from"/_ket/view/jsx-runtime.js";var da=["relation-picker"];import{each as kl}from"/_ket/view/index.js";import{jsx as Cl,jsxs as Ll}from"/_ket/view/jsx-runtime.js";var ca=["search-bar","filter-bar","applied-filters","applied-filter","saved-views","saved-view","view-settings","view-settings-options"];import{jsx as Fl,jsxs as Hl}from"/_ket/view/jsx-runtime.js";var ua=["inline-edit","inline-edit-value","inline-edit-form","inline-edit-actions"];import{each as Vl}from"/_ket/view/index.js";import{each as $l}from"/_ket/view/index.js";import{Fragment as Jl,jsx as ql,jsxs as Nl}from"/_ket/view/jsx-runtime.js";var ma=["list-chrome","list-chrome-row","list-search","list-search-label","list-search-input","list-search-submit","list-filter-menus","list-facets","list-facet","list-facet-count","list-view-switch","list-view","list-sort","list-sort-label","list-sort-select","list-status","list-actions","bulk-actions","bulk-summary","bulk-count","bulk-action-list","pager-bar","pager-summary","pager-pages","pager-page","pager-actions","pager-link"];import{jsx as Wl,jsxs as Zl}from"/_ket/view/jsx-runtime.js";var ga=["resource-list","resource-list-item","resource-list-select","resource-list-link"];import{each as jl}from"/_ket/view/index.js";import{jsx as ts,jsxs as as}from"/_ket/view/jsx-runtime.js";var fa=["data-grid-scroll","data-grid","data-grid-cap","data-grid-cell"];import{each as rs}from"/_ket/view/index.js";import{jsx as ls,jsxs as ss}from"/_ket/view/jsx-runtime.js";var ba=["tree","tree-item","tree-link","tree-grid","tree-grid-row"];import{each as us}from"/_ket/view/index.js";import{jsx as gs,jsxs as fs}from"/_ket/view/jsx-runtime.js";var pa=["data-matrix","data-matrix-head","data-matrix-heading","data-matrix-eyebrow","data-matrix-title","data-matrix-description","data-matrix-summary","data-matrix-scroll","data-matrix-table","data-matrix-column","data-matrix-row-head","data-matrix-row-leading","data-matrix-row-title","data-matrix-row-description","data-matrix-row-status","data-matrix-row-actions","data-matrix-cell"];import{each as hs}from"/_ket/view/index.js";import{jsx as vs,jsxs as xs}from"/_ket/view/jsx-runtime.js";var ha=["bar-chart","bar-chart-rows","bar-chart-row","bar-chart-label","bar-chart-caption","bar-chart-track","bar-chart-fill","bar-chart-segment","bar-chart-value","bar-chart-scale","bar-chart-legend","bar-chart-legend-item","bar-chart-legend-swatch","bar-chart-empty"];import{each as Ts}from"/_ket/view/index.js";import{jsx as Rs,jsxs as Cs}from"/_ket/view/jsx-runtime.js";var ya=["timeframe","timeframe-menu","timeframe-trigger","timeframe-label","timeframe-value","timeframe-content","timeframe-option","timeframe-option-label","timeframe-option-detail","timeframe-range","timeframe-asof","timeframe-note"];import{each as Bn}from"/_ket/view/index.js";import{jsx as Ge,jsxs as Kn}from"/_ket/view/jsx-runtime.js";var va=["description-list","key-value","key-value-label","key-value-value","person","person-body","avatar-group","status"],xa=e=>Kn("div",{"data-ui":"key-value",children:[Ge("dt",{"data-ui":"key-value-label",children:e.label}),Ge("dd",{"data-ui":"key-value-value",children:e.value??e.emptyLabel??"\u2014"})]}),Ue=e=>Ge("dl",{"data-ui":"description-list","aria-label":e.label,"data-columns":String(e.columns??2),"data-layout":e.layout==="strip"?"strip":null,children:Bn(e.items,t=>t.id,t=>Ge(xa,{...t}))});import{each as Ds}from"/_ket/view/index.js";import{jsx as Bs,jsxs as Ks}from"/_ket/view/jsx-runtime.js";var ka=["record-summary","record-summary-main","record-actions","record-rail"];import{each as Js}from"/_ket/view/index.js";import{jsx as Gs,jsxs as Us}from"/_ket/view/jsx-runtime.js";var Ta=["activity-timeline","activity-item","activity-marker","audit-log","audit-item"];import{each as Zs}from"/_ket/view/index.js";import{jsx as js,jsxs as ed}from"/_ket/view/jsx-runtime.js";var wa=["attachments","attachment","media-gallery","media-item"];import{each as nd}from"/_ket/view/index.js";import{Fragment as ld,jsx as rd,jsxs as od}from"/_ket/view/jsx-runtime.js";var Ra=["app-navigation","navigation-trigger","navigation-toggle","navigation-trigger-icon","navigation-trigger-identity","navigation-trigger-label","navigation-layer","navigation-backdrop","navigation-drawer","navigation-header","navigation-identity","navigation-context","navigation-close","navigation-groups","navigation-group","navigation-group-label","navigation-items","navigation-supplementary","navigation-item","navigation-branch","navigation-branch-trigger","navigation-children","navigation-item-leading","navigation-item-copy","navigation-item-label","navigation-item-description","navigation-item-count","navigation-footer"];import{each as xe}from"/_ket/view/index.js";import{Fragment as Fa,jsx as x,jsxs as ee}from"/_ket/view/jsx-runtime.js";var Ca=["table-scroll","table","table-caption","select-col","select-all","col","sort-link","sort-icon","row","group-row","group-cell","group-link","group-indent","group-count","group-pager","group-pager-actions","cell","select-cell","row-select","row-link"],Nn=e=>e.shownColumns??e.columns.filter(t=>t.hidden!==!0).map(t=>t.key),Jn=e=>{let t=new Set(Nn(e));return e.columns.filter(a=>t.has(a.key))},La=(e,t)=>t.length+(e.selection?1:0),Xn=(e,t)=>e.sort?.direction?e.sort.direction==="ascending"?t?.sortedAscending??"Sorted ascending":t?.sortedDescending??"Sorted descending":null,zn=(e,t)=>x("th",{"data-ui":"col","data-col":e.key,"data-align":e.align??"start","data-kind":e.kind??"text","data-width":e.width??null,"data-optional":e.optional===!0?"true":null,"data-sort":e.sort?.direction??null,"aria-sort":e.sort?.direction??null,scope:"col",children:e.sort?ee("a",{"data-ui":"sort-link",href:e.sort.href,"aria-label":e.sort.label??e.label,children:[x("span",{children:e.label}),!!e.sort.direction&&x("span",{"data-ui":"sort-icon","aria-hidden":"true",title:Xn(e,t)??void 0,children:e.sort.direction==="ascending"?"\u2191":"\u2193"})]}):e.label}),Vn=e=>e.selection?x("th",{"data-ui":"select-col",scope:"col",children:x("input",{"data-ui":"select-all",type:"checkbox",name:e.selection.selectAllName??"select-all","aria-label":e.labels?.selectAll??"Select all rows",disabled:e.selection.disabled===!0})}):null,Pa=(e,t)=>e.selected?.(t)===!0?!0:e.selection?.selectedIds?.includes(e.id(t))===!0,Gn=(e,t,a)=>ee(Fa,{children:[e.selection&&x("td",{"data-ui":"select-cell",children:x("input",{"data-ui":"row-select",type:"checkbox",name:e.selection.name??"ids",form:e.selection.form,value:e.id(a),checked:Pa(e,a),"aria-label":e.labels?.selectRow?.(a,e.id(a))??`Select row ${e.id(a)}`,disabled:e.selection.disabled===!0})}),xe(t,l=>l.key,l=>x("td",{"data-ui":"cell","data-col":l.key,"data-linked":e.rowHref&&l===t[0]?"true":null,"data-align":l.align??"start","data-kind":l.kind??"text","data-priority":l.priority??"secondary","data-label":e.responsive==="stack"?l.label:null,children:e.rowHref&&l===t[0]?x("a",{"data-ui":"row-link",href:e.rowHref(a),children:l.cell(a)}):l.cell(a)}))]}),Ma=(e,t,a)=>x("tr",{"data-ui":"row","data-row":e.id(a),"data-selected":Pa(e,a)?"true":null,children:Gn(e,t,a)}),Un=(e,t,a)=>a?x("tr",{"data-ui":"group-pager",children:ee("td",{colSpan:String(La(e,t)),children:[x("span",{children:a.label}),ee("span",{"data-ui":"group-pager-actions",children:[a.previousHref&&x("a",{href:a.previousHref,"aria-label":e.labels?.previousPage??"Previous page",children:"\u2039"}),a.nextHref&&x("a",{href:a.nextHref,"aria-label":e.labels?.nextPage??"Next page",children:"\u203A"})]})]})}):null,Ea=(e,t,a,l)=>ee(Fa,{children:[x("tr",{"data-ui":"group-row","data-group":a.id,"data-depth":String(l),children:ee("th",{"data-ui":"group-cell",colSpan:String(La(e,t)),scope:"rowgroup",children:[x("span",{"data-ui":"group-indent",style:`--kv-group-depth: ${l}`,"aria-hidden":"true"}),a.href?x("a",{"data-ui":"group-link",href:a.href,children:a.label}):x("span",{"data-ui":"group-link",children:a.label}),a.count!==void 0&&x("span",{"data-ui":"group-count",children:String(a.count)})]})}),xe(a.rows??[],e.id,g=>Ma(e,t,g)),xe(a.children??[],g=>g.id,g=>Ea(e,t,g,l+1)),Un(e,t,a.pager)]}),_e=e=>{let t=Jn(e),a=e.groups??[],g=e.rows.length>0||a.length>0?x("div",{"data-ui":"table-scroll","data-pattern":"data-table","data-framed":e.title?"false":null,"data-responsive":e.responsive??"scroll","data-gutter":e.gutter==="compact"?"compact":null,children:ee("table",{"data-ui":"table","aria-label":e.caption?null:e.title??null,children:[!!e.caption&&x("caption",{"data-ui":"table-caption",children:e.caption}),x("thead",{children:ee("tr",{children:[Vn(e),xe(t,u=>u.key,u=>zn(u,e.labels))]})}),x("tbody",{children:a.length>0?xe(a,u=>u.id,u=>Ea(e,t,u,0)):xe(e.rows,e.id,u=>Ma(e,t,u))})]})}):x(re,{title:e.emptyTitle??"No records",message:e.emptyMessage??"There is nothing to show yet.",actions:e.emptyActions});return e.title?x(rt,{title:e.title,actions:e.actions,padding:"none",body:g}):g};import{Fragment as Td,jsx as kd,jsxs as wd}from"/_ket/view/jsx-runtime.js";var Ha=["list-page","list-page-context","list-page-header","list-page-heading","list-page-title-row","list-page-eyebrow","list-page-title","list-page-description","list-page-actions","list-page-tools","list-page-toolbar","list-page-controls","list-page-status","list-page-body","list-page-footer"];import{jsx as Pd,jsxs as Md}from"/_ket/view/jsx-runtime.js";var Da=["record-page","record-page-context","record-page-header","record-page-title-row","record-page-heading","record-page-title","record-page-subline","record-page-status","record-page-actions","record-page-meta","record-page-controller","record-page-navigation","record-page-layout","record-page-body","record-page-aside"];var Oa=["form-page","form-page-context","form-page-header","form-page-title-row","form-page-heading","form-page-title","form-page-subline","form-page-status","form-page-actions","form-page-meta","form-page-controller","form-page-navigation","form-page-layout","form-page-body","form-page-aside"];import{jsx as Bd,jsxs as Kd}from"/_ket/view/jsx-runtime.js";var Ia=["dashboard-page","dashboard-page-context","dashboard-page-header","dashboard-page-heading","dashboard-page-eyebrow","dashboard-page-title-row","dashboard-page-title","dashboard-page-subline","dashboard-page-status","dashboard-page-actions","dashboard-page-meta","dashboard-page-body"];var Aa=["board-page","board-page-context","board-page-header","board-page-heading","board-page-eyebrow","board-page-title-row","board-page-title","board-page-subline","board-page-status","board-page-actions","board-page-meta","board-page-toolbar","board-page-controls","board-page-body"];import{each as _d}from"/_ket/view/index.js";import{jsx as Zd,jsxs as Yd}from"/_ket/view/jsx-runtime.js";var $a=["pipeline","pipeline-step","pipeline-arrow","pipeline-step-label","pipeline-step-value","pipeline-step-node"];import{each as ac}from"/_ket/view/index.js";import{jsx as oc,jsxs as lc}from"/_ket/view/jsx-runtime.js";var Ba=["record-form","form-errors","form-grid","form-actions"];import{each as bc}from"/_ket/view/index.js";import{jsx as vc,jsxs as xc}from"/_ket/view/jsx-runtime.js";var Ka=["reorder-list","reorder-list-value","reorder-list-rows","reorder-list-row","reorder-list-content","reorder-list-controls"];var qa={actions:Mt,feedback:Ht,fields:Bt,status:Ft,navigation:qt,progress:Vt,menu:Gt,reorderList:Ka,popover:Ut,tooltip:_t,dialog:Wt,toast:Zt,spinner:Yt,skeleton:Qt,lightbox:ea,relationSelect:jt,searchFilter:ta,ketTable:ia,scalarFields:ra,combobox:oa,dateTime:la,upload:sa,relationPicker:da,listControls:ca,inlineEdit:ua,resourceList:ga,dataGrid:fa,tree:ba,matrix:pa,barChart:ha,timeframe:ya,recordDisplay:va,formattedValues:aa,recordComposition:ka,activity:Ta,media:wa,layouts:$t,shell:It,appNavigation:Ra,table:Ca,listChrome:ma,listPage:Ha,formPage:Oa,recordPage:Da,dashboardPage:Ia,boardPage:Aa,modal:Dt,pipeline:$a,form:Ba},Wn=[...new Set(Object.values(qa).flat())].sort(),Zn=Object.freeze(Object.fromEntries(Object.entries(qa).map(([e,t])=>[e,[...t]])));import{signal as F}from"/_ket/view/index.js";import{jsx as Qn}from"/_ket/view/jsx-runtime.js";var We="record";var Fe="recordDialog";var Yn=/^[a-z][a-z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)+$/u,Na=e=>Yn.test(e),He=(e,t)=>{if(!Na(t.kind))throw new TypeError(`invalid record kind "${t.kind}"`);let a=new URL(String(e),"http://ket.local");return a.searchParams.set(We,`${t.kind}:${t.id}`),t.tab?a.searchParams.set("tab",t.tab):a.searchParams.delete("tab"),t.dialog?a.searchParams.set(Fe,t.dialog):a.searchParams.delete(Fe),`${a.pathname}${a.search}`};var Ja=e=>{let t=new URL(String(e),"http://ket.local");return t.searchParams.delete(We),t.searchParams.delete("tab"),t.searchParams.delete(Fe),`${t.pathname}${t.search}`},Se=e=>{let t=new URL(String(e),"http://ket.local"),a=t.searchParams.get(We)??"",l=a.indexOf(":");if(l<=0||l===a.length-1)return null;let g=a.slice(0,l);return Na(g)?{kind:g,id:a.slice(l+1),tab:t.searchParams.get("tab"),...t.searchParams.get(Fe)?{dialog:t.searchParams.get(Fe)}:{}}:null},gt=e=>Qn("span",{"data-ui":"record-modal-host","data-record-kind":e,hidden:!0});import{jsx as de,jsxs as Xa}from"/_ket/view/jsx-runtime.js";var ce=e=>Xa("form",{"data-ui":"record-form",method:"post",action:"","data-record-kind":e.kind,"data-record-dropzone":e.dropzone?"":null,id:e.id,"data-record-dirty":e.dirty===!0?"true":null,children:[e.command?de("input",{type:"hidden",name:ke,value:e.command,autocomplete:"off"}):"",Object.entries(e.hidden??{}).map(([t,a])=>de("input",{type:"hidden",name:t,value:a,autocomplete:"off"})),e.fields.length?de("div",{"data-ui":"form-grid",children:e.fields.map(t=>se(t))}):null,e.body,e.actions?.length?de("div",{"data-ui":"form-actions",children:_({actions:e.actions})}):""]});var De=e=>de("span",{"data-record-dialog":e.dialog,"data-record-param-id":e.id??null,children:e.children});var ft=e=>Xa("form",{"data-ui":"record-form","data-layout":"actions",method:"post",action:"","data-record-kind":e.kind,children:[de("input",{type:"hidden",name:ke,value:e.command,autocomplete:"off"}),Object.entries(e.hidden??{}).map(([t,a])=>de("input",{type:"hidden",name:t,value:a,autocomplete:"off"})),e.children]});import{Fragment as Oe,jsx as Mf,jsxs as Ie}from"/_ket/view/jsx-runtime.js";var Va=e=>{let t=e??{};return(Array.isArray(t.errors)?t.errors:Array.isArray(t.issues)?t.issues:[]).map(l=>{let g=l??{},u=Array.isArray(g.path)?g.path.join("."):null;return{field:typeof g.field=="string"?g.field:u,code:String(g.code??"invalid"),message:typeof g.message=="string"?g.message:null,params:g.params&&typeof g.params=="object"?g.params:{}}})},ja=async(e,t,a={})=>{let l=new URL(e,"https://record.invalid");if(l.origin!=="https://record.invalid"||!e.startsWith("/")||e.startsWith("//"))throw new Error("Record commands require a same-origin route");let g=await fetch(l.pathname+l.search,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json",...a.idempotencyKey?{"idempotency-key":a.idempotencyKey}:{}},body:JSON.stringify(t),signal:a.signal}),u=await g.json().catch(()=>({}));if(!g.ok||u.ok===!1)return{ok:!1,issues:Va(u.error??u),message:g.status>=500?null:u.error?.message??u.message??null,status:g.status};let L=u.value;return L&&typeof L=="object"&&L.ok===!1?{ok:!1,issues:Va(L),message:null,status:g.status}:{ok:!0,value:u.value}},Ga=(e,t,a={})=>ja(`/_ket/fn/${encodeURIComponent(e)}`,t,a),jn=async(e,t)=>{let a=new URL(e,location.href);if(a.origin!==location.origin)throw new Error("Record context must stay same-origin");let l=await fetch(a.href,{credentials:"same-origin",signal:t,headers:{accept:"application/json"}});return l.ok?{ok:!0,value:await l.json()}:{ok:!1,issues:[],message:null,status:l.status}},ei=30,ti=Object.freeze({"recordModal.close":"Close","recordModal.loading":"Loading\u2026","recordModal.loadFailed":"The record could not be read.","recordModal.notFound":"The record is gone or you cannot see it.","recordModal.retry":"Retry","recordModal.errorTitle":"Not saved","recordModal.saveFailed":"That did not work. Try again.","recordModal.savedTitle":"Saved","recordModal.saved":"The change is in.","recordModal.unsaved":"Discard what you typed?","recordModal.uploadFailed":"The file could not be uploaded. Try again."}),Ye=(e,t)=>t.messages?.[e]??t.previous?.[e]??t.labels?.[e]??ti[e]??(/^E_[A-Z_]+$/u.test(e)?Ye("recordModal.saveFailed",t):e),ai=(e,t)=>{let a=Ye(e,t);return a===e?Ye("recordModal.saveFailed",t):a},ke="__command",Ua="data-record-dialog",_a=(e,t={})=>e.replace(/\{([a-zA-Z0-9_]+)\}/gu,(a,l)=>l in t?String(t[l]??""):a),en=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].join(", "),Wa=e=>[...e.querySelectorAll(en)].filter(t=>!t.hidden&&t.getAttribute("aria-hidden")!=="true"&&!t.matches('[data-ui="modal-backdrop"]'));var ni=e=>{let t=[],a=e;for(;a&&a!==document.body;){let l=a.parentElement;if(!l)break;for(let g of l.children)g instanceof HTMLElement&&g!==a&&!g.matches("script, style, template")&&(t.push({element:g,inert:g.inert}),g.inert=!0);a=l}return()=>{for(let{element:l,inert:g}of t)l.inert=g}},Za=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`,ii=e=>Object.entries(e.values).some(([t,a])=>a!==e.initialValues[t])||Object.entries(e.checks).some(([t,a])=>a!==e.initialChecks[t]),Ya=(e,t)=>{let a=l=>Object.fromEntries(Object.entries(l).filter(([g])=>!t.includes(g)));return{values:a(e.values),checks:a(e.checks),initialValues:a(e.initialValues),initialChecks:a(e.initialChecks)}},H=()=>({values:{},checks:{},initialValues:{},initialChecks:{}}),Qa=(e,t)=>`${e}\0${t}`,Ze="__all:",bt=e=>e.after??"close",ri=400,oi=(e,t=ri)=>{let a,l=()=>{clearTimeout(a),a=void 0};return{set:g=>{if(l(),!g){e(!1);return}a=setTimeout(()=>e(!0),t)},stop:l}},li='a, button, input, select, textarea, label, summary, details, [data-ui="select-cell"]',si=e=>{let t=e?.closest("a[href]");return t?t.target&&t.target!=="_self"?null:t.href:e?.closest(li)?null:e?.closest("[data-row-href]")?.getAttribute("data-row-href")??null},tn=e=>()=>{let t=F(null),a=F("idle"),l=F(null),g=F(null),u=F([]),L=F(H()),M=F(H()),vt=F(!1),xt=F(!1),St=oi(r=>xt.set(r)),ue=F(!1),kt=r=>{vt.set(r),St.set(r),r&&ue.set(!1)},R=F(null),Te=F(0),we=F({}),I=F({}),X=F(null),q=new Map,ln=(r,d)=>{for(q.delete(r),q.set(r,d);q.size>ei;)q.delete(q.keys().next().value)},E=null,Ke=null,qe=!1,je=null,N=null,me=null,Re=null,sn=()=>typeof e.labels=="function"?e.labels():e.labels??{},Tt=()=>({messages:l()?.messages,previous:Re,labels:sn()}),z=(r,d)=>_a(Ye(r,Tt()),d),wt=r=>r.message??_a(ai(r.code,Tt()),r.params),Rt=r=>[...e.tabs??[],...e.extensionTabs?.(r)??[]].filter(d=>d.visible?.(r)??!0),Ne=(r,d,c="record")=>{let s=()=>c==="dialog"?M():L(),o={kind:e.kind,id:r.id,creating:r.id==="new",tab:r.tab,data:d,t:z,fieldError:f=>{let n=u().find(i=>i.field===f);return n?wt(n):null},draft:(f,n="")=>{let i=s();return i.initialValues[f]??=n,i.values[f]??n},recordDraft:(f,n="")=>L().values[f]??n,draftChecked:(f,n="1",i=!1)=>{let m=s(),p=Qa(f,n);return m.initialChecks[p]??=i,m.checks[p]??i},outcome:f=>{let n=X();return n?.command===f?n.value:null},busy:xt(),dialog:R(),href:f=>He(location.href,{kind:e.kind,id:r.id,tab:f}),state:(f,n="")=>(c==="dialog"?I()[f]:void 0)??we()[f]??n},v=Rt(o);return v.length&&!v.some(f=>f.id===r.tab)&&(o.tab=v[0].id),o},Ce=null,te=async(r,d=!1)=>{Ke?.abort();let c=new AbortController;Ke=c;let s=e.cache===!1?void 0:q.get(r);s&&(Re=s.messages??Re,l.set(s),a.set("ready"),d=!0),d||a.set("loading"),g.set(null);try{let o=r==="new",v="route"in e.context?await jn(e.context.route(r,o),c.signal):await Ga(e.context.fn,e.context.input?e.context.input(r,o):o?{}:{id:r},{signal:c.signal});if(c.signal.aborted)return;if(!v.ok||!v.value){g.set(v.ok?"recordModal.notFound":v.message??"recordModal.loadFailed"),a.set("error");return}Re=v.value.messages??Re,e.cache!==!1&&ln(r,v.value),l.set(v.value),a.set("ready"),Ce&&e.dialogs?.[Ce]&&(R.set({name:Ce,params:{}}),pe()),Ce=null}catch(o){if(c.signal.aborted||o?.name==="AbortError")return;g.set("recordModal.loadFailed"),a.set("error")}},Je=()=>E?[...E.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]')]:[],ge=()=>Je()[0]??null,et=()=>Je().at(-1)??null,fe=0,be=()=>{if(e.fixedHeight||a()!=="ready")return;let r=ge()?.querySelector('[data-ui="modal-sheet"][data-height="fixed"]');if(!r)return;if(window.matchMedia("(max-width: 47.9375rem)").matches){r.style.setProperty("height","100dvh","important"),r.style.removeProperty("min-height");return}let d=r.querySelector('[data-ui="tabbed-view"]');if(!d)return;let c=d.querySelector('[data-ui="tab-panel"]'),s=c?.scrollTop??0;r.style.setProperty("height","auto","important"),r.style.setProperty("min-height","0"),d.style.setProperty("height","auto"),fe=Math.max(fe,Math.ceil(r.getBoundingClientRect().height)),d.style.removeProperty("height");let o=getComputedStyle(r).maxHeight;r.style.setProperty("min-height",o==="none"?`${fe}px`:`min(${fe}px, ${o})`),c&&(c.scrollTop=s)},ae=(r,d)=>{if(!r)return;let c=d==="dialog"?M():L(),s={values:{...c.values},checks:{...c.checks},initialValues:{...c.initialValues},initialChecks:{...c.initialChecks}};for(let o of r.querySelectorAll("input[name], select[name], textarea[name]"))if(!(o.disabled||o.name===ke)){if(o instanceof HTMLInputElement){if(o.type==="file"||o.type==="hidden")continue;if(o.type==="checkbox"||o.type==="radio"){let v=Qa(o.name,o.value);s.initialChecks[v]??=o.defaultChecked,s.checks[v]=o.checked,o.type==="checkbox"?s.values[o.name]=o.checked?o.value:"":o.checked&&(s.values[o.name]=o.value),s.initialValues[o.name]=s.values[o.name]??"";continue}}s.initialValues[o.name]??=o instanceof HTMLSelectElement?[...o.options].find(v=>v.defaultSelected)?.value??o.options[0]?.value??"":o.defaultValue,s.values[o.name]=o.value}d==="dialog"?M.set(s):L.set(s)},Xe=()=>{let r=Je();ae(r[0]??null,"record"),r.length>1&&ae(r.at(-1)??null,"dialog")},Ct=r=>{if(!r)return!0;let d=R()&&r===et()?"dialog":"record";ae(r,d);let c=d==="dialog"?M():L(),s=[...r.querySelectorAll('input[type="file"]')].some(o=>!o.disabled&&!!o.files?.length);return!ii(c)&&!s?!0:globalThis.confirm(z("recordModal.unsaved"))},pe=r=>{requestAnimationFrame(()=>{let d=Je(),c=d[0],s=d.at(-1);if(!s)return;c&&(c.inert=d.length>1);let o=r?.();if(o?.isConnected&&s.contains(o)){o.focus();return}if(s.contains(document.activeElement))return;let v=s.querySelector('[data-ui="modal-sheet"]');(Wa(s).find(n=>!n.matches('[data-ui="modal-close"]'))??v)?.focus()})},Z=(r,d,c,s,o)=>{let v=t(),f=v?.id===r,n=d??(f?v.tab:"");f||(fe=0,Ce=o??null,je=document.activeElement instanceof HTMLElement?document.activeElement:null,u.set([]),ue.set(!1),L.set(H()),M.set(H()),I.set({}),we.set({}),X.set(null),R.set(null),N=null,l.set(null),te(r)),f&&o&&e.dialogs?.[o]&&(Xe(),M.set(H()),I.set({}),R.set({name:o,params:{}})),t.set({id:r,tab:n});let i=He(location.href,{kind:e.kind,id:r,tab:n||null,dialog:o});c==="push"?(history.replaceState({...history.state??{},__ketScroll:[window.scrollX,window.scrollY]},"",location.href),history.pushState({...history.state??{},__ketRecordModal:e.kind},"",i),qe=!0):c==="replace"&&history.replaceState(history.state??{},"",i),E&&!me&&(me=ni(E)),pe(s)},Le=r=>{Ke?.abort(),t.set(null),fe=0,R.set(null),u.set([]),ue.set(!1),L.set(H()),M.set(H()),I.set({}),we.set({}),X.set(null),a.set("idle"),l.set(null),me?.(),me=null,r==="history"&&qe?(qe=!1,history.back()):r!=="none"&&(qe=!1,history.replaceState(history.state??{},"",Ja(location.href)));let d=je;je=null,N=null,d?.isConnected&&requestAnimationFrame(()=>d.focus())},Lt=()=>{if(R()){if(!Ct(et()))return;let r=N;N=null,R.set(null);let d=t();d&&history.replaceState(history.state??{},"",He(location.href,{kind:e.kind,id:d.id,tab:d.tab})),M.set(H()),I.set({}),u.set([]),X.set(null),pe(()=>r?.isConnected?r:null);return}Ct(ge())&&Le("history")},dn=async(r,d,c)=>{let s=e.commands?.[r],o=t(),v=l()?.data;if(!s||!o||v===void 0||vt())return;let f=new FormData(d,c instanceof HTMLButtonElement?c:null),n=d.closest('[data-ui="modal-layer"][data-client-modal="true"]'),i=R()&&n===et()?"dialog":"record";ae(n,i);let m=Ne(o,v,i);if(s.confirm){let p=s.confirm(m);if(p&&!globalThis.confirm(p))return}kt(!0),u.set([]);try{let p={};for(let[b,$]of Object.entries(s.upload??{})){let D=f.get(b);if(!(D instanceof File)||D.size===0)continue;let G=new FormData;for(let[tt,mn]of Object.entries($(f,m)))G.append(tt,mn);G.append("file",D,D.name);let U=await fetch("/files",{method:"POST",credentials:"same-origin",body:G}),O=await U.json().catch(()=>null);if(!U.ok||!O?.id){u.set([{field:null,code:"recordModal.uploadFailed",message:typeof O?.message=="string"?O.message:null,params:{}}]);return}p[b]={id:String(O.id),name:typeof O.name=="string"?O.name:null}}let T=(b,$)=>Ga(b,$,{idempotencyKey:Za()}),h=s.route?await ja(s.route,s.input(f,m,p),{idempotencyKey:Za()}):await T(s.fn,s.input(f,m,p));for(let b of h.ok?s.also??[]:[])if(!(b.when&&!b.when(m))&&(h=await T(b.fn,b.input(f,m,p)),!h.ok))break;if(!h.ok){X.set(null),u.set(h.issues.length?h.issues.map(b=>({...b,field:b.field&&s.issueField?s.issueField(b.field,f,m):b.field})):[{field:null,code:h.message??"recordModal.saveFailed",message:h.message,params:{}}]);return}if(s.preview){X.set({command:r,value:h.value}),Te.set(Te()+1);return}i==="dialog"?(M.set(H()),I.set({})):L.set(H()),s.clearRecordDrafts?.length&&L.set(Ya(L(),s.clearRecordDrafts)),X.set(bt(s)==="stay"?{command:r,value:h.value}:null),d.reset();let V=h.value,Y=bt(s)==="open"?s.created?.(h.value)??(V&&typeof V=="object"&&V.id!=null?String(V.id):null):null;q.delete(o.id),Y&&q.delete(Y);let ne=()=>{document.dispatchEvent(new CustomEvent("ket:records-changed",{detail:{kind:e.kind,ids:[Y??o.id]}}))};if(s.navigate){let b=new URL(s.navigate(h.value,m),location.href);if(b.origin!==location.origin)throw new Error("Record navigation must stay same-origin");Le("none"),location.assign(b.href);return}let A=bt(s);if(A!=="close"&&ue.set(!0),A==="open"){R.set(null),M.set(H()),I.set({}),Y?Z(Y,s.openTab??null,"replace"):Le("history"),ne();return}if(ne(),A==="close")Le("history");else if(A==="reload"){let b=N;N=null,R.set(null),M.set(H()),I.set({}),history.replaceState(history.state??{},"",He(location.href,{kind:e.kind,id:o.id,tab:o.tab})),await te(o.id),pe(()=>b?.isConnected?b:null)}else if(A==="refresh")await te(o.id,!0);else if(A==="stay")Te.set(Te()+1);else if("tab"in A)N=null,R.set(null),M.set(H()),I.set({}),Z(o.id,A.tab,"replace"),await te(o.id);else{let b=A.dialog?null:N;N=A.dialog&&c instanceof HTMLElement?c:null,R.set(A.dialog?{name:A.dialog,params:{}}:null),M.set(H()),I.set({}),await te(o.id,!0),pe(()=>b?.isConnected?b:null)}}catch{u.set([{field:null,code:"recordModal.saveFailed",message:null,params:{}}])}finally{kt(!1)}},Pt=r=>{let d=u().filter(o=>!o.field),c=u().filter(o=>o.field&&!E?.querySelector(`[name="${CSS.escape(o.field)}"]`)),s=[...d,...c];return s.length?j({title:r.t("recordModal.errorTitle"),message:s.map(wt).join(" \xB7 "),tone:"danger"}):ue()?j({title:r.t("recordModal.savedTitle"),message:r.t("recordModal.saved"),tone:"positive"}):""},cn=()=>{let r=t();if(!r)return"";if(a()==="error")return Ie(Oe,{children:[j({title:z("recordModal.errorTitle"),message:z(g()??"recordModal.loadFailed"),tone:"danger"}),C({label:z("recordModal.retry"),variant:"secondary",name:"intent",value:"retry"})]});let d=l()?.data;if(a()!=="ready"||d===void 0)return he({label:z("recordModal.loading")});let c=Ne(r,d),s=Rt(c),o=s.find(i=>i.id===c.tab),v=e.header?.(c)??"",f=Pt(c),n=o?o.view(c):e.body?.(c)??"";return s.length?st({id:`record-view-${e.kind.replaceAll(".","-")}`,label:e.title(c),items:s.map(i=>({id:i.id,label:i.label(c),href:c.href(i.id),active:i.id===c.tab})),context:v!==""||f!==""?Ie(Oe,{children:[v,f]}):void 0,body:n}):Ie(Oe,{children:[v,f,n]})},un=()=>{let r=t(),d=R(),c=l()?.data;if(!r||!d||c===void 0)return"";let s=e.dialogs?.[d.name];if(!s)return"";let o=Ne(r,c,"dialog");return oe({id:`record-dialog-${e.kind.replaceAll(".","-")}-${d.name}`,mode:"client",presentation:"dialog",size:s.size??"default",title:s.title(o),description:s.description?.(o),actions:s.actions?.(o),closeLabel:z("recordModal.close"),body:Ie(Oe,{children:[Pt(o),s.view(o)]})})};return{view:()=>{Te();let r=t();if(!r)return gt(e.kind);let d=l()?.data,c=d===void 0?null:Ne(r,d);return Ie(Oe,{children:[gt(e.kind),oe({id:`record-modal-${e.kind.replaceAll(".","-")}`,mode:"client",presentation:"dialog",size:e.size??"default",height:(e.tabs?.length??0)+(e.extensionTabs?1:0)>1?"fixed":"content",fixedHeight:e.fixedHeight??"auto",title:c?e.title(c):z("recordModal.loading"),description:c?e.description?.(c)??null:null,status:c?e.status?.(c):void 0,actions:c?e.actions?.(c):void 0,closeLabel:z("recordModal.close"),body:cn()}),un()]})},mount:({root:r,lifetime:d})=>{E=r,document.addEventListener("click",n=>{if(n.defaultPrevented||n.button!==0||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey)return;let i=n.target instanceof Element?n.target:null,m=i?.closest('[data-ui="modal-layer"][data-client-modal="true"]');if(m&&E?.contains(m)){if(i?.closest('[data-ui="modal-close"], [data-ui="modal-backdrop"], [data-record-close]')){n.preventDefault(),Lt();return}let b=i?.closest("button[data-record-state], a[data-record-state], [data-record-state-trigger]");if(b){n.preventDefault(),Xe();let D=b.getAttribute("data-record-reset-fields");if(D){let U=JSON.parse(D);if(Array.isArray(U)&&U.every(O=>typeof O=="string")){let O=R()?M:L;O.set(Ya(O(),U))}}let G=R()?I:we;G.set({...G(),[b.getAttribute("data-record-state-trigger")??b.getAttribute("data-record-state")??""]:b.getAttribute("data-record-value")??""});return}let $=i?.closest(`[${Ua}]`);if($){n.preventDefault(),ae(ge(),"record");let D=document.activeElement;N=D instanceof HTMLElement&&$.contains(D)?D:$.querySelector(en),M.set(H()),I.set({});let G={};for(let[U,O]of Object.entries($.dataset))U.startsWith("recordParam")&&O!==void 0&&(G[U.slice(11).replace(/^./u,tt=>tt.toLowerCase())]=O);u.set([]),X.set(null),ue.set(!1),R.set({name:$.getAttribute(Ua)??"",params:G}),pe();return}if(i?.closest('button[name="intent"][value="retry"]')){n.preventDefault();let D=t();D&&te(D.id);return}}let p=si(i);if(!p)return;let T=new URL(p,location.href);if(T.origin!==location.origin||T.pathname!==location.pathname)return;let h=Se(T);if(!h||h.kind!==e.kind)return;n.preventDefault();let V=t(),Y="route"in e.context?e.context.query??[]:[],ne=new URL(location.href);if(Y.some(b=>ne.searchParams.get(b)!==T.searchParams.get(b))){ae(ge(),"record");for(let b of Y){let $=T.searchParams.get(b);$===null?ne.searchParams.delete(b):ne.searchParams.set(b,$)}history.replaceState(history.state??{},"",ne.href),V?.id===h.id&&te(V.id)}if(V?.id===h.id){if((h.tab??"")===V.tab&&!h.dialog)return;ae(ge(),"record"),u.set([]),X.set(null),Z(h.id,h.tab??null,"replace",()=>ge()?.querySelector('[data-ui="tab"][data-active="true"]')??null);return}Z(h.id,h.tab??null,"push",void 0,h.dialog)},{signal:d,capture:!0}),document.addEventListener("keydown",n=>{if(n.defaultPrevented||n.key!=="Enter"&&n.key!==" ")return;let i=n.target instanceof Element?n.target:null;if(!i?.matches('[data-row-href][tabindex="0"]'))return;let m=i.getAttribute("data-row-href"),p=m?new URL(m,location.href):null;if(!p||p.origin!==location.origin||p.pathname!==location.pathname)return;let T=Se(p);!T||T.kind!==e.kind||(n.preventDefault(),Z(T.id,T.tab??null,"push",void 0,T.dialog))},{signal:d,capture:!0}),document.addEventListener("submit",n=>{let i=n.target instanceof HTMLFormElement?n.target:null;if(!i||!E?.contains(i))return;n.preventDefault();let m=n.submitter??null,p=(m instanceof HTMLButtonElement&&m.name===ke?m.value:null)??String(new FormData(i).get(ke)??"");dn(p,i,m)},{signal:d}),document.addEventListener("keydown",n=>{if(!t())return;let i=E?.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]'),m=i?.[i.length-1];if(!m)return;if(n.key==="Escape"){n.preventDefault(),Lt();return}if(n.key!=="Tab")return;let p=Wa(m);if(!p.length){n.preventDefault(),m.querySelector('[data-ui="modal-sheet"]')?.focus();return}let T=p[0],h=p.at(-1);n.shiftKey&&(document.activeElement===T||!m.contains(document.activeElement))?(n.preventDefault(),h.focus()):!n.shiftKey&&(document.activeElement===h||!m.contains(document.activeElement))&&(n.preventDefault(),T.focus())},{signal:d}),document.addEventListener("change",n=>{let i=n.target instanceof Element?n.target:null;if(!i||!E?.contains(i))return;if(i instanceof HTMLInputElement&&i.type==="checkbox"&&i.form){let p=i.form;if(p.querySelector(`input[type="checkbox"][name^="${Ze}"]`)){if(i.name.startsWith(Ze)){let T=i.name.slice(Ze.length);for(let h of p.querySelectorAll('input[type="checkbox"]'))!h.disabled&&!h.name.startsWith(Ze)&&h.name.startsWith(T)&&(h.checked=i.checked)}Xe();return}}let m=i.getAttribute("data-record-state")??(["relation-native","reorder-list-value"].includes(i.getAttribute("data-ui")??"")?i.getAttribute("name"):null);if((i instanceof HTMLSelectElement||i instanceof HTMLInputElement)&&m){Xe();let p=R()?I:we;p.set({...p(),[m]:i.value});return}i instanceof HTMLInputElement&&i.type==="file"&&(i.hasAttribute("data-record-submit")||i.form?.hasAttribute("data-record-dropzone"))&&i.files?.length&&i.form?.requestSubmit()},{signal:d});let c=n=>{let m=(n.target instanceof Element?n.target:null)?.closest("form[data-record-dropzone]")??null;return m&&E?.contains(m)?m:null};document.addEventListener("dragover",n=>{let i=c(n);i&&(n.preventDefault(),i.dataset.drag="1")},{signal:d}),document.addEventListener("dragleave",n=>{let i=c(n);if(!i)return;let m=n.relatedTarget;m instanceof Node&&i.contains(m)||delete i.dataset.drag},{signal:d}),document.addEventListener("drop",n=>{let i=c(n);if(!i)return;n.preventDefault(),delete i.dataset.drag;let m=n.dataTransfer?.files,p=i.querySelector('input[type="file"]');if(!p||!m?.length)return;let T=new DataTransfer;T.items.add(m[0]),p.files=T.files,i.requestSubmit()},{signal:d});let s="ket-island, div[data-ket-island]",o=n=>n instanceof Element&&(n.matches(s)||n.querySelector(s)!==null),v=new MutationObserver(n=>{be();for(let i of n){for(let m of i.removedNodes)o(m)&&document.dispatchEvent(new CustomEvent("ket:islands-detach",{detail:{root:m}}));for(let m of i.addedNodes)o(m)&&m.isConnected&&document.dispatchEvent(new CustomEvent("ket:islands-attach",{detail:{root:m}}))}});v.observe(E,{childList:!0,subtree:!0,characterData:!0}),d.addEventListener("abort",()=>v.disconnect()),window.addEventListener("resize",be,{signal:d}),E.addEventListener("load",be,{capture:!0,signal:d}),E.addEventListener("toggle",be,{capture:!0,signal:d}),document.fonts?.ready.then(()=>{d.aborted||be()}),be(),document.addEventListener("ket:records-changed",n=>{let i=n.detail;if(i?.kind===e.kind)if(!Array.isArray(i.ids)||!i.ids.length)q.clear();else for(let m of i.ids)q.delete(String(m))},{signal:d}),document.addEventListener("ket:popstate",n=>{let i=Se(location.href),m=i?.kind===e.kind;!m&&!t()||(n.preventDefault(),m&&i?Z(i.id,i.tab??null,"none",void 0,i.dialog):Le("none"))},{signal:d}),document.addEventListener("ket:navigation-complete",()=>{let n=Se(location.href);n?.kind===e.kind&&!t()&&Z(n.id,n.tab??null,"none",void 0,n.dialog)},{signal:d});let f=Se(location.href);f?.kind===e.kind&&Z(f.id,f.tab??null,"none",void 0,f.dialog),d.addEventListener("abort",()=>{Ke?.abort(),St.stop(),me?.(),me=null,E=null})}}};var an={vi:{"recordModal.close":"\u0110\xF3ng","recordModal.loading":"\u0110ang t\u1EA3i\u2026","recordModal.loadFailed":"Kh\xF4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c d\u1EEF li\u1EC7u. H\xE3y th\u1EED l\u1EA1i.","recordModal.notFound":"M\u1EE5c n\xE0y kh\xF4ng c\xF2n t\u1ED3n t\u1EA1i ho\u1EB7c b\u1EA1n kh\xF4ng c\xF3 quy\u1EC1n xem.","recordModal.retry":"Th\u1EED l\u1EA1i","recordModal.errorTitle":"Ch\u01B0a l\u01B0u \u0111\u01B0\u1EE3c","recordModal.saveFailed":"Thao t\xE1c kh\xF4ng th\xE0nh c\xF4ng. H\xE3y th\u1EED l\u1EA1i.","recordModal.savedTitle":"\u0110\xE3 l\u01B0u","recordModal.saved":"Thay \u0111\u1ED5i \u0111\xE3 \u0111\u01B0\u1EE3c ghi nh\u1EADn.","recordModal.unsaved":"B\u1ECF c\xE1c thay \u0111\u1ED5i ch\u01B0a l\u01B0u?","recordModal.uploadFailed":"Kh\xF4ng t\u1EA3i \u0111\u01B0\u1EE3c t\u1EC7p l\xEAn. H\xE3y th\u1EED l\u1EA1i."},en:{"recordModal.close":"Close","recordModal.loading":"Loading\u2026","recordModal.loadFailed":"The record could not be read. Try again.","recordModal.notFound":"The record is gone or you cannot see it.","recordModal.retry":"Retry","recordModal.errorTitle":"Not saved","recordModal.saveFailed":"That did not work. Try again.","recordModal.savedTitle":"Saved","recordModal.saved":"The changes have been saved.","recordModal.unsaved":"Discard unsaved changes?","recordModal.uploadFailed":"The file could not be uploaded. Try again."}};import{jsx as S}from"/_ket/view/jsx-runtime.js";var nn=()=>typeof document<"u"&&document.documentElement.lang==="en"?"en":"vi",y=(e,t)=>e.t(`stock_backend.${t}`),Ae=e=>!["done","cancel"].includes(String(e.data.record.state)),Be=(e,t)=>[{value:"",label:"\u2014"},...(e.data.choices[t]??[]).map(a=>({value:String(a.id),label:String(a.name)}))],B=(e,t,a,l={})=>({id:`transfer-${e.dialog?.name??"record"}-${t}`,name:t,label:y(e,a),...l,value:e.draft(t,String(l.value??"")),error:e.fieldError(t),disabled:e.busy}),pt=(e,t)=>Object.fromEntries(t.flatMap(a=>{let l=String(e.get(a)??"");return l?[[a,l]]:[]})),rn=e=>[B(e,"name","transfer.list.col.reference",{required:!0,value:String(e.data.record.name??"")}),B(e,"pickingTypeId","field.operationType",{type:"select",options:Be(e,"pickingTypes"),required:!0,value:String(e.data.record.pickingTypeId??"")}),B(e,"locationId","field.sourceLocation",{type:"select",options:Be(e,"locations"),value:String(e.data.record.locationId??"")}),B(e,"locationDestId","field.destinationLocation",{type:"select",options:Be(e,"locations"),value:String(e.data.record.locationDestId??"")}),B(e,"scheduledDate","transfer.list.col.scheduledDate",{type:"date",value:String(e.data.record.scheduledDate??"").slice(0,10)})],ht=(e,t,a)=>S(ft,{kind:e.kind,command:t,children:S(C,{type:"submit",label:y(e,`action.${a}`),disabled:e.busy})}),yt=(e,t,a)=>S(De,{dialog:t,children:S(C,{label:y(e,a),disabled:e.busy})}),$e=e=>e.data.record.moves.flatMap(t=>t.lines??[]).find(t=>`line:${t.id}`===e.dialog?.params.id),on=e=>e.data.record.moves.find(t=>`move:${t.id}`===e.dialog?.params.id||t.id===$e(e)?.moveId),Qe=e=>S(C,{type:"submit",label:e.t("recordModal.save"),variant:"primary",disabled:e.busy}),di={kind:"stock.transfer",size:"large",labels:()=>an[nn()],context:{route:(e,t)=>`/admin/stock/transfer/${t?"new":encodeURIComponent(e)}/context?lang=${nn()}`,query:["company","branch"]},title:e=>e.creating?y(e,"transfer.create.title"):String(e.data.record.name),status:e=>e.creating?null:S(Pe,{label:y(e,`state.${e.data.record.state}`)}),body:e=>e.creating?S(ce,{kind:e.kind,command:"create",fields:rn(e),actions:[Qe(e)]}):S(it,{items:[e.data.detailsHref?S(ie,{href:e.data.detailsHref,label:y(e,"modal.relatedOperations"),variant:"secondary"}):null,S(ye,{title:y(e,"modal.information"),actions:Ae(e)&&e.data.permissions.savePicking?yt(e,"edit","modal.edit"):null,body:S(Ue,{items:[{id:"type",label:y(e,"field.operationType"),value:String(e.data.choices.pickingTypes?.find(t=>t.id===e.data.record.pickingTypeId)?.name??e.data.record.pickingTypeId)},...["locationId","locationDestId"].map((t,a)=>({id:t,label:y(e,a===0?"field.sourceLocation":"field.destinationLocation"),value:String(e.data.choices.locations?.find(l=>l.id===e.data.record[t])?.name??e.data.record[t])}))]})}),S(ye,{title:y(e,"modal.products"),actions:Ae(e)&&e.data.permissions.addMove?yt(e,"add","action.addMove"):null,body:S(_e,{rows:e.data.record.moves,id:t=>String(t.id),responsive:"scroll",columns:[{key:"name",label:y(e,"field.product"),cell:t=>String(t.name)},{key:"demand",label:y(e,"modal.demand"),cell:t=>String(t.productUomQty)},{key:"state",label:y(e,"transfer.list.col.state"),cell:t=>y(e,`state.${t.state}`)},{key:"operate",label:y(e,"modal.picked"),cell:t=>Ae(e)&&e.data.permissions.saveMoveLine?S(De,{dialog:"line",id:`move:${t.id}`,children:S(C,{label:y(e,"modal.recordPicked"),variant:"tertiary"})}):""}]})}),S(ye,{title:y(e,"modal.picked"),body:S(_e,{rows:e.data.record.moves.flatMap(t=>(t.lines??[]).map(a=>({...a,name:t.name}))),id:t=>String(t.id),responsive:"scroll",columns:[{key:"name",label:y(e,"field.product"),cell:t=>String(t.name)},{key:"quantity",label:y(e,"modal.quantity"),cell:t=>String(t.quantity)},{key:"lot",label:y(e,"field.lot"),cell:t=>String(e.data.choices.lots?.find(a=>a.id===t.lotId)?.name??t.lotId??"\u2014")},{key:"picked",label:y(e,"modal.picked"),cell:t=>y(e,t.picked?"modal.yes":"modal.no")},{key:"edit",label:y(e,"modal.edit"),cell:t=>Ae(e)&&e.data.permissions.saveMoveLine?S(De,{dialog:"line",id:`line:${t.id}`,children:S(C,{label:y(e,"modal.edit"),variant:"tertiary"})}):""}]})})]}),actions:e=>e.creating||!Ae(e)?void 0:S(_,{actions:[...e.data.record.state==="draft"&&e.data.permissions.confirmPicking?[ht(e,"confirm","confirm")]:[],...e.data.record.state!=="draft"&&e.data.permissions.assignPicking?[ht(e,"assign","assign")]:[],...e.data.record.state!=="draft"&&e.data.permissions.validatePicking?[yt(e,"validate","action.validate")]:[],...e.data.permissions.cancelPicking?[ht(e,"cancel","cancel")]:[]]}),dialogs:{edit:{title:e=>y(e,"modal.edit"),view:e=>S(ce,{kind:e.kind,command:"edit",fields:rn(e),actions:[Qe(e)]})},add:{title:e=>y(e,"action.addMove"),view:e=>S(ce,{kind:e.kind,command:"add",fields:[B(e,"productId","field.product",{type:"select",options:Be(e,"products"),required:!0}),B(e,"productUomId","field.uom",{type:"select",options:Be(e,"units"),required:!0}),B(e,"productUomQty","modal.demand",{type:"decimal",value:"1",required:!0})],actions:[Qe(e)]})},line:{title:e=>y(e,"modal.recordPicked"),view:e=>S(ce,{kind:e.kind,command:"line",fields:[B(e,"quantity","modal.quantity",{type:"decimal",value:String($e(e)?.quantity??"1"),required:!0}),B(e,"lotId","field.lot",{type:"select",value:String($e(e)?.lotId??""),options:[{value:"",label:"\u2014"},...(e.data.choices.lots??[]).filter(t=>t.productId===on(e)?.productId).map(t=>({value:String(t.id),label:String(t.name)}))]}),{...B(e,"picked","modal.picked",{type:"checkbox"}),value:e.draftChecked("picked",void 0,$e(e)?.picked!==!1)}],actions:[Qe(e)]})},validate:{title:e=>y(e,"action.validate"),view:e=>S(ce,{kind:e.kind,command:"validate",fields:[B(e,"backorder","modal.remaining",{type:"radio",value:"create",options:[{value:"create",label:y(e,"action.validateCreateBackorder")},{value:"cancel",label:y(e,"action.validateNoBackorder")}],required:!0})],actions:[S(C,{type:"submit",label:y(e,"action.validate"),variant:"primary",disabled:e.busy})]})}},commands:{create:{fn:"stock.createPicking",input:(e,t)=>({id:t.data.draftId,...pt(e,["name","pickingTypeId","locationId","locationDestId","scheduledDate"])}),after:"open"},edit:{fn:"stock.savePicking",input:(e,t)=>({id:t.id,moveType:t.data.record.moveType,...pt(e,["name","pickingTypeId","locationId","locationDestId","scheduledDate"])}),after:"reload"},add:{fn:"stock.addMove",input:(e,t)=>({id:t.data.draftId,pickingId:t.id,name:String(t.data.choices.products?.find(a=>a.id===e.get("productId"))?.name??e.get("productId")),...pt(e,["productId","productUomId","productUomQty"])}),after:"reload"},line:{fn:"stock.saveMoveLine",input:(e,t)=>({id:$e(t)?.id??t.data.draftId,moveId:on(t)?.id,quantity:String(e.get("quantity")??""),lotId:e.get("lotId")?String(e.get("lotId")):null,picked:e.has("picked")}),after:"reload"},confirm:{fn:"stock.confirmPicking",input:(e,t)=>({id:t.id}),after:"reload"},assign:{fn:"stock.assignPicking",input:(e,t)=>({id:t.id}),after:"reload"},validate:{fn:"stock.validatePicking",input:(e,t)=>({id:t.id,backorder:String(e.get("backorder")??"create")}),after:"reload"},cancel:{fn:"stock.cancelPicking",input:(e,t)=>({id:t.id}),after:"reload",confirm:e=>y(e,"modal.confirmCancel")}}},$f=tn(di);export{$f as transferModal,di as transferModalDefinition};