shutro-erp 0.3.5 → 0.3.7
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/account_asset/.kosh/bindings.js +15 -0
- package/dist/{mrp_account → account_asset}/.kosh/schema.d.ts +785 -614
- package/dist/account_asset/board.d.ts +61 -0
- package/dist/account_asset/board.js +86 -0
- package/dist/account_asset/books.d.ts +42 -0
- package/dist/account_asset/books.js +398 -0
- package/dist/account_asset/demo.d.ts +7 -0
- package/dist/account_asset/demo.js +72 -0
- package/dist/account_asset/i18n/bn.d.ts +2 -0
- package/dist/account_asset/i18n/bn.js +97 -0
- package/dist/account_asset/index.d.ts +9 -0
- package/dist/account_asset/index.js +337 -0
- package/dist/account_asset/module.d.ts +11076 -0
- package/dist/account_asset/module.js +230 -0
- package/dist/account_budget/.kosh/bindings.js +15 -0
- package/dist/account_budget/.kosh/schema.d.ts +2841 -0
- package/dist/account_budget/budget.d.ts +5 -0
- package/dist/account_budget/budget.js +142 -0
- package/dist/account_budget/demo.d.ts +6 -0
- package/dist/account_budget/demo.js +30 -0
- package/dist/account_budget/i18n/bn.d.ts +2 -0
- package/dist/account_budget/i18n/bn.js +63 -0
- package/dist/account_budget/index.d.ts +4 -0
- package/dist/account_budget/index.js +237 -0
- package/dist/account_budget/module.d.ts +27289 -0
- package/dist/account_budget/module.js +182 -0
- package/dist/account_portal/.kosh/bindings.js +1 -1
- package/dist/account_portal/.kosh/schema.d.ts +651 -10
- package/dist/account_portal/i18n/bn.d.ts +2 -0
- package/dist/account_portal/i18n/bn.js +6 -0
- package/dist/account_portal/index.js +2 -0
- package/dist/account_portal/module.d.ts +5212 -1592
- package/dist/accounting/.kosh/bindings.js +1 -1
- package/dist/accounting/.kosh/schema.d.ts +651 -10
- package/dist/accounting/closing.js +1 -0
- package/dist/accounting/fiscal.d.ts +578 -0
- package/dist/accounting/fiscal.js +401 -0
- package/dist/accounting/followups.d.ts +618 -0
- package/dist/accounting/followups.js +420 -0
- package/dist/accounting/i18n/bn.d.ts +2 -0
- package/dist/accounting/i18n/bn.js +425 -0
- package/dist/accounting/index.d.ts +3 -1
- package/dist/accounting/index.js +780 -5
- package/dist/accounting/module.d.ts +5386 -1543
- package/dist/accounting/module.js +155 -18
- package/dist/accounting/statements.d.ts +878 -0
- package/dist/accounting/statements.js +728 -0
- package/dist/accounting/web/BankReconcilePage.d.ts +9 -0
- package/dist/accounting/web/BankReconcilePage.js +138 -0
- package/dist/accounting/web/FollowupsPage.d.ts +8 -0
- package/dist/accounting/web/FollowupsPage.js +54 -0
- package/dist/accounting/web/PostingPreview.d.ts +8 -0
- package/dist/accounting/web/PostingPreview.js +26 -0
- package/dist/accounting/web/index.d.ts +3 -0
- package/dist/accounting/web/index.js +9 -0
- package/dist/accounting/web/messages.js +140 -0
- package/dist/approvals/.kosh/bindings.d.ts +22 -0
- package/dist/approvals/.kosh/bindings.js +15 -0
- package/dist/approvals/.kosh/schema.d.ts +879 -0
- package/dist/approvals/demo.d.ts +7 -0
- package/dist/approvals/demo.js +41 -0
- package/dist/approvals/i18n/bn.d.ts +2 -0
- package/dist/approvals/i18n/bn.js +133 -0
- package/dist/approvals/index.d.ts +36 -0
- package/dist/approvals/index.js +772 -0
- package/dist/approvals/mails.d.ts +30 -0
- package/dist/approvals/mails.js +87 -0
- package/dist/approvals/module.d.ts +2930 -0
- package/dist/approvals/module.js +473 -0
- package/dist/approvals/web/Config.d.ts +12 -0
- package/dist/approvals/web/Config.js +60 -0
- package/dist/approvals/web/History.d.ts +4 -0
- package/dist/approvals/web/History.js +13 -0
- package/dist/approvals/web/Inbox.d.ts +9 -0
- package/dist/approvals/web/Inbox.js +114 -0
- package/dist/approvals/web/Matrix.d.ts +9 -0
- package/dist/approvals/web/Matrix.js +26 -0
- package/dist/approvals/web/Mine.d.ts +7 -0
- package/dist/approvals/web/Mine.js +27 -0
- package/dist/approvals/web/index.d.ts +15 -0
- package/dist/approvals/web/index.js +29 -0
- package/dist/approvals/web/messages.d.ts +2 -0
- package/dist/approvals/web/messages.js +211 -0
- package/dist/approvals/web/shared.d.ts +59 -0
- package/dist/approvals/web/shared.js +46 -0
- package/dist/approvals_purchase/.kosh/bindings.d.ts +22 -0
- package/dist/approvals_purchase/.kosh/bindings.js +15 -0
- package/dist/approvals_purchase/.kosh/schema.d.ts +1997 -0
- package/dist/approvals_purchase/i18n/bn.d.ts +2 -0
- package/dist/approvals_purchase/i18n/bn.js +5 -0
- package/dist/approvals_purchase/index.d.ts +3 -0
- package/dist/approvals_purchase/index.js +47 -0
- package/dist/approvals_purchase/module.d.ts +12670 -0
- package/dist/approvals_purchase/module.js +84 -0
- package/dist/attendance/.kosh/bindings.d.ts +22 -0
- package/dist/attendance/.kosh/bindings.js +15 -0
- package/dist/attendance/.kosh/schema.d.ts +1106 -0
- package/dist/attendance/days.d.ts +96 -0
- package/dist/attendance/days.js +430 -0
- package/dist/attendance/demo.d.ts +7 -0
- package/dist/attendance/demo.js +58 -0
- package/dist/attendance/i18n/bn.d.ts +2 -0
- package/dist/attendance/i18n/bn.js +147 -0
- package/dist/attendance/index.d.ts +4 -0
- package/dist/attendance/index.js +515 -0
- package/dist/attendance/module.d.ts +4413 -0
- package/dist/attendance/module.js +412 -0
- package/dist/attendance/routes.d.ts +16 -0
- package/dist/attendance/routes.js +266 -0
- package/dist/attendance/web/Check.d.ts +8 -0
- package/dist/attendance/web/Check.js +40 -0
- package/dist/attendance/web/Kiosk.d.ts +8 -0
- package/dist/attendance/web/Kiosk.js +62 -0
- package/dist/attendance/web/PinButton.d.ts +7 -0
- package/dist/attendance/web/PinButton.js +29 -0
- package/dist/attendance/web/index.d.ts +13 -0
- package/dist/attendance/web/index.js +22 -0
- package/dist/attendance/web/messages.d.ts +2 -0
- package/dist/attendance/web/messages.js +61 -0
- package/dist/automation/engine.js +1 -1
- package/dist/calendar/.kosh/bindings.js +1 -1
- package/dist/calendar/.kosh/schema.d.ts +2 -1
- package/dist/calendar/i18n/bn.d.ts +2 -0
- package/dist/calendar/i18n/bn.js +80 -0
- package/dist/calendar/index.js +77 -0
- package/dist/calendar/module.d.ts +26 -0
- package/dist/calendar/module.js +14 -4
- package/dist/cli/apps.js +25 -5
- package/dist/cli/init.js +46 -4
- package/dist/cli/templates.d.ts +1 -1
- package/dist/cli/templates.js +123 -5
- package/dist/contacts/.kosh/bindings.js +1 -1
- package/dist/contacts/.kosh/schema.d.ts +2 -1
- package/dist/contacts/i18n/bn.d.ts +2 -0
- package/dist/contacts/i18n/bn.js +67 -0
- package/dist/contacts/index.js +3 -0
- package/dist/contacts/module.d.ts +42 -0
- package/dist/contacts/module.js +19 -3
- package/dist/crm/.kosh/bindings.js +1 -1
- package/dist/crm/.kosh/schema.d.ts +3 -1
- package/dist/crm/i18n/bn.d.ts +2 -0
- package/dist/crm/i18n/bn.js +80 -0
- package/dist/crm/index.js +22 -0
- package/dist/crm/module.d.ts +22 -0
- package/dist/crm/module.js +6 -3
- package/dist/documents/.kosh/bindings.d.ts +22 -0
- package/dist/documents/.kosh/bindings.js +15 -0
- package/dist/documents/.kosh/schema.d.ts +863 -0
- package/dist/documents/demo.d.ts +6 -0
- package/dist/documents/demo.js +22 -0
- package/dist/documents/documents.d.ts +98 -0
- package/dist/documents/documents.js +318 -0
- package/dist/documents/i18n/bn.d.ts +2 -0
- package/dist/documents/i18n/bn.js +83 -0
- package/dist/documents/index.d.ts +30 -0
- package/dist/documents/index.js +569 -0
- package/dist/documents/module.d.ts +2801 -0
- package/dist/documents/module.js +215 -0
- package/dist/documents/web/Versions.d.ts +7 -0
- package/dist/documents/web/Versions.js +45 -0
- package/dist/documents/web/index.d.ts +11 -0
- package/dist/documents/web/index.js +16 -0
- package/dist/documents/web/messages.d.ts +2 -0
- package/dist/documents/web/messages.js +21 -0
- package/dist/event/.kosh/bindings.js +1 -1
- package/dist/event/.kosh/schema.d.ts +2 -1
- package/dist/event/i18n/bn.d.ts +2 -0
- package/dist/event/i18n/bn.js +101 -0
- package/dist/event/index.js +66 -0
- package/dist/event/module.d.ts +20 -0
- package/dist/event/module.js +8 -1
- package/dist/event_account/.kosh/bindings.js +1 -1
- package/dist/event_account/.kosh/schema.d.ts +651 -10
- package/dist/event_account/i18n/bn.d.ts +2 -0
- package/dist/event_account/i18n/bn.js +5 -0
- package/dist/event_account/index.js +2 -0
- package/dist/event_account/module.d.ts +5133 -1513
- package/dist/expense/.kosh/bindings.d.ts +22 -0
- package/dist/expense/.kosh/bindings.js +15 -0
- package/dist/expense/.kosh/schema.d.ts +1620 -0
- package/dist/expense/demo.d.ts +7 -0
- package/dist/expense/demo.js +69 -0
- package/dist/expense/i18n/bn.d.ts +2 -0
- package/dist/expense/i18n/bn.js +155 -0
- package/dist/expense/index.d.ts +3 -0
- package/dist/expense/index.js +502 -0
- package/dist/expense/module.d.ts +6768 -0
- package/dist/expense/module.js +649 -0
- package/dist/expense_account/.kosh/bindings.d.ts +22 -0
- package/dist/expense_account/.kosh/bindings.js +15 -0
- package/dist/expense_account/.kosh/schema.d.ts +2515 -0
- package/dist/expense_account/i18n/bn.d.ts +2 -0
- package/dist/expense_account/i18n/bn.js +15 -0
- package/dist/expense_account/index.d.ts +3 -0
- package/dist/expense_account/index.js +76 -0
- package/dist/expense_account/module.d.ts +14628 -0
- package/dist/expense_account/module.js +318 -0
- package/dist/helpdesk/.kosh/bindings.d.ts +22 -0
- package/dist/helpdesk/.kosh/bindings.js +15 -0
- package/dist/helpdesk/.kosh/schema.d.ts +886 -0
- package/dist/helpdesk/demo.d.ts +7 -0
- package/dist/helpdesk/demo.js +65 -0
- package/dist/helpdesk/hours.d.ts +17 -0
- package/dist/helpdesk/hours.js +94 -0
- package/dist/helpdesk/i18n/bn.d.ts +2 -0
- package/dist/helpdesk/i18n/bn.js +127 -0
- package/dist/helpdesk/index.d.ts +10 -0
- package/dist/helpdesk/index.js +463 -0
- package/dist/helpdesk/module.d.ts +2960 -0
- package/dist/helpdesk/module.js +326 -0
- package/dist/helpdesk/routes.d.ts +12 -0
- package/dist/helpdesk/routes.js +132 -0
- package/dist/helpdesk/sla.d.ts +37 -0
- package/dist/helpdesk/sla.js +226 -0
- package/dist/hr/.kosh/bindings.js +1 -1
- package/dist/hr/.kosh/schema.d.ts +59 -1
- package/dist/hr/demo.js +11 -1
- package/dist/hr/i18n/bn.d.ts +2 -0
- package/dist/hr/i18n/bn.js +126 -0
- package/dist/hr/index.d.ts +1 -1
- package/dist/hr/index.js +158 -12
- package/dist/hr/module.d.ts +932 -59
- package/dist/hr/module.js +114 -17
- package/dist/indent/.kosh/bindings.d.ts +22 -0
- package/dist/indent/.kosh/bindings.js +15 -0
- package/dist/indent/.kosh/schema.d.ts +2084 -0
- package/dist/indent/demo.d.ts +7 -0
- package/dist/indent/demo.js +48 -0
- package/dist/indent/i18n/bn.d.ts +2 -0
- package/dist/indent/i18n/bn.js +143 -0
- package/dist/indent/index.d.ts +3 -0
- package/dist/indent/index.js +450 -0
- package/dist/indent/module.d.ts +13424 -0
- package/dist/indent/module.js +792 -0
- package/dist/indent_purchase/.kosh/bindings.d.ts +22 -0
- package/dist/indent_purchase/.kosh/bindings.js +15 -0
- package/dist/indent_purchase/.kosh/schema.d.ts +2710 -0
- package/dist/indent_purchase/i18n/bn.d.ts +2 -0
- package/dist/indent_purchase/i18n/bn.js +13 -0
- package/dist/indent_purchase/index.d.ts +3 -0
- package/dist/indent_purchase/index.js +61 -0
- package/dist/indent_purchase/module.d.ts +27950 -0
- package/dist/indent_purchase/module.js +163 -0
- package/dist/l10n_bd/.kosh/bindings.js +1 -1
- package/dist/l10n_bd/.kosh/schema.d.ts +651 -10
- package/dist/l10n_bd/i18n/bn.d.ts +2 -0
- package/dist/l10n_bd/i18n/bn.js +69 -0
- package/dist/l10n_bd/index.js +2 -0
- package/dist/l10n_bd/module.d.ts +5212 -1592
- package/dist/l10n_bd_payroll/.kosh/bindings.d.ts +22 -0
- package/dist/l10n_bd_payroll/.kosh/bindings.js +15 -0
- package/dist/l10n_bd_payroll/.kosh/schema.d.ts +2891 -0
- package/dist/l10n_bd_payroll/data.d.ts +47 -0
- package/dist/l10n_bd_payroll/data.js +347 -0
- package/dist/l10n_bd_payroll/i18n/bn.d.ts +2 -0
- package/dist/l10n_bd_payroll/i18n/bn.js +4 -0
- package/dist/l10n_bd_payroll/index.d.ts +4 -0
- package/dist/l10n_bd_payroll/index.js +26 -0
- package/dist/l10n_bd_payroll/module.d.ts +17294 -0
- package/dist/l10n_bd_payroll/module.js +86 -0
- package/dist/l10n_bd_pos/.kosh/bindings.d.ts +22 -0
- package/dist/{mrp_account → l10n_bd_pos}/.kosh/bindings.js +2 -2
- package/dist/l10n_bd_pos/.kosh/schema.d.ts +2341 -0
- package/dist/l10n_bd_pos/i18n/bn.d.ts +2 -0
- package/dist/l10n_bd_pos/i18n/bn.js +32 -0
- package/dist/l10n_bd_pos/index.d.ts +3 -0
- package/dist/l10n_bd_pos/index.js +111 -0
- package/dist/{mrp_account → l10n_bd_pos}/module.d.ts +9047 -6981
- package/dist/l10n_bd_pos/module.js +43 -0
- package/dist/l10n_in/.kosh/bindings.js +1 -1
- package/dist/l10n_in/.kosh/schema.d.ts +651 -10
- package/dist/l10n_in/i18n/bn.d.ts +2 -0
- package/dist/l10n_in/i18n/bn.js +95 -0
- package/dist/l10n_in/index.js +2 -0
- package/dist/l10n_in/module.d.ts +6778 -1580
- package/dist/l10n_in/module.js +25 -5
- package/dist/l10n_in/web/GstSettings.js +2 -2
- package/dist/mail/inbound/handle.js +8 -5
- package/dist/mail/inbound/models.js +5 -3
- package/dist/mail/index.d.ts +12 -1
- package/dist/mail/index.js +139 -2
- package/dist/mail/send.d.ts +56 -0
- package/dist/mail/send.js +394 -0
- package/dist/mail/web/SendButton.d.ts +9 -0
- package/dist/mail/web/SendButton.js +71 -0
- package/dist/mail/web/SendSelected.d.ts +8 -0
- package/dist/mail/web/SendSelected.js +33 -0
- package/dist/mail/web/index.d.ts +2 -0
- package/dist/mail/web/index.js +6 -0
- package/dist/mail/web/messages.js +36 -0
- package/dist/maintenance/.kosh/bindings.js +1 -1
- package/dist/maintenance/.kosh/schema.d.ts +2 -1
- package/dist/maintenance/i18n/bn.d.ts +2 -0
- package/dist/maintenance/i18n/bn.js +132 -0
- package/dist/maintenance/index.js +85 -0
- package/dist/maintenance/module.d.ts +25 -0
- package/dist/maintenance/module.js +27 -9
- package/dist/maintenance_stock/.kosh/bindings.js +1 -1
- package/dist/maintenance_stock/.kosh/schema.d.ts +374 -3
- package/dist/maintenance_stock/i18n/bn.d.ts +2 -0
- package/dist/maintenance_stock/i18n/bn.js +21 -0
- package/dist/maintenance_stock/index.js +2 -0
- package/dist/maintenance_stock/module.d.ts +6095 -1327
- package/dist/maintenance_stock/module.js +1 -0
- package/dist/modules-sdk/apps.d.ts +10 -0
- package/dist/modules-sdk/apps.js +32 -0
- package/dist/modules-sdk/index.d.ts +1 -1
- package/dist/modules-sdk/manifest.d.ts +105 -2
- package/dist/payment/.kosh/bindings.js +1 -1
- package/dist/payment/.kosh/schema.d.ts +653 -11
- package/dist/payment/i18n/bn.d.ts +2 -0
- package/dist/payment/i18n/bn.js +59 -0
- package/dist/payment/index.d.ts +41 -0
- package/dist/payment/index.js +216 -74
- package/dist/payment/module.d.ts +5353 -1675
- package/dist/payment/module.js +36 -6
- package/dist/payment/settle.js +11 -1
- package/dist/payroll/.kosh/bindings.d.ts +22 -0
- package/dist/payroll/.kosh/bindings.js +15 -0
- package/dist/payroll/.kosh/schema.d.ts +1448 -0
- package/dist/payroll/compute.d.ts +35 -0
- package/dist/payroll/compute.js +398 -0
- package/dist/payroll/demo.d.ts +55 -0
- package/dist/payroll/demo.js +121 -0
- package/dist/payroll/formula.d.ts +62 -0
- package/dist/payroll/formula.js +320 -0
- package/dist/payroll/i18n/bn.d.ts +2 -0
- package/dist/payroll/i18n/bn.js +206 -0
- package/dist/payroll/index.d.ts +230 -0
- package/dist/payroll/index.js +715 -0
- package/dist/{mrp → payroll}/module.d.ts +4294 -2624
- package/dist/payroll/module.js +606 -0
- package/dist/payroll/routes.d.ts +10 -0
- package/dist/payroll/routes.js +112 -0
- package/dist/payroll_account/.kosh/bindings.d.ts +22 -0
- package/dist/payroll_account/.kosh/bindings.js +15 -0
- package/dist/payroll_account/.kosh/schema.d.ts +2887 -0
- package/dist/payroll_account/i18n/bn.d.ts +2 -0
- package/dist/payroll_account/i18n/bn.js +10 -0
- package/dist/payroll_account/index.d.ts +3 -0
- package/dist/payroll_account/index.js +42 -0
- package/dist/payroll_account/module.d.ts +16738 -0
- package/dist/payroll_account/module.js +256 -0
- package/dist/permissions/approvals.d.ts +227 -12
- package/dist/permissions/approvals.js +1421 -67
- package/dist/permissions/index.d.ts +1 -1
- package/dist/permissions/index.js +2 -2
- package/dist/permissions/models.js +364 -13
- package/dist/permissions/routes.d.ts +9 -1
- package/dist/permissions/routes.js +72 -5
- package/dist/permissions/web/ApprovalPanel.d.ts +5 -4
- package/dist/permissions/web/ApprovalPanel.js +75 -11
- package/dist/permissions/web/index.d.ts +6 -4
- package/dist/permissions/web/index.js +13 -4
- package/dist/permissions/web/messages.d.ts +2 -0
- package/dist/permissions/web/messages.js +95 -0
- package/dist/portal/.kosh/bindings.js +1 -1
- package/dist/portal/.kosh/schema.d.ts +2 -1
- package/dist/portal/documents.d.ts +3 -0
- package/dist/portal/documents.js +21 -1
- package/dist/portal/i18n/bn.d.ts +2 -0
- package/dist/portal/i18n/bn.js +33 -0
- package/dist/portal/index.js +3 -1
- package/dist/portal/module.d.ts +20 -0
- package/dist/portal/routes-documents.js +76 -0
- package/dist/pos/.kosh/bindings.js +1 -1
- package/dist/pos/.kosh/schema.d.ts +652 -10
- package/dist/pos/i18n/bn.d.ts +2 -0
- package/dist/pos/i18n/bn.js +133 -0
- package/dist/pos/index.js +87 -1
- package/dist/pos/module.d.ts +6967 -1709
- package/dist/pos/module.js +49 -5
- package/dist/pos/routes.js +80 -7
- package/dist/pos/web/Register.js +2 -5
- package/dist/pos_stock/.kosh/bindings.js +1 -1
- package/dist/pos_stock/.kosh/schema.d.ts +822 -12
- package/dist/pos_stock/i18n/bn.d.ts +2 -0
- package/dist/pos_stock/i18n/bn.js +6 -0
- package/dist/pos_stock/index.js +2 -0
- package/dist/pos_stock/module.d.ts +11241 -2851
- package/dist/product/.kosh/bindings.js +1 -1
- package/dist/product/.kosh/schema.d.ts +203 -1
- package/dist/product/i18n/bn.d.ts +2 -0
- package/dist/product/i18n/bn.js +175 -0
- package/dist/product/index.d.ts +1 -0
- package/dist/product/index.js +301 -1
- package/dist/product/module.d.ts +1727 -0
- package/dist/product/module.js +67 -6
- package/dist/product/pricelist.d.ts +575 -0
- package/dist/product/pricelist.js +257 -0
- package/dist/product/variants.d.ts +908 -0
- package/dist/product/variants.js +251 -0
- package/dist/production/.kosh/bindings.d.ts +22 -0
- package/dist/production/.kosh/bindings.js +15 -0
- package/dist/production/.kosh/schema.d.ts +2345 -0
- package/dist/{mrp → production}/demo.d.ts +1 -1
- package/dist/{mrp → production}/demo.js +5 -5
- package/dist/production/depth.d.ts +790 -0
- package/dist/production/depth.js +262 -0
- package/dist/production/i18n/bn.d.ts +2 -0
- package/dist/production/i18n/bn.js +350 -0
- package/dist/production/index.d.ts +6 -0
- package/dist/production/index.js +1256 -0
- package/dist/production/module.d.ts +17327 -0
- package/dist/production/module.js +1333 -0
- package/dist/production/plan.d.ts +921 -0
- package/dist/production/plan.js +511 -0
- package/dist/production/schedule.d.ts +656 -0
- package/dist/production/schedule.js +309 -0
- package/dist/production_account/.kosh/bindings.d.ts +22 -0
- package/dist/production_account/.kosh/bindings.js +15 -0
- package/dist/production_account/.kosh/schema.d.ts +3496 -0
- package/dist/production_account/i18n/bn.d.ts +2 -0
- package/dist/production_account/i18n/bn.js +93 -0
- package/dist/production_account/index.d.ts +4 -0
- package/dist/production_account/index.js +246 -0
- package/dist/production_account/module.d.ts +1192 -0
- package/dist/{mrp_account → production_account}/module.js +72 -18
- package/dist/production_account/overhead.d.ts +1195 -0
- package/dist/production_account/overhead.js +554 -0
- package/dist/project/.kosh/bindings.js +1 -1
- package/dist/project/.kosh/schema.d.ts +735 -1
- package/dist/project/i18n/bn.d.ts +2 -0
- package/dist/project/i18n/bn.js +383 -0
- package/dist/project/index.d.ts +3 -1
- package/dist/project/index.js +1024 -14
- package/dist/project/module.d.ts +9912 -390
- package/dist/project/module.js +1590 -14
- package/dist/project/routes.d.ts +44 -0
- package/dist/project/routes.js +314 -0
- package/dist/project/schedule.d.ts +72 -0
- package/dist/project/schedule.js +192 -0
- package/dist/project/web/Refresh.d.ts +8 -0
- package/dist/project/web/Refresh.js +29 -0
- package/dist/project/web/Schedule.d.ts +9 -0
- package/dist/project/web/Schedule.js +93 -0
- package/dist/project/web/Structure.d.ts +8 -0
- package/dist/project/web/Structure.js +86 -0
- package/dist/project/web/Workload.d.ts +8 -0
- package/dist/project/web/Workload.js +43 -0
- package/dist/project/web/index.d.ts +14 -0
- package/dist/project/web/index.js +25 -0
- package/dist/project/web/messages.d.ts +2 -0
- package/dist/project/web/messages.js +85 -0
- package/dist/project_account/.kosh/bindings.d.ts +22 -0
- package/dist/project_account/.kosh/bindings.js +15 -0
- package/dist/project_account/.kosh/schema.d.ts +2763 -0
- package/dist/project_account/i18n/bn.d.ts +2 -0
- package/dist/project_account/i18n/bn.js +6 -0
- package/dist/project_account/index.d.ts +3 -0
- package/dist/project_account/index.js +29 -0
- package/dist/project_account/module.d.ts +15013 -0
- package/dist/project_account/module.js +76 -0
- package/dist/project_portal/.kosh/bindings.js +1 -1
- package/dist/project_portal/.kosh/schema.d.ts +735 -1
- package/dist/project_portal/i18n/bn.d.ts +2 -0
- package/dist/project_portal/i18n/bn.js +6 -0
- package/dist/project_portal/index.js +2 -0
- package/dist/project_portal/module.d.ts +4796 -87
- package/dist/project_purchase/.kosh/bindings.d.ts +22 -0
- package/dist/project_purchase/.kosh/bindings.js +15 -0
- package/dist/project_purchase/.kosh/schema.d.ts +3393 -0
- package/dist/project_purchase/i18n/bn.d.ts +2 -0
- package/dist/project_purchase/i18n/bn.js +4 -0
- package/dist/project_purchase/index.d.ts +9 -0
- package/dist/project_purchase/index.js +24 -0
- package/dist/project_purchase/module.d.ts +38613 -0
- package/dist/project_purchase/module.js +56 -0
- package/dist/purchase/.kosh/bindings.js +1 -1
- package/dist/purchase/.kosh/schema.d.ts +908 -5
- package/dist/purchase/comparison.d.ts +993 -0
- package/dist/purchase/comparison.js +415 -0
- package/dist/purchase/extras.d.ts +1509 -0
- package/dist/purchase/extras.js +445 -0
- package/dist/purchase/i18n/bn.d.ts +2 -0
- package/dist/purchase/i18n/bn.js +413 -0
- package/dist/purchase/index.d.ts +5 -0
- package/dist/purchase/index.js +1280 -4
- package/dist/purchase/module.d.ts +7147 -395
- package/dist/purchase/module.js +303 -10
- package/dist/purchase/request.d.ts +696 -0
- package/dist/purchase/request.js +446 -0
- package/dist/purchase/tender.d.ts +1208 -0
- package/dist/purchase/tender.js +507 -0
- package/dist/purchase/vendorprice.d.ts +340 -0
- package/dist/purchase/vendorprice.js +153 -0
- package/dist/purchase_account/.kosh/bindings.js +1 -1
- package/dist/purchase_account/.kosh/schema.d.ts +1209 -16
- package/dist/purchase_account/i18n/bn.d.ts +2 -0
- package/dist/purchase_account/i18n/bn.js +22 -0
- package/dist/purchase_account/index.js +20 -0
- package/dist/purchase_account/module.d.ts +12232 -2028
- package/dist/purchase_account/module.js +252 -9
- package/dist/purchase_portal/.kosh/bindings.js +1 -1
- package/dist/purchase_portal/.kosh/schema.d.ts +908 -5
- package/dist/purchase_portal/i18n/bn.d.ts +2 -0
- package/dist/purchase_portal/i18n/bn.js +5 -0
- package/dist/purchase_portal/index.js +2 -0
- package/dist/purchase_portal/module.d.ts +6853 -352
- package/dist/purchase_stock/.kosh/bindings.js +1 -1
- package/dist/purchase_stock/.kosh/schema.d.ts +1096 -21
- package/dist/purchase_stock/i18n/bn.d.ts +2 -0
- package/dist/purchase_stock/i18n/bn.js +19 -0
- package/dist/purchase_stock/index.d.ts +2 -2
- package/dist/purchase_stock/index.js +38 -2
- package/dist/purchase_stock/module.d.ts +12930 -1612
- package/dist/purchase_stock/module.js +317 -9
- package/dist/purchase_stock/scorecard.d.ts +22 -0
- package/dist/purchase_stock/scorecard.js +77 -0
- package/dist/purchase_stock/web/Scorecard.d.ts +7 -0
- package/dist/purchase_stock/web/Scorecard.js +22 -0
- package/dist/purchase_stock/web/index.d.ts +11 -0
- package/dist/purchase_stock/web/index.js +16 -0
- package/dist/purchase_stock/web/messages.d.ts +2 -0
- package/dist/purchase_stock/web/messages.js +27 -0
- package/dist/purchase_stock_account/.kosh/bindings.js +1 -1
- package/dist/purchase_stock_account/.kosh/schema.d.ts +1444 -20
- package/dist/purchase_stock_account/i18n/bn.d.ts +2 -0
- package/dist/purchase_stock_account/i18n/bn.js +8 -0
- package/dist/purchase_stock_account/index.js +18 -0
- package/dist/purchase_stock_account/module.d.ts +7 -35346
- package/dist/purchase_stock_account/module.js +35 -8
- package/dist/recruitment/.kosh/bindings.js +1 -1
- package/dist/recruitment/.kosh/schema.d.ts +60 -1
- package/dist/recruitment/i18n/bn.d.ts +2 -0
- package/dist/recruitment/i18n/bn.js +93 -0
- package/dist/recruitment/index.js +64 -0
- package/dist/recruitment/module.d.ts +460 -8
- package/dist/recruitment/module.js +13 -4
- package/dist/reporting/documents.d.ts +5 -0
- package/dist/reporting/documents.js +11 -1
- package/dist/reporting/index.d.ts +1 -1
- package/dist/reporting/index.js +1 -1
- package/dist/reporting/web/CalendarView.d.ts +18 -5
- package/dist/reporting/web/CalendarView.js +163 -29
- package/dist/reporting/web/messages.js +18 -0
- package/dist/sale_account/.kosh/bindings.js +1 -1
- package/dist/sale_account/.kosh/schema.d.ts +763 -18
- package/dist/sale_account/i18n/bn.d.ts +2 -0
- package/dist/sale_account/i18n/bn.js +48 -0
- package/dist/sale_account/index.d.ts +1 -1
- package/dist/sale_account/index.js +102 -4
- package/dist/sale_account/module.d.ts +8241 -2052
- package/dist/sale_account/module.js +535 -46
- package/dist/sale_crm/.kosh/bindings.d.ts +22 -0
- package/dist/sale_crm/.kosh/bindings.js +15 -0
- package/dist/{mrp → sale_crm}/.kosh/schema.d.ts +391 -494
- package/dist/sale_crm/i18n/bn.d.ts +2 -0
- package/dist/sale_crm/i18n/bn.js +9 -0
- package/dist/sale_crm/index.d.ts +7 -0
- package/dist/sale_crm/index.js +104 -0
- package/dist/sale_crm/module.d.ts +5609 -0
- package/dist/sale_crm/module.js +73 -0
- package/dist/sale_portal/.kosh/bindings.js +1 -1
- package/dist/sale_portal/.kosh/schema.d.ts +292 -4
- package/dist/sale_portal/i18n/bn.d.ts +2 -0
- package/dist/sale_portal/i18n/bn.js +7 -0
- package/dist/sale_portal/index.js +10 -0
- package/dist/sale_portal/module.d.ts +2563 -292
- package/dist/sale_project/.kosh/bindings.js +1 -1
- package/dist/sale_project/.kosh/schema.d.ts +1025 -4
- package/dist/sale_project/i18n/bn.d.ts +2 -0
- package/dist/sale_project/i18n/bn.js +12 -0
- package/dist/sale_project/index.js +2 -0
- package/dist/sale_project/module.d.ts +9280 -762
- package/dist/sale_project/module.js +17 -1
- package/dist/sale_stock/.kosh/bindings.js +1 -1
- package/dist/sale_stock/.kosh/schema.d.ts +463 -6
- package/dist/sale_stock/i18n/bn.d.ts +2 -0
- package/dist/sale_stock/i18n/bn.js +15 -0
- package/dist/sale_stock/index.js +2 -0
- package/dist/sale_stock/module.d.ts +8355 -1334
- package/dist/sale_stock/module.js +20 -3
- package/dist/sales/.kosh/bindings.js +1 -1
- package/dist/sales/.kosh/schema.d.ts +292 -4
- package/dist/sales/i18n/bn.d.ts +2 -0
- package/dist/sales/i18n/bn.js +128 -0
- package/dist/sales/index.js +124 -5
- package/dist/sales/module.d.ts +3568 -633
- package/dist/sales/module.js +306 -11
- package/dist/server/api/duplicate.d.ts +14 -0
- package/dist/server/api/duplicate.js +75 -0
- package/dist/server/api/explain.d.ts +70 -0
- package/dist/server/api/explain.js +111 -0
- package/dist/server/api/metadata.d.ts +2 -0
- package/dist/server/api/metadata.js +9 -0
- package/dist/server/api/openapi.js +15 -0
- package/dist/server/api/rest.d.ts +1 -0
- package/dist/server/api/rest.js +76 -12
- package/dist/server/api/views.js +1 -1
- package/dist/server/apps.d.ts +16 -1
- package/dist/server/apps.js +164 -2
- package/dist/server/auth/base.js +2 -0
- package/dist/server/auth/service.d.ts +8 -0
- package/dist/server/auth/service.js +19 -0
- package/dist/server/events.d.ts +13 -0
- package/dist/server/events.js +22 -0
- package/dist/server/i18n.d.ts +27 -0
- package/dist/server/i18n.js +143 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +2 -0
- package/dist/server/server.js +6 -0
- package/dist/settings/company.d.ts +3 -1
- package/dist/settings/company.js +26 -5
- package/dist/settings/routes.d.ts +10 -0
- package/dist/settings/routes.js +19 -3
- package/dist/settings/web/AppsPage.d.ts +3 -2
- package/dist/settings/web/AppsPage.js +26 -8
- package/dist/settings/web/CompaniesPage.js +91 -6
- package/dist/settings/web/messages.js +64 -0
- package/dist/sign/.kosh/bindings.d.ts +22 -0
- package/dist/{mrp → sign}/.kosh/bindings.js +2 -2
- package/dist/sign/.kosh/schema.d.ts +991 -0
- package/dist/sign/i18n/bn.d.ts +2 -0
- package/dist/sign/i18n/bn.js +97 -0
- package/dist/sign/index.d.ts +29 -0
- package/dist/sign/index.js +478 -0
- package/dist/sign/module.d.ts +4518 -0
- package/dist/sign/module.js +167 -0
- package/dist/sign/sign.d.ts +82 -0
- package/dist/sign/sign.js +474 -0
- package/dist/stock/.kosh/bindings.js +1 -1
- package/dist/stock/.kosh/schema.d.ts +374 -3
- package/dist/stock/demo.d.ts +2 -1
- package/dist/stock/demo.js +28 -1
- package/dist/stock/i18n/bn.d.ts +2 -0
- package/dist/stock/i18n/bn.js +311 -0
- package/dist/stock/index.d.ts +4 -1
- package/dist/stock/index.js +674 -6
- package/dist/stock/ledger.d.ts +78 -0
- package/dist/stock/ledger.js +582 -0
- package/dist/stock/module.d.ts +6142 -1380
- package/dist/stock/module.js +780 -26
- package/dist/stock/replenish.d.ts +38 -0
- package/dist/stock/replenish.js +191 -0
- package/dist/stock/returns.d.ts +157 -0
- package/dist/stock/returns.js +163 -0
- package/dist/stock/web/Ledger.d.ts +9 -0
- package/dist/stock/web/Ledger.js +108 -0
- package/dist/stock/web/Operations.d.ts +8 -0
- package/dist/stock/web/Operations.js +33 -0
- package/dist/stock/web/Replenishment.d.ts +8 -0
- package/dist/stock/web/Replenishment.js +84 -0
- package/dist/stock/web/ReturnButton.d.ts +7 -0
- package/dist/stock/web/ReturnButton.js +62 -0
- package/dist/stock/web/index.d.ts +7 -2
- package/dist/stock/web/index.js +15 -2
- package/dist/stock/web/messages.js +206 -0
- package/dist/stock_account/.kosh/bindings.js +1 -1
- package/dist/stock_account/.kosh/schema.d.ts +878 -12
- package/dist/stock_account/i18n/bn.d.ts +2 -0
- package/dist/stock_account/i18n/bn.js +73 -0
- package/dist/stock_account/index.d.ts +1 -0
- package/dist/stock_account/index.js +141 -3
- package/dist/stock_account/landed.d.ts +429 -0
- package/dist/stock_account/landed.js +335 -0
- package/dist/stock_account/module.d.ts +12143 -3391
- package/dist/stock_account/module.js +135 -6
- package/dist/stock_account/web/LandedPreview.d.ts +7 -0
- package/dist/stock_account/web/LandedPreview.js +23 -0
- package/dist/stock_account/web/index.d.ts +11 -0
- package/dist/stock_account/web/index.js +16 -0
- package/dist/stock_account/web/messages.d.ts +2 -0
- package/dist/stock_account/web/messages.js +27 -0
- package/dist/todo/i18n/bn.d.ts +2 -0
- package/dist/todo/i18n/bn.js +66 -0
- package/dist/todo/index.js +59 -0
- package/dist/todo/module.d.ts +5 -0
- package/dist/todo/module.js +5 -3
- package/dist/trade_finance/.kosh/bindings.js +1 -1
- package/dist/trade_finance/.kosh/schema.d.ts +2 -1
- package/dist/trade_finance/i18n/bn.d.ts +2 -0
- package/dist/trade_finance/i18n/bn.js +162 -0
- package/dist/trade_finance/index.js +95 -0
- package/dist/trade_finance/module.d.ts +26 -0
- package/dist/trade_finance/module.js +29 -8
- package/dist/trade_finance_account/.kosh/bindings.js +1 -1
- package/dist/trade_finance_account/.kosh/schema.d.ts +651 -10
- package/dist/trade_finance_account/i18n/bn.d.ts +2 -0
- package/dist/trade_finance_account/i18n/bn.js +27 -0
- package/dist/trade_finance_account/index.js +3 -0
- package/dist/trade_finance_account/module.d.ts +5129 -1509
- package/dist/trade_finance_account/module.js +2 -0
- package/dist/trade_finance_purchase/.kosh/bindings.js +1 -1
- package/dist/trade_finance_purchase/.kosh/schema.d.ts +908 -5
- package/dist/trade_finance_purchase/i18n/bn.d.ts +2 -0
- package/dist/trade_finance_purchase/i18n/bn.js +6 -0
- package/dist/trade_finance_purchase/index.js +2 -0
- package/dist/trade_finance_purchase/module.d.ts +6909 -408
- package/dist/trade_finance_sale/.kosh/bindings.js +1 -1
- package/dist/trade_finance_sale/.kosh/schema.d.ts +292 -4
- package/dist/trade_finance_sale/i18n/bn.d.ts +2 -0
- package/dist/trade_finance_sale/i18n/bn.js +6 -0
- package/dist/trade_finance_sale/index.js +2 -0
- package/dist/trade_finance_sale/module.d.ts +2602 -331
- package/dist/ui/api.d.ts +2 -0
- package/dist/ui/app.d.ts +9 -0
- package/dist/ui/app.js +47 -15
- package/dist/ui/components/AppIcon.js +9 -2
- package/dist/ui/components/Explain.d.ts +69 -0
- package/dist/ui/components/Explain.js +62 -0
- package/dist/ui/context.d.ts +8 -1
- package/dist/ui/context.js +34 -1
- package/dist/ui/i18n/messages.d.ts +40 -0
- package/dist/ui/i18n/messages.js +80 -0
- package/dist/ui/index.d.ts +2 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/registry.d.ts +14 -0
- package/dist/ui/registry.js +10 -0
- package/dist/ui/views/FormView.d.ts +6 -0
- package/dist/ui/views/FormView.js +51 -12
- package/dist/ui/views/KanbanView.js +9 -1
- package/dist/ui/views/ListView.d.ts +8 -0
- package/dist/ui/views/ListView.js +14 -5
- package/dist/ui/views/StatsRow.js +2 -1
- package/dist/ui/views/widgets.js +7 -1
- package/dist/views/extend.js +12 -0
- package/dist/views/types.d.ts +13 -2
- package/dist/views/validate.js +8 -1
- package/dist/website/.kosh/bindings.js +1 -1
- package/dist/website/.kosh/schema.d.ts +2 -1
- package/dist/website/i18n/bn.d.ts +2 -0
- package/dist/website/i18n/bn.js +113 -0
- package/dist/website/index.js +37 -0
- package/dist/website/module.d.ts +20 -0
- package/dist/website/module.js +30 -5
- package/dist/website_crm/.kosh/bindings.js +1 -1
- package/dist/website_crm/.kosh/schema.d.ts +3 -1
- package/dist/website_crm/i18n/bn.d.ts +2 -0
- package/dist/website_crm/i18n/bn.js +5 -0
- package/dist/website_crm/index.js +2 -0
- package/dist/website_crm/module.d.ts +41 -0
- package/dist/website_sale/.kosh/bindings.d.ts +22 -0
- package/dist/website_sale/.kosh/bindings.js +15 -0
- package/dist/website_sale/.kosh/schema.d.ts +2909 -0
- package/dist/website_sale/couriers.d.ts +50 -0
- package/dist/website_sale/couriers.js +59 -0
- package/dist/website_sale/demo.d.ts +7 -0
- package/dist/website_sale/demo.js +90 -0
- package/dist/website_sale/growth.d.ts +31 -0
- package/dist/website_sale/growth.js +163 -0
- package/dist/website_sale/i18n/bn.d.ts +2 -0
- package/dist/website_sale/i18n/bn.js +132 -0
- package/dist/website_sale/index.d.ts +49 -0
- package/dist/website_sale/index.js +620 -0
- package/dist/website_sale/module.d.ts +35182 -0
- package/dist/website_sale/module.js +419 -0
- package/dist/website_sale/shipments.d.ts +16 -0
- package/dist/website_sale/shipments.js +113 -0
- package/dist/website_sale/shop.d.ts +81 -0
- package/dist/website_sale/shop.js +662 -0
- package/dist/website_sale_stock/.kosh/bindings.d.ts +22 -0
- package/dist/website_sale_stock/.kosh/bindings.js +15 -0
- package/dist/website_sale_stock/.kosh/schema.d.ts +3400 -0
- package/dist/website_sale_stock/i18n/bn.d.ts +2 -0
- package/dist/website_sale_stock/i18n/bn.js +4 -0
- package/dist/website_sale_stock/index.d.ts +9 -0
- package/dist/website_sale_stock/index.js +22 -0
- package/dist/website_sale_stock/module.d.ts +11 -0
- package/dist/website_sale_stock/module.js +32 -0
- package/package.json +117 -8
- package/dist/mrp/index.d.ts +0 -3
- package/dist/mrp/index.js +0 -392
- package/dist/mrp/module.js +0 -695
- package/dist/mrp_account/index.d.ts +0 -3
- package/dist/mrp_account/index.js +0 -22
- /package/dist/{mrp → account_asset}/.kosh/bindings.d.ts +0 -0
- /package/dist/{mrp_account → account_budget}/.kosh/bindings.d.ts +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A project's schedule (RFC 0026 step 5), a node component of the project form: its tasks as bars over the weeks from
|
|
4
|
+
* the project's start to its end, the baseline as a thin bar beneath each, the critical path in red, arrows from each
|
|
5
|
+
* task to what waits for it, milestones as diamonds. "Move waiting tasks" puts tasks that start before what they wait
|
|
6
|
+
* for is finished after it, keeping their length (`POST /api/v1/projects/:id/schedule/apply`). Read as the user.
|
|
7
|
+
*/
|
|
8
|
+
import { Alert, Button, useKosh } from '../../ui/index.js';
|
|
9
|
+
import { useMutation, useQuery } from '@tanstack/react-query';
|
|
10
|
+
import { useState } from 'react';
|
|
11
|
+
import { useTranslation } from 'react-i18next';
|
|
12
|
+
const DAY = 86_400_000;
|
|
13
|
+
const ROW = 32;
|
|
14
|
+
const LABEL = 200;
|
|
15
|
+
const dayOf = (iso) => Math.round(Date.parse(`${iso}T00:00:00Z`) / DAY);
|
|
16
|
+
export function Schedule({ api, record, version, reload, }) {
|
|
17
|
+
const { t } = useTranslation('project');
|
|
18
|
+
const { format } = useKosh();
|
|
19
|
+
const [error, setError] = useState(null);
|
|
20
|
+
const [moved, setMoved] = useState(null);
|
|
21
|
+
const id = typeof record?.id === 'number' ? record.id : null;
|
|
22
|
+
const data = useQuery({
|
|
23
|
+
queryKey: ['project.schedule', id, version],
|
|
24
|
+
enabled: id !== null,
|
|
25
|
+
queryFn: () => api.call('GET', `/api/v1/projects/${String(id)}/schedule`),
|
|
26
|
+
});
|
|
27
|
+
const apply = useMutation({
|
|
28
|
+
mutationFn: () => api.call('POST', `/api/v1/projects/${String(id)}/schedule/apply`, {}),
|
|
29
|
+
onSuccess: (r) => {
|
|
30
|
+
setError(null);
|
|
31
|
+
setMoved(r.moved.length);
|
|
32
|
+
void data.refetch();
|
|
33
|
+
reload();
|
|
34
|
+
},
|
|
35
|
+
onError: (e) => setError(e.message),
|
|
36
|
+
});
|
|
37
|
+
if (id === null)
|
|
38
|
+
return null;
|
|
39
|
+
if (data.isPending)
|
|
40
|
+
return _jsx("p", { className: "text-sm text-muted-foreground", children: t('schedule.loading') });
|
|
41
|
+
if (data.isError)
|
|
42
|
+
return _jsx(Alert, { tone: "danger", children: data.error.message });
|
|
43
|
+
const { tasks } = data.data;
|
|
44
|
+
if (tasks.length === 0)
|
|
45
|
+
return null;
|
|
46
|
+
// The span shown: the project's tasks, their baselines and their earliest dates.
|
|
47
|
+
const days = tasks.flatMap((r) => [r.start, r.end, r.baselineStart, r.baselineEnd, r.earlyStart, r.earlyFinish].flatMap((d) => d === null ? [] : [dayOf(d)]));
|
|
48
|
+
const first = Math.min(...days);
|
|
49
|
+
const last = Math.max(...days);
|
|
50
|
+
const span = Math.max(last - first + 1, 7);
|
|
51
|
+
const pct = (day) => ((day - first) / span) * 100;
|
|
52
|
+
const index = new Map(tasks.map((r, i) => [r.id, i]));
|
|
53
|
+
const barOf = (r) => {
|
|
54
|
+
const s = dayOf(r.start ?? r.earlyStart);
|
|
55
|
+
const e = dayOf(r.end ?? r.earlyFinish);
|
|
56
|
+
return { left: pct(s), width: Math.max(((e - s + 1) / span) * 100, 0.8) };
|
|
57
|
+
};
|
|
58
|
+
const late = tasks.filter((r) => r.start !== null && r.start < r.earlyStart && !r.done).length;
|
|
59
|
+
const critical = tasks.filter((r) => r.critical).length;
|
|
60
|
+
const weeks = [];
|
|
61
|
+
for (let d = first - ((first + 3) % 7); d <= last; d += 7)
|
|
62
|
+
weeks.push(d); // Mondays
|
|
63
|
+
return (_jsxs("section", { "aria-label": t('schedule.title'), className: "grid gap-2", children: [_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2", children: [_jsxs("div", { children: [_jsx("h3", { className: "text-sm font-semibold", children: t('schedule.title') }), _jsx("p", { className: "text-xs text-muted-foreground", children: t('schedule.summary', { critical, late, count: late }) })] }), _jsx(Button, { busy: apply.isPending, disabled: late === 0, onClick: () => apply.mutate(), children: t('schedule.apply') })] }), error === null ? null : _jsx(Alert, { tone: "danger", children: error }), moved === null ? null : (_jsx("p", { role: "status", className: "text-xs text-muted-foreground", children: t('schedule.moved', { count: moved }) })), _jsx("div", { className: "overflow-x-auto rounded-md border border-border", children: _jsxs("div", { className: "relative min-w-[720px]", style: { height: (tasks.length + 1) * ROW }, children: [_jsx("div", { className: "absolute inset-y-0 end-0", style: { insetInlineStart: LABEL }, children: weeks.map((w) => (_jsx("div", { className: "absolute inset-y-0 border-s border-border/60 ps-1 text-[10px] text-muted-foreground", style: { insetInlineStart: `${pct(w)}%` }, children: format.date(new Date(w * DAY).toISOString().slice(0, 10)) }, w))) }), _jsx("ul", { children: tasks.map((r, i) => {
|
|
64
|
+
const bar = barOf(r);
|
|
65
|
+
const base = r.baselineStart !== null && r.baselineEnd !== null
|
|
66
|
+
? {
|
|
67
|
+
left: pct(dayOf(r.baselineStart)),
|
|
68
|
+
width: ((dayOf(r.baselineEnd) - dayOf(r.baselineStart) + 1) / span) * 100,
|
|
69
|
+
}
|
|
70
|
+
: null;
|
|
71
|
+
const label = t(r.critical ? 'schedule.barCritical' : 'schedule.bar', {
|
|
72
|
+
name: r.name,
|
|
73
|
+
start: format.date(r.start ?? r.earlyStart),
|
|
74
|
+
end: format.date(r.end ?? r.earlyFinish),
|
|
75
|
+
float: r.float,
|
|
76
|
+
});
|
|
77
|
+
return (_jsxs("li", { className: "absolute inset-x-0 flex items-center", style: { top: (i + 1) * ROW, height: ROW }, children: [_jsx("span", { className: "truncate px-2 text-xs", style: { width: LABEL }, title: r.name, children: r.name }), _jsxs("span", { className: "relative h-full flex-1", children: [base === null ? null : (_jsx("span", { "aria-hidden": "true", className: "absolute bottom-1 h-1 rounded bg-muted-foreground/40", style: { insetInlineStart: `${base.left}%`, width: `${base.width}%` } })), r.milestone ? (_jsx("span", { role: "img", "aria-label": label, className: `absolute top-2 size-3 rotate-45 ${r.critical ? 'bg-danger' : 'bg-primary'}`, style: { insetInlineStart: `${bar.left}%` } })) : (_jsx("span", { role: "img", "aria-label": label, className: `absolute top-1.5 h-4 overflow-hidden rounded ${r.critical ? 'bg-danger/80' : 'bg-primary/70'} ${r.done ? 'opacity-50' : ''}`, style: { insetInlineStart: `${bar.left}%`, width: `${bar.width}%` }, children: _jsx("span", { className: "block h-full bg-black/20", style: { width: `${Math.max(0, Math.min(100, r.progress))}%` } }) }))] })] }, r.id));
|
|
78
|
+
}) }), _jsx("svg", { "aria-hidden": "true", className: "pointer-events-none absolute inset-y-0 end-0 overflow-visible", style: { insetInlineStart: LABEL, width: `calc(100% - ${LABEL}px)` }, viewBox: "0 0 100 100", preserveAspectRatio: "none", children: tasks.flatMap((r) => r.predecessors.flatMap((p) => {
|
|
79
|
+
const from = tasks[index.get(p.id) ?? -1];
|
|
80
|
+
if (from === undefined)
|
|
81
|
+
return [];
|
|
82
|
+
const a = barOf(from);
|
|
83
|
+
const b = barOf(r);
|
|
84
|
+
const height = (tasks.length + 1) * ROW;
|
|
85
|
+
const y1 = (((index.get(p.id) ?? 0) + 1.5) * ROW * 100) / height;
|
|
86
|
+
const y2 = (((index.get(r.id) ?? 0) + 1.5) * ROW * 100) / height;
|
|
87
|
+
const x1 = a.left + a.width;
|
|
88
|
+
const x2 = b.left;
|
|
89
|
+
return [
|
|
90
|
+
_jsx("path", { d: `M ${x1} ${y1} H ${Math.max(x1, x2 - 0.6)} V ${y2} H ${x2}`, fill: "none", stroke: "currentColor", strokeWidth: 1, vectorEffect: "non-scaling-stroke", className: r.critical && from.critical ? 'text-danger' : 'text-muted-foreground' }, `${p.id}-${r.id}`),
|
|
91
|
+
];
|
|
92
|
+
})) })] }) }), _jsx("p", { className: "text-xs text-muted-foreground", children: t('schedule.legend') })] }));
|
|
93
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A project's structure (RFC 0026 §3.2), a node component of the project form: its phases (nested), each phase's
|
|
3
|
+
* work packages, and the tasks in them, as a tree with progress bars — read through the API as the user, so the
|
|
4
|
+
* record rules decide what shows. Each row opens its record; tasks outside any phase are listed last.
|
|
5
|
+
*/
|
|
6
|
+
import { type NodeComponentProps } from '../../ui/index.js';
|
|
7
|
+
import type { ReactElement } from 'react';
|
|
8
|
+
export declare function Structure({ api, record, version }: NodeComponentProps): ReactElement | null;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A project's structure (RFC 0026 §3.2), a node component of the project form: its phases (nested), each phase's
|
|
4
|
+
* work packages, and the tasks in them, as a tree with progress bars — read through the API as the user, so the
|
|
5
|
+
* record rules decide what shows. Each row opens its record; tasks outside any phase are listed last.
|
|
6
|
+
*/
|
|
7
|
+
import { useKosh } from '../../ui/index.js';
|
|
8
|
+
import { useQuery } from '@tanstack/react-query';
|
|
9
|
+
import { useTranslation } from 'react-i18next';
|
|
10
|
+
const idOf = (value) => {
|
|
11
|
+
if (typeof value === 'number')
|
|
12
|
+
return value;
|
|
13
|
+
if (typeof value === 'object' && value !== null && typeof value['id'] === 'number')
|
|
14
|
+
return value['id'];
|
|
15
|
+
return null;
|
|
16
|
+
};
|
|
17
|
+
const percent = (value) => {
|
|
18
|
+
const n = typeof value === 'number' ? value : Number(value ?? 0);
|
|
19
|
+
return Number.isFinite(n) ? Math.max(0, Math.min(100, n)) : 0;
|
|
20
|
+
};
|
|
21
|
+
function Bar({ value, label }) {
|
|
22
|
+
const { format } = useKosh();
|
|
23
|
+
const n = percent(value);
|
|
24
|
+
return (_jsxs("span", { className: "inline-flex w-36 shrink-0 items-center gap-2", children: [_jsx("span", { role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": n, "aria-label": label, className: "h-1.5 flex-1 overflow-hidden rounded-full bg-muted", children: _jsx("span", { className: `block h-full rounded-full ${n >= 100 ? 'bg-success' : 'bg-primary'}`, style: { width: `${n}%` } }) }), _jsxs("span", { className: "w-10 text-end tabular-nums text-xs text-muted-foreground", children: [format.number(n), "%"] })] }));
|
|
25
|
+
}
|
|
26
|
+
function Item({ href, kind, name, progress, extra, children, }) {
|
|
27
|
+
const { t } = useTranslation('project');
|
|
28
|
+
return (_jsxs("li", { children: [_jsxs("div", { className: "flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-muted/60", children: [_jsx("span", { className: "w-24 shrink-0 text-xs uppercase tracking-wide text-muted-foreground", children: kind }), _jsx("a", { href: href, className: "min-w-0 flex-1 truncate text-sm font-medium hover:underline", children: name }), extra, _jsx(Bar, { value: progress, label: t('structure.progressOf', { name }) })] }), children === undefined ? null : (_jsx("ul", { className: "ms-6 border-s border-border ps-2", children: children }))] }));
|
|
29
|
+
}
|
|
30
|
+
export function Structure({ api, record, version }) {
|
|
31
|
+
const { t } = useTranslation('project');
|
|
32
|
+
const projectId = typeof record?.id === 'number' ? record.id : null;
|
|
33
|
+
const data = useQuery({
|
|
34
|
+
queryKey: ['project.structure', projectId, version],
|
|
35
|
+
enabled: projectId !== null,
|
|
36
|
+
queryFn: async () => {
|
|
37
|
+
const where = { project: projectId };
|
|
38
|
+
const [phases, packages, tasks] = await Promise.all([
|
|
39
|
+
api.list('project.phase', {
|
|
40
|
+
filter: where,
|
|
41
|
+
fields: ['id', 'name', 'parentPhase', 'progress', 'status'],
|
|
42
|
+
order: ['sequence asc', 'id asc'],
|
|
43
|
+
limit: 500,
|
|
44
|
+
}),
|
|
45
|
+
api.list('project.work.package', {
|
|
46
|
+
filter: where,
|
|
47
|
+
fields: ['id', 'name', 'phase', 'progress', 'status'],
|
|
48
|
+
order: ['sequence asc', 'id asc'],
|
|
49
|
+
limit: 500,
|
|
50
|
+
}),
|
|
51
|
+
api.list('project.task', {
|
|
52
|
+
filter: { project: projectId, parentTask: { isNull: true } },
|
|
53
|
+
fields: ['id', 'name', 'phase', 'workPackage', 'progress', 'milestone', 'blocked'],
|
|
54
|
+
limit: 1000,
|
|
55
|
+
}),
|
|
56
|
+
]);
|
|
57
|
+
return { phases: phases.items, packages: packages.items, tasks: tasks.items };
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
if (projectId === null)
|
|
61
|
+
return null;
|
|
62
|
+
if (data.isPending)
|
|
63
|
+
return _jsx("p", { className: "text-sm text-muted-foreground", children: t('structure.loading') });
|
|
64
|
+
if (data.isError)
|
|
65
|
+
return _jsx("p", { className: "text-sm text-danger", children: data.error.message });
|
|
66
|
+
const { phases, packages, tasks } = data.data;
|
|
67
|
+
if (phases.length === 0 && packages.length === 0)
|
|
68
|
+
return _jsx("p", { className: "text-sm text-muted-foreground", children: t('structure.empty') });
|
|
69
|
+
const href = (action, id) => `/projects/a/projects.${action}/${String(id)}`;
|
|
70
|
+
const taskItem = (task) => (_jsx(Item, { href: href('action_tasks', task.id), kind: task['milestone'] === true ? t('structure.milestone') : t('structure.task'), name: String(task['name'] ?? ''), progress: task['progress'], extra: task['blocked'] === true ? (_jsx("span", { className: "rounded bg-warning/15 px-1.5 text-xs text-warning", children: t('structure.waiting') })) : undefined }, `t${String(task.id)}`));
|
|
71
|
+
const packageItem = (wp) => {
|
|
72
|
+
const inside = tasks.filter((x) => idOf(x['workPackage']) === wp.id);
|
|
73
|
+
return (_jsx(Item, { href: href('action_work_packages', wp.id), kind: t('structure.workPackage'), name: String(wp['name'] ?? ''), progress: wp['progress'], children: inside.length === 0 ? undefined : inside.map(taskItem) }, `w${String(wp.id)}`));
|
|
74
|
+
};
|
|
75
|
+
const phaseItem = (phase) => {
|
|
76
|
+
const subs = phases.filter((x) => idOf(x['parentPhase']) === phase.id);
|
|
77
|
+
const wps = packages.filter((x) => idOf(x['phase']) === phase.id);
|
|
78
|
+
const direct = tasks.filter((x) => idOf(x['phase']) === phase.id && idOf(x['workPackage']) === null);
|
|
79
|
+
const children = [...subs.map(phaseItem), ...wps.map(packageItem), ...direct.map(taskItem)];
|
|
80
|
+
return (_jsx(Item, { href: href('action_phases', phase.id), kind: t('structure.phase'), name: String(phase['name'] ?? ''), progress: phase['progress'], children: children.length === 0 ? undefined : children }, `p${String(phase.id)}`));
|
|
81
|
+
};
|
|
82
|
+
const top = phases.filter((x) => idOf(x['parentPhase']) === null);
|
|
83
|
+
const loosePackages = packages.filter((x) => idOf(x['phase']) === null);
|
|
84
|
+
const loose = tasks.filter((x) => idOf(x['phase']) === null && idOf(x['workPackage']) === null);
|
|
85
|
+
return (_jsxs("section", { "aria-label": t('structure.title'), className: "grid gap-2", children: [_jsx("h3", { className: "text-sm font-semibold", children: t('structure.title') }), _jsxs("ul", { className: "grid gap-0.5", children: [top.map(phaseItem), loosePackages.map(packageItem)] }), loose.length === 0 ? null : (_jsxs(_Fragment, { children: [_jsx("h4", { className: "mt-2 text-xs font-medium text-muted-foreground", children: t('structure.outside') }), _jsx("ul", { className: "grid gap-0.5", children: loose.map(taskItem) })] }))] }));
|
|
86
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workload (RFC 0026 step 3): people × weeks, each cell the person's highest total allocation that week across their
|
|
3
|
+
* projects, tinted by how full it is — over 100 % in red, with the projects behind it in the cell's title. Projects
|
|
4
|
+
* managers see everyone; others see themselves (the server decides). Earlier and later move by the span shown.
|
|
5
|
+
*/
|
|
6
|
+
import { type PageProps } from '../../ui/index.js';
|
|
7
|
+
import { type ReactElement } from 'react';
|
|
8
|
+
export declare function Workload({ api }: PageProps): ReactElement;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Workload (RFC 0026 step 3): people × weeks, each cell the person's highest total allocation that week across their
|
|
4
|
+
* projects, tinted by how full it is — over 100 % in red, with the projects behind it in the cell's title. Projects
|
|
5
|
+
* managers see everyone; others see themselves (the server decides). Earlier and later move by the span shown.
|
|
6
|
+
*/
|
|
7
|
+
import { Button, EmptyState, useKosh } from '../../ui/index.js';
|
|
8
|
+
import { useQuery } from '@tanstack/react-query';
|
|
9
|
+
import { useState } from 'react';
|
|
10
|
+
import { useTranslation } from 'react-i18next';
|
|
11
|
+
const WEEKS = 12;
|
|
12
|
+
const DAY = 86_400_000;
|
|
13
|
+
const today = () => new Date().toISOString().slice(0, 10);
|
|
14
|
+
const shift = (date, days) => new Date(Date.parse(`${date}T00:00:00Z`) + days * DAY).toISOString().slice(0, 10);
|
|
15
|
+
/** The cell's tint: empty, partly booked, full, over. */
|
|
16
|
+
function tone(percent) {
|
|
17
|
+
if (percent === 0)
|
|
18
|
+
return 'text-muted-foreground';
|
|
19
|
+
if (percent > 100)
|
|
20
|
+
return 'bg-danger/20 font-semibold text-danger';
|
|
21
|
+
if (percent >= 80)
|
|
22
|
+
return 'bg-primary/25';
|
|
23
|
+
return 'bg-primary/10';
|
|
24
|
+
}
|
|
25
|
+
export function Workload({ api }) {
|
|
26
|
+
const { t } = useTranslation('project');
|
|
27
|
+
const { format } = useKosh();
|
|
28
|
+
const [from, setFrom] = useState(today);
|
|
29
|
+
const data = useQuery({
|
|
30
|
+
queryKey: ['project.workload', from],
|
|
31
|
+
queryFn: () => api.call('GET', `/api/v1/projects/workload?from=${from}&weeks=${WEEKS}`),
|
|
32
|
+
});
|
|
33
|
+
const weeks = data.data?.weeks ?? [];
|
|
34
|
+
const people = data.data?.people ?? [];
|
|
35
|
+
const over = people.filter((p) => p.weeks.some((w) => w > 100)).length;
|
|
36
|
+
return (_jsxs("div", { className: "grid gap-4 p-4", children: [_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2", children: [_jsxs("div", { children: [_jsx("h1", { className: "text-xl font-semibold", children: t('workload.title') }), _jsx("p", { className: "text-sm text-muted-foreground", children: over === 0 ? t('workload.noneOver') : t('workload.over', { count: over }) })] }), _jsxs("div", { className: "flex gap-2", children: [_jsx(Button, { onClick: () => setFrom(shift(from, -7 * WEEKS)), children: t('workload.earlier') }), _jsx(Button, { onClick: () => setFrom(today()), children: t('workload.today') }), _jsx(Button, { onClick: () => setFrom(shift(from, 7 * WEEKS)), children: t('workload.later') })] })] }), data.isError ? (_jsx("p", { className: "text-sm text-danger", children: data.error.message })) : people.length === 0 ? (_jsx(EmptyState, { title: data.isLoading ? t('workload.loading') : t('workload.empty') })) : (_jsx("div", { className: "overflow-x-auto rounded-md border border-border", children: _jsxs("table", { className: "w-full text-sm", children: [_jsx("caption", { className: "sr-only", children: t('workload.caption') }), _jsx("thead", { className: "bg-muted", children: _jsxs("tr", { children: [_jsx("th", { scope: "col", className: "sticky start-0 bg-muted px-2 py-1 text-start", children: t('workload.person') }), weeks.map((w) => (_jsx("th", { scope: "col", className: "px-2 py-1 text-end font-normal tabular-nums", children: format.date(w) }, w)))] }) }), _jsx("tbody", { children: people.map((p) => (_jsxs("tr", { className: "border-t border-border", children: [_jsxs("th", { scope: "row", className: "sticky start-0 bg-background px-2 py-1 text-start", children: [_jsx("span", { className: "font-medium", children: p.name }), _jsx("span", { className: "block text-xs font-normal text-muted-foreground", children: p.projects
|
|
37
|
+
.map((x) => `${x.name} ${format.number(x.allocation)}%`)
|
|
38
|
+
.join(' · ') })] }), p.weeks.map((value, i) => (_jsx("td", { className: `px-2 py-1 text-end tabular-nums ${tone(value)}`, "aria-label": t('workload.cell', {
|
|
39
|
+
name: p.name,
|
|
40
|
+
week: format.date(weeks[i] ?? ''),
|
|
41
|
+
percent: format.number(value),
|
|
42
|
+
}), children: value === 0 ? '·' : `${format.number(value)}%` }, weeks[i])))] }, p.user))) })] }) }))] }));
|
|
43
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* The web contribution of `shutro-erp/project`: a project's structure as a tree and the workload of people across projects (RFC 0026).
|
|
4
|
+
*/
|
|
5
|
+
import { type Registry } from '../../ui/index.js';
|
|
6
|
+
import type { i18n } from 'i18next';
|
|
7
|
+
import { messages } from './messages.js';
|
|
8
|
+
export { Refresh } from './Refresh.js';
|
|
9
|
+
export { Schedule } from './Schedule.js';
|
|
10
|
+
export { Structure } from './Structure.js';
|
|
11
|
+
export { Workload } from './Workload.js';
|
|
12
|
+
/** Registers the component (and the messages in `i18n`, when given). */
|
|
13
|
+
export declare function registerProjectWeb(registry: Registry, i18n?: i18n): Registry;
|
|
14
|
+
export { messages as projectMessages };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* The web contribution of `shutro-erp/project`: a project's structure as a tree and the workload of people across projects (RFC 0026).
|
|
4
|
+
*/
|
|
5
|
+
import { addMessages } from '../../ui/index.js';
|
|
6
|
+
import { messages } from './messages.js';
|
|
7
|
+
import { Refresh } from './Refresh.js';
|
|
8
|
+
import { Schedule } from './Schedule.js';
|
|
9
|
+
import { Structure } from './Structure.js';
|
|
10
|
+
import { Workload } from './Workload.js';
|
|
11
|
+
export { Refresh } from './Refresh.js';
|
|
12
|
+
export { Schedule } from './Schedule.js';
|
|
13
|
+
export { Structure } from './Structure.js';
|
|
14
|
+
export { Workload } from './Workload.js';
|
|
15
|
+
/** Registers the component (and the messages in `i18n`, when given). */
|
|
16
|
+
export function registerProjectWeb(registry, i18n) {
|
|
17
|
+
registry.registerComponent('projects.Structure', Structure);
|
|
18
|
+
registry.registerComponent('projects.Refresh', Refresh);
|
|
19
|
+
registry.registerComponent('projects.Schedule', Schedule);
|
|
20
|
+
registry.registerPage('projects.Workload', Workload);
|
|
21
|
+
if (i18n !== undefined)
|
|
22
|
+
addMessages(i18n, 'project', messages);
|
|
23
|
+
return registry;
|
|
24
|
+
}
|
|
25
|
+
export { messages as projectMessages };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/** Messages of the Projects screens (namespace `project`), in English and Bangla. */
|
|
2
|
+
export const messages = {
|
|
3
|
+
en: {
|
|
4
|
+
schedule: {
|
|
5
|
+
title: 'Schedule',
|
|
6
|
+
loading: 'Loading the schedule…',
|
|
7
|
+
summary_one: '{{critical}} task(s) on the critical path; one starts before what it waits for is finished.',
|
|
8
|
+
summary_other: '{{critical}} task(s) on the critical path; {{late}} start before what they wait for is finished.',
|
|
9
|
+
apply: 'Move waiting tasks',
|
|
10
|
+
moved_one: 'One task moved later.',
|
|
11
|
+
moved_other: '{{count}} tasks moved later.',
|
|
12
|
+
bar: '{{name}}: {{start}} to {{end}}, {{float}} day(s) to spare',
|
|
13
|
+
barCritical: '{{name}}: {{start}} to {{end}}, on the critical path',
|
|
14
|
+
legend: 'Red: the critical path (no day to spare). The thin grey bar under a task is its baseline; the dark part of a bar is what is done.',
|
|
15
|
+
},
|
|
16
|
+
refresh: { button: 'Refresh the figures' },
|
|
17
|
+
workload: {
|
|
18
|
+
title: 'Workload',
|
|
19
|
+
caption: 'Each person’s allocation week by week across their projects',
|
|
20
|
+
person: 'Person',
|
|
21
|
+
loading: 'Loading the workload…',
|
|
22
|
+
empty: 'Nobody is in a project team in these weeks. Add members on a project’s Team.',
|
|
23
|
+
noneOver: 'Nobody is over-allocated in these weeks.',
|
|
24
|
+
over_one: 'One person is over-allocated in these weeks.',
|
|
25
|
+
over_other: '{{count}} people are over-allocated in these weeks.',
|
|
26
|
+
earlier: 'Earlier',
|
|
27
|
+
today: 'This week',
|
|
28
|
+
later: 'Later',
|
|
29
|
+
cell: '{{name}}, week of {{week}}: {{percent}}%',
|
|
30
|
+
},
|
|
31
|
+
structure: {
|
|
32
|
+
title: 'Structure',
|
|
33
|
+
loading: 'Loading the structure…',
|
|
34
|
+
empty: 'No phases or work packages yet. Add them below to see the plan as a tree.',
|
|
35
|
+
phase: 'Phase',
|
|
36
|
+
workPackage: 'Work package',
|
|
37
|
+
task: 'Task',
|
|
38
|
+
milestone: 'Milestone',
|
|
39
|
+
waiting: 'Waiting',
|
|
40
|
+
outside: 'Tasks outside any phase',
|
|
41
|
+
progressOf: 'Progress of {{name}}',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
bn: {
|
|
45
|
+
schedule: {
|
|
46
|
+
title: 'সময়সূচি',
|
|
47
|
+
loading: 'সময়সূচি লোড হচ্ছে…',
|
|
48
|
+
summary_one: 'ক্রিটিক্যাল পথে {{critical}}টি কাজ; একটি কাজ যার জন্য অপেক্ষা করে তা শেষ হওয়ার আগেই শুরু হয়।',
|
|
49
|
+
summary_other: 'ক্রিটিক্যাল পথে {{critical}}টি কাজ; {{late}}টি কাজ যার জন্য অপেক্ষা করে তা শেষ হওয়ার আগেই শুরু হয়।',
|
|
50
|
+
apply: 'অপেক্ষমাণ কাজ সরান',
|
|
51
|
+
moved_one: 'একটি কাজ পিছিয়ে দেওয়া হয়েছে।',
|
|
52
|
+
moved_other: '{{count}}টি কাজ পিছিয়ে দেওয়া হয়েছে।',
|
|
53
|
+
bar: '{{name}}: {{start}} থেকে {{end}}, হাতে {{float}} দিন',
|
|
54
|
+
barCritical: '{{name}}: {{start}} থেকে {{end}}, ক্রিটিক্যাল পথে',
|
|
55
|
+
legend: 'লাল: ক্রিটিক্যাল পথ (হাতে কোনো দিন নেই)। কাজের নিচের সরু ধূসর দাগ তার বেসলাইন; বারের গাঢ় অংশ যা শেষ হয়েছে।',
|
|
56
|
+
},
|
|
57
|
+
refresh: { button: 'হিসাব হালনাগাদ করুন' },
|
|
58
|
+
workload: {
|
|
59
|
+
title: 'কাজের চাপ',
|
|
60
|
+
caption: 'প্রত্যেকের প্রকল্পগুলোতে সপ্তাহভিত্তিক বরাদ্দ',
|
|
61
|
+
person: 'ব্যক্তি',
|
|
62
|
+
loading: 'কাজের চাপ লোড হচ্ছে…',
|
|
63
|
+
empty: 'এই সপ্তাহগুলোতে কেউ কোনো প্রকল্প দলে নেই। প্রকল্পের দলে সদস্য যোগ করুন।',
|
|
64
|
+
noneOver: 'এই সপ্তাহগুলোতে কারও বরাদ্দ সীমা ছাড়ায়নি।',
|
|
65
|
+
over_one: 'এই সপ্তাহগুলোতে একজনের বরাদ্দ সীমা ছাড়িয়েছে।',
|
|
66
|
+
over_other: 'এই সপ্তাহগুলোতে {{count}} জনের বরাদ্দ সীমা ছাড়িয়েছে।',
|
|
67
|
+
earlier: 'আগে',
|
|
68
|
+
today: 'এই সপ্তাহ',
|
|
69
|
+
later: 'পরে',
|
|
70
|
+
cell: '{{name}}, {{week}}-এর সপ্তাহ: {{percent}}%',
|
|
71
|
+
},
|
|
72
|
+
structure: {
|
|
73
|
+
title: 'কাঠামো',
|
|
74
|
+
loading: 'কাঠামো লোড হচ্ছে…',
|
|
75
|
+
empty: 'এখনও কোনো ধাপ বা কাজের প্যাকেজ নেই। পরিকল্পনাটি গাছের মতো দেখতে নিচে যোগ করুন।',
|
|
76
|
+
phase: 'ধাপ',
|
|
77
|
+
workPackage: 'কাজের প্যাকেজ',
|
|
78
|
+
task: 'কাজ',
|
|
79
|
+
milestone: 'মাইলফলক',
|
|
80
|
+
waiting: 'অপেক্ষমাণ',
|
|
81
|
+
outside: 'কোনো ধাপের বাইরের কাজ',
|
|
82
|
+
progressOf: '{{name}}-এর অগ্রগতি',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
2
|
+
import { type DefinitionHelpers } from '../../server/orm.js';
|
|
3
|
+
import type { DefaultLoaded, Env as CoreEnv, RecordSet as CoreRecordSet, Shutro as CoreShutro } from '../../server/orm.js';
|
|
4
|
+
import type { SchemaView } from './schema.js';
|
|
5
|
+
export type { SchemaView };
|
|
6
|
+
/** Every model visible in this view. */
|
|
7
|
+
export type ModelName = keyof SchemaView & string;
|
|
8
|
+
/** `Env` typed to this view. */
|
|
9
|
+
export type Env = CoreEnv<SchemaView>;
|
|
10
|
+
/** `Shutro` typed to this view. */
|
|
11
|
+
export type Shutro = CoreShutro<SchemaView>;
|
|
12
|
+
/** A recordset of `M`, with the default loaded shape unless `L` is given. */
|
|
13
|
+
export type Records<M extends ModelName, L = DefaultLoaded<SchemaView, M>> = CoreRecordSet<SchemaView, M, L>;
|
|
14
|
+
export declare const compute: DefinitionHelpers<SchemaView>['compute'];
|
|
15
|
+
export declare const check: DefinitionHelpers<SchemaView>['check'];
|
|
16
|
+
export declare const onchange: DefinitionHelpers<SchemaView>['onchange'];
|
|
17
|
+
export declare const records: DefinitionHelpers<SchemaView>['records'];
|
|
18
|
+
export declare const method: DefinitionHelpers<SchemaView>['method'];
|
|
19
|
+
/** Module data (RFC 0017): records, overrides of dependencies' records, and references, typed like creates. */
|
|
20
|
+
export declare const record: DefinitionHelpers<SchemaView>['record'];
|
|
21
|
+
export declare const override: DefinitionHelpers<SchemaView>['override'];
|
|
22
|
+
export declare const ref: DefinitionHelpers<SchemaView>['ref'];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 34d960bd13bde47f
|
|
2
|
+
// Bindings of module `project_account`: import the definition API from here to get types scoped to what it can see.
|
|
3
|
+
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
4
|
+
import { definitions } from '../../server/orm.js';
|
|
5
|
+
/** Definition callbacks typed against this module's view: no casts in computes, checks, onchange, methods. */
|
|
6
|
+
const helpers = definitions();
|
|
7
|
+
export const compute = helpers.compute;
|
|
8
|
+
export const check = helpers.check;
|
|
9
|
+
export const onchange = helpers.onchange;
|
|
10
|
+
export const records = helpers.records;
|
|
11
|
+
export const method = helpers.method;
|
|
12
|
+
/** Module data (RFC 0017): records, overrides of dependencies' records, and references, typed like creates. */
|
|
13
|
+
export const record = helpers.record;
|
|
14
|
+
export const override = helpers.override;
|
|
15
|
+
export const ref = helpers.ref;
|