@things-factory/process 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/event/event-importer.ts +5 -4
- package/client/pages/gateway/gateway-importer.ts +5 -4
- package/client/pages/process/process-importer.ts +5 -4
- package/client/pages/process-instance/process-instance-importer.ts +5 -4
- package/client/pages/process-thread/process-thread-importer.ts +5 -4
- package/dist-client/pages/event/event-importer.d.ts +1 -1
- package/dist-client/pages/event/event-importer.js +5 -4
- package/dist-client/pages/event/event-importer.js.map +1 -1
- package/dist-client/pages/event/event-list-page.d.ts +1 -1
- package/dist-client/pages/gateway/gateway-importer.d.ts +1 -1
- package/dist-client/pages/gateway/gateway-importer.js +5 -4
- package/dist-client/pages/gateway/gateway-importer.js.map +1 -1
- package/dist-client/pages/gateway/gateway-list-page.d.ts +1 -1
- package/dist-client/pages/process/process-importer.d.ts +1 -1
- package/dist-client/pages/process/process-importer.js +5 -4
- package/dist-client/pages/process/process-importer.js.map +1 -1
- package/dist-client/pages/process/process-list-page.d.ts +1 -1
- package/dist-client/pages/process-instance/process-instance-importer.d.ts +1 -1
- package/dist-client/pages/process-instance/process-instance-importer.js +5 -4
- package/dist-client/pages/process-instance/process-instance-importer.js.map +1 -1
- package/dist-client/pages/process-instance/process-instance-list-page.d.ts +1 -1
- package/dist-client/pages/process-thread/process-thread-importer.d.ts +1 -1
- package/dist-client/pages/process-thread/process-thread-importer.js +5 -4
- package/dist-client/pages/process-thread/process-thread-importer.js.map +1 -1
- package/dist-client/pages/process-thread/process-thread-list-page.d.ts +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
|
@@ -8,10 +8,10 @@ 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
|
export class EventImporter extends LitElement {
|
|
13
13
|
static styles = [
|
|
14
|
-
|
|
14
|
+
CommonHeaderStyles,
|
|
15
15
|
css`
|
|
16
16
|
:host {
|
|
17
17
|
display: flex;
|
|
@@ -62,8 +62,9 @@ export class EventImporter extends LitElement {
|
|
|
62
62
|
}}
|
|
63
63
|
></ox-grist>
|
|
64
64
|
|
|
65
|
-
<div class="
|
|
66
|
-
<
|
|
65
|
+
<div class="footer">
|
|
66
|
+
<div filler></div>
|
|
67
|
+
<button @click=${this.save.bind(this)} done><md-icon>save</md-icon>${i18next.t('button.save')}</button>
|
|
67
68
|
</div>
|
|
68
69
|
`
|
|
69
70
|
}
|
|
@@ -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 GatewayImporter 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 GatewayImporter 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
|
}
|
|
@@ -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 ProcessImporter 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 ProcessImporter 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
|
}
|
|
@@ -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 ProcessInstanceImporter 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 ProcessInstanceImporter 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
|
}
|
|
@@ -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 ProcessThreadImporter 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 ProcessThreadImporter 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
|
}
|
|
@@ -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 EventImporter extends LitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
@@ -47,8 +47,9 @@ export class EventImporter 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 EventImporter extends LitElement {
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
EventImporter.styles = [
|
|
71
|
-
|
|
72
|
+
CommonHeaderStyles,
|
|
72
73
|
css `
|
|
73
74
|
:host {
|
|
74
75
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-importer.js","sourceRoot":"","sources":["../../../client/pages/event/event-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":"event-importer.js","sourceRoot":"","sources":["../../../client/pages/event/event-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;AACpD,MAAM,OAAO,aAAc,SAAQ,UAAU;IAA7C;;QAiB6B,WAAM,GAAU,EAAE,CAAA;QACjB,YAAO,GAAG;YACpC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC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G;IACd,kBAAkB;IAClB,GAAG,CAAA;;;;;;;;;;;KAWF;CACF,AAdY,CAcZ;AAE0B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;6CAAmB;AACjB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAuB1B","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'\nexport class EventImporter 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 }) events: 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.events\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 importEvents($events: [EventPatch!]!) {\n importEvents(events: $events)\n }\n `,\n variables: { events: this.events }\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 EventListPage extends EventListPage_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<{
|
|
@@ -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 GatewayImporter extends LitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
@@ -47,8 +47,9 @@ export class GatewayImporter 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 GatewayImporter extends LitElement {
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
GatewayImporter.styles = [
|
|
71
|
-
|
|
72
|
+
CommonHeaderStyles,
|
|
72
73
|
css `
|
|
73
74
|
:host {
|
|
74
75
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway-importer.js","sourceRoot":"","sources":["../../../client/pages/gateway/gateway-importer.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,qBAAqB,CAAA;AAE5B,OAAO,GAAG,MAA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\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 GatewayImporter 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 }) gateways: 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.gateways\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 importGateways($gateways: [GatewayPatch!]!) {\n importGateways(gateways: $gateways)\n }\n `,\n variables: { gateways: this.gateways }\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 GatewayListPage extends GatewayListPage_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<{
|
|
@@ -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 ProcessImporter extends LitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
@@ -47,8 +47,9 @@ export class ProcessImporter 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 ProcessImporter extends LitElement {
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
ProcessImporter.styles = [
|
|
71
|
-
|
|
72
|
+
CommonHeaderStyles,
|
|
72
73
|
css `
|
|
73
74
|
:host {
|
|
74
75
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-importer.js","sourceRoot":"","sources":["../../../client/pages/process/process-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;A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EAAE;iBACV;aACF;SACF,CAAA;IAiCH,CAAC;IA/BC,MAAM;QACJ,OAAO,IAAI,CAAA;;gBAEC,cAAc,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;kBAChC,IAAI,CAAC,OAAO;gBACd;YACN,OAAO,EAAE,IAAI,CAAC,SAAS;SACxB;;;;;yBAKgB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gCAAgC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC;;KAEhG,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI;;QACR,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;YACnC,QAAQ,EAAE,GAAG,CAAA;;;;OAIZ;YACD,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE;SACzC,CAAC,CAAA;QAEF,IAAI,MAAA,QAAQ,CAAC,MAAM,0CAAE,MAAM;YAAE,OAAM;QAEnC,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,CAAC;;AAxEM,sBAAM,GAAG;IACd,kBAAkB;IAClB,GAAG,CAAA;;;;;;;;;;;KAWF;CACF,AAdY,CAcZ;AAE0B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;kDAAsB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDAuB1B","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 ProcessImporter 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 }) processes: 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.processes\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 importProcesses($processes: [ProcessPatch!]!) {\n importProcesses(processes: $processes)\n }\n `,\n variables: { processes: this.processes }\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 ProcessListPage extends ProcessListPage_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<{
|
|
@@ -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 ProcessInstanceImporter extends LitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
@@ -47,8 +47,9 @@ export class ProcessInstanceImporter 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 ProcessInstanceImporter extends LitElement {
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
ProcessInstanceImporter.styles = [
|
|
71
|
-
|
|
72
|
+
CommonHeaderStyles,
|
|
72
73
|
css `
|
|
73
74
|
:host {
|
|
74
75
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-instance-importer.js","sourceRoot":"","sources":["../../../client/pages/process-instance/process-instance-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":"process-instance-importer.js","sourceRoot":"","sources":["../../../client/pages/process-instance/process-instance-importer.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,qBAAqB,CAAA;AAE5B,OAAO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;SAC/B;;;;;yBAKgB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gCAAgC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC;;KAEhG,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI;;QACR,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;YACnC,QAAQ,EAAE,GAAG,CAAA;;;;OAIZ;YACD,SAAS,EAAE,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE;SACvD,CAAC,CAAA;QAEF,IAAI,MAAA,QAAQ,CAAC,MAAM,0CAAE,MAAM;YAAE,OAAM;QAEnC,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,CAAC;;AAxEM,8BAAM,GAAG;IACd,kBAAkB;IAClB,GAAG,CAAA;;;;;;;;;;;KAWF;CACF,AAdY,CAcZ;AAE0B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;iEAA6B;AAC3B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDAuB1B","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 ProcessInstanceImporter 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 }) processInstances: 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.processInstances\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 importProcessInstances($processInstances: [ProcessInstancePatch!]!) {\n importProcessInstances(processInstances: $processInstances)\n }\n `,\n variables: { processInstances: this.processInstances }\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 ProcessInstanceListPage extends ProcessInstanceListPage_bas
|
|
|
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<{
|
|
@@ -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 ProcessThreadImporter extends LitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
@@ -47,8 +47,9 @@ export class ProcessThreadImporter 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 ProcessThreadImporter extends LitElement {
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
ProcessThreadImporter.styles = [
|
|
71
|
-
|
|
72
|
+
CommonHeaderStyles,
|
|
72
73
|
css `
|
|
73
74
|
:host {
|
|
74
75
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-thread-importer.js","sourceRoot":"","sources":["../../../client/pages/process-thread/process-thread-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":"process-thread-importer.js","sourceRoot":"","sources":["../../../client/pages/process-thread/process-thread-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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AAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC;YACnC,QAAQ,EAAE,GAAG,CAAA;;;;OAIZ;YACD,SAAS,EAAE,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE;SACnD,CAAC,CAAA;QAEF,IAAI,MAAA,QAAQ,CAAC,MAAM,0CAAE,MAAM;YAAE,OAAM;QAEnC,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,CAAC;;AAxEM,4BAAM,GAAG;IACd,kBAAkB;IAClB,GAAG,CAAA;;;;;;;;;;;KAWF;CACF,AAdY,CAcZ;AAE0B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;6DAA2B;AACzB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDAuB1B","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 ProcessThreadImporter 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 }) processThreads: 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.processThreads\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 importProcessThreads($processThreads: [ProcessThreadPatch!]!) {\n importProcessThreads(processThreads: $processThreads)\n }\n `,\n variables: { processThreads: this.processThreads }\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 ProcessThreadListPage extends ProcessThreadListPage_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<{
|