@operato/process 2.0.0-alpha.13 → 2.0.0-alpha.131

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 (77) hide show
  1. package/CHANGELOG.md +813 -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/component-toolbar/component-toolbar.js.map +1 -1
  11. package/dist/src/modeller/edit-toolbar.d.ts +1 -1
  12. package/dist/src/modeller/edit-toolbar.js +1 -1
  13. package/dist/src/modeller/edit-toolbar.js.map +1 -1
  14. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.d.ts +1 -1
  15. package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +2 -2
  16. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +19 -19
  17. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
  18. package/dist/src/modeller/property-sidebar/effects/effects.d.ts +1 -1
  19. package/dist/src/modeller/property-sidebar/effects/property-event-hover.d.ts +1 -1
  20. package/dist/src/modeller/property-sidebar/effects/property-event-tap.d.ts +1 -1
  21. package/dist/src/modeller/property-sidebar/effects/property-event.d.ts +1 -1
  22. package/dist/src/modeller/property-sidebar/effects/property-shadow.d.ts +1 -1
  23. package/dist/src/modeller/property-sidebar/inspector/inspector.js +1 -1
  24. package/dist/src/modeller/property-sidebar/inspector/inspector.js.map +1 -1
  25. package/dist/src/modeller/property-sidebar/property-sidebar.d.ts +2 -2
  26. package/dist/src/modeller/property-sidebar/property-sidebar.js +8 -8
  27. package/dist/src/modeller/property-sidebar/property-sidebar.js.map +1 -1
  28. package/dist/src/modeller/property-sidebar/shapes/shapes.d.ts +2 -2
  29. package/dist/src/modeller/property-sidebar/shapes/shapes.js +15 -4
  30. package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
  31. package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.d.ts +1 -1
  32. package/dist/src/modeller/property-sidebar/specifics/specifics.d.ts +1 -1
  33. package/dist/src/modeller/property-sidebar/specifics/specifics.js +4 -1
  34. package/dist/src/modeller/property-sidebar/specifics/specifics.js.map +1 -1
  35. package/dist/src/modeller/property-sidebar/styles/styles.d.ts +1 -1
  36. package/dist/src/ox-editor-process-selector.d.ts +2 -2
  37. package/dist/src/ox-editor-process-selector.js +3 -3
  38. package/dist/src/ox-editor-process-selector.js.map +1 -1
  39. package/dist/src/ox-process-list.js +22 -14
  40. package/dist/src/ox-process-list.js.map +1 -1
  41. package/dist/src/ox-process-modeller.d.ts +4 -3
  42. package/dist/src/ox-process-modeller.js +6 -3
  43. package/dist/src/ox-process-modeller.js.map +1 -1
  44. package/dist/src/ox-process-template-list.d.ts +1 -1
  45. package/dist/src/ox-process-viewer.d.ts +3 -3
  46. package/dist/src/ox-process-viewer.js +17 -15
  47. package/dist/src/ox-process-viewer.js.map +1 -1
  48. package/dist/src/selector/ox-process-creation-card.d.ts +2 -2
  49. package/dist/src/selector/ox-process-creation-card.js +4 -5
  50. package/dist/src/selector/ox-process-creation-card.js.map +1 -1
  51. package/dist/src/selector/ox-process-selector.d.ts +1 -1
  52. package/dist/src/selector/process-creation-popup.d.ts +5 -6
  53. package/dist/src/selector/process-creation-popup.js +23 -19
  54. package/dist/src/selector/process-creation-popup.js.map +1 -1
  55. package/dist/src/selector/process-thumbnail-card.d.ts +1 -1
  56. package/dist/src/selector/process-thumbnail-card.js +2 -2
  57. package/dist/src/selector/process-thumbnail-card.js.map +1 -1
  58. package/dist/stories/index.stories.js +1 -0
  59. package/dist/stories/index.stories.js.map +1 -1
  60. package/dist/tsconfig.tsbuildinfo +1 -1
  61. package/package.json +27 -27
  62. package/src/modeller/component-toolbar/component-menu.ts +9 -5
  63. package/src/modeller/component-toolbar/component-toolbar.ts +8 -5
  64. package/src/modeller/edit-toolbar.ts +1 -1
  65. package/src/modeller/property-sidebar/data-binding/data-binding.ts +19 -19
  66. package/src/modeller/property-sidebar/inspector/inspector.ts +1 -1
  67. package/src/modeller/property-sidebar/property-sidebar.ts +8 -8
  68. package/src/modeller/property-sidebar/shapes/shapes.ts +15 -4
  69. package/src/modeller/property-sidebar/specifics/specifics.ts +5 -1
  70. package/src/ox-editor-process-selector.ts +3 -3
  71. package/src/ox-process-list.ts +22 -15
  72. package/src/ox-process-modeller.ts +7 -3
  73. package/src/ox-process-viewer.ts +17 -15
  74. package/src/selector/ox-process-creation-card.ts +4 -5
  75. package/src/selector/process-creation-popup.ts +23 -19
  76. package/src/selector/process-thumbnail-card.ts +2 -2
  77. package/stories/index.stories.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/process",
