@ketvietlab/ketsuite 0.1.25 → 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/cache.d.ts +23 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +71 -0
- package/dist/cache.js.map +1 -0
- package/dist/cli-watch.d.ts +4 -0
- package/dist/cli-watch.d.ts.map +1 -0
- package/dist/cli-watch.js +52 -0
- package/dist/cli-watch.js.map +1 -0
- package/dist/cli.js +45 -17
- package/dist/cli.js.map +1 -1
- package/dist/deployment.d.ts +11 -0
- package/dist/deployment.d.ts.map +1 -1
- package/dist/deployment.js +49 -39
- package/dist/deployment.js.map +1 -1
- package/dist/deployments/commerce.d.ts +4 -0
- package/dist/deployments/commerce.d.ts.map +1 -0
- package/dist/deployments/commerce.js +34 -0
- package/dist/deployments/commerce.js.map +1 -0
- package/dist/deployments/common.d.ts +54 -0
- package/dist/deployments/common.d.ts.map +1 -0
- package/dist/deployments/common.js +112 -0
- package/dist/deployments/common.js.map +1 -0
- package/dist/deployments/hospitality.d.ts +4 -0
- package/dist/deployments/hospitality.d.ts.map +1 -0
- package/dist/deployments/hospitality.js +103 -0
- package/dist/deployments/hospitality.js.map +1 -0
- package/dist/deployments/office.d.ts +4 -0
- package/dist/deployments/office.d.ts.map +1 -0
- package/dist/deployments/office.js +31 -0
- package/dist/deployments/office.js.map +1 -0
- package/dist/development.d.ts +16 -0
- package/dist/development.d.ts.map +1 -1
- package/dist/development.js +31 -0
- package/dist/development.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/account_backend/index.js +364 -877
- 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 +5 -15
- 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 +5 -15
- 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 +5 -15
- 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 +5 -15
- 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 +3 -1
- package/dist/modules/account_backend/screens/opening-balances.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/opening-balances.js +12 -6
- 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 +6 -17
- 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 +5 -15
- package/dist/modules/account_backend/screens/payments-list.js.map +1 -1
- package/dist/modules/account_backend/screens/period-closes.d.ts +3 -1
- package/dist/modules/account_backend/screens/period-closes.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/period-closes.js +40 -36
- 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 +5 -15
- 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 +5 -15
- package/dist/modules/account_backend/screens/vendor-bills-list.js.map +1 -1
- package/dist/modules/account_backend/search-functions.d.ts +4 -0
- package/dist/modules/account_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/account_backend/search-functions.js +5 -0
- package/dist/modules/account_backend/search-functions.js.map +1 -0
- package/dist/modules/account_backend/search.d.ts +774 -0
- package/dist/modules/account_backend/search.d.ts.map +1 -0
- package/dist/modules/account_backend/search.js +312 -0
- package/dist/modules/account_backend/search.js.map +1 -0
- 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.js +2 -2
- package/dist/modules/address_backend/index.js.map +1 -1
- package/dist/modules/address_backend/routes.d.ts.map +1 -1
- package/dist/modules/address_backend/routes.js +32 -7
- package/dist/modules/address_backend/routes.js.map +1 -1
- package/dist/modules/address_backend/screens/catalogs-list.d.ts +3 -1
- package/dist/modules/address_backend/screens/catalogs-list.d.ts.map +1 -1
- package/dist/modules/address_backend/screens/catalogs-list.js +15 -9
- package/dist/modules/address_backend/screens/catalogs-list.js.map +1 -1
- package/dist/modules/address_backend/screens/country-browser.d.ts.map +1 -1
- package/dist/modules/address_backend/screens/country-browser.js +7 -15
- package/dist/modules/address_backend/screens/country-browser.js.map +1 -1
- package/dist/modules/address_backend/search-functions.d.ts +4 -0
- package/dist/modules/address_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/address_backend/search-functions.js +7 -0
- package/dist/modules/address_backend/search-functions.js.map +1 -0
- package/dist/modules/address_backend/search.d.ts +38 -0
- package/dist/modules/address_backend/search.d.ts.map +1 -0
- package/dist/modules/address_backend/search.js +40 -0
- package/dist/modules/address_backend/search.js.map +1 -0
- 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/catalogue.d.ts.map +1 -1
- package/dist/modules/backend/catalogue.js +16 -13
- package/dist/modules/backend/catalogue.js.map +1 -1
- package/dist/modules/backend/collection-search.d.ts +16 -0
- package/dist/modules/backend/collection-search.d.ts.map +1 -0
- package/dist/modules/backend/collection-search.js +43 -0
- package/dist/modules/backend/collection-search.js.map +1 -0
- 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/HANDOFF.md +1 -1
- package/dist/modules/backend/design/auth.css +61 -0
- package/dist/modules/backend/design/brand/logo-dark.png +0 -0
- package/dist/modules/backend/design/brand/logo-light.png +0 -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 +10 -0
- package/dist/modules/backend/design/client/ket-table.d.mts.map +1 -0
- package/dist/modules/backend/design/client/ket-table.mjs +2 -0
- package/dist/modules/backend/design/client/ket-table.mjs.map +7 -0
- package/dist/modules/backend/design/client/lightbox.d.mts +22 -0
- package/dist/modules/backend/design/client/lightbox.d.mts.map +1 -0
- package/dist/modules/backend/design/client/lightbox.mjs +2 -0
- package/dist/modules/backend/design/client/lightbox.mjs.map +7 -0
- package/dist/modules/backend/design/client/relation-select.d.mts +12 -3
- package/dist/modules/backend/design/client/relation-select.d.mts.map +1 -1
- package/dist/modules/backend/design/client/relation-select.mjs +1 -1
- package/dist/modules/backend/design/client/relation-select.mjs.map +4 -4
- package/dist/modules/backend/design/client/search-filter.d.mts +10 -0
- package/dist/modules/backend/design/client/search-filter.d.mts.map +1 -0
- package/dist/modules/backend/design/client/search-filter.mjs +2 -0
- package/dist/modules/backend/design/client/search-filter.mjs.map +7 -0
- package/dist/modules/backend/design/content.css +43 -5
- package/dist/modules/backend/design/forms.css +130 -229
- package/dist/modules/backend/design/foundation.css +0 -51
- package/dist/modules/backend/design/lists.css +79 -7
- package/dist/modules/backend/design/user-workflow.css +0 -20
- package/dist/modules/backend/global-search.d.ts +3 -0
- package/dist/modules/backend/global-search.d.ts.map +1 -0
- package/dist/modules/backend/global-search.js +82 -0
- package/dist/modules/backend/global-search.js.map +1 -0
- package/dist/modules/backend/index.d.ts +27 -0
- package/dist/modules/backend/index.d.ts.map +1 -1
- package/dist/modules/backend/index.js +24 -0
- package/dist/modules/backend/index.js.map +1 -1
- package/dist/modules/backend/islands.d.ts +44 -1
- package/dist/modules/backend/islands.d.ts.map +1 -1
- package/dist/modules/backend/islands.js +25 -1
- package/dist/modules/backend/islands.js.map +1 -1
- package/dist/modules/backend/joints.d.ts.map +1 -1
- package/dist/modules/backend/joints.js +12 -0
- package/dist/modules/backend/joints.js.map +1 -1
- package/dist/modules/backend/ket-table.d.ts +7 -0
- package/dist/modules/backend/ket-table.d.ts.map +1 -0
- package/dist/modules/backend/ket-table.js +2 -0
- package/dist/modules/backend/ket-table.js.map +1 -0
- package/dist/modules/backend/messages.d.ts.map +1 -1
- package/dist/modules/backend/messages.js +144 -0
- package/dist/modules/backend/messages.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/backend/paging.d.ts.map +1 -1
- package/dist/modules/backend/paging.js +2 -1
- package/dist/modules/backend/paging.js.map +1 -1
- package/dist/modules/backend/relation-select.d.ts +2 -2
- package/dist/modules/backend/relation-select.d.ts.map +1 -1
- package/dist/modules/backend/routes.d.ts.map +1 -1
- package/dist/modules/backend/routes.js +2 -0
- package/dist/modules/backend/routes.js.map +1 -1
- package/dist/modules/backend/row-list.d.ts +63 -0
- package/dist/modules/backend/row-list.d.ts.map +1 -0
- package/dist/modules/backend/row-list.js +252 -0
- package/dist/modules/backend/row-list.js.map +1 -0
- package/dist/modules/backend/screen.d.ts +3 -3
- package/dist/modules/backend/screen.d.ts.map +1 -1
- package/dist/modules/backend/screen.js +6 -7
- package/dist/modules/backend/screen.js.map +1 -1
- package/dist/modules/backend/search-filter-state.d.ts +42 -0
- package/dist/modules/backend/search-filter-state.d.ts.map +1 -0
- package/dist/modules/backend/search-filter-state.js +277 -0
- package/dist/modules/backend/search-filter-state.js.map +1 -0
- package/dist/modules/backend/search-filter.d.ts +77 -0
- package/dist/modules/backend/search-filter.d.ts.map +1 -0
- package/dist/modules/backend/search-filter.js +259 -0
- package/dist/modules/backend/search-filter.js.map +1 -0
- package/dist/modules/channel_api/core.d.ts +1 -0
- package/dist/modules/channel_api/core.d.ts.map +1 -1
- package/dist/modules/channel_api/core.js.map +1 -1
- package/dist/modules/channel_api/customer.d.ts.map +1 -1
- package/dist/modules/channel_api/customer.js +4 -5
- package/dist/modules/channel_api/customer.js.map +1 -1
- package/dist/modules/company_backend/index.d.ts.map +1 -1
- package/dist/modules/company_backend/index.js +2 -2
- package/dist/modules/company_backend/index.js.map +1 -1
- package/dist/modules/company_backend/routes.d.ts.map +1 -1
- package/dist/modules/company_backend/routes.js +33 -27
- package/dist/modules/company_backend/routes.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 +3 -3
- package/dist/modules/company_backend/screens/companies-list.d.ts.map +1 -1
- package/dist/modules/company_backend/screens/companies-list.js +18 -18
- 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 -2
- package/dist/modules/company_backend/screens/hierarchy.js.map +1 -1
- package/dist/modules/company_backend/search-functions.d.ts +4 -0
- package/dist/modules/company_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/company_backend/search-functions.js +7 -0
- package/dist/modules/company_backend/search-functions.js.map +1 -0
- package/dist/modules/company_backend/search.d.ts +24 -0
- package/dist/modules/company_backend/search.d.ts.map +1 -0
- package/dist/modules/company_backend/search.js +24 -0
- package/dist/modules/company_backend/search.js.map +1 -0
- package/dist/modules/crm/functions/activities.js +7 -10
- package/dist/modules/crm/functions/activities.js.map +1 -1
- package/dist/modules/crm/functions/case-modal-context.d.ts +3 -0
- package/dist/modules/crm/functions/case-modal-context.d.ts.map +1 -0
- package/dist/modules/crm/functions/case-modal-context.js +156 -0
- package/dist/modules/crm/functions/case-modal-context.js.map +1 -0
- package/dist/modules/crm/functions/cases.d.ts.map +1 -1
- package/dist/modules/crm/functions/cases.js +35 -2
- package/dist/modules/crm/functions/cases.js.map +1 -1
- package/dist/modules/crm/functions/configuration.js +1 -1
- package/dist/modules/crm/functions/configuration.js.map +1 -1
- package/dist/modules/crm/functions/gamification.d.ts.map +1 -1
- package/dist/modules/crm/functions/gamification.js +11 -7
- package/dist/modules/crm/functions/gamification.js.map +1 -1
- package/dist/modules/crm/functions/index.d.ts.map +1 -1
- package/dist/modules/crm/functions/index.js +4 -0
- package/dist/modules/crm/functions/index.js.map +1 -1
- package/dist/modules/crm/functions/reporting.d.ts +3 -0
- package/dist/modules/crm/functions/reporting.d.ts.map +1 -0
- package/dist/modules/crm/functions/reporting.js +140 -0
- package/dist/modules/crm/functions/reporting.js.map +1 -0
- package/dist/modules/crm/functions/shared.d.ts +1 -0
- package/dist/modules/crm/functions/shared.d.ts.map +1 -1
- package/dist/modules/crm/functions/shared.js +17 -9
- package/dist/modules/crm/functions/shared.js.map +1 -1
- package/dist/modules/crm/messages.d.ts +8 -1
- package/dist/modules/crm/messages.d.ts.map +1 -1
- package/dist/modules/crm/messages.js +14 -0
- package/dist/modules/crm/messages.js.map +1 -1
- package/dist/modules/crm/models.d.ts.map +1 -1
- package/dist/modules/crm/models.js +7 -0
- package/dist/modules/crm/models.js.map +1 -1
- package/dist/modules/crm/operations.d.ts +4 -1
- package/dist/modules/crm/operations.d.ts.map +1 -1
- package/dist/modules/crm/operations.js +39 -7
- package/dist/modules/crm/operations.js.map +1 -1
- package/dist/modules/crm/reporting.d.ts +115 -0
- package/dist/modules/crm/reporting.d.ts.map +1 -0
- package/dist/modules/crm/reporting.js +241 -0
- package/dist/modules/crm/reporting.js.map +1 -0
- package/dist/modules/crm_backend/client/crm-case-modal.d.mts +302 -0
- package/dist/modules/crm_backend/client/crm-case-modal.d.mts.map +1 -0
- package/dist/modules/crm_backend/client/crm-case-modal.mjs +2 -0
- package/dist/modules/crm_backend/client/crm-case-modal.mjs.map +7 -0
- package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts +55 -55
- 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 +4 -4
- package/dist/modules/crm_backend/client/crm-kanban-view.mjs +1 -1
- package/dist/modules/crm_backend/client/crm-kanban-view.mjs.map +1 -1
- package/dist/modules/crm_backend/collection-rows.d.ts +6 -0
- package/dist/modules/crm_backend/collection-rows.d.ts.map +1 -0
- package/dist/modules/crm_backend/collection-rows.js +15 -0
- package/dist/modules/crm_backend/collection-rows.js.map +1 -0
- package/dist/modules/crm_backend/index.d.ts.map +1 -1
- package/dist/modules/crm_backend/index.js +2 -15
- package/dist/modules/crm_backend/index.js.map +1 -1
- package/dist/modules/crm_backend/islands.d.ts +1 -0
- package/dist/modules/crm_backend/islands.d.ts.map +1 -1
- package/dist/modules/crm_backend/islands.js +5 -0
- package/dist/modules/crm_backend/islands.js.map +1 -1
- package/dist/modules/crm_backend/messages.d.ts +34 -10
- package/dist/modules/crm_backend/messages.d.ts.map +1 -1
- package/dist/modules/crm_backend/messages.js +34 -10
- package/dist/modules/crm_backend/messages.js.map +1 -1
- package/dist/modules/crm_backend/modal/case-modal-view.d.ts +23 -0
- package/dist/modules/crm_backend/modal/case-modal-view.d.ts.map +1 -0
- package/dist/modules/crm_backend/modal/case-modal-view.js +640 -0
- package/dist/modules/crm_backend/modal/case-modal-view.js.map +1 -0
- package/dist/modules/crm_backend/routes.d.ts.map +1 -1
- package/dist/modules/crm_backend/routes.js +71 -15
- package/dist/modules/crm_backend/routes.js.map +1 -1
- package/dist/modules/crm_backend/screens/activity-planner.d.ts +1 -0
- package/dist/modules/crm_backend/screens/activity-planner.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/activity-planner.js +15 -11
- 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 +1 -0
- package/dist/modules/crm_backend/screens/cases-list.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/cases-list.js +17 -26
- 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 +18 -16
- package/dist/modules/crm_backend/screens/configuration.js.map +1 -1
- package/dist/modules/crm_backend/screens/leaderboard.d.ts +2 -0
- package/dist/modules/crm_backend/screens/leaderboard.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/leaderboard.js +12 -18
- 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/index.js +2 -1
- package/dist/modules/flow_backend/index.js.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/modules/flow_backend/routes.js +182 -127
- 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 +37 -45
- 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 +43 -51
- 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 +68 -82
- 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 +63 -69
- 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 -2
- 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 +41 -64
- package/dist/modules/flow_backend/screens/projects-list.js.map +1 -1
- package/dist/modules/flow_backend/screens/sprints.d.ts +3 -1
- package/dist/modules/flow_backend/screens/sprints.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/sprints.js +77 -73
- package/dist/modules/flow_backend/screens/sprints.js.map +1 -1
- package/dist/modules/flow_backend/search-functions.d.ts +13 -0
- package/dist/modules/flow_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/flow_backend/search-functions.js +40 -0
- package/dist/modules/flow_backend/search-functions.js.map +1 -0
- package/dist/modules/flow_backend/search.d.ts +48 -0
- package/dist/modules/flow_backend/search.d.ts.map +1 -0
- package/dist/modules/flow_backend/search.js +57 -0
- package/dist/modules/flow_backend/search.js.map +1 -0
- 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/index.js +2 -1
- package/dist/modules/hospitality_billing/index.js.map +1 -1
- package/dist/modules/hospitality_billing/menus.js +2 -2
- package/dist/modules/hospitality_billing/menus.js.map +1 -1
- package/dist/modules/hospitality_billing/messages.js +2 -2
- package/dist/modules/hospitality_billing/messages.js.map +1 -1
- package/dist/modules/hospitality_billing/routes.d.ts.map +1 -1
- package/dist/modules/hospitality_billing/routes.js +39 -5
- package/dist/modules/hospitality_billing/routes.js.map +1 -1
- package/dist/modules/hospitality_billing/screens/billing.d.ts.map +1 -1
- package/dist/modules/hospitality_billing/screens/billing.js +21 -17
- package/dist/modules/hospitality_billing/screens/billing.js.map +1 -1
- package/dist/modules/hospitality_billing/screens/charge-rules.d.ts +4 -2
- package/dist/modules/hospitality_billing/screens/charge-rules.d.ts.map +1 -1
- package/dist/modules/hospitality_billing/screens/charge-rules.js +14 -9
- package/dist/modules/hospitality_billing/screens/charge-rules.js.map +1 -1
- package/dist/modules/hospitality_billing/screens/page-frame.d.ts +3 -2
- package/dist/modules/hospitality_billing/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/hospitality_billing/screens/page-frame.js +2 -4
- package/dist/modules/hospitality_billing/screens/page-frame.js.map +1 -1
- package/dist/modules/hospitality_billing/screens/shared.d.ts +4 -4
- package/dist/modules/hospitality_billing/screens/shared.d.ts.map +1 -1
- package/dist/modules/hospitality_billing/screens/shared.js +2 -2
- package/dist/modules/hospitality_billing/screens/shared.js.map +1 -1
- package/dist/modules/hospitality_billing/search-functions.d.ts +4 -0
- package/dist/modules/hospitality_billing/search-functions.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/search-functions.js +16 -0
- package/dist/modules/hospitality_billing/search-functions.js.map +1 -0
- package/dist/modules/hospitality_billing/search.d.ts +66 -0
- package/dist/modules/hospitality_billing/search.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/search.js +92 -0
- package/dist/modules/hospitality_billing/search.js.map +1 -0
- package/dist/modules/hospitality_core/content.d.ts.map +1 -1
- package/dist/modules/hospitality_core/content.js +3 -0
- package/dist/modules/hospitality_core/content.js.map +1 -1
- package/dist/modules/hospitality_core/housekeeping.d.ts.map +1 -1
- package/dist/modules/hospitality_core/housekeeping.js +13 -4
- package/dist/modules/hospitality_core/housekeeping.js.map +1 -1
- package/dist/modules/hospitality_core/index.d.ts.map +1 -1
- package/dist/modules/hospitality_core/index.js +2 -0
- package/dist/modules/hospitality_core/index.js.map +1 -1
- package/dist/modules/hospitality_core/menus.d.ts.map +1 -1
- package/dist/modules/hospitality_core/menus.js +27 -30
- package/dist/modules/hospitality_core/menus.js.map +1 -1
- package/dist/modules/hospitality_core/messages.d.ts.map +1 -1
- package/dist/modules/hospitality_core/messages.js +6 -2
- package/dist/modules/hospitality_core/messages.js.map +1 -1
- package/dist/modules/hospitality_core/routes.d.ts.map +1 -1
- package/dist/modules/hospitality_core/routes.js +135 -47
- package/dist/modules/hospitality_core/routes.js.map +1 -1
- package/dist/modules/hospitality_core/screens/amenities.d.ts +4 -2
- package/dist/modules/hospitality_core/screens/amenities.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/amenities.js +9 -5
- package/dist/modules/hospitality_core/screens/amenities.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/cleaning-tasks.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/cleaning-tasks.js +45 -30
- package/dist/modules/hospitality_core/screens/cleaning-tasks.js.map +1 -1
- package/dist/modules/hospitality_core/screens/folios.d.ts +4 -2
- package/dist/modules/hospitality_core/screens/folios.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/folios.js +10 -4
- package/dist/modules/hospitality_core/screens/folios.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 +4 -3
- package/dist/modules/hospitality_core/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/page-frame.js +4 -7
- package/dist/modules/hospitality_core/screens/page-frame.js.map +1 -1
- package/dist/modules/hospitality_core/screens/policies.d.ts +4 -2
- package/dist/modules/hospitality_core/screens/policies.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/policies.js +9 -5
- package/dist/modules/hospitality_core/screens/policies.js.map +1 -1
- package/dist/modules/hospitality_core/screens/properties.d.ts +4 -2
- package/dist/modules/hospitality_core/screens/properties.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/properties.js +49 -42
- package/dist/modules/hospitality_core/screens/properties.js.map +1 -1
- package/dist/modules/hospitality_core/screens/rate-plans.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/rate-plans.js +19 -15
- package/dist/modules/hospitality_core/screens/rate-plans.js.map +1 -1
- package/dist/modules/hospitality_core/screens/reservations.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/reservations.js +26 -19
- package/dist/modules/hospitality_core/screens/reservations.js.map +1 -1
- package/dist/modules/hospitality_core/screens/room-types.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/room-types.js +23 -19
- package/dist/modules/hospitality_core/screens/room-types.js.map +1 -1
- package/dist/modules/hospitality_core/screens/rooms.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/rooms.js +26 -19
- package/dist/modules/hospitality_core/screens/rooms.js.map +1 -1
- package/dist/modules/hospitality_core/screens/shared.d.ts +4 -4
- package/dist/modules/hospitality_core/screens/shared.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/shared.js +2 -2
- package/dist/modules/hospitality_core/screens/shared.js.map +1 -1
- package/dist/modules/hospitality_core/screens/stays.d.ts +4 -2
- package/dist/modules/hospitality_core/screens/stays.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/stays.js +10 -4
- package/dist/modules/hospitality_core/screens/stays.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/hospitality_core/search-functions.d.ts +10 -0
- package/dist/modules/hospitality_core/search-functions.d.ts.map +1 -0
- package/dist/modules/hospitality_core/search-functions.js +17 -0
- package/dist/modules/hospitality_core/search-functions.js.map +1 -0
- package/dist/modules/hospitality_core/search.d.ts +218 -0
- package/dist/modules/hospitality_core/search.d.ts.map +1 -0
- package/dist/modules/hospitality_core/search.js +201 -0
- package/dist/modules/hospitality_core/search.js.map +1 -0
- package/dist/modules/hr_backend/index.d.ts.map +1 -1
- package/dist/modules/hr_backend/index.js +2 -0
- package/dist/modules/hr_backend/index.js.map +1 -1
- package/dist/modules/hr_backend/routes.d.ts.map +1 -1
- package/dist/modules/hr_backend/routes.js +55 -71
- package/dist/modules/hr_backend/routes.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/employees-list.d.ts +3 -1
- package/dist/modules/hr_backend/screens/employees-list.d.ts.map +1 -1
- package/dist/modules/hr_backend/screens/employees-list.js +14 -12
- package/dist/modules/hr_backend/screens/employees-list.js.map +1 -1
- package/dist/modules/hr_backend/screens/leaves-list.d.ts +3 -1
- package/dist/modules/hr_backend/screens/leaves-list.d.ts.map +1 -1
- package/dist/modules/hr_backend/screens/leaves-list.js +11 -10
- package/dist/modules/hr_backend/screens/leaves-list.js.map +1 -1
- package/dist/modules/hr_backend/search-functions.d.ts +4 -0
- package/dist/modules/hr_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/hr_backend/search-functions.js +8 -0
- package/dist/modules/hr_backend/search-functions.js.map +1 -0
- package/dist/modules/hr_backend/search.d.ts +73 -0
- package/dist/modules/hr_backend/search.d.ts.map +1 -0
- package/dist/modules/hr_backend/search.js +67 -0
- package/dist/modules/hr_backend/search.js.map +1 -0
- package/dist/modules/livedoc/islands.d.ts +10 -0
- package/dist/modules/livedoc/islands.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/index.js +176 -215
- package/dist/modules/loyalty_backend/index.js.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 +321 -326
- package/dist/modules/loyalty_backend/screens/index.js.map +1 -1
- package/dist/modules/loyalty_backend/screens/page-frame.d.ts +7 -5
- package/dist/modules/loyalty_backend/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/screens/page-frame.js +3 -3
- package/dist/modules/loyalty_backend/screens/page-frame.js.map +1 -1
- package/dist/modules/loyalty_backend/search-functions.d.ts +4 -0
- package/dist/modules/loyalty_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/search-functions.js +11 -0
- package/dist/modules/loyalty_backend/search-functions.js.map +1 -0
- package/dist/modules/loyalty_backend/search.d.ts +33 -0
- package/dist/modules/loyalty_backend/search.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/search.js +85 -0
- package/dist/modules/loyalty_backend/search.js.map +1 -0
- 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/index.d.ts.map +1 -1
- package/dist/modules/manufacturing_backend/index.js +14 -0
- package/dist/modules/manufacturing_backend/index.js.map +1 -1
- package/dist/modules/manufacturing_backend/routes.d.ts.map +1 -1
- package/dist/modules/manufacturing_backend/routes.js +74 -20
- package/dist/modules/manufacturing_backend/routes.js.map +1 -1
- package/dist/modules/manufacturing_backend/screens/boms-list.d.ts +3 -1
- package/dist/modules/manufacturing_backend/screens/boms-list.d.ts.map +1 -1
- package/dist/modules/manufacturing_backend/screens/boms-list.js +12 -11
- package/dist/modules/manufacturing_backend/screens/boms-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/manufacturing_backend/screens/orders-list.d.ts +3 -1
- package/dist/modules/manufacturing_backend/screens/orders-list.d.ts.map +1 -1
- package/dist/modules/manufacturing_backend/screens/orders-list.js +13 -12
- package/dist/modules/manufacturing_backend/screens/orders-list.js.map +1 -1
- package/dist/modules/manufacturing_backend/screens/work-centers-list.d.ts +3 -1
- package/dist/modules/manufacturing_backend/screens/work-centers-list.d.ts.map +1 -1
- package/dist/modules/manufacturing_backend/screens/work-centers-list.js +13 -12
- package/dist/modules/manufacturing_backend/screens/work-centers-list.js.map +1 -1
- package/dist/modules/manufacturing_backend/search-functions.d.ts +4 -0
- package/dist/modules/manufacturing_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/search-functions.js +9 -0
- package/dist/modules/manufacturing_backend/search-functions.js.map +1 -0
- package/dist/modules/manufacturing_backend/search.d.ts +99 -0
- package/dist/modules/manufacturing_backend/search.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/search.js +75 -0
- package/dist/modules/manufacturing_backend/search.js.map +1 -0
- package/dist/modules/oauth_backend/index.d.ts.map +1 -1
- package/dist/modules/oauth_backend/index.js +2 -0
- package/dist/modules/oauth_backend/index.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/routes.d.ts.map +1 -1
- package/dist/modules/oauth_backend/routes.js +33 -2
- package/dist/modules/oauth_backend/routes.js.map +1 -1
- package/dist/modules/oauth_backend/screens/index.d.ts +7 -3
- package/dist/modules/oauth_backend/screens/index.d.ts.map +1 -1
- package/dist/modules/oauth_backend/screens/index.js +114 -104
- package/dist/modules/oauth_backend/screens/index.js.map +1 -1
- package/dist/modules/oauth_backend/search-functions.d.ts +4 -0
- package/dist/modules/oauth_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/oauth_backend/search-functions.js +8 -0
- package/dist/modules/oauth_backend/search-functions.js.map +1 -0
- package/dist/modules/oauth_backend/search.d.ts +68 -0
- package/dist/modules/oauth_backend/search.d.ts.map +1 -0
- package/dist/modules/oauth_backend/search.js +69 -0
- package/dist/modules/oauth_backend/search.js.map +1 -0
- package/dist/modules/partner/functions.d.ts.map +1 -1
- package/dist/modules/partner/functions.js +121 -23
- package/dist/modules/partner/functions.js.map +1 -1
- package/dist/modules/partner_backend/functions.d.ts +13 -0
- package/dist/modules/partner_backend/functions.d.ts.map +1 -0
- package/dist/modules/partner_backend/functions.js +56 -0
- package/dist/modules/partner_backend/functions.js.map +1 -0
- package/dist/modules/partner_backend/index.d.ts.map +1 -1
- package/dist/modules/partner_backend/index.js +28 -6
- package/dist/modules/partner_backend/index.js.map +1 -1
- package/dist/modules/partner_backend/routes.d.ts.map +1 -1
- package/dist/modules/partner_backend/routes.js +269 -86
- package/dist/modules/partner_backend/routes.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/index.d.ts +1 -1
- package/dist/modules/partner_backend/screens/index.d.ts.map +1 -1
- package/dist/modules/partner_backend/screens/list.d.ts +3 -4
- package/dist/modules/partner_backend/screens/list.d.ts.map +1 -1
- package/dist/modules/partner_backend/screens/list.js +13 -92
- 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/partner_backend/screens/types.d.ts +0 -11
- package/dist/modules/partner_backend/screens/types.d.ts.map +1 -1
- package/dist/modules/pos_backend/index.js +34 -9
- package/dist/modules/pos_backend/index.js.map +1 -1
- package/dist/modules/pos_backend/screens.d.ts +4 -2
- package/dist/modules/pos_backend/screens.d.ts.map +1 -1
- package/dist/modules/pos_backend/screens.js +105 -96
- package/dist/modules/pos_backend/screens.js.map +1 -1
- package/dist/modules/pos_backend/search-functions.d.ts +4 -0
- package/dist/modules/pos_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/pos_backend/search-functions.js +7 -0
- package/dist/modules/pos_backend/search-functions.js.map +1 -0
- package/dist/modules/pos_backend/search.d.ts +41 -0
- package/dist/modules/pos_backend/search.d.ts.map +1 -0
- package/dist/modules/pos_backend/search.js +33 -0
- package/dist/modules/pos_backend/search.js.map +1 -0
- package/dist/modules/pricing_backend/index.js +31 -4
- 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 +3 -1
- package/dist/modules/pricing_backend/screens/pricelists-list.d.ts.map +1 -1
- package/dist/modules/pricing_backend/screens/pricelists-list.js +14 -12
- package/dist/modules/pricing_backend/screens/pricelists-list.js.map +1 -1
- package/dist/modules/pricing_backend/search-functions.d.ts +4 -0
- package/dist/modules/pricing_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/pricing_backend/search-functions.js +11 -0
- package/dist/modules/pricing_backend/search-functions.js.map +1 -0
- package/dist/modules/pricing_backend/search.d.ts +41 -0
- package/dist/modules/pricing_backend/search.d.ts.map +1 -0
- package/dist/modules/pricing_backend/search.js +34 -0
- package/dist/modules/pricing_backend/search.js.map +1 -0
- package/dist/modules/product/attribute-draft.d.ts +3 -0
- package/dist/modules/product/attribute-draft.d.ts.map +1 -0
- package/dist/modules/product/attribute-draft.js +126 -0
- package/dist/modules/product/attribute-draft.js.map +1 -0
- package/dist/modules/product/attribute-modal-context.d.ts +4 -0
- package/dist/modules/product/attribute-modal-context.d.ts.map +1 -0
- package/dist/modules/product/attribute-modal-context.js +57 -0
- package/dist/modules/product/attribute-modal-context.js.map +1 -0
- package/dist/modules/product/attribute-modal-labels.d.ts +3 -0
- package/dist/modules/product/attribute-modal-labels.d.ts.map +1 -0
- package/dist/modules/product/attribute-modal-labels.js +30 -0
- package/dist/modules/product/attribute-modal-labels.js.map +1 -0
- package/dist/modules/product/functions.d.ts.map +1 -1
- package/dist/modules/product/functions.js +7 -1
- package/dist/modules/product/functions.js.map +1 -1
- package/dist/modules/product/messages.d.ts.map +1 -1
- package/dist/modules/product/messages.js +24 -0
- package/dist/modules/product/messages.js.map +1 -1
- package/dist/modules/product/models.d.ts.map +1 -1
- package/dist/modules/product/models.js +14 -2
- package/dist/modules/product/models.js.map +1 -1
- package/dist/modules/product/product-modal-context.d.ts.map +1 -1
- package/dist/modules/product/product-modal-context.js +20 -30
- package/dist/modules/product/product-modal-context.js.map +1 -1
- package/dist/modules/product/record-images.d.ts +12 -0
- package/dist/modules/product/record-images.d.ts.map +1 -0
- package/dist/modules/product/record-images.js +37 -0
- package/dist/modules/product/record-images.js.map +1 -0
- package/dist/modules/product/search.d.ts +3 -0
- package/dist/modules/product/search.d.ts.map +1 -1
- package/dist/modules/product/search.js +4 -0
- package/dist/modules/product/search.js.map +1 -1
- package/dist/modules/product/variant-setup.d.ts +46 -0
- package/dist/modules/product/variant-setup.d.ts.map +1 -0
- package/dist/modules/product/variant-setup.js +444 -0
- package/dist/modules/product/variant-setup.js.map +1 -0
- package/dist/modules/product_backend/attribute-search-state.d.ts +22 -0
- package/dist/modules/product_backend/attribute-search-state.d.ts.map +1 -0
- package/dist/modules/product_backend/attribute-search-state.js +62 -0
- package/dist/modules/product_backend/attribute-search-state.js.map +1 -0
- package/dist/modules/product_backend/attributes-search.d.ts +10 -0
- package/dist/modules/product_backend/attributes-search.d.ts.map +1 -0
- package/dist/modules/product_backend/attributes-search.js +67 -0
- package/dist/modules/product_backend/attributes-search.js.map +1 -0
- package/dist/modules/product_backend/client/attribute-modal.d.mts +62 -0
- package/dist/modules/product_backend/client/attribute-modal.d.mts.map +1 -0
- package/dist/modules/product_backend/client/attribute-modal.mjs +2 -0
- package/dist/modules/product_backend/client/attribute-modal.mjs.map +7 -0
- package/dist/modules/product_backend/client/product-modal.d.mts +45 -44
- 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 +4 -4
- package/dist/modules/product_backend/client/product.css +262 -0
- package/dist/modules/product_backend/client/variant-editor.d.mts +16 -0
- package/dist/modules/product_backend/client/variant-editor.d.mts.map +1 -0
- package/dist/modules/product_backend/client/variant-editor.mjs +2 -0
- package/dist/modules/product_backend/client/variant-editor.mjs.map +7 -0
- package/dist/modules/product_backend/functions.d.ts.map +1 -0
- package/dist/modules/product_backend/functions.js +29 -0
- package/dist/modules/product_backend/functions.js.map +1 -0
- package/dist/modules/product_backend/index.d.ts.map +1 -1
- package/dist/modules/product_backend/index.js +227 -5
- package/dist/modules/product_backend/index.js.map +1 -1
- package/dist/modules/product_backend/islands.d.ts +20 -0
- package/dist/modules/product_backend/islands.d.ts.map +1 -1
- package/dist/modules/product_backend/islands.js +25 -0
- package/dist/modules/product_backend/islands.js.map +1 -1
- package/dist/modules/product_backend/menus.d.ts.map +1 -1
- package/dist/modules/product_backend/menus.js +4 -5
- package/dist/modules/product_backend/menus.js.map +1 -1
- package/dist/modules/product_backend/modal/attribute-modal-view.d.ts +25 -0
- package/dist/modules/product_backend/modal/attribute-modal-view.d.ts.map +1 -0
- package/dist/modules/product_backend/modal/attribute-modal-view.js +180 -0
- package/dist/modules/product_backend/modal/attribute-modal-view.js.map +1 -0
- package/dist/modules/product_backend/modal/product-modal-view.d.ts +25 -6
- package/dist/modules/product_backend/modal/product-modal-view.d.ts.map +1 -1
- package/dist/modules/product_backend/modal/product-modal-view.js +334 -251
- package/dist/modules/product_backend/modal/product-modal-view.js.map +1 -1
- package/dist/modules/product_backend/routes.d.ts.map +1 -1
- package/dist/modules/product_backend/routes.js +159 -200
- package/dist/modules/product_backend/routes.js.map +1 -1
- package/dist/modules/product_backend/screens/attributes.d.ts +18 -4
- package/dist/modules/product_backend/screens/attributes.d.ts.map +1 -1
- package/dist/modules/product_backend/screens/attributes.js +71 -63
- package/dist/modules/product_backend/screens/attributes.js.map +1 -1
- 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/list.d.ts +13 -7
- package/dist/modules/product_backend/screens/list.d.ts.map +1 -1
- package/dist/modules/product_backend/screens/list.js +38 -57
- package/dist/modules/product_backend/screens/list.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/product_media/functions.d.ts.map +1 -1
- package/dist/modules/product_media/functions.js +2 -0
- package/dist/modules/product_media/functions.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 +192 -215
- 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/order-list-shared.js +2 -2
- package/dist/modules/purchase_backend/screens/order-list-shared.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/purchase-orders-list.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/purchase-orders-list.js +11 -13
- package/dist/modules/purchase_backend/screens/purchase-orders-list.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 +10 -15
- 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 +11 -21
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js.map +1 -1
- package/dist/modules/purchase_backend/search-functions.d.ts +4 -0
- package/dist/modules/purchase_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/purchase_backend/search-functions.js +9 -0
- package/dist/modules/purchase_backend/search-functions.js.map +1 -0
- package/dist/modules/purchase_backend/search.d.ts +128 -0
- package/dist/modules/purchase_backend/search.d.ts.map +1 -0
- package/dist/modules/purchase_backend/search.js +106 -0
- package/dist/modules/purchase_backend/search.js.map +1 -0
- 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 +160 -48
- 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/order-collection.d.ts +7 -0
- package/dist/modules/sale_backend/order-collection.d.ts.map +1 -0
- package/dist/modules/sale_backend/order-collection.js +27 -0
- package/dist/modules/sale_backend/order-collection.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 +10 -14
- 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 +24 -16
- 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 +12 -23
- 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 +11 -20
- package/dist/modules/sale_backend/screens/sales-orders-list.js.map +1 -1
- package/dist/modules/sale_backend/search-functions.d.ts +4 -0
- package/dist/modules/sale_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/sale_backend/search-functions.js +9 -0
- package/dist/modules/sale_backend/search-functions.js.map +1 -0
- package/dist/modules/sale_backend/search.d.ts +146 -0
- package/dist/modules/sale_backend/search.d.ts.map +1 -0
- package/dist/modules/sale_backend/search.js +112 -0
- package/dist/modules/sale_backend/search.js.map +1 -0
- 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 +2 -0
- package/dist/modules/stock_backend/functions.d.ts.map +1 -0
- package/dist/modules/stock_backend/functions.js +2 -0
- package/dist/modules/stock_backend/functions.js.map +1 -0
- package/dist/modules/stock_backend/index.js +85 -10
- 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 +274 -82
- 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 +11 -22
- 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 +11 -13
- 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 +11 -22
- 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 +12 -23
- 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 +12 -23
- 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 +12 -23
- 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 +11 -22
- package/dist/modules/stock_backend/screens/warehouses-list.js.map +1 -1
- package/dist/modules/stock_backend/search.d.ts +286 -0
- package/dist/modules/stock_backend/search.d.ts.map +1 -0
- package/dist/modules/stock_backend/search.js +371 -0
- package/dist/modules/stock_backend/search.js.map +1 -0
- package/dist/modules/storage/functions.d.ts.map +1 -1
- package/dist/modules/storage/functions.js +28 -5
- package/dist/modules/storage/functions.js.map +1 -1
- package/dist/modules/storage/jobs.d.ts.map +1 -1
- package/dist/modules/storage/jobs.js +120 -2
- package/dist/modules/storage/jobs.js.map +1 -1
- package/dist/modules/storage/models.d.ts.map +1 -1
- package/dist/modules/storage/models.js +21 -0
- package/dist/modules/storage/models.js.map +1 -1
- package/dist/modules/storage/policy.d.ts +27 -0
- package/dist/modules/storage/policy.d.ts.map +1 -1
- package/dist/modules/storage/policy.js +14 -0
- package/dist/modules/storage/policy.js.map +1 -1
- package/dist/modules/storage/routes.d.ts +1 -0
- package/dist/modules/storage/routes.d.ts.map +1 -1
- package/dist/modules/storage/routes.js +36 -10
- package/dist/modules/storage/routes.js.map +1 -1
- package/dist/modules/user/access-denial.d.ts +3 -0
- package/dist/modules/user/access-denial.d.ts.map +1 -0
- package/dist/modules/user/access-denial.js +34 -0
- package/dist/modules/user/access-denial.js.map +1 -0
- package/dist/modules/user/access-policy.d.ts +16 -0
- package/dist/modules/user/access-policy.d.ts.map +1 -0
- package/dist/modules/user/access-policy.js +455 -0
- package/dist/modules/user/access-policy.js.map +1 -0
- package/dist/modules/user/access-surfaces.d.ts +26 -0
- package/dist/modules/user/access-surfaces.d.ts.map +1 -0
- package/dist/modules/user/access-surfaces.js +76 -0
- package/dist/modules/user/access-surfaces.js.map +1 -0
- package/dist/modules/user/authorization.d.ts +12 -1
- package/dist/modules/user/authorization.d.ts.map +1 -1
- package/dist/modules/user/authorization.js +342 -36
- package/dist/modules/user/authorization.js.map +1 -1
- package/dist/modules/user/functions.d.ts.map +1 -1
- package/dist/modules/user/functions.js +26 -3
- package/dist/modules/user/functions.js.map +1 -1
- package/dist/modules/user/index.d.ts.map +1 -1
- package/dist/modules/user/index.js +13 -1
- package/dist/modules/user/index.js.map +1 -1
- package/dist/modules/user/modal-labels.d.ts +3 -0
- package/dist/modules/user/modal-labels.d.ts.map +1 -0
- package/dist/modules/user/modal-labels.js +30 -0
- package/dist/modules/user/modal-labels.js.map +1 -0
- package/dist/modules/user/modal-messages.d.ts +4 -0
- package/dist/modules/user/modal-messages.d.ts.map +1 -0
- package/dist/modules/user/modal-messages.js +15 -0
- package/dist/modules/user/modal-messages.js.map +1 -0
- package/dist/modules/user/models.d.ts.map +1 -1
- package/dist/modules/user/models.js +48 -0
- package/dist/modules/user/models.js.map +1 -1
- package/dist/modules/user/permission-areas.d.ts +20 -0
- package/dist/modules/user/permission-areas.d.ts.map +1 -0
- package/dist/modules/user/permission-areas.js +89 -0
- package/dist/modules/user/permission-areas.js.map +1 -0
- package/dist/modules/user/policy-jobs.d.ts +4 -0
- package/dist/modules/user/policy-jobs.d.ts.map +1 -0
- package/dist/modules/user/policy-jobs.js +15 -0
- package/dist/modules/user/policy-jobs.js.map +1 -0
- package/dist/modules/user/role-modal-context.d.ts +3 -0
- package/dist/modules/user/role-modal-context.d.ts.map +1 -0
- package/dist/modules/user/role-modal-context.js +264 -0
- package/dist/modules/user/role-modal-context.js.map +1 -0
- package/dist/modules/user/roles.d.ts.map +1 -1
- package/dist/modules/user/roles.js +2 -0
- package/dist/modules/user/roles.js.map +1 -1
- package/dist/modules/user/user-modal-context.d.ts +5 -1
- package/dist/modules/user/user-modal-context.d.ts.map +1 -1
- package/dist/modules/user/user-modal-context.js +227 -31
- package/dist/modules/user/user-modal-context.js.map +1 -1
- package/dist/modules/user_backend/access-options.d.ts +25 -0
- package/dist/modules/user_backend/access-options.d.ts.map +1 -0
- package/dist/modules/user_backend/access-options.js +38 -0
- package/dist/modules/user_backend/access-options.js.map +1 -0
- package/dist/modules/user_backend/access-policy-routes.d.ts +3 -0
- package/dist/modules/user_backend/access-policy-routes.d.ts.map +1 -0
- package/dist/modules/user_backend/access-policy-routes.js +76 -0
- package/dist/modules/user_backend/access-policy-routes.js.map +1 -0
- package/dist/modules/user_backend/client/access-policy-modal.d.mts +123 -0
- package/dist/modules/user_backend/client/access-policy-modal.d.mts.map +1 -0
- package/dist/modules/user_backend/client/access-policy-modal.mjs +2 -0
- package/dist/modules/user_backend/client/access-policy-modal.mjs.map +7 -0
- package/dist/modules/user_backend/client/role-modal.d.mts +103 -0
- package/dist/modules/user_backend/client/role-modal.d.mts.map +1 -0
- package/dist/modules/user_backend/client/role-modal.mjs +2 -0
- package/dist/modules/user_backend/client/role-modal.mjs.map +7 -0
- package/dist/modules/user_backend/client/user-modal.d.mts +160 -7
- 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 +4 -4
- package/dist/modules/user_backend/index.d.ts +2 -2
- package/dist/modules/user_backend/index.d.ts.map +1 -1
- package/dist/modules/user_backend/index.js +4 -2
- package/dist/modules/user_backend/index.js.map +1 -1
- package/dist/modules/user_backend/islands.d.ts +14 -1
- package/dist/modules/user_backend/islands.d.ts.map +1 -1
- package/dist/modules/user_backend/islands.js +11 -3
- package/dist/modules/user_backend/islands.js.map +1 -1
- package/dist/modules/user_backend/managed-role-routes.d.ts +3 -0
- package/dist/modules/user_backend/managed-role-routes.d.ts.map +1 -0
- package/dist/modules/user_backend/managed-role-routes.js +44 -0
- package/dist/modules/user_backend/managed-role-routes.js.map +1 -0
- package/dist/modules/user_backend/menus.d.ts.map +1 -1
- package/dist/modules/user_backend/menus.js +9 -7
- package/dist/modules/user_backend/menus.js.map +1 -1
- package/dist/modules/user_backend/messages.d.ts +508 -6
- package/dist/modules/user_backend/messages.d.ts.map +1 -1
- package/dist/modules/user_backend/messages.js +546 -44
- package/dist/modules/user_backend/messages.js.map +1 -1
- package/dist/modules/user_backend/modal/access-policy-modal-view.d.ts +43 -0
- package/dist/modules/user_backend/modal/access-policy-modal-view.d.ts.map +1 -0
- package/dist/modules/user_backend/modal/access-policy-modal-view.js +384 -0
- package/dist/modules/user_backend/modal/access-policy-modal-view.js.map +1 -0
- package/dist/modules/user_backend/modal/access-surfaces.d.ts +51 -0
- package/dist/modules/user_backend/modal/access-surfaces.d.ts.map +1 -0
- package/dist/modules/user_backend/modal/access-surfaces.js +138 -0
- package/dist/modules/user_backend/modal/access-surfaces.js.map +1 -0
- package/dist/modules/user_backend/modal/role-modal-view.d.ts +48 -0
- package/dist/modules/user_backend/modal/role-modal-view.d.ts.map +1 -0
- package/dist/modules/user_backend/modal/role-modal-view.js +488 -0
- package/dist/modules/user_backend/modal/role-modal-view.js.map +1 -0
- package/dist/modules/user_backend/modal/user-modal-view.d.ts +45 -0
- package/dist/modules/user_backend/modal/user-modal-view.d.ts.map +1 -1
- package/dist/modules/user_backend/modal/user-modal-view.js +1317 -71
- package/dist/modules/user_backend/modal/user-modal-view.js.map +1 -1
- package/dist/modules/user_backend/routes.d.ts.map +1 -1
- package/dist/modules/user_backend/routes.js +109 -571
- package/dist/modules/user_backend/routes.js.map +1 -1
- package/dist/modules/user_backend/screens/access-policies-list.d.ts +31 -0
- package/dist/modules/user_backend/screens/access-policies-list.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/access-policies-list.js +54 -0
- package/dist/modules/user_backend/screens/access-policies-list.js.map +1 -0
- package/dist/modules/user_backend/screens/index.d.ts +1 -3
- package/dist/modules/user_backend/screens/index.d.ts.map +1 -1
- package/dist/modules/user_backend/screens/index.js +2 -3
- package/dist/modules/user_backend/screens/index.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 +9 -3
- package/dist/modules/user_backend/screens/roles-list.d.ts.map +1 -1
- package/dist/modules/user_backend/screens/roles-list.js +15 -23
- package/dist/modules/user_backend/screens/roles-list.js.map +1 -1
- package/dist/modules/user_backend/screens/users-list.d.ts +7 -5
- package/dist/modules/user_backend/screens/users-list.d.ts.map +1 -1
- package/dist/modules/user_backend/screens/users-list.js +29 -21
- package/dist/modules/user_backend/screens/users-list.js.map +1 -1
- package/dist/modules/user_backend/search-functions.d.ts +4 -0
- package/dist/modules/user_backend/search-functions.d.ts.map +1 -0
- package/dist/modules/user_backend/search-functions.js +13 -0
- package/dist/modules/user_backend/search-functions.js.map +1 -0
- package/dist/modules/user_backend/search.d.ts +128 -0
- package/dist/modules/user_backend/search.d.ts.map +1 -0
- package/dist/modules/user_backend/search.js +131 -0
- package/dist/modules/user_backend/search.js.map +1 -0
- package/dist/modules/website/cms.d.ts.map +1 -1
- package/dist/modules/website/cms.js +17 -7
- package/dist/modules/website/cms.js.map +1 -1
- package/dist/modules/website/customer.d.ts +61 -1
- package/dist/modules/website/customer.d.ts.map +1 -1
- package/dist/modules/website/customer.js +197 -15
- package/dist/modules/website/customer.js.map +1 -1
- package/dist/modules/website/index.d.ts.map +1 -1
- package/dist/modules/website/index.js +16 -2
- package/dist/modules/website/index.js.map +1 -1
- package/dist/modules/website/models.d.ts.map +1 -1
- package/dist/modules/website/models.js +15 -0
- package/dist/modules/website/models.js.map +1 -1
- package/dist/modules/website/publication.d.ts.map +1 -1
- package/dist/modules/website/publication.js +11 -5
- package/dist/modules/website/publication.js.map +1 -1
- package/dist/modules/website_backend/collection.d.ts +12 -0
- package/dist/modules/website_backend/collection.d.ts.map +1 -0
- package/dist/modules/website_backend/collection.js +17 -0
- package/dist/modules/website_backend/collection.js.map +1 -0
- package/dist/modules/website_backend/functions.d.ts +10 -0
- package/dist/modules/website_backend/functions.d.ts.map +1 -0
- package/dist/modules/website_backend/functions.js +37 -0
- package/dist/modules/website_backend/functions.js.map +1 -0
- package/dist/modules/website_backend/index.js +2 -0
- package/dist/modules/website_backend/index.js.map +1 -1
- package/dist/modules/website_backend/routes.d.ts.map +1 -1
- package/dist/modules/website_backend/routes.js +124 -29
- package/dist/modules/website_backend/routes.js.map +1 -1
- package/dist/modules/website_backend/screens/index.d.ts +4 -8
- package/dist/modules/website_backend/screens/index.d.ts.map +1 -1
- package/dist/modules/website_backend/screens/index.js +685 -666
- package/dist/modules/website_backend/screens/index.js.map +1 -1
- package/dist/modules/website_backend/screens/page-frame.d.ts +7 -5
- package/dist/modules/website_backend/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/website_backend/screens/page-frame.js +3 -3
- package/dist/modules/website_backend/screens/page-frame.js.map +1 -1
- package/dist/modules/website_backend/search.d.ts +125 -0
- package/dist/modules/website_backend/search.d.ts.map +1 -0
- package/dist/modules/website_backend/search.js +135 -0
- package/dist/modules/website_backend/search.js.map +1 -0
- package/dist/permission-catalogue.d.ts.map +1 -1
- package/dist/permission-catalogue.js +180 -24
- package/dist/permission-catalogue.js.map +1 -1
- package/dist/phone.d.ts +32 -0
- package/dist/phone.d.ts.map +1 -0
- package/dist/phone.js +101 -0
- package/dist/phone.js.map +1 -0
- package/dist/role-templates.d.ts +79 -0
- package/dist/role-templates.d.ts.map +1 -0
- package/dist/role-templates.js +212 -0
- package/dist/role-templates.js.map +1 -0
- package/dist/scaffold/index.d.ts +1 -1
- package/dist/scaffold/index.d.ts.map +1 -1
- package/dist/scaffold/index.js +10 -5
- package/dist/scaffold/index.js.map +1 -1
- package/dist/scaffold/templates/README.md.tmpl +2 -1
- package/dist/scaffold/templates/ket.workspace.mjs.tmpl +4 -1
- package/dist/scaffold/templates/package.json.tmpl +2 -2
- package/dist/ui/actions.d.ts +2 -0
- package/dist/ui/actions.d.ts.map +1 -1
- package/dist/ui/actions.js +1 -1
- package/dist/ui/actions.js.map +1 -1
- package/dist/ui/chrome.d.ts +19 -6
- package/dist/ui/chrome.d.ts.map +1 -1
- package/dist/ui/chrome.js +12 -7
- package/dist/ui/chrome.js.map +1 -1
- package/dist/ui/client/bulk-selection.d.ts +7 -0
- package/dist/ui/client/bulk-selection.d.ts.map +1 -0
- package/dist/ui/client/bulk-selection.js +67 -0
- package/dist/ui/client/bulk-selection.js.map +1 -0
- package/dist/ui/client/ket-table-view.d.ts +3 -0
- package/dist/ui/client/ket-table-view.d.ts.map +1 -0
- package/dist/ui/client/ket-table-view.js +27 -0
- package/dist/ui/client/ket-table-view.js.map +1 -0
- package/dist/ui/client/live-doc-shell.d.ts +66 -2
- package/dist/ui/client/live-doc-shell.d.ts.map +1 -1
- package/dist/ui/client/live-doc-shell.js +83 -6
- 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 +47 -1
- package/dist/ui/client/live-doc-view.d.ts.map +1 -1
- package/dist/ui/client/live-doc-view.js +318 -5
- 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 +11 -4
- 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/client/record-modal-form.d.ts +34 -0
- package/dist/ui/client/record-modal-form.d.ts.map +1 -1
- package/dist/ui/client/record-modal-form.js +17 -1
- package/dist/ui/client/record-modal-form.js.map +1 -1
- package/dist/ui/client/record-modal.d.ts +56 -6
- package/dist/ui/client/record-modal.d.ts.map +1 -1
- package/dist/ui/client/record-modal.js +235 -39
- package/dist/ui/client/record-modal.js.map +1 -1
- package/dist/ui/client/search-filter-view.d.ts +2 -0
- package/dist/ui/client/search-filter-view.d.ts.map +1 -0
- package/dist/ui/client/search-filter-view.js +6 -0
- package/dist/ui/client/search-filter-view.js.map +1 -0
- package/dist/ui/client/table-selection-view.d.ts.map +1 -1
- package/dist/ui/client/table-selection-view.js +33 -16
- package/dist/ui/client/table-selection-view.js.map +1 -1
- package/dist/ui/client/user-modal-client.d.ts +6 -0
- package/dist/ui/client/user-modal-client.d.ts.map +1 -0
- package/dist/ui/client/user-modal-client.js +4 -0
- package/dist/ui/client/user-modal-client.js.map +1 -0
- package/dist/ui/client/user-workflow.d.ts.map +1 -1
- package/dist/ui/client/user-workflow.js +4 -3
- package/dist/ui/client/user-workflow.js.map +1 -1
- package/dist/ui/client/variant-attribute-create.d.ts +19 -0
- package/dist/ui/client/variant-attribute-create.d.ts.map +1 -0
- package/dist/ui/client/variant-attribute-create.js +177 -0
- package/dist/ui/client/variant-attribute-create.js.map +1 -0
- package/dist/ui/client/variant-editor-view.d.ts +72 -0
- package/dist/ui/client/variant-editor-view.d.ts.map +1 -0
- package/dist/ui/client/variant-editor-view.js +943 -0
- package/dist/ui/client/variant-editor-view.js.map +1 -0
- package/dist/ui/collection-state.d.ts +11 -0
- package/dist/ui/collection-state.d.ts.map +1 -0
- package/dist/ui/collection-state.js +45 -0
- package/dist/ui/collection-state.js.map +1 -0
- package/dist/ui/collection.d.ts +23 -0
- package/dist/ui/collection.d.ts.map +1 -0
- package/dist/ui/collection.js +118 -0
- package/dist/ui/collection.js.map +1 -0
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +1 -1
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/index.d.ts +3 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +3 -1
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/layout.d.ts +8 -9
- package/dist/ui/layout.d.ts.map +1 -1
- package/dist/ui/layout.js +27 -12
- package/dist/ui/layout.js.map +1 -1
- package/dist/ui/list-page.d.ts +4 -2
- package/dist/ui/list-page.d.ts.map +1 -1
- package/dist/ui/list-page.js +29 -4
- package/dist/ui/list-page.js.map +1 -1
- package/dist/ui/nav.d.ts +2 -3
- package/dist/ui/nav.d.ts.map +1 -1
- package/dist/ui/nav.js +4 -8
- package/dist/ui/nav.js.map +1 -1
- package/dist/ui/navigation.d.ts +1 -0
- package/dist/ui/navigation.d.ts.map +1 -1
- package/dist/ui/navigation.js +3 -3
- package/dist/ui/navigation.js.map +1 -1
- package/dist/ui/table.d.ts +2 -0
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +24 -0
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/user-workflow.d.ts +2 -1
- package/dist/ui/user-workflow.d.ts.map +1 -1
- package/dist/ui/user-workflow.js +44 -29
- package/dist/ui/user-workflow.js.map +1 -1
- package/package.json +14 -4
- package/dist/modules/flow/functions.d.ts.map +0 -1
- package/dist/modules/flow/functions.js +0 -1876
- 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
- package/dist/modules/user_backend/access-routes.d.ts +0 -31
- package/dist/modules/user_backend/access-routes.d.ts.map +0 -1
- package/dist/modules/user_backend/access-routes.js +0 -447
- package/dist/modules/user_backend/access-routes.js.map +0 -1
- package/dist/modules/user_backend/screens/presets-form.d.ts +0 -16
- package/dist/modules/user_backend/screens/presets-form.d.ts.map +0 -1
- package/dist/modules/user_backend/screens/presets-form.js +0 -37
- package/dist/modules/user_backend/screens/presets-form.js.map +0 -1
- package/dist/modules/user_backend/screens/role-form.d.ts +0 -21
- package/dist/modules/user_backend/screens/role-form.d.ts.map +0 -1
- package/dist/modules/user_backend/screens/role-form.js +0 -93
- package/dist/modules/user_backend/screens/role-form.js.map +0 -1
- package/dist/modules/user_backend/screens/user-form.d.ts +0 -56
- package/dist/modules/user_backend/screens/user-form.d.ts.map +0 -1
- package/dist/modules/user_backend/screens/user-form.js +0 -202
- package/dist/modules/user_backend/screens/user-form.js.map +0 -1
- package/dist/ui/client/relation-select-view.d.ts +0 -77
- package/dist/ui/client/relation-select-view.d.ts.map +0 -1
- package/dist/ui/client/relation-select-view.js +0 -216
- package/dist/ui/client/relation-select-view.js.map +0 -1
- /package/dist/modules/{flow → product_backend}/functions.d.ts +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/** URL state shared by the attribute list's real and fixture search transports. */
|
|
2
|
+
export const ATTRIBUTE_SEARCH_VALUES = {
|
|
3
|
+
displayType: ['radio', 'pills', 'select', 'color', 'multi'],
|
|
4
|
+
createVariant: ['always', 'no_variant'],
|
|
5
|
+
};
|
|
6
|
+
const COLLECTION_PATH = '/admin/product/attributes';
|
|
7
|
+
const MOCK_PATH = '/__atlas/product/screen';
|
|
8
|
+
const ORIGIN = 'http://ket.local';
|
|
9
|
+
const safeLocation = (returnTo, path) => {
|
|
10
|
+
if (typeof returnTo !== 'string' ||
|
|
11
|
+
!returnTo.startsWith('/') ||
|
|
12
|
+
returnTo.startsWith('//') ||
|
|
13
|
+
[...returnTo].some((character) => character === '\\' || character.charCodeAt(0) <= 32 || character.charCodeAt(0) === 127))
|
|
14
|
+
return new URL(path, ORIGIN);
|
|
15
|
+
try {
|
|
16
|
+
const candidate = new URL(returnTo, ORIGIN);
|
|
17
|
+
if (candidate.origin === ORIGIN && candidate.pathname === path)
|
|
18
|
+
return candidate;
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
// An invalid return target falls back to the collection, never another origin.
|
|
22
|
+
}
|
|
23
|
+
return new URL(path, ORIGIN);
|
|
24
|
+
};
|
|
25
|
+
/** Multiple presets in one group are OR'd; display type and variant policy are AND'd. */
|
|
26
|
+
export const attributeSearchHref = (payload, options = {}) => {
|
|
27
|
+
const path = options.basePath === MOCK_PATH ? MOCK_PATH : COLLECTION_PATH;
|
|
28
|
+
const target = safeLocation(payload.returnTo, path);
|
|
29
|
+
if (path === MOCK_PATH)
|
|
30
|
+
target.searchParams.set('screen', 'attributes');
|
|
31
|
+
for (const key of ['page', 'record', 'tab'])
|
|
32
|
+
target.searchParams.delete(key);
|
|
33
|
+
target.hash = '';
|
|
34
|
+
const facets = Array.isArray(payload.facets)
|
|
35
|
+
? payload.facets.filter((facet) => Boolean(facet && typeof facet === 'object' && !Array.isArray(facet)))
|
|
36
|
+
: null;
|
|
37
|
+
const filters = facets
|
|
38
|
+
? facets.filter((facet) => facet.type === 'filter').map((facet) => facet.id)
|
|
39
|
+
: Array.isArray(payload.filters)
|
|
40
|
+
? payload.filters
|
|
41
|
+
: null;
|
|
42
|
+
if (filters) {
|
|
43
|
+
for (const [key, allowed] of Object.entries(ATTRIBUTE_SEARCH_VALUES)) {
|
|
44
|
+
const selected = allowed.filter((value) => filters.includes(`${key}:${value}`));
|
|
45
|
+
if (selected.length)
|
|
46
|
+
target.searchParams.set(key, selected.join(','));
|
|
47
|
+
else
|
|
48
|
+
target.searchParams.delete(key);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (typeof payload.query === 'string' || facets) {
|
|
52
|
+
const query = (typeof payload.query === 'string' ? payload.query.trim() : '') ||
|
|
53
|
+
[...(facets ?? [])].reverse().find((facet) => facet.type === 'field' && typeof facet.label === 'string')
|
|
54
|
+
?.label;
|
|
55
|
+
if (typeof query === 'string' && query.trim())
|
|
56
|
+
target.searchParams.set('q', query.trim());
|
|
57
|
+
else
|
|
58
|
+
target.searchParams.delete('q');
|
|
59
|
+
}
|
|
60
|
+
return target.pathname + target.search;
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=attribute-search-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute-search-state.js","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/product_backend/attribute-search-state.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;IAC3D,aAAa,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC;CAC/B,CAAA;AAUV,MAAM,eAAe,GAAG,2BAA2B,CAAA;AACnD,MAAM,SAAS,GAAG,yBAAyB,CAAA;AAC3C,MAAM,MAAM,GAAG,kBAAkB,CAAA;AAEjC,MAAM,YAAY,GAAG,CAAC,QAAiB,EAAE,IAAY,EAAO,EAAE;IAC5D,IACE,OAAO,QAAQ,KAAK,QAAQ;QAC5B,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC;QACzB,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC;QACzB,CAAC,GAAG,QAAQ,CAAC,CAAC,IAAI,CAChB,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,GAAG,CACtG;QAED,OAAO,IAAI,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IAC9B,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QAC3C,IAAI,SAAS,CAAC,MAAM,KAAK,MAAM,IAAI,SAAS,CAAC,QAAQ,KAAK,IAAI;YAAE,OAAO,SAAS,CAAA;IAClF,CAAC;IAAC,MAAM,CAAC;QACP,+EAA+E;IACjF,CAAC;IACD,OAAO,IAAI,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;AAC9B,CAAC,CAAA;AAED,yFAAyF;AACzF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,OAA+B,EAC/B,OAAO,GAA6D,EAAE,EAC9D,EAAE;IACV,MAAM,IAAI,GAAG,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAA;IACzE,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;IACnD,IAAI,IAAI,KAAK,SAAS;QAAE,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;IACvE,KAAK,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC;QAAE,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IAC5E,MAAM,CAAC,IAAI,GAAG,EAAE,CAAA;IAChB,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;QAC1C,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAA8D,EAAE,CAC1F,OAAO,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CACrE;QACH,CAAC,CAAC,IAAI,CAAA;IACR,MAAM,OAAO,GAAG,MAAM;QACpB,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5E,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;YAC9B,CAAC,CAAC,OAAO,CAAC,OAAO;YACjB,CAAC,CAAC,IAAI,CAAA;IACV,IAAI,OAAO,EAAE,CAAC;QACZ,KAAK,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,EAAE,CAAC;YACrE,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC,CAAA;YAC/E,IAAI,QAAQ,CAAC,MAAM;gBAAE,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;;gBAChE,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QACtC,CAAC;IACH,CAAC;IACD,IAAI,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ,IAAI,MAAM,EAAE,CAAC;QAChD,MAAM,KAAK,GACT,CAAC,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/D,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,CAAC;gBACtG,EAAE,KAAK,CAAA;QACX,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE;YAAE,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAA;;YACpF,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IACtC,CAAC;IACD,OAAO,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAA;AACxC,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Translator } from '@ketvietlab/ketjs';
|
|
2
|
+
import type { SearchFilterConfig } from '@ketvietlab/design-system';
|
|
3
|
+
import { ATTRIBUTE_SEARCH_VALUES } from './attribute-search-state.ts';
|
|
4
|
+
export declare const ATTRIBUTE_SEARCH_FILTERS: readonly {
|
|
5
|
+
key: keyof typeof ATTRIBUTE_SEARCH_VALUES;
|
|
6
|
+
values: readonly string[];
|
|
7
|
+
}[];
|
|
8
|
+
/** Shared by the native route and mock: the same compact Product SearchFilter, with supported facets only. */
|
|
9
|
+
export declare const attributeSearchFilterConfig: (_: Translator, url: URL) => SearchFilterConfig;
|
|
10
|
+
//# sourceMappingURL=attributes-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributes-search.d.ts","sourceRoot":"","sources":["../../../../../../packages/ketsuite/src/modules/product_backend/attributes-search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAe,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAGrE,eAAO,MAAM,wBAAwB,EAAE,SAAS;IAC9C,GAAG,EAAE,MAAM,OAAO,uBAAuB,CAAA;IACzC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;CAC1B,EAGA,CAAA;AAED,8GAA8G;AAC9G,eAAO,MAAM,2BAA2B,MAAO,UAAU,OAAO,GAAG,KAAG,kBA0DrE,CAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ATTRIBUTE_SEARCH_VALUES } from './attribute-search-state.js';
|
|
2
|
+
import { selectionLabel } from '../backend/screen.js';
|
|
3
|
+
export const ATTRIBUTE_SEARCH_FILTERS = [
|
|
4
|
+
{ key: 'displayType', values: ATTRIBUTE_SEARCH_VALUES.displayType },
|
|
5
|
+
{ key: 'createVariant', values: ATTRIBUTE_SEARCH_VALUES.createVariant },
|
|
6
|
+
];
|
|
7
|
+
/** Shared by the native route and mock: the same compact Product SearchFilter, with supported facets only. */
|
|
8
|
+
export const attributeSearchFilterConfig = (_, url) => {
|
|
9
|
+
const filters = ATTRIBUTE_SEARCH_FILTERS.flatMap((group) => {
|
|
10
|
+
const active = new Set((url.searchParams.get(group.key) ?? '').split(','));
|
|
11
|
+
return group.values.map((value) => ({
|
|
12
|
+
id: `${group.key}:${value}`,
|
|
13
|
+
group: group.key,
|
|
14
|
+
label: selectionLabel(_, 'product_backend', group.key, value),
|
|
15
|
+
active: active.has(value),
|
|
16
|
+
}));
|
|
17
|
+
});
|
|
18
|
+
const query = (url.searchParams.get('q') ?? '').trim();
|
|
19
|
+
const facets = [
|
|
20
|
+
...(query ? [{ id: 'query', type: 'field', label: query }] : []),
|
|
21
|
+
...filters
|
|
22
|
+
.filter((filter) => filter.active)
|
|
23
|
+
.map((filter) => ({ id: filter.id, type: 'filter', label: filter.label })),
|
|
24
|
+
];
|
|
25
|
+
return {
|
|
26
|
+
name: 'product-attribute-filter',
|
|
27
|
+
size: 'compact',
|
|
28
|
+
facets,
|
|
29
|
+
filters,
|
|
30
|
+
capabilities: { groupBy: false, favorites: false, customFilters: false },
|
|
31
|
+
groupBy: [],
|
|
32
|
+
favorites: [],
|
|
33
|
+
customFilterFields: [],
|
|
34
|
+
labels: {
|
|
35
|
+
searchLabel: _('product_backend.attributes.search'),
|
|
36
|
+
searchPlaceholder: _('product_backend.attributes.search'),
|
|
37
|
+
toggleLabel: _('product_backend.search.filters'),
|
|
38
|
+
filters: _('product_backend.search.filters'),
|
|
39
|
+
groupBy: _('product_backend.search.groupBy'),
|
|
40
|
+
favorites: _('product_backend.search.favorites'),
|
|
41
|
+
searchGenericLabel: _('product_backend.search.genericLabel'),
|
|
42
|
+
searchFieldPrefix: _('product_backend.search.fieldPrefix'),
|
|
43
|
+
searchFieldPreposition: _('product_backend.search.fieldPreposition'),
|
|
44
|
+
customFilterField: _('product_backend.search.customFilterField'),
|
|
45
|
+
customFilterOperator: _('product_backend.search.customFilterOperator'),
|
|
46
|
+
customFilterValue: _('product_backend.search.customFilterValue'),
|
|
47
|
+
customFilterAdd: _('product_backend.search.customFilterAdd'),
|
|
48
|
+
customGroupByPlaceholder: _('product_backend.search.customGroupByPlaceholder'),
|
|
49
|
+
saveSearch: _('product_backend.search.saveSearch'),
|
|
50
|
+
favoriteName: _('product_backend.search.favoriteName'),
|
|
51
|
+
favoriteDefault: _('product_backend.search.favoriteDefault'),
|
|
52
|
+
favoriteSaveAction: _('product_backend.search.favoriteSaveAction'),
|
|
53
|
+
favoriteRemove: _('product_backend.search.favoriteRemove'),
|
|
54
|
+
favoriteSetDefault: _('product_backend.search.favoriteSetDefault'),
|
|
55
|
+
noFavorites: _('product_backend.search.noFavorites'),
|
|
56
|
+
clear: _('product_backend.search.clear'),
|
|
57
|
+
applyError: _('product_backend.search.applyError'),
|
|
58
|
+
retry: _('product_backend.search.retry'),
|
|
59
|
+
},
|
|
60
|
+
manager: {
|
|
61
|
+
applyFunction: 'product_backend.applyAttributeSearchFilter',
|
|
62
|
+
bodyId: 'product-attribute-list',
|
|
63
|
+
applyInput: { returnTo: url.pathname + url.search },
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=attributes-search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributes-search.js","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/product_backend/attributes-search.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,CAAC,MAAM,wBAAwB,GAG/B;IACJ,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,EAAE,uBAAuB,CAAC,WAAW,EAAE;IACnE,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,uBAAuB,CAAC,aAAa,EAAE;CACxE,CAAA;AAED,8GAA8G;AAC9G,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAa,EAAE,GAAQ,EAAsB,EAAE;IACzF,MAAM,OAAO,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACzD,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1E,OAAO,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YAClC,EAAE,EAAE,GAAG,KAAK,CAAC,GAAG,IAAI,KAAK,EAAE;YAC3B,KAAK,EAAE,KAAK,CAAC,GAAG;YAChB,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,iBAAiB,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC;YAC7D,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;SAC1B,CAAC,CAAC,CAAA;IACL,CAAC,CAAC,CAAA;IACF,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;IACtD,MAAM,MAAM,GAAkB;QAC5B,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAgB,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACzE,GAAG,OAAO;aACP,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;aACjC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;KACtF,CAAA;IACD,OAAO;QACL,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,SAAS;QACf,MAAM;QACN,OAAO;QACP,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;QACxE,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,EAAE;QACb,kBAAkB,EAAE,EAAE;QACtB,MAAM,EAAE;YACN,WAAW,EAAE,CAAC,CAAC,mCAAmC,CAAC;YACnD,iBAAiB,EAAE,CAAC,CAAC,mCAAmC,CAAC;YACzD,WAAW,EAAE,CAAC,CAAC,gCAAgC,CAAC;YAChD,OAAO,EAAE,CAAC,CAAC,gCAAgC,CAAC;YAC5C,OAAO,EAAE,CAAC,CAAC,gCAAgC,CAAC;YAC5C,SAAS,EAAE,CAAC,CAAC,kCAAkC,CAAC;YAChD,kBAAkB,EAAE,CAAC,CAAC,qCAAqC,CAAC;YAC5D,iBAAiB,EAAE,CAAC,CAAC,oCAAoC,CAAC;YAC1D,sBAAsB,EAAE,CAAC,CAAC,yCAAyC,CAAC;YACpE,iBAAiB,EAAE,CAAC,CAAC,0CAA0C,CAAC;YAChE,oBAAoB,EAAE,CAAC,CAAC,6CAA6C,CAAC;YACtE,iBAAiB,EAAE,CAAC,CAAC,0CAA0C,CAAC;YAChE,eAAe,EAAE,CAAC,CAAC,wCAAwC,CAAC;YAC5D,wBAAwB,EAAE,CAAC,CAAC,iDAAiD,CAAC;YAC9E,UAAU,EAAE,CAAC,CAAC,mCAAmC,CAAC;YAClD,YAAY,EAAE,CAAC,CAAC,qCAAqC,CAAC;YACtD,eAAe,EAAE,CAAC,CAAC,wCAAwC,CAAC;YAC5D,kBAAkB,EAAE,CAAC,CAAC,2CAA2C,CAAC;YAClE,cAAc,EAAE,CAAC,CAAC,uCAAuC,CAAC;YAC1D,kBAAkB,EAAE,CAAC,CAAC,2CAA2C,CAAC;YAClE,WAAW,EAAE,CAAC,CAAC,oCAAoC,CAAC;YACpD,KAAK,EAAE,CAAC,CAAC,8BAA8B,CAAC;YACxC,UAAU,EAAE,CAAC,CAAC,mCAAmC,CAAC;YAClD,KAAK,EAAE,CAAC,CAAC,8BAA8B,CAAC;SACzC;QACD,OAAO,EAAE;YACP,aAAa,EAAE,4CAA4C;YAC3D,MAAM,EAAE,wBAAwB;YAChC,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE;SACpD;KACF,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
declare var Un: (e: any) => any, _n: {
|
|
2
|
+
kind: string;
|
|
3
|
+
labels: () => {
|
|
4
|
+
"recordModal.close": string;
|
|
5
|
+
"recordModal.loading": string;
|
|
6
|
+
"recordModal.loadFailed": string;
|
|
7
|
+
"recordModal.notFound": string;
|
|
8
|
+
"recordModal.retry": string;
|
|
9
|
+
"recordModal.errorTitle": string;
|
|
10
|
+
"recordModal.saveFailed": string;
|
|
11
|
+
"recordModal.savedTitle": string;
|
|
12
|
+
"recordModal.saved": string;
|
|
13
|
+
"recordModal.unsaved": string;
|
|
14
|
+
"recordModal.uploadFailed": string;
|
|
15
|
+
} | {
|
|
16
|
+
"recordModal.close": string;
|
|
17
|
+
"recordModal.loading": string;
|
|
18
|
+
"recordModal.loadFailed": string;
|
|
19
|
+
"recordModal.notFound": string;
|
|
20
|
+
"recordModal.retry": string;
|
|
21
|
+
"recordModal.errorTitle": string;
|
|
22
|
+
"recordModal.saveFailed": string;
|
|
23
|
+
"recordModal.savedTitle": string;
|
|
24
|
+
"recordModal.saved": string;
|
|
25
|
+
"recordModal.unsaved": string;
|
|
26
|
+
"recordModal.uploadFailed": string;
|
|
27
|
+
};
|
|
28
|
+
size: string;
|
|
29
|
+
context: {
|
|
30
|
+
fn: string;
|
|
31
|
+
input: (e: any, t: any) => {
|
|
32
|
+
id?: any;
|
|
33
|
+
locale: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
title: (e: any) => any;
|
|
37
|
+
body: typeof Un;
|
|
38
|
+
actions: (e: any) => any;
|
|
39
|
+
commands: {
|
|
40
|
+
save: {
|
|
41
|
+
fn: string;
|
|
42
|
+
issueField: (e: any, t: any, a: any) => any;
|
|
43
|
+
input: (e: any, t: any) => {
|
|
44
|
+
id: any;
|
|
45
|
+
name: string;
|
|
46
|
+
displayType: string;
|
|
47
|
+
createVariant: string;
|
|
48
|
+
sequence: any;
|
|
49
|
+
values: any;
|
|
50
|
+
};
|
|
51
|
+
after: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}, Sf: () => {
|
|
55
|
+
view: () => any;
|
|
56
|
+
mount: ({ root: r, lifetime: c }: {
|
|
57
|
+
lifetime: any;
|
|
58
|
+
root: any;
|
|
59
|
+
}) => void;
|
|
60
|
+
};
|
|
61
|
+
export { Sf as attributeModal, _n as attributeModalDefinition };
|
|
62
|
+
//# sourceMappingURL=attribute-modal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute-modal.d.mts","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/product_backend/client/attribute-modal.mjs"],"names":[],"mappings":"AAC4moD,QAAA,IAA2tC,EAAE,iBAAq3C,EAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAA0zB,EAAE;gBAAqC,IAAI;gBAAkE,WAAW;gBAAyD,aAAa;gBAA6D,QAAQ;gBAAwB,MAAM;;;;;CAA2L,EAAC,EAAE;;;;;;CAAO,CAAC;AAAA,OAAM,EAAC,EAAE,IAAI,cAAc,EAAC,EAAE,IAAI,wBAAwB,EAAC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @ts-nocheck Generated by tools/build-backend-client.mjs — do not edit.
|
|
2
|
+
var xt={vi:{"recordModal.close":"\u0110\xF3ng","recordModal.loading":"\u0110ang t\u1EA3i\u2026","recordModal.loadFailed":"Kh\xF4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c thu\u1ED9c t\xEDnh s\u1EA3n ph\u1EA9m.","recordModal.notFound":"Thu\u1ED9c t\xEDnh 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 product attribute could not be read.","recordModal.notFound":"The attribute 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{each as ja}from"/_ket/view/index.js";import{Fragment as Tt,jsx as ee,jsxs as tn}from"/_ket/view/jsx-runtime.js";var St=["action","action-leading","action-label","action-spinner","action-group"],en=e=>tn(Tt,{children:[e.loading===!0&&ee("span",{"data-ui":"action-spinner","aria-hidden":"true"}),e.loading!==!0&&e.leading!==void 0&&ee("span",{"data-ui":"action-leading","aria-hidden":"true",children:e.leading}),!e.iconOnly&&ee("span",{"data-ui":"action-label",children:e.label})]}),w=e=>ee("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:ee(en,{...e})});var _=e=>ee("div",{"data-ui":"action-group",role:"group","aria-label":e.label??null,children:ja(e.actions,(t,a)=>a,t=>ee(Tt,{children:t}))});import{jsx as ei,jsxs as ti}from"/_ket/view/jsx-runtime.js";var kt=["badge","tag","tag-remove","count-badge","avatar","code","text","media-label","media-label-image","media-label-copy"];import{each as an}from"/_ket/view/index.js";import{Fragment as Fe,jsx as k,jsxs as te}from"/_ket/view/jsx-runtime.js";var wt=["notice","notice-mark","notice-copy","notice-title","notice-message","notice-actions","empty","empty-mark","empty-title","empty-message","empty-actions","loading","loading-label"],nn={info:()=>te(Fe,{children:[k("circle",{cx:"12",cy:"12",r:"10"}),k("path",{d:"M12 16v-4"}),k("path",{d:"M12 8h.01"})]}),positive:()=>te(Fe,{children:[k("circle",{cx:"12",cy:"12",r:"10"}),k("path",{d:"m9 12 2 2 4-4"})]}),warning:()=>te(Fe,{children:[k("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),k("path",{d:"M12 9v4"}),k("path",{d:"M12 17h.01"})]}),danger:()=>te(Fe,{children:[k("circle",{cx:"12",cy:"12",r:"10"}),k("path",{d:"M12 8v4"}),k("path",{d:"M12 16h.01"})]})},W=e=>te("aside",{"data-ui":"notice","data-pattern":"notice","data-tone":e.tone??"info",role:e.tone==="danger"?"alert":"status",children:[k("span",{"data-ui":"notice-mark","aria-hidden":"true",children:k("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false",children:nn[e.tone??"info"]()})}),te("div",{"data-ui":"notice-copy",children:[k("p",{"data-ui":"notice-title",children:e.title}),k("p",{"data-ui":"notice-message",children:e.message})]}),e.actions!==void 0&&k("div",{"data-ui":"notice-actions",children:e.actions})]});var ce=e=>te("div",{"data-ui":"loading",role:"status","aria-live":"polite",children:[k("span",{"data-ui":"loading-label",children:e.label}),k("div",{"data-ui":"skeleton","aria-hidden":"true",children:an(Array.from({length:Math.max(1,e.lines??3)}),(t,a)=>a,(t,a)=>k("span",{"data-ui":"skeleton-line","data-line":String(a+1)}))})]});import{each as _e}from"/_ket/view/index.js";import{each as cn}from"/_ket/view/index.js";import{jsx as B,jsxs as ve}from"/_ket/view/jsx-runtime.js";var Rt=["modal-layer","modal-backdrop","modal-sheet","modal-head","modal-heading","modal-title-row","modal-title","modal-description","modal-close","modal-body","modal-actions"],ae=e=>{let t=e.mode==="client",a=e.mode==="embedded";return ve("div",{"data-ui":"modal-layer","data-mode":e.mode??"overlay","data-route-modal":a||t?null:"true","data-client-modal":t?"true":null,"data-presentation":e.presentation??"sheet","data-unsaved-prompt":e.unsavedPrompt??null,children:[t?B("button",{"data-ui":"modal-backdrop",type:"button","aria-hidden":"true",tabIndex:-1,children:B("span",{children:e.closeLabel})}):B("a",{"data-ui":"modal-backdrop",href:e.closeHref??"#","aria-label":e.closeLabel,children:B("span",{children:e.closeLabel})}),ve("section",{id:e.id,"data-ui":"modal-sheet","data-size":e.size??"default","data-height":e.height==="fixed"?"fixed":null,style:e.height==="fixed"&&e.fixedHeight?`height: ${e.fixedHeight} !important`:"",...e.dialogSemantics==="parent"?{}:{role:"dialog","aria-modal":a?"false":"true"},"aria-labelledby":e.dialogSemantics==="parent"?null:`${e.id}-title`,"aria-describedby":e.dialogSemantics!=="parent"&&e.description?`${e.id}-description`:null,tabindex:a?null:"-1",children:[ve("header",{"data-ui":"modal-head",children:[ve("div",{"data-ui":"modal-heading",children:[ve("div",{"data-ui":"modal-title-row",children:[B("h2",{"data-ui":"modal-title",id:`${e.id}-title`,children:e.title}),e.status!==void 0&&e.status]}),!!e.description&&B("p",{"data-ui":"modal-description",id:`${e.id}-description`,children:e.description})]}),t?B("button",{"data-ui":"modal-close",type:"button","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"}):B("a",{"data-ui":"modal-close",href:e.closeHref??"#","aria-label":e.closeLabel,title:e.closeLabel,children:"\xD7"})]}),B("div",{"data-ui":"modal-body",children:e.body}),e.actions!==void 0&&B("footer",{"data-ui":"modal-actions",children:e.actions})]})]})};import{Fragment as ui,jsx as di,jsxs as ci}from"/_ket/view/jsx-runtime.js";import{Fragment as yi,jsx as pi,jsxs as hi}from"/_ket/view/jsx-runtime.js";var Lt=["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 Pt,jsx as D,jsxs as He}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"],un=e=>D(Pt,{children:cn(e.items,(t,a)=>a,t=>typeof t=="string"||typeof t=="number"?D("span",{children:t}):D(Pt,{children:t}))});var Ge=e=>D("div",{"data-ui":"grid","data-columns":String(e.columns??3),"data-align":e.align==="stretch"?"stretch":null,children:D(un,{items:e.items})});var Ue=e=>He("details",{"data-ui":"disclosure",open:e.open===!0?!0:void 0,children:[D("summary",{"data-ui":"disclosure-summary",children:e.summary}),D("div",{"data-ui":"disclosure-body",children:e.body})]}),Oe=e=>He("section",{"data-ui":"section",children:[He("header",{"data-ui":"section-head",children:[He("div",{children:[!!e.eyebrow&&D("p",{"data-ui":"section-eyebrow",children:e.eyebrow}),D("h2",{"data-ui":"section-title",children:e.title}),!!e.description&&D("p",{"data-ui":"section-description",children:e.description})]}),e.actions!==void 0&&D("div",{"data-ui":"section-actions",children:e.actions})]}),D("div",{"data-ui":"section-body",children:e.body})]});import{each as mn}from"/_ket/view/index.js";import{Fragment as gn,jsx as xe}from"/_ket/view/jsx-runtime.js";var De=(e,t)=>e.control!==void 0?xe(gn,{children:e.control}):e.type==="textarea"?xe("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"?xe("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:mn(e.options??[],a=>a.value,a=>xe("option",{value:a.value,selected:String(e.value??"")===a.value,disabled:a.disabled===!0,children:a.label}))}):xe("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 T,jsxs as z}from"/_ket/view/jsx-runtime.js";var Et=["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),K=e=>{let t=e.help?`${e.id}-help`:null,a=e.error?`${e.id}-error`:null,n=[t,a].filter(Boolean).join(" ")||null,s=z("span",{"data-ui":"field-label",children:[e.label,e.required&&T("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]});return e.fields?z("div",{"data-ui":"field","data-kind":"group","data-span":"full","data-invalid":String(!!e.error),children:[T(Ue,{summary:e.label,open:e.open||Ft(e),body:T("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=>T(K,{...u}))})}),!!e.help&&T("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&T("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]}):e.type==="checkbox-group"?z("div",{"data-ui":"field","data-kind":"checkbox-group","data-span":e.span??"half","data-invalid":String(!!e.error),children:[z("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&T("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),T("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"group","aria-labelledby":`${e.id}-label`,children:_e(e.options??[],u=>u.name??u.value,u=>z("label",{"data-ui":"field-option",children:[T("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":n,autocomplete:"off"}),T("span",{children:u.label})]}))}),!!e.help&&T("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&T("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]}):e.type==="radio"?z("div",{"data-ui":"field","data-kind":"radio","data-span":e.span??"half","data-invalid":String(!!e.error),children:[z("span",{"data-ui":"field-label",id:`${e.id}-label`,children:[e.label,e.required&&T("span",{"data-ui":"field-required","aria-hidden":"true",children:" *"})]}),T("div",{"data-ui":"field-options","data-orientation":e.optionsOrientation==="vertical"?"vertical":null,role:"radiogroup","aria-labelledby":`${e.id}-label`,children:_e(e.options??[],u=>u.value,u=>z("label",{"data-ui":"field-option",children:[T("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":n,autocomplete:"off"}),T("span",{children:u.label})]}))}),!!e.help&&T("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&T("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]}):z("label",{"data-ui":"field","data-kind":e.type??"text","data-label-hidden":e.labelHidden?"true":null,"data-selection-hidden":e.selectionHidden?"true":null,"data-span":e.span??"half","data-invalid":String(!!e.error),for:e.id,children:[e.type==="checkbox"&&De(e,n),s,e.type!=="checkbox"&&De(e,n),!!e.help&&T("small",{"data-ui":"field-help",id:t??void 0,children:e.help}),!!e.error&&T("small",{"data-ui":"field-error",id:a??void 0,children:e.error})]})};import{each as fn}from"/_ket/view/index.js";import{jsx as ue,jsxs as Ze}from"/_ket/view/jsx-runtime.js";var Ht=["breadcrumbs","breadcrumb","breadcrumb-overflow","breadcrumb-overflow-trigger","breadcrumb-overflow-list","nav-list","nav-item","nav-item-leading","nav-item-label","nav-item-count","tabs","tab","tab-count","tabbed-view","tabbed-view-context","tab-panel"];var Ot=e=>Ze("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&&ue("span",{"data-ui":"tab-count",children:String(e.count)})]}),Dt=(e,t)=>`${e}-${t.replace(/[^a-zA-Z0-9_-]+/gu,"-")}-tab`,At=e=>Ze("nav",{"data-ui":"tabs","data-pattern":"tabs","aria-label":e.label,children:[fn(e.items,t=>t.id,t=>ue(Ot,{...t,elementId:e.id?Dt(e.id,t.id):void 0,controls:e.panelId})),e.extension]}),It=e=>ue("section",{"data-ui":"tab-panel",id:e.id,"aria-labelledby":e.labelledBy,tabindex:"-1",children:e.body}),We=e=>{let t=`${e.id}-tabs`,a=`${e.id}-panel`,n=e.items.find(s=>s.active===!0);return Ze("div",{"data-ui":"tabbed-view",children:[e.context!==void 0&&e.context!==""?ue("div",{"data-ui":"tabbed-view-context",children:e.context}):"",ue(At,{id:t,label:e.label,items:e.items,extension:e.extension,panelId:a}),ue(It,{id:a,labelledBy:n?Dt(t,n.id):void 0,body:e.body})]})};import{jsx as qi,jsxs as Ni}from"/_ket/view/jsx-runtime.js";var $t=["progress","progress-label","progress-value","progress-track","progress-bar"];import{each as Vi}from"/_ket/view/index.js";import{Fragment as _i,jsx as Gi,jsxs as Ui}from"/_ket/view/jsx-runtime.js";var Bt=["menu","menu-trigger","menu-trigger-count","menu-panel","menu-search","menu-search-input","menu-label","menu-separator","menu-item","menu-item-leading","menu-item-copy","menu-item-check","menu-item-shortcut"];import{jsx as Yi,jsxs as Qi}from"/_ket/view/jsx-runtime.js";var Kt=["popover","popover-trigger","popover-panel","popover-close"];import{jsx as tr,jsxs as ar}from"/_ket/view/jsx-runtime.js";var qt=["tooltip","tooltip-trigger","tooltip-content"];import{jsx as lr}from"/_ket/view/jsx-runtime.js";var Nt=["dialog","confirm-dialog-message"];import{each as cr}from"/_ket/view/index.js";import{jsx as mr,jsxs as gr}from"/_ket/view/jsx-runtime.js";var Jt=["toast-region","toast","toast-copy","toast-title","toast-message","toast-actions"];import{jsx as pr}from"/_ket/view/jsx-runtime.js";var Xt=["spinner","visually-hidden"];import{each as vr}from"/_ket/view/index.js";import{jsx as Sr}from"/_ket/view/jsx-runtime.js";var Vt=["skeleton","skeleton-line"];import{each as wr,effect as Rr,signal as Cr}from"/_ket/view/index.js";import{jsx as Mr,jsxs as Pr}from"/_ket/view/jsx-runtime.js";var zt=["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 Hr,signal as Or}from"/_ket/view/index.js";import{jsx as Ar,jsxs as Ir}from"/_ket/view/jsx-runtime.js";var Gt=["lightbox","lightbox-thumbs","lightbox-thumb","lightbox-empty","lightbox-layer","lightbox-backdrop","lightbox-toolbar","lightbox-counter","lightbox-tool","lightbox-stage","lightbox-image","lightbox-nav","lightbox-caption"];import{each as qr,signal as Nr}from"/_ket/view/index.js";import{Fragment as zr,jsx as Vr,jsxs as Xr}from"/_ket/view/jsx-runtime.js";var Ut=["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 Yr,effect as Qr,signal as jr}from"/_ket/view/index.js";import{jsx as _r}from"/_ket/view/jsx-runtime.js";var _t=["formatted-date","formatted-number","formatted-money"];import{Fragment as io,jsx as ro,jsxs as oo}from"/_ket/view/jsx-runtime.js";var Yt=["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 To=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","summary",'[tabindex]:not([tabindex="-1"])'].join(",");var xn=['[data-ui="timeframe-menu"]','[data-ui="view-settings"]'],ko=xn.map(e=>`${e}[open]`).join(", ");import{jsx as Co,jsxs as Lo}from"/_ket/view/jsx-runtime.js";import{jsx as Ho,jsxs as Oo}from"/_ket/view/jsx-runtime.js";var Qt=["switch-control","switch-track"];import{each as Io}from"/_ket/view/index.js";import{Fragment as No,jsx as Ko,jsxs as qo}from"/_ket/view/jsx-runtime.js";var jt=["combobox","combobox-input-row","combobox-toggle","combobox-listbox","combobox-option","combobox-empty","tag-picker"];import{Fragment as Yo,jsx as Wo,jsxs as Zo}from"/_ket/view/jsx-runtime.js";var ea=["date-picker","date-range","date-inputs","date-control-row","date-tools","date-range-error","date-calendar","date-calendar-head","date-calendar-title","date-calendar-body","date-field-control","date-range-preset","date-boundary","date-calendar-months","date-month","date-month-title","date-grid","date-weekday","date-cell","date-day","date-calendar-footer","date-calendar-status"];import{jsx as tl,jsxs as al}from"/_ket/view/jsx-runtime.js";var ta=["file-upload","drop-zone","upload-status"];import{jsx as ol}from"/_ket/view/jsx-runtime.js";var aa=["relation-picker"];import{each as dl}from"/_ket/view/index.js";import{jsx as gl,jsxs as fl}from"/_ket/view/jsx-runtime.js";var na=["search-bar","filter-bar","applied-filters","applied-filter","saved-views","saved-view","view-settings","view-settings-options"];import{jsx as yl,jsxs as vl}from"/_ket/view/jsx-runtime.js";var ia=["inline-edit","inline-edit-value","inline-edit-form","inline-edit-actions"];import{each as Hl}from"/_ket/view/index.js";import{each as wl}from"/_ket/view/index.js";import{Fragment as Ml,jsx as Ll,jsxs as Pl}from"/_ket/view/jsx-runtime.js";var ra=["list-chrome","list-chrome-row","list-search","list-search-label","list-search-input","list-search-submit","list-filter-menus","list-facets","list-facet","list-facet-count","list-view-switch","list-view","list-sort","list-sort-label","list-sort-select","list-status","list-actions","bulk-actions","bulk-summary","bulk-count","bulk-action-list","pager-bar","pager-summary","pager-pages","pager-page","pager-actions","pager-link"];import{jsx as Il,jsxs as $l}from"/_ket/view/jsx-runtime.js";var oa=["resource-list","resource-list-item","resource-list-select","resource-list-link"];import{each as ql}from"/_ket/view/index.js";import{jsx as Jl,jsxs as Xl}from"/_ket/view/jsx-runtime.js";var la=["data-grid-scroll","data-grid","data-grid-cap","data-grid-cell"];import{each as Gl}from"/_ket/view/index.js";import{jsx as _l,jsxs as Wl}from"/_ket/view/jsx-runtime.js";var sa=["tree","tree-item","tree-link","tree-grid","tree-grid-row"];import{each as Ql}from"/_ket/view/index.js";import{jsx as es,jsxs as ts}from"/_ket/view/jsx-runtime.js";var da=["data-matrix","data-matrix-head","data-matrix-heading","data-matrix-eyebrow","data-matrix-title","data-matrix-description","data-matrix-summary","data-matrix-scroll","data-matrix-table","data-matrix-column","data-matrix-row-head","data-matrix-row-leading","data-matrix-row-title","data-matrix-row-description","data-matrix-row-status","data-matrix-row-actions","data-matrix-cell"];import{each as is}from"/_ket/view/index.js";import{jsx as os,jsxs as ls}from"/_ket/view/jsx-runtime.js";var ca=["bar-chart","bar-chart-rows","bar-chart-row","bar-chart-label","bar-chart-caption","bar-chart-track","bar-chart-fill","bar-chart-segment","bar-chart-value","bar-chart-scale","bar-chart-legend","bar-chart-legend-item","bar-chart-legend-swatch","bar-chart-empty"];import{each as cs}from"/_ket/view/index.js";import{jsx as ms,jsxs as gs}from"/_ket/view/jsx-runtime.js";var ua=["timeframe","timeframe-menu","timeframe-trigger","timeframe-label","timeframe-value","timeframe-content","timeframe-option","timeframe-option-label","timeframe-option-detail","timeframe-range","timeframe-asof","timeframe-note"];import{each as ps}from"/_ket/view/index.js";import{jsx as vs,jsxs as xs}from"/_ket/view/jsx-runtime.js";var ma=["description-list","key-value","key-value-label","key-value-value","person","person-body","avatar-group","status"];import{each as ks}from"/_ket/view/index.js";import{jsx as ga,jsxs as Ps}from"/_ket/view/jsx-runtime.js";var ba=["record-summary","record-summary-main","record-actions","record-rail"];var et=e=>ga("nav",{"data-ui":"record-actions","aria-label":e.label??"Record actions",children:ga(_,{actions:e.actions})});import{each as Fs}from"/_ket/view/index.js";import{jsx as As,jsxs as Is}from"/_ket/view/jsx-runtime.js";var pa=["activity-timeline","activity-item","activity-marker","audit-log","audit-item"];import{each as Ks}from"/_ket/view/index.js";import{jsx as Js,jsxs as Xs}from"/_ket/view/jsx-runtime.js";var ha=["attachments","attachment","media-gallery","media-item"];import{each as Gs}from"/_ket/view/index.js";import{Fragment as Zs,jsx as _s,jsxs as Ws}from"/_ket/view/jsx-runtime.js";var ya=["app-navigation","navigation-trigger","navigation-toggle","navigation-trigger-icon","navigation-trigger-identity","navigation-trigger-label","navigation-layer","navigation-backdrop","navigation-drawer","navigation-header","navigation-identity","navigation-context","navigation-close","navigation-groups","navigation-group","navigation-group-label","navigation-items","navigation-supplementary","navigation-item","navigation-branch","navigation-branch-trigger","navigation-children","navigation-item-leading","navigation-item-copy","navigation-item-label","navigation-item-description","navigation-item-count","navigation-footer"];import{each as td}from"/_ket/view/index.js";import{Fragment as ld,jsx as rd,jsxs as od}from"/_ket/view/jsx-runtime.js";var va=["table-scroll","table","table-caption","select-col","select-all","col","sort-link","sort-icon","row","group-row","group-cell","group-link","group-indent","group-count","group-pager","group-pager-actions","cell","select-cell","row-select","row-link"];import{Fragment as pd,jsx as bd,jsxs as hd}from"/_ket/view/jsx-runtime.js";var xa=["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 Sd,jsxs as Td}from"/_ket/view/jsx-runtime.js";var Sa=["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 Ta=["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 Fd,jsxs as Hd}from"/_ket/view/jsx-runtime.js";var ka=["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 wa=["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 Nd}from"/_ket/view/index.js";import{jsx as Xd,jsxs as Vd}from"/_ket/view/jsx-runtime.js";var Ra=["pipeline","pipeline-step","pipeline-arrow","pipeline-step-label","pipeline-step-value","pipeline-step-node"];import{each as Wd}from"/_ket/view/index.js";import{jsx as jd,jsxs as ec}from"/_ket/view/jsx-runtime.js";var Ca=["record-form","form-errors","form-grid","form-actions"];import{each as Mn}from"/_ket/view/index.js";var tt=e=>e.currentTarget instanceof HTMLElement?e.currentTarget:null,Ie=(e,t,a)=>{let n=e.querySelector('[data-ui="reorder-list-value"]');!n||n.disabled||(n.value=JSON.stringify(t),n.dispatchEvent(new Event("change",{bubbles:!0})),requestAnimationFrame(()=>{let s=document.getElementById(e.id);([...s?.querySelectorAll('[data-ui="reorder-list-row"]')??[]].find(x=>x.dataset.reorderId===a)?.querySelector('input:not([type="hidden"]), button')??s?.querySelector('[data-reorder-action="add"] button'))?.focus()}))},La=e=>{let t=tt(e),a=e.target instanceof Element?e.target.closest("[data-reorder-action]"):null;if(!t||!a||a.querySelector("button:disabled"))return;let n=t.querySelector('[data-ui="reorder-list-value"]');if(!n||n.disabled)return;let s=JSON.parse(n.value),u=a.closest("[data-reorder-id]")?.dataset.reorderId,f=u?s.indexOf(u):-1,x=a.dataset.reorderAction;if(x==="add"){let L=crypto.randomUUID();Ie(t,[...s,L],L)}else if(f>=0&&x==="remove")s.splice(f,1),Ie(t,s,s[Math.min(f,s.length-1)]);else if(f>=0&&(x==="up"||x==="down")){let L=f+(x==="up"?-1:1);if(L<0||L>=s.length)return;[s[f],s[L]]=[s[L],s[f]],Ie(t,s,u)}},Pa=e=>{let t=e.target instanceof Element?e.target.closest("[data-reorder-handle]"):null;if(!t||t.querySelector("button:disabled")){e.preventDefault();return}let a=t.closest("[data-reorder-id]"),n=tt(e);!a||!n||!e.dataTransfer||(e.dataTransfer.setData("application/x-ket-reorder",JSON.stringify({root:n.id,id:a.dataset.reorderId})),e.dataTransfer.effectAllowed="move")},Ma=e=>{e.dataTransfer?.types.includes("application/x-ket-reorder")&&e.preventDefault()},Ea=e=>{let t=tt(e),a=e.target instanceof Element?e.target.closest("[data-reorder-id]"):null,n=e.dataTransfer?.getData("application/x-ket-reorder");if(!(!t||!a||!n)){e.preventDefault();try{let s=JSON.parse(n);if(s.root!==t.id)return;let u=t.querySelector('[data-ui="reorder-list-value"]'),f=JSON.parse(u?.value??"[]"),x=f.indexOf(s.id),L=f.indexOf(a.dataset.reorderId??"");if(x<0||L<0||x===L)return;f.splice(x,1),f.splice(L,0,s.id),Ie(t,f,s.id)}catch{}}};import{jsx as P,jsxs as at}from"/_ket/view/jsx-runtime.js";var Fa=["reorder-list","reorder-list-value","reorder-list-rows","reorder-list-row","reorder-list-content","reorder-list-controls"],nt=e=>at("div",{id:e.id,role:"group","aria-label":e.label,"data-ui":"reorder-list",onClick:La,onDragStart:Pa,onDragOver:Ma,onDrop:Ea,children:[P("input",{"data-ui":"reorder-list-value",type:"hidden",name:e.name,value:JSON.stringify(e.items.map(t=>t.id)),disabled:e.disabled,autocomplete:"off"}),P("ol",{"data-ui":"reorder-list-rows","aria-label":e.label,children:Mn(e.items,t=>t.id,(t,a)=>at("li",{"data-ui":"reorder-list-row","data-reorder-id":t.id,children:[P("div",{"data-ui":"reorder-list-content",children:t.content}),at("div",{"data-ui":"reorder-list-controls",children:[P("span",{"data-reorder-handle":!0,draggable:!e.disabled,children:P(w,{label:e.labels.drag,size:"compact",variant:"tertiary",disabled:e.disabled})}),P("span",{"data-reorder-action":"up",children:P(w,{label:e.labels.up,size:"compact",variant:"tertiary",disabled:e.disabled||a===0})}),P("span",{"data-reorder-action":"down",children:P(w,{label:e.labels.down,size:"compact",variant:"tertiary",disabled:e.disabled||a===e.items.length-1})}),P("span",{"data-reorder-action":"remove",children:P(w,{label:e.labels.remove,size:"compact",variant:"tertiary",disabled:e.disabled})})]})]}))}),!e.items.length&&P("p",{children:e.labels.empty}),P("span",{"data-reorder-action":"add",children:P(w,{label:e.labels.add,size:"compact",disabled:e.disabled})})]});var Ha={actions:St,feedback:wt,fields:Et,status:kt,navigation:Ht,progress:$t,menu:Bt,reorderList:Fa,popover:Kt,tooltip:qt,dialog:Nt,toast:Jt,spinner:Xt,skeleton:Vt,lightbox:Gt,relationSelect:zt,searchFilter:Ut,ketTable:Yt,scalarFields:Qt,combobox:jt,dateTime:ea,upload:ta,relationPicker:aa,listControls:na,inlineEdit:ia,resourceList:oa,dataGrid:la,tree:sa,matrix:da,barChart:ca,timeframe:ua,recordDisplay:ma,formattedValues:_t,recordComposition:ba,activity:pa,media:ha,layouts:Mt,shell:Lt,appNavigation:ya,table:va,listChrome:ra,listPage:xa,formPage:Ta,recordPage:Sa,dashboardPage:ka,boardPage:wa,modal:Rt,pipeline:Ra,form:Ca},En=[...new Set(Object.values(Ha).flat())].sort(),Fn=Object.freeze(Object.fromEntries(Object.entries(Ha).map(([e,t])=>[e,[...t]])));import{signal as M}from"/_ket/view/index.js";import{jsx as On}from"/_ket/view/jsx-runtime.js";var $e="record";var Hn=/^[a-z][a-z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)+$/u,Oa=e=>Hn.test(e),it=(e,t)=>{if(!Oa(t.kind))throw new TypeError(`invalid record kind "${t.kind}"`);let a=new URL(String(e),"http://ket.local");return a.searchParams.set($e,`${t.kind}:${t.id}`),t.tab?a.searchParams.set("tab",t.tab):a.searchParams.delete("tab"),`${a.pathname}${a.search}`};var Da=e=>{let t=new URL(String(e),"http://ket.local");return t.searchParams.delete($e),t.searchParams.delete("tab"),`${t.pathname}${t.search}`},me=e=>{let t=new URL(String(e),"http://ket.local"),a=t.searchParams.get($e)??"",n=a.indexOf(":");if(n<=0||n===a.length-1)return null;let s=a.slice(0,n);return Oa(s)?{kind:s,id:a.slice(n+1),tab:t.searchParams.get("tab")}:null},rt=e=>On("span",{"data-ui":"record-modal-host","data-record-kind":e,hidden:!0});import{jsx as ne,jsxs as Dn}from"/_ket/view/jsx-runtime.js";var ot=e=>Dn("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?ne("input",{type:"hidden",name:Te,value:e.command,autocomplete:"off"}):"",Object.entries(e.hidden??{}).map(([t,a])=>ne("input",{type:"hidden",name:t,value:a,autocomplete:"off"})),ne("div",{"data-ui":"form-grid",children:e.fields.map(t=>K(t))}),e.body,e.actions?.length?ne("div",{"data-ui":"form-actions",children:_({actions:e.actions})}):""]}),lt=e=>ne("select",{"data-ui":"field-control","data-record-state":e.state,id:e.id,name:e.name,required:e.required===!0,disabled:e.disabled===!0,"aria-invalid":e.invalid?"true":null,children:e.options.map(t=>ne("option",{value:t.value,selected:t.value===e.value,children:t.label}))});var st=e=>ne("span",{"data-record-close":"true",children:e.children});import{Fragment as ke,jsx as ff,jsxs as we}from"/_ket/view/jsx-runtime.js";var Ia=e=>{let t=e??{};return(Array.isArray(t.errors)?t.errors:Array.isArray(t.issues)?t.issues:[]).map(n=>{let s=n??{},u=Array.isArray(s.path)?s.path.join("."):null;return{field:typeof s.field=="string"?s.field:u,code:String(s.code??"invalid"),message:typeof s.message=="string"?s.message:null,params:s.params&&typeof s.params=="object"?s.params:{}}})},Xa=async(e,t,a={})=>{let n=new URL(e,"https://record.invalid");if(n.origin!=="https://record.invalid"||!e.startsWith("/")||e.startsWith("//"))throw new Error("Record commands require a same-origin route");let s=await fetch(n.pathname+n.search,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json",...a.idempotencyKey?{"idempotency-key":a.idempotencyKey}:{}},body:JSON.stringify(t),signal:a.signal}),u=await s.json().catch(()=>({}));if(!s.ok||u.ok===!1)return{ok:!1,issues:Ia(u.error??u),message:s.status>=500?null:u.error?.message??u.message??null,status:s.status};let f=u.value;return f&&typeof f=="object"&&f.ok===!1?{ok:!1,issues:Ia(f),message:null,status:s.status}:{ok:!0,value:u.value}},$a=(e,t,a={})=>Xa(`/_ket/fn/${encodeURIComponent(e)}`,t,a),An=async(e,t)=>{let a=new URL(e,location.href);if(a.origin!==location.origin)throw new Error("Record context must stay same-origin");let n=await fetch(a.href,{credentials:"same-origin",signal:t,headers:{accept:"application/json"}});return n.ok?{ok:!0,value:await n.json()}:{ok:!1,issues:[],message:null,status:n.status}},In=30,$n=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."}),Ke=(e,t)=>t.messages?.[e]??t.previous?.[e]??t.labels?.[e]??$n[e]??(/^E_[A-Z_]+$/u.test(e)?Ke("recordModal.saveFailed",t):e),Bn=(e,t)=>{let a=Ke(e,t);return a===e?Ke("recordModal.saveFailed",t):a},Te="__command",Ba="data-record-dialog",Ka=(e,t={})=>e.replace(/\{([a-zA-Z0-9_]+)\}/gu,(a,n)=>n in t?String(t[n]??""):a),Va=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])'].join(", "),qa=e=>[...e.querySelectorAll(Va)].filter(t=>!t.hidden&&t.getAttribute("aria-hidden")!=="true"&&!t.matches('[data-ui="modal-backdrop"]'));var Kn=e=>{let t=[],a=e;for(;a&&a!==document.body;){let n=a.parentElement;if(!n)break;for(let s of n.children)s instanceof HTMLElement&&s!==a&&!s.matches("script, style, template")&&(t.push({element:s,inert:s.inert}),s.inert=!0);a=n}return()=>{for(let{element:n,inert:s}of t)n.inert=s}},Na=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`,qn=e=>Object.entries(e.values).some(([t,a])=>a!==e.initialValues[t])||Object.entries(e.checks).some(([t,a])=>a!==e.initialChecks[t]),E=()=>({values:{},checks:{},initialValues:{},initialChecks:{}}),Ja=(e,t)=>`${e}\0${t}`,Be="__all:",dt=e=>e.after??"close",Nn=400,Jn=(e,t=Nn)=>{let a,n=()=>{clearTimeout(a),a=void 0};return{set:s=>{if(n(),!s){e(!1);return}a=setTimeout(()=>e(!0),t)},stop:n}},Xn='a, button, input, select, textarea, label, summary, details, [data-ui="select-cell"]',Vn=e=>{let t=e?.closest("a[href]");return t?t.target&&t.target!=="_self"?null:t.href:e?.closest(Xn)?null:e?.closest("[data-row-href]")?.getAttribute("data-row-href")??null},za=e=>()=>{let t=M(null),a=M("idle"),n=M(null),s=M(null),u=M([]),f=M(E()),x=M(E()),L=M(!1),ut=M(!1),mt=Jn(r=>ut.set(r)),ge=M(!1),gt=r=>{L.set(r),mt.set(r),r&&ge.set(!1)},F=M(null),fe=M(0),Z=M({}),N=M(null),I=new Map,Ua=(r,c)=>{for(I.delete(r),I.set(r,c);I.size>In;)I.delete(I.keys().next().value)},C=null,Le=null,Pe=!1,Ne=null,$=null,re=null,be=null,_a=()=>typeof e.labels=="function"?e.labels():e.labels??{},ft=()=>({messages:n()?.messages,previous:be,labels:_a()}),J=(r,c)=>Ka(Ke(r,ft()),c),bt=r=>r.message??Ka(Bn(r.code,ft()),r.params),pt=r=>[...e.tabs??[],...e.extensionTabs?.(r)??[]].filter(c=>c.visible?.(r)??!0),Me=(r,c,m="record")=>{let d=()=>m==="dialog"?x():f(),l={kind:e.kind,id:r.id,creating:r.id==="new",tab:r.tab,data:c,t:J,fieldError:p=>{let i=u().find(o=>o.field===p);return i?bt(i):null},draft:(p,i="")=>{let o=d();return o.initialValues[p]??=i,o.values[p]??i},draftChecked:(p,i="1",o=!1)=>{let g=d(),v=Ja(p,i);return g.initialChecks[v]??=o,g.checks[v]??o},outcome:p=>{let i=N();return i?.command===p?i.value:null},busy:ut(),dialog:F(),href:p=>it(location.href,{kind:e.kind,id:r.id,tab:p}),state:(p,i="")=>Z()[p]??i},h=pt(l);return h.length&&!h.some(p=>p.id===r.tab)&&(l.tab=h[0].id),l},Y=async(r,c=!1)=>{Le?.abort();let m=new AbortController;Le=m;let d=e.cache===!1?void 0:I.get(r);d&&(be=d.messages??be,n.set(d),a.set("ready"),c=!0),c||a.set("loading"),s.set(null);try{let l=r==="new",h="route"in e.context?await An(e.context.route(r,l),m.signal):await $a(e.context.fn,e.context.input?e.context.input(r,l):l?{}:{id:r},{signal:m.signal});if(m.signal.aborted)return;if(!h.ok||!h.value){s.set(h.ok?"recordModal.notFound":h.message??"recordModal.loadFailed"),a.set("error");return}be=h.value.messages??be,e.cache!==!1&&Ua(r,h.value),n.set(h.value),a.set("ready")}catch(l){if(m.signal.aborted||l?.name==="AbortError")return;s.set("recordModal.loadFailed"),a.set("error")}},Ee=()=>C?[...C.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]')]:[],oe=()=>Ee()[0]??null,Je=()=>Ee().at(-1)??null,le=0,se=()=>{if(e.fixedHeight||a()!=="ready")return;let r=oe()?.querySelector('[data-ui="modal-sheet"][data-height="fixed"]');if(!r)return;if(window.matchMedia("(max-width: 47.9375rem)").matches){r.style.setProperty("height","100dvh","important"),r.style.removeProperty("min-height");return}let c=r.querySelector('[data-ui="tabbed-view"]');if(!c)return;let m=c.querySelector('[data-ui="tab-panel"]'),d=m?.scrollTop??0;r.style.setProperty("height","auto","important"),r.style.setProperty("min-height","0"),c.style.setProperty("height","auto"),le=Math.max(le,Math.ceil(r.getBoundingClientRect().height)),c.style.removeProperty("height");let l=getComputedStyle(r).maxHeight;r.style.setProperty("min-height",l==="none"?`${le}px`:`min(${le}px, ${l})`),m&&(m.scrollTop=d)},Q=(r,c)=>{if(!r)return;let m=c==="dialog"?x():f(),d={values:{...m.values},checks:{...m.checks},initialValues:{...m.initialValues},initialChecks:{...m.initialChecks}};for(let l of r.querySelectorAll("input[name], select[name], textarea[name]"))if(!(l.disabled||l.name===Te)){if(l instanceof HTMLInputElement){if(l.type==="file"||l.type==="hidden")continue;if(l.type==="checkbox"||l.type==="radio"){let h=Ja(l.name,l.value);d.initialChecks[h]??=l.defaultChecked,d.checks[h]=l.checked,l.type==="checkbox"?d.values[l.name]=l.checked?l.value:"":l.checked&&(d.values[l.name]=l.value),d.initialValues[l.name]=d.values[l.name]??"";continue}}d.initialValues[l.name]??=l instanceof HTMLSelectElement?[...l.options].find(h=>h.defaultSelected)?.value??l.options[0]?.value??"":l.defaultValue,d.values[l.name]=l.value}c==="dialog"?x.set(d):f.set(d)},Xe=()=>{let r=Ee();Q(r[0]??null,"record"),r.length>1&&Q(r.at(-1)??null,"dialog")},ht=r=>{if(!r)return!0;let c=F()&&r===Je()?"dialog":"record";Q(r,c);let m=c==="dialog"?x():f(),d=[...r.querySelectorAll('input[type="file"]')].some(l=>!l.disabled&&!!l.files?.length);return!qn(m)&&!d?!0:globalThis.confirm(J("recordModal.unsaved"))},pe=r=>{requestAnimationFrame(()=>{let c=Ee(),m=c[0],d=c.at(-1);if(!d)return;m&&(m.inert=c.length>1);let l=r?.();if(l?.isConnected&&d.contains(l)){l.focus();return}if(d.contains(document.activeElement))return;let h=d.querySelector('[data-ui="modal-sheet"]');(qa(d).find(i=>!i.matches('[data-ui="modal-close"]'))??h)?.focus()})},G=(r,c,m,d)=>{let l=t(),h=l?.id===r,p=c??(h?l.tab:"");h||(le=0,Ne=document.activeElement instanceof HTMLElement?document.activeElement:null,u.set([]),ge.set(!1),f.set(E()),x.set(E()),Z.set({}),N.set(null),F.set(null),$=null,n.set(null),Y(r)),t.set({id:r,tab:p});let i=it(location.href,{kind:e.kind,id:r,tab:p||null});m==="push"?(history.replaceState({...history.state??{},__ketScroll:[window.scrollX,window.scrollY]},"",location.href),history.pushState({...history.state??{},__ketRecordModal:e.kind},"",i),Pe=!0):m==="replace"&&history.replaceState(history.state??{},"",i),C&&!re&&(re=Kn(C)),pe(d)},he=r=>{Le?.abort(),t.set(null),le=0,F.set(null),u.set([]),ge.set(!1),f.set(E()),x.set(E()),Z.set({}),N.set(null),a.set("idle"),n.set(null),re?.(),re=null,r==="history"&&Pe?(Pe=!1,history.back()):r!=="none"&&(Pe=!1,history.replaceState(history.state??{},"",Da(location.href)));let c=Ne;Ne=null,$=null,c?.isConnected&&requestAnimationFrame(()=>c.focus())},yt=()=>{if(F()){if(!ht(Je()))return;let r=$;$=null,F.set(null),x.set(E()),u.set([]),N.set(null),pe(()=>r?.isConnected?r:null);return}ht(oe())&&he("history")},Wa=async(r,c,m)=>{let d=e.commands?.[r],l=t(),h=n()?.data;if(!d||!l||h===void 0||L())return;let p=new FormData(c,m instanceof HTMLButtonElement?m:null),i=c.closest('[data-ui="modal-layer"][data-client-modal="true"]'),o=F()&&i===Je()?"dialog":"record";Q(i,o);let g=Me(l,h,o);if(d.confirm){let v=d.confirm(g);if(v&&!globalThis.confirm(v))return}gt(!0),u.set([]);try{let v={};for(let[b,O]of Object.entries(d.upload??{})){let A=p.get(b);if(!(A instanceof File)||A.size===0)continue;let de=new FormData;for(let[Ve,Qa]of Object.entries(O(p,g)))de.append(Ve,Qa);de.append("file",A,A.name);let ye=await fetch("/files",{method:"POST",credentials:"same-origin",body:de}),V=await ye.json().catch(()=>null);if(!ye.ok||!V?.id){u.set([{field:null,code:"recordModal.uploadFailed",message:typeof V?.message=="string"?V.message:null,params:{}}]);return}v[b]={id:String(V.id),name:typeof V.name=="string"?V.name:null}}let S=(b,O)=>$a(b,O,{idempotencyKey:Na()}),y=d.route?await Xa(d.route,d.input(p,g,v),{idempotencyKey:Na()}):await S(d.fn,d.input(p,g,v));for(let b of y.ok?d.also??[]:[])if(!(b.when&&!b.when(g))&&(y=await S(b.fn,b.input(p,g,v)),!y.ok))break;if(!y.ok){N.set(null),u.set(y.issues.length?y.issues.map(b=>({...b,field:b.field&&d.issueField?d.issueField(b.field,p,g):b.field})):[{field:null,code:y.message??"recordModal.saveFailed",message:y.message,params:{}}]);return}if(d.preview){N.set({command:r,value:y.value}),fe.set(fe()+1);return}o==="dialog"?x.set(E()):f.set(E()),N.set(dt(d)==="stay"?{command:r,value:y.value}:null),c.reset();let X=y.value,U=dt(d)==="open"?d.created?.(y.value)??(X&&typeof X=="object"&&X.id!=null?String(X.id):null):null;I.delete(l.id),U&&I.delete(U);let j=()=>{document.dispatchEvent(new CustomEvent("ket:records-changed",{detail:{kind:e.kind,ids:[U??l.id]}}))};if(d.navigate){let b=new URL(d.navigate(y.value,g),location.href);if(b.origin!==location.origin)throw new Error("Record navigation must stay same-origin");he("none"),location.assign(b.href);return}let H=dt(d);if(H!=="close"&&ge.set(!0),H==="open"){F.set(null),x.set(E()),U?G(U,d.openTab??null,"replace"):he("history"),j();return}if(j(),H==="close")he("history");else if(H==="reload"){let b=$;$=null,F.set(null),x.set(E()),await Y(l.id),pe(()=>b?.isConnected?b:null)}else if(H==="refresh")await Y(l.id,!0);else if(H==="stay")fe.set(fe()+1);else if("tab"in H)$=null,F.set(null),x.set(E()),G(l.id,H.tab,"replace"),await Y(l.id);else{let b=H.dialog?null:$;$=H.dialog&&m instanceof HTMLElement?m:null,F.set(H.dialog?{name:H.dialog,params:{}}:null),x.set(E()),await Y(l.id,!0),pe(()=>b?.isConnected?b:null)}}catch{u.set([{field:null,code:"recordModal.saveFailed",message:null,params:{}}])}finally{gt(!1)}},vt=r=>{let c=u().filter(l=>!l.field),m=u().filter(l=>l.field&&!C?.querySelector(`[name="${CSS.escape(l.field)}"]`)),d=[...c,...m];return d.length?W({title:r.t("recordModal.errorTitle"),message:d.map(bt).join(" \xB7 "),tone:"danger"}):ge()?W({title:r.t("recordModal.savedTitle"),message:r.t("recordModal.saved"),tone:"positive"}):""},Za=()=>{let r=t();if(!r)return"";if(a()==="error")return we(ke,{children:[W({title:J("recordModal.errorTitle"),message:J(s()??"recordModal.loadFailed"),tone:"danger"}),w({label:J("recordModal.retry"),variant:"secondary",name:"intent",value:"retry"})]});let c=n()?.data;if(a()!=="ready"||c===void 0)return ce({label:J("recordModal.loading")});let m=Me(r,c),d=pt(m),l=d.find(o=>o.id===m.tab),h=e.header?.(m)??"",p=vt(m),i=l?l.view(m):e.body?.(m)??"";return d.length?We({id:`record-view-${e.kind.replaceAll(".","-")}`,label:e.title(m),items:d.map(o=>({id:o.id,label:o.label(m),href:m.href(o.id),active:o.id===m.tab})),context:h!==""||p!==""?we(ke,{children:[h,p]}):void 0,body:i}):we(ke,{children:[h,p,i]})},Ya=()=>{let r=t(),c=F(),m=n()?.data;if(!r||!c||m===void 0)return"";let d=e.dialogs?.[c.name];if(!d)return"";let l=Me(r,m,"dialog");return ae({id:`record-dialog-${e.kind.replaceAll(".","-")}-${c.name}`,mode:"client",presentation:"dialog",size:d.size??"default",title:d.title(l),actions:d.actions?.(l),closeLabel:J("recordModal.close"),body:we(ke,{children:[vt(l),d.view(l)]})})};return{view:()=>{fe();let r=t();if(!r)return rt(e.kind);let c=n()?.data,m=c===void 0?null:Me(r,c);return we(ke,{children:[rt(e.kind),ae({id:`record-modal-${e.kind.replaceAll(".","-")}`,mode:"client",presentation:"dialog",size:e.size??"default",height:(e.tabs?.length??0)+(e.extensionTabs?1:0)>1?"fixed":"content",fixedHeight:e.fixedHeight??"auto",title:m?e.title(m):J("recordModal.loading"),description:m?e.description?.(m)??null:null,status:m?e.status?.(m):void 0,actions:m?e.actions?.(m):void 0,closeLabel:J("recordModal.close"),body:Za()}),Ya()]})},mount:({root:r,lifetime:c})=>{C=r,document.addEventListener("click",i=>{if(i.defaultPrevented||i.button!==0||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey)return;let o=i.target instanceof Element?i.target:null,g=o?.closest('[data-ui="modal-layer"][data-client-modal="true"]');if(g&&C?.contains(g)){if(o?.closest('[data-ui="modal-close"], [data-ui="modal-backdrop"], [data-record-close]')){i.preventDefault(),yt();return}let b=o?.closest("button[data-record-state], a[data-record-state]");if(b){i.preventDefault(),Xe(),Z.set({...Z(),[b.getAttribute("data-record-state")??""]:b.getAttribute("data-record-value")??""});return}let O=o?.closest(`[${Ba}]`);if(O){i.preventDefault(),Q(oe(),"record");let A=document.activeElement;$=A instanceof HTMLElement&&O.contains(A)?A:O.querySelector(Va),x.set(E());let de={};for(let[ye,V]of Object.entries(O.dataset))ye.startsWith("recordParam")&&V!==void 0&&(de[ye.slice(11).replace(/^./u,Ve=>Ve.toLowerCase())]=V);u.set([]),N.set(null),F.set({name:O.getAttribute(Ba)??"",params:de}),pe();return}if(o?.closest('button[name="intent"][value="retry"]')){i.preventDefault();let A=t();A&&Y(A.id);return}}let v=Vn(o);if(!v)return;let S=new URL(v,location.href);if(S.origin!==location.origin||S.pathname!==location.pathname)return;let y=me(S);if(!y||y.kind!==e.kind)return;i.preventDefault();let X=t(),U="route"in e.context?e.context.query??[]:[],j=new URL(location.href);if(U.some(b=>j.searchParams.get(b)!==S.searchParams.get(b))){Q(oe(),"record");for(let b of U){let O=S.searchParams.get(b);O===null?j.searchParams.delete(b):j.searchParams.set(b,O)}history.replaceState(history.state??{},"",j.href),X?.id===y.id&&Y(X.id)}if(X?.id===y.id){if((y.tab??"")===X.tab)return;Q(oe(),"record"),u.set([]),N.set(null),G(y.id,y.tab??null,"replace",()=>oe()?.querySelector('[data-ui="tab"][data-active="true"]')??null);return}G(y.id,y.tab??null,"push")},{signal:c,capture:!0}),document.addEventListener("keydown",i=>{if(i.defaultPrevented||i.key!=="Enter"&&i.key!==" ")return;let o=i.target instanceof Element?i.target:null;if(!o?.matches('[data-row-href][tabindex="0"]'))return;let g=o.getAttribute("data-row-href"),v=g?new URL(g,location.href):null;if(!v||v.origin!==location.origin||v.pathname!==location.pathname)return;let S=me(v);!S||S.kind!==e.kind||(i.preventDefault(),G(S.id,S.tab??null,"push"))},{signal:c,capture:!0}),document.addEventListener("submit",i=>{let o=i.target instanceof HTMLFormElement?i.target:null;if(!o||!C?.contains(o))return;i.preventDefault();let g=i.submitter??null,v=(g instanceof HTMLButtonElement&&g.name===Te?g.value:null)??String(new FormData(o).get(Te)??"");Wa(v,o,g)},{signal:c}),document.addEventListener("keydown",i=>{if(!t())return;let o=C?.querySelectorAll('[data-ui="modal-layer"][data-client-modal="true"]'),g=o?.[o.length-1];if(!g)return;if(i.key==="Escape"){i.preventDefault(),yt();return}if(i.key!=="Tab")return;let v=qa(g);if(!v.length){i.preventDefault(),g.querySelector('[data-ui="modal-sheet"]')?.focus();return}let S=v[0],y=v.at(-1);i.shiftKey&&(document.activeElement===S||!g.contains(document.activeElement))?(i.preventDefault(),y.focus()):!i.shiftKey&&(document.activeElement===y||!g.contains(document.activeElement))&&(i.preventDefault(),S.focus())},{signal:c}),document.addEventListener("change",i=>{let o=i.target instanceof Element?i.target:null;if(!o||!C?.contains(o))return;if(o instanceof HTMLInputElement&&o.type==="checkbox"&&o.form){let v=o.form;if(v.querySelector(`input[type="checkbox"][name^="${Be}"]`)){if(o.name.startsWith(Be)){let S=o.name.slice(Be.length);for(let y of v.querySelectorAll('input[type="checkbox"]'))!y.disabled&&!y.name.startsWith(Be)&&y.name.startsWith(S)&&(y.checked=o.checked)}Xe();return}}let g=o.getAttribute("data-record-state")??(["relation-native","reorder-list-value"].includes(o.getAttribute("data-ui")??"")?o.getAttribute("name"):null);if((o instanceof HTMLSelectElement||o instanceof HTMLInputElement)&&g){Xe(),Z.set({...Z(),[g]:o.value});return}o instanceof HTMLInputElement&&o.type==="file"&&o.hasAttribute("data-record-submit")&&o.files?.length&&o.form?.requestSubmit()},{signal:c});let m=i=>{let g=(i.target instanceof Element?i.target:null)?.closest("form[data-record-dropzone]")??null;return g&&C?.contains(g)?g:null};document.addEventListener("dragover",i=>{let o=m(i);o&&(i.preventDefault(),o.dataset.drag="1")},{signal:c}),document.addEventListener("dragleave",i=>{let o=m(i);if(!o)return;let g=i.relatedTarget;g instanceof Node&&o.contains(g)||delete o.dataset.drag},{signal:c}),document.addEventListener("drop",i=>{let o=m(i);if(!o)return;i.preventDefault(),delete o.dataset.drag;let g=i.dataTransfer?.files,v=o.querySelector('input[type="file"]');if(!v||!g?.length)return;let S=new DataTransfer;S.items.add(g[0]),v.files=S.files,o.requestSubmit()},{signal:c});let d="ket-island, div[data-ket-island]",l=i=>i instanceof Element&&(i.matches(d)||i.querySelector(d)!==null),h=new MutationObserver(i=>{se();for(let o of i){for(let g of o.removedNodes)l(g)&&document.dispatchEvent(new CustomEvent("ket:islands-detach",{detail:{root:g}}));for(let g of o.addedNodes)l(g)&&g.isConnected&&document.dispatchEvent(new CustomEvent("ket:islands-attach",{detail:{root:g}}))}});h.observe(C,{childList:!0,subtree:!0,characterData:!0}),c.addEventListener("abort",()=>h.disconnect()),window.addEventListener("resize",se,{signal:c}),C.addEventListener("load",se,{capture:!0,signal:c}),C.addEventListener("toggle",se,{capture:!0,signal:c}),document.fonts?.ready.then(()=>{c.aborted||se()}),se(),document.addEventListener("ket:records-changed",i=>{let o=i.detail;if(o?.kind===e.kind)if(!Array.isArray(o.ids)||!o.ids.length)I.clear();else for(let g of o.ids)I.delete(String(g))},{signal:c}),document.addEventListener("ket:popstate",i=>{let o=me(location.href),g=o?.kind===e.kind;!g&&!t()||(i.preventDefault(),g&&o?G(o.id,o.tab??null,"none"):he("none"))},{signal:c}),document.addEventListener("ket:navigation-complete",()=>{let i=me(location.href);i?.kind===e.kind&&!t()&&G(i.id,i.tab??null,"none")},{signal:c});let p=me(location.href);p?.kind===e.kind&&G(p.id,p.tab??null,"none"),c.addEventListener("abort",()=>{Le?.abort(),mt.stop(),re?.(),re=null,C=null})}}};import{jsx as q}from"/_ket/view/jsx-runtime.js";var Ga=()=>typeof document<"u"&&document.documentElement.lang==="en"?"en":"vi",qe="product-attribute-draft",Ce="attributeValuesOrder",R=(e,t)=>e.t(`product_backend.${t}`),ie=(e,t)=>`attributeValue.${e}.${t}`,ct=e=>{let t=e.data.record.values.map(n=>n.id),a=t;try{let n=JSON.parse(e.state(Ce,JSON.stringify(t)));Array.isArray(n)&&n.every(s=>typeof s=="string")&&(a=[...new Set(n)])}catch{}return a.map((n,s)=>{let u=e.data.record.values.find(f=>f.id===n);return{id:n,name:e.draft(ie(n,"name"),u?.name??""),htmlColor:e.draft(ie(n,"htmlColor"),u?.htmlColor??(e.draft("displayType",e.data.record.displayType)==="color"?"#000000":""))||null,sequence:s}})},zn=e=>({...e.data.record,name:e.draft("name",e.data.record.name),displayType:e.draft("displayType",e.data.record.displayType),createVariant:e.draft("createVariant",e.data.record.createVariant),values:ct(e)}),Gn=(e,t)=>{let a={...e.data.record,values:e.data.record.values.map((n,s)=>({id:n.id,name:n.name,htmlColor:n.htmlColor||(e.data.record.displayType==="color"?"#000000":null),sequence:s}))};return JSON.stringify(t)!==JSON.stringify(a)},Re=(e,t)=>({...t,id:`${qe}-${t.name}`,disabled:!e.data.permissions.save||e.busy,error:e.fieldError(t.name),value:e.draft(t.name,String(t.value??""))}),Un=e=>{let t=zn(e),a=(n,s)=>s.map(u=>({value:u,label:R(e,`${n}.${u}`)}));return q(ot,{kind:e.kind,id:qe,command:"save",dirty:Gn(e,t),fields:[Re(e,{name:"name",label:R(e,"field.name"),value:t.name,required:!0,span:"full"}),{...Re(e,{name:"displayType",label:R(e,"attributes.displayType"),value:t.displayType}),control:lt({id:`${qe}-displayType`,name:"displayType",state:"displayType",value:t.displayType,disabled:!e.data.permissions.save||e.busy,options:a("displayType",["radio","pills","select","color","multi"])})},Re(e,{name:"createVariant",label:R(e,"attributes.createVariant"),type:"select",value:t.createVariant,options:a("createVariant",["always","no_variant"])})],body:q(Oe,{title:R(e,"attributes.values"),description:e.fieldError(Ce),body:q(nt,{id:"product-attribute-values",name:Ce,label:R(e,"attributes.values"),disabled:!e.data.permissions.save||e.busy,labels:{add:R(e,"attributes.addValue"),remove:R(e,"attributes.removeValue"),up:R(e,"attributes.moveUp"),down:R(e,"attributes.moveDown"),drag:R(e,"attributes.dragValue"),empty:R(e,"attributes.emptyValues")},items:t.values.map(n=>{let s=q(K,{...Re(e,{name:ie(n.id,"name"),label:R(e,"attributes.valueName"),required:!0,value:n.name})});return{id:n.id,content:t.displayType==="color"?q(Ge,{columns:2,items:[s,q(K,{...Re(e,{name:ie(n.id,"htmlColor"),label:R(e,"attributes.color"),type:"color",value:n.htmlColor||"#000000"})})]}):s}})})})})},_n={kind:"product.attribute",labels:()=>xt[Ga()],size:"large",context:{fn:"product.attributeModalContext",input:(e,t)=>({...t?{}:{id:e},locale:Ga()})},title:e=>e.creating?R(e,"attributes.createTitle"):e.data.record.name,body:Un,actions:e=>q(et,{actions:[...e.data.permissions.save?[q(w,{type:"submit",form:qe,label:R(e,"action.save"),variant:"primary",loading:e.busy})]:[],q(st,{children:q(w,{label:e.t("recordModal.close"),variant:"tertiary"})})]}),commands:{save:{fn:"product.saveAttributeDraft",issueField:(e,t,a)=>{if(e==="values")return Ce;let n=/^values\.(\d+)\.(name|htmlColor|id)$/.exec(e);if(!n)return e;let s=ct(a).map(f=>f.id);try{let f=JSON.parse(String(t.get(Ce)??"null"));Array.isArray(f)&&f.every(x=>typeof x=="string")&&(s=f)}catch{}let u=s[Number(n[1])];return u?ie(u,n[2]==="id"?"name":n[2]):e},input:(e,t)=>({id:t.creating?crypto.randomUUID():t.id,name:String(e.get("name")??t.draft("name",t.data.record.name)).trim(),displayType:String(e.get("displayType")??t.data.record.displayType),createVariant:String(e.get("createVariant")??t.data.record.createVariant),sequence:t.data.record.sequence,values:ct(t).map((a,n)=>({id:a.id,name:String(e.get(ie(a.id,"name"))??a.name).trim(),htmlColor:String(e.get(ie(a.id,"htmlColor"))??a.htmlColor??"").trim()||null,sequence:n}))}),after:"close"}}},Sf=za(_n);export{Sf as attributeModal,_n as attributeModalDefinition};
|