@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.
- package/CHANGELOG.md +76 -0
- package/custom-elements.json +2565 -2474
- package/demo/index.html +3 -3
- package/dist/src/component/container.js +2 -2
- package/dist/src/component/container.js.map +1 -1
- package/dist/src/component/etc.js +3 -3
- package/dist/src/component/etc.js.map +1 -1
- package/dist/src/component/line.js +5 -5
- package/dist/src/component/line.js.map +1 -1
- package/dist/src/component/shape.js +6 -6
- package/dist/src/component/shape.js.map +1 -1
- package/dist/src/component/text-and-media.js +5 -5
- package/dist/src/component/text-and-media.js.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/modeller/component-toolbar/component-menu.js +2 -2
- package/dist/src/modeller/component-toolbar/component-menu.js.map +1 -1
- package/dist/src/modeller/component-toolbar/component-toolbar.js +35 -1
- package/dist/src/modeller/component-toolbar/component-toolbar.js.map +1 -1
- package/dist/src/modeller/component-toolbar/mode-icons.d.ts +2 -0
- package/dist/src/modeller/component-toolbar/mode-icons.js +86 -0
- package/dist/src/modeller/component-toolbar/mode-icons.js.map +1 -0
- package/dist/src/modeller/edit-toolbar-style.js +4 -4
- package/dist/src/modeller/edit-toolbar-style.js.map +1 -1
- package/dist/src/modeller/edit-toolbar.d.ts +1 -1
- package/dist/src/modeller/edit-toolbar.js +1 -1
- package/dist/src/modeller/edit-toolbar.js.map +1 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.d.ts +2 -2
- package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js +4 -5
- package/dist/src/modeller/property-sidebar/data-binding/data-binding-mapper.js.map +1 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +2 -2
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.js +3 -3
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/effects.js +2 -2
- package/dist/src/modeller/property-sidebar/effects/effects.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-animation.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-animation.js +2 -2
- package/dist/src/modeller/property-sidebar/effects/property-animation.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-animations.js +2 -2
- package/dist/src/modeller/property-sidebar/effects/property-animations.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-hover.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-hover.js +3 -3
- package/dist/src/modeller/property-sidebar/effects/property-event-hover.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.js +3 -3
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event.js +2 -2
- package/dist/src/modeller/property-sidebar/effects/property-event.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-shadow.js +2 -2
- package/dist/src/modeller/property-sidebar/effects/property-shadow.js.map +1 -1
- package/dist/src/modeller/property-sidebar/inspector/inspector.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/inspector/inspector.js +3 -3
- package/dist/src/modeller/property-sidebar/inspector/inspector.js.map +1 -1
- package/dist/src/modeller/property-sidebar/property-shared-style.js +1 -1
- package/dist/src/modeller/property-sidebar/property-shared-style.js.map +1 -1
- package/dist/src/modeller/property-sidebar/property-sidebar.js +2 -2
- package/dist/src/modeller/property-sidebar/property-sidebar.js.map +1 -1
- package/dist/src/modeller/property-sidebar/shapes/box-padding-editor-styles.js +1 -1
- package/dist/src/modeller/property-sidebar/shapes/box-padding-editor-styles.js.map +1 -1
- package/dist/src/modeller/property-sidebar/shapes/shapes.d.ts +2 -2
- package/dist/src/modeller/property-sidebar/shapes/shapes.js +5 -5
- package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
- package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.js +10 -7
- package/dist/src/modeller/property-sidebar/specifics/specific-properties-builder.js.map +1 -1
- package/dist/src/modeller/property-sidebar/styles/styles.js +5 -5
- package/dist/src/modeller/property-sidebar/styles/styles.js.map +1 -1
- package/dist/src/ox-board-list.d.ts +1 -1
- package/dist/src/ox-board-list.js +4 -4
- package/dist/src/ox-board-list.js.map +1 -1
- package/dist/src/ox-board-modeller.d.ts +2 -2
- package/dist/src/ox-board-modeller.js +23 -3
- package/dist/src/ox-board-modeller.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/{assets/images → icons}/components/audio.png +0 -0
- package/{assets/images → icons}/components/both-arrow.png +0 -0
- package/{assets/images → icons}/components/color-image.png +0 -0
- package/{assets/images → icons}/components/container.png +0 -0
- package/{assets/images → icons}/components/dash.png +0 -0
- package/{assets/images → icons}/components/donut.png +0 -0
- package/{assets/images → icons}/components/ellipse.png +0 -0
- package/{assets/images → icons}/components/forklift.png +0 -0
- package/{assets/images → icons}/components/gif-image.png +0 -0
- package/{assets/images → icons}/components/global-reference.png +0 -0
- package/{assets/images → icons}/components/gray-image.png +0 -0
- package/{assets/images → icons}/components/humidity-sensor.png +0 -0
- package/{assets/images → icons}/components/info-window.png +0 -0
- package/{assets/images → icons}/components/line.png +0 -0
- package/{assets/images → icons}/components/local-reference.png +0 -0
- package/{assets/images → icons}/components/no-image.png +0 -0
- package/{assets/images → icons}/components/person.png +0 -0
- package/{assets/images → icons}/components/polygon.png +0 -0
- package/{assets/images → icons}/components/polyline.png +0 -0
- package/{assets/images → icons}/components/popup.png +0 -0
- package/{assets/images → icons}/components/rect.png +0 -0
- package/{assets/images → icons}/components/single-arrow.png +0 -0
- package/{assets/images → icons}/components/star.png +0 -0
- package/{assets/images → icons}/components/text.png +0 -0
- package/{assets/images → icons}/components/triangle.png +0 -0
- package/icons/icon-collapse-active.png +0 -0
- package/icons/icon-collapse.png +0 -0
- package/icons/icon-fullscreen.png +0 -0
- package/icons/icon-htoolbar.png +0 -0
- package/icons/icon-properties-arrow-type.png +0 -0
- package/icons/icon-properties-gradient-direction.png +0 -0
- package/icons/icon-properties-label.png +0 -0
- package/icons/icon-properties-line-type.png +0 -0
- package/icons/icon-properties-padding.png +0 -0
- package/icons/icon-properties-ratio.png +0 -0
- package/icons/icon-properties-table.png +0 -0
- package/icons/icon-properties.png +0 -0
- package/icons/icon-shell-inspector.png +0 -0
- package/package.json +21 -14
- package/src/component/container.ts +3 -2
- package/src/component/etc.ts +4 -3
- package/src/component/line.ts +6 -5
- package/src/component/shape.ts +7 -6
- package/src/component/text-and-media.ts +6 -5
- package/src/index.ts +5 -0
- package/src/modeller/component-toolbar/component-menu.ts +5 -3
- package/src/modeller/component-toolbar/component-toolbar.ts +39 -1
- package/src/modeller/component-toolbar/mode-icons.ts +86 -0
- package/src/modeller/edit-toolbar-style.ts +4 -4
- package/src/modeller/edit-toolbar.ts +3 -2
- package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +5 -5
- package/src/modeller/property-sidebar/data-binding/data-binding.ts +5 -4
- package/src/modeller/property-sidebar/effects/effects.ts +2 -3
- package/src/modeller/property-sidebar/effects/property-animation.ts +2 -2
- package/src/modeller/property-sidebar/effects/property-animations.ts +2 -3
- package/src/modeller/property-sidebar/effects/property-event-hover.ts +4 -3
- package/src/modeller/property-sidebar/effects/property-event-tap.ts +4 -3
- package/src/modeller/property-sidebar/effects/property-event.ts +2 -3
- package/src/modeller/property-sidebar/effects/property-shadow.ts +2 -2
- package/src/modeller/property-sidebar/inspector/inspector.ts +5 -5
- package/src/modeller/property-sidebar/property-shared-style.ts +1 -1
- package/src/modeller/property-sidebar/property-sidebar.ts +3 -3
- package/src/modeller/property-sidebar/shapes/box-padding-editor-styles.ts +1 -1
- package/src/modeller/property-sidebar/shapes/shapes.ts +5 -5
- package/src/modeller/property-sidebar/specifics/specific-properties-builder.ts +12 -8
- package/src/modeller/property-sidebar/styles/styles.ts +5 -5
- package/src/ox-board-list.ts +7 -7
- package/src/ox-board-modeller.ts +32 -5
- package/tsconfig.json +1 -0
- package/web-dev-server.config.mjs +2 -0
- package/yarn-error.log +18355 -0
- package/@types/global/index.d.ts +0 -1
- 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
|
|
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 {
|
|
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 {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import '@operato/input/
|
|
6
|
-
import '@operato/input/
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
100
|
+
this.appendChild(element)
|
|
97
101
|
})
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
_setValues() {
|
|
101
105
|
this.value &&
|
|
102
|
-
Array.from(this.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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;
|
package/src/ox-board-list.ts
CHANGED
|
@@ -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 {
|
|
5
|
-
import {
|
|
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 {
|
package/src/ox-board-modeller.ts
CHANGED
|
@@ -6,18 +6,32 @@ import './modeller/edit-toolbar'
|
|
|
6
6
|
import '@hatiolab/things-scene'
|
|
7
7
|
import './ox-board-viewer'
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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 {
|
|
13
|
+
import { Scene, SCENE_MODE } from '@hatiolab/things-scene'
|
|
15
14
|
import { OxPopup } from '@operato/popup'
|
|
16
|
-
|
|
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
|
@@ -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
|
]
|