@fluid-topics/ft-dialog 0.3.71 → 1.0.0-alpha.1
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-dialog.css.d.ts +0 -1
- package/build/ft-dialog.css.js +0 -1
- package/build/ft-dialog.d.ts +2 -1
- package/build/ft-dialog.js +11 -6
- package/build/ft-dialog.light.js +173 -171
- package/build/ft-dialog.min.js +196 -204
- package/build/ft-dialog.properties.d.ts +2 -1
- package/build/ft-dialog.properties.js +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/package.json +7 -7
package/build/ft-dialog.css.d.ts
CHANGED
package/build/ft-dialog.css.js
CHANGED
package/build/ft-dialog.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropertyValues } from "lit";
|
|
2
2
|
import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
3
|
+
import { FtIconVariants } from "@fluid-topics/ft-icon";
|
|
3
4
|
import { FtDialogProperties } from "./ft-dialog.properties";
|
|
4
5
|
export declare class FtDialog extends FtLitElement implements FtDialogProperties {
|
|
5
6
|
static elementDefinitions: ElementDefinitionsMap;
|
|
@@ -10,6 +11,7 @@ export declare class FtDialog extends FtLitElement implements FtDialogProperties
|
|
|
10
11
|
beforeClose: () => boolean;
|
|
11
12
|
heading: string;
|
|
12
13
|
icon: string;
|
|
14
|
+
iconVariant?: FtIconVariants;
|
|
13
15
|
buttons: Array<HTMLElement>;
|
|
14
16
|
static styles: import("lit").CSSResult;
|
|
15
17
|
protected render(): import("lit-html").TemplateResult<1> | null;
|
|
@@ -19,4 +21,3 @@ export declare class FtDialog extends FtLitElement implements FtDialogProperties
|
|
|
19
21
|
private watchEscapeKey;
|
|
20
22
|
private onClickOutside;
|
|
21
23
|
}
|
|
22
|
-
//# sourceMappingURL=ft-dialog.d.ts.map
|
package/build/ft-dialog.js
CHANGED
|
@@ -11,7 +11,7 @@ import { FtTypography } from "@fluid-topics/ft-typography";
|
|
|
11
11
|
import { FtIcon } from "@fluid-topics/ft-icon";
|
|
12
12
|
import { FtButton } from "@fluid-topics/ft-button";
|
|
13
13
|
import { styles } from "./ft-dialog.css";
|
|
14
|
-
|
|
14
|
+
class FtDialog extends FtLitElement {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
17
|
this.opened = false;
|
|
@@ -38,7 +38,7 @@ export class FtDialog extends FtLitElement {
|
|
|
38
38
|
${this.heading ? html `
|
|
39
39
|
<div class="ft-dialog-heading">
|
|
40
40
|
${this.icon ? html `
|
|
41
|
-
<ft-icon variant="
|
|
41
|
+
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
42
42
|
` : undefined}
|
|
43
43
|
<ft-typography element="span" variant="title">${this.heading}</ft-typography>
|
|
44
44
|
${this.closable ? html `
|
|
@@ -47,7 +47,9 @@ export class FtDialog extends FtLitElement {
|
|
|
47
47
|
</div>
|
|
48
48
|
` : null}
|
|
49
49
|
<div class="ft-dialog-content">
|
|
50
|
-
<
|
|
50
|
+
<ft-typography variant="body1">
|
|
51
|
+
<slot></slot>
|
|
52
|
+
</ft-typography>
|
|
51
53
|
</div>
|
|
52
54
|
<slot name="buttons"
|
|
53
55
|
class="ft-dialog-buttons ${this.buttons.length > 0 ? "" : "ft-dialog-no-buttons"}"
|
|
@@ -112,12 +114,15 @@ __decorate([
|
|
|
112
114
|
property({ type: () => Boolean })
|
|
113
115
|
], FtDialog.prototype, "beforeClose", void 0);
|
|
114
116
|
__decorate([
|
|
115
|
-
property(
|
|
117
|
+
property()
|
|
116
118
|
], FtDialog.prototype, "heading", void 0);
|
|
117
119
|
__decorate([
|
|
118
|
-
property(
|
|
120
|
+
property()
|
|
119
121
|
], FtDialog.prototype, "icon", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
property()
|
|
124
|
+
], FtDialog.prototype, "iconVariant", void 0);
|
|
120
125
|
__decorate([
|
|
121
126
|
queryAssignedElements({ slot: "buttons" })
|
|
122
127
|
], FtDialog.prototype, "buttons", void 0);
|
|
123
|
-
|
|
128
|
+
export { FtDialog };
|