@operato/board 8.0.0-beta.0 → 8.0.0-beta.1
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 +9 -0
- package/package.json +14 -14
- package/.storybook/main.js +0 -3
- package/.storybook/server.mjs +0 -8
- package/src/component/3d.ts +0 -29
- package/src/component/chart-and-gauge.ts +0 -28
- package/src/component/container.ts +0 -63
- package/src/component/data-source.ts +0 -30
- package/src/component/etc.ts +0 -88
- package/src/component/form.ts +0 -42
- package/src/component/index.ts +0 -12
- package/src/component/iot.ts +0 -52
- package/src/component/line.ts +0 -156
- package/src/component/register-default-groups.ts +0 -28
- package/src/component/shape.ts +0 -156
- package/src/component/table.ts +0 -28
- package/src/component/text-and-media.ts +0 -125
- package/src/component/warehouse.ts +0 -26
- package/src/data-storage/data-storage.ts +0 -76
- package/src/graphql/board.ts +0 -144
- package/src/graphql/data-subscription.ts +0 -30
- package/src/graphql/favorite-board.ts +0 -25
- package/src/graphql/group.ts +0 -138
- package/src/graphql/index.ts +0 -4
- package/src/graphql/play-group.ts +0 -225
- package/src/graphql/scenario.ts +0 -79
- package/src/index.ts +0 -10
- package/src/modeller/component-toolbar/component-detail.ts +0 -52
- package/src/modeller/component-toolbar/component-menu.ts +0 -196
- package/src/modeller/component-toolbar/component-toolbar.ts +0 -196
- package/src/modeller/component-toolbar/mode-icons.ts +0 -88
- package/src/modeller/edit-toolbar-style.ts +0 -232
- package/src/modeller/edit-toolbar.ts +0 -587
- package/src/modeller/property-sidebar/abstract-property.ts +0 -69
- package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +0 -475
- package/src/modeller/property-sidebar/data-binding/data-binding-value-map.ts +0 -19
- package/src/modeller/property-sidebar/data-binding/data-binding-value-range.ts +0 -19
- package/src/modeller/property-sidebar/data-binding/data-binding.ts +0 -480
- package/src/modeller/property-sidebar/effects/effects-shared-style.ts +0 -62
- package/src/modeller/property-sidebar/effects/effects.ts +0 -69
- package/src/modeller/property-sidebar/effects/property-animation.ts +0 -146
- package/src/modeller/property-sidebar/effects/property-animations.ts +0 -93
- package/src/modeller/property-sidebar/effects/property-event-hover.ts +0 -200
- package/src/modeller/property-sidebar/effects/property-event-tap.ts +0 -251
- package/src/modeller/property-sidebar/effects/property-event.ts +0 -73
- package/src/modeller/property-sidebar/effects/property-shadow.ts +0 -114
- package/src/modeller/property-sidebar/effects/value-converter.ts +0 -23
- package/src/modeller/property-sidebar/inspector/inspector.ts +0 -404
- package/src/modeller/property-sidebar/property-shared-style.ts +0 -136
- package/src/modeller/property-sidebar/property-sidebar.ts +0 -326
- package/src/modeller/property-sidebar/shapes/box-padding-editor-styles.ts +0 -94
- package/src/modeller/property-sidebar/shapes/shapes.ts +0 -432
- package/src/modeller/property-sidebar/specifics/specific-properties-builder.ts +0 -152
- package/src/modeller/property-sidebar/specifics/specifics.ts +0 -81
- package/src/modeller/property-sidebar/styles/styles.ts +0 -577
- package/src/modeller/scene-viewer/confidential-overlay.ts +0 -18
- package/src/modeller/scene-viewer/ox-scene-handler.ts +0 -40
- package/src/modeller/scene-viewer/ox-scene-layer.ts +0 -42
- package/src/modeller/scene-viewer/ox-scene-property.ts +0 -10
- package/src/modeller/scene-viewer/ox-scene-viewer.ts +0 -263
- package/src/ox-board-component-info.ts +0 -236
- package/src/ox-board-list.ts +0 -401
- package/src/ox-board-modeller.ts +0 -408
- package/src/ox-board-player-style.ts +0 -200
- package/src/ox-board-player.ts +0 -333
- package/src/ox-board-template-list.ts +0 -267
- package/src/ox-board-template-viewer.ts +0 -198
- package/src/ox-board-viewer.ts +0 -727
- package/src/ox-editor-board-selector.ts +0 -91
- package/src/ox-property-editor-board-selector.ts +0 -23
- package/src/player/ox-board-player-carousel.ts +0 -197
- package/src/player/ox-board-player-grid.ts +0 -78
- package/src/player/ox-board-wrapper.ts +0 -152
- package/src/selector/board-creation-popup.ts +0 -151
- package/src/selector/board-thumbnail-card.ts +0 -175
- package/src/selector/ox-board-creation-card.ts +0 -98
- package/src/selector/ox-board-selector.ts +0 -382
- package/src/types.ts +0 -63
- package/stories/property-data-binding.stories.ts +0 -34
- package/tsconfig.json +0 -24
- package/web-dev-server.config.mjs +0 -30
- package/web-test-runner.config.mjs +0 -29
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,15 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [8.0.0-beta.1](https://github.com/hatiolab/operato/compare/v8.0.0-beta.0...v8.0.0-beta.1) (2025-01-08)
|
7
|
+
|
8
|
+
|
9
|
+
### :bug: Bug Fix
|
10
|
+
|
11
|
+
* missing .npmignore ([be05985](https://github.com/hatiolab/operato/commit/be05985abfae4af53501f718dd52932099f7fbcb))
|
12
|
+
|
13
|
+
|
14
|
+
|
6
15
|
## [8.0.0-beta.0](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.56...v8.0.0-beta.0) (2025-01-07)
|
7
16
|
|
8
17
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@operato/board",
|
3
|
-
"version": "8.0.0-beta.
|
3
|
+
"version": "8.0.0-beta.1",
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
5
5
|
"author": "heartyoh",
|
6
6
|
"main": "dist/src/index.js",
|
@@ -99,18 +99,18 @@
|
|
99
99
|
"dependencies": {
|
100
100
|
"@material/web": "^2.0.0",
|
101
101
|
"@open-wc/scoped-elements": "^2.1.3",
|
102
|
-
"@operato/app": "^8.0.0-beta.
|
103
|
-
"@operato/data-grist": "^8.0.0-beta.
|
104
|
-
"@operato/font": "^8.0.0-beta.
|
105
|
-
"@operato/graphql": "^8.0.0-beta.
|
106
|
-
"@operato/i18n": "^8.0.0-beta.
|
107
|
-
"@operato/input": "^8.0.0-beta.
|
108
|
-
"@operato/layout": "^8.0.0-beta.
|
109
|
-
"@operato/markdown": "^8.0.0-beta.
|
110
|
-
"@operato/popup": "^8.0.0-beta.
|
111
|
-
"@operato/property-editor": "^8.0.0-beta.
|
112
|
-
"@operato/styles": "^8.0.0-beta.
|
113
|
-
"@operato/utils": "^8.0.0-beta.
|
102
|
+
"@operato/app": "^8.0.0-beta.1",
|
103
|
+
"@operato/data-grist": "^8.0.0-beta.1",
|
104
|
+
"@operato/font": "^8.0.0-beta.1",
|
105
|
+
"@operato/graphql": "^8.0.0-beta.1",
|
106
|
+
"@operato/i18n": "^8.0.0-beta.1",
|
107
|
+
"@operato/input": "^8.0.0-beta.1",
|
108
|
+
"@operato/layout": "^8.0.0-beta.1",
|
109
|
+
"@operato/markdown": "^8.0.0-beta.1",
|
110
|
+
"@operato/popup": "^8.0.0-beta.1",
|
111
|
+
"@operato/property-editor": "^8.0.0-beta.1",
|
112
|
+
"@operato/styles": "^8.0.0-beta.1",
|
113
|
+
"@operato/utils": "^8.0.0-beta.1",
|
114
114
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
115
115
|
"@types/file-saver": "^2.0.4",
|
116
116
|
"@types/sortablejs": "^1.10.7",
|
@@ -159,5 +159,5 @@
|
|
159
159
|
"prettier --write"
|
160
160
|
]
|
161
161
|
},
|
162
|
-
"gitHead": "
|
162
|
+
"gitHead": "d5b28a2e9deb632c0dc80132f6a7196dd6fe4220"
|
163
163
|
}
|
package/.storybook/main.js
DELETED
package/.storybook/server.mjs
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
import { storybookPlugin } from '@web/dev-server-storybook'
|
2
|
-
import baseConfig from '../web-dev-server.config.mjs'
|
3
|
-
|
4
|
-
export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
|
5
|
-
...baseConfig,
|
6
|
-
open: '/',
|
7
|
-
plugins: [storybookPlugin({ type: 'web-components' }), ...baseConfig.plugins]
|
8
|
-
})
|
package/src/component/3d.ts
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
import { ComponentGroup } from '../types'
|
2
|
-
|
3
|
-
const icon = `
|
4
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
5
|
-
<style type="text/css">
|
6
|
-
.st0{fill:{{strokeColor}};}
|
7
|
-
.st7{fill:none;stroke:{{strokeColor}};stroke-width:1.5;stroke-miterlimit:10;}
|
8
|
-
.st9{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
|
9
|
-
</style>
|
10
|
-
<g>
|
11
|
-
<polygon class="st7" points="15.3,10.5 7.3,13.6 7.3,22.8 15,26.1 22.9,22.8 22.9,14.1"/>
|
12
|
-
<polygon class="st0" points="22.2,22.5 14.8,26.1 14.5,16.6 22.2,14.1"/>
|
13
|
-
<line class="st9" x1="15.1" y1="4.2" x2="15.1" y2="10.4"/>
|
14
|
-
<polyline class="st9" points="13.3,5.6 15.1,3.8 17,5.6"/>
|
15
|
-
<line class="st9" x1="27.9" y1="25.2" x2="22.4" y2="22.4"/>
|
16
|
-
<polyline class="st9" points="27.5,22.9 28.3,25.4 25.8,26.2"/>
|
17
|
-
<line class="st9" x1="2.1" y1="25.2" x2="7.6" y2="22.4"/>
|
18
|
-
<polyline class="st9" points="2.5,22.9 1.7,25.4 4.2,26.2"/>
|
19
|
-
<line class="st9" x1="7.9" y1="14.1" x2="15.5" y2="17.4"/>
|
20
|
-
</g>
|
21
|
-
</svg>
|
22
|
-
`
|
23
|
-
|
24
|
-
export const threed: ComponentGroup = {
|
25
|
-
name: '3D',
|
26
|
-
description: 'a group of various 3D base components',
|
27
|
-
icon,
|
28
|
-
templates: []
|
29
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { ComponentGroup } from '../types'
|
2
|
-
|
3
|
-
const icon = `
|
4
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
5
|
-
<style type="text/css">
|
6
|
-
.st7{fill:none;stroke:{{strokeColor}};stroke-width:1.5;stroke-miterlimit:10;}
|
7
|
-
.st8{fill:none;stroke:{{strokeColor}};stroke-width:3;stroke-miterlimit:10;}
|
8
|
-
.st9{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
|
9
|
-
</style>
|
10
|
-
<g>
|
11
|
-
<line class="st7" x1="1.9" y1="25" x2="28.1" y2="25"/>
|
12
|
-
<line class="st8" x1="5.3" y1="22.8" x2="5.3" y2="18.1"/>
|
13
|
-
<line class="st8" x1="10.2" y1="22.8" x2="10.2" y2="15.1"/>
|
14
|
-
<line class="st8" x1="15.1" y1="22.8" x2="15.1" y2="18.1"/>
|
15
|
-
<line class="st8" x1="20" y1="22.8" x2="20" y2="13.1"/>
|
16
|
-
<line class="st8" x1="25" y1="22.8" x2="25" y2="10.1"/>
|
17
|
-
<polyline class="st9" points="4.7,15.7 9.6,9.7 14.9,15.1 25.2,5"/>
|
18
|
-
</g>
|
19
|
-
</svg>
|
20
|
-
|
21
|
-
`
|
22
|
-
|
23
|
-
export const chartAndGauge: ComponentGroup = {
|
24
|
-
name: 'chartAndGauge',
|
25
|
-
description: 'a group of various charts and gauges',
|
26
|
-
icon,
|
27
|
-
templates: []
|
28
|
-
}
|
@@ -1,63 +0,0 @@
|
|
1
|
-
import { ComponentGroup } from '../types'
|
2
|
-
|
3
|
-
const iconContainer = new URL('../../../icons/components/container.png', import.meta.url).href
|
4
|
-
const popup = new URL('../../../icons/components/popup.png', import.meta.url).href
|
5
|
-
|
6
|
-
const icon = `
|
7
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
8
|
-
<style type="text/css">
|
9
|
-
.st0{fill:{{strokeColor}};}
|
10
|
-
.st3{fill:none;stroke:{{strokeColor}};stroke-width:2;stroke-linecap:round;stroke-miterlimit:10;}
|
11
|
-
.st9{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
|
12
|
-
</style>
|
13
|
-
<g>
|
14
|
-
<rect x="2.8" y="10.3" class="st9" width="24.4" height="13.8"/>
|
15
|
-
<polygon class="st0" points="27.7,9.8 2.3,9.8 7.8,5.9 22.2,5.9"/>
|
16
|
-
<line class="st3" x1="10.9" y1="15.5" x2="19.1" y2="15.5"/>
|
17
|
-
</g>
|
18
|
-
</svg>
|
19
|
-
`
|
20
|
-
|
21
|
-
export const container: ComponentGroup = {
|
22
|
-
name: 'container',
|
23
|
-
description: 'a group of various containers',
|
24
|
-
icon,
|
25
|
-
templates: [
|
26
|
-
{
|
27
|
-
type: 'container',
|
28
|
-
description: 'general container',
|
29
|
-
icon: iconContainer,
|
30
|
-
group: 'container',
|
31
|
-
model: {
|
32
|
-
type: 'container',
|
33
|
-
left: 100,
|
34
|
-
top: 100,
|
35
|
-
width: 100,
|
36
|
-
height: 100,
|
37
|
-
fillStyle: '#fff',
|
38
|
-
strokeStyle: '#999',
|
39
|
-
alpha: 1,
|
40
|
-
hidden: false,
|
41
|
-
lineWidth: 1,
|
42
|
-
lineDash: 'solid',
|
43
|
-
lineCap: 'butt'
|
44
|
-
}
|
45
|
-
},
|
46
|
-
{
|
47
|
-
type: 'popup',
|
48
|
-
description: 'popup window',
|
49
|
-
icon: popup,
|
50
|
-
group: 'container',
|
51
|
-
model: {
|
52
|
-
type: 'popup',
|
53
|
-
left: 100,
|
54
|
-
top: 100,
|
55
|
-
width: 100,
|
56
|
-
height: 100,
|
57
|
-
fillStyle: '#fff',
|
58
|
-
strokeStyle: 'DarkGoldenRod',
|
59
|
-
hidden: true
|
60
|
-
}
|
61
|
-
}
|
62
|
-
]
|
63
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import { ComponentGroup } from '../types'
|
2
|
-
|
3
|
-
const icon = `
|
4
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
5
|
-
<style type="text/css">
|
6
|
-
.st0{fill:none;stroke:{{strokeColor}};stroke-width:1.5;stroke-miterlimit:10;}
|
7
|
-
.st1{fill:{{strokeColor}};stroke:{{strokeColor}};stroke-width:0.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
|
8
|
-
.st2{fill:{{strokeColor}};stroke:{{strokeColor}};stroke-width:0.5;stroke-miterlimit:10;}
|
9
|
-
.st3{fill:{{strokeColor}};}
|
10
|
-
</style>
|
11
|
-
<g>
|
12
|
-
<path class="st0" d="M11.9,22.4H4.6c-4.9,0-4.2-8.5,0.2-9.3c0,0,1.3-6.5,6.2-3c0,0,2.3-5.7,7.5-4.7c0,0,6.3,0.3,6,7.3
|
13
|
-
c0-0.1,2.1,0.9,2.3,1c3.1,1.9,2.9,7.3-0.6,8.7h-7"/>
|
14
|
-
<path class="st1" d="M12.6,20c-0.1-0.1-0.1-0.2,0-0.3c0.8-0.7,1.8-1.2,2.9-1.2s2.1,0.4,2.9,1.2c0.1,0.1,0.1,0.2,0,0.3
|
15
|
-
c-0.1,0.1-0.2,0.1-0.3,0c-0.7-0.7-1.6-1-2.6-1s-1.9,0.4-2.6,1.1C12.7,20.2,12.6,20.1,12.6,20z"/>
|
16
|
-
<path class="st1" d="M10.8,17.9c-0.1-0.1-0.1-0.2,0-0.3c1.3-1.2,3-1.9,4.8-1.9s3.5,0.7,4.8,1.9c0.1,0.1,0.1,0.2,0,0.3
|
17
|
-
C20.2,18,20.1,18,20,18c-1.2-1.1-2.8-1.8-4.5-1.8S12.2,16.8,11,18C11,18,10.8,18,10.8,17.9z"/>
|
18
|
-
<path class="st2" d="M9.5,15.8c-0.1-0.1-0.1-0.2,0-0.3c1.6-1.6,3.8-2.4,6.1-2.4s4.4,0.9,6,2.4c0.1,0.1,0.1,0.2,0,0.3
|
19
|
-
s-0.2,0.1-0.3,0c-1.6-1.5-3.6-2.3-5.8-2.3s-4.2,0.8-5.8,2.3C9.7,15.9,9.5,15.9,9.5,15.8z"/>
|
20
|
-
<circle class="st3" cx="15.5" cy="23.2" r="1.5"/>
|
21
|
-
</g>
|
22
|
-
</svg>
|
23
|
-
`
|
24
|
-
|
25
|
-
export const dataSource: ComponentGroup = {
|
26
|
-
name: 'dataSource',
|
27
|
-
description: 'a group of various data sources',
|
28
|
-
icon,
|
29
|
-
templates: []
|
30
|
-
}
|
package/src/component/etc.ts
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
import { ComponentGroup } from '../types'
|
2
|
-
|
3
|
-
const globalReference = new URL('../../../icons/components/global-reference.png', import.meta.url).href
|
4
|
-
const infoWindow = new URL('../../../icons/components/info-window.png', import.meta.url).href
|
5
|
-
const localReference = new URL('../../../icons/components/local-reference.png', import.meta.url).href
|
6
|
-
|
7
|
-
const icon = `
|
8
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
9
|
-
<style type="text/css">
|
10
|
-
.st0{fill:{{strokeColor}};}
|
11
|
-
</style>
|
12
|
-
<g>
|
13
|
-
<circle class="st0" cx="7.1" cy="15" r="2"/>
|
14
|
-
<circle class="st0" cx="15" cy="15" r="2"/>
|
15
|
-
<circle class="st0" cx="22.9" cy="15" r="2"/>
|
16
|
-
</g>
|
17
|
-
</svg>
|
18
|
-
`
|
19
|
-
|
20
|
-
export const etc: ComponentGroup = {
|
21
|
-
name: 'etc',
|
22
|
-
description: 'a group of components that have not yet been defined.',
|
23
|
-
icon,
|
24
|
-
templates: [
|
25
|
-
{
|
26
|
-
type: 'info-window',
|
27
|
-
description: 'information window',
|
28
|
-
icon: infoWindow,
|
29
|
-
group: 'etc',
|
30
|
-
model: {
|
31
|
-
type: 'info-window',
|
32
|
-
left: 10,
|
33
|
-
top: 10,
|
34
|
-
width: 50,
|
35
|
-
height: 50,
|
36
|
-
fillStyle: '#fff',
|
37
|
-
strokeStyle: 'DarkGoldenRod',
|
38
|
-
hidden: true,
|
39
|
-
frontSideTemplate:
|
40
|
-
"<h2 id='xxx'>\n\t<%= text %>\n</h2>\n<img src='https://www.tutorialspoint.com/images/html.gif' alt='HTML Tutorial' height='150' width='140' />",
|
41
|
-
backSideTemplate:
|
42
|
-
"<h2 id='yyy'>\n\t<%= text %>\n</h2>\n<img src='https://www.tutorialspoint.com/images/html.gif' alt='HTML Tutorial' height='150' width='140' />",
|
43
|
-
style:
|
44
|
-
'#yyy {\n\tbackground-color:navy;\n\tcolor:white\n}\n#xxx, #yyy {\n\twhite-space:nowrap;\n\tmin-width:200px;\n}'
|
45
|
-
}
|
46
|
-
},
|
47
|
-
{
|
48
|
-
type: 'local-ref',
|
49
|
-
description: 'local reference',
|
50
|
-
icon: localReference,
|
51
|
-
group: 'etc',
|
52
|
-
model: {
|
53
|
-
type: 'local-ref',
|
54
|
-
left: 100,
|
55
|
-
top: 100,
|
56
|
-
width: 100,
|
57
|
-
height: 100,
|
58
|
-
fillStyle: '#fff',
|
59
|
-
strokeStyle: '#000',
|
60
|
-
alpha: 1,
|
61
|
-
hidden: false,
|
62
|
-
lineWidth: 1,
|
63
|
-
lineDash: 'solid',
|
64
|
-
lineCap: 'butt'
|
65
|
-
}
|
66
|
-
},
|
67
|
-
{
|
68
|
-
type: 'global-ref',
|
69
|
-
description: 'global reference',
|
70
|
-
icon: globalReference,
|
71
|
-
group: 'etc',
|
72
|
-
model: {
|
73
|
-
type: 'global-ref',
|
74
|
-
left: 100,
|
75
|
-
top: 100,
|
76
|
-
width: 100,
|
77
|
-
height: 100,
|
78
|
-
fillStyle: '#fff',
|
79
|
-
strokeStyle: '#000',
|
80
|
-
alpha: 1,
|
81
|
-
hidden: false,
|
82
|
-
lineWidth: 1,
|
83
|
-
lineDash: 'solid',
|
84
|
-
lineCap: 'butt'
|
85
|
-
}
|
86
|
-
}
|
87
|
-
]
|
88
|
-
}
|
package/src/component/form.ts
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
import { ComponentGroup } from '../types'
|
2
|
-
|
3
|
-
const icon = `
|
4
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
5
|
-
<style type="text/css">
|
6
|
-
.st0{fill:{{strokeColor}};}
|
7
|
-
.st7{fill:none;stroke:{{strokeColor}};stroke-width:1.5;stroke-miterlimit:10;}
|
8
|
-
.st9{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
|
9
|
-
</style>
|
10
|
-
<g>
|
11
|
-
<rect x="3.1" y="5.5" class="st7" width="23.9" height="19"/>
|
12
|
-
<rect x="11.3" y="8.3" class="st9" width="12.5" height="3.3"/>
|
13
|
-
<rect x="5.5" y="8.8" class="st0" width="4.1" height="2.2"/>
|
14
|
-
<rect x="5.5" y="14.5" class="st0" width="4.1" height="2.2"/>
|
15
|
-
<rect x="10.7" y="19.4" class="st0" width="6.5" height="2.2"/>
|
16
|
-
<rect x="17.8" y="19.4" class="st0" width="6.3" height="2.2"/>
|
17
|
-
<rect x="11.3" y="13.8" class="st9" width="12.5" height="3.3"/>
|
18
|
-
<path class="st0" d="M15,14.7c0,0.1,0,0.3-0.1,0.5l0,0.2l0.2-0.1c0.3-0.2,0.5-0.3,0.6-0.3c0.1,0,0.3,0.1,0.3,0.3
|
19
|
-
c0,0.2-0.3,0.3-0.7,0.3l-0.2,0l0.1,0.1c0.3,0.2,0.5,0.4,0.5,0.5c0,0.1-0.1,0.2-0.3,0.2c-0.2,0-0.3-0.2-0.5-0.6l-0.1-0.2l-0.1,0.2
|
20
|
-
c-0.2,0.4-0.3,0.6-0.5,0.6c-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0.3-0.2c0-0.2,0.2-0.3,0.5-0.5l0.1-0.1l-0.2,0c-0.5,0-0.7-0.1-0.7-0.3
|
31
|
-
c0-0.2,0.1-0.3,0.3-0.3c0.2,0,0.3,0.1,0.6,0.3l0.2,0.1l0-0.2c-0.1-0.2-0.1-0.4-0.1-0.5c0-0.2,0.1-0.3,0.3-0.3
|
32
|
-
C19.8,14.4,19.9,14.5,19.9,14.7z"/>
|
33
|
-
</g>
|
34
|
-
</svg>
|
35
|
-
`
|
36
|
-
|
37
|
-
export const form: ComponentGroup = {
|
38
|
-
name: 'form',
|
39
|
-
description: 'a group of various input components that make up a data entry form',
|
40
|
-
icon,
|
41
|
-
templates: []
|
42
|
-
}
|
package/src/component/index.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
export * from './shape'
|
2
|
-
export * from './line'
|
3
|
-
export * from './text-and-media'
|
4
|
-
export * from './chart-and-gauge'
|
5
|
-
export * from './table'
|
6
|
-
export * from './data-source'
|
7
|
-
export * from './3d'
|
8
|
-
export * from './iot'
|
9
|
-
export * from './form'
|
10
|
-
export * from './warehouse'
|
11
|
-
export * from './container'
|
12
|
-
export * from './etc'
|
package/src/component/iot.ts
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
import { ComponentGroup } from '../types'
|
2
|
-
|
3
|
-
const icon = `
|
4
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
5
|
-
<style type="text/css">
|
6
|
-
.st9{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
|
7
|
-
.st12{fill:#232020;stroke:{{strokeColor}};stroke-width:0.5;stroke-miterlimit:10;}
|
8
|
-
.st13{fill:#232020;stroke:{{strokeColor}};stroke-width:0.25;stroke-miterlimit:10;}
|
9
|
-
</style>
|
10
|
-
<g>
|
11
|
-
<path class="st12" d="M11.2,14.6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7,1.7,1.7C10.5,6,9.8,6.7,8.8,6.7z M8.8,3.9
|
21
|
-
C8.2,3.9,7.7,4.4,7.7,5c0,0.6,0.5,1.2,1.2,1.2C9.5,6.2,10,5.7,10,5C10,4.4,9.5,3.9,8.8,3.9z"/>
|
22
|
-
<path class="st13" d="M20.9,6.7C20,6.7,19.3,6,19.3,5c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7C22.6,6,21.8,6.7,20.9,6.7z
|
23
|
-
M20.9,3.9c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2C22.1,4.4,21.6,3.9,20.9,3.9z"/>
|
24
|
-
<path class="st13" d="M14.9,16.5c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7
|
25
|
-
C16.6,15.7,15.9,16.5,14.9,16.5z M14.9,13.6c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2
|
26
|
-
C16.1,14.2,15.6,13.6,14.9,13.6z"/>
|
27
|
-
<path class="st13" d="M8.8,26.6c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7C10.5,25.9,9.8,26.6,8.8,26.6z
|
28
|
-
M8.8,23.8c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2C10,24.3,9.5,23.8,8.8,23.8z"/>
|
29
|
-
<path class="st13" d="M20.9,26.6c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7
|
30
|
-
C22.6,25.9,21.8,26.6,20.9,26.6z M20.9,23.8c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2
|
31
|
-
C22.1,24.3,21.6,23.8,20.9,23.8z"/>
|
32
|
-
<path class="st13" d="M3.1,16.6c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7C4.7,15.9,4,16.6,3.1,16.6z
|
33
|
-
M3.1,13.8c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2C4.2,14.3,3.7,13.8,3.1,13.8z"/>
|
34
|
-
<path class="st13" d="M26.9,16.6c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7
|
35
|
-
C28.6,15.9,27.8,16.6,26.9,16.6z M26.9,13.8c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2
|
36
|
-
C28.1,14.3,27.6,13.8,26.9,13.8z"/>
|
37
|
-
<line class="st9" x1="10.2" y1="4.9" x2="18.2" y2="4.9"/>
|
38
|
-
<line class="st9" x1="22" y1="6.2" x2="26.1" y2="12.3"/>
|
39
|
-
<line class="st9" x1="4" y1="17.7" x2="7.7" y2="24"/>
|
40
|
-
<line class="st9" x1="23" y1="22.7" x2="26.8" y2="16.4"/>
|
41
|
-
<line class="st9" x1="3.7" y1="13.5" x2="7.5" y2="7.2"/>
|
42
|
-
<line class="st9" x1="11.7" y1="25.1" x2="19.7" y2="25.1"/>
|
43
|
-
</g>
|
44
|
-
</svg>
|
45
|
-
`
|
46
|
-
|
47
|
-
export const iot: ComponentGroup = {
|
48
|
-
name: 'IoT',
|
49
|
-
description: 'a group of various IoT protocols',
|
50
|
-
icon,
|
51
|
-
templates: []
|
52
|
-
}
|
package/src/component/line.ts
DELETED
@@ -1,156 +0,0 @@
|
|
1
|
-
import { ComponentGroup } from '../types'
|
2
|
-
|
3
|
-
const bothArrow = new URL('../../../icons/components/both-arrow.png', import.meta.url).href
|
4
|
-
const dash = new URL('../../../icons/components/dash.png', import.meta.url).href
|
5
|
-
const lineIcon = new URL('../../../icons/components/line.png', import.meta.url).href
|
6
|
-
const polyline = new URL('../../../icons/components/polyline.png', import.meta.url).href
|
7
|
-
const singleArrow = new URL('../../../icons/components/single-arrow.png', import.meta.url).href
|
8
|
-
const ortholine = new URL('../../../icons/components/ortholine.png', import.meta.url).href
|
9
|
-
|
10
|
-
const icon = `
|
11
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
12
|
-
<style type="text/css">
|
13
|
-
.st3{fill:none;stroke:{{strokeColor}};stroke-width:2;stroke-linecap:round;stroke-miterlimit:10;}
|
14
|
-
.st4{fill:none;stroke:{{strokeColor}};stroke-width:1.5;stroke-miterlimit:10;stroke-dasharray:3,1.5;}
|
15
|
-
</style>
|
16
|
-
<g>
|
17
|
-
<line class="st3" x1="1.7" y1="18.9" x2="26.3" y2="6.2"/>
|
18
|
-
<line class="st4" x1="1.7" y1="23.8" x2="28.3" y2="10.1"/>
|
19
|
-
</g>
|
20
|
-
</svg>
|
21
|
-
`
|
22
|
-
|
23
|
-
export const line: ComponentGroup = {
|
24
|
-
name: 'line',
|
25
|
-
description: 'a group of various lines',
|
26
|
-
icon,
|
27
|
-
templates: [
|
28
|
-
{
|
29
|
-
type: 'line',
|
30
|
-
description: 'simple line',
|
31
|
-
icon: lineIcon,
|
32
|
-
group: 'line',
|
33
|
-
model: {
|
34
|
-
type: 'line',
|
35
|
-
x1: 100,
|
36
|
-
y1: 100,
|
37
|
-
x2: 200,
|
38
|
-
y2: 200,
|
39
|
-
fillStyle: '#fff',
|
40
|
-
strokeStyle: '#000',
|
41
|
-
alpha: 1,
|
42
|
-
hidden: false,
|
43
|
-
lineWidth: 3,
|
44
|
-
lineDash: 'solid',
|
45
|
-
lineCap: 'butt'
|
46
|
-
}
|
47
|
-
},
|
48
|
-
{
|
49
|
-
type: 'dash',
|
50
|
-
description: 'dash line',
|
51
|
-
icon: dash,
|
52
|
-
group: 'line',
|
53
|
-
model: {
|
54
|
-
type: 'line',
|
55
|
-
x1: 100,
|
56
|
-
y1: 100,
|
57
|
-
x2: 200,
|
58
|
-
y2: 200,
|
59
|
-
fillStyle: '#fff',
|
60
|
-
strokeStyle: '#000',
|
61
|
-
alpha: 1,
|
62
|
-
hidden: false,
|
63
|
-
lineWidth: 3,
|
64
|
-
lineDash: 'round-dot',
|
65
|
-
lineCap: 'butt'
|
66
|
-
}
|
67
|
-
},
|
68
|
-
{
|
69
|
-
type: 'single arrow',
|
70
|
-
description: 'single arrow tip line',
|
71
|
-
icon: singleArrow,
|
72
|
-
group: 'line',
|
73
|
-
model: {
|
74
|
-
type: 'line',
|
75
|
-
x1: 100,
|
76
|
-
y1: 100,
|
77
|
-
x2: 200,
|
78
|
-
y2: 200,
|
79
|
-
fillStyle: '#fff',
|
80
|
-
strokeStyle: '#000',
|
81
|
-
alpha: 3,
|
82
|
-
hidden: false,
|
83
|
-
lineWidth: 3,
|
84
|
-
lineDash: 'solid',
|
85
|
-
begin: 'arrow',
|
86
|
-
lineCap: 'butt'
|
87
|
-
}
|
88
|
-
},
|
89
|
-
{
|
90
|
-
type: 'both arrow',
|
91
|
-
description: 'both arrow tip line',
|
92
|
-
icon: bothArrow,
|
93
|
-
group: 'line',
|
94
|
-
model: {
|
95
|
-
type: 'line',
|
96
|
-
x1: 100,
|
97
|
-
y1: 100,
|
98
|
-
x2: 200,
|
99
|
-
y2: 200,
|
100
|
-
fillStyle: '#fff',
|
101
|
-
strokeStyle: '#000',
|
102
|
-
alpha: 1,
|
103
|
-
hidden: false,
|
104
|
-
lineWidth: 3,
|
105
|
-
lineDash: 'solid',
|
106
|
-
begin: 'arrow',
|
107
|
-
end: 'arrow',
|
108
|
-
lineCap: 'butt'
|
109
|
-
}
|
110
|
-
},
|
111
|
-
{
|
112
|
-
type: 'polyline',
|
113
|
-
description: 'polyline',
|
114
|
-
icon: polyline,
|
115
|
-
group: 'line',
|
116
|
-
model: {
|
117
|
-
type: 'polyline',
|
118
|
-
path: [
|
119
|
-
{ x: 100, y: 100 },
|
120
|
-
{ x: 200, y: 100 },
|
121
|
-
{ x: 200, y: 200 },
|
122
|
-
{ x: 100, y: 200 }
|
123
|
-
],
|
124
|
-
fillStyle: '#fff',
|
125
|
-
strokeStyle: '#000',
|
126
|
-
alpha: 1,
|
127
|
-
hidden: false,
|
128
|
-
lineWidth: 1,
|
129
|
-
lineDash: 'solid',
|
130
|
-
lineCap: 'butt',
|
131
|
-
round: 10
|
132
|
-
}
|
133
|
-
},
|
134
|
-
{
|
135
|
-
type: 'ortholine',
|
136
|
-
description: 'ortholine',
|
137
|
-
icon: ortholine,
|
138
|
-
group: 'line',
|
139
|
-
model: {
|
140
|
-
type: 'ortholine',
|
141
|
-
x1: 100,
|
142
|
-
y1: 100,
|
143
|
-
x2: 200,
|
144
|
-
y2: 200,
|
145
|
-
fillStyle: '#fff',
|
146
|
-
strokeStyle: '#000',
|
147
|
-
alpha: 1,
|
148
|
-
hidden: false,
|
149
|
-
lineWidth: 1,
|
150
|
-
lineDash: 'solid',
|
151
|
-
lineCap: 'butt',
|
152
|
-
round: 10
|
153
|
-
}
|
154
|
-
}
|
155
|
-
]
|
156
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { BoardModeller } from '../ox-board-modeller'
|
2
|
-
import { chartAndGauge } from './chart-and-gauge'
|
3
|
-
import { container } from './container'
|
4
|
-
import { dataSource } from './data-source'
|
5
|
-
import { etc } from './etc'
|
6
|
-
import { form } from './form'
|
7
|
-
import { iot } from './iot'
|
8
|
-
import { line } from './line'
|
9
|
-
import { shape } from './shape'
|
10
|
-
import { table } from './table'
|
11
|
-
import { textAndMedia } from './text-and-media'
|
12
|
-
import { threed } from './3d'
|
13
|
-
import { warehouse } from './warehouse'
|
14
|
-
|
15
|
-
export function registerDefaultGroups() {
|
16
|
-
BoardModeller.registerGroup(line)
|
17
|
-
BoardModeller.registerGroup(shape)
|
18
|
-
BoardModeller.registerGroup(textAndMedia)
|
19
|
-
BoardModeller.registerGroup(chartAndGauge)
|
20
|
-
BoardModeller.registerGroup(table)
|
21
|
-
BoardModeller.registerGroup(container)
|
22
|
-
BoardModeller.registerGroup(dataSource)
|
23
|
-
BoardModeller.registerGroup(iot)
|
24
|
-
BoardModeller.registerGroup(threed)
|
25
|
-
BoardModeller.registerGroup(warehouse)
|
26
|
-
BoardModeller.registerGroup(form)
|
27
|
-
BoardModeller.registerGroup(etc)
|
28
|
-
}
|