@things-factory/accounting 9.0.0-beta.27 → 9.0.0-beta.29
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-client/activities/activity-book-edit.d.ts +14 -0
- package/dist-client/activities/activity-book-edit.js +85 -0
- package/dist-client/activities/activity-book-edit.js.map +1 -0
- package/dist-client/activities/activity-book-view.d.ts +14 -0
- package/dist-client/activities/activity-book-view.js +85 -0
- package/dist-client/activities/activity-book-view.js.map +1 -0
- package/dist-client/activities/activity-expense-edit.d.ts +14 -0
- package/dist-client/activities/activity-expense-edit.js +85 -0
- package/dist-client/activities/activity-expense-edit.js.map +1 -0
- package/dist-client/activities/activity-expense-view.d.ts +14 -0
- package/dist-client/activities/activity-expense-view.js +85 -0
- package/dist-client/activities/activity-expense-view.js.map +1 -0
- package/dist-client/bootstrap.d.ts +1 -0
- package/dist-client/bootstrap.js +8 -0
- package/dist-client/bootstrap.js.map +1 -0
- package/dist-client/components/accounting-category-selector.d.ts +16 -0
- package/dist-client/components/accounting-category-selector.js +134 -0
- package/dist-client/components/accounting-category-selector.js.map +1 -0
- package/dist-client/components/accounting-category-view.d.ts +14 -0
- package/dist-client/components/accounting-category-view.js +81 -0
- package/dist-client/components/accounting-category-view.js.map +1 -0
- package/dist-client/grist-editors/grist-editor-accounting-category-object.d.ts +11 -0
- package/dist-client/grist-editors/grist-editor-accounting-category-object.js +71 -0
- package/dist-client/grist-editors/grist-editor-accounting-category-object.js.map +1 -0
- package/dist-client/grist-editors/grist-renderer-accounting-category-object.d.ts +2 -0
- package/dist-client/grist-editors/grist-renderer-accounting-category-object.js +9 -0
- package/dist-client/grist-editors/grist-renderer-accounting-category-object.js.map +1 -0
- package/dist-client/index.d.ts +0 -0
- package/dist-client/index.js +2 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/pages/account/account-importer.d.ts +22 -0
- package/dist-client/pages/account/account-importer.js +100 -0
- package/dist-client/pages/account/account-importer.js.map +1 -0
- package/dist-client/pages/account/account-list-page.d.ts +63 -0
- package/dist-client/pages/account/account-list-page.js +350 -0
- package/dist-client/pages/account/account-list-page.js.map +1 -0
- package/dist-client/pages/accounting-category/accounting-category-importer.d.ts +22 -0
- package/dist-client/pages/accounting-category/accounting-category-importer.js +100 -0
- package/dist-client/pages/accounting-category/accounting-category-importer.js.map +1 -0
- package/dist-client/pages/accounting-category/accounting-category-list-page.d.ts +63 -0
- package/dist-client/pages/accounting-category/accounting-category-list-page.js +354 -0
- package/dist-client/pages/accounting-category/accounting-category-list-page.js.map +1 -0
- package/dist-client/pages/accounting-category/accounting-category-tree-page.d.ts +46 -0
- package/dist-client/pages/accounting-category/accounting-category-tree-page.js +329 -0
- package/dist-client/pages/accounting-category/accounting-category-tree-page.js.map +1 -0
- package/dist-client/pages/accounting-document/accounting-document-importer.d.ts +23 -0
- package/dist-client/pages/accounting-document/accounting-document-importer.js +93 -0
- package/dist-client/pages/accounting-document/accounting-document-importer.js.map +1 -0
- package/dist-client/pages/accounting-document/accounting-document-list-page.d.ts +66 -0
- package/dist-client/pages/accounting-document/accounting-document-list-page.js +370 -0
- package/dist-client/pages/accounting-document/accounting-document-list-page.js.map +1 -0
- package/dist-client/pages/bank/bank-importer.d.ts +23 -0
- package/dist-client/pages/bank/bank-importer.js +93 -0
- package/dist-client/pages/bank/bank-importer.js.map +1 -0
- package/dist-client/pages/bank/bank-list-page.d.ts +66 -0
- package/dist-client/pages/bank/bank-list-page.js +370 -0
- package/dist-client/pages/bank/bank-list-page.js.map +1 -0
- package/dist-client/pages/bank-account/bank-account-importer.d.ts +23 -0
- package/dist-client/pages/bank-account/bank-account-importer.js +93 -0
- package/dist-client/pages/bank-account/bank-account-importer.js.map +1 -0
- package/dist-client/pages/bank-account/bank-account-list-page.d.ts +66 -0
- package/dist-client/pages/bank-account/bank-account-list-page.js +370 -0
- package/dist-client/pages/bank-account/bank-account-list-page.js.map +1 -0
- package/dist-client/pages/financial-institution/financial-institution-importer.d.ts +23 -0
- package/dist-client/pages/financial-institution/financial-institution-importer.js +93 -0
- package/dist-client/pages/financial-institution/financial-institution-importer.js.map +1 -0
- package/dist-client/pages/financial-institution/financial-institution-list-page.d.ts +66 -0
- package/dist-client/pages/financial-institution/financial-institution-list-page.js +370 -0
- package/dist-client/pages/financial-institution/financial-institution-list-page.js.map +1 -0
- package/dist-client/pages/financial-statement/financial-statement-importer.d.ts +22 -0
- package/dist-client/pages/financial-statement/financial-statement-importer.js +100 -0
- package/dist-client/pages/financial-statement/financial-statement-importer.js.map +1 -0
- package/dist-client/pages/financial-statement/financial-statement-list-page.d.ts +63 -0
- package/dist-client/pages/financial-statement/financial-statement-list-page.js +324 -0
- package/dist-client/pages/financial-statement/financial-statement-list-page.js.map +1 -0
- package/dist-client/pages/fiscal-month/fiscal-month-importer.d.ts +23 -0
- package/dist-client/pages/fiscal-month/fiscal-month-importer.js +93 -0
- package/dist-client/pages/fiscal-month/fiscal-month-importer.js.map +1 -0
- package/dist-client/pages/fiscal-month/fiscal-month-list-page.d.ts +66 -0
- package/dist-client/pages/fiscal-month/fiscal-month-list-page.js +370 -0
- package/dist-client/pages/fiscal-month/fiscal-month-list-page.js.map +1 -0
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-importer.d.ts +23 -0
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-importer.js +93 -0
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-importer.js.map +1 -0
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-list-page.d.ts +66 -0
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-list-page.js +370 -0
- package/dist-client/pages/fiscal-quarter/fiscal-quarter-list-page.js.map +1 -0
- package/dist-client/pages/fiscal-year/fiscal-year-importer.d.ts +23 -0
- package/dist-client/pages/fiscal-year/fiscal-year-importer.js +93 -0
- package/dist-client/pages/fiscal-year/fiscal-year-importer.js.map +1 -0
- package/dist-client/pages/fiscal-year/fiscal-year-list-page.d.ts +66 -0
- package/dist-client/pages/fiscal-year/fiscal-year-list-page.js +370 -0
- package/dist-client/pages/fiscal-year/fiscal-year-list-page.js.map +1 -0
- package/dist-client/pages/income-statement/income-statement-importer.d.ts +22 -0
- package/dist-client/pages/income-statement/income-statement-importer.js +100 -0
- package/dist-client/pages/income-statement/income-statement-importer.js.map +1 -0
- package/dist-client/pages/income-statement/income-statement-list-page.d.ts +63 -0
- package/dist-client/pages/income-statement/income-statement-list-page.js +324 -0
- package/dist-client/pages/income-statement/income-statement-list-page.js.map +1 -0
- package/dist-client/pages/payment/payment-importer.d.ts +23 -0
- package/dist-client/pages/payment/payment-importer.js +93 -0
- package/dist-client/pages/payment/payment-importer.js.map +1 -0
- package/dist-client/pages/payment/payment-list-page.d.ts +66 -0
- package/dist-client/pages/payment/payment-list-page.js +370 -0
- package/dist-client/pages/payment/payment-list-page.js.map +1 -0
- package/dist-client/pages/transaction/transaction-importer.d.ts +22 -0
- package/dist-client/pages/transaction/transaction-importer.js +100 -0
- package/dist-client/pages/transaction/transaction-importer.js.map +1 -0
- package/dist-client/pages/transaction/transaction-list-page.d.ts +63 -0
- package/dist-client/pages/transaction/transaction-list-page.js +324 -0
- package/dist-client/pages/transaction/transaction-list-page.js.map +1 -0
- package/dist-client/route.d.ts +1 -0
- package/dist-client/route.js +29 -0
- package/dist-client/route.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-client/types/accounting-category.d.ts +16 -0
- package/dist-client/types/accounting-category.js +3 -0
- package/dist-client/types/accounting-category.js.map +1 -0
- package/dist-client/types/index.d.ts +1 -0
- package/dist-client/types/index.js +2 -0
- package/dist-client/types/index.js.map +1 -0
- package/dist-server/activities/activity-book.d.ts +58 -0
- package/dist-server/activities/activity-book.js +163 -0
- package/dist-server/activities/activity-book.js.map +1 -0
- package/dist-server/activities/activity-expense.d.ts +58 -0
- package/dist-server/activities/activity-expense.js +150 -0
- package/dist-server/activities/activity-expense.js.map +1 -0
- package/dist-server/activities/index.d.ts +1 -0
- package/dist-server/activities/index.js +19 -0
- package/dist-server/activities/index.js.map +1 -0
- package/dist-server/controllers/index.d.ts +1 -0
- package/dist-server/controllers/index.js +5 -0
- package/dist-server/controllers/index.js.map +1 -0
- package/dist-server/controllers/summary-statements.d.ts +4 -0
- package/dist-server/controllers/summary-statements.js +149 -0
- package/dist-server/controllers/summary-statements.js.map +1 -0
- package/dist-server/index.d.ts +5 -0
- package/dist-server/index.js +9 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/middlewares/index.d.ts +1 -0
- package/dist-server/middlewares/index.js +7 -0
- package/dist-server/middlewares/index.js.map +1 -0
- package/dist-server/migrations/1725200507196-seed-fiscal-entities.d.ts +5 -0
- package/dist-server/migrations/1725200507196-seed-fiscal-entities.js +95 -0
- package/dist-server/migrations/1725200507196-seed-fiscal-entities.js.map +1 -0
- package/dist-server/migrations/1725201467183-seed-accounts.d.ts +5 -0
- package/dist-server/migrations/1725201467183-seed-accounts.js +318 -0
- package/dist-server/migrations/1725201467183-seed-accounts.js.map +1 -0
- package/dist-server/migrations/1725201567284-seed-country-codes.d.ts +5 -0
- package/dist-server/migrations/1725201567284-seed-country-codes.js +248 -0
- package/dist-server/migrations/1725201567284-seed-country-codes.js.map +1 -0
- package/dist-server/migrations/1725201667385-seed-financial-institutions.d.ts +5 -0
- package/dist-server/migrations/1725201667385-seed-financial-institutions.js +348 -0
- package/dist-server/migrations/1725201667385-seed-financial-institutions.js.map +1 -0
- package/dist-server/migrations/index.d.ts +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/routes.d.ts +0 -0
- package/dist-server/routes.js +24 -0
- package/dist-server/routes.js.map +1 -0
- package/dist-server/service/account/account-history.d.ts +26 -0
- package/dist-server/service/account/account-history.js +128 -0
- package/dist-server/service/account/account-history.js.map +1 -0
- package/dist-server/service/account/account-mutation.d.ts +10 -0
- package/dist-server/service/account/account-mutation.js +134 -0
- package/dist-server/service/account/account-mutation.js.map +1 -0
- package/dist-server/service/account/account-query.d.ts +11 -0
- package/dist-server/service/account/account-query.js +81 -0
- package/dist-server/service/account/account-query.js.map +1 -0
- package/dist-server/service/account/account-type.d.ts +17 -0
- package/dist-server/service/account/account-type.js +65 -0
- package/dist-server/service/account/account-type.js.map +1 -0
- package/dist-server/service/account/account.d.ts +22 -0
- package/dist-server/service/account/account.js +113 -0
- package/dist-server/service/account/account.js.map +1 -0
- package/dist-server/service/account/event-subscriber.d.ts +7 -0
- package/dist-server/service/account/event-subscriber.js +21 -0
- package/dist-server/service/account/event-subscriber.js.map +1 -0
- package/dist-server/service/account/index.d.ts +7 -0
- package/dist-server/service/account/index.js +12 -0
- package/dist-server/service/account/index.js.map +1 -0
- package/dist-server/service/accounting-category/accounting-category-history.d.ts +26 -0
- package/dist-server/service/accounting-category/accounting-category-history.js +141 -0
- package/dist-server/service/accounting-category/accounting-category-history.js.map +1 -0
- package/dist-server/service/accounting-category/accounting-category-mutation.d.ts +10 -0
- package/dist-server/service/accounting-category/accounting-category-mutation.js +136 -0
- package/dist-server/service/accounting-category/accounting-category-mutation.js.map +1 -0
- package/dist-server/service/accounting-category/accounting-category-query.d.ts +12 -0
- package/dist-server/service/accounting-category/accounting-category-query.js +102 -0
- package/dist-server/service/accounting-category/accounting-category-query.js.map +1 -0
- package/dist-server/service/accounting-category/accounting-category-type.d.ts +19 -0
- package/dist-server/service/accounting-category/accounting-category-type.js +73 -0
- package/dist-server/service/accounting-category/accounting-category-type.js.map +1 -0
- package/dist-server/service/accounting-category/accounting-category.d.ts +21 -0
- package/dist-server/service/accounting-category/accounting-category.js +105 -0
- package/dist-server/service/accounting-category/accounting-category.js.map +1 -0
- package/dist-server/service/accounting-category/event-subscriber.d.ts +7 -0
- package/dist-server/service/accounting-category/event-subscriber.js +21 -0
- package/dist-server/service/accounting-category/event-subscriber.js.map +1 -0
- package/dist-server/service/accounting-category/index.d.ts +7 -0
- package/dist-server/service/accounting-category/index.js +12 -0
- package/dist-server/service/accounting-category/index.js.map +1 -0
- package/dist-server/service/accounting-document/accounting-document-history.d.ts +26 -0
- package/dist-server/service/accounting-document/accounting-document-history.js +134 -0
- package/dist-server/service/accounting-document/accounting-document-history.js.map +1 -0
- package/dist-server/service/accounting-document/accounting-document-mutation.d.ts +10 -0
- package/dist-server/service/accounting-document/accounting-document-mutation.js +128 -0
- package/dist-server/service/accounting-document/accounting-document-mutation.js.map +1 -0
- package/dist-server/service/accounting-document/accounting-document-query.d.ts +11 -0
- package/dist-server/service/accounting-document/accounting-document-query.js +79 -0
- package/dist-server/service/accounting-document/accounting-document-query.js.map +1 -0
- package/dist-server/service/accounting-document/accounting-document-type.d.ts +20 -0
- package/dist-server/service/accounting-document/accounting-document-type.js +74 -0
- package/dist-server/service/accounting-document/accounting-document-type.js.map +1 -0
- package/dist-server/service/accounting-document/accounting-document.d.ts +21 -0
- package/dist-server/service/accounting-document/accounting-document.js +104 -0
- package/dist-server/service/accounting-document/accounting-document.js.map +1 -0
- package/dist-server/service/accounting-document/event-subscriber.d.ts +7 -0
- package/dist-server/service/accounting-document/event-subscriber.js +21 -0
- package/dist-server/service/accounting-document/event-subscriber.js.map +1 -0
- package/dist-server/service/accounting-document/index.d.ts +7 -0
- package/dist-server/service/accounting-document/index.js +12 -0
- package/dist-server/service/accounting-document/index.js.map +1 -0
- package/dist-server/service/bank-account/bank-account-history.d.ts +34 -0
- package/dist-server/service/bank-account/bank-account-history.js +172 -0
- package/dist-server/service/bank-account/bank-account-history.js.map +1 -0
- package/dist-server/service/bank-account/bank-account-mutation.d.ts +10 -0
- package/dist-server/service/bank-account/bank-account-mutation.js +128 -0
- package/dist-server/service/bank-account/bank-account-mutation.js.map +1 -0
- package/dist-server/service/bank-account/bank-account-query.d.ts +11 -0
- package/dist-server/service/bank-account/bank-account-query.js +79 -0
- package/dist-server/service/bank-account/bank-account-query.js.map +1 -0
- package/dist-server/service/bank-account/bank-account-type.d.ts +39 -0
- package/dist-server/service/bank-account/bank-account-type.js +153 -0
- package/dist-server/service/bank-account/bank-account-type.js.map +1 -0
- package/dist-server/service/bank-account/bank-account.d.ts +38 -0
- package/dist-server/service/bank-account/bank-account.js +164 -0
- package/dist-server/service/bank-account/bank-account.js.map +1 -0
- package/dist-server/service/bank-account/event-subscriber.d.ts +7 -0
- package/dist-server/service/bank-account/event-subscriber.js +21 -0
- package/dist-server/service/bank-account/event-subscriber.js.map +1 -0
- package/dist-server/service/bank-account/index.d.ts +7 -0
- package/dist-server/service/bank-account/index.js +12 -0
- package/dist-server/service/bank-account/index.js.map +1 -0
- package/dist-server/service/common-type.d.ts +5 -0
- package/dist-server/service/common-type.js +15 -0
- package/dist-server/service/common-type.js.map +1 -0
- package/dist-server/service/financial-institution/financial-institution-mutation.d.ts +10 -0
- package/dist-server/service/financial-institution/financial-institution-mutation.js +169 -0
- package/dist-server/service/financial-institution/financial-institution-mutation.js.map +1 -0
- package/dist-server/service/financial-institution/financial-institution-query.d.ts +12 -0
- package/dist-server/service/financial-institution/financial-institution-query.js +97 -0
- package/dist-server/service/financial-institution/financial-institution-query.js.map +1 -0
- package/dist-server/service/financial-institution/financial-institution-type.d.ts +32 -0
- package/dist-server/service/financial-institution/financial-institution-type.js +126 -0
- package/dist-server/service/financial-institution/financial-institution-type.js.map +1 -0
- package/dist-server/service/financial-institution/financial-institution.d.ts +34 -0
- package/dist-server/service/financial-institution/financial-institution.js +137 -0
- package/dist-server/service/financial-institution/financial-institution.js.map +1 -0
- package/dist-server/service/financial-institution/index.d.ts +6 -0
- package/dist-server/service/financial-institution/index.js +10 -0
- package/dist-server/service/financial-institution/index.js.map +1 -0
- package/dist-server/service/financial-statement/event-subscriber.d.ts +7 -0
- package/dist-server/service/financial-statement/event-subscriber.js +21 -0
- package/dist-server/service/financial-statement/event-subscriber.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement-history.d.ts +27 -0
- package/dist-server/service/financial-statement/financial-statement-history.js +141 -0
- package/dist-server/service/financial-statement/financial-statement-history.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement-line-item.d.ts +19 -0
- package/dist-server/service/financial-statement/financial-statement-line-item.js +94 -0
- package/dist-server/service/financial-statement/financial-statement-line-item.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement-mutation.d.ts +10 -0
- package/dist-server/service/financial-statement/financial-statement-mutation.js +136 -0
- package/dist-server/service/financial-statement/financial-statement-mutation.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement-query.d.ts +11 -0
- package/dist-server/service/financial-statement/financial-statement-query.js +81 -0
- package/dist-server/service/financial-statement/financial-statement-query.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement-type.d.ts +20 -0
- package/dist-server/service/financial-statement/financial-statement-type.js +77 -0
- package/dist-server/service/financial-statement/financial-statement-type.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement.d.ts +27 -0
- package/dist-server/service/financial-statement/financial-statement.js +132 -0
- package/dist-server/service/financial-statement/financial-statement.js.map +1 -0
- package/dist-server/service/financial-statement/index.d.ts +8 -0
- package/dist-server/service/financial-statement/index.js +13 -0
- package/dist-server/service/financial-statement/index.js.map +1 -0
- package/dist-server/service/fiscal-month/fiscal-month-mutation.d.ts +10 -0
- package/dist-server/service/fiscal-month/fiscal-month-mutation.js +134 -0
- package/dist-server/service/fiscal-month/fiscal-month-mutation.js.map +1 -0
- package/dist-server/service/fiscal-month/fiscal-month-query.d.ts +11 -0
- package/dist-server/service/fiscal-month/fiscal-month-query.js +83 -0
- package/dist-server/service/fiscal-month/fiscal-month-query.js.map +1 -0
- package/dist-server/service/fiscal-month/fiscal-month-type.d.ts +26 -0
- package/dist-server/service/fiscal-month/fiscal-month-type.js +98 -0
- package/dist-server/service/fiscal-month/fiscal-month-type.js.map +1 -0
- package/dist-server/service/fiscal-month/fiscal-month.d.ts +22 -0
- package/dist-server/service/fiscal-month/fiscal-month.js +99 -0
- package/dist-server/service/fiscal-month/fiscal-month.js.map +1 -0
- package/dist-server/service/fiscal-month/index.d.ts +6 -0
- package/dist-server/service/fiscal-month/index.js +10 -0
- package/dist-server/service/fiscal-month/index.js.map +1 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter-mutation.d.ts +10 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter-mutation.js +134 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter-mutation.js.map +1 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter-query.d.ts +11 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter-query.js +85 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter-query.js.map +1 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter-type.d.ts +24 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter-type.js +90 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter-type.js.map +1 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter.d.ts +21 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter.js +94 -0
- package/dist-server/service/fiscal-quarter/fiscal-quarter.js.map +1 -0
- package/dist-server/service/fiscal-quarter/index.d.ts +6 -0
- package/dist-server/service/fiscal-quarter/index.js +10 -0
- package/dist-server/service/fiscal-quarter/index.js.map +1 -0
- package/dist-server/service/fiscal-year/fiscal-year-mutation.d.ts +10 -0
- package/dist-server/service/fiscal-year/fiscal-year-mutation.js +134 -0
- package/dist-server/service/fiscal-year/fiscal-year-mutation.js.map +1 -0
- package/dist-server/service/fiscal-year/fiscal-year-query.d.ts +11 -0
- package/dist-server/service/fiscal-year/fiscal-year-query.js +81 -0
- package/dist-server/service/fiscal-year/fiscal-year-query.js.map +1 -0
- package/dist-server/service/fiscal-year/fiscal-year-type.d.ts +22 -0
- package/dist-server/service/fiscal-year/fiscal-year-type.js +82 -0
- package/dist-server/service/fiscal-year/fiscal-year-type.js.map +1 -0
- package/dist-server/service/fiscal-year/fiscal-year.d.ts +20 -0
- package/dist-server/service/fiscal-year/fiscal-year.js +89 -0
- package/dist-server/service/fiscal-year/fiscal-year.js.map +1 -0
- package/dist-server/service/fiscal-year/index.d.ts +6 -0
- package/dist-server/service/fiscal-year/index.js +10 -0
- package/dist-server/service/fiscal-year/index.js.map +1 -0
- package/dist-server/service/income-statement/event-subscriber.d.ts +7 -0
- package/dist-server/service/income-statement/event-subscriber.js +21 -0
- package/dist-server/service/income-statement/event-subscriber.js.map +1 -0
- package/dist-server/service/income-statement/income-statement-history.d.ts +28 -0
- package/dist-server/service/income-statement/income-statement-history.js +146 -0
- package/dist-server/service/income-statement/income-statement-history.js.map +1 -0
- package/dist-server/service/income-statement/income-statement-line-item.d.ts +19 -0
- package/dist-server/service/income-statement/income-statement-line-item.js +96 -0
- package/dist-server/service/income-statement/income-statement-line-item.js.map +1 -0
- package/dist-server/service/income-statement/income-statement-mutation.d.ts +10 -0
- package/dist-server/service/income-statement/income-statement-mutation.js +136 -0
- package/dist-server/service/income-statement/income-statement-mutation.js.map +1 -0
- package/dist-server/service/income-statement/income-statement-query.d.ts +11 -0
- package/dist-server/service/income-statement/income-statement-query.js +81 -0
- package/dist-server/service/income-statement/income-statement-query.js.map +1 -0
- package/dist-server/service/income-statement/income-statement-type.d.ts +20 -0
- package/dist-server/service/income-statement/income-statement-type.js +77 -0
- package/dist-server/service/income-statement/income-statement-type.js.map +1 -0
- package/dist-server/service/income-statement/income-statement.d.ts +28 -0
- package/dist-server/service/income-statement/income-statement.js +137 -0
- package/dist-server/service/income-statement/income-statement.js.map +1 -0
- package/dist-server/service/income-statement/index.d.ts +8 -0
- package/dist-server/service/income-statement/index.js +13 -0
- package/dist-server/service/income-statement/index.js.map +1 -0
- package/dist-server/service/index.d.ts +16 -0
- package/dist-server/service/index.js +74 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/payment/event-subscriber.d.ts +7 -0
- package/dist-server/service/payment/event-subscriber.js +21 -0
- package/dist-server/service/payment/event-subscriber.js.map +1 -0
- package/dist-server/service/payment/index.d.ts +7 -0
- package/dist-server/service/payment/index.js +12 -0
- package/dist-server/service/payment/index.js.map +1 -0
- package/dist-server/service/payment/payment-history.d.ts +37 -0
- package/dist-server/service/payment/payment-history.js +179 -0
- package/dist-server/service/payment/payment-history.js.map +1 -0
- package/dist-server/service/payment/payment-mutation.d.ts +10 -0
- package/dist-server/service/payment/payment-mutation.js +134 -0
- package/dist-server/service/payment/payment-mutation.js.map +1 -0
- package/dist-server/service/payment/payment-query.d.ts +11 -0
- package/dist-server/service/payment/payment-query.js +81 -0
- package/dist-server/service/payment/payment-query.js.map +1 -0
- package/dist-server/service/payment/payment-type.d.ts +30 -0
- package/dist-server/service/payment/payment-type.js +114 -0
- package/dist-server/service/payment/payment-type.js.map +1 -0
- package/dist-server/service/payment/payment.d.ts +42 -0
- package/dist-server/service/payment/payment.js +181 -0
- package/dist-server/service/payment/payment.js.map +1 -0
- package/dist-server/service/transaction/event-subscriber.d.ts +7 -0
- package/dist-server/service/transaction/event-subscriber.js +21 -0
- package/dist-server/service/transaction/event-subscriber.js.map +1 -0
- package/dist-server/service/transaction/index.d.ts +8 -0
- package/dist-server/service/transaction/index.js +12 -0
- package/dist-server/service/transaction/index.js.map +1 -0
- package/dist-server/service/transaction/transaction-history.d.ts +36 -0
- package/dist-server/service/transaction/transaction-history.js +184 -0
- package/dist-server/service/transaction/transaction-history.js.map +1 -0
- package/dist-server/service/transaction/transaction-mutation.d.ts +10 -0
- package/dist-server/service/transaction/transaction-mutation.js +134 -0
- package/dist-server/service/transaction/transaction-mutation.js.map +1 -0
- package/dist-server/service/transaction/transaction-query.d.ts +11 -0
- package/dist-server/service/transaction/transaction-query.js +81 -0
- package/dist-server/service/transaction/transaction-query.js.map +1 -0
- package/dist-server/service/transaction/transaction-type.d.ts +19 -0
- package/dist-server/service/transaction/transaction-type.js +73 -0
- package/dist-server/service/transaction/transaction-type.js.map +1 -0
- package/dist-server/service/transaction/transaction.d.ts +57 -0
- package/dist-server/service/transaction/transaction.js +241 -0
- package/dist-server/service/transaction/transaction.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '../components/book-edit.js';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
declare const ActivityBookView_base: (new (...args: any[]) => LitElement) & typeof LitElement;
|
|
4
|
+
export declare class ActivityBookView extends ActivityBookView_base {
|
|
5
|
+
static styles: import("lit").CSSResult[];
|
|
6
|
+
input?: any;
|
|
7
|
+
output?: any;
|
|
8
|
+
book?: any;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
onChange(): Promise<void>;
|
|
11
|
+
updated(changes: any): void;
|
|
12
|
+
fetchBook(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Add the following line to clinet/bootstrap.ts so that activity editor can be registered when loading a module.
|
|
3
|
+
--
|
|
4
|
+
import './activities/book-edit.js' // refered by the activity template (activity-book) on server
|
|
5
|
+
*/
|
|
6
|
+
import { __decorate, __metadata } from "tslib";
|
|
7
|
+
import '../components/book-edit.js';
|
|
8
|
+
import gql from 'graphql-tag';
|
|
9
|
+
import { css, html, LitElement } from 'lit';
|
|
10
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
11
|
+
import { client } from '@operato/graphql';
|
|
12
|
+
import { i18next, localize } from '@operato/i18n';
|
|
13
|
+
import { ScrollbarStyles } from '@operato/styles';
|
|
14
|
+
// import { BookView } from '../components/book-edit.js'
|
|
15
|
+
let ActivityBookView = class ActivityBookView extends localize(i18next)(LitElement) {
|
|
16
|
+
// @query('book-edit') bookView!: BookView
|
|
17
|
+
render() {
|
|
18
|
+
return html ` <book-edit .book=${this.book} .value=${this.output} @change=${this.onChange}></book-edit> `;
|
|
19
|
+
}
|
|
20
|
+
async onChange() {
|
|
21
|
+
// this.output = this.bookView.value
|
|
22
|
+
this.dispatchEvent(new CustomEvent('change', {
|
|
23
|
+
detail: this.output
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
updated(changes) {
|
|
27
|
+
if (changes.has('input')) {
|
|
28
|
+
this.fetchBook();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async fetchBook() {
|
|
32
|
+
const id = this.input.bookId;
|
|
33
|
+
if (id) {
|
|
34
|
+
const response = await client.query({
|
|
35
|
+
query: gql `
|
|
36
|
+
query ($id: String!) {
|
|
37
|
+
book(id: $id) {
|
|
38
|
+
id
|
|
39
|
+
name
|
|
40
|
+
description
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`,
|
|
44
|
+
variables: {
|
|
45
|
+
id
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
this.book = response.data.book;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
ActivityBookView.styles = [
|
|
53
|
+
ScrollbarStyles,
|
|
54
|
+
css `
|
|
55
|
+
:host {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
|
|
59
|
+
background-color: #fff;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
book-edit {
|
|
63
|
+
flex: 1;
|
|
64
|
+
padding: 10px;
|
|
65
|
+
overflow: auto;
|
|
66
|
+
}
|
|
67
|
+
`
|
|
68
|
+
];
|
|
69
|
+
__decorate([
|
|
70
|
+
property({ type: Object }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], ActivityBookView.prototype, "input", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
property({ type: Object }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], ActivityBookView.prototype, "output", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
state(),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], ActivityBookView.prototype, "book", void 0);
|
|
81
|
+
ActivityBookView = __decorate([
|
|
82
|
+
customElement('activity-book-edit')
|
|
83
|
+
], ActivityBookView);
|
|
84
|
+
export { ActivityBookView };
|
|
85
|
+
//# sourceMappingURL=activity-book-edit.js.map
|
|
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AC,KAAK,CAAC;gBAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;;SAQT;gBACD,SAAS,EAAE;oBACT,EAAE;iBACH;aACF,CAAC,CAAA;YAEF,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAA;QAChC,CAAC;IACH,CAAC;;AAlEM,uBAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;KAaF;CACF,AAhBY,CAgBZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CAAY;AACX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDAAa;AAE/B;IAAR,KAAK,EAAE;;8CAAW;AAtBR,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAoE5B","sourcesContent":["/* \nAdd the following line to clinet/bootstrap.ts so that activity editor can be registered when loading a module.\n--\nimport './activities/book-edit.js' // refered by the activity template (activity-book) on server\n*/\n\nimport '../components/book-edit.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\n\n// import { BookView } from '../components/book-edit.js'\n\n@customElement('activity-book-edit')\nexport class ActivityBookView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n book-edit {\n flex: 1;\n padding: 10px;\n overflow: auto;\n }\n `\n ]\n\n @property({ type: Object }) input?: any\n @property({ type: Object }) output?: any\n\n @state() book?: any //Book\n\n // @query('book-edit') bookView!: BookView\n\n render() {\n return html` <book-edit .book=${this.book} .value=${this.output} @change=${this.onChange}></book-edit> `\n }\n\n async onChange() {\n // this.output = this.bookView.value\n\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: this.output\n })\n )\n }\n\n updated(changes) {\n if (changes.has('input')) {\n this.fetchBook()\n }\n }\n\n async fetchBook() {\n const id = this.input.bookId\n\n if (id) {\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n book(id: $id) {\n id\n name\n description\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.book = response.data.book\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '../components/book-view.js';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
declare const ActivityBookView_base: (new (...args: any[]) => LitElement) & typeof LitElement;
|
|
4
|
+
export declare class ActivityBookView extends ActivityBookView_base {
|
|
5
|
+
static styles: import("lit").CSSResult[];
|
|
6
|
+
input?: any;
|
|
7
|
+
output?: any;
|
|
8
|
+
book?: any;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
onChange(): Promise<void>;
|
|
11
|
+
updated(changes: any): void;
|
|
12
|
+
fetchBook(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Add the following line to clinet/bootstrap.ts so that activity view can be registered when loading a module.
|
|
3
|
+
--
|
|
4
|
+
import './activities/book-view.js' // refered by the activity template (activity-data-collect) on server
|
|
5
|
+
*/
|
|
6
|
+
import { __decorate, __metadata } from "tslib";
|
|
7
|
+
import '../components/book-view.js';
|
|
8
|
+
import gql from 'graphql-tag';
|
|
9
|
+
import { css, html, LitElement } from 'lit';
|
|
10
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
11
|
+
import { client } from '@operato/graphql';
|
|
12
|
+
import { i18next, localize } from '@operato/i18n';
|
|
13
|
+
import { ScrollbarStyles } from '@operato/styles';
|
|
14
|
+
// import { BookView } from '../components/book-view.js'
|
|
15
|
+
let ActivityBookView = class ActivityBookView extends localize(i18next)(LitElement) {
|
|
16
|
+
// @query('book-view') bookView!: BookView
|
|
17
|
+
render() {
|
|
18
|
+
return html ` <book-view .book=${this.book} .value=${this.output} @change=${this.onChange}></book-view> `;
|
|
19
|
+
}
|
|
20
|
+
async onChange() {
|
|
21
|
+
// this.output = this.bookView.value
|
|
22
|
+
this.dispatchEvent(new CustomEvent('change', {
|
|
23
|
+
detail: this.output
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
updated(changes) {
|
|
27
|
+
if (changes.has('input')) {
|
|
28
|
+
this.fetchBook();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async fetchBook() {
|
|
32
|
+
const id = this.input.bookId;
|
|
33
|
+
if (id) {
|
|
34
|
+
const response = await client.query({
|
|
35
|
+
query: gql `
|
|
36
|
+
query ($id: String!) {
|
|
37
|
+
book(id: $id) {
|
|
38
|
+
id
|
|
39
|
+
name
|
|
40
|
+
description
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`,
|
|
44
|
+
variables: {
|
|
45
|
+
id
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
this.book = response.data.book;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
ActivityBookView.styles = [
|
|
53
|
+
ScrollbarStyles,
|
|
54
|
+
css `
|
|
55
|
+
:host {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
|
|
59
|
+
background-color: #fff;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
book-view {
|
|
63
|
+
flex: 1;
|
|
64
|
+
padding: 10px;
|
|
65
|
+
overflow: auto;
|
|
66
|
+
}
|
|
67
|
+
`
|
|
68
|
+
];
|
|
69
|
+
__decorate([
|
|
70
|
+
property({ type: Object }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], ActivityBookView.prototype, "input", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
property({ type: Object }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], ActivityBookView.prototype, "output", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
state(),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], ActivityBookView.prototype, "book", void 0);
|
|
81
|
+
ActivityBookView = __decorate([
|
|
82
|
+
customElement('activity-book-view')
|
|
83
|
+
], ActivityBookView);
|
|
84
|
+
export { ActivityBookView };
|
|
85
|
+
//# sourceMappingURL=activity-book-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-book-view.js","sourceRoot":"","sources":["../../client/activities/activity-book-view.ts"],"names":[],"mappings":"AAAA;;;;EAIE;;AAEF,OAAO,4BAA4B,CAAA;AAEnC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,wDAAwD;AAGjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;IAwBjE,0CAA0C;IAE1C,MAAM;QACJ,OAAO,IAAI,CAAA,qBAAqB,IAAI,CAAC,IAAI,WAAW,IAAI,CAAC,MAAM,YAAY,IAAI,CAAC,QAAQ,gBAAgB,CAAA;IAC1G,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,oCAAoC;QAEpC,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,QAAQ,EAAE;YACxB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC,CACH,CAAA;IACH,CAAC;IAED,OAAO,CAAC,OAAO;QACb,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACzB,IAAI,CAAC,SAAS,EAAE,CAAA;QAClB,CAAC;IACH,CAAC;IAED,KAAK,CAAC,SAAS;QACb,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAA;QAE5B,IAAI,EAAE,EAAE,CAAC;YACP,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;gBAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;;SAQT;gBACD,SAAS,EAAE;oBACT,EAAE;iBACH;aACF,CAAC,CAAA;YAEF,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAA;QAChC,CAAC;IACH,CAAC;;AAlEM,uBAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;KAaF;CACF,AAhBY,CAgBZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CAAY;AACX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDAAa;AAE/B;IAAR,KAAK,EAAE;;8CAAW;AAtBR,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAoE5B","sourcesContent":["/* \nAdd the following line to clinet/bootstrap.ts so that activity view can be registered when loading a module.\n--\nimport './activities/book-view.js' // refered by the activity template (activity-data-collect) on server\n*/\n\nimport '../components/book-view.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\n\n// import { BookView } from '../components/book-view.js'\n\n@customElement('activity-book-view')\nexport class ActivityBookView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n book-view {\n flex: 1;\n padding: 10px;\n overflow: auto;\n }\n `\n ]\n\n @property({ type: Object }) input?: any\n @property({ type: Object }) output?: any\n\n @state() book?: any //Book\n\n // @query('book-view') bookView!: BookView\n\n render() {\n return html` <book-view .book=${this.book} .value=${this.output} @change=${this.onChange}></book-view> `\n }\n\n async onChange() {\n // this.output = this.bookView.value\n\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: this.output\n })\n )\n }\n\n updated(changes) {\n if (changes.has('input')) {\n this.fetchBook()\n }\n }\n\n async fetchBook() {\n const id = this.input.bookId\n\n if (id) {\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n book(id: $id) {\n id\n name\n description\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.book = response.data.book\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '../components/expense-edit.js';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
declare const ActivityExpenseView_base: (new (...args: any[]) => LitElement) & typeof LitElement;
|
|
4
|
+
export declare class ActivityExpenseView extends ActivityExpenseView_base {
|
|
5
|
+
static styles: import("lit").CSSResult[];
|
|
6
|
+
input?: any;
|
|
7
|
+
output?: any;
|
|
8
|
+
expense?: any;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
onChange(): Promise<void>;
|
|
11
|
+
updated(changes: any): void;
|
|
12
|
+
fetchExpense(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Add the following line to clinet/bootstrap.ts so that activity editor can be registered when loading a module.
|
|
3
|
+
--
|
|
4
|
+
import './activities/expense-edit.js' // refered by the activity template (activity-expense) on server
|
|
5
|
+
*/
|
|
6
|
+
import { __decorate, __metadata } from "tslib";
|
|
7
|
+
import '../components/expense-edit.js';
|
|
8
|
+
import gql from 'graphql-tag';
|
|
9
|
+
import { css, html, LitElement } from 'lit';
|
|
10
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
11
|
+
import { client } from '@operato/graphql';
|
|
12
|
+
import { i18next, localize } from '@operato/i18n';
|
|
13
|
+
import { ScrollbarStyles } from '@operato/styles';
|
|
14
|
+
// import { ExpenseView } from '../components/expense-edit.js'
|
|
15
|
+
let ActivityExpenseView = class ActivityExpenseView extends localize(i18next)(LitElement) {
|
|
16
|
+
// @query('expense-edit') expenseView!: ExpenseView
|
|
17
|
+
render() {
|
|
18
|
+
return html ` <expense-edit .expense=${this.expense} .value=${this.output} @change=${this.onChange}></expense-edit> `;
|
|
19
|
+
}
|
|
20
|
+
async onChange() {
|
|
21
|
+
// this.output = this.expenseView.value
|
|
22
|
+
this.dispatchEvent(new CustomEvent('change', {
|
|
23
|
+
detail: this.output
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
updated(changes) {
|
|
27
|
+
if (changes.has('input')) {
|
|
28
|
+
this.fetchExpense();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async fetchExpense() {
|
|
32
|
+
const id = this.input.expenseId;
|
|
33
|
+
if (id) {
|
|
34
|
+
const response = await client.query({
|
|
35
|
+
query: gql `
|
|
36
|
+
query ($id: String!) {
|
|
37
|
+
expense(id: $id) {
|
|
38
|
+
id
|
|
39
|
+
name
|
|
40
|
+
description
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`,
|
|
44
|
+
variables: {
|
|
45
|
+
id
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
this.expense = response.data.expense;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
ActivityExpenseView.styles = [
|
|
53
|
+
ScrollbarStyles,
|
|
54
|
+
css `
|
|
55
|
+
:host {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
|
|
59
|
+
background-color: #fff;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
expense-edit {
|
|
63
|
+
flex: 1;
|
|
64
|
+
padding: 10px;
|
|
65
|
+
overflow: auto;
|
|
66
|
+
}
|
|
67
|
+
`
|
|
68
|
+
];
|
|
69
|
+
__decorate([
|
|
70
|
+
property({ type: Object }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], ActivityExpenseView.prototype, "input", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
property({ type: Object }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], ActivityExpenseView.prototype, "output", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
state(),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], ActivityExpenseView.prototype, "expense", void 0);
|
|
81
|
+
ActivityExpenseView = __decorate([
|
|
82
|
+
customElement('activity-expense-edit')
|
|
83
|
+
], ActivityExpenseView);
|
|
84
|
+
export { ActivityExpenseView };
|
|
85
|
+
//# sourceMappingURL=activity-expense-edit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-expense-edit.js","sourceRoot":"","sources":["../../client/activities/activity-expense-edit.ts"],"names":[],"mappings":"AAAA;;;;EAIE;;AAEF,OAAO,+BAA+B,CAAA;AAEtC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,8DAA8D;AAGvD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;IAwBpE,mDAAmD;IAEnD,MAAM;QACJ,OAAO,IAAI,CAAA,2BAA2B,IAAI,CAAC,OAAO,WAAW,IAAI,CAAC,MAAM,YAAY,IAAI,CAAC,QAAQ,mBAAmB,CAAA;IACtH,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,uCAAuC;QAEvC,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,QAAQ,EAAE;YACxB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC,CACH,CAAA;IACH,CAAC;IAED,OAAO,CAAC,OAAO;QACb,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACzB,IAAI,CAAC,YAAY,EAAE,CAAA;QACrB,CAAC;IACH,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAA;QAE/B,IAAI,EAAE,EAAE,CAAC;YACP,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;gBAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;;SAQT;gBACD,SAAS,EAAE;oBACT,EAAE;iBACH;aACF,CAAC,CAAA;YAEF,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAA;QACtC,CAAC;IACH,CAAC;;AAlEM,0BAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;KAaF;CACF,AAhBY,CAgBZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDAAY;AACX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDAAa;AAE/B;IAAR,KAAK,EAAE;;oDAAc;AAtBX,mBAAmB;IAD/B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,mBAAmB,CAoE/B","sourcesContent":["/* \nAdd the following line to clinet/bootstrap.ts so that activity editor can be registered when loading a module.\n--\nimport './activities/expense-edit.js' // refered by the activity template (activity-expense) on server\n*/\n\nimport '../components/expense-edit.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\n\n// import { ExpenseView } from '../components/expense-edit.js'\n\n@customElement('activity-expense-edit')\nexport class ActivityExpenseView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n expense-edit {\n flex: 1;\n padding: 10px;\n overflow: auto;\n }\n `\n ]\n\n @property({ type: Object }) input?: any\n @property({ type: Object }) output?: any\n\n @state() expense?: any //Expense\n\n // @query('expense-edit') expenseView!: ExpenseView\n\n render() {\n return html` <expense-edit .expense=${this.expense} .value=${this.output} @change=${this.onChange}></expense-edit> `\n }\n\n async onChange() {\n // this.output = this.expenseView.value\n\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: this.output\n })\n )\n }\n\n updated(changes) {\n if (changes.has('input')) {\n this.fetchExpense()\n }\n }\n\n async fetchExpense() {\n const id = this.input.expenseId\n\n if (id) {\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n expense(id: $id) {\n id\n name\n description\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.expense = response.data.expense\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '../components/expense-view.js';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
declare const ActivityExpenseView_base: (new (...args: any[]) => LitElement) & typeof LitElement;
|
|
4
|
+
export declare class ActivityExpenseView extends ActivityExpenseView_base {
|
|
5
|
+
static styles: import("lit").CSSResult[];
|
|
6
|
+
input?: any;
|
|
7
|
+
output?: any;
|
|
8
|
+
expense?: any;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
onChange(): Promise<void>;
|
|
11
|
+
updated(changes: any): void;
|
|
12
|
+
fetchExpense(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Add the following line to clinet/bootstrap.ts so that activity view can be registered when loading a module.
|
|
3
|
+
--
|
|
4
|
+
import './activities/expense-view.js' // refered by the activity template (activity-data-collect) on server
|
|
5
|
+
*/
|
|
6
|
+
import { __decorate, __metadata } from "tslib";
|
|
7
|
+
import '../components/expense-view.js';
|
|
8
|
+
import gql from 'graphql-tag';
|
|
9
|
+
import { css, html, LitElement } from 'lit';
|
|
10
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
11
|
+
import { client } from '@operato/graphql';
|
|
12
|
+
import { i18next, localize } from '@operato/i18n';
|
|
13
|
+
import { ScrollbarStyles } from '@operato/styles';
|
|
14
|
+
// import { ExpenseView } from '../components/expense-view.js'
|
|
15
|
+
let ActivityExpenseView = class ActivityExpenseView extends localize(i18next)(LitElement) {
|
|
16
|
+
// @query('expense-view') expenseView!: ExpenseView
|
|
17
|
+
render() {
|
|
18
|
+
return html ` <expense-view .expense=${this.expense} .value=${this.output} @change=${this.onChange}></expense-view> `;
|
|
19
|
+
}
|
|
20
|
+
async onChange() {
|
|
21
|
+
// this.output = this.expenseView.value
|
|
22
|
+
this.dispatchEvent(new CustomEvent('change', {
|
|
23
|
+
detail: this.output
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
updated(changes) {
|
|
27
|
+
if (changes.has('input')) {
|
|
28
|
+
this.fetchExpense();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async fetchExpense() {
|
|
32
|
+
const id = this.input.expenseId;
|
|
33
|
+
if (id) {
|
|
34
|
+
const response = await client.query({
|
|
35
|
+
query: gql `
|
|
36
|
+
query ($id: String!) {
|
|
37
|
+
expense(id: $id) {
|
|
38
|
+
id
|
|
39
|
+
name
|
|
40
|
+
description
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`,
|
|
44
|
+
variables: {
|
|
45
|
+
id
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
this.expense = response.data.expense;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
ActivityExpenseView.styles = [
|
|
53
|
+
ScrollbarStyles,
|
|
54
|
+
css `
|
|
55
|
+
:host {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
|
|
59
|
+
background-color: #fff;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
expense-view {
|
|
63
|
+
flex: 1;
|
|
64
|
+
padding: 10px;
|
|
65
|
+
overflow: auto;
|
|
66
|
+
}
|
|
67
|
+
`
|
|
68
|
+
];
|
|
69
|
+
__decorate([
|
|
70
|
+
property({ type: Object }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], ActivityExpenseView.prototype, "input", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
property({ type: Object }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], ActivityExpenseView.prototype, "output", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
state(),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], ActivityExpenseView.prototype, "expense", void 0);
|
|
81
|
+
ActivityExpenseView = __decorate([
|
|
82
|
+
customElement('activity-expense-view')
|
|
83
|
+
], ActivityExpenseView);
|
|
84
|
+
export { ActivityExpenseView };
|
|
85
|
+
//# sourceMappingURL=activity-expense-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-expense-view.js","sourceRoot":"","sources":["../../client/activities/activity-expense-view.ts"],"names":[],"mappings":"AAAA;;;;EAIE;;AAEF,OAAO,+BAA+B,CAAA;AAEtC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,KAAK,EAAE,MAAM,mBAAmB,CAA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AAE,MAAM,EAAE,CAAC;;kDAAY;AACX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDAAa;AAE/B;IAAR,KAAK,EAAE;;oDAAc;AAtBX,mBAAmB;IAD/B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,mBAAmB,CAoE/B","sourcesContent":["/* \nAdd the following line to clinet/bootstrap.ts so that activity view can be registered when loading a module.\n--\nimport './activities/expense-view.js' // refered by the activity template (activity-data-collect) on server\n*/\n\nimport '../components/expense-view.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\n\n// import { ExpenseView } from '../components/expense-view.js'\n\n@customElement('activity-expense-view')\nexport class ActivityExpenseView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n expense-view {\n flex: 1;\n padding: 10px;\n overflow: auto;\n }\n `\n ]\n\n @property({ type: Object }) input?: any\n @property({ type: Object }) output?: any\n\n @state() expense?: any //Expense\n\n // @query('expense-view') expenseView!: ExpenseView\n\n render() {\n return html` <expense-view .expense=${this.expense} .value=${this.output} @change=${this.onChange}></expense-view> `\n }\n\n async onChange() {\n // this.output = this.expenseView.value\n\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: this.output\n })\n )\n }\n\n updated(changes) {\n if (changes.has('input')) {\n this.fetchExpense()\n }\n }\n\n async fetchExpense() {\n const id = this.input.expenseId\n\n if (id) {\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n expense(id: $id) {\n id\n name\n description\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.expense = response.data.expense\n }\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function bootstrap(): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { registerEditor, registerRenderer } from '@operato/data-grist';
|
|
2
|
+
import { GristRendererAccountingCategoryObject } from './grist-editors/grist-renderer-accounting-category-object';
|
|
3
|
+
import { GristEditorAccountingCategoryObject } from './grist-editors/grist-editor-accounting-category-object';
|
|
4
|
+
export default function bootstrap() {
|
|
5
|
+
registerEditor('accounting-category-object', GristEditorAccountingCategoryObject);
|
|
6
|
+
registerRenderer('accounting-category-object', GristRendererAccountingCategoryObject);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtE,OAAO,EAAE,qCAAqC,EAAE,MAAM,2DAA2D,CAAA;AACjH,OAAO,EAAE,mCAAmC,EAAE,MAAM,yDAAyD,CAAA;AAE7G,MAAM,CAAC,OAAO,UAAU,SAAS;IAC/B,cAAc,CAAC,4BAA4B,EAAE,mCAAmC,CAAC,CAAA;IAEjF,gBAAgB,CAAC,4BAA4B,EAAE,qCAAqC,CAAC,CAAA;AACvF,CAAC","sourcesContent":["import { registerEditor, registerRenderer } from '@operato/data-grist'\n\nimport { GristRendererAccountingCategoryObject } from './grist-editors/grist-renderer-accounting-category-object'\nimport { GristEditorAccountingCategoryObject } from './grist-editors/grist-editor-accounting-category-object'\n\nexport default function bootstrap() {\n registerEditor('accounting-category-object', GristEditorAccountingCategoryObject)\n\n registerRenderer('accounting-category-object', GristRendererAccountingCategoryObject)\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js';
|
|
2
|
+
import '@operato/data-tree';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import { AccountingCategory } from '../types/accounting-category';
|
|
5
|
+
export declare class AccountingCategorySelector extends LitElement {
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
confirmCallback?: (selected?: any) => void;
|
|
8
|
+
value?: AccountingCategory;
|
|
9
|
+
root?: AccountingCategory;
|
|
10
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
11
|
+
onSelect(e: CustomEvent, confirm?: boolean): void;
|
|
12
|
+
onEmpty(): void;
|
|
13
|
+
onCancel(): void;
|
|
14
|
+
onConfirm(): void;
|
|
15
|
+
firstUpdated(): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import '@operato/data-tree';
|
|
4
|
+
import gql from 'graphql-tag';
|
|
5
|
+
import { css, html, LitElement } from 'lit';
|
|
6
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
7
|
+
import { client } from '@operato/graphql';
|
|
8
|
+
import { i18next } from '@operato/i18n';
|
|
9
|
+
import { closePopup } from '@operato/popup';
|
|
10
|
+
import { CommonHeaderStyles } from '@operato/styles';
|
|
11
|
+
import { AccountingCategory } from '../types/accounting-category';
|
|
12
|
+
const accountingCategoryFragment = gql `
|
|
13
|
+
fragment SubAccountingCategory on AccountingCategory {
|
|
14
|
+
id
|
|
15
|
+
code
|
|
16
|
+
name
|
|
17
|
+
description
|
|
18
|
+
active
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
let AccountingCategorySelector = class AccountingCategorySelector extends LitElement {
|
|
22
|
+
render() {
|
|
23
|
+
return html `
|
|
24
|
+
<ox-tree-vertical
|
|
25
|
+
.data=${this.root}
|
|
26
|
+
.selected=${this.value}
|
|
27
|
+
@select=${e => this.onSelect(e, false)}
|
|
28
|
+
@select-confirm=${e => this.onSelect(e, true)}
|
|
29
|
+
id-property="code"
|
|
30
|
+
label-property="name"
|
|
31
|
+
description-property="description"
|
|
32
|
+
></ox-tree-vertical>
|
|
33
|
+
|
|
34
|
+
<div class="footer" style="margin-left:unset;">
|
|
35
|
+
<button @click=${this.onEmpty.bind(this)}>
|
|
36
|
+
<md-icon>check_box_outline_blank</md-icon>${i18next.t('button.empty')}
|
|
37
|
+
</button>
|
|
38
|
+
<div filler></div>
|
|
39
|
+
<button @click=${this.onCancel.bind(this)}><md-icon>cancel</md-icon>${i18next.t('button.cancel')}</button>
|
|
40
|
+
<button @click=${this.onConfirm.bind(this)} done><md-icon>done</md-icon>${i18next.t('button.confirm')}</button>
|
|
41
|
+
</div>
|
|
42
|
+
`;
|
|
43
|
+
}
|
|
44
|
+
onSelect(e, confirm) {
|
|
45
|
+
this.value = e.detail;
|
|
46
|
+
if (confirm) {
|
|
47
|
+
this.onConfirm();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
onEmpty() {
|
|
51
|
+
this.confirmCallback && this.confirmCallback(null);
|
|
52
|
+
closePopup(this);
|
|
53
|
+
}
|
|
54
|
+
onCancel() {
|
|
55
|
+
closePopup(this);
|
|
56
|
+
}
|
|
57
|
+
onConfirm() {
|
|
58
|
+
this.confirmCallback && this.confirmCallback(this.value);
|
|
59
|
+
closePopup(this);
|
|
60
|
+
}
|
|
61
|
+
async firstUpdated() {
|
|
62
|
+
const response = await client.query({
|
|
63
|
+
query: gql `
|
|
64
|
+
query {
|
|
65
|
+
responses: accountingCategoryRoots {
|
|
66
|
+
total
|
|
67
|
+
items {
|
|
68
|
+
...SubAccountingCategory
|
|
69
|
+
children {
|
|
70
|
+
...SubAccountingCategory
|
|
71
|
+
children {
|
|
72
|
+
...SubAccountingCategory
|
|
73
|
+
children {
|
|
74
|
+
...SubAccountingCategory
|
|
75
|
+
children {
|
|
76
|
+
...SubAccountingCategory
|
|
77
|
+
children {
|
|
78
|
+
...SubAccountingCategory
|
|
79
|
+
children {
|
|
80
|
+
...SubAccountingCategory
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
${accountingCategoryFragment}
|
|
92
|
+
`
|
|
93
|
+
});
|
|
94
|
+
const { items: records, total } = response.data.responses;
|
|
95
|
+
this.root = records[0];
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
AccountingCategorySelector.styles = [
|
|
99
|
+
CommonHeaderStyles,
|
|
100
|
+
css `
|
|
101
|
+
:host {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
|
|
105
|
+
background-color: var(--md-sys-color-surface);
|
|
106
|
+
|
|
107
|
+
width: var(--overlay-center-normal-width, 50%);
|
|
108
|
+
height: var(--overlay-center-normal-height, 50%);
|
|
109
|
+
|
|
110
|
+
overflow: auto;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
ox-tree-vertical {
|
|
114
|
+
flex: 1;
|
|
115
|
+
}
|
|
116
|
+
`
|
|
117
|
+
];
|
|
118
|
+
__decorate([
|
|
119
|
+
property({ type: Object }),
|
|
120
|
+
__metadata("design:type", Function)
|
|
121
|
+
], AccountingCategorySelector.prototype, "confirmCallback", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
property({ type: Object }),
|
|
124
|
+
__metadata("design:type", AccountingCategory)
|
|
125
|
+
], AccountingCategorySelector.prototype, "value", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
state(),
|
|
128
|
+
__metadata("design:type", AccountingCategory)
|
|
129
|
+
], AccountingCategorySelector.prototype, "root", void 0);
|
|
130
|
+
AccountingCategorySelector = __decorate([
|
|
131
|
+
customElement('accounting-category-selector')
|
|
132
|
+
], AccountingCategorySelector);
|
|
133
|
+
export { AccountingCategorySelector };
|
|
134
|
+
//# sourceMappingURL=accounting-category-selector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounting-category-selector.js","sourceRoot":"","sources":["../../client/components/accounting-category-selector.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4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'@operato/data-tree'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next } from '@operato/i18n'\nimport { closePopup } from '@operato/popup'\nimport { CommonHeaderStyles } from '@operato/styles'\n\nimport { AccountingCategory } from '../types/accounting-category'\n\nconst accountingCategoryFragment = gql`\n fragment SubAccountingCategory on AccountingCategory {\n id\n code\n name\n description\n active\n }\n`\n\n@customElement('accounting-category-selector')\nexport class AccountingCategorySelector extends LitElement {\n static styles = [\n CommonHeaderStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: var(--md-sys-color-surface);\n\n width: var(--overlay-center-normal-width, 50%);\n height: var(--overlay-center-normal-height, 50%);\n\n overflow: auto;\n }\n\n ox-tree-vertical {\n flex: 1;\n }\n `\n ]\n\n @property({ type: Object }) confirmCallback?: (selected?: any) => void\n @property({ type: Object }) value?: AccountingCategory\n\n @state() root?: AccountingCategory\n\n render() {\n return html`\n <ox-tree-vertical\n .data=${this.root}\n .selected=${this.value}\n @select=${e => this.onSelect(e, false)}\n @select-confirm=${e => this.onSelect(e, true)}\n id-property=\"code\"\n label-property=\"name\"\n description-property=\"description\"\n ></ox-tree-vertical>\n\n <div class=\"footer\" style=\"margin-left:unset;\">\n <button @click=${this.onEmpty.bind(this)}>\n <md-icon>check_box_outline_blank</md-icon>${i18next.t('button.empty')}\n </button>\n <div filler></div>\n <button @click=${this.onCancel.bind(this)}><md-icon>cancel</md-icon>${i18next.t('button.cancel')}</button>\n <button @click=${this.onConfirm.bind(this)} done><md-icon>done</md-icon>${i18next.t('button.confirm')}</button>\n </div>\n `\n }\n\n onSelect(e: CustomEvent, confirm?: boolean) {\n this.value = e.detail as AccountingCategory\n\n if (confirm) {\n this.onConfirm()\n }\n }\n\n onEmpty() {\n this.confirmCallback && this.confirmCallback(null)\n closePopup(this)\n }\n\n onCancel() {\n closePopup(this)\n }\n\n onConfirm() {\n this.confirmCallback && this.confirmCallback(this.value)\n closePopup(this)\n }\n\n async firstUpdated() {\n const response = await client.query({\n query: gql`\n query {\n responses: accountingCategoryRoots {\n total\n items {\n ...SubAccountingCategory\n children {\n ...SubAccountingCategory\n children {\n ...SubAccountingCategory\n children {\n ...SubAccountingCategory\n children {\n ...SubAccountingCategory\n children {\n ...SubAccountingCategory\n children {\n ...SubAccountingCategory\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n ${accountingCategoryFragment}\n `\n })\n\n const { items: records, total } = response.data.responses\n\n this.root = records[0]\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '@operato/property-editor';
|
|
2
|
+
import '@operato/property-editor/ox-properties-dynamic-view.js';
|
|
3
|
+
import { LitElement, PropertyValueMap } from 'lit';
|
|
4
|
+
declare const AccountingCategoryView_base: (new (...args: any[]) => LitElement) & typeof LitElement & import("@open-wc/dedupe-mixin").Constructor<import("@open-wc/scoped-elements/types/src/types").ScopedElementsHost>;
|
|
5
|
+
export declare class AccountingCategoryView extends AccountingCategoryView_base {
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
accountingCategory: any;
|
|
8
|
+
dynamicView: any;
|
|
9
|
+
private properties;
|
|
10
|
+
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
+
onPropertyChange(e: CustomEvent): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|