@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.
Files changed (39) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/src/modeller/component-toolbar/component-menu.d.ts +1 -1
  3. package/dist/src/modeller/component-toolbar/component-menu.js +1 -1
  4. package/dist/src/modeller/component-toolbar/component-menu.js.map +1 -1
  5. package/dist/src/modeller/component-toolbar/component-toolbar.d.ts +1 -1
  6. package/dist/src/modeller/component-toolbar/component-toolbar.js +1 -1
  7. package/dist/src/modeller/component-toolbar/component-toolbar.js.map +1 -1
  8. package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +1 -1
  9. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +1 -1
  10. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
  11. package/dist/src/modeller/property-sidebar/effects/effects.d.ts +1 -1
  12. package/dist/src/modeller/property-sidebar/effects/effects.js +1 -1
  13. package/dist/src/modeller/property-sidebar/effects/effects.js.map +1 -1
  14. package/dist/src/modeller/property-sidebar/effects/property-event.d.ts +1 -1
  15. package/dist/src/modeller/property-sidebar/effects/property-event.js +1 -1
  16. package/dist/src/modeller/property-sidebar/effects/property-event.js.map +1 -1
  17. package/dist/src/modeller/property-sidebar/property-sidebar.d.ts +1 -1
  18. package/dist/src/modeller/property-sidebar/property-sidebar.js +1 -1
  19. package/dist/src/modeller/property-sidebar/property-sidebar.js.map +1 -1
  20. package/dist/src/modeller/property-sidebar/specifics/specifics.d.ts +1 -1
  21. package/dist/src/modeller/property-sidebar/specifics/specifics.js +1 -1
  22. package/dist/src/modeller/property-sidebar/specifics/specifics.js.map +1 -1
  23. package/dist/src/ox-process-modeller.d.ts +1 -1
  24. package/dist/src/ox-process-modeller.js +1 -1
  25. package/dist/src/ox-process-modeller.js.map +1 -1
  26. package/dist/src/selector/process-creation-popup.d.ts +4 -5
  27. package/dist/src/selector/process-creation-popup.js +22 -16
  28. package/dist/src/selector/process-creation-popup.js.map +1 -1
  29. package/dist/tsconfig.tsbuildinfo +1 -1
  30. package/package.json +4 -4
  31. package/src/modeller/component-toolbar/component-menu.ts +1 -1
  32. package/src/modeller/component-toolbar/component-toolbar.ts +9 -6
  33. package/src/modeller/property-sidebar/data-binding/data-binding.ts +1 -1
  34. package/src/modeller/property-sidebar/effects/effects.ts +1 -1
  35. package/src/modeller/property-sidebar/effects/property-event.ts +1 -1
  36. package/src/modeller/property-sidebar/property-sidebar.ts +1 -1
  37. package/src/modeller/property-sidebar/specifics/specifics.ts +1 -1
  38. package/src/ox-process-modeller.ts +1 -1
  39. 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.71",
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": "^2.1.3",
70
+ "@open-wc/scoped-elements": "^3.0.5",
71
71
  "@operato/app": "^2.0.0-alpha.71",
72
- "@operato/board": "^2.0.0-alpha.71",
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": "d3111bf8a6d3b17cc22c104e8aee5fb195683f1e"
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((sum, group: ComponentGroup) => {
88
- sum[group.name] =
89
- 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(group.icon.replace(/{{strokeColor}}/g, color))
90
- return sum
91
- }, {} as { [name: string]: string })
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/mwc-textfield'
2
- import '@material/mwc-textarea'
3
- import '@material/mwc-select'
4
- import '@material/mwc-list/mwc-list-item'
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] > mwc-textarea {
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
- <mwc-textfield label=${String(i18next.t('label.name'))} name="name" required field-name></mwc-textfield>
79
- <mwc-textarea
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
- ></mwc-textarea>
84
- <mwc-select
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
- <mwc-list-item value=${group.id} ?selected=${this.defaultGroup == group.id}
92
- >${group.name}</mwc-list-item
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
- </mwc-select>
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-elevated-button @click=${(e: MouseEvent) => this.onClickSubmit()}
106
- >${String(i18next.t('button.create'))}</md-elevated-button
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('mwc-textfield') as any)?.focus()
119
+ ;(this.renderRoot.querySelector('md-filled-text-field') as any)?.focus()
114
120
  }, 100)
115
121
  }
116
122