@operato/process 2.0.0-alpha.7 → 2.0.0-alpha.71

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 (69) hide show
  1. package/CHANGELOG.md +436 -0
  2. package/demo/index-modeller.html +13 -2
  3. package/demo/index-viewer.html +13 -2
  4. package/demo/index.html +13 -2
  5. package/dist/src/modeller/component-toolbar/component-detail.d.ts +1 -1
  6. package/dist/src/modeller/component-toolbar/component-menu.d.ts +1 -1
  7. package/dist/src/modeller/component-toolbar/component-menu.js +9 -4
  8. package/dist/src/modeller/component-toolbar/component-menu.js.map +1 -1
  9. package/dist/src/modeller/component-toolbar/component-toolbar.d.ts +1 -1
  10. package/dist/src/modeller/edit-toolbar.d.ts +1 -1
  11. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.d.ts +1 -1
  12. package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +2 -2
  13. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +19 -19
  14. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
  15. package/dist/src/modeller/property-sidebar/effects/effects.d.ts +1 -1
  16. package/dist/src/modeller/property-sidebar/effects/property-event-hover.d.ts +1 -1
  17. package/dist/src/modeller/property-sidebar/effects/property-event-tap.d.ts +1 -1
  18. package/dist/src/modeller/property-sidebar/effects/property-event.d.ts +1 -1
  19. package/dist/src/modeller/property-sidebar/effects/property-shadow.d.ts +1 -1
  20. package/dist/src/modeller/property-sidebar/inspector/inspector.js +1 -1
  21. package/dist/src/modeller/property-sidebar/inspector/inspector.js.map +1 -1
  22. package/dist/src/modeller/property-sidebar/property-sidebar.d.ts +2 -2
  23. package/dist/src/modeller/property-sidebar/property-sidebar.js +8 -8
  24. package/dist/src/modeller/property-sidebar/property-sidebar.js.map +1 -1
  25. package/dist/src/modeller/property-sidebar/shapes/shapes.d.ts +2 -2
  26. package/dist/src/modeller/property-sidebar/shapes/shapes.js +15 -4
  27. package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
  28. package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.d.ts +1 -1
  29. package/dist/src/modeller/property-sidebar/specifics/specifics.d.ts +1 -1
  30. package/dist/src/modeller/property-sidebar/specifics/specifics.js +4 -1
  31. package/dist/src/modeller/property-sidebar/specifics/specifics.js.map +1 -1
  32. package/dist/src/modeller/property-sidebar/styles/styles.d.ts +1 -1
  33. package/dist/src/ox-editor-process-selector.d.ts +2 -2
  34. package/dist/src/ox-editor-process-selector.js +3 -3
  35. package/dist/src/ox-editor-process-selector.js.map +1 -1
  36. package/dist/src/ox-process-list.js +16 -16
  37. package/dist/src/ox-process-list.js.map +1 -1
  38. package/dist/src/ox-process-modeller.d.ts +4 -3
  39. package/dist/src/ox-process-modeller.js +6 -3
  40. package/dist/src/ox-process-modeller.js.map +1 -1
  41. package/dist/src/ox-process-template-list.d.ts +1 -1
  42. package/dist/src/ox-process-viewer.d.ts +3 -3
  43. package/dist/src/ox-process-viewer.js +16 -15
  44. package/dist/src/ox-process-viewer.js.map +1 -1
  45. package/dist/src/selector/ox-process-creation-card.d.ts +2 -2
  46. package/dist/src/selector/ox-process-creation-card.js +4 -5
  47. package/dist/src/selector/ox-process-creation-card.js.map +1 -1
  48. package/dist/src/selector/ox-process-selector.d.ts +1 -1
  49. package/dist/src/selector/process-creation-popup.d.ts +2 -2
  50. package/dist/src/selector/process-creation-popup.js +4 -6
  51. package/dist/src/selector/process-creation-popup.js.map +1 -1
  52. package/dist/src/selector/process-thumbnail-card.d.ts +1 -1
  53. package/dist/src/selector/process-thumbnail-card.js +2 -2
  54. package/dist/src/selector/process-thumbnail-card.js.map +1 -1
  55. package/dist/tsconfig.tsbuildinfo +1 -1
  56. package/package.json +25 -26
  57. package/src/modeller/component-toolbar/component-menu.ts +9 -5
  58. package/src/modeller/property-sidebar/data-binding/data-binding.ts +19 -19
  59. package/src/modeller/property-sidebar/inspector/inspector.ts +1 -1
  60. package/src/modeller/property-sidebar/property-sidebar.ts +8 -8
  61. package/src/modeller/property-sidebar/shapes/shapes.ts +15 -4
  62. package/src/modeller/property-sidebar/specifics/specifics.ts +5 -1
  63. package/src/ox-editor-process-selector.ts +3 -3
  64. package/src/ox-process-list.ts +16 -19
  65. package/src/ox-process-modeller.ts +7 -3
  66. package/src/ox-process-viewer.ts +16 -15
  67. package/src/selector/ox-process-creation-card.ts +4 -5
  68. package/src/selector/process-creation-popup.ts +4 -6
  69. package/src/selector/process-thumbnail-card.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/process",
