@things-factory/accounting 6.0.46
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/CHANGELOG.md +8 -0
- package/README.md +31 -0
- package/assets/images/book-activity.jpg +0 -0
- package/assets/images/expense-activity.jpg +0 -0
- package/assets/images/hatiolab-logo.png +0 -0
- package/client/activities/activity-book-edit.ts +88 -0
- package/client/activities/activity-book-view.ts +88 -0
- package/client/activities/activity-expense-edit.ts +88 -0
- package/client/activities/activity-expense-view.ts +88 -0
- package/client/bootstrap.ts +1 -0
- package/client/index.ts +0 -0
- package/client/pages/account/account-importer.ts +97 -0
- package/client/pages/account/account-list-page.ts +348 -0
- package/client/pages/accounting-category/accounting-category-importer.ts +97 -0
- package/client/pages/accounting-category/accounting-category-list-page.ts +348 -0
- package/client/pages/financial-statement/financial-statement-importer.ts +97 -0
- package/client/pages/financial-statement/financial-statement-list-page.ts +348 -0
- package/client/pages/income-statement/income-statement-importer.ts +97 -0
- package/client/pages/income-statement/income-statement-list-page.ts +348 -0
- package/client/pages/ledger/ledger-importer.ts +97 -0
- package/client/pages/ledger/ledger-list-page.ts +332 -0
- package/client/pages/main.ts +24 -0
- package/client/pages/transaction/transaction-importer.ts +97 -0
- package/client/pages/transaction/transaction-list-page.ts +348 -0
- package/client/route.ts +27 -0
- package/client/tsconfig.json +11 -0
- 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 +2 -0
- package/dist-client/bootstrap.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 +62 -0
- package/dist-client/pages/account/account-list-page.js +326 -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 +62 -0
- package/dist-client/pages/accounting-category/accounting-category-list-page.js +326 -0
- package/dist-client/pages/accounting-category/accounting-category-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 +62 -0
- package/dist-client/pages/financial-statement/financial-statement-list-page.js +326 -0
- package/dist-client/pages/financial-statement/financial-statement-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 +62 -0
- package/dist-client/pages/income-statement/income-statement-list-page.js +326 -0
- package/dist-client/pages/income-statement/income-statement-list-page.js.map +1 -0
- package/dist-client/pages/ledger/ledger-importer.d.ts +22 -0
- package/dist-client/pages/ledger/ledger-importer.js +100 -0
- package/dist-client/pages/ledger/ledger-importer.js.map +1 -0
- package/dist-client/pages/ledger/ledger-list-page.d.ts +62 -0
- package/dist-client/pages/ledger/ledger-list-page.js +317 -0
- package/dist-client/pages/ledger/ledger-list-page.js.map +1 -0
- package/dist-client/pages/main.d.ts +1 -0
- package/dist-client/pages/main.js +27 -0
- package/dist-client/pages/main.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 +62 -0
- package/dist-client/pages/transaction/transaction-list-page.js +326 -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 +23 -0
- package/dist-client/route.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-server/activities/activity-book.js +150 -0
- package/dist-server/activities/activity-book.js.map +1 -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.js +19 -0
- package/dist-server/activities/index.js.map +1 -0
- package/dist-server/controllers/index.js +1 -0
- package/dist-server/controllers/index.js.map +1 -0
- package/dist-server/index.js +7 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/middlewares/index.js +8 -0
- package/dist-server/middlewares/index.js.map +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/routes.js +25 -0
- package/dist-server/routes.js.map +1 -0
- package/dist-server/service/account/account-history.js +113 -0
- package/dist-server/service/account/account-history.js.map +1 -0
- package/dist-server/service/account/account-mutation.js +130 -0
- package/dist-server/service/account/account-mutation.js.map +1 -0
- package/dist-server/service/account/account-query.js +79 -0
- package/dist-server/service/account/account-query.js.map +1 -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.js +102 -0
- package/dist-server/service/account/account.js.map +1 -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.js +12 -0
- package/dist-server/service/account/index.js.map +1 -0
- package/dist-server/service/accounting-category/accounting-category-mutation.js +132 -0
- package/dist-server/service/accounting-category/accounting-category-mutation.js.map +1 -0
- package/dist-server/service/accounting-category/accounting-category-query.js +79 -0
- package/dist-server/service/accounting-category/accounting-category-query.js.map +1 -0
- package/dist-server/service/accounting-category/accounting-category-type.js +65 -0
- package/dist-server/service/accounting-category/accounting-category-type.js.map +1 -0
- package/dist-server/service/accounting-category/accounting-category.js +89 -0
- package/dist-server/service/accounting-category/accounting-category.js.map +1 -0
- package/dist-server/service/accounting-category/index.js +10 -0
- package/dist-server/service/accounting-category/index.js.map +1 -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.js +126 -0
- package/dist-server/service/financial-statement/financial-statement-history.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement-mutation.js +132 -0
- package/dist-server/service/financial-statement/financial-statement-mutation.js.map +1 -0
- package/dist-server/service/financial-statement/financial-statement-query.js +79 -0
- package/dist-server/service/financial-statement/financial-statement-query.js.map +1 -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.js +111 -0
- package/dist-server/service/financial-statement/financial-statement.js.map +1 -0
- package/dist-server/service/financial-statement/index.js +12 -0
- package/dist-server/service/financial-statement/index.js.map +1 -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.js +126 -0
- package/dist-server/service/income-statement/income-statement-history.js.map +1 -0
- package/dist-server/service/income-statement/income-statement-mutation.js +132 -0
- package/dist-server/service/income-statement/income-statement-mutation.js.map +1 -0
- package/dist-server/service/income-statement/income-statement-query.js +79 -0
- package/dist-server/service/income-statement/income-statement-query.js.map +1 -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.js +117 -0
- package/dist-server/service/income-statement/income-statement.js.map +1 -0
- package/dist-server/service/income-statement/index.js +12 -0
- package/dist-server/service/income-statement/index.js.map +1 -0
- package/dist-server/service/index.js +43 -0
- package/dist-server/service/index.js.map +1 -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.js +12 -0
- package/dist-server/service/transaction/index.js.map +1 -0
- package/dist-server/service/transaction/transaction-history.js +123 -0
- package/dist-server/service/transaction/transaction-history.js.map +1 -0
- package/dist-server/service/transaction/transaction-mutation.js +130 -0
- package/dist-server/service/transaction/transaction-mutation.js.map +1 -0
- package/dist-server/service/transaction/transaction-query.js +79 -0
- package/dist-server/service/transaction/transaction-query.js.map +1 -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.js +130 -0
- package/dist-server/service/transaction/transaction.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/helps/accounting/account.md +160 -0
- package/helps/accounting/accounting-category.md +160 -0
- package/helps/accounting/financial-accounting.md +53 -0
- package/helps/accounting/financial-statement.md +160 -0
- package/helps/accounting/income-statement.md +160 -0
- package/helps/accounting/transaction.md +160 -0
- package/package.json +36 -0
- package/server/activities/activity-book.ts +149 -0
- package/server/activities/activity-expense.ts +149 -0
- package/server/activities/index.ts +19 -0
- package/server/controllers/index.ts +0 -0
- package/server/index.ts +4 -0
- package/server/middlewares/index.ts +3 -0
- package/server/migrations/index.ts +9 -0
- package/server/routes.ts +28 -0
- package/server/service/account/account-history.ts +103 -0
- package/server/service/account/account-mutation.ts +137 -0
- package/server/service/account/account-query.ts +49 -0
- package/server/service/account/account-type.ts +44 -0
- package/server/service/account/account.ts +86 -0
- package/server/service/account/event-subscriber.ts +17 -0
- package/server/service/account/index.ts +9 -0
- package/server/service/accounting-category/accounting-category-mutation.ts +145 -0
- package/server/service/accounting-category/accounting-category-query.ts +51 -0
- package/server/service/accounting-category/accounting-category-type.ts +42 -0
- package/server/service/accounting-category/accounting-category.ts +80 -0
- package/server/service/accounting-category/index.ts +7 -0
- package/server/service/financial-statement/event-subscriber.ts +17 -0
- package/server/service/financial-statement/financial-statement-history.ts +114 -0
- package/server/service/financial-statement/financial-statement-mutation.ts +145 -0
- package/server/service/financial-statement/financial-statement-query.ts +51 -0
- package/server/service/financial-statement/financial-statement-type.ts +51 -0
- package/server/service/financial-statement/financial-statement.ts +100 -0
- package/server/service/financial-statement/index.ts +9 -0
- package/server/service/income-statement/event-subscriber.ts +17 -0
- package/server/service/income-statement/income-statement-history.ts +114 -0
- package/server/service/income-statement/income-statement-mutation.ts +145 -0
- package/server/service/income-statement/income-statement-query.ts +48 -0
- package/server/service/income-statement/income-statement-type.ts +51 -0
- package/server/service/income-statement/income-statement.ts +105 -0
- package/server/service/income-statement/index.ts +9 -0
- package/server/service/index.ts +62 -0
- package/server/service/transaction/event-subscriber.ts +17 -0
- package/server/service/transaction/index.ts +9 -0
- package/server/service/transaction/transaction-history.ts +111 -0
- package/server/service/transaction/transaction-mutation.ts +143 -0
- package/server/service/transaction/transaction-query.ts +48 -0
- package/server/service/transaction/transaction-type.ts +48 -0
- package/server/service/transaction/transaction.ts +115 -0
- package/server/tsconfig.json +10 -0
- package/things-factory.config.js +16 -0
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -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,8DAA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AAmB","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,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,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;KAaF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDAAY;AACvC;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDAAa;AAExC;IAAC,KAAK,EAAE;;oDAAc;AAtBX,mBAAmB;IAD/B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,mBAAmB,CAoE/B;SApEY,mBAAmB","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 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,SAAS,KAAI,CAAC","sourcesContent":["export default function bootstrap() {}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../client/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import '@operato/data-grist';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
export declare class AccountImporter extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
accounts: any[];
|
|
6
|
+
columns: {
|
|
7
|
+
list: {
|
|
8
|
+
fields: string[];
|
|
9
|
+
};
|
|
10
|
+
pagination: {
|
|
11
|
+
infinite: boolean;
|
|
12
|
+
};
|
|
13
|
+
columns: {
|
|
14
|
+
type: string;
|
|
15
|
+
name: string;
|
|
16
|
+
header: string;
|
|
17
|
+
width: number;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
21
|
+
save(): Promise<void>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import '@operato/data-grist';
|
|
3
|
+
import gql from 'graphql-tag';
|
|
4
|
+
import { css, html, LitElement } from 'lit';
|
|
5
|
+
import { property } from 'lit/decorators.js';
|
|
6
|
+
import { client } from '@operato/graphql';
|
|
7
|
+
import { i18next } from '@operato/i18n';
|
|
8
|
+
import { isMobileDevice } from '@operato/utils';
|
|
9
|
+
export class AccountImporter extends LitElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.accounts = [];
|
|
13
|
+
this.columns = {
|
|
14
|
+
list: { fields: ['name', 'description'] },
|
|
15
|
+
pagination: { infinite: true },
|
|
16
|
+
columns: [
|
|
17
|
+
{
|
|
18
|
+
type: 'string',
|
|
19
|
+
name: 'name',
|
|
20
|
+
header: i18next.t('field.name'),
|
|
21
|
+
width: 150
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: 'string',
|
|
25
|
+
name: 'description',
|
|
26
|
+
header: i18next.t('field.description'),
|
|
27
|
+
width: 200
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: 'checkbox',
|
|
31
|
+
name: 'active',
|
|
32
|
+
header: i18next.t('field.active'),
|
|
33
|
+
width: 60
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
return html `
|
|
40
|
+
<ox-grist
|
|
41
|
+
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
42
|
+
.config=${this.columns}
|
|
43
|
+
.data=${{
|
|
44
|
+
records: this.accounts
|
|
45
|
+
}}
|
|
46
|
+
></ox-grist>
|
|
47
|
+
|
|
48
|
+
<div class="button-container">
|
|
49
|
+
<mwc-button raised @click="${this.save.bind(this)}">${i18next.t('button.save')}</mwc-button>
|
|
50
|
+
</div>
|
|
51
|
+
`;
|
|
52
|
+
}
|
|
53
|
+
async save() {
|
|
54
|
+
var _a;
|
|
55
|
+
const response = await client.mutate({
|
|
56
|
+
mutation: gql `
|
|
57
|
+
mutation importAccounts($accounts: [AccountPatch!]!) {
|
|
58
|
+
importAccounts(accounts: $accounts)
|
|
59
|
+
}
|
|
60
|
+
`,
|
|
61
|
+
variables: { accounts: this.accounts }
|
|
62
|
+
});
|
|
63
|
+
if ((_a = response.errors) === null || _a === void 0 ? void 0 : _a.length)
|
|
64
|
+
return;
|
|
65
|
+
this.dispatchEvent(new CustomEvent('imported'));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
AccountImporter.styles = [
|
|
69
|
+
css `
|
|
70
|
+
:host {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
|
|
74
|
+
background-color: #fff;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
ox-grist {
|
|
78
|
+
flex: 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.button-container {
|
|
82
|
+
display: flex;
|
|
83
|
+
margin-left: auto;
|
|
84
|
+
padding: var(--padding-default);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
mwc-button {
|
|
88
|
+
margin-left: var(--margin-default);
|
|
89
|
+
}
|
|
90
|
+
`
|
|
91
|
+
];
|
|
92
|
+
__decorate([
|
|
93
|
+
property({ type: Array }),
|
|
94
|
+
__metadata("design:type", Array)
|
|
95
|
+
], AccountImporter.prototype, "accounts", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
property({ type: Object }),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], AccountImporter.prototype, "columns", void 0);
|
|
100
|
+
//# sourceMappingURL=account-importer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-importer.js","sourceRoot":"","sources":["../../../client/pages/account/account-importer.ts"],"names":[],"mappings":";AAAA,OAAO,qBAAqB,CAAA;AAE5B,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,OAAO,eAAgB,SAAQ,UAAU;IAA/C;;QA0B6B,aAAQ,GAAU,EAAE,C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WAAW,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,CAAC;;AAnFM,sBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;KAqBF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;iDAAqB;AAC/C;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDAuB1B","sourcesContent":["import '@operato/data-grist'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next } from '@operato/i18n'\nimport { isMobileDevice } from '@operato/utils'\n\nexport class AccountImporter extends LitElement {\n static styles = [\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n ox-grist {\n flex: 1;\n }\n\n .button-container {\n display: flex;\n margin-left: auto;\n padding: var(--padding-default);\n }\n\n mwc-button {\n margin-left: var(--margin-default);\n }\n `\n ]\n\n @property({ type: Array }) accounts: any[] = []\n @property({ type: Object }) columns = {\n list: { fields: ['name', 'description'] },\n pagination: { infinite: true },\n columns: [\n {\n type: 'string',\n name: 'name',\n header: i18next.t('field.name'),\n width: 150\n },\n {\n type: 'string',\n name: 'description',\n header: i18next.t('field.description'),\n width: 200\n },\n {\n type: 'checkbox',\n name: 'active',\n header: i18next.t('field.active'),\n width: 60\n }\n ]\n }\n\n\n render() {\n return html`\n <ox-grist\n .mode=${isMobileDevice() ? 'LIST' : 'GRID'}\n .config=${this.columns}\n .data=${\n { \n records: this.accounts \n }\n }\n ></ox-grist>\n\n <div class=\"button-container\">\n <mwc-button raised @click=\"${this.save.bind(this)}\">${i18next.t('button.save')}</mwc-button>\n </div>\n `\n }\n\n async save() {\n const response = await client.mutate({\n mutation: gql`\n mutation importAccounts($accounts: [AccountPatch!]!) {\n importAccounts(accounts: $accounts)\n }\n `,\n variables: { accounts: this.accounts }\n })\n\n if (response.errors?.length) return\n\n this.dispatchEvent(new CustomEvent('imported'))\n }\n}\n\n"]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import '@operato/data-grist';
|
|
2
|
+
import { PageView } from '@operato/shell';
|
|
3
|
+
import { FetchOption } from '@operato/data-grist';
|
|
4
|
+
import { AccountImporter } from './account-importer';
|
|
5
|
+
declare const AccountListPage_base: (new (...args: any[]) => {
|
|
6
|
+
_storeUnsubscribe: import("redux").Unsubscribe;
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
disconnectedCallback(): void;
|
|
9
|
+
stateChanged(_state: unknown): void;
|
|
10
|
+
readonly isConnected: boolean;
|
|
11
|
+
}) & (new (...args: any[]) => import("lit").LitElement) & typeof PageView & import("@open-wc/dedupe-mixin").Constructor<import("@open-wc/scoped-elements/types/src/types").ScopedElementsHost>;
|
|
12
|
+
export declare class AccountListPage extends AccountListPage_base {
|
|
13
|
+
static styles: import("lit").CSSResult[];
|
|
14
|
+
static get scopedElements(): {
|
|
15
|
+
'account-importer': typeof AccountImporter;
|
|
16
|
+
};
|
|
17
|
+
gristConfig: any;
|
|
18
|
+
mode: 'CARD' | 'GRID' | 'LIST';
|
|
19
|
+
private grist;
|
|
20
|
+
private sortersControl;
|
|
21
|
+
get context(): {
|
|
22
|
+
search: {
|
|
23
|
+
handler: (search: string) => void;
|
|
24
|
+
placeholder: string;
|
|
25
|
+
value: string;
|
|
26
|
+
};
|
|
27
|
+
filter: {
|
|
28
|
+
handler: () => void;
|
|
29
|
+
};
|
|
30
|
+
help: string;
|
|
31
|
+
actions: {
|
|
32
|
+
icon: string;
|
|
33
|
+
emphasis: {
|
|
34
|
+
raised: boolean;
|
|
35
|
+
outlined: boolean;
|
|
36
|
+
dense: boolean;
|
|
37
|
+
danger: boolean;
|
|
38
|
+
};
|
|
39
|
+
title: string;
|
|
40
|
+
action: () => Promise<void>;
|
|
41
|
+
}[];
|
|
42
|
+
exportable: {
|
|
43
|
+
name: string;
|
|
44
|
+
data: () => Promise<{}[]>;
|
|
45
|
+
};
|
|
46
|
+
importable: {
|
|
47
|
+
handler: (records: any) => Promise<void>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
51
|
+
pageInitialized(lifecycle: any): Promise<void>;
|
|
52
|
+
pageUpdated(changes: any, lifecycle: any): Promise<void>;
|
|
53
|
+
fetchHandler({ page, limit, sortings, filters }: FetchOption): Promise<{
|
|
54
|
+
total: any;
|
|
55
|
+
records: any;
|
|
56
|
+
}>;
|
|
57
|
+
_deleteAccount(): Promise<void>;
|
|
58
|
+
_updateAccount(): Promise<void>;
|
|
59
|
+
exportHandler(): Promise<{}[]>;
|
|
60
|
+
importHandler(records: any): Promise<void>;
|
|
61
|
+
}
|
|
62
|
+
export {};
|