@operato/board 0.2.50 → 0.3.2

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 (129) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/custom-elements.json +2675 -1894
  3. package/demo/index.html +3 -3
  4. package/dist/src/component/3d.d.ts +2 -2
  5. package/dist/src/component/3d.js.map +1 -1
  6. package/dist/src/component/chart-and-gauge.d.ts +2 -2
  7. package/dist/src/component/chart-and-gauge.js.map +1 -1
  8. package/dist/src/component/container.d.ts +2 -2
  9. package/dist/src/component/container.js.map +1 -1
  10. package/dist/src/component/data-source.d.ts +2 -2
  11. package/dist/src/component/data-source.js.map +1 -1
  12. package/dist/src/component/etc.d.ts +2 -2
  13. package/dist/src/component/etc.js.map +1 -1
  14. package/dist/src/component/form.d.ts +2 -2
  15. package/dist/src/component/form.js.map +1 -1
  16. package/dist/src/component/iot.d.ts +2 -2
  17. package/dist/src/component/iot.js.map +1 -1
  18. package/dist/src/component/line.d.ts +2 -2
  19. package/dist/src/component/line.js.map +1 -1
  20. package/dist/src/component/shape.d.ts +2 -2
  21. package/dist/src/component/shape.js.map +1 -1
  22. package/dist/src/component/table.d.ts +2 -2
  23. package/dist/src/component/table.js.map +1 -1
  24. package/dist/src/component/text-and-media.d.ts +2 -2
  25. package/dist/src/component/text-and-media.js.map +1 -1
  26. package/dist/src/component/warehouse.d.ts +2 -2
  27. package/dist/src/component/warehouse.js.map +1 -1
  28. package/dist/src/graphql/board.d.ts +6 -0
  29. package/dist/src/graphql/board.js +130 -0
  30. package/dist/src/graphql/board.js.map +1 -0
  31. package/dist/src/graphql/favorite-board.d.ts +1 -0
  32. package/dist/src/graphql/favorite-board.js +23 -0
  33. package/dist/src/graphql/favorite-board.js.map +1 -0
  34. package/dist/src/graphql/group.d.ts +7 -0
  35. package/dist/src/graphql/group.js +125 -0
  36. package/dist/src/graphql/group.js.map +1 -0
  37. package/dist/src/graphql/index.d.ts +4 -0
  38. package/dist/src/graphql/index.js +5 -0
  39. package/dist/src/graphql/index.js.map +1 -0
  40. package/dist/src/graphql/play-group.d.ts +8 -0
  41. package/dist/src/graphql/play-group.js +173 -0
  42. package/dist/src/graphql/play-group.js.map +1 -0
  43. package/dist/src/index.d.ts +3 -0
  44. package/dist/src/index.js +3 -0
  45. package/dist/src/index.js.map +1 -1
  46. package/dist/src/modeller/component-toolbar/component-toolbar.js +35 -1
  47. package/dist/src/modeller/component-toolbar/component-toolbar.js.map +1 -1
  48. package/dist/src/modeller/component-toolbar/mode-icons.d.ts +2 -0
  49. package/dist/src/modeller/component-toolbar/mode-icons.js +86 -0
  50. package/dist/src/modeller/component-toolbar/mode-icons.js.map +1 -0
  51. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.d.ts +2 -2
  52. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js +4 -5
  53. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js.map +1 -1
  54. package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +2 -2
  55. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +3 -3
  56. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
  57. package/dist/src/modeller/property-sidebar/effects/effects.js +2 -2
  58. package/dist/src/modeller/property-sidebar/effects/effects.js.map +1 -1
  59. package/dist/src/modeller/property-sidebar/effects/property-animation.d.ts +1 -1
  60. package/dist/src/modeller/property-sidebar/effects/property-animation.js +2 -2
  61. package/dist/src/modeller/property-sidebar/effects/property-animation.js.map +1 -1
  62. package/dist/src/modeller/property-sidebar/effects/property-animations.js +2 -2
  63. package/dist/src/modeller/property-sidebar/effects/property-animations.js.map +1 -1
  64. package/dist/src/modeller/property-sidebar/effects/property-event-hover.d.ts +1 -1
  65. package/dist/src/modeller/property-sidebar/effects/property-event-hover.js +3 -3
  66. package/dist/src/modeller/property-sidebar/effects/property-event-hover.js.map +1 -1
  67. package/dist/src/modeller/property-sidebar/effects/property-event-tap.d.ts +1 -1
  68. package/dist/src/modeller/property-sidebar/effects/property-event-tap.js +3 -3
  69. package/dist/src/modeller/property-sidebar/effects/property-event-tap.js.map +1 -1
  70. package/dist/src/modeller/property-sidebar/effects/property-event.js +2 -2
  71. package/dist/src/modeller/property-sidebar/effects/property-event.js.map +1 -1
  72. package/dist/src/modeller/property-sidebar/effects/property-shadow.js +2 -2
  73. package/dist/src/modeller/property-sidebar/effects/property-shadow.js.map +1 -1
  74. package/dist/src/modeller/property-sidebar/inspector/inspector.d.ts +1 -1
  75. package/dist/src/modeller/property-sidebar/inspector/inspector.js +1 -1
  76. package/dist/src/modeller/property-sidebar/inspector/inspector.js.map +1 -1
  77. package/dist/src/modeller/property-sidebar/shapes/shapes.d.ts +2 -2
  78. package/dist/src/modeller/property-sidebar/shapes/shapes.js +3 -3
  79. package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
  80. package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.js +1 -1
  81. package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.js.map +1 -1
  82. package/dist/src/ox-board-list.d.ts +2 -0
  83. package/dist/src/ox-board-list.js +427 -0
  84. package/dist/src/ox-board-list.js.map +1 -0
  85. package/dist/src/ox-board-modeller.d.ts +5 -5
  86. package/dist/src/ox-board-modeller.js +3 -3
  87. package/dist/src/ox-board-modeller.js.map +1 -1
  88. package/dist/src/types.d.ts +18 -1
  89. package/dist/src/types.js.map +1 -1
  90. package/dist/tsconfig.tsbuildinfo +1 -1
  91. package/package.json +23 -10
  92. package/src/component/3d.ts +2 -2
  93. package/src/component/chart-and-gauge.ts +2 -2
  94. package/src/component/container.ts +2 -2
  95. package/src/component/data-source.ts +2 -2
  96. package/src/component/etc.ts +2 -2
  97. package/src/component/form.ts +2 -2
  98. package/src/component/iot.ts +2 -2
  99. package/src/component/line.ts +2 -2
  100. package/src/component/shape.ts +2 -2
  101. package/src/component/table.ts +2 -2
  102. package/src/component/text-and-media.ts +2 -2
  103. package/src/component/warehouse.ts +2 -2
  104. package/src/graphql/board.ts +144 -0
  105. package/src/graphql/favorite-board.ts +25 -0
  106. package/src/graphql/group.ts +138 -0
  107. package/src/graphql/index.ts +4 -0
  108. package/src/graphql/play-group.ts +189 -0
  109. package/src/index.ts +5 -0
  110. package/src/modeller/component-toolbar/component-toolbar.ts +42 -4
  111. package/src/modeller/component-toolbar/mode-icons.ts +86 -0
  112. package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +5 -5
  113. package/src/modeller/property-sidebar/data-binding/data-binding.ts +5 -4
  114. package/src/modeller/property-sidebar/effects/effects.ts +2 -3
  115. package/src/modeller/property-sidebar/effects/property-animation.ts +2 -2
  116. package/src/modeller/property-sidebar/effects/property-animations.ts +2 -3
  117. package/src/modeller/property-sidebar/effects/property-event-hover.ts +4 -3
  118. package/src/modeller/property-sidebar/effects/property-event-tap.ts +4 -3
  119. package/src/modeller/property-sidebar/effects/property-event.ts +2 -3
  120. package/src/modeller/property-sidebar/effects/property-shadow.ts +2 -3
  121. package/src/modeller/property-sidebar/inspector/inspector.ts +1 -1
  122. package/src/modeller/property-sidebar/shapes/shapes.ts +3 -3
  123. package/src/modeller/property-sidebar/specifics/specific-properties-builder.ts +1 -1
  124. package/src/ox-board-list.ts +459 -0
  125. package/src/ox-board-modeller.ts +9 -8
  126. package/src/types.ts +21 -1
  127. package/tsconfig.json +1 -0
  128. package/web-dev-server.config.mjs +2 -0
  129. package/yarn-error.log +18355 -0
