@operato/process 1.3.13 → 1.3.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/process",
3
- "version": "1.3.13",
3
+ "version": "1.3.14",
4
4
  "description": "Webcomponent for business process modeling following open-wc recommendations",
5
5
  "author": "heartyoh",
6
6
  "main": "dist/src/index.js",
@@ -68,16 +68,16 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@open-wc/scoped-elements": "^2.1.3",
71
- "@operato/app": "^1.3.13",
72
- "@operato/board": "^1.3.13",
71
+ "@operato/app": "^1.3.14",
72
+ "@operato/board": "^1.3.14",
73
73
  "@operato/data-grist": "^1.3.13",
74
- "@operato/font": "^1.3.13",
74
+ "@operato/font": "^1.3.14",
75
75
  "@operato/graphql": "^1.3.13",
76
76
  "@operato/i18n": "^1.3.13",
77
77
  "@operato/input": "^1.3.13",
78
78
  "@operato/markdown": "^1.3.13",
79
79
  "@operato/popup": "^1.3.13",
80
- "@operato/property-editor": "^1.3.13",
80
+ "@operato/property-editor": "^1.3.14",
81
81
  "@operato/styles": "^1.3.13",
82
82
  "@operato/utils": "^1.3.13",
83
83
  "@polymer/paper-dropdown-menu": "^3.2.0",
@@ -128,5 +128,5 @@
128
128
  "prettier --write"
129
129
  ]
130
130
  },
131
- "gitHead": "a118ad397e9d9513234cf3b310065d0406173ba0"
131
+ "gitHead": "e7bcbd17c82470bda2368e01fab5228894f37772"
132
132
  }
@@ -128,16 +128,13 @@ export class OxProcessModeller extends ScopedElementsMixin(LitElement) {
128
128
  static registerTemplate(templates: ComponentTemplate[]): void {
129
129
  templates &&
130
130
  templates.forEach(template => {
131
- var group = Registry.find(group => group.name == template.group)
131
+ var groups: string[] = typeof template.group == 'string' ? [template.group] : template.group
132
132
 
133
- if (!group) {
134
- console.warn('Invalid group', group, template)
135
- return
136
- }
137
-
138
- if (!group.templates.find(inGroupTemplate => inGroupTemplate.type == template.type)) {
139
- group.templates.push(template)
140
- }
133
+ Registry.filter(group => groups.includes(group.name)).forEach(group => {
134
+ if (!group.templates.find(inGroupTemplate => inGroupTemplate.type == template.type)) {
135
+ group.templates.push(template)
136
+ }
137
+ })
141
138
  })
142
139
  }
143
140
 
package/src/types.ts CHANGED
@@ -4,19 +4,7 @@ export interface PalletItem {
4
4
  type: string
5
5
  description: string
6
6
  icon: HTMLImageElement
7
- group:
8
- | 'line'
9
- | 'shape'
10
- | 'textAndMedio'
11
- | 'chartAndGauge'
12
- | 'table'
13
- | 'container'
14
- | 'IoT'
15
- | '3D'
16
- | 'warehouse'
17
- | 'form'
18
- | 'etc'
19
- | string
7
+ group: string | string[]
20
8
  model: Model
21
9
  }
22
10