@things-factory/image-uploader-ui 7.0.1-alpha.69 → 7.0.1-alpha.70

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.
@@ -1,6 +1,3 @@
1
- import '@material/mwc-icon'
2
- import '@material/mwc-icon-button'
3
- import { client } from '@things-factory/shell'
4
1
  import { css, html, LitElement } from 'lit'
5
2
 
6
3
  export class ImageUploadPreviewer extends LitElement {
@@ -1,5 +1,5 @@
1
- import '@material/mwc-icon'
2
- import '@material/mwc-icon-button'
1
+ import '@material/web/icon/icon.js'
2
+ import '@material/md-elevated-button'
3
3
 
4
4
  import { LitElement, css, html } from 'lit'
5
5
 
@@ -128,12 +128,12 @@ export class ImageUploader extends LitElement {
128
128
  ${this._files.map(
129
129
  file => html`
130
130
  <div class="upload-thumb-wrap">
131
- <mwc-icon-button
132
- icon="remove_circle_outline"
131
+ <md-elevated-button
133
132
  @click=${e => {
134
133
  this._files = this._files.filter(f => f != file)
135
134
  }}
136
- ></mwc-icon-button>
135
+ ><md-icon slot="icon">remove_circle_outline</md-icon></md-elevated-button
136
+ >
137
137
  <img class="upload-thumb" src="${window.URL.createObjectURL(file)}" />
138
138
  </div>
139
139
  `
@@ -149,7 +149,7 @@ export class ImageUploader extends LitElement {
149
149
  />
150
150
  `
151
151
  : html``}
152
- <label for="input-file"><mwc-icon>add_photo_alternate</mwc-icon></label>
152
+ <label for="input-file"><md-icon>add_photo_alternate</md-icon></label>
153
153
  <input
154
154
  id="input-file"
155
155
  type="file"
@@ -162,14 +162,14 @@ export class ImageUploader extends LitElement {
162
162
  />
163
163
  </div>
164
164
  </div>
165
- <mwc-icon-button
166
- icon="cloud_upload"
165
+ <md-elevated-button
167
166
  ?disabled=${this._files.length == 0}
168
167
  @click=${e => {
169
168
  if (e.currentTarget.hasAttribute('disabled')) return
170
169
  this._onUploadButtonClick(e)
171
170
  }}
172
- ></mwc-icon-button>
171
+ ><md-icon slot="icon">cloud_upload</md-icon></md-elevated-button
172
+ >
173
173
  `
174
174
  }
175
175
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/image-uploader-ui",
3
- "version": "7.0.1-alpha.69",
3
+ "version": "7.0.1-alpha.70",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -27,5 +27,5 @@
27
27
  "@operato/layout": "^2.0.0-alpha.0",
28
28
  "@things-factory/shell": "^7.0.1-alpha.69"
29
29
  },
30
- "gitHead": "7dc123e788e8c2854fd0e4064cda018aac6fa34a"
30
+ "gitHead": "e0eb3093bd92d062f64a26155cecaefcc05e9244"
31
31
  }