@things-factory/tax-invoice 6.2.129 → 6.2.131

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.
Files changed (22) hide show
  1. package/client/pages/tax-invoice-company/tax-invoice-company-list-page.ts +2 -35
  2. package/client/pages/{tax-invoice-company/tax-invoice-company-importer.ts → tax-invoice-send/company-list-popup.ts} +61 -37
  3. package/client/pages/tax-invoice-send/tax-invoice-send-page.ts +142 -1
  4. package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.d.ts +0 -8
  5. package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.js +3 -30
  6. package/dist-client/pages/tax-invoice-company/tax-invoice-company-list-page.js.map +1 -1
  7. package/dist-client/pages/tax-invoice-send/company-list-popup.d.ts +65 -0
  8. package/dist-client/pages/tax-invoice-send/company-list-popup.js +199 -0
  9. package/dist-client/pages/tax-invoice-send/company-list-popup.js.map +1 -0
  10. package/dist-client/pages/tax-invoice-send/supplier-list-popup.d.ts +77 -0
  11. package/dist-client/pages/tax-invoice-send/supplier-list-popup.js +209 -0
  12. package/dist-client/pages/tax-invoice-send/supplier-list-popup.js.map +1 -0
  13. package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.d.ts +7 -1
  14. package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js +128 -0
  15. package/dist-client/pages/tax-invoice-send/tax-invoice-send-page.js.map +1 -1
  16. package/dist-client/tsconfig.tsbuildinfo +1 -1
  17. package/dist-server/service/tax-invoice-company/tax-invoice-company-query.js +14 -0
  18. package/dist-server/service/tax-invoice-company/tax-invoice-company-query.js.map +1 -1
  19. package/dist-server/tsconfig.tsbuildinfo +1 -1
  20. package/package.json +2 -2
  21. package/server/service/tax-invoice-company/tax-invoice-company-query.ts +11 -0
  22. package/translations/ko.json +2 -0
