@fluid-topics/ft-file-button 0.1.12 → 0.1.15
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/build/ft-file-button.js
CHANGED
|
@@ -33,8 +33,7 @@ let FtFileButton = class FtFileButton extends FtLitElement {
|
|
|
33
33
|
getTemplate() {
|
|
34
34
|
return html `
|
|
35
35
|
<div class="ft-file-button">
|
|
36
|
-
<ft-button
|
|
37
|
-
?disabled=${this.disabled}
|
|
36
|
+
<ft-button ?disabled=${this.disabled}
|
|
38
37
|
label="${this.label}"
|
|
39
38
|
icon="${this.icon}"
|
|
40
39
|
?trailingIcon=${this.trailingIcon}
|
|
@@ -55,6 +54,9 @@ let FtFileButton = class FtFileButton extends FtLitElement {
|
|
|
55
54
|
this.dispatchEvent(new FileChangeEvent(this.input.files.item(0)));
|
|
56
55
|
}
|
|
57
56
|
}
|
|
57
|
+
clear() {
|
|
58
|
+
this.input.value = "";
|
|
59
|
+
}
|
|
58
60
|
};
|
|
59
61
|
FtFileButton.elementDefinitions = {
|
|
60
62
|
"ft-button": FtButton,
|
|
@@ -570,8 +570,7 @@ const _e=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
570
570
|
}
|
|
571
571
|
`}getTemplate(){return e.html`
|
|
572
572
|
<div class="ft-file-button">
|
|
573
|
-
<ft-button
|
|
574
|
-
?disabled=${this.disabled}
|
|
573
|
+
<ft-button ?disabled=${this.disabled}
|
|
575
574
|
label="${this.label}"
|
|
576
575
|
icon="${this.icon}"
|
|
577
576
|
?trailingIcon=${this.trailingIcon}
|
|
@@ -584,4 +583,4 @@ const _e=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
584
583
|
@change=${this.onFileChange}
|
|
585
584
|
hidden/>
|
|
586
585
|
</div>
|
|
587
|
-
`}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new Xe(this.input.files.item(0)))}},t.FtFileButton.elementDefinitions={"ft-button":We},Ke([i.property({type:Boolean})],t.FtFileButton.prototype,"disabled",void 0),Ke([i.property({type:String})],t.FtFileButton.prototype,"label",void 0),Ke([i.property({type:String})],t.FtFileButton.prototype,"icon",void 0),Ke([i.property({type:Boolean})],t.FtFileButton.prototype,"trailingIcon",void 0),Ke([i.property({type:String})],t.FtFileButton.prototype,"accept",void 0),Ke([i.query(".ft-file-button--input")],t.FtFileButton.prototype,"input",void 0),t.FtFileButton=Ke([r.customElement("ft-file-button")],t.FtFileButton),t.FileChangeEvent=Xe,t.FtFileButtonCssVariables={},Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.wcUtils,ftGlobals.litClassMap,ftGlobals.litStyleMap);
|
|
586
|
+
`}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new Xe(this.input.files.item(0)))}clear(){this.input.value=""}},t.FtFileButton.elementDefinitions={"ft-button":We},Ke([i.property({type:Boolean})],t.FtFileButton.prototype,"disabled",void 0),Ke([i.property({type:String})],t.FtFileButton.prototype,"label",void 0),Ke([i.property({type:String})],t.FtFileButton.prototype,"icon",void 0),Ke([i.property({type:Boolean})],t.FtFileButton.prototype,"trailingIcon",void 0),Ke([i.property({type:String})],t.FtFileButton.prototype,"accept",void 0),Ke([i.query(".ft-file-button--input")],t.FtFileButton.prototype,"input",void 0),t.FtFileButton=Ke([r.customElement("ft-file-button")],t.FtFileButton),t.FileChangeEvent=Xe,t.FtFileButtonCssVariables={},Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.wcUtils,ftGlobals.litClassMap,ftGlobals.litStyleMap);
|
|
@@ -657,8 +657,7 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
657
657
|
}
|
|
658
658
|
`}getTemplate(){return F`
|
|
659
659
|
<div class="ft-file-button">
|
|
660
|
-
<ft-button
|
|
661
|
-
?disabled=${this.disabled}
|
|
660
|
+
<ft-button ?disabled=${this.disabled}
|
|
662
661
|
label="${this.label}"
|
|
663
662
|
icon="${this.icon}"
|
|
664
663
|
?trailingIcon=${this.trailingIcon}
|
|
@@ -671,4 +670,4 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
671
670
|
@change=${this.onFileChange}
|
|
672
671
|
hidden/>
|
|
673
672
|
</div>
|
|
674
|
-
`}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new ji(this.input.files.item(0)))}},t.FtFileButton.elementDefinitions={"ft-button":zi},Fi([rt({type:Boolean})],t.FtFileButton.prototype,"disabled",void 0),Fi([rt({type:String})],t.FtFileButton.prototype,"label",void 0),Fi([rt({type:String})],t.FtFileButton.prototype,"icon",void 0),Fi([rt({type:Boolean})],t.FtFileButton.prototype,"trailingIcon",void 0),Fi([rt({type:String})],t.FtFileButton.prototype,"accept",void 0),Fi([at(".ft-file-button--input")],t.FtFileButton.prototype,"input",void 0),t.FtFileButton=Fi([lt("ft-file-button")],t.FtFileButton),t.FileChangeEvent=ji,t.FtFileButtonCssVariables={},Object.defineProperty(t,"t",{value:!0})}({});
|
|
673
|
+
`}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new ji(this.input.files.item(0)))}clear(){this.input.value=""}},t.FtFileButton.elementDefinitions={"ft-button":zi},Fi([rt({type:Boolean})],t.FtFileButton.prototype,"disabled",void 0),Fi([rt({type:String})],t.FtFileButton.prototype,"label",void 0),Fi([rt({type:String})],t.FtFileButton.prototype,"icon",void 0),Fi([rt({type:Boolean})],t.FtFileButton.prototype,"trailingIcon",void 0),Fi([rt({type:String})],t.FtFileButton.prototype,"accept",void 0),Fi([at(".ft-file-button--input")],t.FtFileButton.prototype,"input",void 0),t.FtFileButton=Fi([lt("ft-file-button")],t.FtFileButton),t.FileChangeEvent=ji,t.FtFileButtonCssVariables={},Object.defineProperty(t,"t",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-file-button",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "File",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "^0.1.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "^0.1.
|
|
22
|
+
"@fluid-topics/ft-button": "^0.1.15",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "^0.1.15",
|
|
24
24
|
"lit": "2.1.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "323609095cf7dcb50b61eedab45ecbc5dfd53fd6"
|
|
27
27
|
}
|