3
- "version": "2.0.0-alpha.7",
3
+ "version": "2.0.0-alpha.71",
4
4
  "description": "Webcomponent for business process modeling following open-wc recommendations",
5
5
  "author": "heartyoh",
6
6
  "main": "dist/src/index.js",
@@ -68,50 +68,49 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@open-wc/scoped-elements": "^2.1.3",
71
- "@operato/app": "^2.0.0-alpha.7",
72
- "@operato/board": "^2.0.0-alpha.7",
73
- "@operato/data-grist": "^2.0.0-alpha.7",
74
- "@operato/font": "^2.0.0-alpha.7",
75
- "@operato/graphql": "^2.0.0-alpha.0",
76
- "@operato/i18n": "^2.0.0-alpha.0",
77
- "@operato/input": "^2.0.0-alpha.4",
78
- "@operato/markdown": "^2.0.0-alpha.0",
79
- "@operato/popup": "^2.0.0-alpha.4",
80
- "@operato/property-editor": "^2.0.0-alpha.7",
81
- "@operato/styles": "^2.0.0-alpha.0",
82
- "@operato/utils": "^2.0.0-alpha.0",
71
+ "@operato/app": "^2.0.0-alpha.71",
72
+ "@operato/board": "^2.0.0-alpha.71",
73
+ "@operato/data-grist": "^2.0.0-alpha.68",
74
+ "@operato/font": "^2.0.0-alpha.71",
75
+ "@operato/graphql": "^2.0.0-alpha.57",
76
+ "@operato/i18n": "^2.0.0-alpha.59",
77
+ "@operato/input": "^2.0.0-alpha.68",
78
+ "@operato/markdown": "^2.0.0-alpha.68",
79
+ "@operato/popup": "^2.0.0-alpha.68",
80
+ "@operato/property-editor": "^2.0.0-alpha.71",
81
+ "@operato/styles": "^2.0.0-alpha.68",
82
+ "@operato/utils": "^2.0.0-alpha.68",
83
83
  "@polymer/paper-dropdown-menu": "^3.2.0",
84
84
  "@types/file-saver": "^2.0.4",
85
85
  "@types/sortablejs": "^1.10.7",
86
86
  "dexie": "^3.2.2",
87
87
  "file-saver": "^2.0.5",
88
- "lit": "^2.5.0",
88
+ "lit": "^3.1.2",
89
89
  "lodash-es": "^4.17.21",
90
90
  "sortablejs": "^1.14.0"
91
91
  },
