@fluid-topics/ft-file-button 0.1.15 → 0.1.18
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.d.ts +2 -2
- package/build/ft-file-button.inline-styles.js +631 -0
- package/build/ft-file-button.js +5 -9
- package/build/ft-file-button.light.js +251 -309
- package/build/ft-file-button.min.js +286 -333
- package/build/index.d.ts +2 -0
- package/build/index.js +5 -0
- package/build/inline-styles.d.ts +2 -0
- package/build/inline-styles.js +4 -0
- package/package.json +6 -6
package/build/ft-file-button.js
CHANGED
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { css, html } from "lit";
|
|
8
8
|
import { property, query } from "lit/decorators.js";
|
|
9
|
-
import {
|
|
9
|
+
import { FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
10
10
|
import { FtButton } from "@fluid-topics/ft-button";
|
|
11
11
|
export const FtFileButtonCssVariables = {};
|
|
12
12
|
export class FileChangeEvent extends CustomEvent {
|
|
@@ -14,7 +14,7 @@ export class FileChangeEvent extends CustomEvent {
|
|
|
14
14
|
super("change", { detail: { file } });
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
export class FtFileButton extends FtLitElement {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this.disabled = false;
|
|
@@ -23,14 +23,14 @@ let FtFileButton = class FtFileButton extends FtLitElement {
|
|
|
23
23
|
this.trailingIcon = false;
|
|
24
24
|
this.accept = "";
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
static get styles() {
|
|
27
27
|
// language=CSS
|
|
28
28
|
return css `
|
|
29
29
|
.ft-file-button {
|
|
30
30
|
}
|
|
31
31
|
`;
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
render() {
|
|
34
34
|
return html `
|
|
35
35
|
<div class="ft-file-button">
|
|
36
36
|
<ft-button ?disabled=${this.disabled}
|
|
@@ -57,7 +57,7 @@ let FtFileButton = class FtFileButton extends FtLitElement {
|
|
|
57
57
|
clear() {
|
|
58
58
|
this.input.value = "";
|
|
59
59
|
}
|
|
60
|
-
}
|
|
60
|
+
}
|
|
61
61
|
FtFileButton.elementDefinitions = {
|
|
62
62
|
"ft-button": FtButton,
|
|
63
63
|
};
|
|
@@ -79,8 +79,4 @@ __decorate([
|
|
|
79
79
|
__decorate([
|
|
80
80
|
query(".ft-file-button--input")
|
|
81
81
|
], FtFileButton.prototype, "input", void 0);
|
|
82
|
-
FtFileButton = __decorate([
|
|
83
|
-
customElement("ft-file-button")
|
|
84
|
-
], FtFileButton);
|
|
85
|
-
export { FtFileButton };
|
|
86
82
|
//# sourceMappingURL=ft-file-button.js.map
|