@vandeurenglenn/lite-elements 0.3.50 → 0.3.52
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/exports/banner.js +36 -36
- package/exports/bundle/button.js +6 -1
- package/exports/bundle/dialog.js +10 -8
- package/exports/bundle/index.html +590 -590
- package/exports/bundle/themes/default/colors.module.css +180 -180
- package/exports/bundle/themes/default/missing/motion.css +3 -3
- package/exports/bundle/themes/default/missing/shape.css +12 -12
- package/exports/bundle/themes/default/missing/theme.dark.css +4 -4
- package/exports/bundle/themes/default/missing/theme.light.css +4 -4
- package/exports/bundle/themes/default/missing/tokens.css +8 -8
- package/exports/bundle/themes/default/theme.css +10 -10
- package/exports/bundle/themes/default/theme.dark.css +33 -33
- package/exports/bundle/themes/default/theme.light.css +33 -33
- package/exports/bundle/themes/default/tokens.css +256 -256
- package/exports/bundle/themes/default/typography.module.css +150 -150
- package/exports/bundle/upload-image.js +49 -45
- package/exports/button.js +148 -143
- package/exports/card.js +139 -139
- package/exports/code.js +34 -34
- package/exports/demo-icons.js +15 -15
- package/exports/demo-shell.js +539 -539
- package/exports/demo.js +456 -456
- package/exports/dialog.js +150 -148
- package/exports/divider.js +21 -21
- package/exports/drawer-button.js +13 -13
- package/exports/drawer-item.js +38 -38
- package/exports/drawer-layout.js +95 -95
- package/exports/drawer.js +7 -7
- package/exports/dropdown-menu.js +58 -58
- package/exports/dropdown.js +25 -25
- package/exports/elevation.js +50 -50
- package/exports/fab.js +145 -145
- package/exports/icon-button.js +12 -12
- package/exports/icon-set.js +4 -4
- package/exports/icon.js +15 -15
- package/exports/input.js +5 -5
- package/exports/list-item.js +42 -42
- package/exports/menu.js +12 -12
- package/exports/minute-field.js +4 -4
- package/exports/mixins/scroll-mixin.d.ts +1 -1
- package/exports/notification.js +34 -34
- package/exports/notifications.js +65 -65
- package/exports/pages.js +42 -42
- package/exports/pane.js +18 -18
- package/exports/rail.js +57 -57
- package/exports/root.js +7 -7
- package/exports/section/section.d.ts +1 -1
- package/exports/section.js +10 -10
- package/exports/section2.js +24 -24
- package/exports/selector.js +30 -30
- package/exports/summary-mirror.js +19 -19
- package/exports/summary.js +24 -24
- package/exports/supporting-pane.js +46 -46
- package/exports/tab.js +21 -21
- package/exports/tabs.js +50 -50
- package/exports/text-field.js +9 -9
- package/exports/theme.js +8 -8
- package/exports/themes/default/colors.module.css +180 -180
- package/exports/themes/default/missing/motion.css +3 -3
- package/exports/themes/default/missing/shape.css +12 -12
- package/exports/themes/default/missing/theme.dark.css +4 -4
- package/exports/themes/default/missing/theme.light.css +4 -4
- package/exports/themes/default/missing/tokens.css +8 -8
- package/exports/themes/default/theme.css +10 -10
- package/exports/themes/default/theme.dark.css +33 -33
- package/exports/themes/default/theme.light.css +33 -33
- package/exports/themes/default/tokens.css +256 -256
- package/exports/themes/default/typography.module.css +150 -150
- package/exports/time-picker.js +20 -20
- package/exports/toggle-button.js +3 -3
- package/exports/toggle.js +4 -4
- package/exports/top-app-bar.js +20 -20
- package/exports/typography.js +155 -155
- package/exports/upload-file.js +8 -8
- package/exports/upload-image.js +200 -200
- package/package.json +20 -28
- package/exports/bundle/simple-hash-router.js +0 -1
- package/exports/bundle/types2.js +0 -1
- package/exports/router/simple-hash-router.d.ts +0 -34
- package/exports/router/types.d.ts +0 -45
- package/exports/simple-hash-router.js +0 -111
- package/exports/types2.js +0 -1
package/exports/banner.js
CHANGED
|
@@ -23,42 +23,42 @@ let CustomBanner = (() => {
|
|
|
23
23
|
super();
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return html `
|
|
27
|
-
<style>
|
|
28
|
-
:host {
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
box-sizing: border-box;
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: 40px;
|
|
34
|
-
padding: 8px 16px;
|
|
35
|
-
background: var(--md-sys-color-tertiary);
|
|
36
|
-
color: var(--md-sys-color-on-tertiary);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
:host([inset]) {
|
|
40
|
-
margin-left: 16px;
|
|
41
|
-
margin-right: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:host([middle-inset]) {
|
|
45
|
-
margin-left: 16px;
|
|
46
|
-
margin-right: 16px;
|
|
47
|
-
}
|
|
48
|
-
custom-icon {
|
|
49
|
-
--custom-icon-size: 12px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
custom-button {
|
|
53
|
-
height: 24px;
|
|
54
|
-
width: 24px;
|
|
55
|
-
}
|
|
56
|
-
</style>
|
|
57
|
-
<slot></slot>
|
|
58
|
-
<flex-it flex="1"></flex-it>
|
|
59
|
-
<custom-button type="tertiary">
|
|
60
|
-
<custom-icon slot="icon">close</custom-icon>
|
|
61
|
-
</custom-button>
|
|
26
|
+
return html `
|
|
27
|
+
<style>
|
|
28
|
+
:host {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 40px;
|
|
34
|
+
padding: 8px 16px;
|
|
35
|
+
background: var(--md-sys-color-tertiary);
|
|
36
|
+
color: var(--md-sys-color-on-tertiary);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([inset]) {
|
|
40
|
+
margin-left: 16px;
|
|
41
|
+
margin-right: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([middle-inset]) {
|
|
45
|
+
margin-left: 16px;
|
|
46
|
+
margin-right: 16px;
|
|
47
|
+
}
|
|
48
|
+
custom-icon {
|
|
49
|
+
--custom-icon-size: 12px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
custom-button {
|
|
53
|
+
height: 24px;
|
|
54
|
+
width: 24px;
|
|
55
|
+
}
|
|
56
|
+
</style>
|
|
57
|
+
<slot></slot>
|
|
58
|
+
<flex-it flex="1"></flex-it>
|
|
59
|
+
<custom-button type="tertiary">
|
|
60
|
+
<custom-icon slot="icon">close</custom-icon>
|
|
61
|
+
</custom-button>
|
|
62
62
|
`;
|
|
63
63
|
}
|
|
64
64
|
});
|
package/exports/bundle/button.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t,e as a}from"./custom-element-CAdbJRVg.js";import{r as s,i as o,k as l,s as r}from"./property-DL093_VN.js";import"./elevation.js";let n=(()=>{let n,i,c,d,h,y,b=[a("custom-button")],p=[],m=r,v=[],
|
|
1
|
+
import{_ as e,a as t,e as a}from"./custom-element-CAdbJRVg.js";import{r as s,i as o,k as l,s as r}from"./property-DL093_VN.js";import"./elevation.js";let n=(()=>{let n,i,c,d,h,y,b=[a("custom-button")],p=[],m=r,v=[],g=[],u=[],f=[],_=[],x=[],k=[],L=[];return class extends m{static{i=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;c=[s({attribute:"has-icon",reflect:!0})],d=[s({attribute:"has-label",reflect:!0})],h=[s({attribute:"type",reflect:!0})],y=[s({attribute:!0})],e(this,null,c,{kind:"accessor",name:"hasIcon",static:!1,private:!1,access:{has:e=>"hasIcon"in e,get:e=>e.hasIcon,set:(e,t)=>{e.hasIcon=t}},metadata:t},v,g),e(this,null,d,{kind:"accessor",name:"hasLabel",static:!1,private:!1,access:{has:e=>"hasLabel"in e,get:e=>e.hasLabel,set:(e,t)=>{e.hasLabel=t}},metadata:t},u,f),e(this,null,h,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:t},_,x),e(this,null,y,{kind:"accessor",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:t},k,L),e(null,n={value:i},b,{kind:"class",name:i.name,metadata:t},null,p),i=n.value,t&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,v,void 0);get hasIcon(){return this.#e}set hasIcon(e){this.#e=e}#t=(t(this,g),t(this,u,void 0));get hasLabel(){return this.#t}set hasLabel(e){this.#t=e}#a=(t(this,f),t(this,_,"text"));get type(){return this.#a}set type(e){this.#a=e}#s=(t(this,x),t(this,k,void 0));get label(){return this.#s}set label(e){this.#s=e}static styles=[o`
|
|
2
2
|
:host {
|
|
3
3
|
color: var(--custom-button-color, --md-sys-color-on-background);
|
|
4
4
|
display: flex;
|
|
@@ -30,6 +30,11 @@ import{_ as e,a as t,e as a}from"./custom-element-CAdbJRVg.js";import{r as s,i a
|
|
|
30
30
|
pointer-events: none;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
.label {
|
|
34
|
+
flex: 1;
|
|
35
|
+
text-align: end;
|
|
36
|
+
}
|
|
37
|
+
|
|
33
38
|
.label,
|
|
34
39
|
::slotted(*) {
|
|
35
40
|
font-family: var(--md-sys-typescale-label-large-font-family-name);
|
package/exports/bundle/dialog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t,e as s}from"./custom-element-CAdbJRVg.js";import{r as o,i as a,k as
|
|
1
|
+
import{_ as e,a as t,e as s}from"./custom-element-CAdbJRVg.js";import{r as o,i as a,k as r,s as n}from"./property-DL093_VN.js";import"./elevation.js";import"./icon.js";let i=(()=>{let i,l,c,h,m,d,p,u=[s("custom-dialog")],g=[],f=n,y=[],v=[],b=[],x=[],_=[],w=[],H=[],k=[],A=[],S=[];return class extends f{static{l=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0;c=[o({type:Boolean,reflect:!0})],h=[o({type:Boolean,reflect:!0})],m=[o({type:Boolean,reflect:!0,attribute:"has-actions"})],d=[o({type:Boolean,reflect:!0,attribute:"has-header"})],p=[o({type:Boolean,reflect:!0,attribute:"has-hero"})],e(this,null,c,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:e=>"open"in e,get:e=>e.open,set:(e,t)=>{e.open=t}},metadata:t},y,v),e(this,null,h,{kind:"accessor",name:"fullscreen",static:!1,private:!1,access:{has:e=>"fullscreen"in e,get:e=>e.fullscreen,set:(e,t)=>{e.fullscreen=t}},metadata:t},b,x),e(this,null,m,{kind:"accessor",name:"hasActions",static:!1,private:!1,access:{has:e=>"hasActions"in e,get:e=>e.hasActions,set:(e,t)=>{e.hasActions=t}},metadata:t},_,w),e(this,null,d,{kind:"accessor",name:"hasHeader",static:!1,private:!1,access:{has:e=>"hasHeader"in e,get:e=>e.hasHeader,set:(e,t)=>{e.hasHeader=t}},metadata:t},H,k),e(this,null,p,{kind:"accessor",name:"hasHero",static:!1,private:!1,access:{has:e=>"hasHero"in e,get:e=>e.hasHero,set:(e,t)=>{e.hasHero=t}},metadata:t},A,S),e(null,i={value:l},u,{kind:"class",name:l.name,metadata:t},null,g),l=i.value,t&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,y,void 0);get open(){return this.#e}set open(e){this.#e=e}#t=(t(this,v),t(this,b,void 0));get fullscreen(){return this.#t}set fullscreen(e){this.#t=e}#s=(t(this,x),t(this,_,void 0));get hasActions(){return this.#s}set hasActions(e){this.#s=e}#o=(t(this,w),t(this,H,void 0));get hasHeader(){return this.#o}set hasHeader(e){this.#o=e}#a=(t(this,k),t(this,A,void 0));get hasHero(){return this.#a}set hasHero(e){this.#a=e}constructor(){super(),t(this,S),this._close=this._close.bind(this)}connectedCallback(){const e=this.shadowRoot.querySelector('slot[name="actions"]');this.hasActions=0!==Array.from(e?.assignedNodes()||[]).length;let t=this.shadowRoot.querySelector('slot[name="header"]');const s=["title","header-start","header-end"];let o=0;for(;0===Array.from(t.assignedElements()).length&&o<s.length;)t=this.shadowRoot.querySelector(`slot[name="${s[o]}"]`),o+=1;this.hasHeader=0!==t.assignedElements().length;const a=this.shadowRoot.querySelector('slot[name="hero-icon"]');this.hashero=0!==Array.from(a?.assignedNodes()||[]).length}onChange(e,t){"open"===e&&(this.open?this.querySelector('[slot="actions"]')?.addEventListener("click",this._close):this.querySelector('[slot="actions"]')?.removeEventListener("click",this._close))}_close(e){const t=e.composedPath()[0];this.dispatchEvent(new CustomEvent("close",{detail:t.getAttribute("action")||"close"})),this.open=!1}static styles=[a`
|
|
2
2
|
:host {
|
|
3
3
|
position: absolute;
|
|
4
4
|
inset: 0;
|
|
@@ -45,12 +45,14 @@ import{_ as e,a as t,e as s}from"./custom-element-CAdbJRVg.js";import{r as o,i a
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.body {
|
|
48
|
+
margin-top: 16px;
|
|
49
|
+
margin-bottom: 24px;
|
|
48
50
|
overflow-y: auto;
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
:host([has-actions]) .body {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
margin-top: 16px;
|
|
55
|
+
margin-bottom: 24px;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
:host([has-header][has-hero]) .header {
|
|
@@ -115,7 +117,7 @@ import{_ as e,a as t,e as s}from"./custom-element-CAdbJRVg.js";import{r as o,i a
|
|
|
115
117
|
slot[name='actions'] {
|
|
116
118
|
align-items: flex-end;
|
|
117
119
|
}
|
|
118
|
-
`];render(){return
|
|
120
|
+
`];render(){return r`
|
|
119
121
|
<span class="scrim" @click=${this._close}></span>
|
|
120
122
|
<dialog ?open=${this.open}>
|
|
121
123
|
<custom-elevation level=${this.fullscreen?0:3}></custom-elevation>
|
|
@@ -125,15 +127,15 @@ import{_ as e,a as t,e as s}from"./custom-element-CAdbJRVg.js";import{r as o,i a
|
|
|
125
127
|
<flex-row class="header" center>
|
|
126
128
|
<flex-row center style="width: 100%">
|
|
127
129
|
<slot name="header-start">
|
|
128
|
-
${this.fullscreen?
|
|
130
|
+
${this.fullscreen?r`<custom-button @click=${this._close}
|
|
129
131
|
><custom-icon slot="icon">close</custom-icon></custom-button
|
|
130
132
|
>`:""}
|
|
131
133
|
</slot>
|
|
132
134
|
<slot name="title"></slot>
|
|
133
135
|
<flex-it></flex-it>
|
|
134
136
|
<slot name="header-end">
|
|
135
|
-
${this.fullscreen?
|
|
136
|
-
${this.fullscreen?"":
|
|
137
|
+
${this.fullscreen?r`<slot name="actions"></slot>`:""}
|
|
138
|
+
${this.fullscreen?"":r`<custom-button @click=${this._close}
|
|
137
139
|
><custom-icon slot="icon">close</custom-icon></custom-button
|
|
138
140
|
>`}
|
|
139
141
|
</slot>
|
|
@@ -144,6 +146,6 @@ import{_ as e,a as t,e as s}from"./custom-element-CAdbJRVg.js";import{r as o,i a
|
|
|
144
146
|
<slot></slot>
|
|
145
147
|
</flex-column>
|
|
146
148
|
|
|
147
|
-
${this.fullscreen?"":
|
|
149
|
+
${this.fullscreen?"":r`<slot name="actions"></slot>`}
|
|
148
150
|
</dialog>
|
|
149
151
|
`}static{t(l,g)}},l})();export{i as CustomDialog};
|