@@ -2,11 +2,11 @@ import { LitElement, TemplateResult, html } from 'lit';
2
2
import { property , query , state } from 'lit/decorators.js' ;
3
3
4
4
import '@material/mwc-dialog' ;
5
- import '@material/mwc-icon-button' ;
6
5
import type { Dialog } from '@material/mwc-dialog' ;
7
- import type { IconButton } from '@material/mwc-icon-button' ;
8
6
9
- // eslint-disable-next-line import/no-extraneous-dependencies
7
+ // import '@scopedelement/material-web/iconbutton/icon-button.js';
8
+ import type { MdIconButton } from '@scopedelement/material-web/iconbutton/MdIconButton.js' ;
9
+
10
10
import { newEditEvent } from '@openenergytools/open-scd-core' ;
11
11
import {
12
12
createDataSet ,
@@ -34,9 +34,9 @@ export default class BaseElementEditor extends LitElement {
34
34
35
35
@query ( 'mwc-dialog' ) selectDataSetDialog ! : Dialog ;
36
36
37
- @query ( '.new.dataset' ) newDataSet ! : IconButton ;
37
+ @query ( '.new.dataset' ) newDataSet ! : MdIconButton ;
38
38
39
- @query ( '.change.dataset' ) changeDataSet ! : IconButton ;
39
+ @query ( '.change.dataset' ) changeDataSet ! : MdIconButton ;
40
40
41
41
protected selectDataSet ( dataSet : Element ) : void {
42
42
const name = dataSet . getAttribute ( 'name' ) ;
@@ -104,24 +104,24 @@ export default class BaseElementEditor extends LitElement {
104
104
.showHeader =${ false }
105
105
editCount="${ this . editCount } "
106
106
>
107
- < mwc -icon-button
107
+ < md -icon-button
108
108
class ="change dataset "
109
109
slot ="change "
110
- icon ="swap_vert "
111
110
?disabled =${ ! ! findControlBlockSubscription ( this . selectCtrlBlock ! )
112
111
. length }
113
112
@click =${ ( ) => this . selectDataSetDialog . show ( ) }
114
- > </ mwc-icon-button >
115
- < mwc-icon-button
113
+ > < md-icon > swap_vert</ md-icon > </ md-icon-button
114
+ >
115
+ < md-icon-button
116
116
class ="new dataset "
117
117
slot ="new "
118
- icon ="playlist_add "
119
118
?disabled =${ ! ! this . selectCtrlBlock ! . getAttribute ( 'datSet' ) }
120
119
@click ="${ ( ) => {
121
120
this . addNewDataSet ( this . selectCtrlBlock ! ) ;
122
121
} } "
123
- > </ mwc-icon-button
124
- > </ data-set-element-editor >
122
+ > < md-icon > playlist_add</ md-icon > </ md-icon-button
123
+ > </ data-set-element-editor
124
+ >
125
125
</ div >
126
126
` ;
127
127
}
0 commit comments