@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.
package/client/image-uploader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '@material/
|
|
2
|
-
import '@material/
|
|
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
|
-
<
|
|
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
|
-
|
|
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"><
|
|
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
|
-
<
|
|
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
|
-
|
|
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.
|
|
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": "
|
|
30
|
+
"gitHead": "e0eb3093bd92d062f64a26155cecaefcc05e9244"
|
|
31
31
|
}
|