@operato/board 0.2.52 → 0.3.7

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 (147) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/custom-elements.json +2565 -2474
  3. package/demo/index.html +3 -3
  4. package/dist/src/component/container.js +2 -2
  5. package/dist/src/component/container.js.map +1 -1
  6. package/dist/src/component/etc.js +3 -3
  7. package/dist/src/component/etc.js.map +1 -1
  8. package/dist/src/component/line.js +5 -5
  9. package/dist/src/component/line.js.map +1 -1
  10. package/dist/src/component/shape.js +6 -6
  11. package/dist/src/component/shape.js.map +1 -1
  12. package/dist/src/component/text-and-media.js +5 -5
  13. package/dist/src/component/text-and-media.js.map +1 -1
  14. package/dist/src/index.d.ts +3 -0
  15. package/dist/src/index.js +3 -0
  16. package/dist/src/index.js.map +1 -1
  17. package/dist/src/modeller/component-toolbar/component-menu.js +2 -2
  18. package/dist/src/modeller/component-toolbar/component-menu.js.map +1 -1
  19. package/dist/src/modeller/component-toolbar/component-toolbar.js +35 -1
  20. package/dist/src/modeller/component-toolbar/component-toolbar.js.map +1 -1
  21. package/dist/src/modeller/component-toolbar/mode-icons.d.ts +2 -0
  22. package/dist/src/modeller/component-toolbar/mode-icons.js +86 -0
  23. package/dist/src/modeller/component-toolbar/mode-icons.js.map +1 -0
  24. package/dist/src/modeller/edit-toolbar-style.js +4 -4
  25. package/dist/src/modeller/edit-toolbar-style.js.map +1 -1
  26. package/dist/src/modeller/edit-toolbar.d.ts +1 -1
  27. package/dist/src/modeller/edit-toolbar.js +1 -1
  28. package/dist/src/modeller/edit-toolbar.js.map +1 -1
  29. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.d.ts +2 -2
  30. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js +4 -5
  31. package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js.map +1 -1
  32. package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +2 -2
  33. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +3 -3
  34. package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
  35. package/dist/src/modeller/property-sidebar/effects/effects.js +2 -2
  36. package/dist/src/modeller/property-sidebar/effects/effects.js.map +1 -1
  37. package/dist/src/modeller/property-sidebar/effects/property-animation.d.ts +1 -1
  38. package/dist/src/modeller/property-sidebar/effects/property-animation.js +2 -2
  39. package/dist/src/modeller/property-sidebar/effects/property-animation.js.map +1 -1
  40. package/dist/src/modeller/property-sidebar/effects/property-animations.js +2 -2
  41. package/dist/src/modeller/property-sidebar/effects/property-animations.js.map +1 -1
  42. package/dist/src/modeller/property-sidebar/effects/property-event-hover.d.ts +1 -1
  43. package/dist/src/modeller/property-sidebar/effects/property-event-hover.js +3 -3
  44. package/dist/src/modeller/property-sidebar/effects/property-event-hover.js.map +1 -1
  45. package/dist/src/modeller/property-sidebar/effects/property-event-tap.d.ts +1 -1
  46. package/dist/src/modeller/property-sidebar/effects/property-event-tap.js +3 -3
  47. package/dist/src/modeller/property-sidebar/effects/property-event-tap.js.map +1 -1
  48. package/dist/src/modeller/property-sidebar/effects/property-event.js +2 -2
  49. package/dist/src/modeller/property-sidebar/effects/property-event.js.map +1 -1
  50. package/dist/src/modeller/property-sidebar/effects/property-shadow.js +2 -2
  51. package/dist/src/modeller/property-sidebar/effects/property-shadow.js.map +1 -1
  52. package/dist/src/modeller/property-sidebar/inspector/inspector.d.ts +1 -1
  53. package/dist/src/modeller/property-sidebar/inspector/inspector.js +3 -3
  54. package/dist/src/modeller/property-sidebar/inspector/inspector.js.map +1 -1
  55. package/dist/src/modeller/property-sidebar/property-shared-style.js +1 -1
  56. package/dist/src/modeller/property-sidebar/property-shared-style.js.map +1 -1
  57. package/dist/src/modeller/property-sidebar/property-sidebar.js +2 -2
  58. package/dist/src/modeller/property-sidebar/property-sidebar.js.map +1 -1
  59. package/dist/src/modeller/property-sidebar/shapes/box-padding-editor-styles.js +1 -1
  60. package/dist/src/modeller/property-sidebar/shapes/box-padding-editor-styles.js.map +1 -1
  61. package/dist/src/modeller/property-sidebar/shapes/shapes.d.ts +2 -2
  62. package/dist/src/modeller/property-sidebar/shapes/shapes.js +5 -5
  63. package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
  64. package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.js +10 -7
  65. package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.js.map +1 -1
  66. package/dist/src/modeller/property-sidebar/styles/styles.js +5 -5
  67. package/dist/src/modeller/property-sidebar/styles/styles.js.map +1 -1
  68. package/dist/src/ox-board-list.d.ts +1 -1
  69. package/dist/src/ox-board-list.js +4 -4
  70. package/dist/src/ox-board-list.js.map +1 -1
  71. package/dist/src/ox-board-modeller.d.ts +2 -2
  72. package/dist/src/ox-board-modeller.js +23 -3
  73. package/dist/src/ox-board-modeller.js.map +1 -1
  74. package/dist/tsconfig.tsbuildinfo +1 -1
  75. package/{assets/images → icons}/components/audio.png +0 -0
  76. package/{assets/images → icons}/components/both-arrow.png +0 -0
  77. package/{assets/images → icons}/components/color-image.png +0 -0
  78. package/{assets/images → icons}/components/container.png +0 -0
  79. package/{assets/images → icons}/components/dash.png +0 -0
  80. package/{assets/images → icons}/components/donut.png +0 -0
  81. package/{assets/images → icons}/components/ellipse.png +0 -0
  82. package/{assets/images → icons}/components/forklift.png +0 -0
  83. package/{assets/images → icons}/components/gif-image.png +0 -0
  84. package/{assets/images → icons}/components/global-reference.png +0 -0
  85. package/{assets/images → icons}/components/gray-image.png +0 -0
  86. package/{assets/images → icons}/components/humidity-sensor.png +0 -0
  87. package/{assets/images → icons}/components/info-window.png +0 -0
  88. package/{assets/images → icons}/components/line.png +0 -0
  89. package/{assets/images → icons}/components/local-reference.png +0 -0
  90. package/{assets/images → icons}/components/no-image.png +0 -0
  91. package/{assets/images → icons}/components/person.png +0 -0
  92. package/{assets/images → icons}/components/polygon.png +0 -0
  93. package/{assets/images → icons}/components/polyline.png +0 -0
  94. package/{assets/images → icons}/components/popup.png +0 -0
  95. package/{assets/images → icons}/components/rect.png +0 -0
  96. package/{assets/images → icons}/components/single-arrow.png +0 -0
  97. package/{assets/images → icons}/components/star.png +0 -0
  98. package/{assets/images → icons}/components/text.png +0 -0
  99. package/{assets/images → icons}/components/triangle.png +0 -0
  100. package/icons/icon-collapse-active.png +0 -0
  101. package/icons/icon-collapse.png +0 -0
  102. package/icons/icon-fullscreen.png +0 -0
  103. package/icons/icon-htoolbar.png +0 -0
  104. package/icons/icon-properties-arrow-type.png +0 -0
  105. package/icons/icon-properties-gradient-direction.png +0 -0
  106. package/icons/icon-properties-label.png +0 -0
  107. package/icons/icon-properties-line-type.png +0 -0
  108. package/icons/icon-properties-padding.png +0 -0
  109. package/icons/icon-properties-ratio.png +0 -0
  110. package/icons/icon-properties-table.png +0 -0
  111. package/icons/icon-properties.png +0 -0
  112. package/icons/icon-shell-inspector.png +0 -0
  113. package/package.json +21 -14
  114. package/src/component/container.ts +3 -2
  115. package/src/component/etc.ts +4 -3
  116. package/src/component/line.ts +6 -5
  117. package/src/component/shape.ts +7 -6
  118. package/src/component/text-and-media.ts +6 -5
  119. package/src/index.ts +5 -0
  120. package/src/modeller/component-toolbar/component-menu.ts +5 -3
  121. package/src/modeller/component-toolbar/component-toolbar.ts +39 -1
  122. package/src/modeller/component-toolbar/mode-icons.ts +86 -0
  123. package/src/modeller/edit-toolbar-style.ts +4 -4
  124. package/src/modeller/edit-toolbar.ts +3 -2
  125. package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +5 -5
  126. package/src/modeller/property-sidebar/data-binding/data-binding.ts +5 -4
  127. package/src/modeller/property-sidebar/effects/effects.ts +2 -3
  128. package/src/modeller/property-sidebar/effects/property-animation.ts +2 -2
  129. package/src/modeller/property-sidebar/effects/property-animations.ts +2 -3
  130. package/src/modeller/property-sidebar/effects/property-event-hover.ts +4 -3
  131. package/src/modeller/property-sidebar/effects/property-event-tap.ts +4 -3
  132. package/src/modeller/property-sidebar/effects/property-event.ts +2 -3
  133. package/src/modeller/property-sidebar/effects/property-shadow.ts +2 -2
  134. package/src/modeller/property-sidebar/inspector/inspector.ts +5 -5
  135. package/src/modeller/property-sidebar/property-shared-style.ts +1 -1
  136. package/src/modeller/property-sidebar/property-sidebar.ts +3 -3
  137. package/src/modeller/property-sidebar/shapes/box-padding-editor-styles.ts +1 -1
  138. package/src/modeller/property-sidebar/shapes/shapes.ts +5 -5
  139. package/src/modeller/property-sidebar/specifics/specific-properties-builder.ts +12 -8
  140. package/src/modeller/property-sidebar/styles/styles.ts +5 -5
  141. package/src/ox-board-list.ts +7 -7
  142. package/src/ox-board-modeller.ts +32 -5
  143. package/tsconfig.json +1 -0
  144. package/web-dev-server.config.mjs +2 -0
  145. package/yarn-error.log +18355 -0
  146. package/@types/global/index.d.ts +0 -1
  147. package/assets/images/icon-vtoolbar.png +0 -0
