@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,2 @@
|
|
|
1
|
+
// @ts-nocheck Generated by tools/build-backend-client.mjs — do not edit.
|
|
2
|
+
import{each as Oa}from"/_ket/view/index.js";import{Fragment as rt,jsx as U,jsxs as Ia}from"/_ket/view/jsx-runtime.js";var it=["action","action-leading","action-label","action-spinner","action-group"],Da=e=>Ia(rt,{children:[e.loading===!0&&U("span",{"data-ui":"action-spinner","aria-hidden":"true"}),e.loading!==!0&&e.leading!==void 0&&U("span",{"data-ui":"action-leading","aria-hidden":"true",children:e.leading}),!e.iconOnly&&U("span",{"data-ui":"action-label",children:e.label})]}),E=e=>U("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:U(Da,{...e})});var _=e=>U("div",{"data-ui":"action-group",role:"group","aria-label":e.label??null,children:Oa(e.actions,(t,r)=>r,t=>U(rt,{children:t}))});import{jsx as En,jsxs as Fn}from"/_ket/view/jsx-runtime.js";var ot=["badge","tag","tag-remove","count-badge","avatar","code","text","media-label","media-label-image","media-label-copy"];import{each as Aa}from"/_ket/view/index.js";import{Fragment as Te,jsx as S,jsxs as W}from"/_ket/view/jsx-runtime.js";var lt=["notice","notice-mark","notice-copy","notice-title","notice-message","notice-actions","empty","empty-mark","empty-title","empty-message","empty-actions","loading","loading-label"],$a={info:()=>W(Te,{children:[S("circle",{cx:"12",cy:"12",r:"10"}),S("path",{d:"M12 16v-4"}),S("path",{d:"M12 8h.01"})]}),positive:()=>W(Te,{children:[S("circle",{cx:"12",cy:"12",r:"10"}),S("path",{d:"m9 12 2 2 4-4"})]}),warning:()=>W(Te,{children:[S("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"}),S("path",{d:"M12 9v4"}),S("path",{d:"M12 17h.01"})]}),danger:()=>W(Te,{children:[S("circle",{cx:"12",cy:"12",r:"10"}),S("path",{d:"M12 8v4"}),S("path",{d:"M12 16h.01"})]})},J=e=>W("aside",{"data-ui":"notice","data-pattern":"notice","data-tone":e.tone??"info",role:e.tone==="danger"?"alert":"status",children:[S("span",{"data-ui":"notice-mark","aria-hidden":"true",children:S("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:$a[e.tone??"info"]()})}),W("div",{"data-ui":"notice-copy",children:[S("p",{"data-ui":"notice-title",children:e.title}),S("p",{"data-ui":"notice-message",children:e.message})]}),e.actions!==void 0&&S("div",{"data-ui":"notice-actions",children:e.actions})]});var ne=e=>W("div",{"data-ui":"loading",role:"status","aria-live":"polite",children:[S("span",{"data-ui":"loading-label",children:e.label}),S("div",{"data-ui":"skeleton","aria-hidden":"true",children:Aa(Array.from({length:Math.max(1,e.lines??3)}),(t,r)=>r,(t,r)=>S("span",{"data-ui":"skeleton-line","data-line":String(r+1)}))})]});import{each as $e}from"/_ket/view/index.js";import{each as jn}from"/_ket/view/index.js";import{jsx as D,jsxs as me}from"/_ket/view/jsx-runtime.js";var st=["modal-layer","modal-backdrop","modal-sheet","modal-head","modal-heading","modal-title-row","modal-title","modal-description","modal-close","modal-body","modal-actions"],Z=e=>{let t=e.mode==="client",r=e.mode==="embedded";return me("div",{"data-ui":"modal-layer","data-mode":e.mode??"overlay","data-route-modal":r||t?null:"true","data-client-modal":t?"true":null,"data-presentation":e.presentation??"sheet","data-unsaved-prompt":e.unsavedPrompt??null,children:[t?D("button",{"data-ui":"modal-backdrop",type:"button","aria-hidden":"true",tabIndex:-1,children:D("span",{children:e.closeLabel})}):D("a",{"data-ui":"modal-backdrop",href:e.closeHref??"#","aria-label":e.closeLabel,children:D("span",{children:e.closeLabel})}),me("section",{id:e.id,"data-ui":"modal-sheet","data-size":e.size??"default","data-height":e.height==="fixed"?"fixed":null,style:e.height==="fixed"&&e.fixedHeight?`height: ${e.fixedHeight} !important`:"",...e.dialogSemantics==="parent"?{}:{role:"dialog","aria-modal":r?"false":"true"},"aria-labelledby":e.dialogSemantics==="parent"?null:`${e.id}-title`,"aria-describedby":e.dialogSemantics!=="parent"&&e.description?`${e.id}-description`:null,tabindex:r?null:"-1",children:[me("header",{"data-ui":"modal-head",children:[me("div",{"data-ui":"modal-heading",children:[me("div",{"data-ui":"modal-title-row",children:[D("h2",{"data-ui":"modal-title",id:`${e.id}-title`,children:e.title}),e.status!==void 0&&e.status]}),!!e.description&&D("p",{"data-ui":"modal-description",id:`${e.id}-description`,children:e.description})]}),t?D("button",{"data-ui":"modal-close",type:"button","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"}):D("a",{"data-ui":"modal-close",href:e.closeHref??"#","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"})]}),D("div",{"data-ui":"modal-body",children:e.body}),e.actions!==void 0&&D("footer",{"data-ui":"modal-actions",children:e.actions})]})]})};import{Fragment as Nn,jsx as Bn,jsxs as qn}from"/_ket/view/jsx-runtime.js";import{Fragment as _n,jsx as Gn,jsxs as Un}from"/_ket/view/jsx-runtime.js";var ct=["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 ai,jsx as ut,jsxs as Xa}from"/_ket/view/jsx-runtime.js";var mt=["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"];var Ae=e=>Xa("details",{"data-ui":"disclosure",open:e.open===!0?!0:void 0,children:[ut("summary",{"data-ui":"disclosure-summary",children:e.summary}),ut("div",{"data-ui":"disclosure-body",children:e.body})]});import{each as za}from"/_ket/view/index.js";import{Fragment as Va,jsx as ge}from"/_ket/view/jsx-runtime.js";var ke=(e,t)=>e.control!==void 0?ge(Va,{children:e.control}):e.type==="textarea"?ge("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"?ge("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:za(e.options??[],r=>r.value,r=>ge("option",{value:r.value,selected:String(e.value??"")===r.value,disabled:r.disabled===!0,children:r.label}))}):ge("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 x,jsxs as B}from"/_ket/view/jsx-runtime.js";var gt=["field","field-label","field-required","field-control","field-options","field-option","field-option-input","field-help","field-error"],ft=e=>!!e.error||(e.fields?.some(ft)??!1),Y=e=>{let t=e.help?`${e.id}-help`:null,r=e.error?`${e.id}-error`:null,m=[t,r].filter(Boolean).join(" ")||null,g=B("span",{"data-ui":"field-label",children:[e.label,e.required&&x("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]});return e.fields?B("div",{"data-ui":"field","data-kind":"group","data-span":"full","data-invalid":String(!!e.error),children:[x(Ae,{summary:e.label,open:e.open||ft(e),body:x("div",{"data-ui":"form-grid",children:$e(e.fields.map(u=>({...u,disabled:e.disabled||u.disabled,readOnly:e.readOnly||u.readOnly})),u=>u.id,u=>x(Y,{...u}))})}),!!e.help&&x("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&x("small",{"data-ui":"field-error",id:r??void 0,children:e.error})]}):e.type==="checkbox-group"?B("div",{"data-ui":"field","data-kind":"checkbox-group","data-span":e.span??"half","data-invalid":String(!!e.error),children:[B("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&x("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),x("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"group","aria-labelledby":`${e.id}-label`,children:$e(e.options??[],u=>u.name??u.value,u=>B("label",{"data-ui":"field-option",children:[x("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":m,autocomplete:"off"}),x("span",{children:u.label})]}))}),!!e.help&&x("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&x("small",{"data-ui":"field-error",id:r??void 0,children:e.error})]}):e.type==="radio"?B("div",{"data-ui":"field","data-kind":"radio","data-span":e.span??"half","data-invalid":String(!!e.error),children:[B("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&x("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),x("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"radiogroup","aria-labelledby":`${e.id}-label`,children:$e(e.options??[],u=>u.value,u=>B("label",{"data-ui":"field-option",children:[x("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":m,autocomplete:"off"}),x("span",{children:u.label})]}))}),!!e.help&&x("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&x("small",{"data-ui":"field-error",id:r??void 0,children:e.error})]}):B("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"&&ke(e,m),g,e.type!=="checkbox"&&ke(e,m),!!e.help&&x("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&x("small",{"data-ui":"field-error",id:r??void 0,children:e.error})]})};import{each as Ga}from"/_ket/view/index.js";import{jsx as ie,jsxs as Be}from"/_ket/view/jsx-runtime.js";var bt=["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 pt=e=>Be("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&&ie("span",{"data-ui":"tab-count",children:String(e.count)})]}),ht=(e,t)=>`${e}-${t.replace(/[^a-zA-Z0-9_-]+/gu,"-")}-tab`,yt=e=>Be("nav",{"data-ui":"tabs","data-pattern":"tabs","aria-label":e.label,children:[Ga(e.items,t=>t.id,t=>ie(pt,{...t,elementId:e.id?ht(e.id,t.id):void 0,controls:e.panelId})),e.extension]}),vt=e=>ie("section",{"data-ui":"tab-panel",id:e.id,"aria-labelledby":e.labelledBy,tabindex:"-1",children:e.body}),Ke=e=>{let t=`${e.id}-tabs`,r=`${e.id}-panel`,m=e.items.find(g=>g.active===!0);return Be("div",{"data-ui":"tabbed-view",children:[e.context!==void 0&&e.context!==""?ie("div",{"data-ui":"tabbed-view-context",children:e.context}):"",ie(yt,{id:t,label:e.label,items:e.items,extension:e.extension,panelId:r}),ie(vt,{id:r,labelledBy:m?ht(t,m.id):void 0,body:e.body})]})};import{jsx as yi,jsxs as vi}from"/_ket/view/jsx-runtime.js";var xt=["progress","progress-label","progress-value","progress-track","progress-bar"];import{each as Ti}from"/_ket/view/index.js";import{Fragment as Ci,jsx as wi,jsxs as Ri}from"/_ket/view/jsx-runtime.js";var St=["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 Mi,jsxs as Ei}from"/_ket/view/jsx-runtime.js";var Tt=["popover","popover-trigger","popover-panel","popover-close"];import{jsx as Oi,jsxs as Di}from"/_ket/view/jsx-runtime.js";var kt=["tooltip","tooltip-trigger","tooltip-content"];import{jsx as Bi}from"/_ket/view/jsx-runtime.js";var wt=["dialog","confirm-dialog-message"];import{each as Ji}from"/_ket/view/index.js";import{jsx as zi,jsxs as Vi}from"/_ket/view/jsx-runtime.js";var Rt=["toast-region","toast","toast-copy","toast-title","toast-message","toast-actions"];import{jsx as _i}from"/_ket/view/jsx-runtime.js";var Ct=["spinner","visually-hidden"];import{each as Yi}from"/_ket/view/index.js";import{jsx as ji}from"/_ket/view/jsx-runtime.js";var Lt=["skeleton","skeleton-line"];import{each as ar,effect as nr,signal as ir}from"/_ket/view/index.js";import{jsx as lr,jsxs as or}from"/_ket/view/jsx-runtime.js";var Pt=["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 cr,signal as ur}from"/_ket/view/index.js";import{jsx as gr,jsxs as fr}from"/_ket/view/jsx-runtime.js";var Mt=["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 yr,signal as vr}from"/_ket/view/index.js";import{Fragment as kr,jsx as Tr,jsxs as Sr}from"/_ket/view/jsx-runtime.js";var Et=["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 Mr,effect as Er,signal as Fr}from"/_ket/view/index.js";import{jsx as Cr}from"/_ket/view/jsx-runtime.js";var Ft=["formatted-date","formatted-number","formatted-money"];import{Fragment as Ar,jsx as $r,jsxs as Kr}from"/_ket/view/jsx-runtime.js";var Dt=["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 jr=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","summary",'[tabindex]:not([tabindex="-1"])'].join(",");var Qa=['[data-ui="timeframe-menu"]','[data-ui="view-settings"]'],eo=Qa.map(e=>`${e}[open]`).join(", ");import{jsx as no,jsxs as io}from"/_ket/view/jsx-runtime.js";import{jsx as co,jsxs as uo}from"/_ket/view/jsx-runtime.js";var It=["switch-control","switch-track"];import{each as fo}from"/_ket/view/index.js";import{Fragment as vo,jsx as ho,jsxs as yo}from"/_ket/view/jsx-runtime.js";var At=["combobox","combobox-input-row","combobox-toggle","combobox-listbox","combobox-option","combobox-empty","tag-picker"];import{Fragment as Mo,jsx as Lo,jsxs as Po}from"/_ket/view/jsx-runtime.js";var $t=["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 Oo,jsxs as Do}from"/_ket/view/jsx-runtime.js";var Kt=["file-upload","drop-zone","upload-status"];import{jsx as Ko}from"/_ket/view/jsx-runtime.js";var Bt=["relation-picker"];import{each as No}from"/_ket/view/index.js";import{jsx as Vo,jsxs as Go}from"/_ket/view/jsx-runtime.js";var qt=["search-bar","filter-bar","applied-filters","applied-filter","saved-views","saved-view","view-settings","view-settings-options"];import{jsx as Zo,jsxs as Yo}from"/_ket/view/jsx-runtime.js";var Nt=["inline-edit","inline-edit-value","inline-edit-form","inline-edit-actions"];import{each as cl}from"/_ket/view/index.js";import{each as al}from"/_ket/view/index.js";import{Fragment as ll,jsx as rl,jsxs as ol}from"/_ket/view/jsx-runtime.js";var Jt=["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 fl,jsxs as bl}from"/_ket/view/jsx-runtime.js";var Xt=["resource-list","resource-list-item","resource-list-select","resource-list-link"];import{each as yl}from"/_ket/view/index.js";import{jsx as xl,jsxs as Sl}from"/_ket/view/jsx-runtime.js";var zt=["data-grid-scroll","data-grid","data-grid-cap","data-grid-cell"];import{each as wl}from"/_ket/view/index.js";import{jsx as Cl,jsxs as Ll}from"/_ket/view/jsx-runtime.js";var Vt=["tree","tree-item","tree-link","tree-grid","tree-grid-row"];import{each as El}from"/_ket/view/index.js";import{jsx as Hl,jsxs as Ol}from"/_ket/view/jsx-runtime.js";var Gt=["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 Al}from"/_ket/view/index.js";import{jsx as Kl,jsxs as Bl}from"/_ket/view/jsx-runtime.js";var Ut=["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 Jl}from"/_ket/view/index.js";import{jsx as zl,jsxs as Vl}from"/_ket/view/jsx-runtime.js";var _t=["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 nn}from"/_ket/view/index.js";import{jsx as Re,jsxs as rn}from"/_ket/view/jsx-runtime.js";var Wt=["description-list","key-value","key-value-label","key-value-value","person","person-body","avatar-group","status"],Zt=e=>rn("div",{"data-ui":"key-value",children:[Re("dt",{"data-ui":"key-value-label",children:e.label}),Re("dd",{"data-ui":"key-value-value",children:e.value??e.emptyLabel??"\u2014"})]}),Ce=e=>Re("dl",{"data-ui":"description-list","aria-label":e.label,"data-columns":String(e.columns??2),"data-layout":e.layout==="strip"?"strip":null,children:nn(e.items,t=>t.id,t=>Re(Zt,{...t}))});import{each as Ql}from"/_ket/view/index.js";import{jsx as ns,jsxs as is}from"/_ket/view/jsx-runtime.js";var Qt=["record-summary","record-summary-main","record-actions","record-rail"];import{each as ls}from"/_ket/view/index.js";import{jsx as us,jsxs as ms}from"/_ket/view/jsx-runtime.js";var jt=["activity-timeline","activity-item","activity-marker","audit-log","audit-item"];import{each as bs}from"/_ket/view/index.js";import{jsx as ys,jsxs as vs}from"/_ket/view/jsx-runtime.js";var ea=["attachments","attachment","media-gallery","media-item"];import{each as Ts}from"/_ket/view/index.js";import{Fragment as Cs,jsx as ws,jsxs as Rs}from"/_ket/view/jsx-runtime.js";var ta=["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 Fs}from"/_ket/view/index.js";import{Fragment as $s,jsx as Is,jsxs as As}from"/_ket/view/jsx-runtime.js";var aa=["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"];import{Fragment as Gs,jsx as Vs,jsxs as Us}from"/_ket/view/jsx-runtime.js";var na=["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 Ys,jsxs as Qs}from"/_ket/view/jsx-runtime.js";var ia=["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 ra=["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 ld,jsxs as sd}from"/_ket/view/jsx-runtime.js";var oa=["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 la=["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 hd}from"/_ket/view/index.js";import{jsx as vd,jsxs as xd}from"/_ket/view/jsx-runtime.js";var sa=["pipeline","pipeline-step","pipeline-arrow","pipeline-step-label","pipeline-step-value","pipeline-step-node"];import{each as Rd}from"/_ket/view/index.js";import{jsx as Md,jsxs as Ed}from"/_ket/view/jsx-runtime.js";var da=["record-form","form-errors","form-grid","form-actions"];import{each as Kd}from"/_ket/view/index.js";import{jsx as Jd,jsxs as Xd}from"/_ket/view/jsx-runtime.js";var ca=["reorder-list","reorder-list-value","reorder-list-rows","reorder-list-row","reorder-list-content","reorder-list-controls"];var ua={actions:it,feedback:lt,fields:gt,status:ot,navigation:bt,progress:xt,menu:St,reorderList:ca,popover:Tt,tooltip:kt,dialog:wt,toast:Rt,spinner:Ct,skeleton:Lt,lightbox:Mt,relationSelect:Pt,searchFilter:Et,ketTable:Dt,scalarFields:It,combobox:At,dateTime:$t,upload:Kt,relationPicker:Bt,listControls:qt,inlineEdit:Nt,resourceList:Xt,dataGrid:zt,tree:Vt,matrix:Gt,barChart:Ut,timeframe:_t,recordDisplay:Wt,formattedValues:Ft,recordComposition:Qt,activity:jt,media:ea,layouts:mt,shell:ct,appNavigation:ta,table:aa,listChrome:Jt,listPage:na,formPage:ra,recordPage:ia,dashboardPage:oa,boardPage:la,modal:st,pipeline:sa,form:da},cn=[...new Set(Object.values(ua).flat())].sort(),un=Object.freeze(Object.fromEntries(Object.entries(ua).map(([e,t])=>[e,[...t]])));import{signal as k}from"/_ket/view/index.js";import{jsx as gn}from"/_ket/view/jsx-runtime.js";var Le="record";var mn=/^[a-z][a-z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)+$/u,ma=e=>mn.test(e),Xe=(e,t)=>{if(!ma(t.kind))throw new TypeError(`invalid record kind "${t.kind}"`);let r=new URL(String(e),"http://ket.local");return r.searchParams.set(Le,`${t.kind}:${t.id}`),t.tab?r.searchParams.set("tab",t.tab):r.searchParams.delete("tab"),`${r.pathname}${r.search}`};var ga=e=>{let t=new URL(String(e),"http://ket.local");return t.searchParams.delete(Le),t.searchParams.delete("tab"),`${t.pathname}${t.search}`},re=e=>{let t=new URL(String(e),"http://ket.local"),r=t.searchParams.get(Le)??"",m=r.indexOf(":");if(m<=0||m===r.length-1)return null;let g=r.slice(0,m);return ma(g)?{kind:g,id:r.slice(m+1),tab:t.searchParams.get("tab")}:null},ze=e=>gn("span",{"data-ui":"record-modal-host","data-record-kind":e,hidden:!0});import{jsx as Pe,jsxs as fn}from"/_ket/view/jsx-runtime.js";var Ve=e=>fn("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?Pe("input",{type:"hidden",name:be,value:e.command,autocomplete:"off"}):"",Object.entries(e.hidden??{}).map(([t,r])=>Pe("input",{type:"hidden",name:t,value:r,autocomplete:"off"})),Pe("div",{"data-ui":"form-grid",children:e.fields.map(t=>Y(t))}),e.body,e.actions?.length?Pe("div",{"data-ui":"form-actions",children:_({actions:e.actions})}):""]});import{Fragment as pe,jsx as ef,jsxs as he}from"/_ket/view/jsx-runtime.js";var ba=e=>{let t=e??{};return(Array.isArray(t.errors)?t.errors:Array.isArray(t.issues)?t.issues:[]).map(m=>{let g=m??{},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:{}}})},Ta=async(e,t,r={})=>{let m=new URL(e,"https://record.invalid");if(m.origin!=="https://record.invalid"||!e.startsWith("/")||e.startsWith("//"))throw new Error("Record commands require a same-origin route");let g=await fetch(m.pathname+m.search,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json",...r.idempotencyKey?{"idempotency-key":r.idempotencyKey}:{}},body:JSON.stringify(t),signal:r.signal}),u=await g.json().catch(()=>({}));if(!g.ok||u.ok===!1)return{ok:!1,issues:ba(u.error??u),message:g.status>=500?null:u.error?.message??u.message??null,status:g.status};let P=u.value;return P&&typeof P=="object"&&P.ok===!1?{ok:!1,issues:ba(P),message:null,status:g.status}:{ok:!0,value:u.value}},pa=(e,t,r={})=>Ta(`/_ket/fn/${encodeURIComponent(e)}`,t,r),bn=async(e,t)=>{let r=new URL(e,location.href);if(r.origin!==location.origin)throw new Error("Record context must stay same-origin");let m=await fetch(r.href,{credentials:"same-origin",signal:t,headers:{accept:"application/json"}});return m.ok?{ok:!0,value:await m.json()}:{ok:!1,issues:[],message:null,status:m.status}},pn=30,hn=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."}),Ee=(e,t)=>t.messages?.[e]??t.previous?.[e]??t.labels?.[e]??hn[e]??(/^E_[A-Z_]+$/u.test(e)?Ee("recordModal.saveFailed",t):e),yn=(e,t)=>{let r=Ee(e,t);return r===e?Ee("recordModal.saveFailed",t):r},be="__command",ha="data-record-dialog",ya=(e,t={})=>e.replace(/\{([a-zA-Z0-9_]+)\}/gu,(r,m)=>m in t?String(t[m]??""):r),ka=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].join(", "),va=e=>[...e.querySelectorAll(ka)].filter(t=>!t.hidden&&t.getAttribute("aria-hidden")!=="true"&&!t.matches('[data-ui="modal-backdrop"]'));var vn=e=>{let t=[],r=e;for(;r&&r!==document.body;){let m=r.parentElement;if(!m)break;for(let g of m.children)g instanceof HTMLElement&&g!==r&&!g.matches("script, style, template")&&(t.push({element:g,inert:g.inert}),g.inert=!0);r=m}return()=>{for(let{element:m,inert:g}of t)m.inert=g}},xa=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`,xn=e=>Object.entries(e.values).some(([t,r])=>r!==e.initialValues[t])||Object.entries(e.checks).some(([t,r])=>r!==e.initialChecks[t]),w=()=>({values:{},checks:{},initialValues:{},initialChecks:{}}),Sa=(e,t)=>`${e}\0${t}`,Me="__all:",Ge=e=>e.after??"close",Sn=400,Tn=(e,t=Sn)=>{let r,m=()=>{clearTimeout(r),r=void 0};return{set:g=>{if(m(),!g){e(!1);return}r=setTimeout(()=>e(!0),t)},stop:m}},kn='a, button, input, select, textarea, label, summary, details, [data-ui="select-cell"]',wn=e=>{let t=e?.closest("a[href]");return t?t.target&&t.target!=="_self"?null:t.href:e?.closest(kn)?null:e?.closest("[data-row-href]")?.getAttribute("data-row-href")??null},wa=e=>()=>{let t=k(null),r=k("idle"),m=k(null),g=k(null),u=k([]),P=k(w()),R=k(w()),_e=k(!1),We=k(!1),Ze=Tn(n=>We.set(n)),oe=k(!1),Ye=n=>{_e.set(n),Ze.set(n),n&&oe.set(!1)},C=k(null),le=k(0),X=k({}),I=k(null),H=new Map,La=(n,s)=>{for(H.delete(n),H.set(n,s);H.size>pn;)H.delete(H.keys().next().value)},T=null,ye=null,ve=!1,Fe=null,O=null,Q=null,se=null,Pa=()=>typeof e.labels=="function"?e.labels():e.labels??{},Qe=()=>({messages:m()?.messages,previous:se,labels:Pa()}),A=(n,s)=>ya(Ee(n,Qe()),s),je=n=>n.message??ya(yn(n.code,Qe()),n.params),et=n=>[...e.tabs??[],...e.extensionTabs?.(n)??[]].filter(s=>s.visible?.(n)??!0),xe=(n,s,d="record")=>{let l=()=>d==="dialog"?R():P(),o={kind:e.kind,id:n.id,creating:n.id==="new",tab:n.tab,data:s,t:A,fieldError:b=>{let a=u().find(i=>i.field===b);return a?je(a):null},draft:(b,a="")=>{let i=l();return i.initialValues[b]??=a,i.values[b]??a},draftChecked:(b,a="1",i=!1)=>{let c=l(),y=Sa(b,a);return c.initialChecks[y]??=i,c.checks[y]??i},outcome:b=>{let a=I();return a?.command===b?a.value:null},busy:We(),dialog:C(),href:b=>Xe(location.href,{kind:e.kind,id:n.id,tab:b}),state:(b,a="")=>X()[b]??a},p=et(o);return p.length&&!p.some(b=>b.id===n.tab)&&(o.tab=p[0].id),o},z=async(n,s=!1)=>{ye?.abort();let d=new AbortController;ye=d;let l=e.cache===!1?void 0:H.get(n);l&&(se=l.messages??se,m.set(l),r.set("ready"),s=!0),s||r.set("loading"),g.set(null);try{let o=n==="new",p="route"in e.context?await bn(e.context.route(n,o),d.signal):await pa(e.context.fn,e.context.input?e.context.input(n,o):o?{}:{id:n},{signal:d.signal});if(d.signal.aborted)return;if(!p.ok||!p.value){g.set(p.ok?"recordModal.notFound":p.message??"recordModal.loadFailed"),r.set("error");return}se=p.value.messages??se,e.cache!==!1&&La(n,p.value),m.set(p.value),r.set("ready")}catch(o){if(d.signal.aborted||o?.name==="AbortError")return;g.set("recordModal.loadFailed"),r.set("error")}},Se=()=>T?[...T.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]')]:[],j=()=>Se()[0]??null,He=()=>Se().at(-1)??null,ee=0,te=()=>{if(e.fixedHeight||r()!=="ready")return;let n=j()?.querySelector('[data-ui="modal-sheet"][data-height="fixed"]');if(!n)return;if(window.matchMedia("(max-width: 47.9375rem)").matches){n.style.setProperty("height","100dvh","important"),n.style.removeProperty("min-height");return}let s=n.querySelector('[data-ui="tabbed-view"]');if(!s)return;let d=s.querySelector('[data-ui="tab-panel"]'),l=d?.scrollTop??0;n.style.setProperty("height","auto","important"),n.style.setProperty("min-height","0"),s.style.setProperty("height","auto"),ee=Math.max(ee,Math.ceil(n.getBoundingClientRect().height)),s.style.removeProperty("height");let o=getComputedStyle(n).maxHeight;n.style.setProperty("min-height",o==="none"?`${ee}px`:`min(${ee}px, ${o})`),d&&(d.scrollTop=l)},V=(n,s)=>{if(!n)return;let d=s==="dialog"?R():P(),l={values:{...d.values},checks:{...d.checks},initialValues:{...d.initialValues},initialChecks:{...d.initialChecks}};for(let o of n.querySelectorAll("input[name], select[name], textarea[name]"))if(!(o.disabled||o.name===be)){if(o instanceof HTMLInputElement){if(o.type==="file"||o.type==="hidden")continue;if(o.type==="checkbox"||o.type==="radio"){let p=Sa(o.name,o.value);l.initialChecks[p]??=o.defaultChecked,l.checks[p]=o.checked,o.type==="checkbox"?l.values[o.name]=o.checked?o.value:"":o.checked&&(l.values[o.name]=o.value),l.initialValues[o.name]=l.values[o.name]??"";continue}}l.initialValues[o.name]??=o instanceof HTMLSelectElement?[...o.options].find(p=>p.defaultSelected)?.value??o.options[0]?.value??"":o.defaultValue,l.values[o.name]=o.value}s==="dialog"?R.set(l):P.set(l)},Oe=()=>{let n=Se();V(n[0]??null,"record"),n.length>1&&V(n.at(-1)??null,"dialog")},tt=n=>{if(!n)return!0;let s=C()&&n===He()?"dialog":"record";V(n,s);let d=s==="dialog"?R():P(),l=[...n.querySelectorAll('input[type="file"]')].some(o=>!o.disabled&&!!o.files?.length);return!xn(d)&&!l?!0:globalThis.confirm(A("recordModal.unsaved"))},de=n=>{requestAnimationFrame(()=>{let s=Se(),d=s[0],l=s.at(-1);if(!l)return;d&&(d.inert=s.length>1);let o=n?.();if(o?.isConnected&&l.contains(o)){o.focus();return}if(l.contains(document.activeElement))return;let p=l.querySelector('[data-ui="modal-sheet"]');(va(l).find(a=>!a.matches('[data-ui="modal-close"]'))??p)?.focus()})},q=(n,s,d,l)=>{let o=t(),p=o?.id===n,b=s??(p?o.tab:"");p||(ee=0,Fe=document.activeElement instanceof HTMLElement?document.activeElement:null,u.set([]),oe.set(!1),P.set(w()),R.set(w()),X.set({}),I.set(null),C.set(null),O=null,m.set(null),z(n)),t.set({id:n,tab:b});let a=Xe(location.href,{kind:e.kind,id:n,tab:b||null});d==="push"?(history.replaceState({...history.state??{},__ketScroll:[window.scrollX,window.scrollY]},"",location.href),history.pushState({...history.state??{},__ketRecordModal:e.kind},"",a),ve=!0):d==="replace"&&history.replaceState(history.state??{},"",a),T&&!Q&&(Q=vn(T)),de(l)},ce=n=>{ye?.abort(),t.set(null),ee=0,C.set(null),u.set([]),oe.set(!1),P.set(w()),R.set(w()),X.set({}),I.set(null),r.set("idle"),m.set(null),Q?.(),Q=null,n==="history"&&ve?(ve=!1,history.back()):n!=="none"&&(ve=!1,history.replaceState(history.state??{},"",ga(location.href)));let s=Fe;Fe=null,O=null,s?.isConnected&&requestAnimationFrame(()=>s.focus())},at=()=>{if(C()){if(!tt(He()))return;let n=O;O=null,C.set(null),R.set(w()),u.set([]),I.set(null),de(()=>n?.isConnected?n:null);return}tt(j())&&ce("history")},Ma=async(n,s,d)=>{let l=e.commands?.[n],o=t(),p=m()?.data;if(!l||!o||p===void 0||_e())return;let b=new FormData(s,d instanceof HTMLButtonElement?d:null),a=s.closest('[data-ui="modal-layer"][data-client-modal="true"]'),i=C()&&a===He()?"dialog":"record";V(a,i);let c=xe(o,p,i);if(l.confirm){let y=l.confirm(c);if(y&&!globalThis.confirm(y))return}Ye(!0),u.set([]);try{let y={};for(let[f,M]of Object.entries(l.upload??{})){let F=b.get(f);if(!(F instanceof File)||F.size===0)continue;let ae=new FormData;for(let[De,Ha]of Object.entries(M(b,c)))ae.append(De,Ha);ae.append("file",F,F.name);let ue=await fetch("/files",{method:"POST",credentials:"same-origin",body:ae}),K=await ue.json().catch(()=>null);if(!ue.ok||!K?.id){u.set([{field:null,code:"recordModal.uploadFailed",message:typeof K?.message=="string"?K.message:null,params:{}}]);return}y[f]={id:String(K.id),name:typeof K.name=="string"?K.name:null}}let v=(f,M)=>pa(f,M,{idempotencyKey:xa()}),h=l.route?await Ta(l.route,l.input(b,c,y),{idempotencyKey:xa()}):await v(l.fn,l.input(b,c,y));for(let f of h.ok?l.also??[]:[])if(!(f.when&&!f.when(c))&&(h=await v(f.fn,f.input(b,c,y)),!h.ok))break;if(!h.ok){I.set(null),u.set(h.issues.length?h.issues.map(f=>({...f,field:f.field&&l.issueField?l.issueField(f.field,b,c):f.field})):[{field:null,code:h.message??"recordModal.saveFailed",message:h.message,params:{}}]);return}if(l.preview){I.set({command:n,value:h.value}),le.set(le()+1);return}i==="dialog"?R.set(w()):P.set(w()),I.set(Ge(l)==="stay"?{command:n,value:h.value}:null),s.reset();let $=h.value,N=Ge(l)==="open"?l.created?.(h.value)??($&&typeof $=="object"&&$.id!=null?String($.id):null):null;H.delete(o.id),N&&H.delete(N);let G=()=>{document.dispatchEvent(new CustomEvent("ket:records-changed",{detail:{kind:e.kind,ids:[N??o.id]}}))};if(l.navigate){let f=new URL(l.navigate(h.value,c),location.href);if(f.origin!==location.origin)throw new Error("Record navigation must stay same-origin");ce("none"),location.assign(f.href);return}let L=Ge(l);if(L!=="close"&&oe.set(!0),L==="open"){C.set(null),R.set(w()),N?q(N,l.openTab??null,"replace"):ce("history"),G();return}if(G(),L==="close")ce("history");else if(L==="reload"){let f=O;O=null,C.set(null),R.set(w()),await z(o.id),de(()=>f?.isConnected?f:null)}else if(L==="refresh")await z(o.id,!0);else if(L==="stay")le.set(le()+1);else if("tab"in L)O=null,C.set(null),R.set(w()),q(o.id,L.tab,"replace"),await z(o.id);else{let f=L.dialog?null:O;O=L.dialog&&d instanceof HTMLElement?d:null,C.set(L.dialog?{name:L.dialog,params:{}}:null),R.set(w()),await z(o.id,!0),de(()=>f?.isConnected?f:null)}}catch{u.set([{field:null,code:"recordModal.saveFailed",message:null,params:{}}])}finally{Ye(!1)}},nt=n=>{let s=u().filter(o=>!o.field),d=u().filter(o=>o.field&&!T?.querySelector(`[name="${CSS.escape(o.field)}"]`)),l=[...s,...d];return l.length?J({title:n.t("recordModal.errorTitle"),message:l.map(je).join(" \xB7 "),tone:"danger"}):oe()?J({title:n.t("recordModal.savedTitle"),message:n.t("recordModal.saved"),tone:"positive"}):""},Ea=()=>{let n=t();if(!n)return"";if(r()==="error")return he(pe,{children:[J({title:A("recordModal.errorTitle"),message:A(g()??"recordModal.loadFailed"),tone:"danger"}),E({label:A("recordModal.retry"),variant:"secondary",name:"intent",value:"retry"})]});let s=m()?.data;if(r()!=="ready"||s===void 0)return ne({label:A("recordModal.loading")});let d=xe(n,s),l=et(d),o=l.find(i=>i.id===d.tab),p=e.header?.(d)??"",b=nt(d),a=o?o.view(d):e.body?.(d)??"";return l.length?Ke({id:`record-view-${e.kind.replaceAll(".","-")}`,label:e.title(d),items:l.map(i=>({id:i.id,label:i.label(d),href:d.href(i.id),active:i.id===d.tab})),context:p!==""||b!==""?he(pe,{children:[p,b]}):void 0,body:a}):he(pe,{children:[p,b,a]})},Fa=()=>{let n=t(),s=C(),d=m()?.data;if(!n||!s||d===void 0)return"";let l=e.dialogs?.[s.name];if(!l)return"";let o=xe(n,d,"dialog");return Z({id:`record-dialog-${e.kind.replaceAll(".","-")}-${s.name}`,mode:"client",presentation:"dialog",size:l.size??"default",title:l.title(o),actions:l.actions?.(o),closeLabel:A("recordModal.close"),body:he(pe,{children:[nt(o),l.view(o)]})})};return{view:()=>{le();let n=t();if(!n)return ze(e.kind);let s=m()?.data,d=s===void 0?null:xe(n,s);return he(pe,{children:[ze(e.kind),Z({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:d?e.title(d):A("recordModal.loading"),description:d?e.description?.(d)??null:null,status:d?e.status?.(d):void 0,actions:d?e.actions?.(d):void 0,closeLabel:A("recordModal.close"),body:Ea()}),Fa()]})},mount:({root:n,lifetime:s})=>{T=n,document.addEventListener("click",a=>{if(a.defaultPrevented||a.button!==0||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey)return;let i=a.target instanceof Element?a.target:null,c=i?.closest('[data-ui="modal-layer"][data-client-modal="true"]');if(c&&T?.contains(c)){if(i?.closest('[data-ui="modal-close"], [data-ui="modal-backdrop"], [data-record-close]')){a.preventDefault(),at();return}let f=i?.closest("button[data-record-state], a[data-record-state]");if(f){a.preventDefault(),Oe(),X.set({...X(),[f.getAttribute("data-record-state")??""]:f.getAttribute("data-record-value")??""});return}let M=i?.closest(`[${ha}]`);if(M){a.preventDefault(),V(j(),"record");let F=document.activeElement;O=F instanceof HTMLElement&&M.contains(F)?F:M.querySelector(ka),R.set(w());let ae={};for(let[ue,K]of Object.entries(M.dataset))ue.startsWith("recordParam")&&K!==void 0&&(ae[ue.slice(11).replace(/^./u,De=>De.toLowerCase())]=K);u.set([]),I.set(null),C.set({name:M.getAttribute(ha)??"",params:ae}),de();return}if(i?.closest('button[name="intent"][value="retry"]')){a.preventDefault();let F=t();F&&z(F.id);return}}let y=wn(i);if(!y)return;let v=new URL(y,location.href);if(v.origin!==location.origin||v.pathname!==location.pathname)return;let h=re(v);if(!h||h.kind!==e.kind)return;a.preventDefault();let $=t(),N="route"in e.context?e.context.query??[]:[],G=new URL(location.href);if(N.some(f=>G.searchParams.get(f)!==v.searchParams.get(f))){V(j(),"record");for(let f of N){let M=v.searchParams.get(f);M===null?G.searchParams.delete(f):G.searchParams.set(f,M)}history.replaceState(history.state??{},"",G.href),$?.id===h.id&&z($.id)}if($?.id===h.id){if((h.tab??"")===$.tab)return;V(j(),"record"),u.set([]),I.set(null),q(h.id,h.tab??null,"replace",()=>j()?.querySelector('[data-ui="tab"][data-active="true"]')??null);return}q(h.id,h.tab??null,"push")},{signal:s,capture:!0}),document.addEventListener("keydown",a=>{if(a.defaultPrevented||a.key!=="Enter"&&a.key!==" ")return;let i=a.target instanceof Element?a.target:null;if(!i?.matches('[data-row-href][tabindex="0"]'))return;let c=i.getAttribute("data-row-href"),y=c?new URL(c,location.href):null;if(!y||y.origin!==location.origin||y.pathname!==location.pathname)return;let v=re(y);!v||v.kind!==e.kind||(a.preventDefault(),q(v.id,v.tab??null,"push"))},{signal:s,capture:!0}),document.addEventListener("submit",a=>{let i=a.target instanceof HTMLFormElement?a.target:null;if(!i||!T?.contains(i))return;a.preventDefault();let c=a.submitter??null,y=(c instanceof HTMLButtonElement&&c.name===be?c.value:null)??String(new FormData(i).get(be)??"");Ma(y,i,c)},{signal:s}),document.addEventListener("keydown",a=>{if(!t())return;let i=T?.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]'),c=i?.[i.length-1];if(!c)return;if(a.key==="Escape"){a.preventDefault(),at();return}if(a.key!=="Tab")return;let y=va(c);if(!y.length){a.preventDefault(),c.querySelector('[data-ui="modal-sheet"]')?.focus();return}let v=y[0],h=y.at(-1);a.shiftKey&&(document.activeElement===v||!c.contains(document.activeElement))?(a.preventDefault(),h.focus()):!a.shiftKey&&(document.activeElement===h||!c.contains(document.activeElement))&&(a.preventDefault(),v.focus())},{signal:s}),document.addEventListener("change",a=>{let i=a.target instanceof Element?a.target:null;if(!i||!T?.contains(i))return;if(i instanceof HTMLInputElement&&i.type==="checkbox"&&i.form){let y=i.form;if(y.querySelector(`input[type="checkbox"][name^="${Me}"]`)){if(i.name.startsWith(Me)){let v=i.name.slice(Me.length);for(let h of y.querySelectorAll('input[type="checkbox"]'))!h.disabled&&!h.name.startsWith(Me)&&h.name.startsWith(v)&&(h.checked=i.checked)}Oe();return}}let c=i.getAttribute("data-record-state")??(["relation-native","reorder-list-value"].includes(i.getAttribute("data-ui")??"")?i.getAttribute("name"):null);if((i instanceof HTMLSelectElement||i instanceof HTMLInputElement)&&c){Oe(),X.set({...X(),[c]:i.value});return}i instanceof HTMLInputElement&&i.type==="file"&&i.hasAttribute("data-record-submit")&&i.files?.length&&i.form?.requestSubmit()},{signal:s});let d=a=>{let c=(a.target instanceof Element?a.target:null)?.closest("form[data-record-dropzone]")??null;return c&&T?.contains(c)?c:null};document.addEventListener("dragover",a=>{let i=d(a);i&&(a.preventDefault(),i.dataset.drag="1")},{signal:s}),document.addEventListener("dragleave",a=>{let i=d(a);if(!i)return;let c=a.relatedTarget;c instanceof Node&&i.contains(c)||delete i.dataset.drag},{signal:s}),document.addEventListener("drop",a=>{let i=d(a);if(!i)return;a.preventDefault(),delete i.dataset.drag;let c=a.dataTransfer?.files,y=i.querySelector('input[type="file"]');if(!y||!c?.length)return;let v=new DataTransfer;v.items.add(c[0]),y.files=v.files,i.requestSubmit()},{signal:s});let l="ket-island, div[data-ket-island]",o=a=>a instanceof Element&&(a.matches(l)||a.querySelector(l)!==null),p=new MutationObserver(a=>{te();for(let i of a){for(let c of i.removedNodes)o(c)&&document.dispatchEvent(new CustomEvent("ket:islands-detach",{detail:{root:c}}));for(let c of i.addedNodes)o(c)&&c.isConnected&&document.dispatchEvent(new CustomEvent("ket:islands-attach",{detail:{root:c}}))}});p.observe(T,{childList:!0,subtree:!0,characterData:!0}),s.addEventListener("abort",()=>p.disconnect()),window.addEventListener("resize",te,{signal:s}),T.addEventListener("load",te,{capture:!0,signal:s}),T.addEventListener("toggle",te,{capture:!0,signal:s}),document.fonts?.ready.then(()=>{s.aborted||te()}),te(),document.addEventListener("ket:records-changed",a=>{let i=a.detail;if(i?.kind===e.kind)if(!Array.isArray(i.ids)||!i.ids.length)H.clear();else for(let c of i.ids)H.delete(String(c))},{signal:s}),document.addEventListener("ket:popstate",a=>{let i=re(location.href),c=i?.kind===e.kind;!c&&!t()||(a.preventDefault(),c&&i?q(i.id,i.tab??null,"none"):ce("none"))},{signal:s}),document.addEventListener("ket:navigation-complete",()=>{let a=re(location.href);a?.kind===e.kind&&!t()&&q(a.id,a.tab??null,"none")},{signal:s});let b=re(location.href);b?.kind===e.kind&&q(b.id,b.tab??null,"none"),s.addEventListener("abort",()=>{ye?.abort(),Ze.stop(),Q?.(),Q=null,T=null})}}};var Ra={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 Ue}from"/_ket/view/jsx-runtime.js";var Ca=()=>typeof document<"u"&&document.documentElement.lang==="en"?"en":"vi",Rn={kind:"sale.invoicePolicy",size:"default",labels:()=>Ra[Ca()],context:{route:(e,t)=>`/admin/sales/invoice-policy/${t?"new":encodeURIComponent(e)}/context?lang=${Ca()}`,query:["company","branch"]},title:e=>e.creating?e.t("sale_backend.action.savePolicy"):String(e.data.record.name),body:e=>e.data.save?Ue(Ve,{kind:e.kind,command:"save",fields:[...e.creating?[{id:"policy-product",name:"templateId",label:e.t("sale_backend.field.product"),type:"select",required:!0,value:e.draft("templateId"),options:e.data.rows.map(t=>({value:String(t.id),label:String(t.name)})),error:e.fieldError("templateId"),disabled:e.busy}]:[],{id:"policy-value",name:"invoicePolicy",label:e.t("sale_backend.field.invoicePolicy"),type:"radio",required:!0,value:e.draft("invoicePolicy",String(e.data.record.invoicePolicy??"order")),options:["order","delivery"].map(t=>({value:t,label:e.t(`sale_backend.invoicePolicy.${t}`)})),error:e.fieldError("invoicePolicy"),disabled:e.busy}],actions:[Ue(E,{type:"submit",label:e.t("recordModal.save"),variant:"primary",disabled:e.busy})]}):Ue(Ce,{items:[{id:"policy",label:e.t("sale_backend.field.invoicePolicy"),value:e.t(`sale_backend.invoicePolicy.${e.data.record.invoicePolicy??"order"}`)}]}),commands:{save:{fn:"sale.setInvoicePolicy",input:(e,t)=>({templateId:t.creating?String(e.get("templateId")??""):t.id,invoicePolicy:String(e.get("invoicePolicy")??"")}),after:"close"}}},df=wa(Rn);export{Rn as invoicingPolicyDefinition,df as invoicingPolicyModal};
|