@fluid-topics/ft-modal 1.3.55 → 1.3.57
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-modal.d.ts +0 -1
- package/build/ft-modal.js +3 -11
- package/build/ft-modal.light.js +71 -103
- package/build/ft-modal.min.js +83 -115
- package/build/ft-modal.styles.js +1 -32
- package/package.json +4 -4
package/build/ft-modal.d.ts
CHANGED
package/build/ft-modal.js
CHANGED
|
@@ -33,7 +33,6 @@ class FtModal extends withI18n(FtdsBase) {
|
|
|
33
33
|
super();
|
|
34
34
|
this.buttonLabel = "";
|
|
35
35
|
this.heading = "";
|
|
36
|
-
this.drawer = false;
|
|
37
36
|
this.size = DesignSystemSize.small;
|
|
38
37
|
this.intersectionObserver = new IntersectionObserver(() => {
|
|
39
38
|
if (this.dialog && !this.dialog.checkVisibility()) {
|
|
@@ -46,9 +45,6 @@ class FtModal extends withI18n(FtdsBase) {
|
|
|
46
45
|
const classes = {
|
|
47
46
|
"ft-modal": true,
|
|
48
47
|
};
|
|
49
|
-
const drawerClasses = {
|
|
50
|
-
"drawer": this.drawer,
|
|
51
|
-
};
|
|
52
48
|
return html `
|
|
53
49
|
<div class="${classMap(classes)}" part="container">
|
|
54
50
|
<slot @click=${this.onTriggerClick} name="trigger">
|
|
@@ -58,17 +54,16 @@ class FtModal extends withI18n(FtdsBase) {
|
|
|
58
54
|
</slot>
|
|
59
55
|
<dialog part="dialog" aria-labelledby="heading" @close=${this.onClose}>
|
|
60
56
|
<div part="overlay" @click=${this.onOverlayClick}></div>
|
|
61
|
-
<div part="inner-container"
|
|
57
|
+
<div part="inner-container">
|
|
62
58
|
<div part="header">
|
|
63
|
-
${when(this.
|
|
64
|
-
${when(!!this.icon && !this.drawer, () => html `
|
|
59
|
+
${when(!!this.icon, () => html `
|
|
65
60
|
<ft-icon part="icon" value="${this.icon}"></ft-icon>
|
|
66
61
|
`)}
|
|
67
62
|
<ft-typography id="heading" part="heading" role="heading" variant="${FtTypographyVariants.title}">
|
|
68
63
|
${this.heading}
|
|
69
64
|
</ft-typography>
|
|
70
65
|
<slot name="header-actions"></slot>
|
|
71
|
-
${
|
|
66
|
+
${this.renderCloseButton()}
|
|
72
67
|
</div>
|
|
73
68
|
<div part="body">
|
|
74
69
|
<div part="content">
|
|
@@ -140,9 +135,6 @@ __decorate([
|
|
|
140
135
|
__decorate([
|
|
141
136
|
property()
|
|
142
137
|
], FtModal.prototype, "icon", void 0);
|
|
143
|
-
__decorate([
|
|
144
|
-
property()
|
|
145
|
-
], FtModal.prototype, "drawer", void 0);
|
|
146
138
|
__decorate([
|
|
147
139
|
query("dialog")
|
|
148
140
|
], FtModal.prototype, "dialog", void 0);
|