@@ -102,7 +102,7 @@ export const PropertySharedStyle = css`
102
102
  .icon-only-label {
103
103
  grid-column: span 1;
104
104
 
105
- background: url(/assets/images/icon-properties-label.png) no-repeat;
105
+ background: var(--url-icon-properties-label) no-repeat;
106
106
  float: left;
107
107
  margin: 0;
108
108
  align-self: stretch;
@@ -10,12 +10,12 @@ import './specifics/specifics'
10
10
  import './data-binding/data-binding'
11
11
  import './inspector/inspector'
12
12
 
13
- import { BOUNDS, Component, Model, Scene } from '@hatiolab/things-scene'
14
- import { LitElement, PropertyValues, css, html } from 'lit'
13
+ import { css, html, LitElement, PropertyValues } from 'lit'
15
14
  import { customElement, property } from 'lit/decorators.js'
15
+ import deepClone from 'lodash/cloneDeep'
16
16
 
17
+ import { BOUNDS, Component, Model, Scene } from '@hatiolab/things-scene'
17
18
  import { ScrollbarStyles } from '@operato/styles'
18
- import deepClone from 'lodash/cloneDeep'
19
19
 
20
20
  @customElement('property-sidebar')
21
21
  class PropertySidebar extends LitElement {
@@ -6,7 +6,7 @@ export const BoxPaddingEditorStyles = css`
6
6
  }