92
92
  "devDependencies": {
93
- "@custom-elements-manifest/analyzer": "^0.8.1",
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
- "@material/mwc-fab": "^0.27.0",
97
- "@material/mwc-icon": "^0.27.0",
98
- "@open-wc/eslint-config": "^10.0.0",
96
+ "@material/web": "^1.4.0",
97
+ "@open-wc/eslint-config": "^12.0.3",
99
98
  "@open-wc/testing": "^3.1.6",
100
99
  "@rollup/plugin-image": "^2.1.1",
101
100
  "@rollup/plugin-json": "^4.1.0",
102
101
  "@types/lodash-es": "^4.17.6",
103
102
  "@types/w3c-web-usb": "^1.0.5",
104
- "@typescript-eslint/eslint-plugin": "^5.59.1",
105
- "@typescript-eslint/parser": "^5.59.1",
103
+ "@typescript-eslint/eslint-plugin": "^7.0.1",
104
+ "@typescript-eslint/parser": "^7.0.1",
106
105
  "@web/dev-server": "^0.3.0",
107
- "@web/dev-server-storybook": "^0.7.4",
108
- "@web/test-runner": "^0.17.0",
106
+ "@web/dev-server-storybook": "^2.0.1",
107
+ "@web/test-runner": "^0.18.0",
109
108
  "concurrently": "^8.0.1",
110
109
  "eslint": "^8.39.0",
111
- "eslint-config-prettier": "^8.3.0",
110
+ "eslint-config-prettier": "^9.1.0",
112
111
  "husky": "^7.0.2",
113
- "lint-staged": "^13.2.2",
114
- "prettier": "^2.4.1",
112
+ "lint-staged": "^15.2.2",
113
+ "prettier": "^3.2.5",
115
114
  "tslib": "^2.3.1",
116
115
  "typescript": "^5.0.4"
117
116
  },
@@ -128,5 +127,5 @@
128
127
  "prettier --write"
129
128
  ]
130
129
  },
131
- "gitHead": "2507b451915b745adb249bf59eef586d7683531a"
130
+ "gitHead": "d3111bf8a6d3b17cc22c104e8aee5fb195683f1e"
132
131
  }
@@ -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'
@@ -65,6 +66,7 @@ export class ComponentMenu extends ScopedElementsMixin(LitElement) {
65
66
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
66
67
  font-size: 11px;
67
68
  color: var(--component-menu-item-color);
69
+ text-transform: capitalize;
68
70
  }
69
71
 
70
72
  [template]:hover,
