@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,161 @@
1
+ declare var an: (e: any) => any, ci: {
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
+ tabs: {
37
+ id: string;
38
+ label: (e: any) => any;
39
+ visible: (e: any) => boolean;
40
+ view: typeof an;
41
+ }[];
42
+ actions: (e: any) => any;
43
+ dialogs: {
44
+ addLine: {
45
+ title: (e: any) => any;
46
+ view: (e: any) => any;
47
+ };
48
+ editLine: {
49
+ title: (e: any) => any;
50
+ view: (e: any) => any;
51
+ };
52
+ bill: {
53
+ title: (e: any) => any;
54
+ view: (e: any) => any;
55
+ };
56
+ };
57
+ commands: {
58
+ create: {
59
+ fn: string;
60
+ input: (e: any, t: any) => {
61
+ id: any;
62
+ };
63
+ after: string;
64
+ };
65
+ addLine: {
66
+ fn: string;
67
+ input: (e: any, t: any) => {
68
+ id: any;
69
+ orderId: any;
70
+ };
71
+ after: string;
72
+ };
73
+ updateLine: {
74
+ fn: string;
75
+ input: (e: any, t: any) => {
76
+ id: any;
77
+ expectedRevision: number;
78
+ taxIds?: string[] | undefined;
79
+ };
80
+ after: string;
81
+ };
82
+ removeLine: {
83
+ fn: string;
84
+ input: (e: any, t: any) => {
85
+ id: any;
86
+ };
87
+ after: string;
88
+ confirm: (e: any) => any;
89
+ };
90
+ send: {
91
+ fn: string;
92
+ input: (e: any, t: any) => {
93
+ id: any;
94
+ };
95
+ after: string;
96
+ };
97
+ confirm: {
98
+ fn: string;
99
+ input: (e: any, t: any) => {
100
+ id: any;
101
+ expectedRevision: number;
102
+ };
103
+ after: string;
104
+ };
105
+ reset: {
106
+ fn: string;
107
+ input: (e: any, t: any) => {
108
+ id: any;
109
+ };
110
+ after: string;
111
+ };
112
+ sync: {
113
+ fn: string;
114
+ input: (e: any, t: any) => {
115
+ id: any;
116
+ };
117
+ after: string;
118
+ };
119
+ lock: {
120
+ fn: string;
121
+ input: (e: any, t: any) => {
122
+ id: any;
123
+ locked: boolean;
124
+ };
125
+ after: string;
126
+ };
127
+ unlock: {
128
+ fn: string;
129
+ input: (e: any, t: any) => {
130
+ id: any;
131
+ locked: boolean;
132
+ };
133
+ after: string;
134
+ };
135
+ cancel: {
136
+ fn: string;
137
+ input: (e: any, t: any) => {
138
+ id: any;
139
+ expectedRevision: number;
140
+ };
141
+ after: string;
142
+ confirm: (e: any) => any;
143
+ };
144
+ bill: {
145
+ fn: string;
146
+ input: (e: any, t: any) => {
147
+ id: any;
148
+ orderId: any;
149
+ };
150
+ after: string;
151
+ };
152
+ };
153
+ }, Kf: () => {
154
+ view: () => any;
155
+ mount: ({ root: r, lifetime: d }: {
156
+ lifetime: any;
157
+ root: any;
158
+ }) => void;
159
+ };
160
+ export { Kf as saleOrderModal, ci as saleOrderModalDefinition };
161
+ //# sourceMappingURL=sale-order-modal.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sale-order-modal.d.mts","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/sale_backend/client/sale-order-modal.mjs"],"names":[],"mappings":"AAC61uD,QAAA,IAAupE,EAAE,iBAAk8B,EAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAA6uH,EAAE;;;;;;;;gBAA0H,EAAE;;;;;;;gBAAuE,EAAE;gBAAM,gBAAgB;;;;;;;gBAA6F,EAAE;;;;;;;gBAAsE,EAAE;;;;;;;;;;;;;;;;;;;;;;;gBAAiO,EAAE;gBAAM,gBAAgB;;;;;;;;;;;;;;CAAoR,EAAC,EAAE;;;;;;CAAO,CAAC;AAAA,OAAM,EAAC,EAAE,IAAI,cAAc,EAAC,EAAE,IAAI,wBAAwB,EAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ // @ts-nocheck Generated by tools/build-backend-client.mjs — do not edit.
2
+ import{each as mn}from"/_ket/view/index.js";import{Fragment as Ct,jsx as ie,jsxs as fn}from"/_ket/view/jsx-runtime.js";var Rt=["action","action-leading","action-label","action-spinner","action-group"],gn=e=>fn(Ct,{children:[e.loading===!0&&ie("span",{"data-ui":"action-spinner","aria-hidden":"true"}),e.loading!==!0&&e.leading!==void 0&&ie("span",{"data-ui":"action-leading","aria-hidden":"true",children:e.leading}),!e.iconOnly&&ie("span",{"data-ui":"action-label",children:e.label})]}),R=e=>ie("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:ie(gn,{...e})});var G=e=>ie("div",{"data-ui":"action-group",role:"group","aria-label":e.label??null,children:mn(e.actions,(t,a)=>a,t=>ie(Ct,{children:t}))});import{jsx as bn,jsxs as bi}from"/_ket/view/jsx-runtime.js";var Lt=["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 Je,jsx as T,jsxs as Y}from"/_ket/view/jsx-runtime.js";var Pt=["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:()=>Y(Je,{children:[T("circle",{cx:"12",cy:"12",r:"10"}),T("path",{d:"M12 16v-4"}),T("path",{d:"M12 8h.01"})]}),positive:()=>Y(Je,{children:[T("circle",{cx:"12",cy:"12",r:"10"}),T("path",{d:"m9 12 2 2 4-4"})]}),warning:()=>Y(Je,{children:[T("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"}),T("path",{d:"M12 9v4"}),T("path",{d:"M12 17h.01"})]}),danger:()=>Y(Je,{children:[T("circle",{cx:"12",cy:"12",r:"10"}),T("path",{d:"M12 8v4"}),T("path",{d:"M12 16h.01"})]})},j=e=>Y("aside",{"data-ui":"notice","data-pattern":"notice","data-tone":e.tone??"info",role:e.tone==="danger"?"alert":"status",children:[T("span",{"data-ui":"notice-mark","aria-hidden":"true",children:T("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"]()})}),Y("div",{"data-ui":"notice-copy",children:[T("p",{"data-ui":"notice-title",children:e.title}),T("p",{"data-ui":"notice-message",children:e.message})]}),e.actions!==void 0&&T("div",{"data-ui":"notice-actions",children:e.actions})]}),re=e=>Y("div",{"data-ui":"empty",role:"status",children:[T("span",{"data-ui":"empty-mark","aria-hidden":"true",children:"\u25C7"}),T("p",{"data-ui":"empty-title",children:e.title}),T("p",{"data-ui":"empty-message",children:e.message}),e.actions!==void 0&&T("div",{"data-ui":"empty-actions",children:e.actions})]}),pe=e=>Y("div",{"data-ui":"loading",role:"status","aria-live":"polite",children:[T("span",{"data-ui":"loading-label",children:e.label}),T("div",{"data-ui":"skeleton","aria-hidden":"true",children:pn(Array.from({length:Math.max(1,e.lines??3)}),(t,a)=>a,(t,a)=>T("span",{"data-ui":"skeleton-line","data-line":String(a+1)}))})]});import{each as ot}from"/_ket/view/index.js";import{each as kn}from"/_ket/view/index.js";import{jsx as N,jsxs as Me}from"/_ket/view/jsx-runtime.js";var Mt=["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?N("button",{"data-ui":"modal-backdrop",type:"button","aria-hidden":"true",tabIndex:-1,children:N("span",{children:e.closeLabel})}):N("a",{"data-ui":"modal-backdrop",href:e.closeHref??"#","aria-label":e.closeLabel,children:N("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:[N("h2",{"data-ui":"modal-title",id:`${e.id}-title`,children:e.title}),e.status!==void 0&&e.status]}),!!e.description&&N("p",{"data-ui":"modal-description",id:`${e.id}-description`,children:e.description})]}),t?N("button",{"data-ui":"modal-close",type:"button","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"}):N("a",{"data-ui":"modal-close",href:e.closeHref??"#","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"})]}),N("div",{"data-ui":"modal-body",children:e.body}),e.actions!==void 0&&N("footer",{"data-ui":"modal-actions",children:e.actions})]})]})};import{Fragment as Ri,jsx as ki,jsxs as wi}from"/_ket/view/jsx-runtime.js";import{Fragment as Oi,jsx as Ei,jsxs as Fi}from"/_ket/view/jsx-runtime.js";var Ft=["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 Ot,jsx as M,jsxs as le}from"/_ket/view/jsx-runtime.js";var Ht=["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=>M(Ot,{children:kn(e.items,(t,a)=>a,t=>typeof t=="string"||typeof t=="number"?M("span",{children:t}):M(Ot,{children:t}))}),Xe=e=>M("div",{"data-ui":"stack","data-pattern":"stack","data-gap":e.gap??"default","data-divided":e.divided===!0?"true":null,children:M(wn,{items:e.items})});var it=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:[M("h2",{"data-ui":"surface-title",children:e.title}),M("p",{"data-ui":"surface-description",children:e.description})]}):M("h2",{"data-ui":"surface-title",children:e.title}),e.actions!==void 0&&M("div",{"data-ui":"surface-actions",children:e.actions})]}),e.body]}),rt=e=>le("details",{"data-ui":"disclosure",open:e.open===!0?!0:void 0,children:[M("summary",{"data-ui":"disclosure-summary",children:e.summary}),M("div",{"data-ui":"disclosure-body",children:e.body})]}),Ee=e=>le("section",{"data-ui":"section",children:[le("header",{"data-ui":"section-head",children:[le("div",{children:[!!e.eyebrow&&M("p",{"data-ui":"section-eyebrow",children:e.eyebrow}),M("h2",{"data-ui":"section-title",children:e.title}),!!e.description&&M("p",{"data-ui":"section-description",children:e.description})]}),e.actions!==void 0&&M("div",{"data-ui":"section-actions",children:e.actions})]}),M("div",{"data-ui":"section-body",children:e.body})]});import{each as Rn}from"/_ket/view/index.js";import{Fragment as Cn,jsx as Fe}from"/_ket/view/jsx-runtime.js";var ze=(e,t)=>e.control!==void 0?Fe(Cn,{children:e.control}):e.type==="textarea"?Fe("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"?Fe("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=>Fe("option",{value:a.value,selected:String(e.value??"")===a.value,disabled:a.disabled===!0,children:a.label}))}):Fe("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 _}from"/_ket/view/jsx-runtime.js";var Dt=["field","field-label","field-required","field-control","field-options","field-option","field-option-input","field-help","field-error"],It=e=>!!e.error||(e.fields?.some(It)??!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=_("span",{"data-ui":"field-label",children:[e.label,e.required&&w("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]});return e.fields?_("div",{"data-ui":"field","data-kind":"group","data-span":"full","data-invalid":String(!!e.error),children:[w(rt,{summary:e.label,open:e.open||It(e),body:w("div",{"data-ui":"form-grid",children:ot(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"?_("div",{"data-ui":"field","data-kind":"checkbox-group","data-span":e.span??"half","data-invalid":String(!!e.error),children:[_("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:ot(e.options??[],u=>u.name??u.value,u=>_("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"?_("div",{"data-ui":"field","data-kind":"radio","data-span":e.span??"half","data-invalid":String(!!e.error),children:[_("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:ot(e.options??[],u=>u.value,u=>_("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})]}):_("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"&&ze(e,l),g,e.type!=="checkbox"&&ze(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 he,jsxs as st}from"/_ket/view/jsx-runtime.js";var At=["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 $t=e=>st("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&&he("span",{"data-ui":"tab-count",children:String(e.count)})]}),Kt=(e,t)=>`${e}-${t.replace(/[^a-zA-Z0-9_-]+/gu,"-")}-tab`,Bt=e=>st("nav",{"data-ui":"tabs","data-pattern":"tabs","aria-label":e.label,children:[Ln(e.items,t=>t.id,t=>he($t,{...t,elementId:e.id?Kt(e.id,t.id):void 0,controls:e.panelId})),e.extension]}),qt=e=>he("section",{"data-ui":"tab-panel",id:e.id,"aria-labelledby":e.labelledBy,tabindex:"-1",children:e.body}),lt=e=>{let t=`${e.id}-tabs`,a=`${e.id}-panel`,l=e.items.find(g=>g.active===!0);return st("div",{"data-ui":"tabbed-view",children:[e.context!==void 0&&e.context!==""?he("div",{"data-ui":"tabbed-view-context",children:e.context}):"",he(Bt,{id:t,label:e.label,items:e.items,extension:e.extension,panelId:a}),he(qt,{id:a,labelledBy:l?Kt(t,l.id):void 0,body:e.body})]})};import{jsx as er,jsxs as tr}from"/_ket/view/jsx-runtime.js";var Nt=["progress","progress-label","progress-value","progress-track","progress-bar"];import{each as ir}from"/_ket/view/index.js";import{Fragment as sr,jsx as or,jsxs as lr}from"/_ket/view/jsx-runtime.js";var Jt=["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 ur,jsxs as mr}from"/_ket/view/jsx-runtime.js";var Xt=["popover","popover-trigger","popover-panel","popover-close"];import{jsx as br,jsxs as pr}from"/_ket/view/jsx-runtime.js";var zt=["tooltip","tooltip-trigger","tooltip-content"];import{jsx as Sr}from"/_ket/view/jsx-runtime.js";var Ut=["dialog","confirm-dialog-message"];import{each as wr}from"/_ket/view/index.js";import{jsx as Cr,jsxs as Lr}from"/_ket/view/jsx-runtime.js";var Vt=["toast-region","toast","toast-copy","toast-title","toast-message","toast-actions"];import{jsx as Er}from"/_ket/view/jsx-runtime.js";var Gt=["spinner","visually-hidden"];import{each as Hr}from"/_ket/view/index.js";import{jsx as Ir}from"/_ket/view/jsx-runtime.js";var _t=["skeleton","skeleton-line"];import{each as Kr,effect as Br,signal as qr}from"/_ket/view/index.js";import{jsx as Xr,jsxs as Jr}from"/_ket/view/jsx-runtime.js";var Wt=["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 Wr,jsxs as Zr}from"/_ket/view/jsx-runtime.js";var Zt=["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 eo,signal as to}from"/_ket/view/index.js";import{Fragment as ro,jsx as io,jsxs as no}from"/_ket/view/jsx-runtime.js";var Qt=["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 mo,effect as go,signal as fo}from"/_ket/view/index.js";import{jsx as so}from"/_ket/view/jsx-runtime.js";var Yt=["formatted-date","formatted-number","formatted-money"];import{Fragment as vo,jsx as xo,jsxs as So}from"/_ket/view/jsx-runtime.js";var ea=["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 Ao=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","summary",'[tabindex]:not([tabindex="-1"])'].join(",");var Hn=['[data-ui="timeframe-menu"]','[data-ui="view-settings"]'],$o=Hn.map(e=>`${e}[open]`).join(", ");import{jsx as qo,jsxs as No}from"/_ket/view/jsx-runtime.js";import{jsx as Vo,jsxs as Go}from"/_ket/view/jsx-runtime.js";var ta=["switch-control","switch-track"];import{each as Zo}from"/_ket/view/index.js";import{Fragment as tl,jsx as jo,jsxs as el}from"/_ket/view/jsx-runtime.js";var aa=["combobox","combobox-input-row","combobox-toggle","combobox-listbox","combobox-option","combobox-empty","tag-picker"];import{Fragment as ul,jsx as dl,jsxs as cl}from"/_ket/view/jsx-runtime.js";var na=["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 bl,jsxs as pl}from"/_ket/view/jsx-runtime.js";var ia=["file-upload","drop-zone","upload-status"];import{jsx as xl}from"/_ket/view/jsx-runtime.js";var ra=["relation-picker"];import{each as kl}from"/_ket/view/index.js";import{jsx as Ll,jsxs as Pl}from"/_ket/view/jsx-runtime.js";var oa=["search-bar","filter-bar","applied-filters","applied-filter","saved-views","saved-view","view-settings","view-settings-options"];import{jsx as Ol,jsxs as Hl}from"/_ket/view/jsx-runtime.js";var la=["inline-edit","inline-edit-value","inline-edit-form","inline-edit-actions"];import{each as Vl}from"/_ket/view/index.js";import{each as Kl}from"/_ket/view/index.js";import{Fragment as Xl,jsx as Nl,jsxs as Jl}from"/_ket/view/jsx-runtime.js";var sa=["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 Zl,jsxs as Ql}from"/_ket/view/jsx-runtime.js";var da=["resource-list","resource-list-item","resource-list-select","resource-list-link"];import{each as es}from"/_ket/view/index.js";import{jsx as as,jsxs as ns}from"/_ket/view/jsx-runtime.js";var ca=["data-grid-scroll","data-grid","data-grid-cap","data-grid-cell"];import{each as os}from"/_ket/view/index.js";import{jsx as ss,jsxs as ds}from"/_ket/view/jsx-runtime.js";var ua=["tree","tree-item","tree-link","tree-grid","tree-grid-row"];import{each as ms}from"/_ket/view/index.js";import{jsx as fs,jsxs as bs}from"/_ket/view/jsx-runtime.js";var ma=["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 ys}from"/_ket/view/index.js";import{jsx as xs,jsxs as Ss}from"/_ket/view/jsx-runtime.js";var ga=["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 ws}from"/_ket/view/index.js";import{jsx as Cs,jsxs as Ls}from"/_ket/view/jsx-runtime.js";var fa=["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 Kn}from"/_ket/view/index.js";import{jsx as Ve,jsxs as Bn}from"/_ket/view/jsx-runtime.js";var ba=["description-list","key-value","key-value-label","key-value-value","person","person-body","avatar-group","status"],pa=e=>Bn("div",{"data-ui":"key-value",children:[Ve("dt",{"data-ui":"key-value-label",children:e.label}),Ve("dd",{"data-ui":"key-value-value",children:e.value??e.emptyLabel??"\u2014"})]}),Ge=e=>Ve("dl",{"data-ui":"description-list","aria-label":e.label,"data-columns":String(e.columns??2),"data-layout":e.layout==="strip"?"strip":null,children:Kn(e.items,t=>t.id,t=>Ve(pa,{...t}))});import{each as Ds}from"/_ket/view/index.js";import{jsx as Bs,jsxs as qs}from"/_ket/view/jsx-runtime.js";var ya=["record-summary","record-summary-main","record-actions","record-rail"];import{each as Xs}from"/_ket/view/index.js";import{jsx as Gs,jsxs as _s}from"/_ket/view/jsx-runtime.js";var va=["activity-timeline","activity-item","activity-marker","audit-log","audit-item"];import{each as Qs}from"/_ket/view/index.js";import{jsx as ed,jsxs as td}from"/_ket/view/jsx-runtime.js";var xa=["attachments","attachment","media-gallery","media-item"];import{each as id}from"/_ket/view/index.js";import{Fragment as sd,jsx as od,jsxs as ld}from"/_ket/view/jsx-runtime.js";var Sa=["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 ye}from"/_ket/view/index.js";import{Fragment as La,jsx as x,jsxs as ee}from"/_ket/view/jsx-runtime.js";var Ta=["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))},ka=(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}),Un=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,wa=(e,t)=>e.selected?.(t)===!0?!0:e.selection?.selectedIds?.includes(e.id(t))===!0,Vn=(e,t,a)=>ee(La,{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:wa(e,a),"aria-label":e.labels?.selectRow?.(a,e.id(a))??`Select row ${e.id(a)}`,disabled:e.selection.disabled===!0})}),ye(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)}))]}),Ra=(e,t,a)=>x("tr",{"data-ui":"row","data-row":e.id(a),"data-selected":wa(e,a)?"true":null,children:Vn(e,t,a)}),Gn=(e,t,a)=>a?x("tr",{"data-ui":"group-pager",children:ee("td",{colSpan:String(ka(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,Ca=(e,t,a,l)=>ee(La,{children:[x("tr",{"data-ui":"group-row","data-group":a.id,"data-depth":String(l),children:ee("th",{"data-ui":"group-cell",colSpan:String(ka(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)})]})}),ye(a.rows??[],e.id,g=>Ra(e,t,g)),ye(a.children??[],g=>g.id,g=>Ca(e,t,g,l+1)),Gn(e,t,a.pager)]}),Oe=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:[Un(e),ye(t,u=>u.key,u=>zn(u,e.labels))]})}),x("tbody",{children:a.length>0?ye(a,u=>u.id,u=>Ca(e,t,u,0)):ye(e.rows,e.id,u=>Ra(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(it,{title:e.title,actions:e.actions,padding:"none",body:g}):g};import{Fragment as wd,jsx as kd,jsxs as Rd}from"/_ket/view/jsx-runtime.js";var Pa=["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 Md,jsxs as Ed}from"/_ket/view/jsx-runtime.js";var Ma=["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 Ea=["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 qd}from"/_ket/view/jsx-runtime.js";var Fa=["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 Oa=["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 Wd}from"/_ket/view/index.js";import{jsx as Qd,jsxs as Yd}from"/_ket/view/jsx-runtime.js";var Ha=["pipeline","pipeline-step","pipeline-arrow","pipeline-step-label","pipeline-step-value","pipeline-step-node"];import{each as nc}from"/_ket/view/index.js";import{jsx as lc,jsxs as sc}from"/_ket/view/jsx-runtime.js";var Da=["record-form","form-errors","form-grid","form-actions"];import{each as pc}from"/_ket/view/index.js";import{jsx as xc,jsxs as Sc}from"/_ket/view/jsx-runtime.js";var Ia=["reorder-list","reorder-list-value","reorder-list-rows","reorder-list-row","reorder-list-content","reorder-list-controls"];var Aa={actions:Rt,feedback:Pt,fields:Dt,status:Lt,navigation:At,progress:Nt,menu:Jt,reorderList:Ia,popover:Xt,tooltip:zt,dialog:Ut,toast:Vt,spinner:Gt,skeleton:_t,lightbox:Zt,relationSelect:Wt,searchFilter:Qt,ketTable:ea,scalarFields:ta,combobox:aa,dateTime:na,upload:ia,relationPicker:ra,listControls:oa,inlineEdit:la,resourceList:da,dataGrid:ca,tree:ua,matrix:ma,barChart:ga,timeframe:fa,recordDisplay:ba,formattedValues:Yt,recordComposition:ya,activity:va,media:xa,layouts:Ht,shell:Ft,appNavigation:Sa,table:Ta,listChrome:sa,listPage:Pa,formPage:Ea,recordPage:Ma,dashboardPage:Fa,boardPage:Oa,modal:Mt,pipeline:Ha,form:Da},Wn=[...new Set(Object.values(Aa).flat())].sort(),Zn=Object.freeze(Object.fromEntries(Object.entries(Aa).map(([e,t])=>[e,[...t]])));import{signal as O}from"/_ket/view/index.js";import{jsx as Yn}from"/_ket/view/jsx-runtime.js";var _e="record";var He="recordDialog";var Qn=/^[a-z][a-z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)+$/u,$a=e=>Qn.test(e),De=(e,t)=>{if(!$a(t.kind))throw new TypeError(`invalid record kind "${t.kind}"`);let a=new URL(String(e),"http://ket.local");return a.searchParams.set(_e,`${t.kind}:${t.id}`),t.tab?a.searchParams.set("tab",t.tab):a.searchParams.delete("tab"),t.dialog?a.searchParams.set(He,t.dialog):a.searchParams.delete(He),`${a.pathname}${a.search}`};var Ka=e=>{let t=new URL(String(e),"http://ket.local");return t.searchParams.delete(_e),t.searchParams.delete("tab"),t.searchParams.delete(He),`${t.pathname}${t.search}`},ve=e=>{let t=new URL(String(e),"http://ket.local"),a=t.searchParams.get(_e)??"",l=a.indexOf(":");if(l<=0||l===a.length-1)return null;let g=a.slice(0,l);return $a(g)?{kind:g,id:a.slice(l+1),tab:t.searchParams.get("tab"),...t.searchParams.get(He)?{dialog:t.searchParams.get(He)}:{}}:null},mt=e=>Yn("span",{"data-ui":"record-modal-host","data-record-kind":e,hidden:!0});import{jsx as de,jsxs as Ba}from"/_ket/view/jsx-runtime.js";var xe=e=>Ba("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:Se,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:G({actions:e.actions})}):""]});var We=e=>de("span",{"data-record-dialog":e.dialog,"data-record-param-id":e.id??null,children:e.children});var gt=e=>Ba("form",{"data-ui":"record-form","data-layout":"actions",method:"post",action:"","data-record-kind":e.kind,children:[de("input",{type:"hidden",name:Se,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 Ie,jsx as Ef,jsxs as Ae}from"/_ket/view/jsx-runtime.js";var Na=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:{}}})},Wa=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:Na(u.error??u),message:g.status>=500?null:u.error?.message??u.message??null,status:g.status};let P=u.value;return P&&typeof P=="object"&&P.ok===!1?{ok:!1,issues:Na(P),message:null,status:g.status}:{ok:!0,value:u.value}},Ja=(e,t,a={})=>Wa(`/_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."}),Qe=(e,t)=>t.messages?.[e]??t.previous?.[e]??t.labels?.[e]??ti[e]??(/^E_[A-Z_]+$/u.test(e)?Qe("recordModal.saveFailed",t):e),ai=(e,t)=>{let a=Qe(e,t);return a===e?Qe("recordModal.saveFailed",t):a},Se="__command",Xa="data-record-dialog",za=(e,t={})=>e.replace(/\{([a-zA-Z0-9_]+)\}/gu,(a,l)=>l in t?String(t[l]??""):a),Za=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].join(", "),Ua=e=>[...e.querySelectorAll(Za)].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}},Va=()=>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]),Ga=(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:{}}),_a=(e,t)=>`${e}\0${t}`,Ze="__all:",ft=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},Qa=e=>()=>{let t=O(null),a=O("idle"),l=O(null),g=O(null),u=O([]),P=O(H()),E=O(H()),bt=O(!1),pt=O(!1),ht=oi(r=>pt.set(r)),ce=O(!1),yt=r=>{bt.set(r),ht.set(r),r&&ce.set(!1)},C=O(null),ke=O(0),we=O({}),A=O({}),J=O(null),B=new Map,on=(r,d)=>{for(B.delete(r),B.set(r,d);B.size>ei;)B.delete(B.keys().next().value)},F=null,$e=null,Ke=!1,et=null,q=null,ue=null,Re=null,ln=()=>typeof e.labels=="function"?e.labels():e.labels??{},vt=()=>({messages:l()?.messages,previous:Re,labels:ln()}),X=(r,d)=>za(Qe(r,vt()),d),xt=r=>r.message??za(ai(r.code,vt()),r.params),St=r=>[...e.tabs??[],...e.extensionTabs?.(r)??[]].filter(d=>d.visible?.(r)??!0),Be=(r,d,c="record")=>{let s=()=>c==="dialog"?E():P(),o={kind:e.kind,id:r.id,creating:r.id==="new",tab:r.tab,data:d,t:X,fieldError:f=>{let n=u().find(i=>i.field===f);return n?xt(n):null},draft:(f,n="")=>{let i=s();return i.initialValues[f]??=n,i.values[f]??n},recordDraft:(f,n="")=>P().values[f]??n,draftChecked:(f,n="1",i=!1)=>{let m=s(),p=_a(f,n);return m.initialChecks[p]??=i,m.checks[p]??i},outcome:f=>{let n=J();return n?.command===f?n.value:null},busy:pt(),dialog:C(),href:f=>De(location.href,{kind:e.kind,id:r.id,tab:f}),state:(f,n="")=>(c==="dialog"?A()[f]:void 0)??we()[f]??n},v=St(o);return v.length&&!v.some(f=>f.id===r.tab)&&(o.tab=v[0].id),o},Ce=null,te=async(r,d=!1)=>{$e?.abort();let c=new AbortController;$e=c;let s=e.cache===!1?void 0:B.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 Ja(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&&on(r,v.value),l.set(v.value),a.set("ready"),Ce&&e.dialogs?.[Ce]&&(C.set({name:Ce,params:{}}),be()),Ce=null}catch(o){if(c.signal.aborted||o?.name==="AbortError")return;g.set("recordModal.loadFailed"),a.set("error")}},qe=()=>F?[...F.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]')]:[],me=()=>qe()[0]??null,tt=()=>qe().at(-1)??null,ge=0,fe=()=>{if(e.fixedHeight||a()!=="ready")return;let r=me()?.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"),ge=Math.max(ge,Math.ceil(r.getBoundingClientRect().height)),d.style.removeProperty("height");let o=getComputedStyle(r).maxHeight;r.style.setProperty("min-height",o==="none"?`${ge}px`:`min(${ge}px, ${o})`),c&&(c.scrollTop=s)},ae=(r,d)=>{if(!r)return;let c=d==="dialog"?E():P(),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===Se)){if(o instanceof HTMLInputElement){if(o.type==="file"||o.type==="hidden")continue;if(o.type==="checkbox"||o.type==="radio"){let v=_a(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"?E.set(s):P.set(s)},Ne=()=>{let r=qe();ae(r[0]??null,"record"),r.length>1&&ae(r.at(-1)??null,"dialog")},Tt=r=>{if(!r)return!0;let d=C()&&r===tt()?"dialog":"record";ae(r,d);let c=d==="dialog"?E():P(),s=[...r.querySelectorAll('input[type="file"]')].some(o=>!o.disabled&&!!o.files?.length);return!ii(c)&&!s?!0:globalThis.confirm(X("recordModal.unsaved"))},be=r=>{requestAnimationFrame(()=>{let d=qe(),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"]');(Ua(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||(ge=0,Ce=o??null,et=document.activeElement instanceof HTMLElement?document.activeElement:null,u.set([]),ce.set(!1),P.set(H()),E.set(H()),A.set({}),we.set({}),J.set(null),C.set(null),q=null,l.set(null),te(r)),f&&o&&e.dialogs?.[o]&&(Ne(),E.set(H()),A.set({}),C.set({name:o,params:{}})),t.set({id:r,tab:n});let i=De(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),Ke=!0):c==="replace"&&history.replaceState(history.state??{},"",i),F&&!ue&&(ue=ni(F)),be(s)},Le=r=>{$e?.abort(),t.set(null),ge=0,C.set(null),u.set([]),ce.set(!1),P.set(H()),E.set(H()),A.set({}),we.set({}),J.set(null),a.set("idle"),l.set(null),ue?.(),ue=null,r==="history"&&Ke?(Ke=!1,history.back()):r!=="none"&&(Ke=!1,history.replaceState(history.state??{},"",Ka(location.href)));let d=et;et=null,q=null,d?.isConnected&&requestAnimationFrame(()=>d.focus())},kt=()=>{if(C()){if(!Tt(tt()))return;let r=q;q=null,C.set(null);let d=t();d&&history.replaceState(history.state??{},"",De(location.href,{kind:e.kind,id:d.id,tab:d.tab})),E.set(H()),A.set({}),u.set([]),J.set(null),be(()=>r?.isConnected?r:null);return}Tt(me())&&Le("history")},sn=async(r,d,c)=>{let s=e.commands?.[r],o=t(),v=l()?.data;if(!s||!o||v===void 0||bt())return;let f=new FormData(d,c instanceof HTMLButtonElement?c:null),n=d.closest('[data-ui="modal-layer"][data-client-modal="true"]'),i=C()&&n===tt()?"dialog":"record";ae(n,i);let m=Be(o,v,i);if(s.confirm){let p=s.confirm(m);if(p&&!globalThis.confirm(p))return}yt(!0),u.set([]);try{let p={};for(let[b,K]of Object.entries(s.upload??{})){let D=f.get(b);if(!(D instanceof File)||D.size===0)continue;let U=new FormData;for(let[at,un]of Object.entries(K(f,m)))U.append(at,un);U.append("file",D,D.name);let V=await fetch("/files",{method:"POST",credentials:"same-origin",body:U}),I=await V.json().catch(()=>null);if(!V.ok||!I?.id){u.set([{field:null,code:"recordModal.uploadFailed",message:typeof I?.message=="string"?I.message:null,params:{}}]);return}p[b]={id:String(I.id),name:typeof I.name=="string"?I.name:null}}let k=(b,K)=>Ja(b,K,{idempotencyKey:Va()}),h=s.route?await Wa(s.route,s.input(f,m,p),{idempotencyKey:Va()}):await k(s.fn,s.input(f,m,p));for(let b of h.ok?s.also??[]:[])if(!(b.when&&!b.when(m))&&(h=await k(b.fn,b.input(f,m,p)),!h.ok))break;if(!h.ok){J.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){J.set({command:r,value:h.value}),ke.set(ke()+1);return}i==="dialog"?(E.set(H()),A.set({})):P.set(H()),s.clearRecordDrafts?.length&&P.set(Ga(P(),s.clearRecordDrafts)),J.set(ft(s)==="stay"?{command:r,value:h.value}:null),d.reset();let z=h.value,Q=ft(s)==="open"?s.created?.(h.value)??(z&&typeof z=="object"&&z.id!=null?String(z.id):null):null;B.delete(o.id),Q&&B.delete(Q);let ne=()=>{document.dispatchEvent(new CustomEvent("ket:records-changed",{detail:{kind:e.kind,ids:[Q??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 $=ft(s);if($!=="close"&&ce.set(!0),$==="open"){C.set(null),E.set(H()),A.set({}),Q?Z(Q,s.openTab??null,"replace"):Le("history"),ne();return}if(ne(),$==="close")Le("history");else if($==="reload"){let b=q;q=null,C.set(null),E.set(H()),A.set({}),history.replaceState(history.state??{},"",De(location.href,{kind:e.kind,id:o.id,tab:o.tab})),await te(o.id),be(()=>b?.isConnected?b:null)}else if($==="refresh")await te(o.id,!0);else if($==="stay")ke.set(ke()+1);else if("tab"in $)q=null,C.set(null),E.set(H()),A.set({}),Z(o.id,$.tab,"replace"),await te(o.id);else{let b=$.dialog?null:q;q=$.dialog&&c instanceof HTMLElement?c:null,C.set($.dialog?{name:$.dialog,params:{}}:null),E.set(H()),A.set({}),await te(o.id,!0),be(()=>b?.isConnected?b:null)}}catch{u.set([{field:null,code:"recordModal.saveFailed",message:null,params:{}}])}finally{yt(!1)}},wt=r=>{let d=u().filter(o=>!o.field),c=u().filter(o=>o.field&&!F?.querySelector(`[name="${CSS.escape(o.field)}"]`)),s=[...d,...c];return s.length?j({title:r.t("recordModal.errorTitle"),message:s.map(xt).join(" \xB7 "),tone:"danger"}):ce()?j({title:r.t("recordModal.savedTitle"),message:r.t("recordModal.saved"),tone:"positive"}):""},dn=()=>{let r=t();if(!r)return"";if(a()==="error")return Ae(Ie,{children:[j({title:X("recordModal.errorTitle"),message:X(g()??"recordModal.loadFailed"),tone:"danger"}),R({label:X("recordModal.retry"),variant:"secondary",name:"intent",value:"retry"})]});let d=l()?.data;if(a()!=="ready"||d===void 0)return pe({label:X("recordModal.loading")});let c=Be(r,d),s=St(c),o=s.find(i=>i.id===c.tab),v=e.header?.(c)??"",f=wt(c),n=o?o.view(c):e.body?.(c)??"";return s.length?lt({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!==""?Ae(Ie,{children:[v,f]}):void 0,body:n}):Ae(Ie,{children:[v,f,n]})},cn=()=>{let r=t(),d=C(),c=l()?.data;if(!r||!d||c===void 0)return"";let s=e.dialogs?.[d.name];if(!s)return"";let o=Be(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:X("recordModal.close"),body:Ae(Ie,{children:[wt(o),s.view(o)]})})};return{view:()=>{ke();let r=t();if(!r)return mt(e.kind);let d=l()?.data,c=d===void 0?null:Be(r,d);return Ae(Ie,{children:[mt(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):X("recordModal.loading"),description:c?e.description?.(c)??null:null,status:c?e.status?.(c):void 0,actions:c?e.actions?.(c):void 0,closeLabel:X("recordModal.close"),body:dn()}),cn()]})},mount:({root:r,lifetime:d})=>{F=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&&F?.contains(m)){if(i?.closest('[data-ui="modal-close"], [data-ui="modal-backdrop"], [data-record-close]')){n.preventDefault(),kt();return}let b=i?.closest("button[data-record-state], a[data-record-state], [data-record-state-trigger]");if(b){n.preventDefault(),Ne();let D=b.getAttribute("data-record-reset-fields");if(D){let V=JSON.parse(D);if(Array.isArray(V)&&V.every(I=>typeof I=="string")){let I=C()?E:P;I.set(Ga(I(),V))}}let U=C()?A:we;U.set({...U(),[b.getAttribute("data-record-state-trigger")??b.getAttribute("data-record-state")??""]:b.getAttribute("data-record-value")??""});return}let K=i?.closest(`[${Xa}]`);if(K){n.preventDefault(),ae(me(),"record");let D=document.activeElement;q=D instanceof HTMLElement&&K.contains(D)?D:K.querySelector(Za),E.set(H()),A.set({});let U={};for(let[V,I]of Object.entries(K.dataset))V.startsWith("recordParam")&&I!==void 0&&(U[V.slice(11).replace(/^./u,at=>at.toLowerCase())]=I);u.set([]),J.set(null),ce.set(!1),C.set({name:K.getAttribute(Xa)??"",params:U}),be();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 k=new URL(p,location.href);if(k.origin!==location.origin||k.pathname!==location.pathname)return;let h=ve(k);if(!h||h.kind!==e.kind)return;n.preventDefault();let z=t(),Q="route"in e.context?e.context.query??[]:[],ne=new URL(location.href);if(Q.some(b=>ne.searchParams.get(b)!==k.searchParams.get(b))){ae(me(),"record");for(let b of Q){let K=k.searchParams.get(b);K===null?ne.searchParams.delete(b):ne.searchParams.set(b,K)}history.replaceState(history.state??{},"",ne.href),z?.id===h.id&&te(z.id)}if(z?.id===h.id){if((h.tab??"")===z.tab&&!h.dialog)return;ae(me(),"record"),u.set([]),J.set(null),Z(h.id,h.tab??null,"replace",()=>me()?.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 k=ve(p);!k||k.kind!==e.kind||(n.preventDefault(),Z(k.id,k.tab??null,"push",void 0,k.dialog))},{signal:d,capture:!0}),document.addEventListener("submit",n=>{let i=n.target instanceof HTMLFormElement?n.target:null;if(!i||!F?.contains(i))return;n.preventDefault();let m=n.submitter??null,p=(m instanceof HTMLButtonElement&&m.name===Se?m.value:null)??String(new FormData(i).get(Se)??"");sn(p,i,m)},{signal:d}),document.addEventListener("keydown",n=>{if(!t())return;let i=F?.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]'),m=i?.[i.length-1];if(!m)return;if(n.key==="Escape"){n.preventDefault(),kt();return}if(n.key!=="Tab")return;let p=Ua(m);if(!p.length){n.preventDefault(),m.querySelector('[data-ui="modal-sheet"]')?.focus();return}let k=p[0],h=p.at(-1);n.shiftKey&&(document.activeElement===k||!m.contains(document.activeElement))?(n.preventDefault(),h.focus()):!n.shiftKey&&(document.activeElement===h||!m.contains(document.activeElement))&&(n.preventDefault(),k.focus())},{signal:d}),document.addEventListener("change",n=>{let i=n.target instanceof Element?n.target:null;if(!i||!F?.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 k=i.name.slice(Ze.length);for(let h of p.querySelectorAll('input[type="checkbox"]'))!h.disabled&&!h.name.startsWith(Ze)&&h.name.startsWith(k)&&(h.checked=i.checked)}Ne();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){Ne();let p=C()?A: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&&F?.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 k=new DataTransfer;k.items.add(m[0]),p.files=k.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=>{fe();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(F,{childList:!0,subtree:!0,characterData:!0}),d.addEventListener("abort",()=>v.disconnect()),window.addEventListener("resize",fe,{signal:d}),F.addEventListener("load",fe,{capture:!0,signal:d}),F.addEventListener("toggle",fe,{capture:!0,signal:d}),document.fonts?.ready.then(()=>{d.aborted||fe()}),fe(),document.addEventListener("ket:records-changed",n=>{let i=n.detail;if(i?.kind===e.kind)if(!Array.isArray(i.ids)||!i.ids.length)B.clear();else for(let m of i.ids)B.delete(String(m))},{signal:d}),document.addEventListener("ket:popstate",n=>{let i=ve(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=ve(location.href);n?.kind===e.kind&&!t()&&Z(n.id,n.tab??null,"none",void 0,n.dialog)},{signal:d});let f=ve(location.href);f?.kind===e.kind&&Z(f.id,f.tab??null,"none",void 0,f.dialog),d.addEventListener("abort",()=>{$e?.abort(),ht.stop(),ue?.(),ue=null,F=null})}}};var Ya={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 ja=()=>typeof document<"u"&&document.documentElement.lang==="en"?"en":"vi",y=(e,t)=>e.t(`sale_backend.${t}`),je=e=>!e.data.record.orderAuthority||e.data.record.orderAuthority==="local",en=e=>je(e)&&["draft","sent"].includes(String(e.data.record.state))&&!e.data.record.locked,W=(e,t)=>(e.data.choices[t]??[]).map(a=>({value:String(a.id),label:String(a.name)})),L=(e,t,a,l={})=>({id:`sale-${e.dialog?.name??"record"}-${t}`,name:t,label:y(e,`field.${a}`),...l,value:e.draft(t,String(l.value??"")),error:e.fieldError(t),disabled:e.busy}),Te=(e,t,a,l=!1)=>S(gt,{kind:e.kind,command:t,children:S(R,{type:"submit",label:y(e,`action.${a}`),variant:l?"primary":"secondary",disabled:e.busy})}),nn=(e,t,a)=>S(We,{dialog:t,children:S(R,{label:y(e,`action.${a}`),disabled:e.busy})}),Ye=(e,t)=>Object.fromEntries(t.flatMap(a=>{let l=String(e.get(a)??"");return l?[[a,l]]:[]})),rn=e=>e.data.record.lines.find(t=>t.id===e.dialog?.params.id),tn=(e,t=!1)=>{let a=t?rn(e):void 0;return[...t?[]:[L(e,"productId","product",{type:"select",options:W(e,"variants"),required:!0}),L(e,"productUomId","uom",{type:"select",options:W(e,"units"),required:!0})],L(e,"productUomQty","quantity",{type:"decimal",value:String(a?.productUomQty??"1"),required:!0}),L(e,"priceUnit","priceUnit",{type:"decimal",value:String(a?.priceUnit??"")}),L(e,"discount","discount",{type:"decimal",value:String(a?.discount??"0")}),L(e,"taxId","tax",{type:"select",options:[{value:"",label:"\u2014"},...W(e,"taxes")],value:String(a?.taxId??"")})]},di=e=>S(xe,{kind:e.kind,command:"create",fields:[L(e,"partnerId","customer",{type:"select",options:W(e,"partners"),required:!0}),L(e,"warehouseId","warehouse",{type:"select",options:W(e,"warehouses"),required:!0}),L(e,"clientOrderRef","clientOrderRef"),L(e,"pricelistId","pricelist",{type:"select",options:[{value:"",label:"\u2014"},...W(e,"pricelists")]}),L(e,"paymentTermId","paymentTerm",{type:"select",options:[{value:"",label:"\u2014"},...W(e,"terms")]}),L(e,"dateOrder","dateOrder",{type:"date"}),L(e,"validityDate","validityDate",{type:"date"}),L(e,"notes","notes",{type:"textarea",span:"full"})],actions:[S(R,{type:"submit",label:y(e,"action.create"),variant:"primary",disabled:e.busy})]}),an=e=>S(Xe,{items:[S(Ge,{items:["partnerName","clientOrderRef","dateOrder","validityDate","amountTotal","notes"].map(t=>({id:t,label:y(e,`field.${t==="partnerName"?"customer":t}`),value:String(e.data.record.display?.[t]??e.data.record[t]??"\u2014")||"\u2014"}))}),S(Ee,{title:y(e,"modal.lines"),actions:en(e)&&e.data.permissions.addLine?nn(e,"addLine","addLine"):null,body:S(Oe,{rows:e.data.record.lines,id:t=>String(t.id),responsive:"scroll",columns:[{key:"name",label:y(e,"field.product"),cell:t=>String(t.name)},{key:"productUomQty",label:y(e,"field.quantity"),cell:t=>String(t.productUomQty)},{key:"qtyDelivered",label:y(e,"field.delivered"),cell:t=>String(t.qtyDelivered)},{key:"priceUnit",label:y(e,"field.priceUnit"),cell:t=>String(t.priceUnitLabel??t.priceUnit)},{key:"edit",label:y(e,"modal.edit"),cell:t=>en(e)&&e.data.permissions.updateLine?S(We,{dialog:"editLine",id:String(t.id),children:S(R,{label:y(e,"modal.edit"),variant:"tertiary"})}):""}]})})]}),ci={kind:"sale.order",size:"large",labels:()=>Ya[ja()],context:{route:(e,t)=>`/admin/sales/record/${t?"new":encodeURIComponent(e)}/context?lang=${ja()}`,query:["company","branch"]},title:e=>e.creating?y(e,"action.create"):String(e.data.record.name),status:e=>e.creating?null:S(Pe,{label:y(e,`state.${e.data.record.state}`)}),body:e=>e.creating?di(e):an(e),tabs:[{id:"info",label:e=>y(e,"modal.info"),visible:e=>!e.creating,view:an},{id:"deliveries",label:e=>y(e,"modal.deliveries"),visible:e=>!e.creating,view:e=>S(Oe,{rows:e.data.record.pickings,id:t=>String(t.id),responsive:"scroll",columns:[{key:"name",label:y(e,"field.name"),cell:t=>String(t.name)},{key:"state",label:y(e,"field.state"),cell:t=>String(t.state)}]})},{id:"invoices",label:e=>y(e,"modal.invoices"),visible:e=>!e.creating,view:e=>S(Ee,{title:y(e,"modal.invoices"),actions:je(e)&&e.data.record.state==="sale"&&e.data.permissions.createInvoice?nn(e,"bill","createInvoice"):null,body:S(Oe,{rows:e.data.record.invoices,id:t=>String(t.id),responsive:"scroll",columns:[{key:"name",label:y(e,"field.name"),cell:t=>String(t.name)},{key:"state",label:y(e,"field.state"),cell:t=>String(t.state)}]})})},{id:"actions",label:e=>y(e,"modal.more"),visible:e=>!e.creating&&je(e),view:e=>S(Xe,{items:[...e.data.record.state==="cancel"&&e.data.permissions.resetOrder?[Te(e,"reset","reset")]:[],...e.data.record.state==="sale"&&e.data.permissions.lockOrder?[Te(e,e.data.record.locked?"unlock":"lock",e.data.record.locked?"unlock":"lock")]:[],...e.data.record.state!=="cancel"&&!e.data.record.locked&&!e.data.record.moves?.some(t=>t.state==="done")&&e.data.permissions.cancelOrder?[Te(e,"cancel","cancel")]:[]]})}],actions:e=>e.creating||!je(e)?void 0:S(G,{actions:[...e.data.record.state==="draft"&&e.data.permissions.sendQuotation?[Te(e,"send","send")]:[],...["draft","sent"].includes(String(e.data.record.state))&&e.data.permissions.confirmOrder?[Te(e,"confirm","confirm",!0)]:[],...e.data.record.state==="sale"&&e.data.permissions.syncDeliveries?[Te(e,"sync","sync")]:[]]}),dialogs:{addLine:{title:e=>y(e,"action.addLine"),view:e=>S(xe,{kind:e.kind,command:"addLine",fields:tn(e),actions:[S(R,{type:"submit",label:y(e,"action.addLine"),variant:"primary",disabled:e.busy})]})},editLine:{title:e=>y(e,"modal.edit"),view:e=>S(xe,{kind:e.kind,fields:tn(e,!0),actions:[S(R,{type:"submit",name:"__command",value:"updateLine",label:y(e,"action.updateLine"),variant:"primary",disabled:e.busy}),...e.data.permissions.removeLine?[S(R,{type:"submit",name:"__command",value:"removeLine",label:y(e,"action.removeLine"),variant:"destructive",disabled:e.busy})]:[]]})},bill:{title:e=>y(e,"action.createInvoice"),view:e=>S(xe,{kind:e.kind,command:"bill",fields:[L(e,"journalId","journal",{type:"select",options:W(e,"journals"),required:!0}),...["revenueAccountId","receivableAccountId","taxAccountId"].map(t=>L(e,t,t.replace("Id",""),{type:"select",options:W(e,"accounts"),required:t!=="taxAccountId"})),L(e,"invoiceDate","invoiceDate",{type:"date"})],actions:[S(R,{type:"submit",label:y(e,"action.createInvoice"),variant:"primary",disabled:e.busy})]})}},commands:{create:{fn:"sale.createOrder",input:(e,t)=>({id:t.data.draftId,...Ye(e,["partnerId","warehouseId","pricelistId","paymentTermId","clientOrderRef","dateOrder","validityDate","notes"])}),after:"open"},addLine:{fn:"sale.addLine",input:(e,t)=>({id:t.data.draftId,orderId:t.id,...Ye(e,["productId","productUomId","productUomQty","priceUnit","discount","taxId"])}),after:"reload"},updateLine:{fn:"sale.updateLine",input:(e,t)=>({id:t.dialog?.params.id,expectedRevision:Number(t.data.record.revision),...Ye(e,["productUomQty","priceUnit","discount"]),...String(e.get("taxId")??"")!==String(rn(t)?.taxId??"")?{taxIds:e.get("taxId")?[String(e.get("taxId"))]:[]}:{}}),after:"reload"},removeLine:{fn:"sale.removeLine",input:(e,t)=>({id:t.dialog?.params.id}),after:"reload",confirm:e=>y(e,"modal.confirmRemove")},send:{fn:"sale.sendQuotation",input:(e,t)=>({id:t.id}),after:"reload"},confirm:{fn:"sale.confirmOrder",input:(e,t)=>({id:t.id,expectedRevision:Number(t.data.record.revision)}),after:"reload"},reset:{fn:"sale.resetOrder",input:(e,t)=>({id:t.id}),after:"reload"},sync:{fn:"sale.syncDeliveries",input:(e,t)=>({id:t.id}),after:"reload"},lock:{fn:"sale.lockOrder",input:(e,t)=>({id:t.id,locked:!0}),after:"reload"},unlock:{fn:"sale.lockOrder",input:(e,t)=>({id:t.id,locked:!1}),after:"reload"},cancel:{fn:"sale.cancelOrder",input:(e,t)=>({id:t.id,expectedRevision:Number(t.data.record.revision)}),after:"reload",confirm:e=>y(e,"modal.confirmCancel")},bill:{fn:"sale.createInvoice",input:(e,t)=>({id:t.data.draftId,orderId:t.id,...Ye(e,["journalId","revenueAccountId","receivableAccountId","taxAccountId","invoiceDate"])}),after:"reload"}}},Kf=Qa(ci);export{Kf as saleOrderModal,ci as saleOrderModalDefinition};