7
7
 
8
8
  .box-padding td {
9
- background: url(/assets/images/icon-properties-padding.png) 50% 0 no-repeat;
9
+ background: var(--url-icon-properties-padding) 50% 0 no-repeat;
10
10
  }
11
11
 
12
12
  .box-padding tr:nth-child(1),
@@ -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
 
@@ -39,7 +39,7 @@ class PropertyShapes extends AbstractProperty {
39
39
  `,
40
40
  css`
41
41
  .icon-label label {
42
- background: url(/assets/images/icon-properties-label.png) 7px -900px no-repeat;
42
+ background: var(--url-icon-properties-label) 7px -900px no-repeat;
43
43
  }
44
44
 
45
45
  .icon-label label.width {
@@ -94,7 +94,7 @@ class PropertyShapes extends AbstractProperty {
94
94
  }
95
95
 
96
96
  ox-buttons-radio div {
97
- background: url(/assets/images/icon-properties.png) no-repeat;
97
+ background: var(--url-icon-properties) no-repeat;
98
98
  }
99
99
 
100
100
  ox-buttons-radio div[data-value='left'] {
@@ -4,11 +4,11 @@
4
4
 
5
5
  import '@things-factory/modeller-ui/client/editors/things-editor-property'
6
6
 
7
- import { LitElement, PropertyValues } from 'lit'
8
- import { customElement, property } from 'lit/decorators'
7
+ import { html, LitElement, PropertyValues } from 'lit'
8
+ import { customElement, property } from 'lit/decorators.js'
9
9
 
10
- import { OxPropertyEditor } from '@operato/property-editor'
11
10
  import { Properties } from '@hatiolab/things-scene'
11
+ import { OxPropertyEditor } from '@operato/property-editor'
12
12
 
13
13
  /**
14
14
  모든 에디터들은 change 이벤트를 지원해야 한다. 또한, 모든 에디터들은 value속성에 값을 가져야 한다.
@@ -63,8 +63,12 @@ class SpecificPropertiesBuilder extends LitElement {
63
63
  @property({ type: Array }) props: any[] = []
64
64
  @property({ type: Object }) propertyEditor: any
65
65
 
66
+ render() {
67
+ return html`<slot></slot>`
68
+ }
69
+
66
70
  firstUpdated() {
67
- this.renderRoot.addEventListener('change', this._onValueChanged.bind(this))
71
+ this.addEventListener('change', this._onValueChanged.bind(this))
68
72
  }
69
73
 
70
74
  updated(changes: PropertyValues<this>) {
@@ -73,7 +77,7 @@ class SpecificPropertiesBuilder extends LitElement {
73
77
  }
74
78
 
75
79
  _onPropsChanged(props: any[]) {
76
- this.renderRoot.textContent = ''
80
+ this.textContent = ''
77
81
  ;(props || []).forEach(prop => {
78
82
  let elementType = OxPropertyEditor.getEditor(prop.type)
79
83
  if (!elementType) {
@@ -93,16 +97,16 @@ class SpecificPropertiesBuilder extends LitElement {
93
97
  element.property = prop.property
94
98
  element.setAttribute('property-editor', 'true')
95
99
 
96
- this.renderRoot.appendChild(element)
100
+ this.appendChild(element)
97
101
  })
98
102
  }
99
103
 
100
104
  _setValues() {
101
105
  this.value &&
102
- Array.from(this.renderRoot.querySelectorAll('[name]')).forEach((prop: Properties) => {
106
+ Array.from(this.querySelectorAll('[name]')).forEach((prop: Properties) => {
103
107
  let name = prop.getAttribute('name')
104
108
  var convertedValue = convertValue(prop.type, this.value[name])
105
- if (convertedValue == undefined) convertedValue = (DEFAULT_VALUE as any)[prop.type]
109
+ if (convertedValue === undefined) convertedValue = (DEFAULT_VALUE as any)[prop.type]
106
110
  prop.value = convertedValue
107
111
  prop.observe && prop.observe.call(prop, prop.value)
108
112
  })
@@ -39,7 +39,7 @@ class PropertyStyles extends AbstractProperty {
39
39
  display: inline-block;
40
40
  border-bottom: 2px solid #fff;
41
41
 
42
- background: url(/assets/images/icon-properties.png) no-repeat;
42
+ background: var(--url-icon-properties) no-repeat;
43
43
  background-size: 70%;
44
44
  }
45
45
 
@@ -68,7 +68,7 @@ class PropertyStyles extends AbstractProperty {
68
68
  max-width: 100px;
69
69
  }
70
70
  .line-type paper-item {
71
- background: url(/assets/images/icon-properties-line-type.png) 50% 0 no-repeat;
71
+ background: var(--url-icon-properties-line-type) 50% 0 no-repeat;
72
72
  min-height: 25px;
73
73
  padding: 3px 9px;
74
74
  width: 80px;
@@ -100,7 +100,7 @@ class PropertyStyles extends AbstractProperty {
100
100
  }
101
101
 
102
102
  .line-type .paper-input-container input {
103
- background: url(/assets/images/icon-properties-line-type.png) 50% 0 no-repeat !important;
103
+ background: var(--url-icon-properties-line-type) 50% 0 no-repeat !important;
104
104
  }
105
105
  .line-type.solid .paper-input-container input {
106
106
  background-position: 50% 5px !important;
@@ -132,7 +132,7 @@ class PropertyStyles extends AbstractProperty {
132
132
  max-width: 140px;
133
133
  }
134
134
  .arrow-type paper-item {
135
- background: url(/assets/images/icon-properties-arrow-type.png) 50% 0 no-repeat;
135
+ background: var(--url-icon-properties-arrow-type) 50% 0 no-repeat;
136
136
  min-height: 30px;
137
137
  padding: 3px 7px;
138
138
  width: 30px;
@@ -230,7 +230,7 @@ class PropertyStyles extends AbstractProperty {
230
230
  }
231
231
 
232
232
  .arrow-type .paper-input-container input {
233
- background: url(/assets/images/icon-properties-arrow-type.png) 110% 0 no-repeat !important;
233
+ background: var(--url-icon-properties-arrow-type) 110% 0 no-repeat !important;
234
234
  }
235
235
  .arrow-type.begin-no .paper-input-container input {
236
236
  background-position: 110% 5px !important;
@@ -1,16 +1,16 @@
1
- import '@operato/popup'
1
+ import '@operato/popup/ox-popup.js'
2
2
  import '@operato/data-grist'
3
3
 
4
- import { Board, BoardGroup } from './types'
5
- import { ColumnConfig, GristData, GristRecord, SortersConfig } from '@operato/data-grist/dist/src/types'
6
- import { LitElement, css, html } from 'lit'
7
- import { createBoard, fetchBoardList } from './graphql/board'
8
- import { customElement, property, query, state } from 'lit/decorators'
4
+ import { css, html, LitElement } from 'lit'
5
+ import { customElement, property, query, state } from 'lit/decorators.js'
9
6
 
10
- import { DataGrist } from '@operato/data-grist'
7
+ import { ColumnConfig, DataGrist, GristData, GristRecord, SortersConfig } from '@operato/data-grist'
11
8
  import { OxPopup } from '@operato/popup'
9
+
10
+ import { createBoard, fetchBoardList } from './graphql/board'
12
11
  import { fetchFavoriteBoardList } from './graphql/favorite-board'
13
12
  import { fetchGroupList } from './graphql/group'
13
+ import { Board } from './types'
14
14
 
15
15
  @customElement('ox-board-list')
16
16
  class BoardList extends LitElement {
@@ -6,18 +6,32 @@ import './modeller/edit-toolbar'
6
6
  import '@hatiolab/things-scene'
7
7
  import './ox-board-viewer'
8
8
 
9
- import { ComponentGroup, ComponentTemplate } from './types'
10
- import { LitElement, css, html } from 'lit'
11
- import { Model, SCENE_MODE, Scene } from '@hatiolab/things-scene'
9
+ import { saveAs } from 'file-saver'
10
+ import { css, html, LitElement } from 'lit'
12
11
  import { customElement, property, query } from 'lit/decorators.js'
13
12
 
14
- import { EditToolbar } from './modeller/edit-toolbar'
13
+ import { Scene, SCENE_MODE } from '@hatiolab/things-scene'
15
14
  import { OxPopup } from '@operato/popup'
16
- import { saveAs } from 'file-saver'
15
+
16
+ import { EditToolbar } from './modeller/edit-toolbar'
17
+ import { ComponentGroup, ComponentTemplate } from './types'
17
18
  import { togglefullscreen } from './utils/fullscreen'
18
19
 
19
20
  const isMacOS = navigator.userAgent.indexOf('Mac') != -1
20
21
 
22
+ const ICON_PROPERTIES = new URL('../../icons/icon-properties.png', import.meta.url).href
23
+ const ICON_PROPERTIES_LINE_TYPE = new URL('../../icons/icon-properties-line-type.png', import.meta.url).href
24
+ const ICON_PROPERTIES_ARROW_TYPE = new URL('../../icons/icon-properties-arrow-type.png', import.meta.url).href
25
+ const ICON_PROPERTIES_LABEL = new URL('../../icons/icon-properties-label.png', import.meta.url).href
26
+ const ICON_PROPERTIES_PADDING = new URL('../../icons/icon-properties-padding.png', import.meta.url).href
27
+
28
+ const ICON_HTOOLBAR = new URL('../../icons/icon-htoolbar.png', import.meta.url).href
29
+ const ICON_FULLSCREEN = new URL('../../icons/icon-fullscreen.png', import.meta.url).href
30
+ const ICON_COLLAPSE = new URL('../../icons/icon-collapse.png', import.meta.url).href
31
+ const ICON_COLLAPSE_ACTIVE = new URL('../../icons/icon-collapse-active.png', import.meta.url).href
32
+
33
+ const ICON_SHELL_INSPECTOR = new URL('../../icons/icon-shell-inspector.png', import.meta.url).href
34
+
21
35
  var Registry: ComponentGroup[] = []
22
36
 
23
37
  @customElement('ox-board-modeller')
@@ -169,6 +183,19 @@ export class BoardModeller extends LitElement {
169
183
  ids = ids.filter(id => !!id).sort()
170
184
  callback(ids)
171
185
  })
186
+
187
+ this.style.setProperty('--url-icon-properties', `url(${ICON_PROPERTIES})`)
188
+ this.style.setProperty('--url-icon-properties-label', `url(${ICON_PROPERTIES_LABEL})`)
189
+ this.style.setProperty('--url-icon-properties-padding', `url(${ICON_PROPERTIES_PADDING})`)
190
+ this.style.setProperty('--url-icon-properties-line-type', `url(${ICON_PROPERTIES_LINE_TYPE})`)
191
+ this.style.setProperty('--url-icon-properties-arrow-type', `url(${ICON_PROPERTIES_ARROW_TYPE})`)
192
+
193
+ this.style.setProperty('--url-icon-htoolbar', `url(${ICON_HTOOLBAR})`)
194
+ this.style.setProperty('--url-icon-fullscreen', `url(${ICON_FULLSCREEN})`)
195
+ this.style.setProperty('--url-icon-collapse', `url(${ICON_COLLAPSE})`)
196
+ this.style.setProperty('--url-icon-collapse-active', `url(${ICON_COLLAPSE_ACTIVE})`)
197
+
198
+ this.style.setProperty('--url-icon-shell-inspector', `url(${ICON_SHELL_INSPECTOR})`)
172
199
  }
173
200
 
174
201
  render() {
package/tsconfig.json CHANGED
@@ -9,6 +9,7 @@
9
9
  "esModuleInterop": false,
10
10
  "allowSyntheticDefaultImports": true,
11
11
  "experimentalDecorators": true,
12
+ "useDefineForClassFields": false,
12
13
  "importHelpers": true,
13
14
  "outDir": "dist",
14
15
  "sourceMap": true,
@@ -1,4 +1,5 @@
1
1
  // import { hmrPlugin, presets } from '@open-wc/dev-server-hmr';
2
+ import image from '@rollup/plugin-image'
2
3
 
3
4
  /** Use Hot Module replacement by adding --hmr to the start command */
4
5
  const hmr = process.argv.includes('--hmr')
@@ -20,6 +21,7 @@ export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
20
21
  // },
21
22
 
22
23
  plugins: [
24
+ image()
23
25
  /** Use Hot Module Replacement by uncommenting. Requires @open-wc/dev-server-hmr plugin */
24
26
  // hmr && hmrPlugin({ exclude: ['**/*/node_modules/**/*'], presets: [presets.litElement] }),
25
27
  ]