@things-factory/quotation 9.0.0-beta.25 → 9.0.0-beta.27

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 (78) hide show
  1. package/package.json +3 -3
  2. package/dist-client/actions/main.d.ts +0 -1
  3. package/dist-client/actions/main.js +0 -2
  4. package/dist-client/actions/main.js.map +0 -1
  5. package/dist-client/activities/activity-quotation-edit.d.ts +0 -14
  6. package/dist-client/activities/activity-quotation-edit.js +0 -87
  7. package/dist-client/activities/activity-quotation-edit.js.map +0 -1
  8. package/dist-client/activities/activity-quotation-view.d.ts +0 -14
  9. package/dist-client/activities/activity-quotation-view.js +0 -87
  10. package/dist-client/activities/activity-quotation-view.js.map +0 -1
  11. package/dist-client/bootstrap.d.ts +0 -1
  12. package/dist-client/bootstrap.js +0 -8
  13. package/dist-client/bootstrap.js.map +0 -1
  14. package/dist-client/index.d.ts +0 -1
  15. package/dist-client/index.js +0 -2
  16. package/dist-client/index.js.map +0 -1
  17. package/dist-client/pages/main.d.ts +0 -1
  18. package/dist-client/pages/main.js +0 -27
  19. package/dist-client/pages/main.js.map +0 -1
  20. package/dist-client/pages/quotation/quotation-importer.d.ts +0 -23
  21. package/dist-client/pages/quotation/quotation-importer.js +0 -94
  22. package/dist-client/pages/quotation/quotation-importer.js.map +0 -1
  23. package/dist-client/pages/quotation/quotation-list-page.d.ts +0 -61
  24. package/dist-client/pages/quotation/quotation-list-page.js +0 -306
  25. package/dist-client/pages/quotation/quotation-list-page.js.map +0 -1
  26. package/dist-client/reducers/main.d.ts +0 -6
  27. package/dist-client/reducers/main.js +0 -14
  28. package/dist-client/reducers/main.js.map +0 -1
  29. package/dist-client/route.d.ts +0 -1
  30. package/dist-client/route.js +0 -11
  31. package/dist-client/route.js.map +0 -1
  32. package/dist-client/tsconfig.tsbuildinfo +0 -1
  33. package/dist-server/activities/activity-quotation.d.ts +0 -42
  34. package/dist-server/activities/activity-quotation.js +0 -114
  35. package/dist-server/activities/activity-quotation.js.map +0 -1
  36. package/dist-server/activities/index.d.ts +0 -1
  37. package/dist-server/activities/index.js +0 -17
  38. package/dist-server/activities/index.js.map +0 -1
  39. package/dist-server/controllers/index.d.ts +0 -0
  40. package/dist-server/controllers/index.js +0 -1
  41. package/dist-server/controllers/index.js.map +0 -1
  42. package/dist-server/index.d.ts +0 -3
  43. package/dist-server/index.js +0 -7
  44. package/dist-server/index.js.map +0 -1
  45. package/dist-server/middlewares/index.d.ts +0 -1
  46. package/dist-server/middlewares/index.js +0 -7
  47. package/dist-server/middlewares/index.js.map +0 -1
  48. package/dist-server/migrations/index.d.ts +0 -1
  49. package/dist-server/migrations/index.js +0 -12
  50. package/dist-server/migrations/index.js.map +0 -1
  51. package/dist-server/routes.d.ts +0 -0
  52. package/dist-server/routes.js +0 -24
  53. package/dist-server/routes.js.map +0 -1
  54. package/dist-server/service/index.d.ts +0 -6
  55. package/dist-server/service/index.js +0 -23
  56. package/dist-server/service/index.js.map +0 -1
  57. package/dist-server/service/quotation/event-subscriber.d.ts +0 -7
  58. package/dist-server/service/quotation/event-subscriber.js +0 -21
  59. package/dist-server/service/quotation/event-subscriber.js.map +0 -1
  60. package/dist-server/service/quotation/index.d.ts +0 -7
  61. package/dist-server/service/quotation/index.js +0 -12
  62. package/dist-server/service/quotation/index.js.map +0 -1
  63. package/dist-server/service/quotation/quotation-history.d.ts +0 -25
  64. package/dist-server/service/quotation/quotation-history.js +0 -132
  65. package/dist-server/service/quotation/quotation-history.js.map +0 -1
  66. package/dist-server/service/quotation/quotation-mutation.d.ts +0 -10
  67. package/dist-server/service/quotation/quotation-mutation.js +0 -168
  68. package/dist-server/service/quotation/quotation-mutation.js.map +0 -1
  69. package/dist-server/service/quotation/quotation-query.d.ts +0 -12
  70. package/dist-server/service/quotation/quotation-query.js +0 -97
  71. package/dist-server/service/quotation/quotation-query.js.map +0 -1
  72. package/dist-server/service/quotation/quotation-type.d.ts +0 -23
  73. package/dist-server/service/quotation/quotation-type.js +0 -86
  74. package/dist-server/service/quotation/quotation-type.js.map +0 -1
  75. package/dist-server/service/quotation/quotation.d.ts +0 -25
  76. package/dist-server/service/quotation/quotation.js +0 -112
  77. package/dist-server/service/quotation/quotation.js.map +0 -1
  78. package/dist-server/tsconfig.tsbuildinfo +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/quotation",
