@things-factory/quotation 7.0.52 → 7.0.56
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/client/pages/quotation/quotation-importer.ts +5 -4
- package/dist-client/activities/activity-quotation-edit.d.ts +1 -1
- package/dist-client/activities/activity-quotation-view.d.ts +1 -1
- package/dist-client/pages/quotation/quotation-importer.d.ts +1 -1
- package/dist-client/pages/quotation/quotation-importer.js +5 -4
- package/dist-client/pages/quotation/quotation-importer.js.map +1 -1
- package/dist-client/pages/quotation/quotation-list-page.d.ts +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -8,11 +8,11 @@ import { property } from 'lit/decorators.js'
|
|
|
8
8
|
import { client } from '@operato/graphql'
|
|
9
9
|
import { i18next } from '@operato/i18n'
|
|
10
10
|
import { isMobileDevice } from '@operato/utils'
|
|
11
|
-
import {
|
|
11
|
+
import { CommonHeaderStyles } from '@operato/styles'
|
|
12
12
|
|
|
13
13
|
export class QuotationImporter extends LitElement {
|
|
14
14
|
static styles = [
|
|
15
|
-
|
|
15
|
+
CommonHeaderStyles,
|
|
16
16
|
css`
|
|
17
17
|
:host {
|
|
18
18
|
display: flex;
|
|
@@ -63,8 +63,9 @@ export class QuotationImporter extends LitElement {
|
|
|
63
63
|
}}
|
|
64
64
|
></ox-grist>
|
|
65
65
|
|
|
66
|
-
<div class="
|
|
67
|
-
<
|
|
66
|
+
<div class="footer">
|
|
67
|
+
<div filler></div>
|
|
68
|
+
<button @click=${this.save.bind(this)} done><md-icon>save</md-icon>${i18next.t('button.save')}</button>
|
|
68
69
|
</div>
|
|
69
70
|
`
|
|
70
71
|
}
|
|
@@ -6,7 +6,7 @@ export declare class ActivityQuotationView extends ActivityQuotationView_base {
|
|
|
6
6
|
input?: any;
|
|
7
7
|
output?: any;
|
|
8
8
|
quotation?: any;
|
|
9
|
-
render(): import("lit").TemplateResult<1>;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
10
|
onChange(): Promise<void>;
|
|
11
11
|
updated(changes: any): void;
|
|
12
12
|
fetchQuotation(): Promise<void>;
|
|
@@ -6,7 +6,7 @@ export declare class ActivityQuotationView extends ActivityQuotationView_base {
|
|
|
6
6
|
input?: any;
|
|
7
7
|
output?: any;
|
|
8
8
|
quotation?: any;
|
|
9
|
-
render(): import("lit").TemplateResult<1>;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
10
|
onChange(): Promise<void>;
|
|
11
11
|
updated(changes: any): void;
|
|
12
12
|
fetchQuotation(): Promise<void>;
|
|
@@ -7,7 +7,7 @@ import { property } from 'lit/decorators.js';
|
|
|
7
7
|
import { client } from '@operato/graphql';
|
|
8
8
|
import { i18next } from '@operato/i18n';
|
|
9
9
|
import { isMobileDevice } from '@operato/utils';
|
|
10
|
-
import {
|
|
10
|
+
import { CommonHeaderStyles } from '@operato/styles';
|
|
11
11
|
export class QuotationImporter extends LitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
@@ -47,8 +47,9 @@ export class QuotationImporter extends LitElement {
|
|
|
47
47
|
}}
|
|
48
48
|
></ox-grist>
|
|
49
49
|
|
|
50
|
-
<div class="
|
|
51
|
-
<
|
|
50
|
+
<div class="footer">
|
|
51
|
+
<div filler></div>
|
|
52
|
+
<button @click=${this.save.bind(this)} done><md-icon>save</md-icon>${i18next.t('button.save')}</button>
|
|
52
53
|
</div>
|
|
53
54
|
`;
|
|
54
55
|
}
|
|
@@ -68,7 +69,7 @@ export class QuotationImporter extends LitElement {
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
QuotationImporter.styles = [
|
|
71
|
-
|
|
72
|
+
CommonHeaderStyles,
|
|
72
73
|
css `
|
|
73
74
|
:host {
|
|
74
75
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotation-importer.js","sourceRoot":"","sources":["../../../client/pages/quotation/quotation-importer.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,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;AAC/C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"quotation-importer.js","sourceRoot":"","sources":["../../../client/pages/quotation/quotation-importer.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,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;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEpD,MAAM,OAAO,iBAAkB,SAAQ,UAAU;IAAjD;;QAiB6B,eAAU,GAAU,EAAE,CAAA;QACrB,YAAO,GAAG;YACpC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE;YACzC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC9B,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,E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AACrB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDAuB1B","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@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'\nimport { CommonHeaderStyles } from '@operato/styles'\n\nexport class QuotationImporter 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\n ox-grist {\n flex: 1;\n }\n `\n ]\n\n @property({ type: Array }) quotations: 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 render() {\n return html`\n <ox-grist\n .mode=${isMobileDevice() ? 'LIST' : 'GRID'}\n .config=${this.columns}\n .data=${{\n records: this.quotations\n }}\n ></ox-grist>\n\n <div class=\"footer\">\n <div filler></div>\n <button @click=${this.save.bind(this)} done><md-icon>save</md-icon>${i18next.t('button.save')}</button>\n </div>\n `\n }\n\n async save() {\n const response = await client.mutate({\n mutation: gql`\n mutation importQuotations($quotations: [QuotationPatch!]!) {\n importQuotations(quotations: $quotations)\n }\n `,\n variables: { quotations: this.quotations }\n })\n\n if (response.errors?.length) return\n\n this.dispatchEvent(new CustomEvent('imported'))\n }\n}\n"]}
|
|
@@ -46,7 +46,7 @@ export declare class QuotationListPage extends QuotationListPage_base {
|
|
|
46
46
|
handler: (records: any) => Promise<void>;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
render(): import("lit").TemplateResult<1>;
|
|
49
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
50
50
|
pageInitialized(lifecycle: any): Promise<void>;
|
|
51
51
|
pageUpdated(changes: any, lifecycle: any): Promise<void>;
|
|
52
52
|
fetchHandler({ page, limit, sortings, filters }: FetchOption): Promise<{
|