@operato/process 2.0.0-alpha.71 → 2.0.0-alpha.74
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 +18 -0
- package/dist/src/modeller/component-toolbar/component-menu.d.ts +1 -1
- package/dist/src/modeller/component-toolbar/component-menu.js +1 -1
- package/dist/src/modeller/component-toolbar/component-menu.js.map +1 -1
- package/dist/src/modeller/component-toolbar/component-toolbar.d.ts +1 -1
- package/dist/src/modeller/component-toolbar/component-toolbar.js +1 -1
- package/dist/src/modeller/component-toolbar/component-toolbar.js.map +1 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +1 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/effects.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/effects/effects.js +1 -1
- package/dist/src/modeller/property-sidebar/effects/effects.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event.js +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event.js.map +1 -1
- package/dist/src/modeller/property-sidebar/property-sidebar.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/property-sidebar.js +1 -1
- package/dist/src/modeller/property-sidebar/property-sidebar.js.map +1 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.js +1 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.js.map +1 -1
- package/dist/src/ox-process-modeller.d.ts +1 -1
- package/dist/src/ox-process-modeller.js +1 -1
- package/dist/src/ox-process-modeller.js.map +1 -1
- package/dist/src/selector/process-creation-popup.d.ts +4 -5
- package/dist/src/selector/process-creation-popup.js +22 -16
- package/dist/src/selector/process-creation-popup.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/modeller/component-toolbar/component-menu.ts +1 -1
- package/src/modeller/component-toolbar/component-toolbar.ts +9 -6
- package/src/modeller/property-sidebar/data-binding/data-binding.ts +1 -1
- package/src/modeller/property-sidebar/effects/effects.ts +1 -1
- package/src/modeller/property-sidebar/effects/property-event.ts +1 -1
- package/src/modeller/property-sidebar/property-sidebar.ts +1 -1
- package/src/modeller/property-sidebar/specifics/specifics.ts +1 -1
- package/src/ox-process-modeller.ts +1 -1
- package/src/selector/process-creation-popup.ts +22 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/process",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.74",
|
|
4
4
|
"description": "Webcomponent for business process modeling following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"storybook:build": "tsc && npm run analyze -- --exclude dist && build-storybook"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@open-wc/scoped-elements": "^
|
|
70
|
+
"@open-wc/scoped-elements": "^3.0.5",
|
|
71
71
|
"@operato/app": "^2.0.0-alpha.71",
|
|
72
|
-
"@operato/board": "^2.0.0-alpha.
|
|
72
|
+
"@operato/board": "^2.0.0-alpha.74",
|
|
73
73
|
"@operato/data-grist": "^2.0.0-alpha.68",
|
|
74
74
|
"@operato/font": "^2.0.0-alpha.71",
|
|
75
75
|
"@operato/graphql": "^2.0.0-alpha.57",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"prettier --write"
|
|
128
128
|
]
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "2460e3386b888ee5e0eefc50cc16c6a8ada456aa"
|
|
131
131
|
}
|
|
@@ -2,7 +2,7 @@ import { css, html, LitElement, PropertyValues } from 'lit'
|
|
|
2
2
|
import { property, query, state } from 'lit/decorators.js'
|
|
3
3
|
|
|
4
4
|
import { Scene } from '@hatiolab/things-scene'
|
|
5
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
5
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
6
6
|
import { ScrollbarStyles } from '@operato/styles'
|
|
7
7
|
import { i18next } from '@operato/i18n'
|
|
8
8
|
|
|
@@ -6,7 +6,7 @@ import { css, html, LitElement, PropertyValues } from 'lit'
|
|
|
6
6
|
import { property, query, queryAll } from 'lit/decorators.js'
|
|
7
7
|
|
|
8
8
|
import { Scene, SCENE_MODE } from '@hatiolab/things-scene'
|
|
9
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
9
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
10
10
|
|
|
11
11
|
import { ComponentGroup } from '../../types'
|
|
12
12
|
import { ComponentMenu } from './component-menu.js'
|
|
@@ -84,11 +84,14 @@ export class ComponentToolbar extends ScopedElementsMixin(LitElement) {
|
|
|
84
84
|
|
|
85
85
|
this.icons = (this.componentGroupList || [])
|
|
86
86
|
.filter(group => group.templates?.length > 0)
|
|
87
|
-
.reduce(
|
|
88
|
-
sum
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
.reduce(
|
|
88
|
+
(sum, group: ComponentGroup) => {
|
|
89
|
+
sum[group.name] =
|
|
90
|
+
'data:image/svg+xml;charset=UTF-8;base64,' + btoa(group.icon.replace(/{{strokeColor}}/g, color))
|
|
91
|
+
return sum
|
|
92
|
+
},
|
|
93
|
+
{} as { [name: string]: string }
|
|
94
|
+
)
|
|
92
95
|
|
|
93
96
|
this.icons['mode-edit'] =
|
|
94
97
|
'data:image/svg+xml;charset=UTF-8;base64,' + btoa(ICON_EDIT_MODE.replace(/{{strokeColor}}/g, color))
|
|
@@ -12,7 +12,7 @@ import { css, html, PropertyValues } from 'lit'
|
|
|
12
12
|
import { property, query, state } from 'lit/decorators.js'
|
|
13
13
|
|
|
14
14
|
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
15
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
15
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
16
16
|
|
|
17
17
|
import { AbstractProperty } from '../abstract-property.js'
|
|
18
18
|
import { PropertySharedStyle } from '../property-shared-style.js'
|
|
@@ -9,7 +9,7 @@ import { html } from 'lit'
|
|
|
9
9
|
import { property } from 'lit/decorators.js'
|
|
10
10
|
|
|
11
11
|
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
12
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
12
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
13
13
|
|
|
14
14
|
import { AbstractProperty } from '../abstract-property.js'
|
|
15
15
|
import { PropertySharedStyle } from '../property-shared-style.js'
|
|
@@ -8,7 +8,7 @@ import { html, LitElement } from 'lit'
|
|
|
8
8
|
import { property } from 'lit/decorators.js'
|
|
9
9
|
|
|
10
10
|
import { Properties, Scene } from '@hatiolab/things-scene'
|
|
11
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
11
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
12
12
|
|
|
13
13
|
import { PropertySharedStyle } from '../property-shared-style'
|
|
14
14
|
import { PropertyEventHover } from './property-event-hover'
|
|
@@ -9,7 +9,7 @@ import { property } from 'lit/decorators.js'
|
|
|
9
9
|
import deepClone from 'lodash-es/cloneDeep'
|
|
10
10
|
|
|
11
11
|
import { BOUNDS, Component, Model, Scene } from '@hatiolab/things-scene'
|
|
12
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
12
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
13
13
|
import { ScrollbarStyles } from '@operato/styles'
|
|
14
14
|
|
|
15
15
|
import { PropertyDataBinding } from './data-binding/data-binding.js'
|
|
@@ -8,7 +8,7 @@ import { css, html, LitElement } from 'lit'
|
|
|
8
8
|
import { property } from 'lit/decorators.js'
|
|
9
9
|
|
|
10
10
|
import { Component, Scene } from '@hatiolab/things-scene'
|
|
11
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
11
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
12
12
|
|
|
13
13
|
import { i18next } from '@operato/i18n'
|
|
14
14
|
|
|
@@ -13,7 +13,7 @@ import { css, html, LitElement, PropertyValues } from 'lit'
|
|
|
13
13
|
import { customElement, property, query } from 'lit/decorators.js'
|
|
14
14
|
|
|
15
15
|
import { Scene, SCENE_MODE } from '@hatiolab/things-scene'
|
|
16
|
-
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
16
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element'
|
|
17
17
|
import { OxPopup } from '@operato/popup'
|
|
18
18
|
import { isMacOS, togglefullscreen } from '@operato/utils'
|
|
19
19
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import '@material/
|
|
2
|
-
import '@material/
|
|
3
|
-
import '@material/
|
|
4
|
-
import '@material/
|
|
5
|
-
import '@material/web/button/elevated-button.js'
|
|
1
|
+
import '@material/web/textfield/filled-text-field.js'
|
|
2
|
+
import '@material/web/button/text-button.js'
|
|
3
|
+
import '@material/web/select/filled-select.js'
|
|
4
|
+
import '@material/web/select/select-option.js'
|
|
6
5
|
import '../ox-process-template-list'
|
|
7
6
|
|
|
8
7
|
import { css, html, LitElement } from 'lit'
|
|
@@ -45,8 +44,9 @@ export class ProcessCreationPopup extends localize(i18next)(LitElement) {
|
|
|
45
44
|
overflow: auto;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
[content] >
|
|
47
|
+
[content] > md-filled-text-field[type='textarea'] {
|
|
49
48
|
flex: 1;
|
|
49
|
+
resize: none;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
[templates] {
|
|
@@ -75,25 +75,31 @@ export class ProcessCreationPopup extends localize(i18next)(LitElement) {
|
|
|
75
75
|
return html`
|
|
76
76
|
<div body>
|
|
77
77
|
<div content>
|
|
78
|
-
<
|
|
79
|
-
|
|
78
|
+
<md-filled-text-field
|
|
79
|
+
label=${String(i18next.t('label.name'))}
|
|
80
|
+
name="name"
|
|
81
|
+
required
|
|
82
|
+
field-name
|
|
83
|
+
></md-filled-text-field>
|
|
84
|
+
<md-filled-text-field
|
|
85
|
+
type="textarea"
|
|
80
86
|
label=${String(i18next.t('label.description'))}
|
|
81
87
|
name="description"
|
|
82
88
|
field-description
|
|
83
|
-
></
|
|
84
|
-
<
|
|
89
|
+
></md-filled-text-field>
|
|
90
|
+
<md-filled-select
|
|
85
91
|
label=${String(i18next.t('label.group'))}
|
|
86
92
|
field-group
|
|
87
93
|
helper="If there is no group to choose, you can leave it empty."
|
|
88
94
|
>
|
|
89
95
|
${groups.map(
|
|
90
96
|
group => html`
|
|
91
|
-
<
|
|
92
|
-
>${group.name}</
|
|
97
|
+
<md-select-option value=${group.id} ?selected=${this.defaultGroup == group.id}
|
|
98
|
+
>${group.name}</md-select-option
|
|
93
99
|
>
|
|
94
100
|
`
|
|
95
101
|
)}
|
|
96
|
-
</
|
|
102
|
+
</md-filled-select>
|
|
97
103
|
</div>
|
|
98
104
|
|
|
99
105
|
<div templates>
|
|
@@ -102,15 +108,15 @@ export class ProcessCreationPopup extends localize(i18next)(LitElement) {
|
|
|
102
108
|
</div>
|
|
103
109
|
</div>
|
|
104
110
|
|
|
105
|
-
<md-
|
|
106
|
-
>${String(i18next.t('button.create'))}</md-
|
|
111
|
+
<md-text-button @click=${(e: MouseEvent) => this.onClickSubmit()}
|
|
112
|
+
>${String(i18next.t('button.create'))}</md-text-button
|
|
107
113
|
>
|
|
108
114
|
`
|
|
109
115
|
}
|
|
110
116
|
|
|
111
117
|
firstUpdated() {
|
|
112
118
|
setTimeout(() => {
|
|
113
|
-
;(this.renderRoot.querySelector('
|
|
119
|
+
;(this.renderRoot.querySelector('md-filled-text-field') as any)?.focus()
|
|
114
120
|
}, 100)
|
|
115
121
|
}
|
|
116
122
|
|