3
- "version": "2.0.0-alpha.13",
3
+ "version": "2.0.0-alpha.131",
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,50 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@open-wc/scoped-elements": "^2.1.3",
71
- "@operato/app": "^2.0.0-alpha.13",
72
- "@operato/board": "^2.0.0-alpha.13",
73
- "@operato/data-grist": "^2.0.0-alpha.13",
74
- "@operato/font": "^2.0.0-alpha.13",
75
- "@operato/graphql": "^2.0.0-alpha.0",
76
- "@operato/i18n": "^2.0.0-alpha.0",
77
- "@operato/input": "^2.0.0-alpha.13",
78
- "@operato/markdown": "^2.0.0-alpha.0",
79
- "@operato/popup": "^2.0.0-alpha.9",
80
- "@operato/property-editor": "^2.0.0-alpha.13",
81
- "@operato/styles": "^2.0.0-alpha.0",
82
- "@operato/utils": "^2.0.0-alpha.8",
71
+ "@operato/app": "^2.0.0-alpha.131",
72
+ "@operato/board": "^2.0.0-alpha.131",
73
+ "@operato/data-grist": "^2.0.0-alpha.131",
74
+ "@operato/font": "^2.0.0-alpha.131",
75
+ "@operato/graphql": "^2.0.0-alpha.111",
76
+ "@operato/i18n": "^2.0.0-alpha.111",
77
+ "@operato/input": "^2.0.0-alpha.129",
78
+ "@operato/markdown": "^2.0.0-alpha.129",
79
+ "@operato/popup": "^2.0.0-alpha.129",
80
+ "@operato/property-editor": "^2.0.0-alpha.131",
81
+ "@operato/styles": "^2.0.0-alpha.129",
82
+ "@operato/utils": "^2.0.0-alpha.122",
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
- "sortablejs": "^1.14.0"
90
+ "sortablejs": "^1.15.2"
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",
108
+ "@webcomponents/scoped-custom-element-registry": "^0.0.9",
109
109
  "concurrently": "^8.0.1",
110
110
  "eslint": "^8.39.0",
111
- "eslint-config-prettier": "^8.3.0",
111
+ "eslint-config-prettier": "^9.1.0",
112
112
  "husky": "^7.0.2",
113
- "lint-staged": "^13.2.2",
114
- "prettier": "^2.4.1",
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": "112ec6a672e96837e01ffe55048f543fffa19e02"
131
+ "gitHead": "48271ff32be26111347ce27d120b238ae14e15ae"
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'
@@ -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
@@ -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))
@@ -190,7 +190,7 @@ export class EditToolbar extends LitElement {
190
190
  <span class="vline"></span>
191
191
 
192
192
  <span button id="font-increase" title="increase font size"></span>
193
- <span button id="font-decrease" title="decrease font size"></span>
193
+ <span button id="font-decrease" title="decrease font size" style="scale: 0.7;"></span>
194
194
 
195
195
  <span class="vline"></span>
196
196
  <span padding></span>
@@ -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,33 +62,39 @@ 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
  }
76
76
 
77
77
  #add button {
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: center;
81
+
78
82
  background-color: var(--primary-color);
79
83
  border: 0;
80
84
  border-radius: 50%;
81
85
  padding: 5px;
82
- width: 36px;
83
- height: 36px;
86
+ width: 32px;
87
+ height: 32px;
84
88
  cursor: pointer;
85
89
  }
90
+
86
91
  #add button:hover {
87
92
  background-color: var(--focus-background-color);
88
93
  box-shadow: var(--box-shadow);
89
94
  }
90
- #add button mwc-icon {
91
- font-size: 2em;
95
+
96
+ #add button md-icon {
97
+ font-size: 1.5em;
92
98
  color: var(--theme-white-color);
93
99
  }
94
100
 
@@ -105,7 +111,7 @@ class ProcessList extends LitElement {
105
111
  #filters [type='text']:focus {
106
112
  outline: none;
107
113
  }
108
- #filters mwc-icon {
114
+ #filters md-icon {
109
115
  position: absolute;
110
116
  top: 3px;
111
117
  color: var(--secondary-color);
