@covalent/components 11.16.2 → 11.17.0
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/package.json +1 -1
- package/side-sheet/side-sheet.d.ts +3 -0
- package/side-sheet.js +3 -3
- package/side-sheet.mjs +21 -15
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
1
2
|
import { CovalentDialog } from '../dialog/dialog';
|
|
2
3
|
declare global {
|
|
3
4
|
interface HTMLElementTagNameMap {
|
|
@@ -13,5 +14,7 @@ export declare class CovalentSideSheet extends CovalentDialog {
|
|
|
13
14
|
static styles: import("lit").CSSResult[];
|
|
14
15
|
pushed: boolean;
|
|
15
16
|
noPadding: boolean;
|
|
17
|
+
width: number;
|
|
18
|
+
willUpdate(changedProperties: PropertyValues): void;
|
|
16
19
|
constructor();
|
|
17
20
|
}
|
package/side-sheet.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
${
|
|
3
|
-
`];
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./query-assigned-elements-8EurZY45.js"),l=require("./property-DYTC_2-m.js"),h=require("./dialog-BShWbhKq.js"),c=":host{--cv-side-sheet-width: 800px;--mdc-dialog-heading-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-theme-surface: var(--cv-theme-surface)}.mdc-dialog{justify-content:flex-end}.mdc-dialog .mdc-dialog__surface{border-radius:0;height:100%;min-height:inherit;max-height:inherit;min-width:var(--cv-side-sheet-width, 400px)}.mdc-dialog--opening .mdc-dialog__container{transform:translate(100%);transition:transform .15s cubic-bezier(.4,0,1,1)}.mdc-dialog--open .mdc-dialog__container{transform:translate(0)}.mdc-dialog--closing .mdc-dialog__container{opacity:1;transform:translate(100%);transition:transform .15s cubic-bezier(0,0,.2,1)}:host([pushed]) .mdc-dialog__surface{min-width:100vw}:host([noPadding]) .mdc-dialog .mdc-dialog__content{padding:0}";var p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,o=(r,e,s,i)=>{for(var t=i>1?void 0:i?m(e,s):e,d=r.length-1,n;d>=0;d--)(n=r[d])&&(t=(i?n(e,s,t):n(t))||t);return i&&t&&p(e,s,t),t};exports.CovalentSideSheet=class extends h.CovalentDialog{constructor(){super(),this.pushed=!1,this.noPadding=!1,this.width=800,this.hideActions=!0}willUpdate(e){super.willUpdate(e),e.has("width")&&(this.width!==800?this.style.setProperty("--cv-side-sheet-width",`${this.width}px`):this.style.removeProperty("--cv-side-sheet-width"))}};exports.CovalentSideSheet.styles=[h.styles,a.i`
|
|
2
|
+
${a.r(c)}
|
|
3
|
+
`];o([l.n({type:Boolean,reflect:!0})],exports.CovalentSideSheet.prototype,"pushed",2);o([l.n({type:Boolean,reflect:!0})],exports.CovalentSideSheet.prototype,"noPadding",2);o([l.n({type:Number})],exports.CovalentSideSheet.prototype,"width",2);exports.CovalentSideSheet=o([a.e("cv-side-sheet")],exports.CovalentSideSheet);
|
package/side-sheet.mjs
CHANGED
|
@@ -1,31 +1,37 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as h, i as l, e as m } from "./query-assigned-elements-D930kELM.mjs";
|
|
2
2
|
import { n as c } from "./property-DJzm_oB9.mjs";
|
|
3
|
-
import { s as p, C as
|
|
4
|
-
const
|
|
5
|
-
var
|
|
6
|
-
for (var e =
|
|
7
|
-
(n =
|
|
8
|
-
return
|
|
3
|
+
import { s as p, C as f } from "./dialog-ChTd6dnt.mjs";
|
|
4
|
+
const g = ":host{--cv-side-sheet-width: 800px;--mdc-dialog-heading-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-theme-surface: var(--cv-theme-surface)}.mdc-dialog{justify-content:flex-end}.mdc-dialog .mdc-dialog__surface{border-radius:0;height:100%;min-height:inherit;max-height:inherit;min-width:var(--cv-side-sheet-width, 400px)}.mdc-dialog--opening .mdc-dialog__container{transform:translate(100%);transition:transform .15s cubic-bezier(.4,0,1,1)}.mdc-dialog--open .mdc-dialog__container{transform:translate(0)}.mdc-dialog--closing .mdc-dialog__container{opacity:1;transform:translate(100%);transition:transform .15s cubic-bezier(0,0,.2,1)}:host([pushed]) .mdc-dialog__surface{min-width:100vw}:host([noPadding]) .mdc-dialog .mdc-dialog__content{padding:0}";
|
|
5
|
+
var u = Object.defineProperty, v = Object.getOwnPropertyDescriptor, o = (i, s, d, r) => {
|
|
6
|
+
for (var e = r > 1 ? void 0 : r ? v(s, d) : s, a = i.length - 1, n; a >= 0; a--)
|
|
7
|
+
(n = i[a]) && (e = (r ? n(s, d, e) : n(e)) || e);
|
|
8
|
+
return r && e && u(s, d, e), e;
|
|
9
9
|
};
|
|
10
|
-
let t = class extends
|
|
10
|
+
let t = class extends f {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(), this.pushed = !1, this.noPadding = !1, this.hideActions = !0;
|
|
12
|
+
super(), this.pushed = !1, this.noPadding = !1, this.width = 800, this.hideActions = !0;
|
|
13
|
+
}
|
|
14
|
+
willUpdate(i) {
|
|
15
|
+
super.willUpdate(i), i.has("width") && (this.width !== 800 ? this.style.setProperty("--cv-side-sheet-width", `${this.width}px`) : this.style.removeProperty("--cv-side-sheet-width"));
|
|
13
16
|
}
|
|
14
17
|
};
|
|
15
18
|
t.styles = [
|
|
16
19
|
p,
|
|
17
|
-
|
|
18
|
-
${
|
|
20
|
+
l`
|
|
21
|
+
${h(g)}
|
|
19
22
|
`
|
|
20
23
|
];
|
|
21
|
-
|
|
24
|
+
o([
|
|
22
25
|
c({ type: Boolean, reflect: !0 })
|
|
23
26
|
], t.prototype, "pushed", 2);
|
|
24
|
-
|
|
27
|
+
o([
|
|
25
28
|
c({ type: Boolean, reflect: !0 })
|
|
26
29
|
], t.prototype, "noPadding", 2);
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
o([
|
|
31
|
+
c({ type: Number })
|
|
32
|
+
], t.prototype, "width", 2);
|
|
33
|
+
t = o([
|
|
34
|
+
m("cv-side-sheet")
|
|
29
35
|
], t);
|
|
30
36
|
export {
|
|
31
37
|
t as CovalentSideSheet
|