@@ -116,13 +118,15 @@ export class ComponentMenu extends ScopedElementsMixin(LitElement) {
116
118
  <h2 @click=${(e: MouseEvent) => e.stopPropagation()}>${this.group} list</h2>
117
119
 
118
120
  <div templates @mouseover=${(e: MouseEvent) => this.onHoverComponent(e)}>
119
- ${(this.templates || []).map(
120
- template => html`
121
- <div @click=${this.onClickTemplate} data-type=${template.type} template>
122
- <img src=${String(this.templateIcon(template))} />${template.type}
121
+ ${(this.templates || []).map(template => {
122
+ const { type } = template
123
+
124
+ return html`
125
+ <div @click=${this.onClickTemplate} data-type=${type} template>
126
+ <img src=${String(this.templateIcon(template))} />${i18next.t(`component.${type}`)}
123
127
  </div>
124
128
  `
125
- )}
129
+ })}
126
130
  </div>
127
131
 
128
132
  <process-component-detail
@@ -2,7 +2,7 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@material/mwc-icon'
5
+ import '@material/web/icon/icon.js'
6
6
  import '@operato/help/ox-title-with-help.js'
7
7
  import '@operato/input/ox-buttons-radio.js'
8
8
  import '@operato/input/ox-input-data.js'
@@ -54,7 +54,7 @@ export class PropertyDataBinding extends ScopedElementsMixin(AbstractProperty) {
54
54
  justify-content: space-between;
55
55
  }
56
56
 
57
- #tab-header > mwc-icon {
57
+ #tab-header > md-icon {
58
58
  padding: 0;
59
59
  margin: 0;
60
60
  width: 25px;
@@ -68,7 +68,7 @@ export class PropertyDataBinding extends ScopedElementsMixin(AbstractProperty) {
68
68
  width: 100%;
69
69
  }
70
70
 
71
- fieldset[collapsable] legend mwc-icon {
71
+ fieldset[collapsable] legend md-icon {
72
72
  float: right;
73
73
  font-size: medium;
74
74
  margin: 0;
@@ -129,20 +129,20 @@ export class PropertyDataBinding extends ScopedElementsMixin(AbstractProperty) {
129
129
  padding: 7px 5px 2px 5px;
130
130
  }
131
131
 
132
- mwc-icon {
132
+ md-icon {
133
133
  margin-left: 5px;
134
134
  color: var(--secondary-color);
135
135
  opacity: 0.8;
136
136
  cursor: pointer;
137
- --mdc-icon-size: 18px;
137
+ --md-icon-size: 18px;
138
138
  }
139
139
 
140
- mwc-icon:hover {
140
+ md-icon:hover {
141
141
  color: var(--primary-color);
142
142
  opacity: 1;
143
143
  }
144
144
 
145
- mwc-icon[disabled] {
145
+ md-icon[disabled] {
146
146
  color: rgba(0, 0, 0, 0.1);
147
147
  }
148
148
 
@@ -158,7 +158,7 @@ export class PropertyDataBinding extends ScopedElementsMixin(AbstractProperty) {
158
158
  font-size: 15px;
159
159
  font-weight: 300;
160
160
  -webkit-appearance: none;
161
- }
161
+ };
162
162
  }
163
163
  `
164
164
  ]
@@ -251,11 +251,11 @@ export class PropertyDataBinding extends ScopedElementsMixin(AbstractProperty) {
251
251
  <ox-title-with-help topic="board-modeller/initial-data" msgid="label.initial-data"
252
252
  >initial value</ox-title-with-help
253
253
  >
254
- <mwc-icon
254
+ <md-icon
255
255
  @click=${() => {
256
256
  this._dataExpanded = !this._dataExpanded
257
257
  }}
258
- >${this._dataExpanded ? 'expand_less' : 'expand_more'}</mwc-icon
258
+ >${this._dataExpanded ? 'expand_less' : 'expand_more'}</md-icon
259
259
  >
260
260
  </legend>
261
261
  <ox-input-data value-key="data" .value=${value.data}> </ox-input-data>
@@ -269,13 +269,13 @@ export class PropertyDataBinding extends ScopedElementsMixin(AbstractProperty) {
269
269
  </legend>
270
270
 
271
271
  <div id="tab-header">
272
- <mwc-icon
272
+ <md-icon
273
273
  id="tab-nav-left-button"
274
274
  @click=${() => {
275
275
  this._onTabScrollNavLeft()
276
276
  }}
277
277
  disabled
278
- >chevron_left</mwc-icon
278
+ >chevron_left</md-icon
279
279
  >
280
280
 
281
281
  <ox-buttons-radio
@@ -290,23 +290,23 @@ export class PropertyDataBinding extends ScopedElementsMixin(AbstractProperty) {
290
290
  <div data-value=${this.mappings.length} data-mapping disabled>${this.mappings.length + 1}</div>
291
291
  </ox-buttons-radio>
292
292
 
293
- <mwc-icon
293
+ <md-icon
294
294
  id="tab-nav-right-button"
295
295
  @click=${(e: Event) => {
296
296
  this._onTabScrollNavRight()
297
297
  }}
298
298
  disabled
299
- >chevron_right</mwc-icon
299
+ >chevron_right</md-icon
300
300
  >
301
301
  </div>
302
302
 
303
303
  <div binding>
304
- <mwc-icon style="font-size:19px" @click=${() => this._clearDataBindingMapper()} title="delete current tab"
305
- >delete_forever</mwc-icon
304
+ <md-icon style="font-size:19px" @click=${() => this._clearDataBindingMapper()} title="delete current tab"
305
+ >delete_forever</md-icon
306
306
  >
307
- <mwc-icon @click=${() => this._pasteDataBindingMapper()} title="replace current tab">content_paste</mwc-icon>
308
- <mwc-icon style="font-size:17px" @click=${() => this._copyDataBindingMapper()} title="copy current tab"
309
- >content_copy</mwc-icon
307
+ <md-icon @click=${() => this._pasteDataBindingMapper()} title="replace current tab">content_paste</md-icon>
308
+ <md-icon style="font-size:17px" @click=${() => this._copyDataBindingMapper()} title="copy current tab"
309
+ >content_copy</md-icon
310
310
  >
311
311
  </div>
312
312
 
@@ -391,7 +391,7 @@ export class SceneInspector extends LitElement {
391
391
  <span>
392
392
  ${depth > 0
393
393
  ? html`
394
- <mwc-icon class="eye">${component.get('hidden') ? 'visibility_off' : 'visibility'}</mwc-icon>
394
+ <md-icon class="eye">${component.get('hidden') ? 'visibility_off' : 'visibility'}</md-icon>
395
395
  <pre>${' '.repeat(depth)}</pre>
396
396
  `
397
397
  : html` <pre>${' '.repeat(depth + 2)}</pre> `}
@@ -2,7 +2,7 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@material/mwc-icon'
5
+ import '@material/web/icon/icon.js'
6
6
 
7
7
  import { css, html, LitElement, PropertyValues } from 'lit'
8
8
  import { property } from 'lit/decorators.js'
@@ -41,7 +41,7 @@ export class PropertySidebar extends ScopedElementsMixin(LitElement) {
41
41
  opacity: 0.85;
42
42
  }
43
43
 
44
- [tab] mwc-icon {
44
+ [tab] md-icon {
45
45
  flex: 1;
46
46
 
47
47
  display: flex;
@@ -116,12 +116,12 @@ export class PropertySidebar extends ScopedElementsMixin(LitElement) {
116
116
  this.tabName = (e.target as HTMLElement).getAttribute('name')
117
117
  }}
118
118
  >
119
- <mwc-icon name="specific" ?selected=${tabName == 'specific'}>tune</mwc-icon>
120
- <mwc-icon name="shape" ?selected=${tabName == 'shape'}>format_shapes</mwc-icon>
121
- <mwc-icon name="style" ?selected=${tabName == 'style'}>palette</mwc-icon>
122
- <mwc-icon name="effect" ?selected=${tabName == 'effect'}>movie_filter</mwc-icon>
123
- <mwc-icon name="data-binding" ?selected=${tabName == 'data-binding'}>share</mwc-icon>
124
- <mwc-icon name="inspector" ?selected=${tabName == 'inspector'}>visibility</mwc-icon>
119
+ <md-icon name="specific" ?selected=${tabName == 'specific'}>tune</md-icon>
120
+ <md-icon name="shape" ?selected=${tabName == 'shape'}>format_shapes</md-icon>
121
+ <md-icon name="style" ?selected=${tabName == 'style'}>palette</md-icon>
122
+ <md-icon name="effect" ?selected=${tabName == 'effect'}>movie_filter</md-icon>
123
+ <md-icon name="data-binding" ?selected=${tabName == 'data-binding'}>share</md-icon>
124
+ <md-icon name="inspector" ?selected=${tabName == 'inspector'}>visibility</md-icon>
125
125
  </div>
126
126
 
127
127
  <div content>
@@ -4,7 +4,7 @@
4
4
 
5
5
  import '@operato/input/ox-input-angle.js'
6
6
  import '@operato/input/ox-buttons-radio.js'
7
- import '@material/mwc-icon'
7
+ import '@material/web/icon/icon.js'
8
8
  import '@operato/i18n/ox-i18n.js'
9
9
  import '@operato/help/ox-title-with-help.js'
10
10
 
@@ -28,7 +28,7 @@ export class PropertyShapes extends AbstractProperty {
28
28
  width: 100%;
29
29
  }
30
30
 
31
- fieldset[collapsable] legend mwc-icon {
31
+ fieldset[collapsable] legend md-icon {
32
32
  float: right;
33
33
  font-size: medium;
34
34
  margin: 0;
@@ -223,11 +223,11 @@ export class PropertyShapes extends AbstractProperty {
223
223
  <fieldset class="icon-label unit ratio" collapsable ?collapsed=${!this._3dExpanded}>
224
224
  <legend>
225
225
  <ox-title-with-help topic="process-modeller/shapes/3dish" msgid="label.3dish">3D</ox-title-with-help>
226
- <mwc-icon
226
+ <md-icon
227
227
  @click=${(e: Event) => {
228
228
  this._3dExpanded = !this._3dExpanded
229
229
  }}
230
- >${this._3dExpanded ? 'expand_less' : 'expand_more'}</mwc-icon
230
+ >${this._3dExpanded ? 'expand_less' : 'expand_more'}</md-icon
231
231
  >
232
232
  </legend>
233
233
 
@@ -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>${value.type}<ox-help-icon .topic=${selected?.nature?.help}></ox-help-icon></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>
@@ -2,7 +2,7 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@material/mwc-icon'
5
+ import '@material/web/icon/icon.js'
6
6
  import './selector/ox-process-selector'
7
7
 
8
8
  import { css, html, LitElement } from 'lit'
@@ -28,7 +28,7 @@ export class ProcessSelector extends LitElement {
28
28
  border: 1px solid rgba(0, 0, 0, 0.2);
29
29
  }
30
30
 
31
- mwc-icon {
31
+ md-icon {
32
32
  position: absolute;
33
33
  top: 0;
34
34
  right: 0;
@@ -46,7 +46,7 @@ export class ProcessSelector extends LitElement {
46
46
  return html`
47
47
  <input id="text" type="text" .value=${this.value || ''} @change=${(e: Event) => this._onInputChanged(e)} />
48
48
 
49
- <mwc-icon @click=${(e: MouseEvent) => this.openSelector()}>dashboard</mwc-icon>
49
+ <md-icon @click=${(e: MouseEvent) => this.openSelector()}>dashboard</md-icon>
50
50
  `
51
51
  }
52
52
 
@@ -44,7 +44,7 @@ class ProcessList extends LitElement {
44
44
 
45
45
  #filters {
46
46
  flex: 1;
47
- --mdc-icon-size: 20px;
47
+ --md-icon-size: 20px;
48
48
  }
49
49
  #mode {
50
50
  width: 100px;
@@ -62,14 +62,14 @@ class ProcessList extends LitElement {
62
62
  cursor: pointer;
63
63
  }
64
64
 
65
- #modes > mwc-icon[active] {
65
+ #modes > md-icon[active] {
66
66
  border-radius: 9px;
67
67
  background-color: rgba(var(--primary-color-rgb), 0.05);
68
68
  opacity: 1;
69
69
  color: var(--secondary-text-color);
70
70
  cursor: default;
71
71
  }
72
- #modes > mwc-icon:hover {
72
+ #modes > md-icon:hover {
73
73
  opacity: 1;
74
74
  color: var(--secondary-text-color);
75
75
  }
@@ -87,7 +87,7 @@ class ProcessList extends LitElement {
87
87
  background-color: var(--focus-background-color);
88
88
  box-shadow: var(--box-shadow);
89
89
  }
90
- #add button mwc-icon {
90
+ #add button md-icon {
91
91
  font-size: 2em;
92
92
  color: var(--theme-white-color);
93
93
  }
@@ -105,7 +105,7 @@ class ProcessList extends LitElement {
105
105
  #filters [type='text']:focus {
106
106
  outline: none;
107
107
  }
108
- #filters mwc-icon {
108
+ #filters md-icon {
109
109
  position: absolute;
110
110
  top: 3px;
111
111
  color: var(--secondary-color);
@@ -152,7 +152,7 @@ class ProcessList extends LitElement {
152
152
  <ox-grist .config=${this.config} .mode=${mode} auto-fetch .fetchHandler=${this.fetchHandler.bind(this)}>
153
153
  <div slot="headroom" id="headroom">
154
154
  <div id="filters">
155
- <mwc-icon>search</mwc-icon>
155
+ <md-icon>search</md-icon>
156
156
  <input type="text" />
157
157
 
158
158
  <select
@@ -163,22 +163,23 @@ class ProcessList extends LitElement {
163
163
  >
164
164
  <option value="">*</option>
165
165
  ${this.groups.map(
166
- group =>
167
- html` <option value=${group.id} ?selected=${group.id === this.groupId}>${group.description}</option> `
166
+ group => html`
167
+ <option value=${group.id} ?selected=${group.id === this.groupId}>${group.description}</option>
168
+ `
168
169
  )}
169
170
  </select>
170
171
  </div>
171
172
 
172
173
  <div id="modes">
173
- <mwc-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</mwc-icon>
174
- <mwc-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</mwc-icon>
175
- <mwc-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</mwc-icon>
174
+ <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>
175
+ <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>
176
+ <md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
176
177
  </div>
177
178
 
178
179
  ${this.creatable
179
180
  ? html`
180
181
  <div id="add">
181
- <button><mwc-icon @click=${() => this.onCreateProcess()}>add</mwc-icon></button>
182
+ <button><md-icon @click=${() => this.onCreateProcess()}>add</md-icon></button>
182
183
  </div>
183
184
  `
184
185
  : undefined}
@@ -416,17 +417,13 @@ class ProcessList extends LitElement {
416
417
  description,
417
418
  groupId,
418
419
  model: model || {
419
- width: 1200,
420
- height: 800
420
+ width: 1600,
421
+ height: 1200
421
422
  },
422
423
  thumbnail
423
424
  }
424
425
 
425
- const { createProcess: created } = await createProcess(process)
426
-
427
- // this.popup && this.popup.close()
428
-
429
- // await sleep(100)
426
+ await createProcess(process)
430
427
 
431
428
  this.notify('info', 'new process created')
432
429
  } catch (ex: Error | any) {
@@ -1,4 +1,6 @@
1
- import '@material/mwc-fab'
1
+ import '@material/web/icon/icon.js'
2
+ import '@material/web/fab/fab.js'
3
+
2
4
  import '@operato/board/ox-scene-handler.js'
3
5
  import '@operato/board/ox-scene-layer.js'
4
6
  import '@operato/board/ox-scene-property.js'
@@ -84,7 +86,7 @@ export class OxProcessModeller extends ScopedElementsMixin(LitElement) {
84
86
  height: 100%;
85
87
  }
86
88
 
87
- mwc-fab {
89
+ md-fab {
88
90
  position: absolute;
89
91
  right: 15px;
90
92
  bottom: 15px;
@@ -275,7 +277,9 @@ export class OxProcessModeller extends ScopedElementsMixin(LitElement) {
275
277
  <ox-scene-handler type="move-handler"></ox-scene-handler>
276
278
  </ox-scene-viewer>
277
279
 
278
- <mwc-fab icon="save" @click=${() => this.onTapSave()} title="save"> </mwc-fab>
280
+ <md-fab @click=${() => this.onTapSave()} title="save">
281
+ <md-icon slot="icon">save</md-icon>
282
+ </md-fab>
279
283
  </div>
280
284
 
281
285
  <process-property-sidebar
@@ -1,5 +1,5 @@
1
- import '@material/mwc-fab'
2
- import '@material/mwc-icon'
1
+ import '@material/web/icon/icon.js'
2
+ import '@material/web/fab/fab.js'
3
3
 
4
4
  import { css, html, LitElement, PropertyValues } from 'lit'
5
5
  import { customElement, property, query, state } from 'lit/decorators.js'
@@ -37,7 +37,7 @@ export class OxProcessViewer extends LitElement {
37
37
  }
38
38
 
39
39
  /* navigation buttons */
40
- mwc-icon {
40
+ md-icon {
41
41
  z-index: 10;
42
42
  position: absolute;
43
43
  top: 45%;
@@ -49,14 +49,14 @@ export class OxProcessViewer extends LitElement {
49
49
  color: #fff;
50
50
  user-select: none;
51
51
 
52
- --mdc-icon-size: 3em;
52
+ --md-icon-size: 3em;
53
53
  }
54
54
 
55
- mwc-icon[hidden] {
55
+ md-icon[hidden] {
56
56
  display: none;
57
57
  }
58
58
 
59
- mwc-icon:hover {
59
+ md-icon:hover {
60
60
  background-color: rgba(0, 0, 0, 0.2);
61
61
  border-radius: 50%;
62
62
  }
@@ -80,8 +80,8 @@ export class OxProcessViewer extends LitElement {
80
80
  }
81
81
 
82
82
  @media print {
83
- mwc-fab,
84
- mwc-icon {
83
+ md-fab,
84
+ md-icon {
85
85
  display: none;
86
86
  }
87
87
  }
@@ -115,39 +115,40 @@ export class OxProcessViewer extends LitElement {
115
115
  var fullscreen =
116
116
  !isIOS() && !this.hideFullscreen
117
117
  ? html`
118
- <mwc-fab
118
+ <md-fab
119
119
  id="fullscreen"
120
- .icon=${document.fullscreenElement ? 'fullscreen_exit' : 'fullscreen'}
121
120
  @click=${(e: Event) => this.onTapFullscreen()}
122
121
  @mouseover=${(e: Event) => this.transientShowButtons(true)}
123
122
  @mouseout=${(e: Event) => this.transientShowButtons()}
124
123
  title="fullscreen"
125
- ></mwc-fab>
124
+ >
125
+ <md-icon slot="icon">${document.fullscreenElement ? 'fullscreen_exit' : 'fullscreen'}</md-icon>
126
+ </md-fab>
126
127
  `
127
128
  : html``
128
129
 
129
130
  var prev = !this.hideNavigation
130
131
  ? html`
131
- <mwc-icon
132
+ <md-icon
132
133
  id="prev"
133
134
  @click=${(e: Event) => this.onTapPrev()}
134
135
  @mouseover=${(e: Event) => this.transientShowButtons(true)}
135
136
  @mouseout=${(e: Event) => this.transientShowButtons()}
136
137
  hidden
137
- >keyboard_arrow_left</mwc-icon
138
+ >keyboard_arrow_left</md-icon
138
139
  >
139
140
  `
140
141
  : html``
141
142
 
142
143
  var next = !this.hideNavigation
143
144
  ? html`
144
- <mwc-icon
145
+ <md-icon
145
146
  id="next"
146
147
  @click=${(e: Event) => this.onTapNext()}
147
148
  @mouseover=${(e: Event) => this.transientShowButtons(true)}
148
149
  @mouseout=${(e: Event) => this.transientShowButtons()}
149
150
  hidden
150
- >keyboard_arrow_right</mwc-icon
151
+ >keyboard_arrow_right</md-icon
151
152
  >
152
153
  `
153
154
  : html``
@@ -1,4 +1,4 @@
1
- import '@material/mwc-icon'
1
+ import '@material/web/icon/icon.js'
2
2
  import './process-creation-popup'
3
3
 
4
4
  import { css, html, LitElement } from 'lit'
@@ -30,7 +30,8 @@ export class ProcessCreationCard extends localize(i18next)(LitElement) {
30
30
  text-transform: capitalize;
31
31
  }
32
32
 
33
- mwc-icon {
33
+ md-icon {
34
+ --md-icon-size: 42px;
34
35
  display: block;
35
36
  font-size: 3.5em;
36
37
  color: var(--card-list-create-icon-color);
@@ -46,9 +47,7 @@ export class ProcessCreationCard extends localize(i18next)(LitElement) {
46
47
  private popup: any
47
48
 
48
49
  render() {
49
- return html`<div @click=${(e: Event) => this.onClick()}>
50
- <mwc-icon>add_circle_outline</mwc-icon>create process
51
- </div> `
50
+ return html`<div @click=${(e: Event) => this.onClick()}><md-icon>add_circle_outline</md-icon>create process</div> `
52
51
  }
53
52
 
54
53
  onClick() {