@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.
- package/dist/cli.js +1 -1
- package/dist/modules/account_backend/index.js +0 -6
- package/dist/modules/account_backend/index.js.map +1 -1
- package/dist/modules/account_backend/screens/account-defaults.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/account-defaults.js +1 -1
- package/dist/modules/account_backend/screens/account-defaults.js.map +1 -1
- package/dist/modules/account_backend/screens/account-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/account-form.js +3 -1
- package/dist/modules/account_backend/screens/account-form.js.map +1 -1
- package/dist/modules/account_backend/screens/accounts-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/accounts-list.js +1 -1
- package/dist/modules/account_backend/screens/accounts-list.js.map +1 -1
- package/dist/modules/account_backend/screens/customer-invoice-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/customer-invoice-form.js +1 -1
- package/dist/modules/account_backend/screens/customer-invoice-form.js.map +1 -1
- package/dist/modules/account_backend/screens/customer-invoices-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/customer-invoices-list.js +1 -1
- package/dist/modules/account_backend/screens/customer-invoices-list.js.map +1 -1
- package/dist/modules/account_backend/screens/journal-entries-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/journal-entries-list.js +1 -1
- package/dist/modules/account_backend/screens/journal-entries-list.js.map +1 -1
- package/dist/modules/account_backend/screens/journal-entry-create.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/journal-entry-create.js +1 -1
- package/dist/modules/account_backend/screens/journal-entry-create.js.map +1 -1
- package/dist/modules/account_backend/screens/journal-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/journal-form.js +3 -3
- package/dist/modules/account_backend/screens/journal-form.js.map +1 -1
- package/dist/modules/account_backend/screens/journals-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/journals-list.js +1 -1
- package/dist/modules/account_backend/screens/journals-list.js.map +1 -1
- package/dist/modules/account_backend/screens/move-detail.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/move-detail.js +3 -1
- package/dist/modules/account_backend/screens/move-detail.js.map +1 -1
- package/dist/modules/account_backend/screens/opening-balances.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/opening-balances.js +2 -2
- package/dist/modules/account_backend/screens/opening-balances.js.map +1 -1
- package/dist/modules/account_backend/screens/overview.js +4 -2
- package/dist/modules/account_backend/screens/overview.js.map +1 -1
- package/dist/modules/account_backend/screens/payment-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/payment-form.js +1 -1
- package/dist/modules/account_backend/screens/payment-form.js.map +1 -1
- package/dist/modules/account_backend/screens/payment-term-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/payment-term-form.js +4 -2
- package/dist/modules/account_backend/screens/payment-term-form.js.map +1 -1
- package/dist/modules/account_backend/screens/payment-terms-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/payment-terms-list.js +1 -1
- package/dist/modules/account_backend/screens/payment-terms-list.js.map +1 -1
- package/dist/modules/account_backend/screens/payments-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/payments-list.js +1 -1
- package/dist/modules/account_backend/screens/payments-list.js.map +1 -1
- package/dist/modules/account_backend/screens/period-closes.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/period-closes.js +1 -1
- package/dist/modules/account_backend/screens/period-closes.js.map +1 -1
- package/dist/modules/account_backend/screens/tax-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/tax-form.js +3 -1
- package/dist/modules/account_backend/screens/tax-form.js.map +1 -1
- package/dist/modules/account_backend/screens/taxes-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/taxes-list.js +1 -1
- package/dist/modules/account_backend/screens/taxes-list.js.map +1 -1
- package/dist/modules/account_backend/screens/vendor-bill-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/vendor-bill-form.js +1 -1
- package/dist/modules/account_backend/screens/vendor-bill-form.js.map +1 -1
- package/dist/modules/account_backend/screens/vendor-bills-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/vendor-bills-list.js +1 -1
- package/dist/modules/account_backend/screens/vendor-bills-list.js.map +1 -1
- package/dist/modules/account_partner_backend/screens/accounting-terms.d.ts.map +1 -1
- package/dist/modules/account_partner_backend/screens/accounting-terms.js +1 -1
- package/dist/modules/account_partner_backend/screens/accounting-terms.js.map +1 -1
- package/dist/modules/activity_backend/index.d.ts.map +1 -1
- package/dist/modules/activity_backend/index.js +0 -2
- package/dist/modules/activity_backend/index.js.map +1 -1
- package/dist/modules/activity_backend/screens/activities-list.d.ts.map +1 -1
- package/dist/modules/activity_backend/screens/activities-list.js +1 -1
- package/dist/modules/activity_backend/screens/activities-list.js.map +1 -1
- package/dist/modules/address_backend/index.d.ts.map +1 -1
- package/dist/modules/address_backend/index.js +0 -2
- package/dist/modules/address_backend/index.js.map +1 -1
- package/dist/modules/address_backend/screens/catalogs-list.d.ts.map +1 -1
- package/dist/modules/address_backend/screens/catalogs-list.js +1 -1
- package/dist/modules/address_backend/screens/catalogs-list.js.map +1 -1
- package/dist/modules/attendance_backend/screens/credentials.d.ts.map +1 -1
- package/dist/modules/attendance_backend/screens/credentials.js +1 -1
- package/dist/modules/attendance_backend/screens/credentials.js.map +1 -1
- package/dist/modules/attendance_backend/screens/period.d.ts.map +1 -1
- package/dist/modules/attendance_backend/screens/period.js +1 -1
- package/dist/modules/attendance_backend/screens/period.js.map +1 -1
- package/dist/modules/backend/current-company.d.ts +4 -0
- package/dist/modules/backend/current-company.d.ts.map +1 -0
- package/dist/modules/backend/current-company.js +27 -0
- package/dist/modules/backend/current-company.js.map +1 -0
- package/dist/modules/backend/design/client/backend-shell.d.mts +2 -2
- package/dist/modules/backend/design/client/backend-shell.d.mts.map +1 -1
- package/dist/modules/backend/design/client/backend-shell.mjs +1 -1
- package/dist/modules/backend/design/client/backend-shell.mjs.map +4 -4
- package/dist/modules/backend/design/client/ket-table.d.mts +2 -2
- package/dist/modules/backend/design/client/ket-table.d.mts.map +1 -1
- package/dist/modules/backend/design/client/ket-table.mjs +1 -1
- package/dist/modules/backend/design/client/ket-table.mjs.map +3 -3
- package/dist/modules/backend/design/client/search-filter.d.mts +2 -2
- package/dist/modules/backend/design/client/search-filter.d.mts.map +1 -1
- package/dist/modules/backend/design/client/search-filter.mjs +1 -1
- package/dist/modules/backend/design/client/search-filter.mjs.map +3 -3
- package/dist/modules/backend/design/forms.css +31 -0
- package/dist/modules/backend/index.d.ts +1 -0
- package/dist/modules/backend/index.d.ts.map +1 -1
- package/dist/modules/backend/index.js +1 -0
- package/dist/modules/backend/index.js.map +1 -1
- package/dist/modules/backend/optional-read.d.ts +4 -0
- package/dist/modules/backend/optional-read.d.ts.map +1 -0
- package/dist/modules/backend/optional-read.js +7 -0
- package/dist/modules/backend/optional-read.js.map +1 -0
- package/dist/modules/company_backend/index.d.ts.map +1 -1
- package/dist/modules/company_backend/index.js +0 -2
- package/dist/modules/company_backend/index.js.map +1 -1
- package/dist/modules/company_backend/screens/branch-form.d.ts.map +1 -1
- package/dist/modules/company_backend/screens/branch-form.js +3 -1
- package/dist/modules/company_backend/screens/branch-form.js.map +1 -1
- package/dist/modules/company_backend/screens/companies-list.d.ts.map +1 -1
- package/dist/modules/company_backend/screens/companies-list.js +1 -1
- package/dist/modules/company_backend/screens/companies-list.js.map +1 -1
- package/dist/modules/company_backend/screens/company-form.d.ts.map +1 -1
- package/dist/modules/company_backend/screens/company-form.js +1 -3
- package/dist/modules/company_backend/screens/company-form.js.map +1 -1
- package/dist/modules/company_backend/screens/context.d.ts.map +1 -1
- package/dist/modules/company_backend/screens/context.js +1 -1
- package/dist/modules/company_backend/screens/context.js.map +1 -1
- package/dist/modules/company_backend/screens/hierarchy.d.ts.map +1 -1
- package/dist/modules/company_backend/screens/hierarchy.js +1 -1
- package/dist/modules/company_backend/screens/hierarchy.js.map +1 -1
- package/dist/modules/crm_backend/client/crm-case-modal.d.mts +7 -7
- package/dist/modules/crm_backend/client/crm-case-modal.d.mts.map +1 -1
- package/dist/modules/crm_backend/client/crm-case-modal.mjs +1 -1
- package/dist/modules/crm_backend/client/crm-case-modal.mjs.map +3 -3
- package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts +50 -50
- package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts.map +1 -1
- package/dist/modules/crm_backend/client/crm-configuration-modal.mjs +1 -1
- package/dist/modules/crm_backend/client/crm-configuration-modal.mjs.map +3 -3
- package/dist/modules/crm_backend/messages.d.ts +0 -10
- package/dist/modules/crm_backend/messages.d.ts.map +1 -1
- package/dist/modules/crm_backend/messages.js +0 -10
- package/dist/modules/crm_backend/messages.js.map +1 -1
- package/dist/modules/crm_backend/screens/activity-planner.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/activity-planner.js +1 -1
- package/dist/modules/crm_backend/screens/activity-planner.js.map +1 -1
- package/dist/modules/crm_backend/screens/case-create.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/case-create.js +1 -1
- package/dist/modules/crm_backend/screens/case-create.js.map +1 -1
- package/dist/modules/crm_backend/screens/case-detail.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/case-detail.js +2 -2
- package/dist/modules/crm_backend/screens/case-detail.js.map +1 -1
- package/dist/modules/crm_backend/screens/cases-list.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/cases-list.js +1 -1
- package/dist/modules/crm_backend/screens/cases-list.js.map +1 -1
- package/dist/modules/crm_backend/screens/configuration.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/configuration.js +1 -1
- package/dist/modules/crm_backend/screens/configuration.js.map +1 -1
- package/dist/modules/crm_backend/screens/leaderboard.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/leaderboard.js +1 -1
- package/dist/modules/crm_backend/screens/leaderboard.js.map +1 -1
- package/dist/modules/crm_backend/screens/pipeline.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/pipeline.js +1 -1
- package/dist/modules/crm_backend/screens/pipeline.js.map +1 -1
- package/dist/modules/flow/domain/command-check.d.ts +3 -0
- package/dist/modules/flow/domain/command-check.d.ts.map +1 -0
- package/dist/modules/flow/domain/command-check.js +9 -0
- package/dist/modules/flow/domain/command-check.js.map +1 -0
- package/dist/modules/flow/domain/command.d.ts +33 -0
- package/dist/modules/flow/domain/command.d.ts.map +1 -0
- package/dist/modules/flow/domain/command.js +35 -0
- package/dist/modules/flow/domain/command.js.map +1 -0
- package/dist/modules/flow/domain/issue-bulk.d.ts +50 -0
- package/dist/modules/flow/domain/issue-bulk.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-bulk.js +97 -0
- package/dist/modules/flow/domain/issue-bulk.js.map +1 -0
- package/dist/modules/flow/domain/issue-dependency.d.ts +19 -0
- package/dist/modules/flow/domain/issue-dependency.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-dependency.js +59 -0
- package/dist/modules/flow/domain/issue-dependency.js.map +1 -0
- package/dist/modules/flow/domain/issue-discussion.d.ts +52 -0
- package/dist/modules/flow/domain/issue-discussion.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-discussion.js +114 -0
- package/dist/modules/flow/domain/issue-discussion.js.map +1 -0
- package/dist/modules/flow/domain/issue-transfer.d.ts +62 -0
- package/dist/modules/flow/domain/issue-transfer.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-transfer.js +171 -0
- package/dist/modules/flow/domain/issue-transfer.js.map +1 -0
- package/dist/modules/flow/domain/issue-validation.d.ts +68 -0
- package/dist/modules/flow/domain/issue-validation.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-validation.js +136 -0
- package/dist/modules/flow/domain/issue-validation.js.map +1 -0
- package/dist/modules/flow/domain/issue-write.d.ts +118 -0
- package/dist/modules/flow/domain/issue-write.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-write.js +372 -0
- package/dist/modules/flow/domain/issue-write.js.map +1 -0
- package/dist/modules/flow/domain/sprint-lifecycle.d.ts +61 -0
- package/dist/modules/flow/domain/sprint-lifecycle.d.ts.map +1 -0
- package/dist/modules/flow/domain/sprint-lifecycle.js +145 -0
- package/dist/modules/flow/domain/sprint-lifecycle.js.map +1 -0
- package/dist/modules/flow/functions/board.d.ts +7 -0
- package/dist/modules/flow/functions/board.d.ts.map +1 -0
- package/dist/modules/flow/functions/board.js +59 -0
- package/dist/modules/flow/functions/board.js.map +1 -0
- package/dist/modules/flow/functions/column.d.ts +8 -0
- package/dist/modules/flow/functions/column.d.ts.map +1 -0
- package/dist/modules/flow/functions/column.js +64 -0
- package/dist/modules/flow/functions/column.js.map +1 -0
- package/dist/modules/flow/functions/effects.d.ts +21 -0
- package/dist/modules/flow/functions/effects.d.ts.map +1 -0
- package/dist/modules/flow/functions/effects.js +96 -0
- package/dist/modules/flow/functions/effects.js.map +1 -0
- package/dist/modules/flow/functions/entity-save.d.ts +4 -0
- package/dist/modules/flow/functions/entity-save.d.ts.map +1 -0
- package/dist/modules/flow/functions/entity-save.js +60 -0
- package/dist/modules/flow/functions/entity-save.js.map +1 -0
- package/dist/modules/flow/functions/epic.d.ts +26 -0
- package/dist/modules/flow/functions/epic.d.ts.map +1 -0
- package/dist/modules/flow/functions/epic.js +151 -0
- package/dist/modules/flow/functions/epic.js.map +1 -0
- package/dist/modules/flow/functions/field.d.ts +9 -0
- package/dist/modules/flow/functions/field.d.ts.map +1 -0
- package/dist/modules/flow/functions/field.js +117 -0
- package/dist/modules/flow/functions/field.js.map +1 -0
- package/dist/modules/flow/functions/index.d.ts +5 -0
- package/dist/modules/flow/functions/index.d.ts.map +1 -0
- package/dist/modules/flow/functions/index.js +42 -0
- package/dist/modules/flow/functions/index.js.map +1 -0
- package/dist/modules/flow/functions/issue-batch.d.ts +6 -0
- package/dist/modules/flow/functions/issue-batch.d.ts.map +1 -0
- package/dist/modules/flow/functions/issue-batch.js +149 -0
- package/dist/modules/flow/functions/issue-batch.js.map +1 -0
- package/dist/modules/flow/functions/issue-dependency.d.ts +8 -0
- package/dist/modules/flow/functions/issue-dependency.d.ts.map +1 -0
- package/dist/modules/flow/functions/issue-dependency.js +54 -0
- package/dist/modules/flow/functions/issue-dependency.js.map +1 -0
- package/dist/modules/flow/functions/issue-discussion.d.ts +6 -0
- package/dist/modules/flow/functions/issue-discussion.d.ts.map +1 -0
- package/dist/modules/flow/functions/issue-discussion.js +86 -0
- package/dist/modules/flow/functions/issue-discussion.js.map +1 -0
- package/dist/modules/flow/functions/issue-read.d.ts +18 -0
- package/dist/modules/flow/functions/issue-read.d.ts.map +1 -0
- package/dist/modules/flow/functions/issue-read.js +159 -0
- package/dist/modules/flow/functions/issue-read.js.map +1 -0
- package/dist/modules/flow/functions/issue-write.d.ts +9 -0
- package/dist/modules/flow/functions/issue-write.d.ts.map +1 -0
- package/dist/modules/flow/functions/issue-write.js +149 -0
- package/dist/modules/flow/functions/issue-write.js.map +1 -0
- package/dist/modules/flow/functions/issueType.d.ts +8 -0
- package/dist/modules/flow/functions/issueType.d.ts.map +1 -0
- package/dist/modules/flow/functions/issueType.js +66 -0
- package/dist/modules/flow/functions/issueType.js.map +1 -0
- package/dist/modules/flow/functions/page.d.ts +22 -0
- package/dist/modules/flow/functions/page.d.ts.map +1 -0
- package/dist/modules/flow/functions/page.js +202 -0
- package/dist/modules/flow/functions/page.js.map +1 -0
- package/dist/modules/flow/functions/project.d.ts +26 -0
- package/dist/modules/flow/functions/project.d.ts.map +1 -0
- package/dist/modules/flow/functions/project.js +381 -0
- package/dist/modules/flow/functions/project.js.map +1 -0
- package/dist/modules/flow/functions/sprint.d.ts +17 -0
- package/dist/modules/flow/functions/sprint.d.ts.map +1 -0
- package/dist/modules/flow/functions/sprint.js +173 -0
- package/dist/modules/flow/functions/sprint.js.map +1 -0
- package/dist/modules/flow/functions/tag.d.ts +14 -0
- package/dist/modules/flow/functions/tag.d.ts.map +1 -0
- package/dist/modules/flow/functions/tag.js +88 -0
- package/dist/modules/flow/functions/tag.js.map +1 -0
- package/dist/modules/flow/index.d.ts +8 -2
- package/dist/modules/flow/index.d.ts.map +1 -1
- package/dist/modules/flow/index.js +7 -2
- package/dist/modules/flow/index.js.map +1 -1
- package/dist/modules/flow/pages.d.ts +1 -1
- package/dist/modules/flow/pages.d.ts.map +1 -1
- package/dist/modules/flow/pages.js +1 -1
- package/dist/modules/flow/pages.js.map +1 -1
- package/dist/modules/flow/queries/calendar.d.ts +21 -0
- package/dist/modules/flow/queries/calendar.d.ts.map +1 -0
- package/dist/modules/flow/queries/calendar.js +31 -0
- package/dist/modules/flow/queries/calendar.js.map +1 -0
- package/dist/modules/flow/queries/issue-dependencies.d.ts +17 -0
- package/dist/modules/flow/queries/issue-dependencies.d.ts.map +1 -0
- package/dist/modules/flow/queries/issue-dependencies.js +46 -0
- package/dist/modules/flow/queries/issue-dependencies.js.map +1 -0
- package/dist/modules/flow/queries/issue-followers.d.ts +6 -0
- package/dist/modules/flow/queries/issue-followers.d.ts.map +1 -0
- package/dist/modules/flow/queries/issue-followers.js +18 -0
- package/dist/modules/flow/queries/issue-followers.js.map +1 -0
- package/dist/modules/flow/queries/issue-list.d.ts +153 -0
- package/dist/modules/flow/queries/issue-list.d.ts.map +1 -0
- package/dist/modules/flow/queries/issue-list.js +439 -0
- package/dist/modules/flow/queries/issue-list.js.map +1 -0
- package/dist/modules/flow/queries/options.d.ts +4 -0
- package/dist/modules/flow/queries/options.d.ts.map +1 -0
- package/dist/modules/flow/queries/options.js +13 -0
- package/dist/modules/flow/queries/options.js.map +1 -0
- package/dist/modules/flow/queries/progress.d.ts +24 -0
- package/dist/modules/flow/queries/progress.d.ts.map +1 -0
- package/dist/modules/flow/queries/progress.js +54 -0
- package/dist/modules/flow/queries/progress.js.map +1 -0
- package/dist/modules/flow/queries/project-list.d.ts +4 -0
- package/dist/modules/flow/queries/project-list.d.ts.map +1 -0
- package/dist/modules/flow/queries/project-list.js +19 -0
- package/dist/modules/flow/queries/project-list.js.map +1 -0
- package/dist/modules/flow_backend/messages.d.ts +1 -2
- package/dist/modules/flow_backend/messages.d.ts.map +1 -1
- package/dist/modules/flow_backend/messages.js +0 -2
- package/dist/modules/flow_backend/messages.js.map +1 -1
- package/dist/modules/flow_backend/routes.js +1 -1
- package/dist/modules/flow_backend/routes.js.map +1 -1
- package/dist/modules/flow_backend/screens/all-epics.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/all-epics.js +1 -1
- package/dist/modules/flow_backend/screens/all-epics.js.map +1 -1
- package/dist/modules/flow_backend/screens/all-pages.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/all-pages.js +1 -1
- package/dist/modules/flow_backend/screens/all-pages.js.map +1 -1
- package/dist/modules/flow_backend/screens/epic-detail.js +1 -1
- package/dist/modules/flow_backend/screens/epic-detail.js.map +1 -1
- package/dist/modules/flow_backend/screens/gantt.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/gantt.js +1 -1
- package/dist/modules/flow_backend/screens/gantt.js.map +1 -1
- package/dist/modules/flow_backend/screens/issue-detail.js +2 -1
- package/dist/modules/flow_backend/screens/issue-detail.js.map +1 -1
- package/dist/modules/flow_backend/screens/issues.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/issues.js +1 -1
- package/dist/modules/flow_backend/screens/issues.js.map +1 -1
- package/dist/modules/flow_backend/screens/map.js +1 -1
- package/dist/modules/flow_backend/screens/map.js.map +1 -1
- package/dist/modules/flow_backend/screens/my-work.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/my-work.js +1 -1
- package/dist/modules/flow_backend/screens/my-work.js.map +1 -1
- package/dist/modules/flow_backend/screens/page-detail.js +1 -1
- package/dist/modules/flow_backend/screens/page-detail.js.map +1 -1
- package/dist/modules/flow_backend/screens/project-create.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/project-create.js +1 -1
- package/dist/modules/flow_backend/screens/project-create.js.map +1 -1
- package/dist/modules/flow_backend/screens/project-pages.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/project-pages.js +1 -1
- package/dist/modules/flow_backend/screens/project-pages.js.map +1 -1
- package/dist/modules/flow_backend/screens/projects-list.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/projects-list.js +1 -1
- package/dist/modules/flow_backend/screens/projects-list.js.map +1 -1
- package/dist/modules/flow_backend/screens/sprints.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/sprints.js +1 -1
- package/dist/modules/flow_backend/screens/sprints.js.map +1 -1
- package/dist/modules/flow_staff_channel/channel-routes.js +1 -1
- package/dist/modules/flow_staff_channel/channel-routes.js.map +1 -1
- package/dist/modules/hospitality_billing/messages.d.ts.map +1 -1
- package/dist/modules/hospitality_billing/messages.js +0 -2
- package/dist/modules/hospitality_billing/messages.js.map +1 -1
- package/dist/modules/hospitality_billing/screens/billing.d.ts.map +1 -1
- package/dist/modules/hospitality_billing/screens/billing.js +1 -1
- package/dist/modules/hospitality_billing/screens/billing.js.map +1 -1
- package/dist/modules/hospitality_billing/screens/page-frame.d.ts +1 -2
- package/dist/modules/hospitality_billing/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/hospitality_billing/screens/page-frame.js +1 -1
- package/dist/modules/hospitality_billing/screens/page-frame.js.map +1 -1
- package/dist/modules/hospitality_core/messages.js +2 -2
- package/dist/modules/hospitality_core/messages.js.map +1 -1
- package/dist/modules/hospitality_core/screens/check-out-prep.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/check-out-prep.js +1 -1
- package/dist/modules/hospitality_core/screens/check-out-prep.js.map +1 -1
- package/dist/modules/hospitality_core/screens/front-desk.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/front-desk.js +40 -40
- package/dist/modules/hospitality_core/screens/front-desk.js.map +1 -1
- package/dist/modules/hospitality_core/screens/page-frame.d.ts +2 -3
- package/dist/modules/hospitality_core/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/page-frame.js +3 -3
- package/dist/modules/hospitality_core/screens/page-frame.js.map +1 -1
- package/dist/modules/hospitality_core/screens/tape-chart.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/tape-chart.js +3 -12
- package/dist/modules/hospitality_core/screens/tape-chart.js.map +1 -1
- package/dist/modules/hr_backend/screens/employee-form.d.ts.map +1 -1
- package/dist/modules/hr_backend/screens/employee-form.js +1 -1
- package/dist/modules/hr_backend/screens/employee-form.js.map +1 -1
- package/dist/modules/hr_backend/screens/leaves-list.d.ts.map +1 -1
- package/dist/modules/hr_backend/screens/leaves-list.js +1 -1
- package/dist/modules/hr_backend/screens/leaves-list.js.map +1 -1
- package/dist/modules/livedoc/islands.d.ts +9 -0
- package/dist/modules/livedoc/islands.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/messages.d.ts +0 -10
- package/dist/modules/loyalty_backend/messages.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/messages.js +0 -10
- package/dist/modules/loyalty_backend/messages.js.map +1 -1
- package/dist/modules/loyalty_backend/screens/index.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/screens/index.js +5 -5
- package/dist/modules/loyalty_backend/screens/index.js.map +1 -1
- package/dist/modules/loyalty_backend/screens/page-frame.d.ts +2 -3
- package/dist/modules/loyalty_backend/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/screens/page-frame.js +2 -2
- package/dist/modules/loyalty_backend/screens/page-frame.js.map +1 -1
- package/dist/modules/mail_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_backend/index.js +0 -2
- package/dist/modules/mail_backend/index.js.map +1 -1
- package/dist/modules/mail_backend/screens/inbox-list.d.ts.map +1 -1
- package/dist/modules/mail_backend/screens/inbox-list.js +1 -1
- package/dist/modules/mail_backend/screens/inbox-list.js.map +1 -1
- package/dist/modules/mail_inbound_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_inbound_backend/index.js +0 -2
- package/dist/modules/mail_inbound_backend/index.js.map +1 -1
- package/dist/modules/mail_inbound_backend/screens/inbound-list.d.ts.map +1 -1
- package/dist/modules/mail_inbound_backend/screens/inbound-list.js +1 -1
- package/dist/modules/mail_inbound_backend/screens/inbound-list.js.map +1 -1
- package/dist/modules/mail_transport_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_transport_backend/index.js +0 -2
- package/dist/modules/mail_transport_backend/index.js.map +1 -1
- package/dist/modules/mail_transport_backend/screens/outbox-list.d.ts.map +1 -1
- package/dist/modules/mail_transport_backend/screens/outbox-list.js +1 -1
- package/dist/modules/mail_transport_backend/screens/outbox-list.js.map +1 -1
- package/dist/modules/manufacturing_backend/screens/order-execution.d.ts.map +1 -1
- package/dist/modules/manufacturing_backend/screens/order-execution.js +1 -1
- package/dist/modules/manufacturing_backend/screens/order-execution.js.map +1 -1
- package/dist/modules/oauth_backend/messages.d.ts +0 -4
- package/dist/modules/oauth_backend/messages.d.ts.map +1 -1
- package/dist/modules/oauth_backend/messages.js +0 -4
- package/dist/modules/oauth_backend/messages.js.map +1 -1
- package/dist/modules/oauth_backend/screens/index.d.ts.map +1 -1
- package/dist/modules/oauth_backend/screens/index.js +5 -5
- package/dist/modules/oauth_backend/screens/index.js.map +1 -1
- package/dist/modules/partner_backend/screens/form.d.ts.map +1 -1
- package/dist/modules/partner_backend/screens/form.js +3 -1
- package/dist/modules/partner_backend/screens/form.js.map +1 -1
- package/dist/modules/partner_backend/screens/list.d.ts.map +1 -1
- package/dist/modules/partner_backend/screens/list.js +1 -1
- package/dist/modules/partner_backend/screens/list.js.map +1 -1
- package/dist/modules/partner_backend/screens/new.d.ts.map +1 -1
- package/dist/modules/partner_backend/screens/new.js +1 -1
- package/dist/modules/partner_backend/screens/new.js.map +1 -1
- package/dist/modules/pricing_backend/index.js +0 -2
- package/dist/modules/pricing_backend/index.js.map +1 -1
- package/dist/modules/pricing_backend/screens/pricelist-detail.d.ts.map +1 -1
- package/dist/modules/pricing_backend/screens/pricelist-detail.js +1 -1
- package/dist/modules/pricing_backend/screens/pricelist-detail.js.map +1 -1
- package/dist/modules/pricing_backend/screens/pricelists-list.d.ts.map +1 -1
- package/dist/modules/pricing_backend/screens/pricelists-list.js +1 -1
- package/dist/modules/pricing_backend/screens/pricelists-list.js.map +1 -1
- package/dist/modules/product_backend/client/attribute-modal.d.mts +4 -4
- package/dist/modules/product_backend/client/attribute-modal.d.mts.map +1 -1
- package/dist/modules/product_backend/client/attribute-modal.mjs +1 -1
- package/dist/modules/product_backend/client/attribute-modal.mjs.map +3 -3
- package/dist/modules/product_backend/client/product-modal.d.mts +8 -8
- package/dist/modules/product_backend/client/product-modal.d.mts.map +1 -1
- package/dist/modules/product_backend/client/product-modal.mjs +1 -1
- package/dist/modules/product_backend/client/product-modal.mjs.map +3 -3
- package/dist/modules/product_backend/client/variant-editor.d.mts +3 -3
- package/dist/modules/product_backend/client/variant-editor.d.mts.map +1 -1
- package/dist/modules/product_backend/client/variant-editor.mjs +1 -1
- package/dist/modules/product_backend/client/variant-editor.mjs.map +3 -3
- package/dist/modules/product_backend/screens/detail.d.ts.map +1 -1
- package/dist/modules/product_backend/screens/detail.js +3 -2
- package/dist/modules/product_backend/screens/detail.js.map +1 -1
- package/dist/modules/product_backend/screens/variant.d.ts.map +1 -1
- package/dist/modules/product_backend/screens/variant.js +3 -2
- package/dist/modules/product_backend/screens/variant.js.map +1 -1
- package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts +185 -0
- package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts.map +1 -0
- package/dist/modules/purchase_backend/client/purchase-order-modal.mjs +2 -0
- package/dist/modules/purchase_backend/client/purchase-order-modal.mjs.map +7 -0
- package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts +52 -0
- package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts.map +1 -0
- package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs +2 -0
- package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs.map +7 -0
- package/dist/modules/purchase_backend/index.js +83 -14
- package/dist/modules/purchase_backend/index.js.map +1 -1
- package/dist/modules/purchase_backend/modal/context.d.ts +4 -0
- package/dist/modules/purchase_backend/modal/context.d.ts.map +1 -0
- package/dist/modules/purchase_backend/modal/context.js +94 -0
- package/dist/modules/purchase_backend/modal/context.js.map +1 -0
- package/dist/modules/purchase_backend/modal/order-modal-view.d.ts +18 -0
- package/dist/modules/purchase_backend/modal/order-modal-view.d.ts.map +1 -0
- package/dist/modules/purchase_backend/modal/order-modal-view.js +290 -0
- package/dist/modules/purchase_backend/modal/order-modal-view.js.map +1 -0
- package/dist/modules/purchase_backend/modal/pricelist-context.d.ts +3 -0
- package/dist/modules/purchase_backend/modal/pricelist-context.d.ts.map +1 -0
- package/dist/modules/purchase_backend/modal/pricelist-context.js +36 -0
- package/dist/modules/purchase_backend/modal/pricelist-context.js.map +1 -0
- package/dist/modules/purchase_backend/modal/pricelist-view.d.ts +12 -0
- package/dist/modules/purchase_backend/modal/pricelist-view.d.ts.map +1 -0
- package/dist/modules/purchase_backend/modal/pricelist-view.js +78 -0
- package/dist/modules/purchase_backend/modal/pricelist-view.js.map +1 -0
- package/dist/modules/purchase_backend/screens/order-detail.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/order-detail.js +4 -2
- package/dist/modules/purchase_backend/screens/order-detail.js.map +1 -1
- package/dist/modules/purchase_backend/screens/overview.d.ts +5 -0
- package/dist/modules/purchase_backend/screens/overview.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/overview.js +27 -6
- package/dist/modules/purchase_backend/screens/overview.js.map +1 -1
- package/dist/modules/purchase_backend/screens/rfq-create.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/rfq-create.js +1 -1
- package/dist/modules/purchase_backend/screens/rfq-create.js.map +1 -1
- package/dist/modules/purchase_backend/screens/rfqs-list.d.ts +1 -1
- package/dist/modules/purchase_backend/screens/rfqs-list.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/rfqs-list.js +1 -1
- package/dist/modules/purchase_backend/screens/rfqs-list.js.map +1 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js +1 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js.map +1 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts +2 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js +2 -2
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js.map +1 -1
- package/dist/modules/purchase_backend/search.d.ts +1 -1
- package/dist/modules/sale/functions/line-edit.d.ts +4 -0
- package/dist/modules/sale/functions/line-edit.d.ts.map +1 -0
- package/dist/modules/sale/functions/line-edit.js +120 -0
- package/dist/modules/sale/functions/line-edit.js.map +1 -0
- package/dist/modules/sale/index.d.ts.map +1 -1
- package/dist/modules/sale/index.js +16 -1
- package/dist/modules/sale/index.js.map +1 -1
- package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts +53 -0
- package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts.map +1 -0
- package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs +2 -0
- package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs.map +7 -0
- package/dist/modules/sale_backend/client/sale-order-modal.d.mts +161 -0
- package/dist/modules/sale_backend/client/sale-order-modal.d.mts.map +1 -0
- package/dist/modules/sale_backend/client/sale-order-modal.mjs +2 -0
- package/dist/modules/sale_backend/client/sale-order-modal.mjs.map +7 -0
- package/dist/modules/sale_backend/index.js +81 -20
- package/dist/modules/sale_backend/index.js.map +1 -1
- package/dist/modules/sale_backend/modal/context.d.ts +4 -0
- package/dist/modules/sale_backend/modal/context.d.ts.map +1 -0
- package/dist/modules/sale_backend/modal/context.js +94 -0
- package/dist/modules/sale_backend/modal/context.js.map +1 -0
- package/dist/modules/sale_backend/modal/order-modal-view.d.ts +18 -0
- package/dist/modules/sale_backend/modal/order-modal-view.d.ts.map +1 -0
- package/dist/modules/sale_backend/modal/order-modal-view.js +289 -0
- package/dist/modules/sale_backend/modal/order-modal-view.js.map +1 -0
- package/dist/modules/sale_backend/modal/policy-context.d.ts +3 -0
- package/dist/modules/sale_backend/modal/policy-context.d.ts.map +1 -0
- package/dist/modules/sale_backend/modal/policy-context.js +26 -0
- package/dist/modules/sale_backend/modal/policy-context.js.map +1 -0
- package/dist/modules/sale_backend/modal/policy-view.d.ts +11 -0
- package/dist/modules/sale_backend/modal/policy-view.d.ts.map +1 -0
- package/dist/modules/sale_backend/modal/policy-view.js +70 -0
- package/dist/modules/sale_backend/modal/policy-view.js.map +1 -0
- package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policies-list.js +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policies-list.js.map +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policy-create.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policy-create.js +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policy-create.js.map +1 -1
- package/dist/modules/sale_backend/screens/order-detail.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/order-detail.js +3 -1
- package/dist/modules/sale_backend/screens/order-detail.js.map +1 -1
- package/dist/modules/sale_backend/screens/overview.d.ts +3 -0
- package/dist/modules/sale_backend/screens/overview.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/overview.js +22 -14
- package/dist/modules/sale_backend/screens/overview.js.map +1 -1
- package/dist/modules/sale_backend/screens/quotation-create.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/quotation-create.js +1 -1
- package/dist/modules/sale_backend/screens/quotation-create.js.map +1 -1
- package/dist/modules/sale_backend/screens/quotations-list.d.ts +1 -1
- package/dist/modules/sale_backend/screens/quotations-list.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/quotations-list.js +1 -1
- package/dist/modules/sale_backend/screens/quotations-list.js.map +1 -1
- package/dist/modules/sale_backend/screens/sales-orders-list.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/sales-orders-list.js +1 -1
- package/dist/modules/sale_backend/screens/sales-orders-list.js.map +1 -1
- package/dist/modules/stock/functions/inventory-preview.d.ts +4 -0
- package/dist/modules/stock/functions/inventory-preview.d.ts.map +1 -0
- package/dist/modules/stock/functions/inventory-preview.js +68 -0
- package/dist/modules/stock/functions/inventory-preview.js.map +1 -0
- package/dist/modules/stock/index.d.ts.map +1 -1
- package/dist/modules/stock/index.js +14 -1
- package/dist/modules/stock/index.js.map +1 -1
- package/dist/modules/stock_backend/client/inventory-count-modal.d.mts +60 -0
- package/dist/modules/stock_backend/client/inventory-count-modal.d.mts.map +1 -0
- package/dist/modules/stock_backend/client/inventory-count-modal.mjs +2 -0
- package/dist/modules/stock_backend/client/inventory-count-modal.mjs.map +7 -0
- package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts +105 -0
- package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts.map +1 -0
- package/dist/modules/stock_backend/client/stock-configuration-modal.mjs +2 -0
- package/dist/modules/stock_backend/client/stock-configuration-modal.mjs.map +7 -0
- package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts +130 -0
- package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts.map +1 -0
- package/dist/modules/stock_backend/client/stock-transfer-modal.mjs +2 -0
- package/dist/modules/stock_backend/client/stock-transfer-modal.mjs.map +7 -0
- package/dist/modules/stock_backend/functions/index.d.ts +10 -0
- package/dist/modules/stock_backend/functions/index.d.ts.map +1 -0
- package/dist/modules/stock_backend/functions/index.js +20 -0
- package/dist/modules/stock_backend/functions/index.js.map +1 -0
- package/dist/modules/stock_backend/functions.d.ts +1 -9
- package/dist/modules/stock_backend/functions.d.ts.map +1 -1
- package/dist/modules/stock_backend/functions.js +1 -18
- package/dist/modules/stock_backend/functions.js.map +1 -1
- package/dist/modules/stock_backend/index.js +52 -0
- package/dist/modules/stock_backend/index.js.map +1 -1
- package/dist/modules/stock_backend/islands.d.ts +8 -0
- package/dist/modules/stock_backend/islands.d.ts.map +1 -1
- package/dist/modules/stock_backend/islands.js +41 -0
- package/dist/modules/stock_backend/islands.js.map +1 -1
- package/dist/modules/stock_backend/modal/configuration-context.d.ts +3 -0
- package/dist/modules/stock_backend/modal/configuration-context.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/configuration-context.js +65 -0
- package/dist/modules/stock_backend/modal/configuration-context.js.map +1 -0
- package/dist/modules/stock_backend/modal/configuration-view.d.ts +21 -0
- package/dist/modules/stock_backend/modal/configuration-view.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/configuration-view.js +201 -0
- package/dist/modules/stock_backend/modal/configuration-view.js.map +1 -0
- package/dist/modules/stock_backend/modal/configuration.d.ts +20 -0
- package/dist/modules/stock_backend/modal/configuration.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/configuration.js +117 -0
- package/dist/modules/stock_backend/modal/configuration.js.map +1 -0
- package/dist/modules/stock_backend/modal/inventory-context.d.ts +3 -0
- package/dist/modules/stock_backend/modal/inventory-context.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/inventory-context.js +37 -0
- package/dist/modules/stock_backend/modal/inventory-context.js.map +1 -0
- package/dist/modules/stock_backend/modal/inventory-view.d.ts +14 -0
- package/dist/modules/stock_backend/modal/inventory-view.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/inventory-view.js +142 -0
- package/dist/modules/stock_backend/modal/inventory-view.js.map +1 -0
- package/dist/modules/stock_backend/modal/transfer-context.d.ts +3 -0
- package/dist/modules/stock_backend/modal/transfer-context.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/transfer-context.js +54 -0
- package/dist/modules/stock_backend/modal/transfer-context.js.map +1 -0
- package/dist/modules/stock_backend/modal/transfer-view.d.ts +15 -0
- package/dist/modules/stock_backend/modal/transfer-view.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/transfer-view.js +252 -0
- package/dist/modules/stock_backend/modal/transfer-view.js.map +1 -0
- package/dist/modules/stock_backend/routes.d.ts.map +1 -1
- package/dist/modules/stock_backend/routes.js +117 -34
- package/dist/modules/stock_backend/routes.js.map +1 -1
- package/dist/modules/stock_backend/screens/forecast.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/forecast.js +5 -32
- package/dist/modules/stock_backend/screens/forecast.js.map +1 -1
- package/dist/modules/stock_backend/screens/inventory.d.ts +3 -1
- package/dist/modules/stock_backend/screens/inventory.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/inventory.js +27 -74
- package/dist/modules/stock_backend/screens/inventory.js.map +1 -1
- package/dist/modules/stock_backend/screens/location-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/location-create.js +1 -1
- package/dist/modules/stock_backend/screens/location-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/locations-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/locations-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/locations-list.js +1 -1
- package/dist/modules/stock_backend/screens/locations-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/lot-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/lot-create.js +1 -1
- package/dist/modules/stock_backend/screens/lot-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/lot-detail.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/lot-detail.js +3 -2
- package/dist/modules/stock_backend/screens/lot-detail.js.map +1 -1
- package/dist/modules/stock_backend/screens/lots-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/lots-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/lots-list.js +1 -1
- package/dist/modules/stock_backend/screens/lots-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/overview.d.ts +9 -0
- package/dist/modules/stock_backend/screens/overview.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/overview.js +38 -0
- package/dist/modules/stock_backend/screens/overview.js.map +1 -0
- package/dist/modules/stock_backend/screens/picking-type-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/picking-type-create.js +1 -1
- package/dist/modules/stock_backend/screens/picking-type-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/picking-types-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/picking-types-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/picking-types-list.js +1 -1
- package/dist/modules/stock_backend/screens/picking-types-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/replenishment-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/replenishment-create.js +1 -1
- package/dist/modules/stock_backend/screens/replenishment-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/replenishment-list.d.ts +2 -2
- package/dist/modules/stock_backend/screens/replenishment-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/replenishment-list.js +2 -2
- package/dist/modules/stock_backend/screens/replenishment-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/stock-route-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/stock-route-create.js +1 -1
- package/dist/modules/stock_backend/screens/stock-route-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/stock-route-detail.js +2 -1
- package/dist/modules/stock_backend/screens/stock-route-detail.js.map +1 -1
- package/dist/modules/stock_backend/screens/stock-routes-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/stock-routes-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/stock-routes-list.js +1 -1
- package/dist/modules/stock_backend/screens/stock-routes-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/transfer-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/transfer-create.js +1 -1
- package/dist/modules/stock_backend/screens/transfer-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/transfer-detail.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/transfer-detail.js +3 -2
- package/dist/modules/stock_backend/screens/transfer-detail.js.map +1 -1
- package/dist/modules/stock_backend/screens/transfers-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/transfers-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/transfers-list.js +1 -1
- package/dist/modules/stock_backend/screens/transfers-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/warehouse-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/warehouse-create.js +1 -1
- package/dist/modules/stock_backend/screens/warehouse-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/warehouses-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/warehouses-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/warehouses-list.js +1 -1
- package/dist/modules/stock_backend/screens/warehouses-list.js.map +1 -1
- package/dist/modules/stock_backend/search.d.ts +29 -0
- package/dist/modules/stock_backend/search.d.ts.map +1 -1
- package/dist/modules/stock_backend/search.js +22 -0
- package/dist/modules/stock_backend/search.js.map +1 -1
- package/dist/modules/user_backend/client/access-policy-modal.d.mts +4 -4
- package/dist/modules/user_backend/client/access-policy-modal.d.mts.map +1 -1
- package/dist/modules/user_backend/client/access-policy-modal.mjs +1 -1
- package/dist/modules/user_backend/client/access-policy-modal.mjs.map +3 -3
- package/dist/modules/user_backend/client/role-modal.d.mts +6 -6
- package/dist/modules/user_backend/client/role-modal.d.mts.map +1 -1
- package/dist/modules/user_backend/client/role-modal.mjs +1 -1
- package/dist/modules/user_backend/client/role-modal.mjs.map +3 -3
- package/dist/modules/user_backend/client/user-modal.d.mts +8 -8
- package/dist/modules/user_backend/client/user-modal.d.mts.map +1 -1
- package/dist/modules/user_backend/client/user-modal.mjs +1 -1
- package/dist/modules/user_backend/client/user-modal.mjs.map +3 -3
- package/dist/modules/user_backend/messages.d.ts +0 -6
- package/dist/modules/user_backend/messages.d.ts.map +1 -1
- package/dist/modules/user_backend/messages.js +0 -6
- package/dist/modules/user_backend/messages.js.map +1 -1
- package/dist/modules/user_backend/screens/access-policies-list.d.ts.map +1 -1
- package/dist/modules/user_backend/screens/access-policies-list.js +1 -1
- package/dist/modules/user_backend/screens/access-policies-list.js.map +1 -1
- package/dist/modules/user_backend/screens/profile-form.d.ts.map +1 -1
- package/dist/modules/user_backend/screens/profile-form.js +1 -1
- package/dist/modules/user_backend/screens/profile-form.js.map +1 -1
- package/dist/modules/user_backend/screens/roles-list.d.ts.map +1 -1
- package/dist/modules/user_backend/screens/roles-list.js +1 -1
- package/dist/modules/user_backend/screens/roles-list.js.map +1 -1
- package/dist/modules/user_backend/screens/users-list.d.ts.map +1 -1
- package/dist/modules/user_backend/screens/users-list.js +1 -1
- package/dist/modules/user_backend/screens/users-list.js.map +1 -1
- package/dist/modules/website_backend/screens/page-frame.d.ts +2 -3
- package/dist/modules/website_backend/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/website_backend/screens/page-frame.js +2 -2
- package/dist/modules/website_backend/screens/page-frame.js.map +1 -1
- package/dist/permission-catalogue.d.ts.map +1 -1
- package/dist/permission-catalogue.js +2 -0
- package/dist/permission-catalogue.js.map +1 -1
- package/dist/role-templates.d.ts.map +1 -1
- package/dist/role-templates.js +23 -3
- package/dist/role-templates.js.map +1 -1
- package/dist/scaffold/index.js +1 -1
- package/dist/ui/client/live-doc-shell.d.ts +27 -1
- package/dist/ui/client/live-doc-shell.d.ts.map +1 -1
- package/dist/ui/client/live-doc-shell.js +43 -5
- package/dist/ui/client/live-doc-shell.js.map +1 -1
- package/dist/ui/client/live-doc-tail.d.ts +4 -0
- package/dist/ui/client/live-doc-tail.d.ts.map +1 -0
- package/dist/ui/client/live-doc-tail.js +21 -0
- package/dist/ui/client/live-doc-tail.js.map +1 -0
- package/dist/ui/client/live-doc-view.d.ts +18 -0
- package/dist/ui/client/live-doc-view.d.ts.map +1 -1
- package/dist/ui/client/live-doc-view.js +183 -4
- package/dist/ui/client/live-doc-view.js.map +1 -1
- package/dist/ui/client/live-doc.css +81 -0
- package/dist/ui/client/live-doc.d.mts +6 -3
- package/dist/ui/client/live-doc.d.mts.map +1 -1
- package/dist/ui/client/live-doc.mjs +14 -10
- package/dist/ui/client/live-doc.mjs.map +4 -4
- package/dist/ui/layout.d.ts +2 -2
- package/dist/ui/layout.d.ts.map +1 -1
- package/dist/ui/layout.js +3 -3
- package/dist/ui/layout.js.map +1 -1
- package/package.json +4 -4
- package/dist/modules/flow/functions.d.ts +0 -3
- package/dist/modules/flow/functions.d.ts.map +0 -1
- package/dist/modules/flow/functions.js +0 -1857
- package/dist/modules/flow/functions.js.map +0 -1
- package/dist/modules/flow/operations.d.ts +0 -414
- package/dist/modules/flow/operations.d.ts.map +0 -1
- package/dist/modules/flow/operations.js +0 -1671
- package/dist/modules/flow/operations.js.map +0 -1
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
declare var Ya: (e: any) => any, oi: {
|
|
2
|
+
kind: string;
|
|
3
|
+
size: string;
|
|
4
|
+
labels: () => {
|
|
5
|
+
"recordModal.close": string;
|
|
6
|
+
"recordModal.loading": string;
|
|
7
|
+
"recordModal.loadFailed": string;
|
|
8
|
+
"recordModal.notFound": string;
|
|
9
|
+
"recordModal.retry": string;
|
|
10
|
+
"recordModal.errorTitle": string;
|
|
11
|
+
"recordModal.saveFailed": string;
|
|
12
|
+
"recordModal.savedTitle": string;
|
|
13
|
+
"recordModal.saved": string;
|
|
14
|
+
"recordModal.unsaved": string;
|
|
15
|
+
"recordModal.uploadFailed": string;
|
|
16
|
+
} | {
|
|
17
|
+
"recordModal.close": string;
|
|
18
|
+
"recordModal.loading": string;
|
|
19
|
+
"recordModal.loadFailed": string;
|
|
20
|
+
"recordModal.notFound": string;
|
|
21
|
+
"recordModal.retry": string;
|
|
22
|
+
"recordModal.errorTitle": string;
|
|
23
|
+
"recordModal.saveFailed": string;
|
|
24
|
+
"recordModal.savedTitle": string;
|
|
25
|
+
"recordModal.saved": string;
|
|
26
|
+
"recordModal.unsaved": string;
|
|
27
|
+
"recordModal.uploadFailed": string;
|
|
28
|
+
};
|
|
29
|
+
context: {
|
|
30
|
+
route: (e: any, t: any) => string;
|
|
31
|
+
query: string[];
|
|
32
|
+
};
|
|
33
|
+
title: (e: any) => any;
|
|
34
|
+
status: (e: any) => any;
|
|
35
|
+
body: (e: any) => any;
|
|
36
|
+
tabs: {
|
|
37
|
+
id: string;
|
|
38
|
+
label: (e: any) => any;
|
|
39
|
+
visible: (e: any) => boolean;
|
|
40
|
+
view: typeof Ya;
|
|
41
|
+
}[];
|
|
42
|
+
actions: (e: any) => any;
|
|
43
|
+
dialogs: {
|
|
44
|
+
addLine: {
|
|
45
|
+
title: (e: any) => any;
|
|
46
|
+
view: (e: any) => any;
|
|
47
|
+
};
|
|
48
|
+
editLine: {
|
|
49
|
+
title: (e: any) => any;
|
|
50
|
+
view: (e: any) => any;
|
|
51
|
+
};
|
|
52
|
+
bill: {
|
|
53
|
+
title: (e: any) => any;
|
|
54
|
+
view: (e: any) => any;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
commands: {
|
|
58
|
+
create: {
|
|
59
|
+
fn: string;
|
|
60
|
+
input: (e: any, t: any) => {
|
|
61
|
+
id: any;
|
|
62
|
+
};
|
|
63
|
+
after: string;
|
|
64
|
+
};
|
|
65
|
+
addLine: {
|
|
66
|
+
fn: string;
|
|
67
|
+
input: (e: any, t: any) => {
|
|
68
|
+
id: any;
|
|
69
|
+
orderId: any;
|
|
70
|
+
};
|
|
71
|
+
after: string;
|
|
72
|
+
};
|
|
73
|
+
updateLine: {
|
|
74
|
+
fn: string;
|
|
75
|
+
input: (e: any, t: any) => {
|
|
76
|
+
id: any;
|
|
77
|
+
expectedRevision: number;
|
|
78
|
+
taxIds?: string[] | undefined;
|
|
79
|
+
};
|
|
80
|
+
after: string;
|
|
81
|
+
};
|
|
82
|
+
removeLine: {
|
|
83
|
+
fn: string;
|
|
84
|
+
input: (e: any, t: any) => {
|
|
85
|
+
id: any;
|
|
86
|
+
};
|
|
87
|
+
after: string;
|
|
88
|
+
confirm: (e: any) => any;
|
|
89
|
+
};
|
|
90
|
+
send: {
|
|
91
|
+
fn: string;
|
|
92
|
+
input: (e: any, t: any) => {
|
|
93
|
+
id: any;
|
|
94
|
+
};
|
|
95
|
+
after: string;
|
|
96
|
+
};
|
|
97
|
+
confirm: {
|
|
98
|
+
fn: string;
|
|
99
|
+
input: (e: any, t: any) => {
|
|
100
|
+
id: any;
|
|
101
|
+
expectedRevision: number;
|
|
102
|
+
};
|
|
103
|
+
after: string;
|
|
104
|
+
};
|
|
105
|
+
reset: {
|
|
106
|
+
fn: string;
|
|
107
|
+
input: (e: any, t: any) => {
|
|
108
|
+
id: any;
|
|
109
|
+
};
|
|
110
|
+
after: string;
|
|
111
|
+
};
|
|
112
|
+
sync: {
|
|
113
|
+
fn: string;
|
|
114
|
+
input: (e: any, t: any) => {
|
|
115
|
+
id: any;
|
|
116
|
+
};
|
|
117
|
+
after: string;
|
|
118
|
+
};
|
|
119
|
+
lock: {
|
|
120
|
+
fn: string;
|
|
121
|
+
input: (e: any, t: any) => {
|
|
122
|
+
id: any;
|
|
123
|
+
locked: boolean;
|
|
124
|
+
};
|
|
125
|
+
after: string;
|
|
126
|
+
};
|
|
127
|
+
unlock: {
|
|
128
|
+
fn: string;
|
|
129
|
+
input: (e: any, t: any) => {
|
|
130
|
+
id: any;
|
|
131
|
+
locked: boolean;
|
|
132
|
+
};
|
|
133
|
+
after: string;
|
|
134
|
+
};
|
|
135
|
+
cancel: {
|
|
136
|
+
fn: string;
|
|
137
|
+
input: (e: any, t: any) => {
|
|
138
|
+
id: any;
|
|
139
|
+
expectedRevision: number;
|
|
140
|
+
};
|
|
141
|
+
after: string;
|
|
142
|
+
confirm: (e: any) => any;
|
|
143
|
+
};
|
|
144
|
+
bill: {
|
|
145
|
+
fn: string;
|
|
146
|
+
input: (e: any, t: any) => {
|
|
147
|
+
id: any;
|
|
148
|
+
orderId: any;
|
|
149
|
+
};
|
|
150
|
+
after: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
}, Hf: () => {
|
|
154
|
+
view: () => any;
|
|
155
|
+
mount: ({ root: i, lifetime: d }: {
|
|
156
|
+
lifetime: any;
|
|
157
|
+
root: any;
|
|
158
|
+
}) => void;
|
|
159
|
+
};
|
|
160
|
+
export { Hf as saleOrderModal, oi as saleOrderModalDefinition };
|
|
161
|
+
//# sourceMappingURL=sale-order-modal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sale-order-modal.d.mts","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/sale_backend/client/sale-order-modal.mjs"],"names":[],"mappings":"AACq2rD,QAAA,IAAupE,EAAE,iBAAk8B,EAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAA6uH,EAAE;;;;;;;;gBAA0H,EAAE;;;;;;;gBAAuE,EAAE;gBAAM,gBAAgB;;;;;;;gBAA6F,EAAE;;;;;;;gBAAsE,EAAE;;;;;;;;;;;;;;;;;;;;;;;gBAAiO,EAAE;gBAAM,gBAAgB;;;;;;;;;;;;;;CAAoR,EAAC,EAAE;;;;;;CAAO,CAAC;AAAA,OAAM,EAAC,EAAE,IAAI,cAAc,EAAC,EAAE,IAAI,wBAAwB,EAAC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @ts-nocheck Generated by tools/build-backend-client.mjs — do not edit.
|
|
2
|
+
import{each as sn}from"/_ket/view/index.js";import{Fragment as kt,jsx as ae,jsxs as cn}from"/_ket/view/jsx-runtime.js";var Tt=["action","action-leading","action-label","action-spinner","action-group"],dn=e=>cn(kt,{children:[e.loading===!0&&ae("span",{"data-ui":"action-spinner","aria-hidden":"true"}),e.loading!==!0&&e.leading!==void 0&&ae("span",{"data-ui":"action-leading","aria-hidden":"true",children:e.leading}),!e.iconOnly&&ae("span",{"data-ui":"action-label",children:e.label})]}),R=e=>ae("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:ae(dn,{...e})});var z=e=>ae("div",{"data-ui":"action-group",role:"group","aria-label":e.label??null,children:sn(e.actions,(t,a)=>a,t=>ae(kt,{children:t}))});import{jsx as un,jsxs as ui}from"/_ket/view/jsx-runtime.js";var wt=["badge","tag","tag-remove","count-badge","avatar","code","text","media-label","media-label-image","media-label-copy"];var Ce=e=>un("span",{"data-ui":"badge","data-pattern":"badge","data-tone":e.tone??"neutral","data-value":e.value??"",children:e.label});import{each as mn}from"/_ket/view/index.js";import{Fragment as $e,jsx as T,jsxs as W}from"/_ket/view/jsx-runtime.js";var Rt=["notice","notice-mark","notice-copy","notice-title","notice-message","notice-actions","empty","empty-mark","empty-title","empty-message","empty-actions","loading","loading-label"],gn={info:()=>W($e,{children:[T("circle",{cx:"12",cy:"12",r:"10"}),T("path",{d:"M12 16v-4"}),T("path",{d:"M12 8h.01"})]}),positive:()=>W($e,{children:[T("circle",{cx:"12",cy:"12",r:"10"}),T("path",{d:"m9 12 2 2 4-4"})]}),warning:()=>W($e,{children:[T("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),T("path",{d:"M12 9v4"}),T("path",{d:"M12 17h.01"})]}),danger:()=>W($e,{children:[T("circle",{cx:"12",cy:"12",r:"10"}),T("path",{d:"M12 8v4"}),T("path",{d:"M12 16h.01"})]})},Z=e=>W("aside",{"data-ui":"notice","data-pattern":"notice","data-tone":e.tone??"info",role:e.tone==="danger"?"alert":"status",children:[T("span",{"data-ui":"notice-mark","aria-hidden":"true",children:T("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false",children:gn[e.tone??"info"]()})}),W("div",{"data-ui":"notice-copy",children:[T("p",{"data-ui":"notice-title",children:e.title}),T("p",{"data-ui":"notice-message",children:e.message})]}),e.actions!==void 0&&T("div",{"data-ui":"notice-actions",children:e.actions})]}),ne=e=>W("div",{"data-ui":"empty",role:"status",children:[T("span",{"data-ui":"empty-mark","aria-hidden":"true",children:"\u25C7"}),T("p",{"data-ui":"empty-title",children:e.title}),T("p",{"data-ui":"empty-message",children:e.message}),e.actions!==void 0&&T("div",{"data-ui":"empty-actions",children:e.actions})]}),ge=e=>W("div",{"data-ui":"loading",role:"status","aria-live":"polite",children:[T("span",{"data-ui":"loading-label",children:e.label}),T("div",{"data-ui":"skeleton","aria-hidden":"true",children:mn(Array.from({length:Math.max(1,e.lines??3)}),(t,a)=>a,(t,a)=>T("span",{"data-ui":"skeleton-line","data-line":String(a+1)}))})]});import{each as at}from"/_ket/view/index.js";import{each as vn}from"/_ket/view/index.js";import{jsx as B,jsxs as Le}from"/_ket/view/jsx-runtime.js";var Ct=["modal-layer","modal-backdrop","modal-sheet","modal-head","modal-heading","modal-title-row","modal-title","modal-description","modal-close","modal-body","modal-actions"],ie=e=>{let t=e.mode==="client",a=e.mode==="embedded";return Le("div",{"data-ui":"modal-layer","data-mode":e.mode??"overlay","data-route-modal":a||t?null:"true","data-client-modal":t?"true":null,"data-presentation":e.presentation??"sheet","data-unsaved-prompt":e.unsavedPrompt??null,children:[t?B("button",{"data-ui":"modal-backdrop",type:"button","aria-hidden":"true",tabIndex:-1,children:B("span",{children:e.closeLabel})}):B("a",{"data-ui":"modal-backdrop",href:e.closeHref??"#","aria-label":e.closeLabel,children:B("span",{children:e.closeLabel})}),Le("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":a?"false":"true"},"aria-labelledby":e.dialogSemantics==="parent"?null:`${e.id}-title`,"aria-describedby":e.dialogSemantics!=="parent"&&e.description?`${e.id}-description`:null,tabindex:a?null:"-1",children:[Le("header",{"data-ui":"modal-head",children:[Le("div",{"data-ui":"modal-heading",children:[Le("div",{"data-ui":"modal-title-row",children:[B("h2",{"data-ui":"modal-title",id:`${e.id}-title`,children:e.title}),e.status!==void 0&&e.status]}),!!e.description&&B("p",{"data-ui":"modal-description",id:`${e.id}-description`,children:e.description})]}),t?B("button",{"data-ui":"modal-close",type:"button","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"}):B("a",{"data-ui":"modal-close",href:e.closeHref??"#","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"})]}),B("div",{"data-ui":"modal-body",children:e.body}),e.actions!==void 0&&B("footer",{"data-ui":"modal-actions",children:e.actions})]})]})};import{Fragment as Si,jsx as vi,jsxs as xi}from"/_ket/view/jsx-runtime.js";import{Fragment as Pi,jsx as Ci,jsxs as Li}from"/_ket/view/jsx-runtime.js";var Pt=["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 Mt,jsx as L,jsxs as re}from"/_ket/view/jsx-runtime.js";var Et=["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"],xn=e=>L(Mt,{children:vn(e.items,(t,a)=>a,t=>typeof t=="string"||typeof t=="number"?L("span",{children:t}):L(Mt,{children:t}))}),Ke=e=>L("div",{"data-ui":"stack","data-pattern":"stack","data-gap":e.gap??"default","data-divided":e.divided===!0?"true":null,children:L(xn,{items:e.items})});var et=e=>re("div",{"data-ui":"surface","data-tone":e.tone??"default","data-padding":e.padding??"default","data-has-heading":e.title?"true":null,children:[e.title&&re("header",{"data-ui":"surface-head",children:[e.description?re("div",{"data-ui":"surface-heading",children:[L("h2",{"data-ui":"surface-title",children:e.title}),L("p",{"data-ui":"surface-description",children:e.description})]}):L("h2",{"data-ui":"surface-title",children:e.title}),e.actions!==void 0&&L("div",{"data-ui":"surface-actions",children:e.actions})]}),e.body]}),tt=e=>re("details",{"data-ui":"disclosure",open:e.open===!0?!0:void 0,children:[L("summary",{"data-ui":"disclosure-summary",children:e.summary}),L("div",{"data-ui":"disclosure-body",children:e.body})]}),Pe=e=>re("section",{"data-ui":"section",children:[re("header",{"data-ui":"section-head",children:[re("div",{children:[!!e.eyebrow&&L("p",{"data-ui":"section-eyebrow",children:e.eyebrow}),L("h2",{"data-ui":"section-title",children:e.title}),!!e.description&&L("p",{"data-ui":"section-description",children:e.description})]}),e.actions!==void 0&&L("div",{"data-ui":"section-actions",children:e.actions})]}),L("div",{"data-ui":"section-body",children:e.body})]});import{each as Sn}from"/_ket/view/index.js";import{Fragment as Tn,jsx as Me}from"/_ket/view/jsx-runtime.js";var Be=(e,t)=>e.control!==void 0?Me(Tn,{children:e.control}):e.type==="textarea"?Me("textarea",{"data-ui":"field-control","data-appearance":e.appearance==="embedded"?"embedded":null,id:e.id,name:e.name,placeholder:e.placeholder??null,required:e.required===!0,disabled:e.disabled===!0,readonly:e.readOnly===!0,"aria-invalid":e.error?"true":null,"aria-describedby":t,children:String(e.value??"")}):e.type==="select"?Me("select",{"data-ui":"field-control","data-appearance":e.appearance==="embedded"?"embedded":null,id:e.id,name:e.name,required:e.required===!0,disabled:e.disabled===!0,"aria-invalid":e.error?"true":null,"aria-describedby":t,children:Sn(e.options??[],a=>a.value,a=>Me("option",{value:a.value,selected:String(e.value??"")===a.value,disabled:a.disabled===!0,children:a.label}))}):Me("input",{"data-ui":"field-control","data-appearance":e.appearance==="embedded"?"embedded":null,id:e.id,type:e.type==="decimal"?"number":e.type??"text",name:e.name,value:e.type==="checkbox"?"1":String(e.value??""),checked:e.type==="checkbox"&&(e.value===!0||e.value==="1"),placeholder:e.placeholder??null,required:e.required===!0,disabled:e.disabled===!0,readonly:e.readOnly===!0,min:e.min,max:e.max,"aria-invalid":e.error?"true":null,"aria-describedby":t,autocomplete:e.autocomplete??"off",step:e.type==="decimal"?e.step??"any":e.step??null});import{jsx as w,jsxs as U}from"/_ket/view/jsx-runtime.js";var Ft=["field","field-label","field-required","field-control","field-options","field-option","field-option-input","field-help","field-error"],Ot=e=>!!e.error||(e.fields?.some(Ot)??!1),oe=e=>{let t=e.help?`${e.id}-help`:null,a=e.error?`${e.id}-error`:null,l=[t,a].filter(Boolean).join(" ")||null,g=U("span",{"data-ui":"field-label",children:[e.label,e.required&&w("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]});return e.fields?U("div",{"data-ui":"field","data-kind":"group","data-span":"full","data-invalid":String(!!e.error),children:[w(tt,{summary:e.label,open:e.open||Ot(e),body:w("div",{"data-ui":"form-grid",children:at(e.fields.map(u=>({...u,disabled:e.disabled||u.disabled,readOnly:e.readOnly||u.readOnly})),u=>u.id,u=>w(oe,{...u}))})}),!!e.help&&w("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&w("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]}):e.type==="checkbox-group"?U("div",{"data-ui":"field","data-kind":"checkbox-group","data-span":e.span??"half","data-invalid":String(!!e.error),children:[U("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&w("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),w("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"group","aria-labelledby":`${e.id}-label`,children:at(e.options??[],u=>u.name??u.value,u=>U("label",{"data-ui":"field-option",children:[w("input",{"data-ui":"field-option-input",type:"checkbox",name:u.name??`${e.name}[]`,value:u.value,checked:u.checked===!0,disabled:e.disabled===!0||u.disabled===!0,"aria-invalid":e.error?"true":null,"aria-describedby":l,autocomplete:"off"}),w("span",{children:u.label})]}))}),!!e.help&&w("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&w("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]}):e.type==="radio"?U("div",{"data-ui":"field","data-kind":"radio","data-span":e.span??"half","data-invalid":String(!!e.error),children:[U("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&w("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),w("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"radiogroup","aria-labelledby":`${e.id}-label`,children:at(e.options??[],u=>u.value,u=>U("label",{"data-ui":"field-option",children:[w("input",{"data-ui":"field-option-input",type:"radio",name:e.name,value:u.value,checked:String(e.value??"")===u.value,required:e.required===!0,disabled:e.disabled===!0||u.disabled===!0,"aria-invalid":e.error?"true":null,"aria-describedby":l,autocomplete:"off"}),w("span",{children:u.label})]}))}),!!e.help&&w("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&w("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]}):U("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"&&Be(e,l),g,e.type!=="checkbox"&&Be(e,l),!!e.help&&w("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&w("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]})};import{each as kn}from"/_ket/view/index.js";import{jsx as fe,jsxs as it}from"/_ket/view/jsx-runtime.js";var Ht=["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 Dt=e=>it("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&&fe("span",{"data-ui":"tab-count",children:String(e.count)})]}),It=(e,t)=>`${e}-${t.replace(/[^a-zA-Z0-9_-]+/gu,"-")}-tab`,At=e=>it("nav",{"data-ui":"tabs","data-pattern":"tabs","aria-label":e.label,children:[kn(e.items,t=>t.id,t=>fe(Dt,{...t,elementId:e.id?It(e.id,t.id):void 0,controls:e.panelId})),e.extension]}),$t=e=>fe("section",{"data-ui":"tab-panel",id:e.id,"aria-labelledby":e.labelledBy,tabindex:"-1",children:e.body}),nt=e=>{let t=`${e.id}-tabs`,a=`${e.id}-panel`,l=e.items.find(g=>g.active===!0);return it("div",{"data-ui":"tabbed-view",children:[e.context!==void 0&&e.context!==""?fe("div",{"data-ui":"tabbed-view-context",children:e.context}):"",fe(At,{id:t,label:e.label,items:e.items,extension:e.extension,panelId:a}),fe($t,{id:a,labelledBy:l?It(t,l.id):void 0,body:e.body})]})};import{jsx as Zi,jsxs as Qi}from"/_ket/view/jsx-runtime.js";var Kt=["progress","progress-label","progress-value","progress-track","progress-bar"];import{each as er}from"/_ket/view/index.js";import{Fragment as ir,jsx as ar,jsxs as nr}from"/_ket/view/jsx-runtime.js";var Bt=["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 lr,jsxs as sr}from"/_ket/view/jsx-runtime.js";var qt=["popover","popover-trigger","popover-panel","popover-close"];import{jsx as ur,jsxs as mr}from"/_ket/view/jsx-runtime.js";var Nt=["tooltip","tooltip-trigger","tooltip-content"];import{jsx as hr}from"/_ket/view/jsx-runtime.js";var Jt=["dialog","confirm-dialog-message"];import{each as xr}from"/_ket/view/index.js";import{jsx as Tr,jsxs as kr}from"/_ket/view/jsx-runtime.js";var Xt=["toast-region","toast","toast-copy","toast-title","toast-message","toast-actions"];import{jsx as Cr}from"/_ket/view/jsx-runtime.js";var zt=["spinner","visually-hidden"];import{each as Mr}from"/_ket/view/index.js";import{jsx as Fr}from"/_ket/view/jsx-runtime.js";var Ut=["skeleton","skeleton-line"];import{each as Dr,effect as Ir,signal as Ar}from"/_ket/view/index.js";import{jsx as Br,jsxs as Kr}from"/_ket/view/jsx-runtime.js";var Vt=["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 Jr,signal as Xr}from"/_ket/view/index.js";import{jsx as Ur,jsxs as Vr}from"/_ket/view/jsx-runtime.js";var Gt=["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 Qr}from"/_ket/view/index.js";import{Fragment as to,jsx as eo,jsxs as jr}from"/_ket/view/jsx-runtime.js";var _t=["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 lo,effect as so,signal as co}from"/_ket/view/index.js";import{jsx as io}from"/_ket/view/jsx-runtime.js";var Wt=["formatted-date","formatted-number","formatted-money"];import{Fragment as bo,jsx as po,jsxs as ho}from"/_ket/view/jsx-runtime.js";var Qt=["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 Oo=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","summary",'[tabindex]:not([tabindex="-1"])'].join(",");var Mn=['[data-ui="timeframe-menu"]','[data-ui="view-settings"]'],Ho=Mn.map(e=>`${e}[open]`).join(", ");import{jsx as Ao,jsxs as $o}from"/_ket/view/jsx-runtime.js";import{jsx as Jo,jsxs as Xo}from"/_ket/view/jsx-runtime.js";var Yt=["switch-control","switch-track"];import{each as Vo}from"/_ket/view/index.js";import{Fragment as Qo,jsx as Wo,jsxs as Zo}from"/_ket/view/jsx-runtime.js";var jt=["combobox","combobox-input-row","combobox-toggle","combobox-listbox","combobox-option","combobox-empty","tag-picker"];import{Fragment as ll,jsx as rl,jsxs as ol}from"/_ket/view/jsx-runtime.js";var ea=["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 ul,jsxs as ml}from"/_ket/view/jsx-runtime.js";var ta=["file-upload","drop-zone","upload-status"];import{jsx as pl}from"/_ket/view/jsx-runtime.js";var aa=["relation-picker"];import{each as vl}from"/_ket/view/index.js";import{jsx as kl,jsxs as wl}from"/_ket/view/jsx-runtime.js";var na=["search-bar","filter-bar","applied-filters","applied-filter","saved-views","saved-view","view-settings","view-settings-options"];import{jsx as Pl,jsxs as Ml}from"/_ket/view/jsx-runtime.js";var ia=["inline-edit","inline-edit-value","inline-edit-form","inline-edit-actions"];import{each as Jl}from"/_ket/view/index.js";import{each as Dl}from"/_ket/view/index.js";import{Fragment as Bl,jsx as $l,jsxs as Kl}from"/_ket/view/jsx-runtime.js";var ra=["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 Vl,jsxs as Gl}from"/_ket/view/jsx-runtime.js";var oa=["resource-list","resource-list-item","resource-list-select","resource-list-link"];import{each as Zl}from"/_ket/view/index.js";import{jsx as Yl,jsxs as jl}from"/_ket/view/jsx-runtime.js";var la=["data-grid-scroll","data-grid","data-grid-cap","data-grid-cell"];import{each as as}from"/_ket/view/index.js";import{jsx as is,jsxs as rs}from"/_ket/view/jsx-runtime.js";var sa=["tree","tree-item","tree-link","tree-grid","tree-grid-row"];import{each as ss}from"/_ket/view/index.js";import{jsx as cs,jsxs as us}from"/_ket/view/jsx-runtime.js";var da=["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 fs}from"/_ket/view/index.js";import{jsx as ps,jsxs as hs}from"/_ket/view/jsx-runtime.js";var ca=["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 xs}from"/_ket/view/index.js";import{jsx as Ts,jsxs as ks}from"/_ket/view/jsx-runtime.js";var ua=["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 Dn}from"/_ket/view/index.js";import{jsx as Ne,jsxs as In}from"/_ket/view/jsx-runtime.js";var ma=["description-list","key-value","key-value-label","key-value-value","person","person-body","avatar-group","status"],ga=e=>In("div",{"data-ui":"key-value",children:[Ne("dt",{"data-ui":"key-value-label",children:e.label}),Ne("dd",{"data-ui":"key-value-value",children:e.value??e.emptyLabel??"\u2014"})]}),Je=e=>Ne("dl",{"data-ui":"description-list","aria-label":e.label,"data-columns":String(e.columns??2),"data-layout":e.layout==="strip"?"strip":null,children:Dn(e.items,t=>t.id,t=>Ne(ga,{...t}))});import{each as Es}from"/_ket/view/index.js";import{jsx as Is,jsxs as As}from"/_ket/view/jsx-runtime.js";var ba=["record-summary","record-summary-main","record-actions","record-rail"];import{each as Bs}from"/_ket/view/index.js";import{jsx as Xs,jsxs as zs}from"/_ket/view/jsx-runtime.js";var pa=["activity-timeline","activity-item","activity-marker","audit-log","audit-item"];import{each as Gs}from"/_ket/view/index.js";import{jsx as Zs,jsxs as Qs}from"/_ket/view/jsx-runtime.js";var ha=["attachments","attachment","media-gallery","media-item"];import{each as ed}from"/_ket/view/index.js";import{Fragment as id,jsx as ad,jsxs as nd}from"/_ket/view/jsx-runtime.js";var ya=["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 be}from"/_ket/view/index.js";import{Fragment as wa,jsx as x,jsxs as Q}from"/_ket/view/jsx-runtime.js";var va=["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"],$n=e=>e.shownColumns??e.columns.filter(t=>t.hidden!==!0).map(t=>t.key),Kn=e=>{let t=new Set($n(e));return e.columns.filter(a=>t.has(a.key))},xa=(e,t)=>t.length+(e.selection?1:0),Bn=(e,t)=>e.sort?.direction?e.sort.direction==="ascending"?t?.sortedAscending??"Sorted ascending":t?.sortedDescending??"Sorted descending":null,qn=(e,t)=>x("th",{"data-ui":"col","data-col":e.key,"data-align":e.align??"start","data-kind":e.kind??"text","data-width":e.width??null,"data-optional":e.optional===!0?"true":null,"data-sort":e.sort?.direction??null,"aria-sort":e.sort?.direction??null,scope:"col",children:e.sort?Q("a",{"data-ui":"sort-link",href:e.sort.href,"aria-label":e.sort.label??e.label,children:[x("span",{children:e.label}),!!e.sort.direction&&x("span",{"data-ui":"sort-icon","aria-hidden":"true",title:Bn(e,t)??void 0,children:e.sort.direction==="ascending"?"\u2191":"\u2193"})]}):e.label}),Nn=e=>e.selection?x("th",{"data-ui":"select-col",scope:"col",children:x("input",{"data-ui":"select-all",type:"checkbox",name:e.selection.selectAllName??"select-all","aria-label":e.labels?.selectAll??"Select all rows",disabled:e.selection.disabled===!0})}):null,Sa=(e,t)=>e.selected?.(t)===!0?!0:e.selection?.selectedIds?.includes(e.id(t))===!0,Jn=(e,t,a)=>Q(wa,{children:[e.selection&&x("td",{"data-ui":"select-cell",children:x("input",{"data-ui":"row-select",type:"checkbox",name:e.selection.name??"ids",form:e.selection.form,value:e.id(a),checked:Sa(e,a),"aria-label":e.labels?.selectRow?.(a,e.id(a))??`Select row ${e.id(a)}`,disabled:e.selection.disabled===!0})}),be(t,l=>l.key,l=>x("td",{"data-ui":"cell","data-col":l.key,"data-linked":e.rowHref&&l===t[0]?"true":null,"data-align":l.align??"start","data-kind":l.kind??"text","data-priority":l.priority??"secondary","data-label":e.responsive==="stack"?l.label:null,children:e.rowHref&&l===t[0]?x("a",{"data-ui":"row-link",href:e.rowHref(a),children:l.cell(a)}):l.cell(a)}))]}),Ta=(e,t,a)=>x("tr",{"data-ui":"row","data-row":e.id(a),"data-selected":Sa(e,a)?"true":null,children:Jn(e,t,a)}),Xn=(e,t,a)=>a?x("tr",{"data-ui":"group-pager",children:Q("td",{colSpan:String(xa(e,t)),children:[x("span",{children:a.label}),Q("span",{"data-ui":"group-pager-actions",children:[a.previousHref&&x("a",{href:a.previousHref,"aria-label":e.labels?.previousPage??"Previous page",children:"\u2039"}),a.nextHref&&x("a",{href:a.nextHref,"aria-label":e.labels?.nextPage??"Next page",children:"\u203A"})]})]})}):null,ka=(e,t,a,l)=>Q(wa,{children:[x("tr",{"data-ui":"group-row","data-group":a.id,"data-depth":String(l),children:Q("th",{"data-ui":"group-cell",colSpan:String(xa(e,t)),scope:"rowgroup",children:[x("span",{"data-ui":"group-indent",style:`--kv-group-depth: ${l}`,"aria-hidden":"true"}),a.href?x("a",{"data-ui":"group-link",href:a.href,children:a.label}):x("span",{"data-ui":"group-link",children:a.label}),a.count!==void 0&&x("span",{"data-ui":"group-count",children:String(a.count)})]})}),be(a.rows??[],e.id,g=>Ta(e,t,g)),be(a.children??[],g=>g.id,g=>ka(e,t,g,l+1)),Xn(e,t,a.pager)]}),Ee=e=>{let t=Kn(e),a=e.groups??[],g=e.rows.length>0||a.length>0?x("div",{"data-ui":"table-scroll","data-pattern":"data-table","data-framed":e.title?"false":null,"data-responsive":e.responsive??"scroll","data-gutter":e.gutter==="compact"?"compact":null,children:Q("table",{"data-ui":"table","aria-label":e.caption?null:e.title??null,children:[!!e.caption&&x("caption",{"data-ui":"table-caption",children:e.caption}),x("thead",{children:Q("tr",{children:[Nn(e),be(t,u=>u.key,u=>qn(u,e.labels))]})}),x("tbody",{children:a.length>0?be(a,u=>u.id,u=>ka(e,t,u,0)):be(e.rows,e.id,u=>Ta(e,t,u))})]})}):x(ne,{title:e.emptyTitle??"No records",message:e.emptyMessage??"There is nothing to show yet.",actions:e.emptyActions});return e.title?x(et,{title:e.title,actions:e.actions,padding:"none",body:g}):g};import{Fragment as xd,jsx as vd,jsxs as Sd}from"/_ket/view/jsx-runtime.js";var Ra=["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 Rd,jsxs as Cd}from"/_ket/view/jsx-runtime.js";var Ca=["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 La=["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 Id,jsxs as Ad}from"/_ket/view/jsx-runtime.js";var Pa=["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 Ma=["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 Ud}from"/_ket/view/index.js";import{jsx as Gd,jsxs as _d}from"/_ket/view/jsx-runtime.js";var Ea=["pipeline","pipeline-step","pipeline-arrow","pipeline-step-label","pipeline-step-value","pipeline-step-node"];import{each as jd}from"/_ket/view/index.js";import{jsx as nc,jsxs as ic}from"/_ket/view/jsx-runtime.js";var Fa=["record-form","form-errors","form-grid","form-actions"];import{each as mc}from"/_ket/view/index.js";import{jsx as pc,jsxs as hc}from"/_ket/view/jsx-runtime.js";var Oa=["reorder-list","reorder-list-value","reorder-list-rows","reorder-list-row","reorder-list-content","reorder-list-controls"];var Ha={actions:Tt,feedback:Rt,fields:Ft,status:wt,navigation:Ht,progress:Kt,menu:Bt,reorderList:Oa,popover:qt,tooltip:Nt,dialog:Jt,toast:Xt,spinner:zt,skeleton:Ut,lightbox:Gt,relationSelect:Vt,searchFilter:_t,ketTable:Qt,scalarFields:Yt,combobox:jt,dateTime:ea,upload:ta,relationPicker:aa,listControls:na,inlineEdit:ia,resourceList:oa,dataGrid:la,tree:sa,matrix:da,barChart:ca,timeframe:ua,recordDisplay:ma,formattedValues:Wt,recordComposition:ba,activity:pa,media:ha,layouts:Et,shell:Pt,appNavigation:ya,table:va,listChrome:ra,listPage:Ra,formPage:La,recordPage:Ca,dashboardPage:Pa,boardPage:Ma,modal:Ct,pipeline:Ea,form:Fa},Un=[...new Set(Object.values(Ha).flat())].sort(),Vn=Object.freeze(Object.fromEntries(Object.entries(Ha).map(([e,t])=>[e,[...t]])));import{signal as M}from"/_ket/view/index.js";import{jsx as _n}from"/_ket/view/jsx-runtime.js";var Xe="record";var Gn=/^[a-z][a-z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)+$/u,Da=e=>Gn.test(e),st=(e,t)=>{if(!Da(t.kind))throw new TypeError(`invalid record kind "${t.kind}"`);let a=new URL(String(e),"http://ket.local");return a.searchParams.set(Xe,`${t.kind}:${t.id}`),t.tab?a.searchParams.set("tab",t.tab):a.searchParams.delete("tab"),`${a.pathname}${a.search}`};var Ia=e=>{let t=new URL(String(e),"http://ket.local");return t.searchParams.delete(Xe),t.searchParams.delete("tab"),`${t.pathname}${t.search}`},pe=e=>{let t=new URL(String(e),"http://ket.local"),a=t.searchParams.get(Xe)??"",l=a.indexOf(":");if(l<=0||l===a.length-1)return null;let g=a.slice(0,l);return Da(g)?{kind:g,id:a.slice(l+1),tab:t.searchParams.get("tab")}:null},dt=e=>_n("span",{"data-ui":"record-modal-host","data-record-kind":e,hidden:!0});import{jsx as le,jsxs as Aa}from"/_ket/view/jsx-runtime.js";var he=e=>Aa("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?le("input",{type:"hidden",name:ye,value:e.command,autocomplete:"off"}):"",Object.entries(e.hidden??{}).map(([t,a])=>le("input",{type:"hidden",name:t,value:a,autocomplete:"off"})),le("div",{"data-ui":"form-grid",children:e.fields.map(t=>oe(t))}),e.body,e.actions?.length?le("div",{"data-ui":"form-actions",children:z({actions:e.actions})}):""]});var ze=e=>le("span",{"data-record-dialog":e.dialog,"data-record-param-id":e.id??null,children:e.children}),ct=e=>Aa("form",{"data-ui":"record-form","data-layout":"actions",method:"post",action:"","data-record-kind":e.kind,children:[le("input",{type:"hidden",name:ye,value:e.command,autocomplete:"off"}),Object.entries(e.hidden??{}).map(([t,a])=>le("input",{type:"hidden",name:t,value:a,autocomplete:"off"})),e.children]});import{Fragment as Fe,jsx as Rf,jsxs as Oe}from"/_ket/view/jsx-runtime.js";var Ka=e=>{let t=e??{};return(Array.isArray(t.errors)?t.errors:Array.isArray(t.issues)?t.issues:[]).map(l=>{let g=l??{},u=Array.isArray(g.path)?g.path.join("."):null;return{field:typeof g.field=="string"?g.field:u,code:String(g.code??"invalid"),message:typeof g.message=="string"?g.message:null,params:g.params&&typeof g.params=="object"?g.params:{}}})},Ua=async(e,t,a={})=>{let l=new URL(e,"https://record.invalid");if(l.origin!=="https://record.invalid"||!e.startsWith("/")||e.startsWith("//"))throw new Error("Record commands require a same-origin route");let g=await fetch(l.pathname+l.search,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json",...a.idempotencyKey?{"idempotency-key":a.idempotencyKey}:{}},body:JSON.stringify(t),signal:a.signal}),u=await g.json().catch(()=>({}));if(!g.ok||u.ok===!1)return{ok:!1,issues:Ka(u.error??u),message:g.status>=500?null:u.error?.message??u.message??null,status:g.status};let D=u.value;return D&&typeof D=="object"&&D.ok===!1?{ok:!1,issues:Ka(D),message:null,status:g.status}:{ok:!0,value:u.value}},Ba=(e,t,a={})=>Ua(`/_ket/fn/${encodeURIComponent(e)}`,t,a),Wn=async(e,t)=>{let a=new URL(e,location.href);if(a.origin!==location.origin)throw new Error("Record context must stay same-origin");let l=await fetch(a.href,{credentials:"same-origin",signal:t,headers:{accept:"application/json"}});return l.ok?{ok:!0,value:await l.json()}:{ok:!1,issues:[],message:null,status:l.status}},Zn=30,Qn=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."}),Ve=(e,t)=>t.messages?.[e]??t.previous?.[e]??t.labels?.[e]??Qn[e]??(/^E_[A-Z_]+$/u.test(e)?Ve("recordModal.saveFailed",t):e),Yn=(e,t)=>{let a=Ve(e,t);return a===e?Ve("recordModal.saveFailed",t):a},ye="__command",qa="data-record-dialog",Na=(e,t={})=>e.replace(/\{([a-zA-Z0-9_]+)\}/gu,(a,l)=>l in t?String(t[l]??""):a),Va=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].join(", "),Ja=e=>[...e.querySelectorAll(Va)].filter(t=>!t.hidden&&t.getAttribute("aria-hidden")!=="true"&&!t.matches('[data-ui="modal-backdrop"]'));var jn=e=>{let t=[],a=e;for(;a&&a!==document.body;){let l=a.parentElement;if(!l)break;for(let g of l.children)g instanceof HTMLElement&&g!==a&&!g.matches("script, style, template")&&(t.push({element:g,inert:g.inert}),g.inert=!0);a=l}return()=>{for(let{element:l,inert:g}of t)l.inert=g}},Xa=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`,ei=e=>Object.entries(e.values).some(([t,a])=>a!==e.initialValues[t])||Object.entries(e.checks).some(([t,a])=>a!==e.initialChecks[t]),E=()=>({values:{},checks:{},initialValues:{},initialChecks:{}}),za=(e,t)=>`${e}\0${t}`,Ue="__all:",ut=e=>e.after??"close",ti=400,ai=(e,t=ti)=>{let a,l=()=>{clearTimeout(a),a=void 0};return{set:g=>{if(l(),!g){e(!1);return}a=setTimeout(()=>e(!0),t)},stop:l}},ni='a, button, input, select, textarea, label, summary, details, [data-ui="select-cell"]',ii=e=>{let t=e?.closest("a[href]");return t?t.target&&t.target!=="_self"?null:t.href:e?.closest(ni)?null:e?.closest("[data-row-href]")?.getAttribute("data-row-href")??null},Ga=e=>()=>{let t=M(null),a=M("idle"),l=M(null),g=M(null),u=M([]),D=M(E()),F=M(E()),mt=M(!1),gt=M(!1),ft=ai(i=>gt.set(i)),xe=M(!1),bt=i=>{mt.set(i),ft.set(i),i&&xe.set(!1)},O=M(null),Se=M(0),Y=M({}),q=M(null),$=new Map,tn=(i,d)=>{for($.delete(i),$.set(i,d);$.size>Zn;)$.delete($.keys().next().value)},P=null,He=null,De=!1,We=null,K=null,se=null,Te=null,an=()=>typeof e.labels=="function"?e.labels():e.labels??{},pt=()=>({messages:l()?.messages,previous:Te,labels:an()}),N=(i,d)=>Na(Ve(i,pt()),d),ht=i=>i.message??Na(Yn(i.code,pt()),i.params),yt=i=>[...e.tabs??[],...e.extensionTabs?.(i)??[]].filter(d=>d.visible?.(i)??!0),Ie=(i,d,c="record")=>{let s=()=>c==="dialog"?F():D(),o={kind:e.kind,id:i.id,creating:i.id==="new",tab:i.tab,data:d,t:N,fieldError:b=>{let n=u().find(r=>r.field===b);return n?ht(n):null},draft:(b,n="")=>{let r=s();return r.initialValues[b]??=n,r.values[b]??n},draftChecked:(b,n="1",r=!1)=>{let m=s(),v=za(b,n);return m.initialChecks[v]??=r,m.checks[v]??r},outcome:b=>{let n=q();return n?.command===b?n.value:null},busy:gt(),dialog:O(),href:b=>st(location.href,{kind:e.kind,id:i.id,tab:b}),state:(b,n="")=>Y()[b]??n},h=yt(o);return h.length&&!h.some(b=>b.id===i.tab)&&(o.tab=h[0].id),o},j=async(i,d=!1)=>{He?.abort();let c=new AbortController;He=c;let s=e.cache===!1?void 0:$.get(i);s&&(Te=s.messages??Te,l.set(s),a.set("ready"),d=!0),d||a.set("loading"),g.set(null);try{let o=i==="new",h="route"in e.context?await Wn(e.context.route(i,o),c.signal):await Ba(e.context.fn,e.context.input?e.context.input(i,o):o?{}:{id:i},{signal:c.signal});if(c.signal.aborted)return;if(!h.ok||!h.value){g.set(h.ok?"recordModal.notFound":h.message??"recordModal.loadFailed"),a.set("error");return}Te=h.value.messages??Te,e.cache!==!1&&tn(i,h.value),l.set(h.value),a.set("ready")}catch(o){if(c.signal.aborted||o?.name==="AbortError")return;g.set("recordModal.loadFailed"),a.set("error")}},Ae=()=>P?[...P.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]')]:[],de=()=>Ae()[0]??null,Ze=()=>Ae().at(-1)??null,ce=0,ue=()=>{if(e.fixedHeight||a()!=="ready")return;let i=de()?.querySelector('[data-ui="modal-sheet"][data-height="fixed"]');if(!i)return;if(window.matchMedia("(max-width: 47.9375rem)").matches){i.style.setProperty("height","100dvh","important"),i.style.removeProperty("min-height");return}let d=i.querySelector('[data-ui="tabbed-view"]');if(!d)return;let c=d.querySelector('[data-ui="tab-panel"]'),s=c?.scrollTop??0;i.style.setProperty("height","auto","important"),i.style.setProperty("min-height","0"),d.style.setProperty("height","auto"),ce=Math.max(ce,Math.ceil(i.getBoundingClientRect().height)),d.style.removeProperty("height");let o=getComputedStyle(i).maxHeight;i.style.setProperty("min-height",o==="none"?`${ce}px`:`min(${ce}px, ${o})`),c&&(c.scrollTop=s)},ee=(i,d)=>{if(!i)return;let c=d==="dialog"?F():D(),s={values:{...c.values},checks:{...c.checks},initialValues:{...c.initialValues},initialChecks:{...c.initialChecks}};for(let o of i.querySelectorAll("input[name], select[name], textarea[name]"))if(!(o.disabled||o.name===ye)){if(o instanceof HTMLInputElement){if(o.type==="file"||o.type==="hidden")continue;if(o.type==="checkbox"||o.type==="radio"){let h=za(o.name,o.value);s.initialChecks[h]??=o.defaultChecked,s.checks[h]=o.checked,o.type==="checkbox"?s.values[o.name]=o.checked?o.value:"":o.checked&&(s.values[o.name]=o.value),s.initialValues[o.name]=s.values[o.name]??"";continue}}s.initialValues[o.name]??=o instanceof HTMLSelectElement?[...o.options].find(h=>h.defaultSelected)?.value??o.options[0]?.value??"":o.defaultValue,s.values[o.name]=o.value}d==="dialog"?F.set(s):D.set(s)},Qe=()=>{let i=Ae();ee(i[0]??null,"record"),i.length>1&&ee(i.at(-1)??null,"dialog")},vt=i=>{if(!i)return!0;let d=O()&&i===Ze()?"dialog":"record";ee(i,d);let c=d==="dialog"?F():D(),s=[...i.querySelectorAll('input[type="file"]')].some(o=>!o.disabled&&!!o.files?.length);return!ei(c)&&!s?!0:globalThis.confirm(N("recordModal.unsaved"))},ke=i=>{requestAnimationFrame(()=>{let d=Ae(),c=d[0],s=d.at(-1);if(!s)return;c&&(c.inert=d.length>1);let o=i?.();if(o?.isConnected&&s.contains(o)){o.focus();return}if(s.contains(document.activeElement))return;let h=s.querySelector('[data-ui="modal-sheet"]');(Ja(s).find(n=>!n.matches('[data-ui="modal-close"]'))??h)?.focus()})},G=(i,d,c,s)=>{let o=t(),h=o?.id===i,b=d??(h?o.tab:"");h||(ce=0,We=document.activeElement instanceof HTMLElement?document.activeElement:null,u.set([]),xe.set(!1),D.set(E()),F.set(E()),Y.set({}),q.set(null),O.set(null),K=null,l.set(null),j(i)),t.set({id:i,tab:b});let n=st(location.href,{kind:e.kind,id:i,tab:b||null});c==="push"?(history.replaceState({...history.state??{},__ketScroll:[window.scrollX,window.scrollY]},"",location.href),history.pushState({...history.state??{},__ketRecordModal:e.kind},"",n),De=!0):c==="replace"&&history.replaceState(history.state??{},"",n),P&&!se&&(se=jn(P)),ke(s)},we=i=>{He?.abort(),t.set(null),ce=0,O.set(null),u.set([]),xe.set(!1),D.set(E()),F.set(E()),Y.set({}),q.set(null),a.set("idle"),l.set(null),se?.(),se=null,i==="history"&&De?(De=!1,history.back()):i!=="none"&&(De=!1,history.replaceState(history.state??{},"",Ia(location.href)));let d=We;We=null,K=null,d?.isConnected&&requestAnimationFrame(()=>d.focus())},xt=()=>{if(O()){if(!vt(Ze()))return;let i=K;K=null,O.set(null),F.set(E()),u.set([]),q.set(null),ke(()=>i?.isConnected?i:null);return}vt(de())&&we("history")},nn=async(i,d,c)=>{let s=e.commands?.[i],o=t(),h=l()?.data;if(!s||!o||h===void 0||mt())return;let b=new FormData(d,c instanceof HTMLButtonElement?c:null),n=d.closest('[data-ui="modal-layer"][data-client-modal="true"]'),r=O()&&n===Ze()?"dialog":"record";ee(n,r);let m=Ie(o,h,r);if(s.confirm){let v=s.confirm(m);if(v&&!globalThis.confirm(v))return}bt(!0),u.set([]);try{let v={};for(let[f,I]of Object.entries(s.upload??{})){let A=b.get(f);if(!(A instanceof File)||A.size===0)continue;let me=new FormData;for(let[Ye,ln]of Object.entries(I(b,m)))me.append(Ye,ln);me.append("file",A,A.name);let Re=await fetch("/files",{method:"POST",credentials:"same-origin",body:me}),X=await Re.json().catch(()=>null);if(!Re.ok||!X?.id){u.set([{field:null,code:"recordModal.uploadFailed",message:typeof X?.message=="string"?X.message:null,params:{}}]);return}v[f]={id:String(X.id),name:typeof X.name=="string"?X.name:null}}let k=(f,I)=>Ba(f,I,{idempotencyKey:Xa()}),y=s.route?await Ua(s.route,s.input(b,m,v),{idempotencyKey:Xa()}):await k(s.fn,s.input(b,m,v));for(let f of y.ok?s.also??[]:[])if(!(f.when&&!f.when(m))&&(y=await k(f.fn,f.input(b,m,v)),!y.ok))break;if(!y.ok){q.set(null),u.set(y.issues.length?y.issues.map(f=>({...f,field:f.field&&s.issueField?s.issueField(f.field,b,m):f.field})):[{field:null,code:y.message??"recordModal.saveFailed",message:y.message,params:{}}]);return}if(s.preview){q.set({command:i,value:y.value}),Se.set(Se()+1);return}r==="dialog"?F.set(E()):D.set(E()),q.set(ut(s)==="stay"?{command:i,value:y.value}:null),d.reset();let J=y.value,_=ut(s)==="open"?s.created?.(y.value)??(J&&typeof J=="object"&&J.id!=null?String(J.id):null):null;$.delete(o.id),_&&$.delete(_);let te=()=>{document.dispatchEvent(new CustomEvent("ket:records-changed",{detail:{kind:e.kind,ids:[_??o.id]}}))};if(s.navigate){let f=new URL(s.navigate(y.value,m),location.href);if(f.origin!==location.origin)throw new Error("Record navigation must stay same-origin");we("none"),location.assign(f.href);return}let H=ut(s);if(H!=="close"&&xe.set(!0),H==="open"){O.set(null),F.set(E()),_?G(_,s.openTab??null,"replace"):we("history"),te();return}if(te(),H==="close")we("history");else if(H==="reload"){let f=K;K=null,O.set(null),F.set(E()),await j(o.id),ke(()=>f?.isConnected?f:null)}else if(H==="refresh")await j(o.id,!0);else if(H==="stay")Se.set(Se()+1);else if("tab"in H)K=null,O.set(null),F.set(E()),G(o.id,H.tab,"replace"),await j(o.id);else{let f=H.dialog?null:K;K=H.dialog&&c instanceof HTMLElement?c:null,O.set(H.dialog?{name:H.dialog,params:{}}:null),F.set(E()),await j(o.id,!0),ke(()=>f?.isConnected?f:null)}}catch{u.set([{field:null,code:"recordModal.saveFailed",message:null,params:{}}])}finally{bt(!1)}},St=i=>{let d=u().filter(o=>!o.field),c=u().filter(o=>o.field&&!P?.querySelector(`[name="${CSS.escape(o.field)}"]`)),s=[...d,...c];return s.length?Z({title:i.t("recordModal.errorTitle"),message:s.map(ht).join(" \xB7 "),tone:"danger"}):xe()?Z({title:i.t("recordModal.savedTitle"),message:i.t("recordModal.saved"),tone:"positive"}):""},rn=()=>{let i=t();if(!i)return"";if(a()==="error")return Oe(Fe,{children:[Z({title:N("recordModal.errorTitle"),message:N(g()??"recordModal.loadFailed"),tone:"danger"}),R({label:N("recordModal.retry"),variant:"secondary",name:"intent",value:"retry"})]});let d=l()?.data;if(a()!=="ready"||d===void 0)return ge({label:N("recordModal.loading")});let c=Ie(i,d),s=yt(c),o=s.find(r=>r.id===c.tab),h=e.header?.(c)??"",b=St(c),n=o?o.view(c):e.body?.(c)??"";return s.length?nt({id:`record-view-${e.kind.replaceAll(".","-")}`,label:e.title(c),items:s.map(r=>({id:r.id,label:r.label(c),href:c.href(r.id),active:r.id===c.tab})),context:h!==""||b!==""?Oe(Fe,{children:[h,b]}):void 0,body:n}):Oe(Fe,{children:[h,b,n]})},on=()=>{let i=t(),d=O(),c=l()?.data;if(!i||!d||c===void 0)return"";let s=e.dialogs?.[d.name];if(!s)return"";let o=Ie(i,c,"dialog");return ie({id:`record-dialog-${e.kind.replaceAll(".","-")}-${d.name}`,mode:"client",presentation:"dialog",size:s.size??"default",title:s.title(o),actions:s.actions?.(o),closeLabel:N("recordModal.close"),body:Oe(Fe,{children:[St(o),s.view(o)]})})};return{view:()=>{Se();let i=t();if(!i)return dt(e.kind);let d=l()?.data,c=d===void 0?null:Ie(i,d);return Oe(Fe,{children:[dt(e.kind),ie({id:`record-modal-${e.kind.replaceAll(".","-")}`,mode:"client",presentation:"dialog",size:e.size??"default",height:(e.tabs?.length??0)+(e.extensionTabs?1:0)>1?"fixed":"content",fixedHeight:e.fixedHeight??"auto",title:c?e.title(c):N("recordModal.loading"),description:c?e.description?.(c)??null:null,status:c?e.status?.(c):void 0,actions:c?e.actions?.(c):void 0,closeLabel:N("recordModal.close"),body:rn()}),on()]})},mount:({root:i,lifetime:d})=>{P=i,document.addEventListener("click",n=>{if(n.defaultPrevented||n.button!==0||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey)return;let r=n.target instanceof Element?n.target:null,m=r?.closest('[data-ui="modal-layer"][data-client-modal="true"]');if(m&&P?.contains(m)){if(r?.closest('[data-ui="modal-close"], [data-ui="modal-backdrop"], [data-record-close]')){n.preventDefault(),xt();return}let f=r?.closest("button[data-record-state], a[data-record-state]");if(f){n.preventDefault(),Qe(),Y.set({...Y(),[f.getAttribute("data-record-state")??""]:f.getAttribute("data-record-value")??""});return}let I=r?.closest(`[${qa}]`);if(I){n.preventDefault(),ee(de(),"record");let A=document.activeElement;K=A instanceof HTMLElement&&I.contains(A)?A:I.querySelector(Va),F.set(E());let me={};for(let[Re,X]of Object.entries(I.dataset))Re.startsWith("recordParam")&&X!==void 0&&(me[Re.slice(11).replace(/^./u,Ye=>Ye.toLowerCase())]=X);u.set([]),q.set(null),O.set({name:I.getAttribute(qa)??"",params:me}),ke();return}if(r?.closest('button[name="intent"][value="retry"]')){n.preventDefault();let A=t();A&&j(A.id);return}}let v=ii(r);if(!v)return;let k=new URL(v,location.href);if(k.origin!==location.origin||k.pathname!==location.pathname)return;let y=pe(k);if(!y||y.kind!==e.kind)return;n.preventDefault();let J=t(),_="route"in e.context?e.context.query??[]:[],te=new URL(location.href);if(_.some(f=>te.searchParams.get(f)!==k.searchParams.get(f))){ee(de(),"record");for(let f of _){let I=k.searchParams.get(f);I===null?te.searchParams.delete(f):te.searchParams.set(f,I)}history.replaceState(history.state??{},"",te.href),J?.id===y.id&&j(J.id)}if(J?.id===y.id){if((y.tab??"")===J.tab)return;ee(de(),"record"),u.set([]),q.set(null),G(y.id,y.tab??null,"replace",()=>de()?.querySelector('[data-ui="tab"][data-active="true"]')??null);return}G(y.id,y.tab??null,"push")},{signal:d,capture:!0}),document.addEventListener("keydown",n=>{if(n.defaultPrevented||n.key!=="Enter"&&n.key!==" ")return;let r=n.target instanceof Element?n.target:null;if(!r?.matches('[data-row-href][tabindex="0"]'))return;let m=r.getAttribute("data-row-href"),v=m?new URL(m,location.href):null;if(!v||v.origin!==location.origin||v.pathname!==location.pathname)return;let k=pe(v);!k||k.kind!==e.kind||(n.preventDefault(),G(k.id,k.tab??null,"push"))},{signal:d,capture:!0}),document.addEventListener("submit",n=>{let r=n.target instanceof HTMLFormElement?n.target:null;if(!r||!P?.contains(r))return;n.preventDefault();let m=n.submitter??null,v=(m instanceof HTMLButtonElement&&m.name===ye?m.value:null)??String(new FormData(r).get(ye)??"");nn(v,r,m)},{signal:d}),document.addEventListener("keydown",n=>{if(!t())return;let r=P?.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]'),m=r?.[r.length-1];if(!m)return;if(n.key==="Escape"){n.preventDefault(),xt();return}if(n.key!=="Tab")return;let v=Ja(m);if(!v.length){n.preventDefault(),m.querySelector('[data-ui="modal-sheet"]')?.focus();return}let k=v[0],y=v.at(-1);n.shiftKey&&(document.activeElement===k||!m.contains(document.activeElement))?(n.preventDefault(),y.focus()):!n.shiftKey&&(document.activeElement===y||!m.contains(document.activeElement))&&(n.preventDefault(),k.focus())},{signal:d}),document.addEventListener("change",n=>{let r=n.target instanceof Element?n.target:null;if(!r||!P?.contains(r))return;if(r instanceof HTMLInputElement&&r.type==="checkbox"&&r.form){let v=r.form;if(v.querySelector(`input[type="checkbox"][name^="${Ue}"]`)){if(r.name.startsWith(Ue)){let k=r.name.slice(Ue.length);for(let y of v.querySelectorAll('input[type="checkbox"]'))!y.disabled&&!y.name.startsWith(Ue)&&y.name.startsWith(k)&&(y.checked=r.checked)}Qe();return}}let m=r.getAttribute("data-record-state")??(["relation-native","reorder-list-value"].includes(r.getAttribute("data-ui")??"")?r.getAttribute("name"):null);if((r instanceof HTMLSelectElement||r instanceof HTMLInputElement)&&m){Qe(),Y.set({...Y(),[m]:r.value});return}r instanceof HTMLInputElement&&r.type==="file"&&r.hasAttribute("data-record-submit")&&r.files?.length&&r.form?.requestSubmit()},{signal:d});let c=n=>{let m=(n.target instanceof Element?n.target:null)?.closest("form[data-record-dropzone]")??null;return m&&P?.contains(m)?m:null};document.addEventListener("dragover",n=>{let r=c(n);r&&(n.preventDefault(),r.dataset.drag="1")},{signal:d}),document.addEventListener("dragleave",n=>{let r=c(n);if(!r)return;let m=n.relatedTarget;m instanceof Node&&r.contains(m)||delete r.dataset.drag},{signal:d}),document.addEventListener("drop",n=>{let r=c(n);if(!r)return;n.preventDefault(),delete r.dataset.drag;let m=n.dataTransfer?.files,v=r.querySelector('input[type="file"]');if(!v||!m?.length)return;let k=new DataTransfer;k.items.add(m[0]),v.files=k.files,r.requestSubmit()},{signal:d});let s="ket-island, div[data-ket-island]",o=n=>n instanceof Element&&(n.matches(s)||n.querySelector(s)!==null),h=new MutationObserver(n=>{ue();for(let r of n){for(let m of r.removedNodes)o(m)&&document.dispatchEvent(new CustomEvent("ket:islands-detach",{detail:{root:m}}));for(let m of r.addedNodes)o(m)&&m.isConnected&&document.dispatchEvent(new CustomEvent("ket:islands-attach",{detail:{root:m}}))}});h.observe(P,{childList:!0,subtree:!0,characterData:!0}),d.addEventListener("abort",()=>h.disconnect()),window.addEventListener("resize",ue,{signal:d}),P.addEventListener("load",ue,{capture:!0,signal:d}),P.addEventListener("toggle",ue,{capture:!0,signal:d}),document.fonts?.ready.then(()=>{d.aborted||ue()}),ue(),document.addEventListener("ket:records-changed",n=>{let r=n.detail;if(r?.kind===e.kind)if(!Array.isArray(r.ids)||!r.ids.length)$.clear();else for(let m of r.ids)$.delete(String(m))},{signal:d}),document.addEventListener("ket:popstate",n=>{let r=pe(location.href),m=r?.kind===e.kind;!m&&!t()||(n.preventDefault(),m&&r?G(r.id,r.tab??null,"none"):we("none"))},{signal:d}),document.addEventListener("ket:navigation-complete",()=>{let n=pe(location.href);n?.kind===e.kind&&!t()&&G(n.id,n.tab??null,"none")},{signal:d});let b=pe(location.href);b?.kind===e.kind&&G(b.id,b.tab??null,"none"),d.addEventListener("abort",()=>{He?.abort(),ft.stop(),se?.(),se=null,P=null})}}};var _a={vi:{"recordModal.close":"\u0110\xF3ng","recordModal.loading":"\u0110ang t\u1EA3i\u2026","recordModal.loadFailed":"Kh\xF4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c d\u1EEF li\u1EC7u. H\xE3y th\u1EED l\u1EA1i.","recordModal.notFound":"M\u1EE5c n\xE0y kh\xF4ng c\xF2n t\u1ED3n t\u1EA1i ho\u1EB7c b\u1EA1n kh\xF4ng c\xF3 quy\u1EC1n xem.","recordModal.retry":"Th\u1EED l\u1EA1i","recordModal.errorTitle":"Ch\u01B0a l\u01B0u \u0111\u01B0\u1EE3c","recordModal.saveFailed":"Thao t\xE1c kh\xF4ng th\xE0nh c\xF4ng. H\xE3y th\u1EED l\u1EA1i.","recordModal.savedTitle":"\u0110\xE3 l\u01B0u","recordModal.saved":"Thay \u0111\u1ED5i \u0111\xE3 \u0111\u01B0\u1EE3c ghi nh\u1EADn.","recordModal.unsaved":"B\u1ECF c\xE1c thay \u0111\u1ED5i ch\u01B0a l\u01B0u?","recordModal.uploadFailed":"Kh\xF4ng t\u1EA3i \u0111\u01B0\u1EE3c t\u1EC7p l\xEAn. H\xE3y th\u1EED l\u1EA1i."},en:{"recordModal.close":"Close","recordModal.loading":"Loading\u2026","recordModal.loadFailed":"The record could not be read. Try again.","recordModal.notFound":"The record is gone or you cannot see it.","recordModal.retry":"Retry","recordModal.errorTitle":"Not saved","recordModal.saveFailed":"That did not work. Try again.","recordModal.savedTitle":"Saved","recordModal.saved":"The changes have been saved.","recordModal.unsaved":"Discard unsaved changes?","recordModal.uploadFailed":"The file could not be uploaded. Try again."}};import{jsx as S}from"/_ket/view/jsx-runtime.js";var Wa=()=>typeof document<"u"&&document.documentElement.lang==="en"?"en":"vi",p=(e,t)=>e.t(`sale_backend.${t}`),_e=e=>!e.data.record.orderAuthority||e.data.record.orderAuthority==="local",Za=e=>_e(e)&&["draft","sent"].includes(String(e.data.record.state))&&!e.data.record.locked,V=(e,t)=>(e.data.choices[t]??[]).map(a=>({value:String(a.id),label:String(a.name)})),C=(e,t,a,l={})=>({id:`sale-${e.dialog?.name??"record"}-${t}`,name:t,label:p(e,`field.${a}`),...l,value:e.draft(t,String(l.value??"")),error:e.fieldError(t),disabled:e.busy}),ve=(e,t,a,l=!1)=>S(ct,{kind:e.kind,command:t,children:S(R,{type:"submit",label:p(e,`action.${a}`),variant:l?"primary":"secondary",disabled:e.busy})}),ja=(e,t,a)=>S(ze,{dialog:t,children:S(R,{label:p(e,`action.${a}`),disabled:e.busy})}),Ge=(e,t)=>Object.fromEntries(t.flatMap(a=>{let l=String(e.get(a)??"");return l?[[a,l]]:[]})),en=e=>e.data.record.lines.find(t=>t.id===e.dialog?.params.id),Qa=(e,t=!1)=>{let a=t?en(e):void 0;return[...t?[]:[C(e,"productId","product",{type:"select",options:V(e,"variants"),required:!0}),C(e,"productUomId","uom",{type:"select",options:V(e,"units"),required:!0})],C(e,"productUomQty","quantity",{type:"decimal",value:String(a?.productUomQty??"1"),required:!0}),C(e,"priceUnit","priceUnit",{type:"decimal",value:String(a?.priceUnit??"")}),C(e,"discount","discount",{type:"decimal",value:String(a?.discount??"0")}),C(e,"taxId","tax",{type:"select",options:[{value:"",label:"\u2014"},...V(e,"taxes")],value:String(a?.taxId??"")})]},ri=e=>S(he,{kind:e.kind,command:"create",fields:[C(e,"partnerId","customer",{type:"select",options:V(e,"partners"),required:!0}),C(e,"warehouseId","warehouse",{type:"select",options:V(e,"warehouses"),required:!0}),C(e,"clientOrderRef","clientOrderRef"),C(e,"pricelistId","pricelist",{type:"select",options:[{value:"",label:"\u2014"},...V(e,"pricelists")]}),C(e,"paymentTermId","paymentTerm",{type:"select",options:[{value:"",label:"\u2014"},...V(e,"terms")]}),C(e,"dateOrder","dateOrder",{type:"date"}),C(e,"validityDate","validityDate",{type:"date"}),C(e,"notes","notes",{type:"textarea",span:"full"})],actions:[S(R,{type:"submit",label:p(e,"action.create"),variant:"primary",disabled:e.busy})]}),Ya=e=>S(Ke,{items:[S(Je,{items:["partnerName","clientOrderRef","dateOrder","validityDate","amountTotal","notes"].map(t=>({id:t,label:p(e,`field.${t==="partnerName"?"customer":t}`),value:String(e.data.record.display?.[t]??e.data.record[t]??"\u2014")||"\u2014"}))}),S(Pe,{title:p(e,"modal.lines"),actions:Za(e)&&e.data.permissions.addLine?ja(e,"addLine","addLine"):null,body:S(Ee,{rows:e.data.record.lines,id:t=>String(t.id),responsive:"scroll",columns:[{key:"name",label:p(e,"field.product"),cell:t=>String(t.name)},{key:"productUomQty",label:p(e,"field.quantity"),cell:t=>String(t.productUomQty)},{key:"qtyDelivered",label:p(e,"field.delivered"),cell:t=>String(t.qtyDelivered)},{key:"priceUnit",label:p(e,"field.priceUnit"),cell:t=>String(t.priceUnitLabel??t.priceUnit)},{key:"edit",label:p(e,"modal.edit"),cell:t=>Za(e)&&e.data.permissions.updateLine?S(ze,{dialog:"editLine",id:String(t.id),children:S(R,{label:p(e,"modal.edit"),variant:"tertiary"})}):""}]})})]}),oi={kind:"sale.order",size:"large",labels:()=>_a[Wa()],context:{route:(e,t)=>`/admin/sales/record/${t?"new":encodeURIComponent(e)}/context?lang=${Wa()}`,query:["company","branch"]},title:e=>e.creating?p(e,"action.create"):String(e.data.record.name),status:e=>e.creating?null:S(Ce,{label:p(e,`state.${e.data.record.state}`)}),body:e=>e.creating?ri(e):Ya(e),tabs:[{id:"info",label:e=>p(e,"modal.info"),visible:e=>!e.creating,view:Ya},{id:"deliveries",label:e=>p(e,"modal.deliveries"),visible:e=>!e.creating,view:e=>S(Ee,{rows:e.data.record.pickings,id:t=>String(t.id),responsive:"scroll",columns:[{key:"name",label:p(e,"field.name"),cell:t=>String(t.name)},{key:"state",label:p(e,"field.state"),cell:t=>String(t.state)}]})},{id:"invoices",label:e=>p(e,"modal.invoices"),visible:e=>!e.creating,view:e=>S(Pe,{title:p(e,"modal.invoices"),actions:_e(e)&&e.data.record.state==="sale"&&e.data.permissions.createInvoice?ja(e,"bill","createInvoice"):null,body:S(Ee,{rows:e.data.record.invoices,id:t=>String(t.id),responsive:"scroll",columns:[{key:"name",label:p(e,"field.name"),cell:t=>String(t.name)},{key:"state",label:p(e,"field.state"),cell:t=>String(t.state)}]})})},{id:"actions",label:e=>p(e,"modal.more"),visible:e=>!e.creating&&_e(e),view:e=>S(Ke,{items:[...e.data.record.state==="cancel"&&e.data.permissions.resetOrder?[ve(e,"reset","reset")]:[],...e.data.record.state==="sale"&&e.data.permissions.lockOrder?[ve(e,e.data.record.locked?"unlock":"lock",e.data.record.locked?"unlock":"lock")]:[],...e.data.record.state!=="cancel"&&!e.data.record.locked&&!e.data.record.moves?.some(t=>t.state==="done")&&e.data.permissions.cancelOrder?[ve(e,"cancel","cancel")]:[]]})}],actions:e=>e.creating||!_e(e)?void 0:S(z,{actions:[...e.data.record.state==="draft"&&e.data.permissions.sendQuotation?[ve(e,"send","send")]:[],...["draft","sent"].includes(String(e.data.record.state))&&e.data.permissions.confirmOrder?[ve(e,"confirm","confirm",!0)]:[],...e.data.record.state==="sale"&&e.data.permissions.syncDeliveries?[ve(e,"sync","sync")]:[]]}),dialogs:{addLine:{title:e=>p(e,"action.addLine"),view:e=>S(he,{kind:e.kind,command:"addLine",fields:Qa(e),actions:[S(R,{type:"submit",label:p(e,"action.addLine"),variant:"primary",disabled:e.busy})]})},editLine:{title:e=>p(e,"modal.edit"),view:e=>S(he,{kind:e.kind,fields:Qa(e,!0),actions:[S(R,{type:"submit",name:"__command",value:"updateLine",label:p(e,"action.updateLine"),variant:"primary",disabled:e.busy}),...e.data.permissions.removeLine?[S(R,{type:"submit",name:"__command",value:"removeLine",label:p(e,"action.removeLine"),variant:"destructive",disabled:e.busy})]:[]]})},bill:{title:e=>p(e,"action.createInvoice"),view:e=>S(he,{kind:e.kind,command:"bill",fields:[C(e,"journalId","journal",{type:"select",options:V(e,"journals"),required:!0}),...["revenueAccountId","receivableAccountId","taxAccountId"].map(t=>C(e,t,t.replace("Id",""),{type:"select",options:V(e,"accounts"),required:t!=="taxAccountId"})),C(e,"invoiceDate","invoiceDate",{type:"date"})],actions:[S(R,{type:"submit",label:p(e,"action.createInvoice"),variant:"primary",disabled:e.busy})]})}},commands:{create:{fn:"sale.createOrder",input:(e,t)=>({id:t.data.draftId,...Ge(e,["partnerId","warehouseId","pricelistId","paymentTermId","clientOrderRef","dateOrder","validityDate","notes"])}),after:"open"},addLine:{fn:"sale.addLine",input:(e,t)=>({id:t.data.draftId,orderId:t.id,...Ge(e,["productId","productUomId","productUomQty","priceUnit","discount","taxId"])}),after:"reload"},updateLine:{fn:"sale.updateLine",input:(e,t)=>({id:t.dialog?.params.id,expectedRevision:Number(t.data.record.revision),...Ge(e,["productUomQty","priceUnit","discount"]),...String(e.get("taxId")??"")!==String(en(t)?.taxId??"")?{taxIds:e.get("taxId")?[String(e.get("taxId"))]:[]}:{}}),after:"reload"},removeLine:{fn:"sale.removeLine",input:(e,t)=>({id:t.dialog?.params.id}),after:"reload",confirm:e=>p(e,"modal.confirmRemove")},send:{fn:"sale.sendQuotation",input:(e,t)=>({id:t.id}),after:"reload"},confirm:{fn:"sale.confirmOrder",input:(e,t)=>({id:t.id,expectedRevision:Number(t.data.record.revision)}),after:"reload"},reset:{fn:"sale.resetOrder",input:(e,t)=>({id:t.id}),after:"reload"},sync:{fn:"sale.syncDeliveries",input:(e,t)=>({id:t.id}),after:"reload"},lock:{fn:"sale.lockOrder",input:(e,t)=>({id:t.id,locked:!0}),after:"reload"},unlock:{fn:"sale.lockOrder",input:(e,t)=>({id:t.id,locked:!1}),after:"reload"},cancel:{fn:"sale.cancelOrder",input:(e,t)=>({id:t.id,expectedRevision:Number(t.data.record.revision)}),after:"reload",confirm:e=>p(e,"modal.confirmCancel")},bill:{fn:"sale.createInvoice",input:(e,t)=>({id:t.data.draftId,orderId:t.id,...Ge(e,["journalId","revenueAccountId","receivableAccountId","taxAccountId","invoiceDate"])}),after:"reload"}}},Hf=Ga(oi);export{Hf as saleOrderModal,oi as saleOrderModalDefinition};
|