@ketvietlab/ketsuite 0.1.29 → 0.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (762) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/modules/account_backend/index.js +0 -6
  3. package/dist/modules/account_backend/index.js.map +1 -1
  4. package/dist/modules/account_backend/screens/account-defaults.d.ts.map +1 -1
  5. package/dist/modules/account_backend/screens/account-defaults.js +1 -1
  6. package/dist/modules/account_backend/screens/account-defaults.js.map +1 -1
  7. package/dist/modules/account_backend/screens/account-form.d.ts.map +1 -1
  8. package/dist/modules/account_backend/screens/account-form.js +3 -1
  9. package/dist/modules/account_backend/screens/account-form.js.map +1 -1
  10. package/dist/modules/account_backend/screens/accounts-list.d.ts.map +1 -1
  11. package/dist/modules/account_backend/screens/accounts-list.js +1 -1
  12. package/dist/modules/account_backend/screens/accounts-list.js.map +1 -1
  13. package/dist/modules/account_backend/screens/customer-invoice-form.d.ts.map +1 -1
  14. package/dist/modules/account_backend/screens/customer-invoice-form.js +1 -1
  15. package/dist/modules/account_backend/screens/customer-invoice-form.js.map +1 -1
  16. package/dist/modules/account_backend/screens/customer-invoices-list.d.ts.map +1 -1
  17. package/dist/modules/account_backend/screens/customer-invoices-list.js +1 -1
  18. package/dist/modules/account_backend/screens/customer-invoices-list.js.map +1 -1
  19. package/dist/modules/account_backend/screens/journal-entries-list.d.ts.map +1 -1
  20. package/dist/modules/account_backend/screens/journal-entries-list.js +1 -1
  21. package/dist/modules/account_backend/screens/journal-entries-list.js.map +1 -1
  22. package/dist/modules/account_backend/screens/journal-entry-create.d.ts.map +1 -1
  23. package/dist/modules/account_backend/screens/journal-entry-create.js +1 -1
  24. package/dist/modules/account_backend/screens/journal-entry-create.js.map +1 -1
  25. package/dist/modules/account_backend/screens/journal-form.d.ts.map +1 -1
  26. package/dist/modules/account_backend/screens/journal-form.js +3 -3
  27. package/dist/modules/account_backend/screens/journal-form.js.map +1 -1
  28. package/dist/modules/account_backend/screens/journals-list.d.ts.map +1 -1
  29. package/dist/modules/account_backend/screens/journals-list.js +1 -1
  30. package/dist/modules/account_backend/screens/journals-list.js.map +1 -1
  31. package/dist/modules/account_backend/screens/move-detail.d.ts.map +1 -1
  32. package/dist/modules/account_backend/screens/move-detail.js +3 -1
  33. package/dist/modules/account_backend/screens/move-detail.js.map +1 -1
  34. package/dist/modules/account_backend/screens/opening-balances.d.ts.map +1 -1
  35. package/dist/modules/account_backend/screens/opening-balances.js +2 -2
  36. package/dist/modules/account_backend/screens/opening-balances.js.map +1 -1
  37. package/dist/modules/account_backend/screens/overview.js +4 -2
  38. package/dist/modules/account_backend/screens/overview.js.map +1 -1
  39. package/dist/modules/account_backend/screens/payment-form.d.ts.map +1 -1
  40. package/dist/modules/account_backend/screens/payment-form.js +1 -1
  41. package/dist/modules/account_backend/screens/payment-form.js.map +1 -1
  42. package/dist/modules/account_backend/screens/payment-term-form.d.ts.map +1 -1
  43. package/dist/modules/account_backend/screens/payment-term-form.js +4 -2
  44. package/dist/modules/account_backend/screens/payment-term-form.js.map +1 -1
  45. package/dist/modules/account_backend/screens/payment-terms-list.d.ts.map +1 -1
  46. package/dist/modules/account_backend/screens/payment-terms-list.js +1 -1
  47. package/dist/modules/account_backend/screens/payment-terms-list.js.map +1 -1
  48. package/dist/modules/account_backend/screens/payments-list.d.ts.map +1 -1
  49. package/dist/modules/account_backend/screens/payments-list.js +1 -1
  50. package/dist/modules/account_backend/screens/payments-list.js.map +1 -1
  51. package/dist/modules/account_backend/screens/period-closes.d.ts.map +1 -1
  52. package/dist/modules/account_backend/screens/period-closes.js +1 -1
  53. package/dist/modules/account_backend/screens/period-closes.js.map +1 -1
  54. package/dist/modules/account_backend/screens/tax-form.d.ts.map +1 -1
  55. package/dist/modules/account_backend/screens/tax-form.js +3 -1
  56. package/dist/modules/account_backend/screens/tax-form.js.map +1 -1
  57. package/dist/modules/account_backend/screens/taxes-list.d.ts.map +1 -1
  58. package/dist/modules/account_backend/screens/taxes-list.js +1 -1
  59. package/dist/modules/account_backend/screens/taxes-list.js.map +1 -1
  60. package/dist/modules/account_backend/screens/vendor-bill-form.d.ts.map +1 -1
  61. package/dist/modules/account_backend/screens/vendor-bill-form.js +1 -1
  62. package/dist/modules/account_backend/screens/vendor-bill-form.js.map +1 -1
  63. package/dist/modules/account_backend/screens/vendor-bills-list.d.ts.map +1 -1
  64. package/dist/modules/account_backend/screens/vendor-bills-list.js +1 -1
  65. package/dist/modules/account_backend/screens/vendor-bills-list.js.map +1 -1
  66. package/dist/modules/account_partner_backend/screens/accounting-terms.d.ts.map +1 -1
  67. package/dist/modules/account_partner_backend/screens/accounting-terms.js +1 -1
  68. package/dist/modules/account_partner_backend/screens/accounting-terms.js.map +1 -1
  69. package/dist/modules/activity_backend/index.d.ts.map +1 -1
  70. package/dist/modules/activity_backend/index.js +0 -2
  71. package/dist/modules/activity_backend/index.js.map +1 -1
  72. package/dist/modules/activity_backend/screens/activities-list.d.ts.map +1 -1
  73. package/dist/modules/activity_backend/screens/activities-list.js +1 -1
  74. package/dist/modules/activity_backend/screens/activities-list.js.map +1 -1
  75. package/dist/modules/address_backend/index.d.ts.map +1 -1
  76. package/dist/modules/address_backend/index.js +0 -2
  77. package/dist/modules/address_backend/index.js.map +1 -1
  78. package/dist/modules/address_backend/screens/catalogs-list.d.ts.map +1 -1
  79. package/dist/modules/address_backend/screens/catalogs-list.js +1 -1
  80. package/dist/modules/address_backend/screens/catalogs-list.js.map +1 -1
  81. package/dist/modules/attendance_backend/screens/credentials.d.ts.map +1 -1
  82. package/dist/modules/attendance_backend/screens/credentials.js +1 -1
  83. package/dist/modules/attendance_backend/screens/credentials.js.map +1 -1
  84. package/dist/modules/attendance_backend/screens/period.d.ts.map +1 -1
  85. package/dist/modules/attendance_backend/screens/period.js +1 -1
  86. package/dist/modules/attendance_backend/screens/period.js.map +1 -1
  87. package/dist/modules/backend/current-company.d.ts +4 -0
  88. package/dist/modules/backend/current-company.d.ts.map +1 -0
  89. package/dist/modules/backend/current-company.js +27 -0
  90. package/dist/modules/backend/current-company.js.map +1 -0
  91. package/dist/modules/backend/design/client/backend-shell.d.mts +2 -2
  92. package/dist/modules/backend/design/client/backend-shell.d.mts.map +1 -1
  93. package/dist/modules/backend/design/client/backend-shell.mjs +1 -1
  94. package/dist/modules/backend/design/client/backend-shell.mjs.map +4 -4
  95. package/dist/modules/backend/design/client/ket-table.d.mts +2 -2
  96. package/dist/modules/backend/design/client/ket-table.d.mts.map +1 -1
  97. package/dist/modules/backend/design/client/ket-table.mjs +1 -1
  98. package/dist/modules/backend/design/client/ket-table.mjs.map +3 -3
  99. package/dist/modules/backend/design/client/search-filter.d.mts +2 -2
  100. package/dist/modules/backend/design/client/search-filter.d.mts.map +1 -1
  101. package/dist/modules/backend/design/client/search-filter.mjs +1 -1
  102. package/dist/modules/backend/design/client/search-filter.mjs.map +3 -3
  103. package/dist/modules/backend/design/forms.css +31 -0
  104. package/dist/modules/backend/index.d.ts +1 -0
  105. package/dist/modules/backend/index.d.ts.map +1 -1
  106. package/dist/modules/backend/index.js +1 -0
  107. package/dist/modules/backend/index.js.map +1 -1
  108. package/dist/modules/backend/optional-read.d.ts +4 -0
  109. package/dist/modules/backend/optional-read.d.ts.map +1 -0
  110. package/dist/modules/backend/optional-read.js +7 -0
  111. package/dist/modules/backend/optional-read.js.map +1 -0
  112. package/dist/modules/company_backend/index.d.ts.map +1 -1
  113. package/dist/modules/company_backend/index.js +0 -2
  114. package/dist/modules/company_backend/index.js.map +1 -1
  115. package/dist/modules/company_backend/screens/branch-form.d.ts.map +1 -1
  116. package/dist/modules/company_backend/screens/branch-form.js +3 -1
  117. package/dist/modules/company_backend/screens/branch-form.js.map +1 -1
  118. package/dist/modules/company_backend/screens/companies-list.d.ts.map +1 -1
  119. package/dist/modules/company_backend/screens/companies-list.js +1 -1
  120. package/dist/modules/company_backend/screens/companies-list.js.map +1 -1
  121. package/dist/modules/company_backend/screens/company-form.d.ts.map +1 -1
  122. package/dist/modules/company_backend/screens/company-form.js +1 -3
  123. package/dist/modules/company_backend/screens/company-form.js.map +1 -1
  124. package/dist/modules/company_backend/screens/context.d.ts.map +1 -1
  125. package/dist/modules/company_backend/screens/context.js +1 -1
  126. package/dist/modules/company_backend/screens/context.js.map +1 -1
  127. package/dist/modules/company_backend/screens/hierarchy.d.ts.map +1 -1
  128. package/dist/modules/company_backend/screens/hierarchy.js +1 -1
  129. package/dist/modules/company_backend/screens/hierarchy.js.map +1 -1
  130. package/dist/modules/crm_backend/client/crm-case-modal.d.mts +7 -7
  131. package/dist/modules/crm_backend/client/crm-case-modal.d.mts.map +1 -1
  132. package/dist/modules/crm_backend/client/crm-case-modal.mjs +1 -1
  133. package/dist/modules/crm_backend/client/crm-case-modal.mjs.map +3 -3
  134. package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts +50 -50
  135. package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts.map +1 -1
  136. package/dist/modules/crm_backend/client/crm-configuration-modal.mjs +1 -1
  137. package/dist/modules/crm_backend/client/crm-configuration-modal.mjs.map +3 -3
  138. package/dist/modules/crm_backend/messages.d.ts +0 -10
  139. package/dist/modules/crm_backend/messages.d.ts.map +1 -1
  140. package/dist/modules/crm_backend/messages.js +0 -10
  141. package/dist/modules/crm_backend/messages.js.map +1 -1
  142. package/dist/modules/crm_backend/screens/activity-planner.d.ts.map +1 -1
  143. package/dist/modules/crm_backend/screens/activity-planner.js +1 -1
  144. package/dist/modules/crm_backend/screens/activity-planner.js.map +1 -1
  145. package/dist/modules/crm_backend/screens/case-create.d.ts.map +1 -1
  146. package/dist/modules/crm_backend/screens/case-create.js +1 -1
  147. package/dist/modules/crm_backend/screens/case-create.js.map +1 -1
  148. package/dist/modules/crm_backend/screens/case-detail.d.ts.map +1 -1
  149. package/dist/modules/crm_backend/screens/case-detail.js +2 -2
  150. package/dist/modules/crm_backend/screens/case-detail.js.map +1 -1
  151. package/dist/modules/crm_backend/screens/cases-list.d.ts.map +1 -1
  152. package/dist/modules/crm_backend/screens/cases-list.js +1 -1
  153. package/dist/modules/crm_backend/screens/cases-list.js.map +1 -1
  154. package/dist/modules/crm_backend/screens/configuration.d.ts.map +1 -1
  155. package/dist/modules/crm_backend/screens/configuration.js +1 -1
  156. package/dist/modules/crm_backend/screens/configuration.js.map +1 -1
  157. package/dist/modules/crm_backend/screens/leaderboard.d.ts.map +1 -1
  158. package/dist/modules/crm_backend/screens/leaderboard.js +1 -1
  159. package/dist/modules/crm_backend/screens/leaderboard.js.map +1 -1
  160. package/dist/modules/crm_backend/screens/pipeline.d.ts.map +1 -1
  161. package/dist/modules/crm_backend/screens/pipeline.js +1 -1
  162. package/dist/modules/crm_backend/screens/pipeline.js.map +1 -1
  163. package/dist/modules/flow/domain/command-check.d.ts +3 -0
  164. package/dist/modules/flow/domain/command-check.d.ts.map +1 -0
  165. package/dist/modules/flow/domain/command-check.js +9 -0
  166. package/dist/modules/flow/domain/command-check.js.map +1 -0
  167. package/dist/modules/flow/domain/command.d.ts +33 -0
  168. package/dist/modules/flow/domain/command.d.ts.map +1 -0
  169. package/dist/modules/flow/domain/command.js +35 -0
  170. package/dist/modules/flow/domain/command.js.map +1 -0
  171. package/dist/modules/flow/domain/issue-bulk.d.ts +50 -0
  172. package/dist/modules/flow/domain/issue-bulk.d.ts.map +1 -0
  173. package/dist/modules/flow/domain/issue-bulk.js +97 -0
  174. package/dist/modules/flow/domain/issue-bulk.js.map +1 -0
  175. package/dist/modules/flow/domain/issue-dependency.d.ts +19 -0
  176. package/dist/modules/flow/domain/issue-dependency.d.ts.map +1 -0
  177. package/dist/modules/flow/domain/issue-dependency.js +59 -0
  178. package/dist/modules/flow/domain/issue-dependency.js.map +1 -0
  179. package/dist/modules/flow/domain/issue-discussion.d.ts +52 -0
  180. package/dist/modules/flow/domain/issue-discussion.d.ts.map +1 -0
  181. package/dist/modules/flow/domain/issue-discussion.js +114 -0
  182. package/dist/modules/flow/domain/issue-discussion.js.map +1 -0
  183. package/dist/modules/flow/domain/issue-transfer.d.ts +62 -0
  184. package/dist/modules/flow/domain/issue-transfer.d.ts.map +1 -0
  185. package/dist/modules/flow/domain/issue-transfer.js +171 -0
  186. package/dist/modules/flow/domain/issue-transfer.js.map +1 -0
  187. package/dist/modules/flow/domain/issue-validation.d.ts +68 -0
  188. package/dist/modules/flow/domain/issue-validation.d.ts.map +1 -0
  189. package/dist/modules/flow/domain/issue-validation.js +136 -0
  190. package/dist/modules/flow/domain/issue-validation.js.map +1 -0
  191. package/dist/modules/flow/domain/issue-write.d.ts +118 -0
  192. package/dist/modules/flow/domain/issue-write.d.ts.map +1 -0
  193. package/dist/modules/flow/domain/issue-write.js +372 -0
  194. package/dist/modules/flow/domain/issue-write.js.map +1 -0
  195. package/dist/modules/flow/domain/sprint-lifecycle.d.ts +61 -0
  196. package/dist/modules/flow/domain/sprint-lifecycle.d.ts.map +1 -0
  197. package/dist/modules/flow/domain/sprint-lifecycle.js +145 -0
  198. package/dist/modules/flow/domain/sprint-lifecycle.js.map +1 -0
  199. package/dist/modules/flow/functions/board.d.ts +7 -0
  200. package/dist/modules/flow/functions/board.d.ts.map +1 -0
  201. package/dist/modules/flow/functions/board.js +59 -0
  202. package/dist/modules/flow/functions/board.js.map +1 -0
  203. package/dist/modules/flow/functions/column.d.ts +8 -0
  204. package/dist/modules/flow/functions/column.d.ts.map +1 -0
  205. package/dist/modules/flow/functions/column.js +64 -0
  206. package/dist/modules/flow/functions/column.js.map +1 -0
  207. package/dist/modules/flow/functions/effects.d.ts +21 -0
  208. package/dist/modules/flow/functions/effects.d.ts.map +1 -0
  209. package/dist/modules/flow/functions/effects.js +96 -0
  210. package/dist/modules/flow/functions/effects.js.map +1 -0
  211. package/dist/modules/flow/functions/entity-save.d.ts +4 -0
  212. package/dist/modules/flow/functions/entity-save.d.ts.map +1 -0
  213. package/dist/modules/flow/functions/entity-save.js +60 -0
  214. package/dist/modules/flow/functions/entity-save.js.map +1 -0
  215. package/dist/modules/flow/functions/epic.d.ts +26 -0
  216. package/dist/modules/flow/functions/epic.d.ts.map +1 -0
  217. package/dist/modules/flow/functions/epic.js +151 -0
  218. package/dist/modules/flow/functions/epic.js.map +1 -0
  219. package/dist/modules/flow/functions/field.d.ts +9 -0
  220. package/dist/modules/flow/functions/field.d.ts.map +1 -0
  221. package/dist/modules/flow/functions/field.js +117 -0
  222. package/dist/modules/flow/functions/field.js.map +1 -0
  223. package/dist/modules/flow/functions/index.d.ts +5 -0
  224. package/dist/modules/flow/functions/index.d.ts.map +1 -0
  225. package/dist/modules/flow/functions/index.js +42 -0
  226. package/dist/modules/flow/functions/index.js.map +1 -0
  227. package/dist/modules/flow/functions/issue-batch.d.ts +6 -0
  228. package/dist/modules/flow/functions/issue-batch.d.ts.map +1 -0
  229. package/dist/modules/flow/functions/issue-batch.js +149 -0
  230. package/dist/modules/flow/functions/issue-batch.js.map +1 -0
  231. package/dist/modules/flow/functions/issue-dependency.d.ts +8 -0
  232. package/dist/modules/flow/functions/issue-dependency.d.ts.map +1 -0
  233. package/dist/modules/flow/functions/issue-dependency.js +54 -0
  234. package/dist/modules/flow/functions/issue-dependency.js.map +1 -0
  235. package/dist/modules/flow/functions/issue-discussion.d.ts +6 -0
  236. package/dist/modules/flow/functions/issue-discussion.d.ts.map +1 -0
  237. package/dist/modules/flow/functions/issue-discussion.js +86 -0
  238. package/dist/modules/flow/functions/issue-discussion.js.map +1 -0
  239. package/dist/modules/flow/functions/issue-read.d.ts +18 -0
  240. package/dist/modules/flow/functions/issue-read.d.ts.map +1 -0
  241. package/dist/modules/flow/functions/issue-read.js +159 -0
  242. package/dist/modules/flow/functions/issue-read.js.map +1 -0
  243. package/dist/modules/flow/functions/issue-write.d.ts +9 -0
  244. package/dist/modules/flow/functions/issue-write.d.ts.map +1 -0
  245. package/dist/modules/flow/functions/issue-write.js +149 -0
  246. package/dist/modules/flow/functions/issue-write.js.map +1 -0
  247. package/dist/modules/flow/functions/issueType.d.ts +8 -0
  248. package/dist/modules/flow/functions/issueType.d.ts.map +1 -0
  249. package/dist/modules/flow/functions/issueType.js +66 -0
  250. package/dist/modules/flow/functions/issueType.js.map +1 -0
  251. package/dist/modules/flow/functions/page.d.ts +22 -0
  252. package/dist/modules/flow/functions/page.d.ts.map +1 -0
  253. package/dist/modules/flow/functions/page.js +202 -0
  254. package/dist/modules/flow/functions/page.js.map +1 -0
  255. package/dist/modules/flow/functions/project.d.ts +26 -0
  256. package/dist/modules/flow/functions/project.d.ts.map +1 -0
  257. package/dist/modules/flow/functions/project.js +381 -0
  258. package/dist/modules/flow/functions/project.js.map +1 -0
  259. package/dist/modules/flow/functions/sprint.d.ts +17 -0
  260. package/dist/modules/flow/functions/sprint.d.ts.map +1 -0
  261. package/dist/modules/flow/functions/sprint.js +173 -0
  262. package/dist/modules/flow/functions/sprint.js.map +1 -0
  263. package/dist/modules/flow/functions/tag.d.ts +14 -0
  264. package/dist/modules/flow/functions/tag.d.ts.map +1 -0
  265. package/dist/modules/flow/functions/tag.js +88 -0
  266. package/dist/modules/flow/functions/tag.js.map +1 -0
  267. package/dist/modules/flow/index.d.ts +8 -2
  268. package/dist/modules/flow/index.d.ts.map +1 -1
  269. package/dist/modules/flow/index.js +7 -2
  270. package/dist/modules/flow/index.js.map +1 -1
  271. package/dist/modules/flow/pages.d.ts +1 -1
  272. package/dist/modules/flow/pages.d.ts.map +1 -1
  273. package/dist/modules/flow/pages.js +1 -1
  274. package/dist/modules/flow/pages.js.map +1 -1
  275. package/dist/modules/flow/queries/calendar.d.ts +21 -0
  276. package/dist/modules/flow/queries/calendar.d.ts.map +1 -0
  277. package/dist/modules/flow/queries/calendar.js +31 -0
  278. package/dist/modules/flow/queries/calendar.js.map +1 -0
  279. package/dist/modules/flow/queries/issue-dependencies.d.ts +17 -0
  280. package/dist/modules/flow/queries/issue-dependencies.d.ts.map +1 -0
  281. package/dist/modules/flow/queries/issue-dependencies.js +46 -0
  282. package/dist/modules/flow/queries/issue-dependencies.js.map +1 -0
  283. package/dist/modules/flow/queries/issue-followers.d.ts +6 -0
  284. package/dist/modules/flow/queries/issue-followers.d.ts.map +1 -0
  285. package/dist/modules/flow/queries/issue-followers.js +18 -0
  286. package/dist/modules/flow/queries/issue-followers.js.map +1 -0
  287. package/dist/modules/flow/queries/issue-list.d.ts +153 -0
  288. package/dist/modules/flow/queries/issue-list.d.ts.map +1 -0
  289. package/dist/modules/flow/queries/issue-list.js +439 -0
  290. package/dist/modules/flow/queries/issue-list.js.map +1 -0
  291. package/dist/modules/flow/queries/options.d.ts +4 -0
  292. package/dist/modules/flow/queries/options.d.ts.map +1 -0
  293. package/dist/modules/flow/queries/options.js +13 -0
  294. package/dist/modules/flow/queries/options.js.map +1 -0
  295. package/dist/modules/flow/queries/progress.d.ts +24 -0
  296. package/dist/modules/flow/queries/progress.d.ts.map +1 -0
  297. package/dist/modules/flow/queries/progress.js +54 -0
  298. package/dist/modules/flow/queries/progress.js.map +1 -0
  299. package/dist/modules/flow/queries/project-list.d.ts +4 -0
  300. package/dist/modules/flow/queries/project-list.d.ts.map +1 -0
  301. package/dist/modules/flow/queries/project-list.js +19 -0
  302. package/dist/modules/flow/queries/project-list.js.map +1 -0
  303. package/dist/modules/flow_backend/messages.d.ts +1 -2
  304. package/dist/modules/flow_backend/messages.d.ts.map +1 -1
  305. package/dist/modules/flow_backend/messages.js +0 -2
  306. package/dist/modules/flow_backend/messages.js.map +1 -1
  307. package/dist/modules/flow_backend/routes.js +1 -1
  308. package/dist/modules/flow_backend/routes.js.map +1 -1
  309. package/dist/modules/flow_backend/screens/all-epics.d.ts.map +1 -1
  310. package/dist/modules/flow_backend/screens/all-epics.js +1 -1
  311. package/dist/modules/flow_backend/screens/all-epics.js.map +1 -1
  312. package/dist/modules/flow_backend/screens/all-pages.d.ts.map +1 -1
  313. package/dist/modules/flow_backend/screens/all-pages.js +1 -1
  314. package/dist/modules/flow_backend/screens/all-pages.js.map +1 -1
  315. package/dist/modules/flow_backend/screens/epic-detail.js +1 -1
  316. package/dist/modules/flow_backend/screens/epic-detail.js.map +1 -1
  317. package/dist/modules/flow_backend/screens/gantt.d.ts.map +1 -1
  318. package/dist/modules/flow_backend/screens/gantt.js +1 -1
  319. package/dist/modules/flow_backend/screens/gantt.js.map +1 -1
  320. package/dist/modules/flow_backend/screens/issue-detail.js +2 -1
  321. package/dist/modules/flow_backend/screens/issue-detail.js.map +1 -1
  322. package/dist/modules/flow_backend/screens/issues.d.ts.map +1 -1
  323. package/dist/modules/flow_backend/screens/issues.js +1 -1
  324. package/dist/modules/flow_backend/screens/issues.js.map +1 -1
  325. package/dist/modules/flow_backend/screens/map.js +1 -1
  326. package/dist/modules/flow_backend/screens/map.js.map +1 -1
  327. package/dist/modules/flow_backend/screens/my-work.d.ts.map +1 -1
  328. package/dist/modules/flow_backend/screens/my-work.js +1 -1
  329. package/dist/modules/flow_backend/screens/my-work.js.map +1 -1
  330. package/dist/modules/flow_backend/screens/page-detail.js +1 -1
  331. package/dist/modules/flow_backend/screens/page-detail.js.map +1 -1
  332. package/dist/modules/flow_backend/screens/project-create.d.ts.map +1 -1
  333. package/dist/modules/flow_backend/screens/project-create.js +1 -1
  334. package/dist/modules/flow_backend/screens/project-create.js.map +1 -1
  335. package/dist/modules/flow_backend/screens/project-pages.d.ts.map +1 -1
  336. package/dist/modules/flow_backend/screens/project-pages.js +1 -1
  337. package/dist/modules/flow_backend/screens/project-pages.js.map +1 -1
  338. package/dist/modules/flow_backend/screens/projects-list.d.ts.map +1 -1
  339. package/dist/modules/flow_backend/screens/projects-list.js +1 -1
  340. package/dist/modules/flow_backend/screens/projects-list.js.map +1 -1
  341. package/dist/modules/flow_backend/screens/sprints.d.ts.map +1 -1
  342. package/dist/modules/flow_backend/screens/sprints.js +1 -1
  343. package/dist/modules/flow_backend/screens/sprints.js.map +1 -1
  344. package/dist/modules/flow_staff_channel/channel-routes.js +1 -1
  345. package/dist/modules/flow_staff_channel/channel-routes.js.map +1 -1
  346. package/dist/modules/hospitality_billing/messages.d.ts.map +1 -1
  347. package/dist/modules/hospitality_billing/messages.js +0 -2
  348. package/dist/modules/hospitality_billing/messages.js.map +1 -1
  349. package/dist/modules/hospitality_billing/screens/billing.d.ts.map +1 -1
  350. package/dist/modules/hospitality_billing/screens/billing.js +1 -1
  351. package/dist/modules/hospitality_billing/screens/billing.js.map +1 -1
  352. package/dist/modules/hospitality_billing/screens/page-frame.d.ts +1 -2
  353. package/dist/modules/hospitality_billing/screens/page-frame.d.ts.map +1 -1
  354. package/dist/modules/hospitality_billing/screens/page-frame.js +1 -1
  355. package/dist/modules/hospitality_billing/screens/page-frame.js.map +1 -1
  356. package/dist/modules/hospitality_core/messages.js +2 -2
  357. package/dist/modules/hospitality_core/messages.js.map +1 -1
  358. package/dist/modules/hospitality_core/screens/check-out-prep.d.ts.map +1 -1
  359. package/dist/modules/hospitality_core/screens/check-out-prep.js +1 -1
  360. package/dist/modules/hospitality_core/screens/check-out-prep.js.map +1 -1
  361. package/dist/modules/hospitality_core/screens/front-desk.d.ts.map +1 -1
  362. package/dist/modules/hospitality_core/screens/front-desk.js +40 -40
  363. package/dist/modules/hospitality_core/screens/front-desk.js.map +1 -1
  364. package/dist/modules/hospitality_core/screens/page-frame.d.ts +2 -3
  365. package/dist/modules/hospitality_core/screens/page-frame.d.ts.map +1 -1
  366. package/dist/modules/hospitality_core/screens/page-frame.js +3 -3
  367. package/dist/modules/hospitality_core/screens/page-frame.js.map +1 -1
  368. package/dist/modules/hospitality_core/screens/tape-chart.d.ts.map +1 -1
  369. package/dist/modules/hospitality_core/screens/tape-chart.js +3 -12
  370. package/dist/modules/hospitality_core/screens/tape-chart.js.map +1 -1
  371. package/dist/modules/hr_backend/screens/employee-form.d.ts.map +1 -1
  372. package/dist/modules/hr_backend/screens/employee-form.js +1 -1
  373. package/dist/modules/hr_backend/screens/employee-form.js.map +1 -1
  374. package/dist/modules/hr_backend/screens/leaves-list.d.ts.map +1 -1
  375. package/dist/modules/hr_backend/screens/leaves-list.js +1 -1
  376. package/dist/modules/hr_backend/screens/leaves-list.js.map +1 -1
  377. package/dist/modules/livedoc/islands.d.ts +9 -0
  378. package/dist/modules/livedoc/islands.d.ts.map +1 -1
  379. package/dist/modules/loyalty_backend/messages.d.ts +0 -10
  380. package/dist/modules/loyalty_backend/messages.d.ts.map +1 -1
  381. package/dist/modules/loyalty_backend/messages.js +0 -10
  382. package/dist/modules/loyalty_backend/messages.js.map +1 -1
  383. package/dist/modules/loyalty_backend/screens/index.d.ts.map +1 -1
  384. package/dist/modules/loyalty_backend/screens/index.js +5 -5
  385. package/dist/modules/loyalty_backend/screens/index.js.map +1 -1
  386. package/dist/modules/loyalty_backend/screens/page-frame.d.ts +2 -3
  387. package/dist/modules/loyalty_backend/screens/page-frame.d.ts.map +1 -1
  388. package/dist/modules/loyalty_backend/screens/page-frame.js +2 -2
  389. package/dist/modules/loyalty_backend/screens/page-frame.js.map +1 -1
  390. package/dist/modules/mail_backend/index.d.ts.map +1 -1
  391. package/dist/modules/mail_backend/index.js +0 -2
  392. package/dist/modules/mail_backend/index.js.map +1 -1
  393. package/dist/modules/mail_backend/screens/inbox-list.d.ts.map +1 -1
  394. package/dist/modules/mail_backend/screens/inbox-list.js +1 -1
  395. package/dist/modules/mail_backend/screens/inbox-list.js.map +1 -1
  396. package/dist/modules/mail_inbound_backend/index.d.ts.map +1 -1
  397. package/dist/modules/mail_inbound_backend/index.js +0 -2
  398. package/dist/modules/mail_inbound_backend/index.js.map +1 -1
  399. package/dist/modules/mail_inbound_backend/screens/inbound-list.d.ts.map +1 -1
  400. package/dist/modules/mail_inbound_backend/screens/inbound-list.js +1 -1
  401. package/dist/modules/mail_inbound_backend/screens/inbound-list.js.map +1 -1
  402. package/dist/modules/mail_transport_backend/index.d.ts.map +1 -1
  403. package/dist/modules/mail_transport_backend/index.js +0 -2
  404. package/dist/modules/mail_transport_backend/index.js.map +1 -1
  405. package/dist/modules/mail_transport_backend/screens/outbox-list.d.ts.map +1 -1
  406. package/dist/modules/mail_transport_backend/screens/outbox-list.js +1 -1
  407. package/dist/modules/mail_transport_backend/screens/outbox-list.js.map +1 -1
  408. package/dist/modules/manufacturing_backend/screens/order-execution.d.ts.map +1 -1
  409. package/dist/modules/manufacturing_backend/screens/order-execution.js +1 -1
  410. package/dist/modules/manufacturing_backend/screens/order-execution.js.map +1 -1
  411. package/dist/modules/oauth_backend/messages.d.ts +0 -4
  412. package/dist/modules/oauth_backend/messages.d.ts.map +1 -1
  413. package/dist/modules/oauth_backend/messages.js +0 -4
  414. package/dist/modules/oauth_backend/messages.js.map +1 -1
  415. package/dist/modules/oauth_backend/screens/index.d.ts.map +1 -1
  416. package/dist/modules/oauth_backend/screens/index.js +5 -5
  417. package/dist/modules/oauth_backend/screens/index.js.map +1 -1
  418. package/dist/modules/partner_backend/screens/form.d.ts.map +1 -1
  419. package/dist/modules/partner_backend/screens/form.js +3 -1
  420. package/dist/modules/partner_backend/screens/form.js.map +1 -1
  421. package/dist/modules/partner_backend/screens/list.d.ts.map +1 -1
  422. package/dist/modules/partner_backend/screens/list.js +1 -1
  423. package/dist/modules/partner_backend/screens/list.js.map +1 -1
  424. package/dist/modules/partner_backend/screens/new.d.ts.map +1 -1
  425. package/dist/modules/partner_backend/screens/new.js +1 -1
  426. package/dist/modules/partner_backend/screens/new.js.map +1 -1
  427. package/dist/modules/pricing_backend/index.js +0 -2
  428. package/dist/modules/pricing_backend/index.js.map +1 -1
  429. package/dist/modules/pricing_backend/screens/pricelist-detail.d.ts.map +1 -1
  430. package/dist/modules/pricing_backend/screens/pricelist-detail.js +1 -1
  431. package/dist/modules/pricing_backend/screens/pricelist-detail.js.map +1 -1
  432. package/dist/modules/pricing_backend/screens/pricelists-list.d.ts.map +1 -1
  433. package/dist/modules/pricing_backend/screens/pricelists-list.js +1 -1
  434. package/dist/modules/pricing_backend/screens/pricelists-list.js.map +1 -1
  435. package/dist/modules/product_backend/client/attribute-modal.d.mts +4 -4
  436. package/dist/modules/product_backend/client/attribute-modal.d.mts.map +1 -1
  437. package/dist/modules/product_backend/client/attribute-modal.mjs +1 -1
  438. package/dist/modules/product_backend/client/attribute-modal.mjs.map +3 -3
  439. package/dist/modules/product_backend/client/product-modal.d.mts +8 -8
  440. package/dist/modules/product_backend/client/product-modal.d.mts.map +1 -1
  441. package/dist/modules/product_backend/client/product-modal.mjs +1 -1
  442. package/dist/modules/product_backend/client/product-modal.mjs.map +3 -3
  443. package/dist/modules/product_backend/client/variant-editor.d.mts +3 -3
  444. package/dist/modules/product_backend/client/variant-editor.d.mts.map +1 -1
  445. package/dist/modules/product_backend/client/variant-editor.mjs +1 -1
  446. package/dist/modules/product_backend/client/variant-editor.mjs.map +3 -3
  447. package/dist/modules/product_backend/screens/detail.d.ts.map +1 -1
  448. package/dist/modules/product_backend/screens/detail.js +3 -2
  449. package/dist/modules/product_backend/screens/detail.js.map +1 -1
  450. package/dist/modules/product_backend/screens/variant.d.ts.map +1 -1
  451. package/dist/modules/product_backend/screens/variant.js +3 -2
  452. package/dist/modules/product_backend/screens/variant.js.map +1 -1
  453. package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts +185 -0
  454. package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts.map +1 -0
  455. package/dist/modules/purchase_backend/client/purchase-order-modal.mjs +2 -0
  456. package/dist/modules/purchase_backend/client/purchase-order-modal.mjs.map +7 -0
  457. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts +52 -0
  458. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts.map +1 -0
  459. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs +2 -0
  460. package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs.map +7 -0
  461. package/dist/modules/purchase_backend/index.js +83 -14
  462. package/dist/modules/purchase_backend/index.js.map +1 -1
  463. package/dist/modules/purchase_backend/modal/context.d.ts +4 -0
  464. package/dist/modules/purchase_backend/modal/context.d.ts.map +1 -0
  465. package/dist/modules/purchase_backend/modal/context.js +94 -0
  466. package/dist/modules/purchase_backend/modal/context.js.map +1 -0
  467. package/dist/modules/purchase_backend/modal/order-modal-view.d.ts +18 -0
  468. package/dist/modules/purchase_backend/modal/order-modal-view.d.ts.map +1 -0
  469. package/dist/modules/purchase_backend/modal/order-modal-view.js +290 -0
  470. package/dist/modules/purchase_backend/modal/order-modal-view.js.map +1 -0
  471. package/dist/modules/purchase_backend/modal/pricelist-context.d.ts +3 -0
  472. package/dist/modules/purchase_backend/modal/pricelist-context.d.ts.map +1 -0
  473. package/dist/modules/purchase_backend/modal/pricelist-context.js +36 -0
  474. package/dist/modules/purchase_backend/modal/pricelist-context.js.map +1 -0
  475. package/dist/modules/purchase_backend/modal/pricelist-view.d.ts +12 -0
  476. package/dist/modules/purchase_backend/modal/pricelist-view.d.ts.map +1 -0
  477. package/dist/modules/purchase_backend/modal/pricelist-view.js +78 -0
  478. package/dist/modules/purchase_backend/modal/pricelist-view.js.map +1 -0
  479. package/dist/modules/purchase_backend/screens/order-detail.d.ts.map +1 -1
  480. package/dist/modules/purchase_backend/screens/order-detail.js +4 -2
  481. package/dist/modules/purchase_backend/screens/order-detail.js.map +1 -1
  482. package/dist/modules/purchase_backend/screens/overview.d.ts +5 -0
  483. package/dist/modules/purchase_backend/screens/overview.d.ts.map +1 -1
  484. package/dist/modules/purchase_backend/screens/overview.js +27 -6
  485. package/dist/modules/purchase_backend/screens/overview.js.map +1 -1
  486. package/dist/modules/purchase_backend/screens/rfq-create.d.ts.map +1 -1
  487. package/dist/modules/purchase_backend/screens/rfq-create.js +1 -1
  488. package/dist/modules/purchase_backend/screens/rfq-create.js.map +1 -1
  489. package/dist/modules/purchase_backend/screens/rfqs-list.d.ts +1 -1
  490. package/dist/modules/purchase_backend/screens/rfqs-list.d.ts.map +1 -1
  491. package/dist/modules/purchase_backend/screens/rfqs-list.js +1 -1
  492. package/dist/modules/purchase_backend/screens/rfqs-list.js.map +1 -1
  493. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.d.ts.map +1 -1
  494. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js +1 -1
  495. package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js.map +1 -1
  496. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts +2 -1
  497. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts.map +1 -1
  498. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js +2 -2
  499. package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js.map +1 -1
  500. package/dist/modules/purchase_backend/search.d.ts +1 -1
  501. package/dist/modules/sale/functions/line-edit.d.ts +4 -0
  502. package/dist/modules/sale/functions/line-edit.d.ts.map +1 -0
  503. package/dist/modules/sale/functions/line-edit.js +120 -0
  504. package/dist/modules/sale/functions/line-edit.js.map +1 -0
  505. package/dist/modules/sale/index.d.ts.map +1 -1
  506. package/dist/modules/sale/index.js +16 -1
  507. package/dist/modules/sale/index.js.map +1 -1
  508. package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts +53 -0
  509. package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts.map +1 -0
  510. package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs +2 -0
  511. package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs.map +7 -0
  512. package/dist/modules/sale_backend/client/sale-order-modal.d.mts +161 -0
  513. package/dist/modules/sale_backend/client/sale-order-modal.d.mts.map +1 -0
  514. package/dist/modules/sale_backend/client/sale-order-modal.mjs +2 -0
  515. package/dist/modules/sale_backend/client/sale-order-modal.mjs.map +7 -0
  516. package/dist/modules/sale_backend/index.js +81 -20
  517. package/dist/modules/sale_backend/index.js.map +1 -1
  518. package/dist/modules/sale_backend/modal/context.d.ts +4 -0
  519. package/dist/modules/sale_backend/modal/context.d.ts.map +1 -0
  520. package/dist/modules/sale_backend/modal/context.js +94 -0
  521. package/dist/modules/sale_backend/modal/context.js.map +1 -0
  522. package/dist/modules/sale_backend/modal/order-modal-view.d.ts +18 -0
  523. package/dist/modules/sale_backend/modal/order-modal-view.d.ts.map +1 -0
  524. package/dist/modules/sale_backend/modal/order-modal-view.js +289 -0
  525. package/dist/modules/sale_backend/modal/order-modal-view.js.map +1 -0
  526. package/dist/modules/sale_backend/modal/policy-context.d.ts +3 -0
  527. package/dist/modules/sale_backend/modal/policy-context.d.ts.map +1 -0
  528. package/dist/modules/sale_backend/modal/policy-context.js +26 -0
  529. package/dist/modules/sale_backend/modal/policy-context.js.map +1 -0
  530. package/dist/modules/sale_backend/modal/policy-view.d.ts +11 -0
  531. package/dist/modules/sale_backend/modal/policy-view.d.ts.map +1 -0
  532. package/dist/modules/sale_backend/modal/policy-view.js +70 -0
  533. package/dist/modules/sale_backend/modal/policy-view.js.map +1 -0
  534. package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts +1 -1
  535. package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts.map +1 -1
  536. package/dist/modules/sale_backend/screens/invoicing-policies-list.js +1 -1
  537. package/dist/modules/sale_backend/screens/invoicing-policies-list.js.map +1 -1
  538. package/dist/modules/sale_backend/screens/invoicing-policy-create.d.ts.map +1 -1
  539. package/dist/modules/sale_backend/screens/invoicing-policy-create.js +1 -1
  540. package/dist/modules/sale_backend/screens/invoicing-policy-create.js.map +1 -1
  541. package/dist/modules/sale_backend/screens/order-detail.d.ts.map +1 -1
  542. package/dist/modules/sale_backend/screens/order-detail.js +3 -1
  543. package/dist/modules/sale_backend/screens/order-detail.js.map +1 -1
  544. package/dist/modules/sale_backend/screens/overview.d.ts +3 -0
  545. package/dist/modules/sale_backend/screens/overview.d.ts.map +1 -1
  546. package/dist/modules/sale_backend/screens/overview.js +22 -14
  547. package/dist/modules/sale_backend/screens/overview.js.map +1 -1
  548. package/dist/modules/sale_backend/screens/quotation-create.d.ts.map +1 -1
  549. package/dist/modules/sale_backend/screens/quotation-create.js +1 -1
  550. package/dist/modules/sale_backend/screens/quotation-create.js.map +1 -1
  551. package/dist/modules/sale_backend/screens/quotations-list.d.ts +1 -1
  552. package/dist/modules/sale_backend/screens/quotations-list.d.ts.map +1 -1
  553. package/dist/modules/sale_backend/screens/quotations-list.js +1 -1
  554. package/dist/modules/sale_backend/screens/quotations-list.js.map +1 -1
  555. package/dist/modules/sale_backend/screens/sales-orders-list.d.ts.map +1 -1
  556. package/dist/modules/sale_backend/screens/sales-orders-list.js +1 -1
  557. package/dist/modules/sale_backend/screens/sales-orders-list.js.map +1 -1
  558. package/dist/modules/stock/functions/inventory-preview.d.ts +4 -0
  559. package/dist/modules/stock/functions/inventory-preview.d.ts.map +1 -0
  560. package/dist/modules/stock/functions/inventory-preview.js +68 -0
  561. package/dist/modules/stock/functions/inventory-preview.js.map +1 -0
  562. package/dist/modules/stock/index.d.ts.map +1 -1
  563. package/dist/modules/stock/index.js +14 -1
  564. package/dist/modules/stock/index.js.map +1 -1
  565. package/dist/modules/stock_backend/client/inventory-count-modal.d.mts +60 -0
  566. package/dist/modules/stock_backend/client/inventory-count-modal.d.mts.map +1 -0
  567. package/dist/modules/stock_backend/client/inventory-count-modal.mjs +2 -0
  568. package/dist/modules/stock_backend/client/inventory-count-modal.mjs.map +7 -0
  569. package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts +105 -0
  570. package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts.map +1 -0
  571. package/dist/modules/stock_backend/client/stock-configuration-modal.mjs +2 -0
  572. package/dist/modules/stock_backend/client/stock-configuration-modal.mjs.map +7 -0
  573. package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts +130 -0
  574. package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts.map +1 -0
  575. package/dist/modules/stock_backend/client/stock-transfer-modal.mjs +2 -0
  576. package/dist/modules/stock_backend/client/stock-transfer-modal.mjs.map +7 -0
  577. package/dist/modules/stock_backend/functions/index.d.ts +10 -0
  578. package/dist/modules/stock_backend/functions/index.d.ts.map +1 -0
  579. package/dist/modules/stock_backend/functions/index.js +20 -0
  580. package/dist/modules/stock_backend/functions/index.js.map +1 -0
  581. package/dist/modules/stock_backend/functions.d.ts +1 -9
  582. package/dist/modules/stock_backend/functions.d.ts.map +1 -1
  583. package/dist/modules/stock_backend/functions.js +1 -18
  584. package/dist/modules/stock_backend/functions.js.map +1 -1
  585. package/dist/modules/stock_backend/index.js +52 -0
  586. package/dist/modules/stock_backend/index.js.map +1 -1
  587. package/dist/modules/stock_backend/islands.d.ts +8 -0
  588. package/dist/modules/stock_backend/islands.d.ts.map +1 -1
  589. package/dist/modules/stock_backend/islands.js +41 -0
  590. package/dist/modules/stock_backend/islands.js.map +1 -1
  591. package/dist/modules/stock_backend/modal/configuration-context.d.ts +3 -0
  592. package/dist/modules/stock_backend/modal/configuration-context.d.ts.map +1 -0
  593. package/dist/modules/stock_backend/modal/configuration-context.js +65 -0
  594. package/dist/modules/stock_backend/modal/configuration-context.js.map +1 -0
  595. package/dist/modules/stock_backend/modal/configuration-view.d.ts +21 -0
  596. package/dist/modules/stock_backend/modal/configuration-view.d.ts.map +1 -0
  597. package/dist/modules/stock_backend/modal/configuration-view.js +201 -0
  598. package/dist/modules/stock_backend/modal/configuration-view.js.map +1 -0
  599. package/dist/modules/stock_backend/modal/configuration.d.ts +20 -0
  600. package/dist/modules/stock_backend/modal/configuration.d.ts.map +1 -0
  601. package/dist/modules/stock_backend/modal/configuration.js +117 -0
  602. package/dist/modules/stock_backend/modal/configuration.js.map +1 -0
  603. package/dist/modules/stock_backend/modal/inventory-context.d.ts +3 -0
  604. package/dist/modules/stock_backend/modal/inventory-context.d.ts.map +1 -0
  605. package/dist/modules/stock_backend/modal/inventory-context.js +37 -0
  606. package/dist/modules/stock_backend/modal/inventory-context.js.map +1 -0
  607. package/dist/modules/stock_backend/modal/inventory-view.d.ts +14 -0
  608. package/dist/modules/stock_backend/modal/inventory-view.d.ts.map +1 -0
  609. package/dist/modules/stock_backend/modal/inventory-view.js +142 -0
  610. package/dist/modules/stock_backend/modal/inventory-view.js.map +1 -0
  611. package/dist/modules/stock_backend/modal/transfer-context.d.ts +3 -0
  612. package/dist/modules/stock_backend/modal/transfer-context.d.ts.map +1 -0
  613. package/dist/modules/stock_backend/modal/transfer-context.js +54 -0
  614. package/dist/modules/stock_backend/modal/transfer-context.js.map +1 -0
  615. package/dist/modules/stock_backend/modal/transfer-view.d.ts +15 -0
  616. package/dist/modules/stock_backend/modal/transfer-view.d.ts.map +1 -0
  617. package/dist/modules/stock_backend/modal/transfer-view.js +252 -0
  618. package/dist/modules/stock_backend/modal/transfer-view.js.map +1 -0
  619. package/dist/modules/stock_backend/routes.d.ts.map +1 -1
  620. package/dist/modules/stock_backend/routes.js +117 -34
  621. package/dist/modules/stock_backend/routes.js.map +1 -1
  622. package/dist/modules/stock_backend/screens/forecast.d.ts.map +1 -1
  623. package/dist/modules/stock_backend/screens/forecast.js +5 -32
  624. package/dist/modules/stock_backend/screens/forecast.js.map +1 -1
  625. package/dist/modules/stock_backend/screens/inventory.d.ts +3 -1
  626. package/dist/modules/stock_backend/screens/inventory.d.ts.map +1 -1
  627. package/dist/modules/stock_backend/screens/inventory.js +27 -74
  628. package/dist/modules/stock_backend/screens/inventory.js.map +1 -1
  629. package/dist/modules/stock_backend/screens/location-create.d.ts.map +1 -1
  630. package/dist/modules/stock_backend/screens/location-create.js +1 -1
  631. package/dist/modules/stock_backend/screens/location-create.js.map +1 -1
  632. package/dist/modules/stock_backend/screens/locations-list.d.ts +1 -1
  633. package/dist/modules/stock_backend/screens/locations-list.d.ts.map +1 -1
  634. package/dist/modules/stock_backend/screens/locations-list.js +1 -1
  635. package/dist/modules/stock_backend/screens/locations-list.js.map +1 -1
  636. package/dist/modules/stock_backend/screens/lot-create.d.ts.map +1 -1
  637. package/dist/modules/stock_backend/screens/lot-create.js +1 -1
  638. package/dist/modules/stock_backend/screens/lot-create.js.map +1 -1
  639. package/dist/modules/stock_backend/screens/lot-detail.d.ts.map +1 -1
  640. package/dist/modules/stock_backend/screens/lot-detail.js +3 -2
  641. package/dist/modules/stock_backend/screens/lot-detail.js.map +1 -1
  642. package/dist/modules/stock_backend/screens/lots-list.d.ts +1 -1
  643. package/dist/modules/stock_backend/screens/lots-list.d.ts.map +1 -1
  644. package/dist/modules/stock_backend/screens/lots-list.js +1 -1
  645. package/dist/modules/stock_backend/screens/lots-list.js.map +1 -1
  646. package/dist/modules/stock_backend/screens/overview.d.ts +9 -0
  647. package/dist/modules/stock_backend/screens/overview.d.ts.map +1 -0
  648. package/dist/modules/stock_backend/screens/overview.js +38 -0
  649. package/dist/modules/stock_backend/screens/overview.js.map +1 -0
  650. package/dist/modules/stock_backend/screens/picking-type-create.d.ts.map +1 -1
  651. package/dist/modules/stock_backend/screens/picking-type-create.js +1 -1
  652. package/dist/modules/stock_backend/screens/picking-type-create.js.map +1 -1
  653. package/dist/modules/stock_backend/screens/picking-types-list.d.ts +1 -1
  654. package/dist/modules/stock_backend/screens/picking-types-list.d.ts.map +1 -1
  655. package/dist/modules/stock_backend/screens/picking-types-list.js +1 -1
  656. package/dist/modules/stock_backend/screens/picking-types-list.js.map +1 -1
  657. package/dist/modules/stock_backend/screens/replenishment-create.d.ts.map +1 -1
  658. package/dist/modules/stock_backend/screens/replenishment-create.js +1 -1
  659. package/dist/modules/stock_backend/screens/replenishment-create.js.map +1 -1
  660. package/dist/modules/stock_backend/screens/replenishment-list.d.ts +2 -2
  661. package/dist/modules/stock_backend/screens/replenishment-list.d.ts.map +1 -1
  662. package/dist/modules/stock_backend/screens/replenishment-list.js +2 -2
  663. package/dist/modules/stock_backend/screens/replenishment-list.js.map +1 -1
  664. package/dist/modules/stock_backend/screens/stock-route-create.d.ts.map +1 -1
  665. package/dist/modules/stock_backend/screens/stock-route-create.js +1 -1
  666. package/dist/modules/stock_backend/screens/stock-route-create.js.map +1 -1
  667. package/dist/modules/stock_backend/screens/stock-route-detail.js +2 -1
  668. package/dist/modules/stock_backend/screens/stock-route-detail.js.map +1 -1
  669. package/dist/modules/stock_backend/screens/stock-routes-list.d.ts +1 -1
  670. package/dist/modules/stock_backend/screens/stock-routes-list.d.ts.map +1 -1
  671. package/dist/modules/stock_backend/screens/stock-routes-list.js +1 -1
  672. package/dist/modules/stock_backend/screens/stock-routes-list.js.map +1 -1
  673. package/dist/modules/stock_backend/screens/transfer-create.d.ts.map +1 -1
  674. package/dist/modules/stock_backend/screens/transfer-create.js +1 -1
  675. package/dist/modules/stock_backend/screens/transfer-create.js.map +1 -1
  676. package/dist/modules/stock_backend/screens/transfer-detail.d.ts.map +1 -1
  677. package/dist/modules/stock_backend/screens/transfer-detail.js +3 -2
  678. package/dist/modules/stock_backend/screens/transfer-detail.js.map +1 -1
  679. package/dist/modules/stock_backend/screens/transfers-list.d.ts +1 -1
  680. package/dist/modules/stock_backend/screens/transfers-list.d.ts.map +1 -1
  681. package/dist/modules/stock_backend/screens/transfers-list.js +1 -1
  682. package/dist/modules/stock_backend/screens/transfers-list.js.map +1 -1
  683. package/dist/modules/stock_backend/screens/warehouse-create.d.ts.map +1 -1
  684. package/dist/modules/stock_backend/screens/warehouse-create.js +1 -1
  685. package/dist/modules/stock_backend/screens/warehouse-create.js.map +1 -1
  686. package/dist/modules/stock_backend/screens/warehouses-list.d.ts +1 -1
  687. package/dist/modules/stock_backend/screens/warehouses-list.d.ts.map +1 -1
  688. package/dist/modules/stock_backend/screens/warehouses-list.js +1 -1
  689. package/dist/modules/stock_backend/screens/warehouses-list.js.map +1 -1
  690. package/dist/modules/stock_backend/search.d.ts +29 -0
  691. package/dist/modules/stock_backend/search.d.ts.map +1 -1
  692. package/dist/modules/stock_backend/search.js +22 -0
  693. package/dist/modules/stock_backend/search.js.map +1 -1
  694. package/dist/modules/user_backend/client/access-policy-modal.d.mts +4 -4
  695. package/dist/modules/user_backend/client/access-policy-modal.d.mts.map +1 -1
  696. package/dist/modules/user_backend/client/access-policy-modal.mjs +1 -1
  697. package/dist/modules/user_backend/client/access-policy-modal.mjs.map +3 -3
  698. package/dist/modules/user_backend/client/role-modal.d.mts +6 -6
  699. package/dist/modules/user_backend/client/role-modal.d.mts.map +1 -1
  700. package/dist/modules/user_backend/client/role-modal.mjs +1 -1
  701. package/dist/modules/user_backend/client/role-modal.mjs.map +3 -3
  702. package/dist/modules/user_backend/client/user-modal.d.mts +8 -8
  703. package/dist/modules/user_backend/client/user-modal.d.mts.map +1 -1
  704. package/dist/modules/user_backend/client/user-modal.mjs +1 -1
  705. package/dist/modules/user_backend/client/user-modal.mjs.map +3 -3
  706. package/dist/modules/user_backend/messages.d.ts +0 -6
  707. package/dist/modules/user_backend/messages.d.ts.map +1 -1
  708. package/dist/modules/user_backend/messages.js +0 -6
  709. package/dist/modules/user_backend/messages.js.map +1 -1
  710. package/dist/modules/user_backend/screens/access-policies-list.d.ts.map +1 -1
  711. package/dist/modules/user_backend/screens/access-policies-list.js +1 -1
  712. package/dist/modules/user_backend/screens/access-policies-list.js.map +1 -1
  713. package/dist/modules/user_backend/screens/profile-form.d.ts.map +1 -1
  714. package/dist/modules/user_backend/screens/profile-form.js +1 -1
  715. package/dist/modules/user_backend/screens/profile-form.js.map +1 -1
  716. package/dist/modules/user_backend/screens/roles-list.d.ts.map +1 -1
  717. package/dist/modules/user_backend/screens/roles-list.js +1 -1
  718. package/dist/modules/user_backend/screens/roles-list.js.map +1 -1
  719. package/dist/modules/user_backend/screens/users-list.d.ts.map +1 -1
  720. package/dist/modules/user_backend/screens/users-list.js +1 -1
  721. package/dist/modules/user_backend/screens/users-list.js.map +1 -1
  722. package/dist/modules/website_backend/screens/page-frame.d.ts +2 -3
  723. package/dist/modules/website_backend/screens/page-frame.d.ts.map +1 -1
  724. package/dist/modules/website_backend/screens/page-frame.js +2 -2
  725. package/dist/modules/website_backend/screens/page-frame.js.map +1 -1
  726. package/dist/permission-catalogue.d.ts.map +1 -1
  727. package/dist/permission-catalogue.js +2 -0
  728. package/dist/permission-catalogue.js.map +1 -1
  729. package/dist/role-templates.d.ts.map +1 -1
  730. package/dist/role-templates.js +23 -3
  731. package/dist/role-templates.js.map +1 -1
  732. package/dist/scaffold/index.js +1 -1
  733. package/dist/ui/client/live-doc-shell.d.ts +27 -1
  734. package/dist/ui/client/live-doc-shell.d.ts.map +1 -1
  735. package/dist/ui/client/live-doc-shell.js +43 -5
  736. package/dist/ui/client/live-doc-shell.js.map +1 -1
  737. package/dist/ui/client/live-doc-tail.d.ts +4 -0
  738. package/dist/ui/client/live-doc-tail.d.ts.map +1 -0
  739. package/dist/ui/client/live-doc-tail.js +21 -0
  740. package/dist/ui/client/live-doc-tail.js.map +1 -0
  741. package/dist/ui/client/live-doc-view.d.ts +18 -0
  742. package/dist/ui/client/live-doc-view.d.ts.map +1 -1
  743. package/dist/ui/client/live-doc-view.js +183 -4
  744. package/dist/ui/client/live-doc-view.js.map +1 -1
  745. package/dist/ui/client/live-doc.css +81 -0
  746. package/dist/ui/client/live-doc.d.mts +6 -3
  747. package/dist/ui/client/live-doc.d.mts.map +1 -1
  748. package/dist/ui/client/live-doc.mjs +14 -10
  749. package/dist/ui/client/live-doc.mjs.map +4 -4
  750. package/dist/ui/layout.d.ts +2 -2
  751. package/dist/ui/layout.d.ts.map +1 -1
  752. package/dist/ui/layout.js +3 -3
  753. package/dist/ui/layout.js.map +1 -1
  754. package/package.json +4 -4
  755. package/dist/modules/flow/functions.d.ts +0 -3
  756. package/dist/modules/flow/functions.d.ts.map +0 -1
  757. package/dist/modules/flow/functions.js +0 -1857
  758. package/dist/modules/flow/functions.js.map +0 -1
  759. package/dist/modules/flow/operations.d.ts +0 -414
  760. package/dist/modules/flow/operations.d.ts.map +0 -1
  761. package/dist/modules/flow/operations.js +0 -1671
  762. package/dist/modules/flow/operations.js.map +0 -1