3
- "version": "9.0.0-beta.25",
3
+ "version": "9.0.0-beta.27",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -31,7 +31,7 @@
31
31
  "@operato/shell": "^9.0.0-beta",
32
32
  "@things-factory/auth-base": "^9.0.0-beta.25",
33
33
  "@things-factory/shell": "^9.0.0-beta.25",
34
- "@things-factory/worklist": "^9.0.0-beta.25"
34
+ "@things-factory/worklist": "^9.0.0-beta.27"
35
35
  },
36
- "gitHead": "7b11df06e4b7586cc316da7dd5ab905592d85dcc"
36
+ "gitHead": "3038f56087036b06717f8e4910383c6b1320218d"
37
37
  }
@@ -1 +0,0 @@
1
- export declare const UPDATE_QUOTATION = "UPDATE_QUOTATION";
@@ -1,2 +0,0 @@
1
- export const UPDATE_QUOTATION = 'UPDATE_QUOTATION';
2
- //# sourceMappingURL=main.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../client/actions/main.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAA","sourcesContent":["export const UPDATE_QUOTATION = 'UPDATE_QUOTATION'\n"]}
@@ -1,14 +0,0 @@
1
- import '../components/quotation-edit.js';
2
- import { LitElement } from 'lit';
3
- declare const ActivityQuotationView_base: (new (...args: any[]) => LitElement) & typeof LitElement;
4
- export declare class ActivityQuotationView extends ActivityQuotationView_base {
5
- static styles: import("lit").CSSResult[];
6
- input?: any;
7
- output?: any;
8
- quotation?: any;
9
- render(): import("lit-html").TemplateResult<1>;
10
- onChange(): Promise<void>;
11
- updated(changes: any): void;
12
- fetchQuotation(): Promise<void>;
13
- }
14
- export {};
@@ -1,87 +0,0 @@
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/quotation-edit.js' // refered by the activity template (activity-quotation) on server
5
- */
6
- import { __decorate, __metadata } from "tslib";
7
- import '../components/quotation-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 { QuotationView } from '../components/quotation-edit.js'
15
- let ActivityQuotationView = class ActivityQuotationView extends localize(i18next)(LitElement) {
16
- // @query('quotation-edit') quotationView!: QuotationView
17
- render() {
18
- return html `
19
- <quotation-edit .quotation=${this.quotation} .value=${this.output} @change=${this.onChange}></quotation-edit>
20
- `;
21
- }
22
- async onChange() {
23
- // this.output = this.quotationView.value
24
- this.dispatchEvent(new CustomEvent('change', {
25
- detail: this.output
26
- }));
27
- }
28
- updated(changes) {
29
- if (changes.has('input')) {
30
- this.fetchQuotation();
31
- }
32
- }
33
- async fetchQuotation() {
34
- const id = this.input.quotationId;
35
- if (id) {
36
- const response = await client.query({
37
- query: gql `
38
- query ($id: String!) {
39
- quotation(id: $id) {
40
- id
41
- name
42
- description
43
- }
44
- }
45
- `,
46
- variables: {
47
- id
48
- }
49
- });
50
- this.quotation = response.data.quotation;
51
- }
52
- }
53
- };
54
- ActivityQuotationView.styles = [
55
- ScrollbarStyles,
56
- css `
57
- :host {
58
- display: flex;
59
- flex-direction: column;
60
-
61
- background-color: var(--md-sys-color-surface);
62
- }
63
-
64
- quotation-edit {
65
- flex: 1;
66
- padding: 10px;
67
- overflow: auto;
68
- }
69
- `
70
- ];
71
- __decorate([
72
- property({ type: Object }),
73
- __metadata("design:type", Object)
74
- ], ActivityQuotationView.prototype, "input", void 0);
75
- __decorate([
76
- property({ type: Object }),
77
- __metadata("design:type", Object)
78
- ], ActivityQuotationView.prototype, "output", void 0);
79
- __decorate([
80
- state(),
81
- __metadata("design:type", Object)
82
- ], ActivityQuotationView.prototype, "quotation", void 0);
83
- ActivityQuotationView = __decorate([
84
- customElement('activity-quotation-edit')
85
- ], ActivityQuotationView);
86
- export { ActivityQuotationView };
87
- //# sourceMappingURL=activity-quotation-edit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"activity-quotation-edit.js","sourceRoot":"","sources":["../../client/activities/activity-quotation-edit.ts"],"names":[],"mappings":"AAAA;;;;EAIE;;AAEF,OAAO,iCAAiC,CAAA;AAExC,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,kEAAkE;AAG3D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;IAwBtE,yDAAyD;IAEzD,MAAM;QACJ,OAAO,IAAI,CAAA;mCACoB,IAAI,CAAC,SAAS,WAAW,IAAI,CAAC,MAAM,YAAY,IAAI,CAAC,QAAQ;KAC3F,CAAA;IACH,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,yCAAyC;QAEzC,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,cAAc,EAAE,CAAA;QACvB,CAAC;IACH,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAA;QAEjC,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,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAA;QAC1C,CAAC;IACH,CAAC;;AApEM,4BAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;KAaF;CACF,AAhBY,CAgBZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAAY;AACX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDAAa;AAE/B;IAAR,KAAK,EAAE;;wDAAgB;AAtBb,qBAAqB;IADjC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,qBAAqB,CAsEjC","sourcesContent":["/* \nAdd the following line to clinet/bootstrap.ts so that activity editor can be registered when loading a module.\n--\nimport './activities/quotation-edit.js' // refered by the activity template (activity-quotation) on server\n*/\n\nimport '../components/quotation-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 { QuotationView } from '../components/quotation-edit.js'\n\n@customElement('activity-quotation-edit')\nexport class ActivityQuotationView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: var(--md-sys-color-surface);\n }\n\n quotation-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() quotation?: any //Quotation\n\n // @query('quotation-edit') quotationView!: QuotationView\n\n render() {\n return html`\n <quotation-edit .quotation=${this.quotation} .value=${this.output} @change=${this.onChange}></quotation-edit>\n `\n }\n\n async onChange() {\n // this.output = this.quotationView.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.fetchQuotation()\n }\n }\n\n async fetchQuotation() {\n const id = this.input.quotationId\n\n if (id) {\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n quotation(id: $id) {\n id\n name\n description\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.quotation = response.data.quotation\n }\n }\n}\n"]}
@@ -1,14 +0,0 @@
1
- import '../components/quotation-view.js';
2
- import { LitElement } from 'lit';
3
- declare const ActivityQuotationView_base: (new (...args: any[]) => LitElement) & typeof LitElement;
4
- export declare class ActivityQuotationView extends ActivityQuotationView_base {
5
- static styles: import("lit").CSSResult[];
6
- input?: any;
7
- output?: any;
8
- quotation?: any;
9
- render(): import("lit-html").TemplateResult<1>;
10
- onChange(): Promise<void>;
11
- updated(changes: any): void;
12
- fetchQuotation(): Promise<void>;
13
- }
14
- export {};
@@ -1,87 +0,0 @@
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/quotation-view.js' // refered by the activity template (activity-data-collect) on server
5
- */
6
- import { __decorate, __metadata } from "tslib";
7
- import '../components/quotation-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 { QuotationView } from '../components/quotation-view.js'
15
- let ActivityQuotationView = class ActivityQuotationView extends localize(i18next)(LitElement) {
16
- // @query('quotation-view') quotationView!: QuotationView
17
- render() {
18
- return html `
19
- <quotation-view .quotation=${this.quotation} .value=${this.output} @change=${this.onChange}></quotation-view>
20
- `;
21
- }
22
- async onChange() {
23
- // this.output = this.quotationView.value
24
- this.dispatchEvent(new CustomEvent('change', {
25
- detail: this.output
26
- }));
27
- }
28
- updated(changes) {
29
- if (changes.has('input')) {
30
- this.fetchQuotation();
31
- }
32
- }
33
- async fetchQuotation() {
34
- const id = this.input.quotationId;
35
- if (id) {
36
- const response = await client.query({
37
- query: gql `
38
- query ($id: String!) {
39
- quotation(id: $id) {
40
- id
41
- name
42
- description
43
- }
44
- }
45
- `,
46
- variables: {
47
- id
48
- }
49
- });
50
- this.quotation = response.data.quotation;
51
- }
52
- }
53
- };
54
- ActivityQuotationView.styles = [
55
- ScrollbarStyles,
56
- css `
57
- :host {
58
- display: flex;
59
- flex-direction: column;
60
-
61
- background-color: var(--md-sys-color-surface);
62
- }
63
-
64
- quotation-view {
65
- flex: 1;
66
- padding: 10px;
67
- overflow: auto;
68
- }
69
- `
70
- ];
71
- __decorate([
72
- property({ type: Object }),
73
- __metadata("design:type", Object)
74
- ], ActivityQuotationView.prototype, "input", void 0);
75
- __decorate([
76
- property({ type: Object }),
77
- __metadata("design:type", Object)
78
- ], ActivityQuotationView.prototype, "output", void 0);
79
- __decorate([
80
- state(),
81
- __metadata("design:type", Object)
82
- ], ActivityQuotationView.prototype, "quotation", void 0);
83
- ActivityQuotationView = __decorate([
84
- customElement('activity-quotation-view')
85
- ], ActivityQuotationView);
86
- export { ActivityQuotationView };
87
- //# sourceMappingURL=activity-quotation-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"activity-quotation-view.js","sourceRoot":"","sources":["../../client/activities/activity-quotation-view.ts"],"names":[],"mappings":"AAAA;;;;EAIE;;AAEF,OAAO,iCAAiC,CAAA;AAExC,OAAO,GAAG,MAAM,aAAa,C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C,CAAC;IACH,CAAC;;AApEM,4BAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;KAaF;CACF,AAhBY,CAgBZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAAY;AACX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDAAa;AAE/B;IAAR,KAAK,EAAE;;wDAAgB;AAtBb,qBAAqB;IADjC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,qBAAqB,CAsEjC","sourcesContent":["/* \nAdd the following line to clinet/bootstrap.ts so that activity view can be registered when loading a module.\n--\nimport './activities/quotation-view.js' // refered by the activity template (activity-data-collect) on server\n*/\n\nimport '../components/quotation-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 { QuotationView } from '../components/quotation-view.js'\n\n@customElement('activity-quotation-view')\nexport class ActivityQuotationView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: var(--md-sys-color-surface);\n }\n\n quotation-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() quotation?: any //Quotation\n\n // @query('quotation-view') quotationView!: QuotationView\n\n render() {\n return html`\n <quotation-view .quotation=${this.quotation} .value=${this.output} @change=${this.onChange}></quotation-view>\n `\n }\n\n async onChange() {\n // this.output = this.quotationView.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.fetchQuotation()\n }\n }\n\n async fetchQuotation() {\n const id = this.input.quotationId\n\n if (id) {\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n quotation(id: $id) {\n id\n name\n description\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.quotation = response.data.quotation\n }\n }\n}\n"]}
@@ -1 +0,0 @@
1
- export default function bootstrap(): void;
@@ -1,8 +0,0 @@
1
- import { store } from '@operato/shell';
2
- import quotation from './reducers/main';
3
- export default function bootstrap() {
4
- store.addReducers({
5
- quotation
6
- });
7
- }
8
- //# sourceMappingURL=bootstrap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtC,OAAO,SAAS,MAAM,iBAAiB,CAAA;AAEvC,MAAM,CAAC,OAAO,UAAU,SAAS;IAC/B,KAAK,CAAC,WAAW,CAAC;QAChB,SAAS;KACV,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import { store } from '@operato/shell'\nimport quotation from './reducers/main'\n\nexport default function bootstrap() {\n store.addReducers({\n quotation\n })\n}\n"]}
@@ -1 +0,0 @@
1
- export * from './actions/main';
@@ -1,2 +0,0 @@
1
- export * from './actions/main';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../client/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA","sourcesContent":["export * from './actions/main'"]}
@@ -1 +0,0 @@
1
- export {};
@@ -1,27 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import { html } from 'lit';
3
- import { customElement, property } from 'lit/decorators.js';
4
- import { connect } from 'pwa-helpers/connect-mixin.js';
5
- import { store, PageView } from '@operato/shell';
6
- const logo = new URL('/assets/images/hatiolab-logo.png', import.meta.url).href;
7
- let QuotationMain = class QuotationMain extends connect(store)(PageView) {
8
- render() {
9
- return html `
10
- <section>
11
- <h2>Quotation</h2>
12
- <img src=${logo}>
13
- </section>
14
- `;
15
- }
16
- stateChanged(state) {
17
- this.quotation = state.quotation.state_main;
18
- }
19
- };
20
- __decorate([
21
- property({ type: String }),
22
- __metadata("design:type", String)
23
- ], QuotationMain.prototype, "quotation", void 0);
24
- QuotationMain = __decorate([
25
- customElement('quotation-main')
26
- ], QuotationMain);
27
- //# sourceMappingURL=main.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../client/pages/main.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AACtD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEhD,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,kCAAkC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAG9E,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC;IAGlD,MAAM;QACJ,OAAO,IAAI,CAAA;;;mBAGI,IAAI;;KAElB,CAAA;IACH,CAAC;IAED,YAAY,CAAC,KAAK;QAChB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,UAAU,CAAA;IAC7C,CAAC;CACF,CAAA;AAd6B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDAAmB;AAD1C,aAAa;IADlB,aAAa,CAAC,gBAAgB,CAAC;GAC1B,aAAa,CAelB","sourcesContent":["import { html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { connect } from 'pwa-helpers/connect-mixin.js'\nimport { store, PageView } from '@operato/shell'\n\nconst logo = new URL('/assets/images/hatiolab-logo.png', import.meta.url).href\n\n@customElement('quotation-main')\nclass QuotationMain extends connect(store)(PageView) {\n @property({ type: String }) quotation?: string\n\n render() {\n return html`\n <section>\n <h2>Quotation</h2>\n <img src=${logo}>\n </section>\n `\n }\n\n stateChanged(state) {\n this.quotation = state.quotation.state_main\n }\n}\n\n"]}
@@ -1,23 +0,0 @@
1
- import '@material/web/icon/icon.js';
2
- import '@operato/data-grist';
3
- import { LitElement } from 'lit';
4
- export declare class QuotationImporter extends LitElement {
5
- static styles: import("lit").CSSResult[];
6
- quotations: any[];
7
- columns: {
8
- list: {
9
- fields: string[];
10
- };
11
- pagination: {
12
- infinite: boolean;
13
- };
14
- columns: {
15
- type: string;
16
- name: string;
17
- header: string;
18
- width: number;
19
- }[];
20
- };
21
- render(): import("lit-html").TemplateResult<1>;
22
- save(): Promise<void>;
23
- }
@@ -1,94 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import '@material/web/icon/icon.js';
3
- import '@operato/data-grist';
4
- import gql from 'graphql-tag';
5
- import { css, html, LitElement } from 'lit';
6
- import { property } from 'lit/decorators.js';
7
- import { client } from '@operato/graphql';
8
- import { i18next } from '@operato/i18n';
9
- import { isMobileDevice } from '@operato/utils';
10
- import { CommonHeaderStyles } from '@operato/styles';
11
- export class QuotationImporter extends LitElement {
12
- constructor() {
13
- super(...arguments);
14
- this.quotations = [];
15
- this.columns = {
16
- list: { fields: ['name', 'description'] },
17
- pagination: { infinite: true },
18
- columns: [
19
- {
20
- type: 'string',
21
- name: 'name',
22
- header: i18next.t('field.name'),
23
- width: 150
24
- },
25
- {
26
- type: 'string',
27
- name: 'description',
28
- header: i18next.t('field.description'),
29
- width: 200
30
- },
31
- {
32
- type: 'checkbox',
33
- name: 'active',
34
- header: i18next.t('field.active'),
35
- width: 60
36
- }
37
- ]
38
- };
39
- }
40
- render() {
41
- return html `
42
- <ox-grist
43
- .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
44
- .config=${this.columns}
45
- .data=${{
46
- records: this.quotations
47
- }}
48
- ></ox-grist>
49
-
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>
53
- </div>
54
- `;
55
- }
56
- async save() {
57
- var _a;
58
- const response = await client.mutate({
59
- mutation: gql `
60
- mutation importQuotations($quotations: [QuotationPatch!]!) {
61
- importQuotations(quotations: $quotations)
62
- }
63
- `,
64
- variables: { quotations: this.quotations }
65
- });
66
- if ((_a = response.errors) === null || _a === void 0 ? void 0 : _a.length)
67
- return;
68
- this.dispatchEvent(new CustomEvent('imported'));
69
- }
70
- }
71
- QuotationImporter.styles = [
72
- CommonHeaderStyles,
73
- css `
74
- :host {
75
- display: flex;
76
- flex-direction: column;
77
-
78
- background-color: var(--md-sys-color-surface);
79
- }
80
-
81
- ox-grist {
82
- flex: 1;
83
- }
84
- `
85
- ];
86
- __decorate([
87
- property({ type: Array }),
88
- __metadata("design:type", Array)
89
- ], QuotationImporter.prototype, "quotations", void 0);
90
- __decorate([
91
- property({ type: Object }),
92
- __metadata("design:type", Object)
93
- ], QuotationImporter.prototype, "columns", void 0);
94
- //# sourceMappingURL=quotation-importer.js.map
@@ -1 +0,0 @@
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,U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;QAEnC,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,CAAC;;AAxEM,wBAAM,GAAG;IACd,kBAAkB;IAClB,GAAG,CAAA;;;;;;;;;;;KAWF;CACF,AAdY,CAcZ;AAE0B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;qDAAuB;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"]}
@@ -1,61 +0,0 @@
1
- import '@operato/data-grist';
2
- import { PageView } from '@operato/shell';
3
- import { FetchOption } from '@operato/data-grist';
4
- import { QuotationImporter } from './quotation-importer';
5
- declare const QuotationListPage_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 QuotationListPage extends QuotationListPage_base {
13
- static styles: import("lit").CSSResult[];
14
- static get scopedElements(): {
15
- 'quotation-importer': typeof QuotationImporter;
16
- };
17
- gristConfig: any;
18
- mode: 'CARD' | 'GRID' | 'LIST';
19
- private grist;
20
- get context(): {
21
- title: string;
22
- search: {
23
- handler: (search: string) => void;
24
- value: string;
25
- };
26
- filter: {
27
- handler: () => void;
28
- };
29
- help: string;
30
- actions: {
31
- icon: string;
32
- emphasis: {
33
- raised: boolean;
34
- outlined: boolean;
35
- dense: boolean;
36
- danger: boolean;
37
- };
38
- title: string;
39
- action: () => Promise<void>;
40
- }[];
41
- exportable: {
42
- name: string;
43
- data: () => Promise<{}[]>;
44
- };
45
- importable: {
46
- handler: (records: any) => Promise<void>;
47
- };
48
- };
49
- render(): import("lit-html").TemplateResult<1>;
50
- pageInitialized(lifecycle: any): Promise<void>;
51
- pageUpdated(changes: any, lifecycle: any): Promise<void>;
52
- fetchHandler({ page, limit, sortings, filters }: FetchOption): Promise<{
53
- total: any;
54
- records: any;
55
- }>;
56
- _deleteQuotation(): Promise<void>;
57
- _updateQuotation(): Promise<void>;
58
- exportHandler(): Promise<{}[]>;
59
- importHandler(records: any): Promise<void>;
60
- }
61
- export {};