@@ -0,0 +1,65 @@
1
+ import '@operato/data-grist';
2
+ import { LitElement } from 'lit';
3
+ export declare class CompanyListPopup extends LitElement {
4
+ static styles: import("lit").CSSResult[];
5
+ private grist;
6
+ companyList: any[];
7
+ columns: {
8
+ pagination: {
9
+ infinite: boolean;
10
+ };
11
+ columns: ({
12
+ type: string;
13
+ gutterName: string;
14
+ multiple?: undefined;
15
+ name?: undefined;
16
+ header?: undefined;
17
+ record?: undefined;
18
+ filter?: undefined;
19
+ sortable?: undefined;
20
+ width?: undefined;
21
+ } | {
22
+ type: string;
23
+ gutterName: string;
24
+ multiple: boolean;
25
+ name?: undefined;
26
+ header?: undefined;
27
+ record?: undefined;
28
+ filter?: undefined;
29
+ sortable?: undefined;
30
+ width?: undefined;
31
+ } | {
32
+ type: string;
33
+ name: string;
34
+ header: string;
35
+ record: {
36
+ editable: boolean;
37
+ };
38
+ filter: string;
39
+ sortable: boolean;
40
+ width: number;
41
+ gutterName?: undefined;
42
+ multiple?: undefined;
43
+ } | {
44
+ type: string;
45
+ name: string;
46
+ header: string;
47
+ record: {
48
+ editable: boolean;
49
+ };
50
+ width: number;
51
+ gutterName?: undefined;
52
+ multiple?: undefined;
53
+ filter?: undefined;
54
+ sortable?: undefined;
55
+ })[];
56
+ rows: {
57
+ selectable: {
58
+ multiple: boolean;
59
+ };
60
+ appendable: boolean;
61
+ };
62
+ };
63
+ render(): import("lit-html").TemplateResult<1>;
64
+ select(): Promise<void>;
65
+ }
@@ -0,0 +1,199 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import '@operato/data-grist';
3
+ import { css, html, LitElement } from 'lit';
4
+ import { property, query } from 'lit/decorators.js';
5
+ import { DataGrist } from '@operato/data-grist';
6
+ import { i18next } from '@operato/i18n';
7
+ export class CompanyListPopup extends LitElement {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.companyList = [];
11
+ this.columns = {
12
+ pagination: { infinite: true },
13
+ columns: [
14
+ { type: 'gutter', gutterName: 'sequence' },
15
+ { type: 'gutter', gutterName: 'row-selector', multiple: false },
16
+ {
17
+ type: 'string',
18
+ name: 'name',
19
+ header: i18next.t('field.name'),
20
+ record: {
21
+ editable: false
22
+ },
23
+ filter: 'search',
24
+ sortable: true,
25
+ width: 150
26
+ },
27
+ {
28
+ type: 'string',
29
+ name: 'businessRegistrationNumber',
30
+ header: i18next.t('field.business registration number'),
31
+ record: {
32
+ editable: false
33
+ },
34
+ width: 150
35
+ },
36
+ {
37
+ type: 'string',
38
+ name: 'branchIdentification',
39
+ header: i18next.t('field.branch identification'),
40
+ record: {
41
+ editable: false
42
+ },
43
+ width: 150
44
+ },
45
+ {
46
+ type: 'string',
47
+ name: 'businessName',
48
+ header: i18next.t('field.tax invoice business name'),
49
+ record: {
50
+ editable: false
51
+ },
52
+ width: 150
53
+ },
54
+ {
55
+ type: 'string',
56
+ name: 'representativeName',
57
+ header: i18next.t('field.tax invoice representative name'),
58
+ record: {
59
+ editable: false
60
+ },
61
+ width: 150
62
+ },
63
+ {
64
+ type: 'string',
65
+ name: 'address',
66
+ header: i18next.t('field.address'),
67
+ record: {
68
+ editable: false
69
+ },
70
+ width: 200
71
+ },
72
+ {
73
+ type: 'string',
74
+ name: 'businessType',
75
+ header: i18next.t('field.business type'),
76
+ record: {
77
+ editable: false
78
+ },
79
+ width: 100
80
+ },
81
+ {
82
+ type: 'string',
83
+ name: 'industryType',
84
+ header: i18next.t('field.industry type'),
85
+ record: {
86
+ editable: false
87
+ },
88
+ width: 100
89
+ },
90
+ {
91
+ type: 'string',
92
+ name: 'department',
93
+ header: i18next.t('field.department'),
94
+ record: {
95
+ editable: false
96
+ },
97
+ width: 150
98
+ },
99
+ {
100
+ type: 'string',
101
+ name: 'contactName',
102
+ header: i18next.t('field.contact name'),
103
+ record: {
104
+ editable: false
105
+ },
106
+ width: 150
107
+ },
108
+ {
109
+ type: 'string',
110
+ name: 'contactPhone',
111
+ header: i18next.t('field.contact phone'),
112
+ record: {
113
+ editable: false
114
+ },
115
+ width: 150
116
+ },
117
+ {
118
+ type: 'string',
119
+ name: 'contactEmail',
120
+ header: i18next.t('field.contact email'),
121
+ record: {
122
+ editable: false
123
+ },
124
+ width: 150
125
+ },
126
+ {
127
+ type: 'string',
128
+ name: 'contactCellPhone',
129
+ header: i18next.t('field.contact cell phone'),
130
+ record: {
131
+ editable: false
132
+ },
133
+ width: 150
134
+ }
135
+ ],
136
+ rows: {
137
+ selectable: {
138
+ multiple: false
139
+ },
140
+ appendable: false
141
+ }
142
+ };
143
+ }
144
+ render() {
145
+ return html `
146
+ <ox-grist
147
+ .mode=${'GRID'}
148
+ .config=${this.columns}
149
+ .data=${{
150
+ records: this.companyList
151
+ }}
152
+ ></ox-grist>
153
+
154
+ <div class="button-container">
155
+ <mwc-button raised @click="${this.select.bind(this)}">${i18next.t('button.select')}</mwc-button>
156
+ </div>
157
+ `;
158
+ }
159
+ async select() {
160
+ this.dispatchEvent(new CustomEvent('selected', { detail: this.grist.selected[0] }));
161
+ }
162
+ }
163
+ CompanyListPopup.styles = [
164
+ css `
165
+ :host {
166
+ display: flex;
167
+ flex-direction: column;
168
+
169
+ background-color: #fff;
170
+ }
171
+
172
+ ox-grist {
173
+ flex: 1;
174
+ }
175
+
176
+ .button-container {
177
+ display: flex;
178
+ margin-left: auto;
179
+ padding: var(--padding-default);
180
+ }
181
+
182
+ mwc-button {
183
+ margin-left: var(--margin-default);
184
+ }
185
+ `
186
+ ];
187
+ __decorate([
188
+ query('ox-grist'),
189
+ __metadata("design:type", DataGrist)
190
+ ], CompanyListPopup.prototype, "grist", void 0);
191
+ __decorate([
192
+ property({ type: Array }),
193
+ __metadata("design:type", Array)
194
+ ], CompanyListPopup.prototype, "companyList", void 0);
195
+ __decorate([
196
+ property({ type: Object }),
197
+ __metadata("design:type", Object)
198
+ ], CompanyListPopup.prototype, "columns", void 0);
199
+ //# sourceMappingURL=company-list-popup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"company-list-popup.js","sourceRoot":"","sources":["../../../client/pages/tax-invoice-send/company-list-popup.ts"],"names":[],"mappings":";AAAA,OAAO,qBAAqB,CAAA;AAE5B,OAAO,EAAE,GAAG,EAAE,I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uBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;KAqBF;CACF,CAAA;AAED;IAAC,KAAK,CAAC,UAAU,CAAC;8BAAiB,SAAS;+CAAA;AAE5C;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;qDAAwB;AAClD;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDAmI1B","sourcesContent":["import '@operato/data-grist'\n\nimport { css, html, LitElement } from 'lit'\nimport { property, query } from 'lit/decorators.js'\nimport { DataGrist } from '@operato/data-grist'\nimport { i18next } from '@operato/i18n'\n\nexport class CompanyListPopup 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 @query('ox-grist') private grist!: DataGrist\n\n @property({ type: Array }) companyList: any[] = []\n @property({ type: Object }) columns = {\n pagination: { infinite: true },\n columns: [\n { type: 'gutter', gutterName: 'sequence' },\n { type: 'gutter', gutterName: 'row-selector', multiple: false },\n {\n type: 'string',\n name: 'name',\n header: i18next.t('field.name'),\n record: {\n editable: false\n },\n filter: 'search',\n sortable: true,\n width: 150\n },\n {\n type: 'string',\n name: 'businessRegistrationNumber',\n header: i18next.t('field.business registration number'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'branchIdentification',\n header: i18next.t('field.branch identification'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'businessName',\n header: i18next.t('field.tax invoice business name'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'representativeName',\n header: i18next.t('field.tax invoice representative name'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'address',\n header: i18next.t('field.address'),\n record: {\n editable: false\n },\n width: 200\n },\n {\n type: 'string',\n name: 'businessType',\n header: i18next.t('field.business type'),\n record: {\n editable: false\n },\n width: 100\n },\n {\n type: 'string',\n name: 'industryType',\n header: i18next.t('field.industry type'),\n record: {\n editable: false\n },\n width: 100\n },\n {\n type: 'string',\n name: 'department',\n header: i18next.t('field.department'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'contactName',\n header: i18next.t('field.contact name'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'contactPhone',\n header: i18next.t('field.contact phone'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'contactEmail',\n header: i18next.t('field.contact email'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'contactCellPhone',\n header: i18next.t('field.contact cell phone'),\n record: {\n editable: false\n },\n width: 150\n }\n ],\n rows: {\n selectable: {\n multiple: false\n },\n appendable: false\n }\n }\n\n render() {\n return html`\n <ox-grist\n .mode=${'GRID'}\n .config=${this.columns}\n .data=${{\n records: this.companyList\n }}\n ></ox-grist>\n\n <div class=\"button-container\">\n <mwc-button raised @click=\"${this.select.bind(this)}\">${i18next.t('button.select')}</mwc-button>\n </div>\n `\n }\n\n async select() {\n this.dispatchEvent(new CustomEvent('selected', { detail: this.grist.selected[0] }))\n }\n}\n"]}
@@ -0,0 +1,77 @@
1
+ import '@operato/data-grist';
2
+ import { LitElement } from 'lit';
3
+ export declare class SupplierListPopup extends LitElement {
4
+ static styles: import("lit").CSSResult[];
5
+ private grist;
6
+ supplierList: any[];
7
+ columns: {
8
+ pagination: {
9
+ infinite: boolean;
10
+ };
11
+ columns: ({
12
+ type: string;
13
+ gutterName: string;
14
+ multiple?: undefined;
15
+ name?: undefined;
16
+ header?: undefined;
17
+ record?: undefined;
18
+ filter?: undefined;
19
+ sortable?: undefined;
20
+ width?: undefined;
21
+ } | {
22
+ type: string;
23
+ gutterName: string;
24
+ multiple: boolean;
25
+ name?: undefined;
26
+ header?: undefined;
27
+ record?: undefined;
28
+ filter?: undefined;
29
+ sortable?: undefined;
30
+ width?: undefined;
31
+ } | {
32
+ type: string;
33
+ name: string;
34
+ header: string;
35
+ record: {
36
+ editable: boolean;
37
+ };
38
+ filter: string;
39
+ sortable: boolean;
40
+ width: number;
41
+ gutterName?: undefined;
42
+ multiple?: undefined;
43
+ } | {
44
+ type: string;
45
+ name: string;
46
+ header: string;
47
+ record: {
48
+ editable: boolean;
49
+ };
50
+ filter: string;
51
+ width: number;
52
+ gutterName?: undefined;
53
+ multiple?: undefined;
54
+ sortable?: undefined;
55
+ } | {
56
+ type: string;
57
+ name: string;
58
+ header: string;
59
+ record: {
60
+ editable: boolean;
61
+ };
62
+ width: number;
63
+ gutterName?: undefined;
64
+ multiple?: undefined;
65
+ filter?: undefined;
66
+ sortable?: undefined;
67
+ })[];
68
+ rows: {
69
+ selectable: {
70
+ multiple: boolean;
71
+ };
72
+ appendable: boolean;
73
+ };
74
+ };
75
+ render(): import("lit-html").TemplateResult<1>;
76
+ select(): Promise<void>;
77
+ }
@@ -0,0 +1,209 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import '@operato/data-grist';
3
+ import { css, html, LitElement } from 'lit';
4
+ import { property, query } from 'lit/decorators.js';
5
+ import { DataGrist } from '@operato/data-grist';
6
+ import { i18next } from '@operato/i18n';
7
+ export class SupplierListPopup extends LitElement {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.supplierList = [];
11
+ this.columns = {
12
+ pagination: { infinite: true },
13
+ columns: [
14
+ { type: 'gutter', gutterName: 'sequence' },
15
+ { type: 'gutter', gutterName: 'row-selector', multiple: false },
16
+ {
17
+ type: 'string',
18
+ name: 'name',
19
+ header: i18next.t('field.name'),
20
+ record: {
21
+ editable: false
22
+ },
23
+ filter: 'search',
24
+ sortable: true,
25
+ width: 150
26
+ },
27
+ {
28
+ type: 'string',
29
+ name: 'description',
30
+ header: i18next.t('field.description'),
31
+ record: {
32
+ editable: false
33
+ },
34
+ filter: 'search',
35
+ width: 200
36
+ },
37
+ {
38
+ type: 'string',
39
+ name: 'businessRegistrationNumber',
40
+ header: i18next.t('field.business registration number'),
41
+ record: {
42
+ editable: false
43
+ },
44
+ width: 150
45
+ },
46
+ {
47
+ type: 'string',
48
+ name: 'branchIdentification',
49
+ header: i18next.t('field.branch identification'),
50
+ record: {
51
+ editable: false
52
+ },
53
+ width: 150
54
+ },
55
+ {
56
+ type: 'string',
57
+ name: 'businessName',
58
+ header: i18next.t('field.tax invoice business name'),
59
+ record: {
60
+ editable: false
61
+ },
62
+ width: 150
63
+ },
64
+ {
65
+ type: 'string',
66
+ name: 'representativeName',
67
+ header: i18next.t('field.tax invoice representative name'),
68
+ record: {
69
+ editable: false
70
+ },
71
+ width: 150
72
+ },
73
+ {
74
+ type: 'string',
75
+ name: 'address',
76
+ header: i18next.t('field.address'),
77
+ record: {
78
+ editable: false
79
+ },
80
+ width: 200
81
+ },
82
+ {
83
+ type: 'string',
84
+ name: 'businessType',
85
+ header: i18next.t('field.business type'),
86
+ record: {
87
+ editable: false
88
+ },
89
+ width: 100
90
+ },
91
+ {
92
+ type: 'string',
93
+ name: 'industryType',
94
+ header: i18next.t('field.industry type'),
95
+ record: {
96
+ editable: false
97
+ },
98
+ width: 100
99
+ },
100
+ {
101
+ type: 'string',
102
+ name: 'department',
103
+ header: i18next.t('field.department'),
104
+ record: {
105
+ editable: false
106
+ },
107
+ width: 150
108
+ },
109
+ {
110
+ type: 'string',
111
+ name: 'contactName',
112
+ header: i18next.t('field.contact name'),
113
+ record: {
114
+ editable: false
115
+ },
116
+ width: 150
117
+ },
118
+ {
119
+ type: 'string',
120
+ name: 'contactPhone',
121
+ header: i18next.t('field.contact phone'),
122
+ record: {
123
+ editable: false
124
+ },
125
+ width: 150
126
+ },
127
+ {
128
+ type: 'string',
129
+ name: 'contactEmail',
130
+ header: i18next.t('field.contact email'),
131
+ record: {
132
+ editable: false
133
+ },
134
+ width: 150
135
+ },
136
+ {
137
+ type: 'string',
138
+ name: 'contactCellPhone',
139
+ header: i18next.t('field.contact cell phone'),
140
+ record: {
141
+ editable: false
142
+ },
143
+ width: 150
144
+ }
145
+ ],
146
+ rows: {
147
+ selectable: {
148
+ multiple: false
149
+ },
150
+ appendable: false
151
+ }
152
+ };
153
+ }
154
+ render() {
155
+ return html `
156
+ <ox-grist
157
+ .mode=${'GRID'}
158
+ .config=${this.columns}
159
+ .data=${{
160
+ records: this.supplierList
161
+ }}
162
+ ></ox-grist>
163
+
164
+ <div class="button-container">
165
+ <mwc-button raised @click="${this.select.bind(this)}">${i18next.t('button.select')}</mwc-button>
166
+ </div>
167
+ `;
168
+ }
169
+ async select() {
170
+ this.dispatchEvent(new CustomEvent('selected', { detail: this.grist.selected[0] }));
171
+ }
172
+ }
173
+ SupplierListPopup.styles = [
174
+ css `
175
+ :host {
176
+ display: flex;
177
+ flex-direction: column;
178
+
179
+ background-color: #fff;
180
+ }
181
+
182
+ ox-grist {
183
+ flex: 1;
184
+ }
185
+
186
+ .button-container {
187
+ display: flex;
188
+ margin-left: auto;
189
+ padding: var(--padding-default);
190
+ }
191
+
192
+ mwc-button {
193
+ margin-left: var(--margin-default);
194
+ }
195
+ `
196
+ ];
197
+ __decorate([
198
+ query('ox-grist'),
199
+ __metadata("design:type", DataGrist)
200
+ ], SupplierListPopup.prototype, "grist", void 0);
201
+ __decorate([
202
+ property({ type: Array }),
203
+ __metadata("design:type", Array)
204
+ ], SupplierListPopup.prototype, "supplierList", void 0);
205
+ __decorate([
206
+ property({ type: Object }),
207
+ __metadata("design:type", Object)
208
+ ], SupplierListPopup.prototype, "columns", void 0);
209
+ //# sourceMappingURL=supplier-list-popup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier-list-popup.js","sourceRoot":"","sources":["../../../client/pages/tax-invoice-send/supplier-list-popup.ts"],"names":[],"mappings":";AAAA,OAAO,qBAAqB,CAAA;AAG5B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,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AAK,CAAC,MAAM;QACV,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACrF,CAAC;;AA7LM,wBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;KAqBF;CACF,CAAA;AAED;IAAC,KAAK,CAAC,UAAU,CAAC;8BAAiB,SAAS;gDAAA;AAE5C;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;uDAAyB;AACnD;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDA6I1B","sourcesContent":["import '@operato/data-grist'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { property, state, query } from 'lit/decorators.js'\nimport { DataGrist, FetchOption } from '@operato/data-grist'\n\nimport { client } from '@operato/graphql'\nimport { i18next } from '@operato/i18n'\nimport { Supplier } from './tax-invoice-send-page'\n\nexport class SupplierListPopup 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 @query('ox-grist') private grist!: DataGrist\n\n @property({ type: Array }) supplierList: any[] = []\n @property({ type: Object }) columns = {\n pagination: { infinite: true },\n columns: [\n { type: 'gutter', gutterName: 'sequence' },\n { type: 'gutter', gutterName: 'row-selector', multiple: false },\n {\n type: 'string',\n name: 'name',\n header: i18next.t('field.name'),\n record: {\n editable: false\n },\n filter: 'search',\n sortable: true,\n width: 150\n },\n {\n type: 'string',\n name: 'description',\n header: i18next.t('field.description'),\n record: {\n editable: false\n },\n filter: 'search',\n width: 200\n },\n {\n type: 'string',\n name: 'businessRegistrationNumber',\n header: i18next.t('field.business registration number'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'branchIdentification',\n header: i18next.t('field.branch identification'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'businessName',\n header: i18next.t('field.tax invoice business name'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'representativeName',\n header: i18next.t('field.tax invoice representative name'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'address',\n header: i18next.t('field.address'),\n record: {\n editable: false\n },\n width: 200\n },\n {\n type: 'string',\n name: 'businessType',\n header: i18next.t('field.business type'),\n record: {\n editable: false\n },\n width: 100\n },\n {\n type: 'string',\n name: 'industryType',\n header: i18next.t('field.industry type'),\n record: {\n editable: false\n },\n width: 100\n },\n {\n type: 'string',\n name: 'department',\n header: i18next.t('field.department'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'contactName',\n header: i18next.t('field.contact name'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'contactPhone',\n header: i18next.t('field.contact phone'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'contactEmail',\n header: i18next.t('field.contact email'),\n record: {\n editable: false\n },\n width: 150\n },\n {\n type: 'string',\n name: 'contactCellPhone',\n header: i18next.t('field.contact cell phone'),\n record: {\n editable: false\n },\n width: 150\n }\n ],\n rows: {\n selectable: {\n multiple: false\n },\n appendable: false\n }\n }\n\n render() {\n return html`\n <ox-grist\n .mode=${'GRID'}\n .config=${this.columns}\n .data=${{\n records: this.supplierList\n }}\n ></ox-grist>\n\n <div class=\"button-container\">\n <mwc-button raised @click=\"${this.select.bind(this)}\">${i18next.t('button.select')}</mwc-button>\n </div>\n `\n }\n\n async select() {\n this.dispatchEvent(new CustomEvent('selected', { detail: this.grist.selected[0] }))\n }\n}\n"]}
@@ -1,7 +1,8 @@
1
1
  import '@operato/data-grist';