@@ -0,0 +1,86 @@
1
+ export const ICON_EDIT_MODE = `
2
+ <svg
3
+ version="1.1"
4
+ id="Layer_1"
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ xmlns:xlink="http://www.w3.org/1999/xlink"
7
+ x="0px"
8
+ y="0px"
9
+ viewBox="0 0 30 30"
10
+ style="enable-background:new 0 0 30 30;"
11
+ xml:space="preserve"
12
+ >
13
+ <style type="text/css">
14
+ .st0 {
15
+ fill: {{strokeColor}};
16
+ }
17
+ .st1 {
18
+ fill: none;
19
+ stroke: {{strokeColor}};
20
+ stroke-width: 0.75;
21
+ stroke-linejoin: round;
22
+ stroke-miterlimit: 10;
23
+ }
24
+ </style>
25
+ <g>
26
+ <polygon class="st0" points="2.7,3.9 2.7,22.8 7.8,17.2 16.1,16.9 " />
27
+ <path
28
+ class="st1"
29
+ d="M27.7,20.1L26.1,19c-0.1,0-0.2,0-0.2,0c0,0.1,0,0.2,0,0.2l1.2,0.9h-4.9v-5l0.9,1.2c0,0,0.1,0.1,0.1,0.1
30
+ c0,0,0.1,0,0.1,0c0.1,0,0.1-0.1,0-0.2l-1.1-1.6c-0.1-0.1-0.2-0.1-0.2,0L20.8,16c0,0.1,0,0.2,0,0.2s0.2,0,0.2,0l0.9-1.2v5h-5
31
+ l1.2-0.9c0.1,0,0.1-0.1,0-0.2c0-0.1-0.1-0.1-0.2,0l-1.6,1.1c0,0-0.1,0.1-0.1,0.1c0,0,0,0.1,0.1,0.1l1.6,1.1c0,0,0.1,0,0.1,0
32
+ c0,0,0.1,0,0.1-0.1c0-0.1,0-0.2,0-0.2l-1.2-0.9h5v5L21,24.2c0-0.1-0.1-0.1-0.2,0c-0.1,0-0.1,0.1,0,0.2l1.1,1.6c0,0,0.1,0.1,0.1,0.1
33
+ s0.1,0,0.1-0.1l1.1-1.6c0-0.1,0-0.2,0-0.2c-0.1,0-0.2,0-0.2,0l-0.9,1.2v-5h4.9l-1.2,0.9c-0.1,0-0.1,0.1,0,0.2c0,0,0.1,0.1,0.1,0.1
34
+ c0,0,0.1,0,0.1,0l1.6-1.1c0,0,0.1-0.1,0.1-0.1C27.7,20.2,27.7,20.1,27.7,20.1z"
35
+ />
36
+ </g>
37
+ </svg>
38
+ `
39
+
40
+ export const ICON_SHIFT_MODE = `
41
+ <svg
42
+ version="1.1"
43
+ id="Layer_1"
44
+ xmlns="http://www.w3.org/2000/svg"
45
+ xmlns:xlink="http://www.w3.org/1999/xlink"
46
+ x="0px"
47
+ y="0px"
48
+ viewBox="0 0 30 30"
49
+ style="enable-background:new 0 0 30 30;"
50
+ xml:space="preserve"
51
+ >
52
+ <style type="text/css">
53
+ .st0 {
54
+ fill-rule: evenodd;
55
+ clip-rule: evenodd;
56
+ }
57
+ .st1 {
58
+ fill: {{strokeColor}};
59
+ stroke: {{strokeColor}};
60
+ stroke-width: 0.75;
61
+ stroke-linejoin: round;
62
+ stroke-miterlimit: 10;
63
+ }
64
+ </style>
65
+ <g>
66
+ <path
67
+ class="st0"
68
+ d="M7.8,23.2c1.6,0,3.8,0,5.7,0c0.8,0,1.3-0.3,1.6-1.2c0.4-2.9,1.5-4.9,2.4-6.9s1.4-2.5,1.6-3.4
69
+ c0.1-0.5,0.2-1.6-0.4-1.9c-0.6-0.3-1.2,0.1-1.9,1.3c-0.8,1.6-1,2-1.4,2c-0.3,0-0.1-4,0-5.4c0.1-1.3-0.6-1.8-1.3-1.8
70
+ c-0.8-0.1-1.5,0.4-1.5,1.5c0,1.5-0.2,5.2-0.7,5.2c-0.4,0-0.3-4.3-0.6-6.7c-0.1-1-0.6-1.8-1.5-1.8C9.1,4.2,8.4,4.7,8.3,5.8
71
+ c-0.1,1.3,1,6.7,0.5,6.7c-0.4,0-1.4-3.3-2.3-5.1C6,6.5,5.6,6,4.6,6.4C3.9,6.7,3.5,7.6,3.8,8.5c0.5,1.2,2.7,6.8,2.2,6.8
72
+ c-0.4,0-1.4-1.4-2.7-2.1c-1.1-0.6-1.8-0.4-2.1-0.1c-0.4,0.3-0.7,1,0.9,2.8c0.6,0.6,3.1,2.3,3.7,3.2c0.7,1.3,0.6,1,0.8,2.8
73
+ C6.7,22.7,7,23.2,7.8,23.2z"
74
+ />
75
+ <path
76
+ class="st1"
77
+ d="M28.7,20.1L27.1,19c-0.1,0-0.2,0-0.2,0c0,0.1,0,0.2,0,0.2l1.2,0.9h-4.9v-5l0.9,1.2c0,0,0.1,0.1,0.1,0.1
78
+ c0,0,0.1,0,0.1,0c0.1,0,0.1-0.1,0-0.2l-1.1-1.6c-0.1-0.1-0.2-0.1-0.2,0L21.8,16c0,0.1,0,0.2,0,0.2s0.2,0,0.2,0l0.9-1.2v5h-5
79
+ l1.2-0.9c0.1,0,0.1-0.1,0-0.2c0-0.1-0.1-0.1-0.2,0l-1.6,1.1c0,0-0.1,0.1-0.1,0.1c0,0,0,0.1,0.1,0.1l1.6,1.1c0,0,0.1,0,0.1,0
80
+ c0,0,0.1,0,0.1-0.1c0-0.1,0-0.2,0-0.2l-1.2-0.9h5v5L22,24.2c0-0.1-0.1-0.1-0.2,0c-0.1,0-0.1,0.1,0,0.2l1.1,1.6c0,0,0.1,0.1,0.1,0.1
81
+ s0.1,0,0.1-0.1l1.1-1.6c0-0.1,0-0.2,0-0.2c-0.1,0-0.2,0-0.2,0l-0.9,1.2v-5h4.9l-1.2,0.9c-0.1,0-0.1,0.1,0,0.2c0,0,0.1,0.1,0.1,0.1
82
+ c0,0,0.1,0,0.1,0l1.6-1.1c0,0,0.1-0.1,0.1-0.1C28.7,20.2,28.7,20.1,28.7,20.1z"
83
+ />
84
+ </g>
85
+ </svg>
86
+ `
@@ -2,15 +2,15 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- // import '@things-factory/modeller-ui/client/editors/things-editor-code'
6
5
  import '@things-factory/modeller-ui/client/editors/things-editor-value-map'