@@ -152,7 +158,7 @@ class ProcessList extends LitElement {
152
158
  <ox-grist .config=${this.config} .mode=${mode} auto-fetch .fetchHandler=${this.fetchHandler.bind(this)}>
153
159
  <div slot="headroom" id="headroom">
154
160
  <div id="filters">
155
- <mwc-icon>search</mwc-icon>
161
+ <md-icon>search</md-icon>
156
162
  <input type="text" />
157
163
 
158
164
  <select
@@ -163,22 +169,23 @@ class ProcessList extends LitElement {
163
169
  >
164
170
  <option value="">*</option>
165
171
  ${this.groups.map(
166
- group =>
167
- html` <option value=${group.id} ?selected=${group.id === this.groupId}>${group.description}</option> `
172
+ group => html`
173
+ <option value=${group.id} ?selected=${group.id === this.groupId}>${group.description}</option>
174
+ `
168
175
  )}
169
176
  </select>
170
177
  </div>
171
178
 
172
179
  <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>
180
+ <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>
181
+ <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>
182
+ <md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
176
183
  </div>
177
184
 
178
185
  ${this.creatable
179
186
  ? html`
180
187
  <div id="add">
181
- <button><mwc-icon @click=${() => this.onCreateProcess()}>add</mwc-icon></button>
188
+ <button><md-icon @click=${() => this.onCreateProcess()}>add</md-icon></button>
182
189
  </div>
183
190
  `
184
191
  : undefined}
@@ -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,8 @@ export class OxProcessViewer extends LitElement {
37
37
  }
38
38
 
39
39
  /* navigation buttons */
40
- mwc-icon {
40
+ #prev,
41
+ #next {
41
42
  z-index: 10;
42
43
  position: absolute;
43
44
  top: 45%;
@@ -49,14 +50,14 @@ export class OxProcessViewer extends LitElement {
49
50
  color: #fff;
50
51
  user-select: none;
51
52
 
52
- --mdc-icon-size: 3em;
53
+ --md-icon-size: 3em;
53
54
  }
54
55
 
55
- mwc-icon[hidden] {
56
+ md-icon[hidden] {
56
57
  display: none;
57
58
  }
58
59
 
59
- mwc-icon:hover {
60
+ md-icon:hover {
60
61
  background-color: rgba(0, 0, 0, 0.2);
61
62
  border-radius: 50%;
62
63
  }
@@ -80,8 +81,8 @@ export class OxProcessViewer extends LitElement {
80
81
  }
81
82
 
82
83
  @media print {
83
- mwc-fab,
84
- mwc-icon {
84
+ md-fab,
85
+ md-icon {
85
86
  display: none;
86
87
  }
87
88
  }
@@ -115,39 +116,40 @@ export class OxProcessViewer extends LitElement {
115
116
  var fullscreen =
116
117
  !isIOS() && !this.hideFullscreen
117
118
  ? html`
118
- <mwc-fab
119
+ <md-fab
119
120
  id="fullscreen"
120
- .icon=${document.fullscreenElement ? 'fullscreen_exit' : 'fullscreen'}
121
121
  @click=${(e: Event) => this.onTapFullscreen()}
122
122
  @mouseover=${(e: Event) => this.transientShowButtons(true)}
123
123
  @mouseout=${(e: Event) => this.transientShowButtons()}
124
124
  title="fullscreen"
125
- ></mwc-fab>
125
+ >
126
+ <md-icon slot="icon">${document.fullscreenElement ? 'fullscreen_exit' : 'fullscreen'}</md-icon>
127
+ </md-fab>
126
128
  `
127
129
  : html``
128
130
 
129
131
  var prev = !this.hideNavigation
130
132
  ? html`
131
- <mwc-icon
133
+ <md-icon
132
134
  id="prev"
133
135
  @click=${(e: Event) => this.onTapPrev()}
134
136
  @mouseover=${(e: Event) => this.transientShowButtons(true)}
135
137
  @mouseout=${(e: Event) => this.transientShowButtons()}
136
138
  hidden
137
- >keyboard_arrow_left</mwc-icon
139
+ >keyboard_arrow_left</md-icon
138
140
  >
139
141
  `
140
142
  : html``
141
143
 
142
144
  var next = !this.hideNavigation
143
145
  ? html`
144
- <mwc-icon
146
+ <md-icon
145
147
  id="next"
146
148
  @click=${(e: Event) => this.onTapNext()}
147
149
  @mouseover=${(e: Event) => this.transientShowButtons(true)}
148
150
  @mouseout=${(e: Event) => this.transientShowButtons()}
149
151
  hidden
150
- >keyboard_arrow_right</mwc-icon
152
+ >keyboard_arrow_right</md-icon
151
153
  >
152
154
  `
153
155
  : html``