@operato/process 2.0.0-alpha.4 → 2.0.0-alpha.41
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 +256 -0
- package/dist/src/modeller/component-toolbar/component-menu.js +8 -4
- package/dist/src/modeller/component-toolbar/component-menu.js.map +1 -1
- package/dist/src/modeller/property-sidebar/shapes/shapes.js +11 -0
- package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.js +4 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.js.map +1 -1
- package/dist/src/ox-process-list.js +3 -5
- package/dist/src/ox-process-list.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +23 -23
- package/src/modeller/component-toolbar/component-menu.ts +8 -5
- package/src/modeller/property-sidebar/shapes/shapes.ts +11 -0
- package/src/modeller/property-sidebar/specifics/specifics.ts +5 -1
- package/src/ox-process-list.ts +3 -7
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.41",
|
|
4
4
|
"description": "Webcomponent for business process modeling following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -68,18 +68,18 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@open-wc/scoped-elements": "^2.1.3",
|
|
71
|
-
"@operato/app": "^2.0.0-alpha.
|
|
72
|
-
"@operato/board": "^2.0.0-alpha.
|
|
73
|
-
"@operato/data-grist": "^2.0.0-alpha.
|
|
74
|
-
"@operato/font": "^2.0.0-alpha.
|
|
75
|
-
"@operato/graphql": "^2.0.0-alpha.
|
|
76
|
-
"@operato/i18n": "^2.0.0-alpha.
|
|
77
|
-
"@operato/input": "^2.0.0-alpha.
|
|
78
|
-
"@operato/markdown": "^2.0.0-alpha.
|
|
79
|
-
"@operato/popup": "^2.0.0-alpha.
|
|
80
|
-
"@operato/property-editor": "^2.0.0-alpha.
|
|
81
|
-
"@operato/styles": "^2.0.0-alpha.
|
|
82
|
-
"@operato/utils": "^2.0.0-alpha.
|
|
71
|
+
"@operato/app": "^2.0.0-alpha.37",
|
|
72
|
+
"@operato/board": "^2.0.0-alpha.41",
|
|
73
|
+
"@operato/data-grist": "^2.0.0-alpha.35",
|
|
74
|
+
"@operato/font": "^2.0.0-alpha.37",
|
|
75
|
+
"@operato/graphql": "^2.0.0-alpha.28",
|
|
76
|
+
"@operato/i18n": "^2.0.0-alpha.28",
|
|
77
|
+
"@operato/input": "^2.0.0-alpha.35",
|
|
78
|
+
"@operato/markdown": "^2.0.0-alpha.28",
|
|
79
|
+
"@operato/popup": "^2.0.0-alpha.35",
|
|
80
|
+
"@operato/property-editor": "^2.0.0-alpha.37",
|
|
81
|
+
"@operato/styles": "^2.0.0-alpha.28",
|
|
82
|
+
"@operato/utils": "^2.0.0-alpha.35",
|
|
83
83
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
|
84
84
|
"@types/file-saver": "^2.0.4",
|
|
85
85
|
"@types/sortablejs": "^1.10.7",
|
|
@@ -90,28 +90,28 @@
|
|
|
90
90
|
"sortablejs": "^1.14.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@custom-elements-manifest/analyzer": "^0.
|
|
93
|
+
"@custom-elements-manifest/analyzer": "^0.9.2",
|
|
94
94
|
"@hatiolab/prettier-config": "^1.0.0",
|
|
95
95
|
"@hatiolab/things-scene": "^3.2.0",
|
|
96
96
|
"@material/mwc-fab": "^0.27.0",
|
|
97
97
|
"@material/mwc-icon": "^0.27.0",
|
|
98
|
-
"@open-wc/eslint-config": "^
|
|
98
|
+
"@open-wc/eslint-config": "^12.0.3",
|
|
99
99
|
"@open-wc/testing": "^3.1.6",
|
|
100
100
|
"@rollup/plugin-image": "^2.1.1",
|
|
101
101
|
"@rollup/plugin-json": "^4.1.0",
|
|
102
102
|
"@types/lodash-es": "^4.17.6",
|
|
103
103
|
"@types/w3c-web-usb": "^1.0.5",
|
|
104
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
105
|
-
"@typescript-eslint/parser": "^
|
|
104
|
+
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
105
|
+
"@typescript-eslint/parser": "^7.0.1",
|
|
106
106
|
"@web/dev-server": "^0.3.0",
|
|
107
|
-
"@web/dev-server-storybook": "^0.
|
|
108
|
-
"@web/test-runner": "^0.
|
|
107
|
+
"@web/dev-server-storybook": "^2.0.1",
|
|
108
|
+
"@web/test-runner": "^0.18.0",
|
|
109
109
|
"concurrently": "^8.0.1",
|
|
110
110
|
"eslint": "^8.39.0",
|
|
111
|
-
"eslint-config-prettier": "^
|
|
111
|
+
"eslint-config-prettier": "^9.1.0",
|
|
112
112
|
"husky": "^7.0.2",
|
|
113
|
-
"lint-staged": "^
|
|
114
|
-
"prettier": "^2.
|
|
113
|
+
"lint-staged": "^15.2.2",
|
|
114
|
+
"prettier": "^3.2.5",
|
|
115
115
|
"tslib": "^2.3.1",
|
|
116
116
|
"typescript": "^5.0.4"
|
|
117
117
|
},
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"prettier --write"
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "8c4f80ccce451e015d7c17cbc19393eebbae1300"
|
|
132
132
|
}
|
|
@@ -4,6 +4,7 @@ import { property, query, state } from 'lit/decorators.js'
|
|
|
4
4
|
import { Scene } from '@hatiolab/things-scene'
|
|
5
5
|
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
6
6
|
import { ScrollbarStyles } from '@operato/styles'
|
|
7
|
+
import { i18next } from '@operato/i18n'
|
|
7
8
|
|
|
8
9
|
import { Pallet, PalletItem } from '../../types'
|
|
9
10
|
import { ComponentDetail } from './component-detail'
|
|
@@ -116,13 +117,15 @@ export class ComponentMenu extends ScopedElementsMixin(LitElement) {
|
|
|
116
117
|
<h2 @click=${(e: MouseEvent) => e.stopPropagation()}>${this.group} list</h2>
|
|
117
118
|
|
|
118
119
|
<div templates @mouseover=${(e: MouseEvent) => this.onHoverComponent(e)}>
|
|
119
|
-
${(this.templates || []).map(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
${(this.templates || []).map(template => {
|
|
121
|
+
const { type } = template
|
|
122
|
+
|
|
123
|
+
return html`
|
|
124
|
+
<div @click=${this.onClickTemplate} data-type=${type} template>
|
|
125
|
+
<img src=${String(this.templateIcon(template))} />${i18next.t(`component.${type}`)}
|
|
123
126
|
</div>
|
|
124
127
|
`
|
|
125
|
-
)}
|
|
128
|
+
})}
|
|
126
129
|
</div>
|
|
127
130
|
|
|
128
131
|
<process-component-detail
|
|
@@ -279,6 +279,17 @@ export class PropertyShapes extends AbstractProperty {
|
|
|
279
279
|
<label for="checkbox-textwrap"> <ox-i18n msgid="label.text-wrap">Text Wrap</ox-i18n> </label>
|
|
280
280
|
</div>
|
|
281
281
|
|
|
282
|
+
${!value.textWrap
|
|
283
|
+
? html` <label for="checkbox-textOverflow">
|
|
284
|
+
<ox-i18n msgid="label.text-overflow">Text Overflow</ox-i18n>
|
|
285
|
+
</label>
|
|
286
|
+
<select value-key="textOverflow" .value=${value.textOverflow || ''}>
|
|
287
|
+
<option value="" selected>none</option>
|
|
288
|
+
<option value="ellipsis">ellipsis</option>
|
|
289
|
+
<option value="clip">clip</option>
|
|
290
|
+
</select>`
|
|
291
|
+
: ''}
|
|
292
|
+
|
|
282
293
|
<label> <ox-i18n msgid="label.padding">padding</ox-i18n> </label>
|
|
283
294
|
<table class="box-padding">
|
|
284
295
|
<tr>
|
|
@@ -10,6 +10,8 @@ import { property } from 'lit/decorators.js'
|
|
|
10
10
|
import { Component, Scene } from '@hatiolab/things-scene'
|
|
11
11
|
import { ScopedElementsMixin } from '@open-wc/scoped-elements'
|
|
12
12
|
|
|
13
|
+
import { i18next } from '@operato/i18n'
|
|
14
|
+
|
|
13
15
|
import { PropertySharedStyle } from '../property-shared-style'
|
|
14
16
|
import { SpecificPropertiesBuilder } from './specific-properties-builder.js'
|
|
15
17
|
|
|
@@ -58,7 +60,9 @@ export class PropertySpecific extends ScopedElementsMixin(LitElement) {
|
|
|
58
60
|
const value = this.value || {}
|
|
59
61
|
|
|
60
62
|
return html`
|
|
61
|
-
<label
|
|
63
|
+
<label
|
|
64
|
+
>${i18next.t(`component.${value.type}`)}<ox-help-icon .topic=${selected?.nature?.help}></ox-help-icon
|
|
65
|
+
></label>
|
|
62
66
|
|
|
63
67
|
<property-specific-properties-builder .value=${value} .props=${this.props} .propertyEditor=${this.propertyEditor}>
|
|
64
68
|
</property-specific-properties-builder>
|
package/src/ox-process-list.ts
CHANGED
|
@@ -416,17 +416,13 @@ class ProcessList extends LitElement {
|
|
|
416
416
|
description,
|
|
417
417
|
groupId,
|
|
418
418
|
model: model || {
|
|
419
|
-
width:
|
|
420
|
-
height:
|
|
419
|
+
width: 1600,
|
|
420
|
+
height: 1200
|
|
421
421
|
},
|
|
422
422
|
thumbnail
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
// this.popup && this.popup.close()
|
|
428
|
-
|
|
429
|
-
// await sleep(100)
|
|
425
|
+
await createProcess(process)
|
|
430
426
|
|
|
431
427
|
this.notify('info', 'new process created')
|
|
432
428
|
} catch (ex: Error | any) {
|