7
6
  import '@things-factory/modeller-ui/client/editors/things-editor-value-range'
8
- import '@operato/input/dist/src/ox-buttons-radio'
9
- import '@operato/input/dist/src/ox-input-code'
7
+ import '@operato/input/ox-buttons-radio.js'
8
+ import '@operato/input/ox-input-code.js'
9
+
10
+ import { css, html, LitElement, PropertyValues } from 'lit'
11
+ import { customElement, property, query, state } from 'lit/decorators.js'
10
12
 
11
- import { LitElement, PropertyValues, css, html } from 'lit'
12
13
  import { Properties, Scene } from '@hatiolab/things-scene'
13
- import { customElement, property, query, state } from 'lit/decorators'
14
14
 
15
15
  export type Rule =
16
16
  | {
@@ -5,12 +5,13 @@
5
5
  import './data-binding-mapper'
6
6
  import '@material/mwc-icon'
7
7
  import '@things-factory/help'
8
- import '@operato/input/dist/src/ox-buttons-radio.js'
9
- import '@operato/input/dist/src/ox-input-data'
8
+ import '@operato/input/ox-buttons-radio.js'
9
+ import '@operato/input/ox-input-data.js'
10
+
11
+ import { css, html, PropertyValues } from 'lit'
12
+ import { customElement, property, query, state } from 'lit/decorators.js'
10
13
 
11
14
  import { Properties, Scene } from '@hatiolab/things-scene'
12
- import { PropertyValues, css, html } from 'lit'
13
- import { customElement, property, query, state } from 'lit/decorators'
14
15
 
15
16
  import { AbstractProperty } from '../abstract-property'
16
17
  import { PropertySharedStyle } from '../property-shared-style'
@@ -6,13 +6,12 @@ import './property-animations'
6
6
  import './property-event'
7
7
  import './property-shadow'
8
8
 
9
- import { html } from 'lit'
10
- import { customElement, property } from 'lit/decorators'
11
-
12
9
  import { Properties, Scene } from '@hatiolab/things-scene'
10
+ import { customElement, property } from 'lit/decorators.js'
13
11
 
14
12
  import { AbstractProperty } from '../abstract-property'
15
13
  import { PropertySharedStyle } from '../property-shared-style'
14
+ import { html } from 'lit'
16
15
 
17
16
  @customElement('property-effect')
18
17
  class PropertyEffects extends AbstractProperty {
@@ -2,10 +2,10 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@operato/input/dist/src/ox-input-angle'
5
+ import '@operato/input/ox-input-angle.js'
6
6
 
7
7
  import { html, LitElement } from 'lit'
8
- import { customElement, property } from 'lit/decorators'
8
+ import { customElement, property } from 'lit/decorators.js'
9
9
 
10
10
  import { Properties, Scene } from '@hatiolab/things-scene'
11
11
 
@@ -5,10 +5,9 @@
5
5
  import './property-animation'
6
6
  import '@material/mwc-icon'
7
7
 
8
- import { css, html, LitElement } from 'lit'
9
- import { customElement, property, state } from 'lit/decorators'
10
-
8
+ import { LitElement, css, html } from 'lit'
11
9
  import { Properties, Scene } from '@hatiolab/things-scene'
10
+ import { customElement, property, state } from 'lit/decorators.js'
12
11
 
13
12
  import { PropertySharedStyle } from '../property-shared-style'
14
13
  import { convert } from './value-converter'
@@ -2,11 +2,12 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@operato/input/dist/src/ox-input-data'
5
+ import '@operato/input/ox-input-data.js'
6
+
7
+ import { html, LitElement } from 'lit'
8
+ import { customElement, property } from 'lit/decorators.js'
6
9
 
7
- import { LitElement, html } from 'lit'
8
10
  import { Properties, Scene } from '@hatiolab/things-scene'
9
- import { customElement, property } from 'lit/decorators'
10
11
 
11
12
  import { EffectsSharedStyle } from './effects-shared-style'
12
13
  import { convert } from './value-converter'
@@ -2,11 +2,12 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@operato/input/dist/src/ox-input-data'
5
+ import '@operato/input/ox-input-data.js'
6
+
7
+ import { html, LitElement } from 'lit'
8
+ import { customElement, property } from 'lit/decorators.js'
6
9
 
7
- import { LitElement, html } from 'lit'
8
10
  import { Properties, Scene } from '@hatiolab/things-scene'
9
- import { customElement, property } from 'lit/decorators'
10
11
 
11
12
  import { EffectsSharedStyle } from './effects-shared-style'
12
13
  import { convert } from './value-converter'
@@ -5,10 +5,9 @@
5
5
  import './property-event-hover'
6
6
  import './property-event-tap'
7
7
 
8
- import { html, LitElement } from 'lit'
9
- import { customElement, property } from 'lit/decorators'
10
-
8
+ import { LitElement, html } from 'lit'
11
9
  import { Properties, Scene } from '@hatiolab/things-scene'
10
+ import { customElement, property } from 'lit/decorators.js'
12
11
 
13
12
  import { PropertySharedStyle } from '../property-shared-style'
14
13
  import { convert } from './value-converter'
@@ -4,11 +4,10 @@
4
4
 
5
5
  import '@things-factory/modeller-ui/client/editors/things-editor-color'
6
6
 
7
- import { css, html, LitElement } from 'lit'
8
- import { customElement, property } from 'lit/decorators'
7
+ import { LitElement, css, html } from 'lit'
8
+ import { customElement, property } from 'lit/decorators.js'
9
9
 
10
10
  import { Properties } from '@hatiolab/things-scene'
11
-
12
11
  import { convert } from './value-converter'
13
12
 
14
13
  /**
@@ -1,6 +1,6 @@
1
1
  import { Component, Container, Properties, Scene } from '@hatiolab/things-scene'
2
2
  import { LitElement, PropertyValues, TemplateResult, css, html } from 'lit'
3
- import { customElement, property } from 'lit/decorators'
3
+ import { customElement, property } from 'lit/decorators.js'
4
4
 
5
5
  import Sortable from 'sortablejs'
6
6
 
@@ -2,12 +2,12 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@operato/input/dist/src/ox-input-angle'
6
- import '@operato/input/dist/src/ox-buttons-radio'
5
+ import '@operato/input/ox-input-angle.js'
6
+ import '@operato/input/ox-buttons-radio.js'
7
7
  import '@material/mwc-icon'
8
8
 
9
9
  import { css, html } from 'lit'
10
- import { customElement, property, state } from 'lit/decorators'
10
+ import { customElement, property, state } from 'lit/decorators.js'
11
11
 
12
12
  import { BOUNDS, Component, Properties } from '@hatiolab/things-scene'
13
13
 
@@ -5,7 +5,7 @@
5
5
  import '@things-factory/modeller-ui/client/editors/things-editor-property'
6
6
 
7
7
  import { LitElement, PropertyValues } from 'lit'
8
- import { customElement, property } from 'lit/decorators'
8
+ import { customElement, property } from 'lit/decorators.js'
9
9
 
10
10
  import { OxPropertyEditor } from '@operato/property-editor'
11
11
  import { Properties } from '@hatiolab/things-scene'