@@ -0,0 +1,105 @@
1
+ declare var he: (e: any) => {
2
+ kind: any;
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: (t: any, n: any) => string;
31
+ query: string[];
32
+ };
33
+ title: (t: any) => any;
34
+ body: (t: any) => any;
35
+ dialogs: {
36
+ rule: {
37
+ title: (t: any) => any;
38
+ view: (t: any) => any;
39
+ };
40
+ };
41
+ commands: {
42
+ save: {
43
+ fn: any;
44
+ after: string;
45
+ input: (t: any, n: any) => {
46
+ id: any;
47
+ };
48
+ };
49
+ rule: {
50
+ fn: string;
51
+ after: string;
52
+ input: (t: any, n: any) => {
53
+ id: any;
54
+ routeId: any;
55
+ };
56
+ };
57
+ run: {
58
+ fn: string;
59
+ after: string;
60
+ input: (t: any, n: any) => {
61
+ id: any;
62
+ moveId: any;
63
+ };
64
+ confirm: (t: any) => any;
65
+ };
66
+ };
67
+ }, Mf: () => {
68
+ view: () => any;
69
+ mount: ({ root: r, lifetime: d }: {
70
+ lifetime: any;
71
+ root: any;
72
+ }) => void;
73
+ }, Ef: () => {
74
+ view: () => any;
75
+ mount: ({ root: r, lifetime: d }: {
76
+ lifetime: any;
77
+ root: any;
78
+ }) => void;
79
+ }, Ff: () => {
80
+ view: () => any;
81
+ mount: ({ root: r, lifetime: d }: {
82
+ lifetime: any;
83
+ root: any;
84
+ }) => void;
85
+ }, Hf: () => {
86
+ view: () => any;
87
+ mount: ({ root: r, lifetime: d }: {
88
+ lifetime: any;
89
+ root: any;
90
+ }) => void;
91
+ }, Of: () => {
92
+ view: () => any;
93
+ mount: ({ root: r, lifetime: d }: {
94
+ lifetime: any;
95
+ root: any;
96
+ }) => void;
97
+ }, Df: () => {
98
+ view: () => any;
99
+ mount: ({ root: r, lifetime: d }: {
100
+ lifetime: any;
101
+ root: any;
102
+ }) => void;
103
+ };
104
+ export { Ef as locationModal, Hf as lotModal, Ff as pickingTypeModal, Df as replenishmentModal, he as stockConfigurationDefinition, Of as stockRouteModal, Mf as warehouseModal };
105
+ //# sourceMappingURL=stock-configuration-modal.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stock-configuration-modal.d.mts","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/stock_backend/client/stock-configuration-modal.mjs"],"names":[],"mappings":"AACkuxD,QAAA,IAAwlD,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAA4nF,EAAE;gBAAM,MAAM;;;;;CAAwD,EAAC,EAAE;;;;;;CAAoB,EAAC,EAAE;;;;;;CAAmB,EAAC,EAAE;;;;;;CAAuB,EAAC,EAAE;;;;;;CAAc,EAAC,EAAE;;;;;;CAAgB,EAAC,EAAE;;;;;;CAAwB,CAAC;AAAA,OAAM,EAAC,EAAE,IAAI,aAAa,EAAC,EAAE,IAAI,QAAQ,EAAC,EAAE,IAAI,gBAAgB,EAAC,EAAE,IAAI,kBAAkB,EAAC,EAAE,IAAI,4BAA4B,EAAC,EAAE,IAAI,eAAe,EAAC,EAAE,IAAI,cAAc,EAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ // @ts-nocheck Generated by tools/build-backend-client.mjs — do not edit.
2
+ import{each as nn}from"/_ket/view/index.js";import{Fragment as vt,jsx as j,jsxs as on}from"/_ket/view/jsx-runtime.js";var yt=["action","action-leading","action-label","action-spinner","action-group"],rn=e=>on(vt,{children:[e.loading===!0&&j("span",{"data-ui":"action-spinner","aria-hidden":"true"}),e.loading!==!0&&e.leading!==void 0&&j("span",{"data-ui":"action-leading","aria-hidden":"true",children:e.leading}),!e.iconOnly&&j("span",{"data-ui":"action-label",children:e.label})]}),w=e=>j("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:j(rn,{...e})});var ee=e=>j("div",{"data-ui":"action-group",role:"group","aria-label":e.label??null,children:nn(e.actions,(a,t)=>t,a=>j(vt,{children:a}))});import{jsx as ii,jsxs as ri}from"/_ket/view/jsx-runtime.js";var xt=["badge","tag","tag-remove","count-badge","avatar","code","text","media-label","media-label-image","media-label-copy"];import{each as ln}from"/_ket/view/index.js";import{Fragment as Oe,jsx as x,jsxs as G}from"/_ket/view/jsx-runtime.js";var kt=["notice","notice-mark","notice-copy","notice-title","notice-message","notice-actions","empty","empty-mark","empty-title","empty-message","empty-actions","loading","loading-label"],sn={info:()=>G(Oe,{children:[x("circle",{cx:"12",cy:"12",r:"10"}),x("path",{d:"M12 16v-4"}),x("path",{d:"M12 8h.01"})]}),positive:()=>G(Oe,{children:[x("circle",{cx:"12",cy:"12",r:"10"}),x("path",{d:"m9 12 2 2 4-4"})]}),warning:()=>G(Oe,{children:[x("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"}),x("path",{d:"M12 9v4"}),x("path",{d:"M12 17h.01"})]}),danger:()=>G(Oe,{children:[x("circle",{cx:"12",cy:"12",r:"10"}),x("path",{d:"M12 8v4"}),x("path",{d:"M12 16h.01"})]})},U=e=>G("aside",{"data-ui":"notice","data-pattern":"notice","data-tone":e.tone??"info",role:e.tone==="danger"?"alert":"status",children:[x("span",{"data-ui":"notice-mark","aria-hidden":"true",children:x("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:sn[e.tone??"info"]()})}),G("div",{"data-ui":"notice-copy",children:[x("p",{"data-ui":"notice-title",children:e.title}),x("p",{"data-ui":"notice-message",children:e.message})]}),e.actions!==void 0&&x("div",{"data-ui":"notice-actions",children:e.actions})]}),te=e=>G("div",{"data-ui":"empty",role:"status",children:[x("span",{"data-ui":"empty-mark","aria-hidden":"true",children:"\u25C7"}),x("p",{"data-ui":"empty-title",children:e.title}),x("p",{"data-ui":"empty-message",children:e.message}),e.actions!==void 0&&x("div",{"data-ui":"empty-actions",children:e.actions})]}),me=e=>G("div",{"data-ui":"loading",role:"status","aria-live":"polite",children:[x("span",{"data-ui":"loading-label",children:e.label}),x("div",{"data-ui":"skeleton","aria-hidden":"true",children:ln(Array.from({length:Math.max(1,e.lines??3)}),(a,t)=>t,(a,t)=>x("span",{"data-ui":"skeleton-line","data-line":String(t+1)}))})]});import{each as Qe}from"/_ket/view/index.js";import{each as fn}from"/_ket/view/index.js";import{jsx as K,jsxs as we}from"/_ket/view/jsx-runtime.js";var St=["modal-layer","modal-backdrop","modal-sheet","modal-head","modal-heading","modal-title-row","modal-title","modal-description","modal-close","modal-body","modal-actions"],ae=e=>{let a=e.mode==="client",t=e.mode==="embedded";return we("div",{"data-ui":"modal-layer","data-mode":e.mode??"overlay","data-route-modal":t||a?null:"true","data-client-modal":a?"true":null,"data-presentation":e.presentation??"sheet","data-unsaved-prompt":e.unsavedPrompt??null,children:[a?K("button",{"data-ui":"modal-backdrop",type:"button","aria-hidden":"true",tabIndex:-1,children:K("span",{children:e.closeLabel})}):K("a",{"data-ui":"modal-backdrop",href:e.closeHref??"#","aria-label":e.closeLabel,children:K("span",{children:e.closeLabel})}),we("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?`height: ${e.fixedHeight} !important`:"",...e.dialogSemantics==="parent"?{}:{role:"dialog","aria-modal":t?"false":"true"},"aria-labelledby":e.dialogSemantics==="parent"?null:`${e.id}-title`,"aria-describedby":e.dialogSemantics!=="parent"&&e.description?`${e.id}-description`:null,tabindex:t?null:"-1",children:[we("header",{"data-ui":"modal-head",children:[we("div",{"data-ui":"modal-heading",children:[we("div",{"data-ui":"modal-title-row",children:[K("h2",{"data-ui":"modal-title",id:`${e.id}-title`,children:e.title}),e.status!==void 0&&e.status]}),!!e.description&&K("p",{"data-ui":"modal-description",id:`${e.id}-description`,children:e.description})]}),a?K("button",{"data-ui":"modal-close",type:"button","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"}):K("a",{"data-ui":"modal-close",href:e.closeHref??"#","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"})]}),K("div",{"data-ui":"modal-body",children:e.body}),e.actions!==void 0&&K("footer",{"data-ui":"modal-actions",children:e.actions})]})]})};import{Fragment as bi,jsx as gi,jsxs as fi}from"/_ket/view/jsx-runtime.js";import{Fragment as Si,jsx as xi,jsxs as ki}from"/_ket/view/jsx-runtime.js";var wt=["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 Rt,jsx as R,jsxs as ne}from"/_ket/view/jsx-runtime.js";var Ct=["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"],bn=e=>R(Rt,{children:fn(e.items,(a,t)=>t,a=>typeof a=="string"||typeof a=="number"?R("span",{children:a}):R(Rt,{children:a}))}),We=e=>R("div",{"data-ui":"stack","data-pattern":"stack","data-gap":e.gap??"default","data-divided":e.divided===!0?"true":null,children:R(bn,{items:e.items})});var Ze=e=>ne("div",{"data-ui":"surface","data-tone":e.tone??"default","data-padding":e.padding??"default","data-has-heading":e.title?"true":null,children:[e.title&&ne("header",{"data-ui":"surface-head",children:[e.description?ne("div",{"data-ui":"surface-heading",children:[R("h2",{"data-ui":"surface-title",children:e.title}),R("p",{"data-ui":"surface-description",children:e.description})]}):R("h2",{"data-ui":"surface-title",children:e.title}),e.actions!==void 0&&R("div",{"data-ui":"surface-actions",children:e.actions})]}),e.body]}),Ye=e=>ne("details",{"data-ui":"disclosure",open:e.open===!0?!0:void 0,children:[R("summary",{"data-ui":"disclosure-summary",children:e.summary}),R("div",{"data-ui":"disclosure-body",children:e.body})]}),Re=e=>ne("section",{"data-ui":"section",children:[ne("header",{"data-ui":"section-head",children:[ne("div",{children:[!!e.eyebrow&&R("p",{"data-ui":"section-eyebrow",children:e.eyebrow}),R("h2",{"data-ui":"section-title",children:e.title}),!!e.description&&R("p",{"data-ui":"section-description",children:e.description})]}),e.actions!==void 0&&R("div",{"data-ui":"section-actions",children:e.actions})]}),R("div",{"data-ui":"section-body",children:e.body})]});import{each as pn}from"/_ket/view/index.js";import{Fragment as hn,jsx as Ce}from"/_ket/view/jsx-runtime.js";var De=(e,a)=>e.control!==void 0?Ce(hn,{children:e.control}):e.type==="textarea"?Ce("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":a,children:String(e.value??"")}):e.type==="select"?Ce("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":a,children:pn(e.options??[],t=>t.value,t=>Ce("option",{value:t.value,selected:String(e.value??"")===t.value,disabled:t.disabled===!0,children:t.label}))}):Ce("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":a,autocomplete:e.autocomplete??"off",step:e.type==="decimal"?e.step??"any":e.step??null});import{jsx as T,jsxs as X}from"/_ket/view/jsx-runtime.js";var Lt=["field","field-label","field-required","field-control","field-options","field-option","field-option-input","field-help","field-error"],Pt=e=>!!e.error||(e.fields?.some(Pt)??!1),ie=e=>{let a=e.help?`${e.id}-help`:null,t=e.error?`${e.id}-error`:null,n=[a,t].filter(Boolean).join(" ")||null,c=X("span",{"data-ui":"field-label",children:[e.label,e.required&&T("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]});return e.fields?X("div",{"data-ui":"field","data-kind":"group","data-span":"full","data-invalid":String(!!e.error),children:[T(Ye,{summary:e.label,open:e.open||Pt(e),body:T("div",{"data-ui":"form-grid",children:Qe(e.fields.map(m=>({...m,disabled:e.disabled||m.disabled,readOnly:e.readOnly||m.readOnly})),m=>m.id,m=>T(ie,{...m}))})}),!!e.help&&T("small",{"data-ui":"field-help",id:a??void 0,children:e.help}),!!e.error&&T("small",{"data-ui":"field-error",id:t??void 0,children:e.error})]}):e.type==="checkbox-group"?X("div",{"data-ui":"field","data-kind":"checkbox-group","data-span":e.span??"half","data-invalid":String(!!e.error),children:[X("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&T("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),T("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"group","aria-labelledby":`${e.id}-label`,children:Qe(e.options??[],m=>m.name??m.value,m=>X("label",{"data-ui":"field-option",children:[T("input",{"data-ui":"field-option-input",type:"checkbox",name:m.name??`${e.name}[]`,value:m.value,checked:m.checked===!0,disabled:e.disabled===!0||m.disabled===!0,"aria-invalid":e.error?"true":null,"aria-describedby":n,autocomplete:"off"}),T("span",{children:m.label})]}))}),!!e.help&&T("small",{"data-ui":"field-help",id:a??void 0,children:e.help}),!!e.error&&T("small",{"data-ui":"field-error",id:t??void 0,children:e.error})]}):e.type==="radio"?X("div",{"data-ui":"field","data-kind":"radio","data-span":e.span??"half","data-invalid":String(!!e.error),children:[X("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&T("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),T("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"radiogroup","aria-labelledby":`${e.id}-label`,children:Qe(e.options??[],m=>m.value,m=>X("label",{"data-ui":"field-option",children:[T("input",{"data-ui":"field-option-input",type:"radio",name:e.name,value:m.value,checked:String(e.value??"")===m.value,required:e.required===!0,disabled:e.disabled===!0||m.disabled===!0,"aria-invalid":e.error?"true":null,"aria-describedby":n,autocomplete:"off"}),T("span",{children:m.label})]}))}),!!e.help&&T("small",{"data-ui":"field-help",id:a??void 0,children:e.help}),!!e.error&&T("small",{"data-ui":"field-error",id:t??void 0,children:e.error})]}):X("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"&&De(e,n),c,e.type!=="checkbox"&&De(e,n),!!e.help&&T("small",{"data-ui":"field-help",id:a??void 0,children:e.help}),!!e.error&&T("small",{"data-ui":"field-error",id:t??void 0,children:e.error})]})};import{each as yn}from"/_ket/view/index.js";import{jsx as ge,jsxs as et}from"/_ket/view/jsx-runtime.js";var Mt=["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 Et=e=>et("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&&ge("span",{"data-ui":"tab-count",children:String(e.count)})]}),Ft=(e,a)=>`${e}-${a.replace(/[^a-zA-Z0-9_-]+/gu,"-")}-tab`,Ht=e=>et("nav",{"data-ui":"tabs","data-pattern":"tabs","aria-label":e.label,children:[yn(e.items,a=>a.id,a=>ge(Et,{...a,elementId:e.id?Ft(e.id,a.id):void 0,controls:e.panelId})),e.extension]}),Ot=e=>ge("section",{"data-ui":"tab-panel",id:e.id,"aria-labelledby":e.labelledBy,tabindex:"-1",children:e.body}),je=e=>{let a=`${e.id}-tabs`,t=`${e.id}-panel`,n=e.items.find(c=>c.active===!0);return et("div",{"data-ui":"tabbed-view",children:[e.context!==void 0&&e.context!==""?ge("div",{"data-ui":"tabbed-view-context",children:e.context}):"",ge(Ht,{id:a,label:e.label,items:e.items,extension:e.extension,panelId:t}),ge(Ot,{id:t,labelledBy:n?Ft(a,n.id):void 0,body:e.body})]})};import{jsx as zi,jsxs as Vi}from"/_ket/view/jsx-runtime.js";var Dt=["progress","progress-label","progress-value","progress-track","progress-bar"];import{each as _i}from"/_ket/view/index.js";import{Fragment as Qi,jsx as Zi,jsxs as Yi}from"/_ket/view/jsx-runtime.js";var It=["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 tr,jsxs as ar}from"/_ket/view/jsx-runtime.js";var At=["popover","popover-trigger","popover-panel","popover-close"];import{jsx as rr,jsxs as or}from"/_ket/view/jsx-runtime.js";var $t=["tooltip","tooltip-trigger","tooltip-content"];import{jsx as ur}from"/_ket/view/jsx-runtime.js";var Kt=["dialog","confirm-dialog-message"];import{each as fr}from"/_ket/view/index.js";import{jsx as pr,jsxs as hr}from"/_ket/view/jsx-runtime.js";var Bt=["toast-region","toast","toast-copy","toast-title","toast-message","toast-actions"];import{jsx as xr}from"/_ket/view/jsx-runtime.js";var qt=["spinner","visually-hidden"];import{each as Tr}from"/_ket/view/index.js";import{jsx as Rr}from"/_ket/view/jsx-runtime.js";var Nt=["skeleton","skeleton-line"];import{each as Pr,effect as Mr,signal as Er}from"/_ket/view/index.js";import{jsx as Or,jsxs as Hr}from"/_ket/view/jsx-runtime.js";var Jt=["relation-select","relation-native","relation-trigger","relation-value","relation-caret","relation-chips","relation-chip","relation-chip-clear","relation-menu","relation-search","relation-options","relation-option","relation-footer","relation-empty","relation-editor","relation-dialog-toolbar","relation-search-field","relation-search-icon","relation-dialog-list","relation-dialog-row","relation-dialog-main","relation-dialog-meta","relation-dialog-actions"];import{each as Ar,signal as $r}from"/_ket/view/index.js";import{jsx as Br,jsxs as qr}from"/_ket/view/jsx-runtime.js";var Xt=["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 zr,signal as Vr}from"/_ket/view/index.js";import{Fragment as Wr,jsx as _r,jsxs as Ur}from"/_ket/view/jsx-runtime.js";var zt=["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 to,effect as ao,signal as no}from"/_ket/view/index.js";import{jsx as Qr}from"/_ket/view/jsx-runtime.js";var Vt=["formatted-date","formatted-number","formatted-money"];import{Fragment as so,jsx as co,jsxs as uo}from"/_ket/view/jsx-runtime.js";var _t=["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 Co=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","summary",'[tabindex]:not([tabindex="-1"])'].join(",");var wn=['[data-ui="timeframe-menu"]','[data-ui="view-settings"]'],Lo=wn.map(e=>`${e}[open]`).join(", ");import{jsx as Eo,jsxs as Fo}from"/_ket/view/jsx-runtime.js";import{jsx as Ao,jsxs as $o}from"/_ket/view/jsx-runtime.js";var Wt=["switch-control","switch-track"];import{each as qo}from"/_ket/view/index.js";import{Fragment as Vo,jsx as Xo,jsxs as zo}from"/_ket/view/jsx-runtime.js";var Zt=["combobox","combobox-input-row","combobox-toggle","combobox-listbox","combobox-option","combobox-empty","tag-picker"];import{Fragment as tl,jsx as jo,jsxs as el}from"/_ket/view/jsx-runtime.js";var Yt=["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 rl,jsxs as ol}from"/_ket/view/jsx-runtime.js";var Qt=["file-upload","drop-zone","upload-status"];import{jsx as cl}from"/_ket/view/jsx-runtime.js";var jt=["relation-picker"];import{each as gl}from"/_ket/view/index.js";import{jsx as hl,jsxs as yl}from"/_ket/view/jsx-runtime.js";var ea=["search-bar","filter-bar","applied-filters","applied-filter","saved-views","saved-view","view-settings","view-settings-options"];import{jsx as Sl,jsxs as Tl}from"/_ket/view/jsx-runtime.js";var ta=["inline-edit","inline-edit-value","inline-edit-form","inline-edit-actions"];import{each as Al}from"/_ket/view/index.js";import{each as Pl}from"/_ket/view/index.js";import{Fragment as Ol,jsx as Fl,jsxs as Hl}from"/_ket/view/jsx-runtime.js";var aa=["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 ql,jsxs as Nl}from"/_ket/view/jsx-runtime.js";var na=["resource-list","resource-list-item","resource-list-select","resource-list-link"];import{each as zl}from"/_ket/view/index.js";import{jsx as Gl,jsxs as Ul}from"/_ket/view/jsx-runtime.js";var ia=["data-grid-scroll","data-grid","data-grid-cap","data-grid-cell"];import{each as Zl}from"/_ket/view/index.js";import{jsx as Ql,jsxs as jl}from"/_ket/view/jsx-runtime.js";var ra=["tree","tree-item","tree-link","tree-grid","tree-grid-row"];import{each as as}from"/_ket/view/index.js";import{jsx as is,jsxs as rs}from"/_ket/view/jsx-runtime.js";var oa=["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 ss}from"/_ket/view/index.js";import{jsx as cs,jsxs as us}from"/_ket/view/jsx-runtime.js";var la=["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 fs}from"/_ket/view/index.js";import{jsx as ps,jsxs as hs}from"/_ket/view/jsx-runtime.js";var sa=["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 Mn}from"/_ket/view/index.js";import{jsx as Ae,jsxs as En}from"/_ket/view/jsx-runtime.js";var da=["description-list","key-value","key-value-label","key-value-value","person","person-body","avatar-group","status"],ca=e=>En("div",{"data-ui":"key-value",children:[Ae("dt",{"data-ui":"key-value-label",children:e.label}),Ae("dd",{"data-ui":"key-value-value",children:e.value??e.emptyLabel??"\u2014"})]}),$e=e=>Ae("dl",{"data-ui":"description-list","aria-label":e.label,"data-columns":String(e.columns??2),"data-layout":e.layout==="strip"?"strip":null,children:Mn(e.items,a=>a.id,a=>Ae(ca,{...a}))});import{each as ws}from"/_ket/view/index.js";import{jsx as Ms,jsxs as Es}from"/_ket/view/jsx-runtime.js";var ma=["record-summary","record-summary-main","record-actions","record-rail"];import{each as Os}from"/_ket/view/index.js";import{jsx as $s,jsxs as Ks}from"/_ket/view/jsx-runtime.js";var ga=["activity-timeline","activity-item","activity-marker","audit-log","audit-item"];import{each as Ns}from"/_ket/view/index.js";import{jsx as zs,jsxs as Vs}from"/_ket/view/jsx-runtime.js";var fa=["attachments","attachment","media-gallery","media-item"];import{each as _s}from"/_ket/view/index.js";import{Fragment as Qs,jsx as Zs,jsxs as Ys}from"/_ket/view/jsx-runtime.js";var ba=["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 fe}from"/_ket/view/index.js";import{Fragment as ka,jsx as v,jsxs as _}from"/_ket/view/jsx-runtime.js";var pa=["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"],Hn=e=>e.shownColumns??e.columns.filter(a=>a.hidden!==!0).map(a=>a.key),On=e=>{let a=new Set(Hn(e));return e.columns.filter(t=>a.has(t.key))},ha=(e,a)=>a.length+(e.selection?1:0),Dn=(e,a)=>e.sort?.direction?e.sort.direction==="ascending"?a?.sortedAscending??"Sorted ascending":a?.sortedDescending??"Sorted descending":null,In=(e,a)=>v("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?_("a",{"data-ui":"sort-link",href:e.sort.href,"aria-label":e.sort.label??e.label,children:[v("span",{children:e.label}),!!e.sort.direction&&v("span",{"data-ui":"sort-icon","aria-hidden":"true",title:Dn(e,a)??void 0,children:e.sort.direction==="ascending"?"\u2191":"\u2193"})]}):e.label}),An=e=>e.selection?v("th",{"data-ui":"select-col",scope:"col",children:v("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,ya=(e,a)=>e.selected?.(a)===!0?!0:e.selection?.selectedIds?.includes(e.id(a))===!0,$n=(e,a,t)=>_(ka,{children:[e.selection&&v("td",{"data-ui":"select-cell",children:v("input",{"data-ui":"row-select",type:"checkbox",name:e.selection.name??"ids",form:e.selection.form,value:e.id(t),checked:ya(e,t),"aria-label":e.labels?.selectRow?.(t,e.id(t))??`Select row ${e.id(t)}`,disabled:e.selection.disabled===!0})}),fe(a,n=>n.key,n=>v("td",{"data-ui":"cell","data-col":n.key,"data-linked":e.rowHref&&n===a[0]?"true":null,"data-align":n.align??"start","data-kind":n.kind??"text","data-priority":n.priority??"secondary","data-label":e.responsive==="stack"?n.label:null,children:e.rowHref&&n===a[0]?v("a",{"data-ui":"row-link",href:e.rowHref(t),children:n.cell(t)}):n.cell(t)}))]}),va=(e,a,t)=>v("tr",{"data-ui":"row","data-row":e.id(t),"data-selected":ya(e,t)?"true":null,children:$n(e,a,t)}),Kn=(e,a,t)=>t?v("tr",{"data-ui":"group-pager",children:_("td",{colSpan:String(ha(e,a)),children:[v("span",{children:t.label}),_("span",{"data-ui":"group-pager-actions",children:[t.previousHref&&v("a",{href:t.previousHref,"aria-label":e.labels?.previousPage??"Previous page",children:"\u2039"}),t.nextHref&&v("a",{href:t.nextHref,"aria-label":e.labels?.nextPage??"Next page",children:"\u203A"})]})]})}):null,xa=(e,a,t,n)=>_(ka,{children:[v("tr",{"data-ui":"group-row","data-group":t.id,"data-depth":String(n),children:_("th",{"data-ui":"group-cell",colSpan:String(ha(e,a)),scope:"rowgroup",children:[v("span",{"data-ui":"group-indent",style:`--kv-group-depth: ${n}`,"aria-hidden":"true"}),t.href?v("a",{"data-ui":"group-link",href:t.href,children:t.label}):v("span",{"data-ui":"group-link",children:t.label}),t.count!==void 0&&v("span",{"data-ui":"group-count",children:String(t.count)})]})}),fe(t.rows??[],e.id,c=>va(e,a,c)),fe(t.children??[],c=>c.id,c=>xa(e,a,c,n+1)),Kn(e,a,t.pager)]}),Ke=e=>{let a=On(e),t=e.groups??[],c=e.rows.length>0||t.length>0?v("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:_("table",{"data-ui":"table","aria-label":e.caption?null:e.title??null,children:[!!e.caption&&v("caption",{"data-ui":"table-caption",children:e.caption}),v("thead",{children:_("tr",{children:[An(e),fe(a,m=>m.key,m=>In(m,e.labels))]})}),v("tbody",{children:t.length>0?fe(t,m=>m.id,m=>xa(e,a,m,0)):fe(e.rows,e.id,m=>va(e,a,m))})]})}):v(te,{title:e.emptyTitle??"No records",message:e.emptyMessage??"There is nothing to show yet.",actions:e.emptyActions});return e.title?v(Ze,{title:e.title,actions:e.actions,padding:"none",body:c}):c};import{Fragment as fd,jsx as gd,jsxs as bd}from"/_ket/view/jsx-runtime.js";var Sa=["list-page","list-page-context","list-page-header","list-page-heading","list-page-title-row","list-page-eyebrow","list-page-title","list-page-actions","list-page-tools","list-page-toolbar","list-page-controls","list-page-status","list-page-body","list-page-footer"];import{jsx as vd,jsxs as xd}from"/_ket/view/jsx-runtime.js";var Ta=["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 wa=["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 Md,jsxs as Ed}from"/_ket/view/jsx-runtime.js";var Ra=["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 Ca=["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 Bd}from"/_ket/view/index.js";import{jsx as Nd,jsxs as Jd}from"/_ket/view/jsx-runtime.js";var La=["pipeline","pipeline-step","pipeline-arrow","pipeline-step-label","pipeline-step-value","pipeline-step-node"];import{each as Ud}from"/_ket/view/index.js";import{jsx as Yd,jsxs as Qd}from"/_ket/view/jsx-runtime.js";var Pa=["record-form","form-errors","form-grid","form-actions"];import{each as oc}from"/_ket/view/index.js";import{jsx as cc,jsxs as uc}from"/_ket/view/jsx-runtime.js";var Ma=["reorder-list","reorder-list-value","reorder-list-rows","reorder-list-row","reorder-list-content","reorder-list-controls"];var Ea={actions:yt,feedback:kt,fields:Lt,status:xt,navigation:Mt,progress:Dt,menu:It,reorderList:Ma,popover:At,tooltip:$t,dialog:Kt,toast:Bt,spinner:qt,skeleton:Nt,lightbox:Xt,relationSelect:Jt,searchFilter:zt,ketTable:_t,scalarFields:Wt,combobox:Zt,dateTime:Yt,upload:Qt,relationPicker:jt,listControls:ea,inlineEdit:ta,resourceList:na,dataGrid:ia,tree:ra,matrix:oa,barChart:la,timeframe:sa,recordDisplay:da,formattedValues:Vt,recordComposition:ma,activity:ga,media:fa,layouts:Ct,shell:wt,appNavigation:ba,table:pa,listChrome:aa,listPage:Sa,formPage:wa,recordPage:Ta,dashboardPage:Ra,boardPage:Ca,modal:St,pipeline:La,form:Pa},qn=[...new Set(Object.values(Ea).flat())].sort(),Nn=Object.freeze(Object.fromEntries(Object.entries(Ea).map(([e,a])=>[e,[...a]])));import{signal as P}from"/_ket/view/index.js";import{jsx as Xn}from"/_ket/view/jsx-runtime.js";var Be="record";var Jn=/^[a-z][a-z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)+$/u,Fa=e=>Jn.test(e),it=(e,a)=>{if(!Fa(a.kind))throw new TypeError(`invalid record kind "${a.kind}"`);let t=new URL(String(e),"http://ket.local");return t.searchParams.set(Be,`${a.kind}:${a.id}`),a.tab?t.searchParams.set("tab",a.tab):t.searchParams.delete("tab"),`${t.pathname}${t.search}`};var Ha=e=>{let a=new URL(String(e),"http://ket.local");return a.searchParams.delete(Be),a.searchParams.delete("tab"),`${a.pathname}${a.search}`},be=e=>{let a=new URL(String(e),"http://ket.local"),t=a.searchParams.get(Be)??"",n=t.indexOf(":");if(n<=0||n===t.length-1)return null;let c=t.slice(0,n);return Fa(c)?{kind:c,id:t.slice(n+1),tab:a.searchParams.get("tab")}:null},rt=e=>Xn("span",{"data-ui":"record-modal-host","data-record-kind":e,hidden:!0});import{jsx as re,jsxs as Oa}from"/_ket/view/jsx-runtime.js";var qe=e=>Oa("form",{"data-ui":"record-form",method:"post",action:"","data-record-kind":e.kind,id:e.id,"data-record-dirty":e.dirty===!0?"true":null,children:[e.command?re("input",{type:"hidden",name:pe,value:e.command,autocomplete:"off"}):"",Object.entries(e.hidden??{}).map(([a,t])=>re("input",{type:"hidden",name:a,value:t,autocomplete:"off"})),re("div",{"data-ui":"form-grid",children:e.fields.map(a=>ie(a))}),e.body,e.actions?.length?re("div",{"data-ui":"form-actions",children:ee({actions:e.actions})}):""]});var Ne=e=>re("span",{"data-record-dialog":e.dialog,"data-record-param-id":e.id??null,children:e.children}),ot=e=>Oa("form",{"data-ui":"record-form","data-layout":"actions",method:"post",action:"","data-record-kind":e.kind,children:[re("input",{type:"hidden",name:pe,value:e.command,autocomplete:"off"}),Object.entries(e.hidden??{}).map(([a,t])=>re("input",{type:"hidden",name:a,value:t,autocomplete:"off"})),e.children]});import{Fragment as Le,jsx as vf,jsxs as Pe}from"/_ket/view/jsx-runtime.js";var Ia=e=>{let a=e??{};return(Array.isArray(a.errors)?a.errors:Array.isArray(a.issues)?a.issues:[]).map(n=>{let c=n??{},m=Array.isArray(c.path)?c.path.join("."):null;return{field:typeof c.field=="string"?c.field:m,code:String(c.code??"invalid"),message:typeof c.message=="string"?c.message:null,params:c.params&&typeof c.params=="object"?c.params:{}}})},Ja=async(e,a,t={})=>{let n=new URL(e,"https://record.invalid");if(n.origin!=="https://record.invalid"||!e.startsWith("/")||e.startsWith("//"))throw new Error("Record commands require a same-origin route");let c=await fetch(n.pathname+n.search,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json",...t.idempotencyKey?{"idempotency-key":t.idempotencyKey}:{}},body:JSON.stringify(a),signal:t.signal}),m=await c.json().catch(()=>({}));if(!c.ok||m.ok===!1)return{ok:!1,issues:Ia(m.error??m),message:c.status>=500?null:m.error?.message??m.message??null,status:c.status};let O=m.value;return O&&typeof O=="object"&&O.ok===!1?{ok:!1,issues:Ia(O),message:null,status:c.status}:{ok:!0,value:m.value}},Aa=(e,a,t={})=>Ja(`/_ket/fn/${encodeURIComponent(e)}`,a,t),zn=async(e,a)=>{let t=new URL(e,location.href);if(t.origin!==location.origin)throw new Error("Record context must stay same-origin");let n=await fetch(t.href,{credentials:"same-origin",signal:a,headers:{accept:"application/json"}});return n.ok?{ok:!0,value:await n.json()}:{ok:!1,issues:[],message:null,status:n.status}},Vn=30,Gn=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."}),Xe=(e,a)=>a.messages?.[e]??a.previous?.[e]??a.labels?.[e]??Gn[e]??(/^E_[A-Z_]+$/u.test(e)?Xe("recordModal.saveFailed",a):e),Un=(e,a)=>{let t=Xe(e,a);return t===e?Xe("recordModal.saveFailed",a):t},pe="__command",$a="data-record-dialog",Ka=(e,a={})=>e.replace(/\{([a-zA-Z0-9_]+)\}/gu,(t,n)=>n in a?String(a[n]??""):t),Xa=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].join(", "),Ba=e=>[...e.querySelectorAll(Xa)].filter(a=>!a.hidden&&a.getAttribute("aria-hidden")!=="true"&&!a.matches('[data-ui="modal-backdrop"]'));var _n=e=>{let a=[],t=e;for(;t&&t!==document.body;){let n=t.parentElement;if(!n)break;for(let c of n.children)c instanceof HTMLElement&&c!==t&&!c.matches("script, style, template")&&(a.push({element:c,inert:c.inert}),c.inert=!0);t=n}return()=>{for(let{element:n,inert:c}of a)n.inert=c}},qa=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`,Wn=e=>Object.entries(e.values).some(([a,t])=>t!==e.initialValues[a])||Object.entries(e.checks).some(([a,t])=>t!==e.initialChecks[a]),M=()=>({values:{},checks:{},initialValues:{},initialChecks:{}}),Na=(e,a)=>`${e}\0${a}`,Je="__all:",lt=e=>e.after??"close",Zn=400,Yn=(e,a=Zn)=>{let t,n=()=>{clearTimeout(t),t=void 0};return{set:c=>{if(n(),!c){e(!1);return}t=setTimeout(()=>e(!0),a)},stop:n}},Qn='a, button, input, select, textarea, label, summary, details, [data-ui="select-cell"]',jn=e=>{let a=e?.closest("a[href]");return a?a.target&&a.target!=="_self"?null:a.href:e?.closest(Qn)?null:e?.closest("[data-row-href]")?.getAttribute("data-row-href")??null},oe=e=>()=>{let a=P(null),t=P("idle"),n=P(null),c=P(null),m=P([]),O=P(M()),E=P(M()),st=P(!1),dt=P(!1),ct=Yn(r=>dt.set(r)),ye=P(!1),ut=r=>{st.set(r),ct.set(r),r&&ye.set(!1)},F=P(null),ve=P(0),W=P({}),B=P(null),A=new Map,Ya=(r,d)=>{for(A.delete(r),A.set(r,d);A.size>Vn;)A.delete(A.keys().next().value)},L=null,Me=null,Ee=!1,ze=null,$=null,le=null,xe=null,Qa=()=>typeof e.labels=="function"?e.labels():e.labels??{},mt=()=>({messages:n()?.messages,previous:xe,labels:Qa()}),q=(r,d)=>Ka(Xe(r,mt()),d),gt=r=>r.message??Ka(Un(r.code,mt()),r.params),ft=r=>[...e.tabs??[],...e.extensionTabs?.(r)??[]].filter(d=>d.visible?.(r)??!0),Fe=(r,d,u="record")=>{let s=()=>u==="dialog"?E():O(),l={kind:e.kind,id:r.id,creating:r.id==="new",tab:r.tab,data:d,t:q,fieldError:b=>{let i=m().find(o=>o.field===b);return i?gt(i):null},draft:(b,i="")=>{let o=s();return o.initialValues[b]??=i,o.values[b]??i},draftChecked:(b,i="1",o=!1)=>{let g=s(),y=Na(b,i);return g.initialChecks[y]??=o,g.checks[y]??o},outcome:b=>{let i=B();return i?.command===b?i.value:null},busy:dt(),dialog:F(),href:b=>it(location.href,{kind:e.kind,id:r.id,tab:b}),state:(b,i="")=>W()[b]??i},p=ft(l);return p.length&&!p.some(b=>b.id===r.tab)&&(l.tab=p[0].id),l},Z=async(r,d=!1)=>{Me?.abort();let u=new AbortController;Me=u;let s=e.cache===!1?void 0:A.get(r);s&&(xe=s.messages??xe,n.set(s),t.set("ready"),d=!0),d||t.set("loading"),c.set(null);try{let l=r==="new",p="route"in e.context?await zn(e.context.route(r,l),u.signal):await Aa(e.context.fn,e.context.input?e.context.input(r,l):l?{}:{id:r},{signal:u.signal});if(u.signal.aborted)return;if(!p.ok||!p.value){c.set(p.ok?"recordModal.notFound":p.message??"recordModal.loadFailed"),t.set("error");return}xe=p.value.messages??xe,e.cache!==!1&&Ya(r,p.value),n.set(p.value),t.set("ready")}catch(l){if(u.signal.aborted||l?.name==="AbortError")return;c.set("recordModal.loadFailed"),t.set("error")}},He=()=>L?[...L.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]')]:[],se=()=>He()[0]??null,Ve=()=>He().at(-1)??null,de=0,ce=()=>{if(e.fixedHeight||t()!=="ready")return;let r=se()?.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 u=d.querySelector('[data-ui="tab-panel"]'),s=u?.scrollTop??0;r.style.setProperty("height","auto","important"),r.style.setProperty("min-height","0"),d.style.setProperty("height","auto"),de=Math.max(de,Math.ceil(r.getBoundingClientRect().height)),d.style.removeProperty("height");let l=getComputedStyle(r).maxHeight;r.style.setProperty("min-height",l==="none"?`${de}px`:`min(${de}px, ${l})`),u&&(u.scrollTop=s)},Y=(r,d)=>{if(!r)return;let u=d==="dialog"?E():O(),s={values:{...u.values},checks:{...u.checks},initialValues:{...u.initialValues},initialChecks:{...u.initialChecks}};for(let l of r.querySelectorAll("input[name], select[name], textarea[name]"))if(!(l.disabled||l.name===pe)){if(l instanceof HTMLInputElement){if(l.type==="file"||l.type==="hidden")continue;if(l.type==="checkbox"||l.type==="radio"){let p=Na(l.name,l.value);s.initialChecks[p]??=l.defaultChecked,s.checks[p]=l.checked,l.type==="checkbox"?s.values[l.name]=l.checked?l.value:"":l.checked&&(s.values[l.name]=l.value),s.initialValues[l.name]=s.values[l.name]??"";continue}}s.initialValues[l.name]??=l instanceof HTMLSelectElement?[...l.options].find(p=>p.defaultSelected)?.value??l.options[0]?.value??"":l.defaultValue,s.values[l.name]=l.value}d==="dialog"?E.set(s):O.set(s)},Ge=()=>{let r=He();Y(r[0]??null,"record"),r.length>1&&Y(r.at(-1)??null,"dialog")},bt=r=>{if(!r)return!0;let d=F()&&r===Ve()?"dialog":"record";Y(r,d);let u=d==="dialog"?E():O(),s=[...r.querySelectorAll('input[type="file"]')].some(l=>!l.disabled&&!!l.files?.length);return!Wn(u)&&!s?!0:globalThis.confirm(q("recordModal.unsaved"))},ke=r=>{requestAnimationFrame(()=>{let d=He(),u=d[0],s=d.at(-1);if(!s)return;u&&(u.inert=d.length>1);let l=r?.();if(l?.isConnected&&s.contains(l)){l.focus();return}if(s.contains(document.activeElement))return;let p=s.querySelector('[data-ui="modal-sheet"]');(Ba(s).find(i=>!i.matches('[data-ui="modal-close"]'))??p)?.focus()})},z=(r,d,u,s)=>{let l=a(),p=l?.id===r,b=d??(p?l.tab:"");p||(de=0,ze=document.activeElement instanceof HTMLElement?document.activeElement:null,m.set([]),ye.set(!1),O.set(M()),E.set(M()),W.set({}),B.set(null),F.set(null),$=null,n.set(null),Z(r)),a.set({id:r,tab:b});let i=it(location.href,{kind:e.kind,id:r,tab:b||null});u==="push"?(history.replaceState({...history.state??{},__ketScroll:[window.scrollX,window.scrollY]},"",location.href),history.pushState({...history.state??{},__ketRecordModal:e.kind},"",i),Ee=!0):u==="replace"&&history.replaceState(history.state??{},"",i),L&&!le&&(le=_n(L)),ke(s)},Se=r=>{Me?.abort(),a.set(null),de=0,F.set(null),m.set([]),ye.set(!1),O.set(M()),E.set(M()),W.set({}),B.set(null),t.set("idle"),n.set(null),le?.(),le=null,r==="history"&&Ee?(Ee=!1,history.back()):r!=="none"&&(Ee=!1,history.replaceState(history.state??{},"",Ha(location.href)));let d=ze;ze=null,$=null,d?.isConnected&&requestAnimationFrame(()=>d.focus())},pt=()=>{if(F()){if(!bt(Ve()))return;let r=$;$=null,F.set(null),E.set(M()),m.set([]),B.set(null),ke(()=>r?.isConnected?r:null);return}bt(se())&&Se("history")},ja=async(r,d,u)=>{let s=e.commands?.[r],l=a(),p=n()?.data;if(!s||!l||p===void 0||st())return;let b=new FormData(d,u instanceof HTMLButtonElement?u:null),i=d.closest('[data-ui="modal-layer"][data-client-modal="true"]'),o=F()&&i===Ve()?"dialog":"record";Y(i,o);let g=Fe(l,p,o);if(s.confirm){let y=s.confirm(g);if(y&&!globalThis.confirm(y))return}ut(!0),m.set([]);try{let y={};for(let[f,D]of Object.entries(s.upload??{})){let I=b.get(f);if(!(I instanceof File)||I.size===0)continue;let ue=new FormData;for(let[Ue,an]of Object.entries(D(b,g)))ue.append(Ue,an);ue.append("file",I,I.name);let Te=await fetch("/files",{method:"POST",credentials:"same-origin",body:ue}),J=await Te.json().catch(()=>null);if(!Te.ok||!J?.id){m.set([{field:null,code:"recordModal.uploadFailed",message:typeof J?.message=="string"?J.message:null,params:{}}]);return}y[f]={id:String(J.id),name:typeof J.name=="string"?J.name:null}}let k=(f,D)=>Aa(f,D,{idempotencyKey:qa()}),h=s.route?await Ja(s.route,s.input(b,g,y),{idempotencyKey:qa()}):await k(s.fn,s.input(b,g,y));for(let f of h.ok?s.also??[]:[])if(!(f.when&&!f.when(g))&&(h=await k(f.fn,f.input(b,g,y)),!h.ok))break;if(!h.ok){B.set(null),m.set(h.issues.length?h.issues.map(f=>({...f,field:f.field&&s.issueField?s.issueField(f.field,b,g):f.field})):[{field:null,code:h.message??"recordModal.saveFailed",message:h.message,params:{}}]);return}if(s.preview){B.set({command:r,value:h.value}),ve.set(ve()+1);return}o==="dialog"?E.set(M()):O.set(M()),B.set(lt(s)==="stay"?{command:r,value:h.value}:null),d.reset();let N=h.value,V=lt(s)==="open"?s.created?.(h.value)??(N&&typeof N=="object"&&N.id!=null?String(N.id):null):null;A.delete(l.id),V&&A.delete(V);let Q=()=>{document.dispatchEvent(new CustomEvent("ket:records-changed",{detail:{kind:e.kind,ids:[V??l.id]}}))};if(s.navigate){let f=new URL(s.navigate(h.value,g),location.href);if(f.origin!==location.origin)throw new Error("Record navigation must stay same-origin");Se("none"),location.assign(f.href);return}let H=lt(s);if(H!=="close"&&ye.set(!0),H==="open"){F.set(null),E.set(M()),V?z(V,s.openTab??null,"replace"):Se("history"),Q();return}if(Q(),H==="close")Se("history");else if(H==="reload"){let f=$;$=null,F.set(null),E.set(M()),await Z(l.id),ke(()=>f?.isConnected?f:null)}else if(H==="refresh")await Z(l.id,!0);else if(H==="stay")ve.set(ve()+1);else if("tab"in H)$=null,F.set(null),E.set(M()),z(l.id,H.tab,"replace"),await Z(l.id);else{let f=H.dialog?null:$;$=H.dialog&&u instanceof HTMLElement?u:null,F.set(H.dialog?{name:H.dialog,params:{}}:null),E.set(M()),await Z(l.id,!0),ke(()=>f?.isConnected?f:null)}}catch{m.set([{field:null,code:"recordModal.saveFailed",message:null,params:{}}])}finally{ut(!1)}},ht=r=>{let d=m().filter(l=>!l.field),u=m().filter(l=>l.field&&!L?.querySelector(`[name="${CSS.escape(l.field)}"]`)),s=[...d,...u];return s.length?U({title:r.t("recordModal.errorTitle"),message:s.map(gt).join(" \xB7 "),tone:"danger"}):ye()?U({title:r.t("recordModal.savedTitle"),message:r.t("recordModal.saved"),tone:"positive"}):""},en=()=>{let r=a();if(!r)return"";if(t()==="error")return Pe(Le,{children:[U({title:q("recordModal.errorTitle"),message:q(c()??"recordModal.loadFailed"),tone:"danger"}),w({label:q("recordModal.retry"),variant:"secondary",name:"intent",value:"retry"})]});let d=n()?.data;if(t()!=="ready"||d===void 0)return me({label:q("recordModal.loading")});let u=Fe(r,d),s=ft(u),l=s.find(o=>o.id===u.tab),p=e.header?.(u)??"",b=ht(u),i=l?l.view(u):e.body?.(u)??"";return s.length?je({id:`record-view-${e.kind.replaceAll(".","-")}`,label:e.title(u),items:s.map(o=>({id:o.id,label:o.label(u),href:u.href(o.id),active:o.id===u.tab})),context:p!==""||b!==""?Pe(Le,{children:[p,b]}):void 0,body:i}):Pe(Le,{children:[p,b,i]})},tn=()=>{let r=a(),d=F(),u=n()?.data;if(!r||!d||u===void 0)return"";let s=e.dialogs?.[d.name];if(!s)return"";let l=Fe(r,u,"dialog");return ae({id:`record-dialog-${e.kind.replaceAll(".","-")}-${d.name}`,mode:"client",presentation:"dialog",size:s.size??"default",title:s.title(l),actions:s.actions?.(l),closeLabel:q("recordModal.close"),body:Pe(Le,{children:[ht(l),s.view(l)]})})};return{view:()=>{ve();let r=a();if(!r)return rt(e.kind);let d=n()?.data,u=d===void 0?null:Fe(r,d);return Pe(Le,{children:[rt(e.kind),ae({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:u?e.title(u):q("recordModal.loading"),description:u?e.description?.(u)??null:null,status:u?e.status?.(u):void 0,actions:u?e.actions?.(u):void 0,closeLabel:q("recordModal.close"),body:en()}),tn()]})},mount:({root:r,lifetime:d})=>{L=r,document.addEventListener("click",i=>{if(i.defaultPrevented||i.button!==0||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey)return;let o=i.target instanceof Element?i.target:null,g=o?.closest('[data-ui="modal-layer"][data-client-modal="true"]');if(g&&L?.contains(g)){if(o?.closest('[data-ui="modal-close"], [data-ui="modal-backdrop"], [data-record-close]')){i.preventDefault(),pt();return}let f=o?.closest("button[data-record-state], a[data-record-state]");if(f){i.preventDefault(),Ge(),W.set({...W(),[f.getAttribute("data-record-state")??""]:f.getAttribute("data-record-value")??""});return}let D=o?.closest(`[${$a}]`);if(D){i.preventDefault(),Y(se(),"record");let I=document.activeElement;$=I instanceof HTMLElement&&D.contains(I)?I:D.querySelector(Xa),E.set(M());let ue={};for(let[Te,J]of Object.entries(D.dataset))Te.startsWith("recordParam")&&J!==void 0&&(ue[Te.slice(11).replace(/^./u,Ue=>Ue.toLowerCase())]=J);m.set([]),B.set(null),F.set({name:D.getAttribute($a)??"",params:ue}),ke();return}if(o?.closest('button[name="intent"][value="retry"]')){i.preventDefault();let I=a();I&&Z(I.id);return}}let y=jn(o);if(!y)return;let k=new URL(y,location.href);if(k.origin!==location.origin||k.pathname!==location.pathname)return;let h=be(k);if(!h||h.kind!==e.kind)return;i.preventDefault();let N=a(),V="route"in e.context?e.context.query??[]:[],Q=new URL(location.href);if(V.some(f=>Q.searchParams.get(f)!==k.searchParams.get(f))){Y(se(),"record");for(let f of V){let D=k.searchParams.get(f);D===null?Q.searchParams.delete(f):Q.searchParams.set(f,D)}history.replaceState(history.state??{},"",Q.href),N?.id===h.id&&Z(N.id)}if(N?.id===h.id){if((h.tab??"")===N.tab)return;Y(se(),"record"),m.set([]),B.set(null),z(h.id,h.tab??null,"replace",()=>se()?.querySelector('[data-ui="tab"][data-active="true"]')??null);return}z(h.id,h.tab??null,"push")},{signal:d,capture:!0}),document.addEventListener("keydown",i=>{if(i.defaultPrevented||i.key!=="Enter"&&i.key!==" ")return;let o=i.target instanceof Element?i.target:null;if(!o?.matches('[data-row-href][tabindex="0"]'))return;let g=o.getAttribute("data-row-href"),y=g?new URL(g,location.href):null;if(!y||y.origin!==location.origin||y.pathname!==location.pathname)return;let k=be(y);!k||k.kind!==e.kind||(i.preventDefault(),z(k.id,k.tab??null,"push"))},{signal:d,capture:!0}),document.addEventListener("submit",i=>{let o=i.target instanceof HTMLFormElement?i.target:null;if(!o||!L?.contains(o))return;i.preventDefault();let g=i.submitter??null,y=(g instanceof HTMLButtonElement&&g.name===pe?g.value:null)??String(new FormData(o).get(pe)??"");ja(y,o,g)},{signal:d}),document.addEventListener("keydown",i=>{if(!a())return;let o=L?.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]'),g=o?.[o.length-1];if(!g)return;if(i.key==="Escape"){i.preventDefault(),pt();return}if(i.key!=="Tab")return;let y=Ba(g);if(!y.length){i.preventDefault(),g.querySelector('[data-ui="modal-sheet"]')?.focus();return}let k=y[0],h=y.at(-1);i.shiftKey&&(document.activeElement===k||!g.contains(document.activeElement))?(i.preventDefault(),h.focus()):!i.shiftKey&&(document.activeElement===h||!g.contains(document.activeElement))&&(i.preventDefault(),k.focus())},{signal:d}),document.addEventListener("change",i=>{let o=i.target instanceof Element?i.target:null;if(!o||!L?.contains(o))return;if(o instanceof HTMLInputElement&&o.type==="checkbox"&&o.form){let y=o.form;if(y.querySelector(`input[type="checkbox"][name^="${Je}"]`)){if(o.name.startsWith(Je)){let k=o.name.slice(Je.length);for(let h of y.querySelectorAll('input[type="checkbox"]'))!h.disabled&&!h.name.startsWith(Je)&&h.name.startsWith(k)&&(h.checked=o.checked)}Ge();return}}let g=o.getAttribute("data-record-state")??(["relation-native","reorder-list-value"].includes(o.getAttribute("data-ui")??"")?o.getAttribute("name"):null);if((o instanceof HTMLSelectElement||o instanceof HTMLInputElement)&&g){Ge(),W.set({...W(),[g]:o.value});return}o instanceof HTMLInputElement&&o.type==="file"&&o.hasAttribute("data-record-submit")&&o.files?.length&&o.form?.requestSubmit()},{signal:d});let u=i=>{let g=(i.target instanceof Element?i.target:null)?.closest("form[data-record-dropzone]")??null;return g&&L?.contains(g)?g:null};document.addEventListener("dragover",i=>{let o=u(i);o&&(i.preventDefault(),o.dataset.drag="1")},{signal:d}),document.addEventListener("dragleave",i=>{let o=u(i);if(!o)return;let g=i.relatedTarget;g instanceof Node&&o.contains(g)||delete o.dataset.drag},{signal:d}),document.addEventListener("drop",i=>{let o=u(i);if(!o)return;i.preventDefault(),delete o.dataset.drag;let g=i.dataTransfer?.files,y=o.querySelector('input[type="file"]');if(!y||!g?.length)return;let k=new DataTransfer;k.items.add(g[0]),y.files=k.files,o.requestSubmit()},{signal:d});let s="ket-island, div[data-ket-island]",l=i=>i instanceof Element&&(i.matches(s)||i.querySelector(s)!==null),p=new MutationObserver(i=>{ce();for(let o of i){for(let g of o.removedNodes)l(g)&&document.dispatchEvent(new CustomEvent("ket:islands-detach",{detail:{root:g}}));for(let g of o.addedNodes)l(g)&&g.isConnected&&document.dispatchEvent(new CustomEvent("ket:islands-attach",{detail:{root:g}}))}});p.observe(L,{childList:!0,subtree:!0,characterData:!0}),d.addEventListener("abort",()=>p.disconnect()),window.addEventListener("resize",ce,{signal:d}),L.addEventListener("load",ce,{capture:!0,signal:d}),L.addEventListener("toggle",ce,{capture:!0,signal:d}),document.fonts?.ready.then(()=>{d.aborted||ce()}),ce(),document.addEventListener("ket:records-changed",i=>{let o=i.detail;if(o?.kind===e.kind)if(!Array.isArray(o.ids)||!o.ids.length)A.clear();else for(let g of o.ids)A.delete(String(g))},{signal:d}),document.addEventListener("ket:popstate",i=>{let o=be(location.href),g=o?.kind===e.kind;!g&&!a()||(i.preventDefault(),g&&o?z(o.id,o.tab??null,"none"):Se("none"))},{signal:d}),document.addEventListener("ket:navigation-complete",()=>{let i=be(location.href);i?.kind===e.kind&&!a()&&z(i.id,i.tab??null,"none")},{signal:d});let b=be(location.href);b?.kind===e.kind&&z(b.id,b.tab??null,"none"),d.addEventListener("abort",()=>{Me?.abort(),ct.stop(),le?.(),le=null,L=null})}}};var za={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."}};var Va={warehouse:{kind:"stock.warehouse",title:"warehouse.create.title",read:"stock.listWarehouses",save:"stock.saveWarehouse",fields:[{name:"name",label:"warehouse.field.name",required:!0},{name:"code",label:"warehouse.field.code",required:!0},{name:"receptionSteps",label:"field.receptionSteps",defaultValue:"one_step",choices:["one_step","two_steps","three_steps"],choiceLabel:"receptionSteps"},{name:"deliverySteps",label:"field.deliverySteps",defaultValue:"ship_only",choices:["ship_only","pick_ship","pick_pack_ship"],choiceLabel:"deliverySteps"}]},location:{kind:"stock.location",title:"location.create.title",read:"stock.listLocations",save:"stock.saveLocation",fields:[{name:"name",label:"location.field.name",required:!0},{name:"usage",label:"field.usage",required:!0,defaultValue:"internal",choices:["internal","view","supplier","customer","inventory","production","transit"],choiceLabel:"usage"},{name:"parentId",label:"field.parentLocation",lookup:"locations"},{name:"warehouseId",label:"field.warehouse",lookup:"warehouses"}]},"picking-type":{kind:"stock.pickingType",title:"pickingType.create.title",read:"stock.listPickingTypes",save:"stock.savePickingType",fields:[{name:"name",label:"pickingType.field.name",required:!0},{name:"code",label:"pickingType.field.code",required:!0,defaultValue:"internal",choices:["incoming","outgoing","internal"],choiceLabel:"pickingType"},{name:"warehouseId",label:"field.warehouse",lookup:"warehouses"},{name:"defaultLocationSrcId",label:"field.sourceLocation",lookup:"locations"},{name:"defaultLocationDestId",label:"field.destinationLocation",lookup:"locations"},{name:"createBackorder",label:"field.backorder",defaultValue:"ask",choices:["ask","always","never"],choiceLabel:"backorder"}]},lot:{kind:"stock.lot",title:"lot.create.title",read:"stock.listLots",save:"stock.saveLot",fields:[{name:"productId",label:"lot.field.product",lookup:"products",required:!0},{name:"name",label:"field.lotSerial",required:!0},{name:"ref",label:"lot.field.reference"},{name:"note",label:"lot.field.description",type:"textarea"}]},route:{kind:"stock.route",title:"stockRoute.create.title",read:"stock.listRoutes",save:"stock.saveRoute",fields:[{name:"name",label:"stockRoute.field.name",required:!0},{name:"sequence",label:"field.sequence",type:"number",defaultValue:"10"}]},replenishment:{kind:"stock.replenishment",title:"replenishment.create.title",read:"stock.listOrderpoints",save:"stock.saveOrderpoint",fields:[{name:"productId",label:"field.product",lookup:"products",required:!0},{name:"warehouseId",label:"field.warehouse",lookup:"warehouses",required:!0},{name:"locationId",label:"field.location",lookup:"locations",required:!0},{name:"trigger",label:"field.trigger",choices:["auto","manual"],choiceLabel:"trigger",defaultValue:"manual"},{name:"minQuantity",label:"field.minQuantity",type:"decimal",defaultValue:"0",required:!0},{name:"maxQuantity",label:"field.maxQuantity",type:"decimal",defaultValue:"0",required:!0},{name:"replenishmentUomId",label:"field.replenishmentUom",lookup:"units"},{name:"routeId",label:"field.route",lookup:"routes"}]}};import{jsx as C}from"/_ket/view/jsx-runtime.js";var Ga=()=>typeof document<"u"&&document.documentElement.lang==="en"?"en":"vi",S=(e,a)=>e.t(`stock_backend.${a}`),Ua=[{name:"name",label:"stockRoute.rule.col.name",required:!0},{name:"action",label:"field.ruleAction",choices:["pull","push","pull_push"],choiceLabel:"ruleAction",defaultValue:"pull",required:!0},{name:"locationSrcId",label:"field.sourceLocation",lookup:"locations"},{name:"locationDestId",label:"field.destinationLocation",lookup:"locations",required:!0},{name:"pickingTypeId",label:"field.operationType",lookup:"pickingTypes",required:!0},{name:"sequence",label:"field.sequence",type:"number",defaultValue:"20"},{name:"procureMethod",label:"field.procureMethod",choices:["make_to_stock","make_to_order","mts_else_mto"],choiceLabel:"procureMethod",defaultValue:"make_to_stock"}],_a=(e,a,t)=>a.map(n=>({id:`${e.kind}-${e.dialog?.name??"record"}-${n.name}`,name:n.name,label:S(e,n.label),type:n.type,required:n.required,value:e.draft(n.name,String(t[n.name]??n.defaultValue??"")),error:e.fieldError(n.name),disabled:e.busy,...n.choices?{type:"select",options:n.choices.map(c=>({value:c,label:S(e,`${n.choiceLabel}.${c}`)}))}:{},...n.lookup?{type:"select",options:[{value:"",label:"\u2014"},...(e.data.choices[n.lookup]??[]).filter(c=>n.name!=="parentId"||c.id!==e.id).map(c=>({value:String(c.id),label:String(c.name)}))]}:{}})),Wa=(e,a)=>Object.fromEntries(a.flatMap(t=>{let n=String(e.get(t.name)??"");return t.type==="number"?n?[[t.name,Number(n)]]:[]:n||t.required?[[t.name,n]]:t.lookup?[[t.name,null]]:t.type==="textarea"||!t.type?[[t.name,""]]:[]})),Za=e=>e.data.rules.find(a=>a.id===e.dialog?.params.id),he=e=>{let a=Va[e];return{kind:a.kind,size:"large",labels:()=>za[Ga()],context:{route:(t,n)=>{let c=n?"new":encodeURIComponent(t);return`/admin/stock/record/${e}/${c}/context?lang=${Ga()}`},query:["company","branch"]},title:t=>t.creating?S(t,a.title):String(t.data.record.name??t.data.choices.products?.find(n=>n.id===t.data.record.productId)?.name??t.id),body:t=>C(We,{items:[t.data.save?C(qe,{kind:t.kind,command:"save",fields:_a(t,a.fields,t.data.record),actions:[C(w,{type:"submit",label:t.t("recordModal.save"),variant:"primary",disabled:t.busy})]}):C($e,{items:a.fields.map(n=>({id:n.name,label:S(t,n.label),value:n.choices?S(t,`${n.choiceLabel}.${t.data.record[n.name]}`):String((n.lookup?t.data.choices[n.lookup]?.find(c=>c.id===t.data.record[n.name])?.name:null)??t.data.record[n.name]??"\u2014")}))}),...e==="lot"&&!t.creating?[C(Re,{title:S(t,"lot.inventory.title"),body:C(Ke,{rows:t.data.quants??[],id:n=>String(n.id),responsive:"scroll",columns:[{key:"location",label:S(t,"lot.col.location"),cell:n=>String(t.data.choices.locations?.find(c=>c.id===n.locationId)?.name??n.locationId)},{key:"quantity",label:S(t,"lot.col.onHand"),cell:n=>String(n.quantity)},{key:"reserved",label:S(t,"lot.col.reserved"),cell:n=>String(n.reservedQuantity)},{key:"available",label:S(t,"lot.col.available"),cell:n=>String(Number(n.quantity)-Number(n.reservedQuantity))}]})})]:[],...e==="route"&&!t.creating?[C(Re,{title:S(t,"stockRoute.rule.col.name"),actions:t.data.rule?C(Ne,{dialog:"rule",children:C(w,{label:S(t,"stockRoute.rule.create.title")})}):null,body:C(Ke,{rows:t.data.rules,id:n=>String(n.id),responsive:"scroll",columns:[{key:"name",label:S(t,"stockRoute.rule.col.name"),cell:n=>String(n.name)},{key:"action",label:S(t,"field.ruleAction"),cell:n=>S(t,`ruleAction.${n.action}`)},{key:"sequence",label:S(t,"field.sequence"),cell:n=>String(n.sequence)},{key:"edit",label:S(t,"action.save"),cell:n=>t.data.rule?C(Ne,{dialog:"rule",id:String(n.id),children:C(w,{label:S(t,"modal.edit"),variant:"tertiary"})}):""}]})})]:[],...e==="replenishment"&&!t.creating&&t.data.run?[C(ot,{kind:t.kind,command:"run",children:C(w,{type:"submit",label:S(t,"action.run"),disabled:t.busy})})]:[]]}),dialogs:{rule:{title:t=>S(t,"stockRoute.rule.col.name"),view:t=>C(qe,{kind:t.kind,command:"rule",fields:_a(t,Ua,Za(t)??{}),actions:[C(w,{type:"submit",label:t.t("recordModal.save"),variant:"primary",disabled:t.busy})]})}},commands:{save:{fn:a.save,after:"open",input:(t,n)=>({id:n.creating?n.data.draftId:n.id,...Wa(t,a.fields)})},rule:{fn:"stock.saveRule",after:"reload",input:(t,n)=>({id:Za(n)?.id??n.data.draftId,routeId:n.id,...Wa(t,Ua)})},run:{fn:"stock.runOrderpoint",after:"reload",input:(t,n)=>({id:n.id,moveId:n.data.draftId}),confirm:t=>S(t,"modal.confirmRun")}}}},Mf=oe(he("warehouse")),Ef=oe(he("location")),Ff=oe(he("picking-type")),Hf=oe(he("lot")),Of=oe(he("route")),Df=oe(he("replenishment"));export{Ef as locationModal,Hf as lotModal,Ff as pickingTypeModal,Df as replenishmentModal,he as stockConfigurationDefinition,Of as stockRouteModal,Mf as warehouseModal};