2
2
  import { PageView } from '@operato/shell';
3
3
  import { BusinessRegistrationCategory, Category, InvoiceType, Purpose } from '../tax-invoice/tax-invoice-list-page';
4
- interface Supplier {
4
+ import { CompanyListPopup } from './company-list-popup';
5
+ export interface Supplier {
5
6
  supplierBusinessRegistrationCategory: string;
6
7
  supplierBusinessRegistrationNumber: string;
7
8
  supplierBranchIdentification?: string;
@@ -70,6 +71,9 @@ interface TaxInvoiceItem {
70
71
  declare const TaxInvoiceSendPage_base: (new (...args: any[]) => import("lit").LitElement) & typeof PageView & import("@open-wc/dedupe-mixin").Constructor<import("@open-wc/scoped-elements/types/src/types").ScopedElementsHost>;
71
72
  export declare class TaxInvoiceSendPage extends TaxInvoiceSendPage_base {
72
73
  static styles: import("lit").CSSResult[];
74
+ static get scopedElements(): {
75
+ 'company-list-popup': typeof CompanyListPopup;
76
+ };
73
77
  private today;
74
78
  supplier: Supplier;
75
79
  buyer: Buyer;
@@ -99,6 +103,8 @@ export declare class TaxInvoiceSendPage extends TaxInvoiceSendPage_base {
99
103
  private _numberFormat;
100
104
  private _onInputTaxInvoice;
101
105
  private _onInputItem;
106
+ private _openSupplierPopup;
107
+ private _openBuyerPopup;
102
108
  private _onAddInvoiceItem;
103
109
  private _onRemoveInvoiceItem;
104
110
  private _setTaxInvoiceSummaryCalc;