@vandeurenglenn/lite-elements 0.3.67 → 0.3.69

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.
Files changed (108) hide show
  1. package/exports/banner.js +2 -1
  2. package/exports/bundle/banner.js +1 -1
  3. package/exports/bundle/button.css.js +213 -0
  4. package/exports/bundle/button.js +2 -205
  5. package/exports/bundle/card.js +2 -2
  6. package/exports/bundle/code.js +2 -2
  7. package/exports/bundle/{column-DDQ_cHlH.js → column-CFoAXmNm.js} +1 -1
  8. package/exports/bundle/demo-elements.js +1 -1
  9. package/exports/bundle/demo-icons.js +2 -2
  10. package/exports/bundle/demo-shell.js +2 -2
  11. package/exports/bundle/demo.js +2 -2
  12. package/exports/bundle/dialog.js +6 -6
  13. package/exports/bundle/divider.js +2 -2
  14. package/exports/bundle/drawer-button.js +2 -2
  15. package/exports/bundle/drawer-item.js +2 -2
  16. package/exports/bundle/drawer-layout.js +1 -1
  17. package/exports/bundle/drawer.js +3 -2
  18. package/exports/bundle/dropdown-menu.js +2 -2
  19. package/exports/bundle/dropdown.js +2 -2
  20. package/exports/bundle/elements.js +1 -1
  21. package/exports/bundle/elevation.js +2 -2
  22. package/exports/bundle/fab.js +2 -2
  23. package/exports/bundle/icon-button.js +28 -42
  24. package/exports/bundle/icon-set.js +1 -1
  25. package/exports/bundle/icon.js +3 -5
  26. package/exports/bundle/index.html +12 -0
  27. package/exports/bundle/input.js +2 -2
  28. package/exports/bundle/list-item.js +2 -2
  29. package/exports/bundle/menu.js +2 -2
  30. package/exports/bundle/minute-field.js +2 -2
  31. package/exports/bundle/notification.js +1 -1
  32. package/exports/bundle/notifications.js +3 -3
  33. package/exports/bundle/pages.js +1 -1
  34. package/exports/bundle/pane.js +3 -2
  35. package/exports/bundle/prompt.js +2 -2
  36. package/exports/bundle/{property-CVzdqkRx.js → property-ITdaEFzc.js} +2 -2
  37. package/exports/bundle/{property-dP9ZH-qy.js → property-uXlWYiST.js} +1 -1
  38. package/exports/bundle/rail.js +1 -1
  39. package/exports/bundle/root.js +2 -2
  40. package/exports/bundle/{row-UiFoKyj7.js → row-D8mlTlsJ.js} +1 -1
  41. package/exports/bundle/section.js +2 -2
  42. package/exports/bundle/section2.js +1 -1
  43. package/exports/bundle/select-mixin.js +1 -1
  44. package/exports/bundle/selector-mixin.js +1 -1
  45. package/exports/bundle/selector.js +1 -1
  46. package/exports/bundle/summary-mirror.js +1 -1
  47. package/exports/bundle/summary.js +2 -2
  48. package/exports/bundle/supporting-pane.js +1 -1
  49. package/exports/bundle/tab.js +1 -1
  50. package/exports/bundle/tabs.js +1 -1
  51. package/exports/bundle/text-field.js +2 -2
  52. package/exports/bundle/theme.js +1 -1
  53. package/exports/bundle/time-picker.js +2 -2
  54. package/exports/bundle/toggle-button.js +1 -1
  55. package/exports/bundle/toggle.js +2 -2
  56. package/exports/bundle/top-app-bar.js +4 -4
  57. package/exports/bundle/typography.js +2 -2
  58. package/exports/bundle/upload-file.js +2 -2
  59. package/exports/bundle/upload-image.js +1 -1
  60. package/exports/button/button.d.ts +2 -2
  61. package/exports/button/icon-button.d.ts +2 -2
  62. package/exports/button/styles/button.css.d.ts +2 -0
  63. package/exports/button.css.js +217 -0
  64. package/exports/button.js +17 -219
  65. package/exports/card.js +2 -1
  66. package/exports/code.js +1 -1
  67. package/exports/demo-icons.js +1 -1
  68. package/exports/demo-shell.js +2 -1
  69. package/exports/demo.js +1 -1
  70. package/exports/dialog.js +1 -1
  71. package/exports/divider.js +2 -1
  72. package/exports/drawer-button.js +2 -1
  73. package/exports/drawer-item.js +1 -1
  74. package/exports/drawer-layout.js +2 -1
  75. package/exports/drawer.js +2 -1
  76. package/exports/dropdown-menu.js +1 -1
  77. package/exports/dropdown.js +1 -1
  78. package/exports/elements.js +1 -0
  79. package/exports/elevation.js +1 -1
  80. package/exports/fab.js +1 -1
  81. package/exports/icon/icon.d.ts +1 -2
  82. package/exports/icon-button.js +30 -42
  83. package/exports/icon-set.js +1 -1
  84. package/exports/icon.js +4 -9
  85. package/exports/input.js +1 -1
  86. package/exports/list-item.js +1 -1
  87. package/exports/menu.js +1 -1
  88. package/exports/minute-field.js +1 -1
  89. package/exports/notification.js +1 -1
  90. package/exports/notifications.js +2 -1
  91. package/exports/pane.js +2 -1
  92. package/exports/prompt.js +1 -1
  93. package/exports/rail.js +2 -1
  94. package/exports/root.js +1 -1
  95. package/exports/section.js +1 -1
  96. package/exports/summary-mirror.js +1 -1
  97. package/exports/summary.js +1 -1
  98. package/exports/supporting-pane.js +2 -1
  99. package/exports/tab.js +1 -1
  100. package/exports/text-field.js +1 -1
  101. package/exports/theme.js +1 -1
  102. package/exports/time-picker.js +1 -1
  103. package/exports/toggle-button.js +2 -1
  104. package/exports/toggle.js +1 -1
  105. package/exports/top-app-bar.js +1 -1
  106. package/exports/typography.js +1 -1
  107. package/exports/upload-file.js +1 -1
  108. package/package.json +10 -2
package/exports/banner.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
2
  import './icon-button.js';
3
- import { customElement, html, LiteElement } from '@vandeurenglenn/lite';
3
+ import { customElement, LiteElement, html } from '@vandeurenglenn/lite';
4
4
  import '@vandeurenglenn/flex-elements/it.js';
5
5
  import './button.js';
6
6
  import './elevation.js';
7
+ import './button.css.js';
7
8
  import './icon.js';
8
9
  import '@vandeurenglenn/little-pubsub';
9
10
 
@@ -1,4 +1,4 @@
1
- import{_ as t,a as o}from"./tslib.es6-B87RQr7F.js";import"./icon-button.js";import{x as e,s as i}from"./property-CVzdqkRx.js";import{e as s}from"./custom-element-B_TPyPQO.js";import"./it-Dft_Rjy-.js";import"./button.js";import"./elevation.js";import"./icon.js";let n=(()=>{let n,r,a=[s("custom-banner")],l=[],m=i;return class extends m{static{r=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;t(null,n={value:r},a,{kind:"class",name:r.name,metadata:e},null,l),r=n.value,e&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),o(r,l)}render(){return e`
1
+ import{_ as t,a as o}from"./tslib.es6-B87RQr7F.js";import"./icon-button.js";import{s as e,x as i}from"./property-ITdaEFzc.js";import{e as s}from"./custom-element-B_TPyPQO.js";import"./it-Dft_Rjy-.js";import"./button.js";import"./elevation.js";import"./button.css.js";import"./icon.js";let n=(()=>{let n,r,a=[s("custom-banner")],l=[],m=e;return class extends m{static{r=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;t(null,n={value:r},a,{kind:"class",name:r.name,metadata:e},null,l),r=n.value,e&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),o(r,l)}render(){return i`
2
2
  <style>
3
3
  :host {
4
4
  display: flex;
@@ -0,0 +1,213 @@
1
+ import{i as e}from"./property-ITdaEFzc.js";var o=e`
2
+ :host {
3
+ --custom-button-border-radius: var(--md-sys-shape-corner-large);
4
+ color: var(--custom-button-color, --md-sys-color-on-background);
5
+ display: flex;
6
+
7
+ height: 40px;
8
+ border-radius: var(--custom-button-border-radius);
9
+ position: relative;
10
+ pointer-events: auto;
11
+ cursor: pointer;
12
+ overflow: hidden;
13
+
14
+ --elevation-level: 0;
15
+ }
16
+
17
+ button {
18
+ box-sizing: border-box;
19
+ border: none;
20
+ background: transparent;
21
+ color: inherit;
22
+ align-items: center;
23
+ justify-content: center;
24
+ user-select: none;
25
+ outline: none;
26
+ cursor: pointer;
27
+ border-radius: inherit;
28
+ padding: 0;
29
+ width: 100%;
30
+ height: 100%;
31
+ display: flex;
32
+ position: relative;
33
+ pointer-events: none;
34
+ font-size: inherit;
35
+ }
36
+
37
+ .label,
38
+ ::slotted(*) {
39
+ font-family: var(--md-sys-typescale-label-large-font-family-name);
40
+ font-style: var(--md-sys-typescale-label-large-font-family-style);
41
+ font-weight: var(--md-sys-typescale-label-large-font-weight);
42
+ font-size: var(--md-sys-typescale-label-large-font-size);
43
+ letter-spacing: var(--md-sys-typescale-label-large-tracking);
44
+ line-height: var(--md-sys-typescale-label-large-height);
45
+ text-transform: var(--md-sys-typescale-label-large-text-transform);
46
+ text-decoration: var(--md-sys-typescale-label-large-text-decoration);
47
+ }
48
+
49
+ :host([type='filled']) {
50
+ background: var(--md-sys-color-primary);
51
+ }
52
+
53
+ :host([type='filled']),
54
+ :host([type='filled']) ::slotted(*) {
55
+ color: var(--md-sys-color-on-primary);
56
+ fill: var(--md-sys-color-on-primary);
57
+ }
58
+
59
+ :host([type='outlined']) {
60
+ border: solid 1px;
61
+ border-color: var(--md-sys-color-outline);
62
+ background: var(--md-sys-color-surface);
63
+ }
64
+
65
+ :host([type='outlined']),
66
+ :host([type='outlined']) ::slotted(*) {
67
+ color: var(--md-sys-color-on-surface);
68
+ fill: var(--md-sys-color-on-surface);
69
+ }
70
+
71
+ :host([type='elevated']) {
72
+ background: var(--md-sys-color-surface-container-low);
73
+ }
74
+
75
+ :host([type='elevated']),
76
+ :host([type='elevated']) ::slotted(*) {
77
+ color: var(--md-sys-color-primary);
78
+ fill: var(--md-sys-color-primary);
79
+ }
80
+
81
+ :host([type='tertiary']) {
82
+ background: var(--md-sys-color-tertiary);
83
+ }
84
+
85
+ :host([type='tertiary']),
86
+ :host([type='tertiary']) ::slotted(*) {
87
+ color: var(--md-sys-color-on-tertiary);
88
+ fill: var(--md-sys-color-on-tertiary);
89
+ }
90
+
91
+ :host([type='tonal']) {
92
+ background: var(--md-sys-color-secondary-container);
93
+ }
94
+
95
+ :host([type='tonal']),
96
+ :host([type='tonal']) ::slotted(*) {
97
+ color: var(--md-sys-color-on-secondary-container);
98
+ fill: var(--md-sys-color-on-secondary-container);
99
+ }
100
+
101
+ custom-elevation {
102
+ --md-elevation-level: var(--elevation-level);
103
+ }
104
+
105
+ :host([type='elevated']) custom-elevation {
106
+ --elevation-level: 1;
107
+ }
108
+
109
+ :host([type='filled']),
110
+ :host([type='outlined']),
111
+ :host([type='text']),
112
+ :host([type='tonal']) {
113
+ --elevation-level: 0;
114
+ }
115
+
116
+ :host([has-label]) .label {
117
+ padding-left: 24px;
118
+ padding-right: 24px;
119
+ align-items: center;
120
+ display: flex;
121
+ justify-content: center;
122
+ flex: 1;
123
+ text-align: center;
124
+ }
125
+
126
+ :host([has-icon]:not([has-label])) {
127
+ border-radius: 50%;
128
+ width: 40px;
129
+ align-items: center;
130
+ justify-content: center;
131
+ }
132
+
133
+ :host([has-icon][has-label]) .label {
134
+ padding-left: 8px;
135
+ padding-right: 24px;
136
+ text-align: end;
137
+ }
138
+ :host([has-icon][has-label]) slot[name='icon']::slotted(*) {
139
+ padding-left: 16px;
140
+ }
141
+
142
+ :host([disabled]) .label,
143
+ :host([disabled]) slot[name='icon']::slotted(*) {
144
+ opacity: 0.28;
145
+ }
146
+ .label {
147
+ font-size: inherit;
148
+ }
149
+
150
+ ::slotted(*) {
151
+ pointer-events: none;
152
+ }
153
+
154
+ :host([type='elevated']:focus),
155
+ :host([type='elevated']:hover) {
156
+ --elevation-level: 2;
157
+ }
158
+
159
+ :host(:active) {
160
+ --elevation-level: 0;
161
+ }
162
+
163
+ button * {
164
+ pointer-events: none;
165
+ }
166
+ .hover {
167
+ position: absolute;
168
+ inset: 0;
169
+ background-color: var(--md-sys-color-primary);
170
+ opacity: 0;
171
+ transition: opacity 200ms;
172
+ border-radius: var(--custom-button-border-radius);
173
+ }
174
+
175
+ :host(:focus) .hover,
176
+ :host(:hover) .hover {
177
+ opacity: 0.1;
178
+ }
179
+
180
+ :host(:active) .hover {
181
+ opacity: 0.2;
182
+ }
183
+
184
+ :host([type='filled']:focus) .hover,
185
+ :host([type='filled']:hover) .hover {
186
+ background-color: var(--md-sys-color-on-primary);
187
+ opacity: 0.1;
188
+ }
189
+
190
+ :host([type='filled']:active) .hover {
191
+ opacity: 0.2;
192
+ }
193
+
194
+ :host([type='tertiary']:focus) .hover,
195
+ :host([type='tertiary']:hover) .hover {
196
+ background-color: var(--md-sys-color-on-tertiary);
197
+ opacity: 0.1;
198
+ }
199
+
200
+ :host([type='tertiary']:active) .hover {
201
+ opacity: 0.2;
202
+ }
203
+
204
+ :host([type='tonal']:focus) .hover,
205
+ :host([type='tonal']:hover) .hover {
206
+ background-color: var(--md-sys-color-on-secondary-container);
207
+ opacity: 0.1;
208
+ }
209
+
210
+ :host([type='tonal']:active) .hover {
211
+ opacity: 0.2;
212
+ }
213
+ `;export{o as default};
@@ -1,211 +1,8 @@
1
- import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{r as o,i as a,x as s,s as r}from"./property-CVzdqkRx.js";import{e as l}from"./custom-element-B_TPyPQO.js";import"./elevation.js";let n=(()=>{let n,i,c,h,d,y,p=[l("custom-button")],v=[],b=r,m=[],u=[],g=[],f=[],_=[],x=[],k=[],L=[];return class extends b{static{i=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(b[Symbol.metadata]??null):void 0;c=[o({attribute:"has-icon",reflect:!0})],h=[o({attribute:"has-label",reflect:!0})],d=[o({attribute:"type",reflect:!0})],y=[o({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},m,u),e(this,null,h,{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},g,f),e(this,null,d,{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},p,{kind:"class",name:i.name,metadata:t},null,v),i=n.value,t&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,m,void 0);get hasIcon(){return this.#e}set hasIcon(e){this.#e=e}#t=(t(this,u),t(this,g,void 0));get hasLabel(){return this.#t}set hasLabel(e){this.#t=e}#o=(t(this,f),t(this,_,"text"));get type(){return this.#o}set type(e){this.#o=e}#a=(t(this,x),t(this,k,void 0));get label(){return this.#a}set label(e){this.#a=e}static styles=[a`
2
- :host {
3
- --custom-button-border-radius: var(--md-sys-shape-corner-large);
4
- color: var(--custom-button-color, --md-sys-color-on-background);
5
- display: flex;
6
-
7
- height: 40px;
8
- border-radius: var(--custom-button-border-radius);
9
- position: relative;
10
- pointer-events: auto;
11
- cursor: pointer;
12
- overflow: hidden;
13
-
14
- --elevation-level: 0;
15
- }
16
-
17
- button {
18
- box-sizing: border-box;
19
- border: none;
20
- background: transparent;
21
- color: inherit;
22
- align-items: center;
23
- justify-content: center;
24
- user-select: none;
25
- outline: none;
26
- cursor: pointer;
27
- border-radius: inherit;
28
- padding: 0;
29
- width: 100%;
30
- height: 100%;
31
- display: flex;
32
- position: relative;
33
- pointer-events: none;
34
- font-size: inherit;
35
- }
36
-
37
- .label {
38
- flex: 1;
39
- text-align: center;
40
- }
41
-
42
- .label,
43
- ::slotted(*) {
44
- font-family: var(--md-sys-typescale-label-large-font-family-name);
45
- font-style: var(--md-sys-typescale-label-large-font-family-style);
46
- font-weight: var(--md-sys-typescale-label-large-font-weight);
47
- font-size: var(--md-sys-typescale-label-large-font-size);
48
- letter-spacing: var(--md-sys-typescale-label-large-tracking);
49
- line-height: var(--md-sys-typescale-label-large-height);
50
- text-transform: var(--md-sys-typescale-label-large-text-transform);
51
- text-decoration: var(--md-sys-typescale-label-large-text-decoration);
52
- }
53
-
54
- :host([type='filled']),
55
- :host([type='filled']) ::slotted(*) {
56
- color: var(--md-sys-color-on-primary);
57
- fill: var(--md-sys-color-on-primary);
58
- background: var(--md-sys-color-primary);
59
- }
60
-
61
- :host([type='outlined']) {
62
- border: solid 1px;
63
- border-color: var(--md-sys-color-outline);
64
- }
65
-
66
- :host([type='outlined']),
67
- :host([type='outlined']) ::slotted(*) {
68
- color: var(--md-sys-color-on-surface);
69
- fill: var(--md-sys-color-on-surface);
70
- background: var(--md-sys-color-surface);
71
- }
72
-
73
- :host([type='elevated']),
74
- :host([type='elevated']) ::slotted(*) {
75
- color: var(--md-sys-color-primary);
76
- fill: var(--md-sys-color-primary);
77
- background: var(--md-sys-color-surface-container-low);
78
- }
79
-
80
- :host([type='tertiary']),
81
- :host([type='tertiary']) ::slotted(*) {
82
- background: var(--md-sys-color-tertiary);
83
- color: var(--md-sys-color-on-tertiary);
84
- fill: var(--md-sys-color-on-tertiary);
85
- }
86
-
87
- :host([type='tonal']),
88
- :host([type='tonal']) ::slotted(*) {
89
- background: var(--md-sys-color-secondary-container);
90
- color: var(--md-sys-color-on-secondary-container);
91
- fill: var(--md-sys-color-on-secondary-container);
92
- }
93
-
94
- custom-elevation {
95
- --md-elevation-level: var(--elevation-level);
96
- }
97
-
98
- :host([type='elevated']) custom-elevation {
99
- --elevation-level: 1;
100
- }
101
-
102
- :host([type='filled']),
103
- :host([type='outlined']),
104
- :host([type='text']),
105
- :host([type='tonal']) {
106
- --elevation-level: 0;
107
- }
108
-
109
- :host([has-label]) .label {
110
- padding-left: 24px;
111
- padding-right: 24px;
112
- align-items: center;
113
- display: flex;
114
- justify-content: center;
115
- }
116
-
117
- :host([has-icon]:not([has-label])) {
118
- border-radius: 50%;
119
- width: 40px;
120
- align-items: center;
121
- justify-content: center;
122
- }
123
-
124
- :host([has-icon][has-label]) .label {
125
- padding-left: 8px;
126
- padding-right: 24px;
127
- text-align: end;
128
- }
129
- :host([has-icon][has-label]) slot[name='icon']::slotted(*) {
130
- padding-left: 16px;
131
- }
132
-
133
- :host([disabled]) .label,
134
- :host([disabled]) slot[name='icon']::slotted(*) {
135
- opacity: 0.28;
136
- }
137
- .label {
138
- font-size: inherit;
139
- }
140
-
141
- ::slotted(*) {
142
- pointer-events: none;
143
- }
144
-
145
- :host([type='elevated']:focus),
146
- :host([type='elevated']:hover) {
147
- --elevation-level: 2;
148
- }
149
-
150
- :host(:active) {
151
- --elevation-level: 0;
152
- }
153
-
154
- button * {
155
- pointer-events: none;
156
- }
157
- .hover {
158
- position: absolute;
159
- inset: 0;
160
- background-color: var(--md-sys-color-primary);
161
- opacity: 0;
162
- transition: opacity 200ms;
163
- border-radius: var(--custom-button-border-radius);
164
- }
165
-
166
- :host(:focus) .hover,
167
- :host(:hover) .hover {
168
- opacity: 0.1;
169
- }
170
-
171
- :host(:active) .hover {
172
- opacity: 0.2;
173
- }
174
-
175
- :host([type='filled']:focus) .hover,
176
- :host([type='filled']:hover) .hover {
177
- background-color: var(--md-sys-color-on-primary);
178
- opacity: 0.1;
179
- }
180
-
181
- :host([type='filled']:active) .hover {
182
- opacity: 0.2;
183
- }
184
-
185
- :host([type='tertiary']:focus) .hover,
186
- :host([type='tertiary']:hover) .hover {
187
- background-color: var(--md-sys-color-on-tertiary);
188
- opacity: 0.1;
189
- }
190
-
191
- :host([type='tertiary']:active) .hover {
192
- opacity: 0.2;
193
- }
194
-
195
- :host([type='tonal']:focus) .hover,
196
- :host([type='tonal']:hover) .hover {
197
- background-color: var(--md-sys-color-on-secondary-container);
198
- opacity: 0.1;
199
- }
200
-
201
- :host([type='tonal']:active) .hover {
202
- opacity: 0.2;
203
- }
204
- `];connectedCallback(){const e=Array.from(this.shadowRoot.querySelectorAll("slot"));for(const t of e)t.addEventListener("slotchange",(()=>this.#s(t)));this.#s(e[0])}onChange(e,t){"label"===e&&(this.hasLabel=!!t)}#s=(t(this,L),e=>{"icon"===e.getAttribute("name")&&(this.hasIcon=0!==Array.from(e?.assignedNodes()||[]).length)});render(){return s`
1
+ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s,r as a,x as o}from"./property-ITdaEFzc.js";import{e as l}from"./custom-element-B_TPyPQO.js";import"./elevation.js";import c from"./button.css.js";let r=(()=>{let r,i,n,h,b,m,u=[l("custom-button")],g=[],p=s,d=[],_=[],y=[],f=[],v=[],L=[],I=[],j=[];return class extends p{static{i=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[a({attribute:"has-icon",reflect:!0})],h=[a({attribute:"type",reflect:!0})],b=[a({attribute:!0})],m=[a({attribute:"has-label",reflect:!0})],t(this,null,n,{kind:"accessor",name:"hasIcon",static:!1,private:!1,access:{has:t=>"hasIcon"in t,get:t=>t.hasIcon,set:(t,e)=>{t.hasIcon=e}},metadata:e},d,_),t(this,null,h,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:t=>"type"in t,get:t=>t.type,set:(t,e)=>{t.type=e}},metadata:e},y,f),t(this,null,b,{kind:"accessor",name:"label",static:!1,private:!1,access:{has:t=>"label"in t,get:t=>t.label,set:(t,e)=>{t.label=e}},metadata:e},v,L),t(this,null,m,{kind:"accessor",name:"hasLabel",static:!1,private:!1,access:{has:t=>"hasLabel"in t,get:t=>t.hasLabel,set:(t,e)=>{t.hasLabel=e}},metadata:e},I,j),t(null,r={value:i},u,{kind:"class",name:i.name,metadata:e},null,g),i=r.value,e&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,d,void 0);get hasIcon(){return this.#t}set hasIcon(t){this.#t=t}#e=(e(this,_),e(this,y,"text"));get type(){return this.#e}set type(t){this.#e=t}#s=(e(this,f),e(this,v,void 0));get label(){return this.#s}set label(t){this.#s=t}#a=(e(this,L),e(this,I,void 0));get hasLabel(){return this.#a}set hasLabel(t){this.#a=t}static styles=[c];firstRender(){const t=Array.from(this.shadowRoot.querySelectorAll("slot"));for(const e of t)e.addEventListener("slotchange",(()=>this.#o(e)));if(t?.length>0)for(const e of t)this.#o(e)}onChange(t,e){"label"===t&&(this.hasLabel=!!e)}#o=(e(this,j),t=>{"icon"===t.getAttribute("name")&&(this.hasIcon=0!==Array.from(t?.assignedNodes()||[]).length)});render(){return o`
205
2
  <button label=${this.label}>
206
3
  <custom-elevation></custom-elevation>
207
4
  <slot name="icon"></slot>
208
5
  <span class="label">${this.label}</span>
209
6
  <span class="hover"></span>
210
7
  </button>
211
- `}static{t(i,v)}},i})();export{n as CustomButton};
8
+ `}static{e(i,g)}},i})();export{r as CustomButton};
@@ -1,7 +1,7 @@
1
- import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{x as o,s}from"./property-CVzdqkRx.js";import{e as a}from"./custom-element-B_TPyPQO.js";import"./button.js";import"./divider.js";import"./elevation.js";let i=(()=>{let i,l,r=[a("custom-card")],n=[],d=s;return class extends d{static{l=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;e(null,i={value:l},r,{kind:"class",name:l.name,metadata:t},null,n),l=i.value,t&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}dividerType;type="elevated";elevationLevel=0;static properties={hasDivider:{type:Boolean},elevationLevel:{type:Number}};renderDivider(){const e=this.shadowRoot.querySelector('slot[name="actions"]');return 0!==Array.from(e?.assignedNodes()||[]).length?o`<custom-divider
1
+ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{s as o,x as s}from"./property-ITdaEFzc.js";import{e as a}from"./custom-element-B_TPyPQO.js";import"./button.js";import"./divider.js";import"./elevation.js";import"./button.css.js";let i=(()=>{let i,l,r=[a("custom-card")],n=[],d=o;return class extends d{static{l=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;e(null,i={value:l},r,{kind:"class",name:l.name,metadata:t},null,n),l=i.value,t&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}dividerType;type="elevated";elevationLevel=0;static properties={hasDivider:{type:Boolean},elevationLevel:{type:Number}};renderDivider(){const e=this.shadowRoot.querySelector('slot[name="actions"]');return 0!==Array.from(e?.assignedNodes()||[]).length?s`<custom-divider
2
2
  ?inset=${"inset"===this.dividerType}
3
3
  ?middle-inset=${"inset"===this.dividerType}
4
- ></custom-divider>`:""}render(){return o`
4
+ ></custom-divider>`:""}render(){return s`
5
5
  <style>
6
6
  :host {
7
7
  box-sizing: border-box;
@@ -1,4 +1,4 @@
1
- import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{r as a,i as o,x as r,s}from"./property-CVzdqkRx.js";import{e as c}from"./custom-element-B_TPyPQO.js";let i=(()=>{let i,l,n,d=[c("demo-code")],m=[],p=s,u=[],g=[];return class extends p{static{l=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[a({type:String})],e(this,null,n,{kind:"accessor",name:"code",static:!1,private:!1,access:{has:e=>"code"in e,get:e=>e.code,set:(e,t)=>{e.code=t}},metadata:t},u,g),e(null,i={value:l},d,{kind:"class",name:l.name,metadata:t},null,m),l=i.value,t&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,u,void 0);get code(){return this.#e}set code(e){this.#e=e}static styles=[o`
1
+ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{s as a,r as o,i as r,x as s}from"./property-ITdaEFzc.js";import{e as c}from"./custom-element-B_TPyPQO.js";let i=(()=>{let i,l,n,d=[c("demo-code")],m=[],p=a,u=[],g=[];return class extends p{static{l=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[o({type:String})],e(this,null,n,{kind:"accessor",name:"code",static:!1,private:!1,access:{has:e=>"code"in e,get:e=>e.code,set:(e,t)=>{e.code=t}},metadata:t},u,g),e(null,i={value:l},d,{kind:"class",name:l.name,metadata:t},null,m),l=i.value,t&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,u,void 0);get code(){return this.#e}set code(e){this.#e=e}static styles=[r`
2
2
  :host {
3
3
  display: flex;
4
4
 
@@ -26,7 +26,7 @@ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{r as a,i as o,x as r,s
26
26
  margin-bottom: -12px;
27
27
  margin-left: -46px;
28
28
  }
29
- `];render(){return r`
29
+ `];render(){return s`
30
30
  <pre class="language-html">
31
31
  <code class="language-html">
32
32
  ${this.code}
@@ -1 +1 @@
1
- import{F as e}from"./row-UiFoKyj7.js";customElements.define("flex-column",class FlexColumn extends e{constructor(){super(),this.direction="column"}});
1
+ import{F as e}from"./row-D8mlTlsJ.js";customElements.define("flex-column",class FlexColumn extends e{constructor(){super(),this.direction="column"}});
@@ -1 +1 @@
1
- export{DemoIcons}from"./demo-icons.js";export{DemoSection}from"./section.js";import"./tslib.es6-B87RQr7F.js";import"./property-CVzdqkRx.js";import"./custom-element-B_TPyPQO.js";import"./icon-set.js";import"./section2.js";import"./scroll-mixin.js";import"./elevation.js";import"./code.js";
1
+ export{DemoIcons}from"./demo-icons.js";export{DemoSection}from"./section.js";import"./tslib.es6-B87RQr7F.js";import"./property-ITdaEFzc.js";import"./custom-element-B_TPyPQO.js";import"./icon-set.js";import"./section2.js";import"./scroll-mixin.js";import"./elevation.js";import"./code.js";
@@ -1,8 +1,8 @@
1
- import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{i as s,x as v,s as a}from"./property-CVzdqkRx.js";import{e as m}from"./custom-element-B_TPyPQO.js";import"./icon-set.js";let h=(()=>{let h,n,o=[m("demo-icons")],w=[],i=a;return class extends i{static{n=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;t(null,h={value:n},o,{kind:"class",name:n.name,metadata:e},null,w),n=h.value,e&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static styles=[s`
1
+ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s,i as v,x as a}from"./property-ITdaEFzc.js";import{e as m}from"./custom-element-B_TPyPQO.js";import"./icon-set.js";let h=(()=>{let h,n,o=[m("demo-icons")],w=[],i=s;return class extends i{static{n=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;t(null,h={value:n},o,{kind:"class",name:n.name,metadata:e},null,w),n=h.value,e&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static styles=[v`
2
2
  :host {
3
3
  display: block;
4
4
  }
5
- `];render(){return v` <custom-icon-set>
5
+ `];render(){return a` <custom-icon-set>
6
6
  <template>
7
7
  <span name="home"><svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M220-180h150v-250h220v250h150v-390L480-765 220-570v390Zm-60 60v-480l320-240 320 240v480H530v-250H430v250H160Zm320-353Z"/></svg></span>
8
8
  <span name="menu"><svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M120-240v-60h720v60H120Zm0-210v-60h720v60H120Zm0-210v-60h720v60H120Z"/></svg></span>
@@ -1,4 +1,4 @@
1
- import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{i as o,x as s,s as i}from"./property-CVzdqkRx.js";import{t as m}from"./query-DCTzLeFk.js";import{e as a}from"./custom-element-B_TPyPQO.js";import"./demo-icons.js";import"./section.js";import"./card.js";import"./theme.js";import"./divider.js";import"./button.js";import"./banner.js";import"./selector.js";import"./pages.js";import"./drawer.js";import"./drawer-button.js";import"./drawer-item.js";import"./section2.js";import"./drawer-layout.js";import"./top-app-bar.js";import"./icon.js";import"./typography.js";import"./pane.js";import"./supporting-pane.js";import"./tabs.js";import"./root.js";import"./dialog.js";import"./icon-set.js";import"./list-item.js";import"./menu.js";import"./icon-button.js";import"./dropdown-menu.js";import"./dropdown.js";import"./toggle.js";import"./toggle-button.js";import"./time-picker.js";import"./notification.js";import"./notifications.js";import"./code.js";import"./elevation.js";import"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./scroll-mixin.js";import"./column-DDQ_cHlH.js";import"./row-UiFoKyj7.js";import"./tab.js";import"./input.js";import"./property-dP9ZH-qy.js";let c=(()=>{let c,u,n,r,l=[a("demo-shell")],p=[],d=i,g=[],b=[],y=[],w=[];return class extends d{static{u=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[m("custom-selector")],r=[m("custom-pages")],t(this,null,n,{kind:"accessor",name:"selector",static:!1,private:!1,access:{has:t=>"selector"in t,get:t=>t.selector,set:(t,e)=>{t.selector=e}},metadata:e},g,b),t(this,null,r,{kind:"accessor",name:"pages",static:!1,private:!1,access:{has:t=>"pages"in t,get:t=>t.pages,set:(t,e)=>{t.pages=e}},metadata:e},y,w),t(null,c={value:u},l,{kind:"class",name:u.name,metadata:e},null,p),u=c.value,e&&Object.defineProperty(u,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,g,void 0);get selector(){return this.#t}set selector(t){this.#t=t}#e=(e(this,b),e(this,y,void 0));get pages(){return this.#e}set pages(t){this.#e=t}connectedCallback(){this.selector.addEventListener("selected",(async({detail:t})=>{document.dispatchEvent(new CustomEvent("custom-scroll",{detail:{scrolling:!1}})),this.pages.select(t),localStorage.setItem("last-selected",t)}));const t=localStorage.getItem("last-selected");t&&(customElements.get("custom-serlector")?this.selector.select(t):(this.selector.select(t),this.pages.select(t)))}static styles=[o`
1
+ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s as o,i as s,x as i}from"./property-ITdaEFzc.js";import{t as m}from"./query-DCTzLeFk.js";import{e as a}from"./custom-element-B_TPyPQO.js";import"./demo-icons.js";import"./section.js";import"./card.js";import"./theme.js";import"./divider.js";import"./button.js";import"./banner.js";import"./selector.js";import"./pages.js";import"./drawer.js";import"./drawer-button.js";import"./drawer-item.js";import"./section2.js";import"./drawer-layout.js";import"./top-app-bar.js";import"./icon.js";import"./typography.js";import"./pane.js";import"./supporting-pane.js";import"./tabs.js";import"./root.js";import"./dialog.js";import"./icon-set.js";import"./list-item.js";import"./menu.js";import"./icon-button.js";import"./dropdown-menu.js";import"./dropdown.js";import"./toggle.js";import"./toggle-button.js";import"./time-picker.js";import"./notification.js";import"./notifications.js";import"./code.js";import"./elevation.js";import"./button.css.js";import"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./scroll-mixin.js";import"./column-CFoAXmNm.js";import"./row-D8mlTlsJ.js";import"./tab.js";import"./input.js";import"./property-uXlWYiST.js";let c=(()=>{let c,u,n,r,l=[a("demo-shell")],p=[],d=o,g=[],b=[],y=[],w=[];return class extends d{static{u=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[m("custom-selector")],r=[m("custom-pages")],t(this,null,n,{kind:"accessor",name:"selector",static:!1,private:!1,access:{has:t=>"selector"in t,get:t=>t.selector,set:(t,e)=>{t.selector=e}},metadata:e},g,b),t(this,null,r,{kind:"accessor",name:"pages",static:!1,private:!1,access:{has:t=>"pages"in t,get:t=>t.pages,set:(t,e)=>{t.pages=e}},metadata:e},y,w),t(null,c={value:u},l,{kind:"class",name:u.name,metadata:e},null,p),u=c.value,e&&Object.defineProperty(u,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,g,void 0);get selector(){return this.#t}set selector(t){this.#t=t}#e=(e(this,b),e(this,y,void 0));get pages(){return this.#e}set pages(t){this.#e=t}connectedCallback(){this.selector.addEventListener("selected",(async({detail:t})=>{document.dispatchEvent(new CustomEvent("custom-scroll",{detail:{scrolling:!1}})),this.pages.select(t),localStorage.setItem("last-selected",t)}));const t=localStorage.getItem("last-selected");t&&(customElements.get("custom-serlector")?this.selector.select(t):(this.selector.select(t),this.pages.select(t)))}static styles=[s`
2
2
  custom-drawer-layout {
3
3
  height: 100%;
4
4
  width: 100%;
@@ -41,7 +41,7 @@ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{i as o,x as s,s as i}f
41
41
  flex-row:not([slot='top-app-bar-end']) {
42
42
  width: 100%;
43
43
  }
44
- `];render(){return s`
44
+ `];render(){return i`
45
45
  <custom-theme></custom-theme>
46
46
  <demo-icons></demo-icons>
47
47
 
@@ -1,8 +1,8 @@
1
- import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{i as o,x as s,s as i}from"./property-CVzdqkRx.js";import{t as m}from"./query-DCTzLeFk.js";import{e as a}from"./custom-element-B_TPyPQO.js";let c=(()=>{let c,u,n,r,l=[a("demo-shell")],p=[],d=i,b=[],y=[],g=[],w=[];return class extends d{static{u=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[m("custom-selector")],r=[m("custom-pages")],t(this,null,n,{kind:"accessor",name:"selector",static:!1,private:!1,access:{has:t=>"selector"in t,get:t=>t.selector,set:(t,e)=>{t.selector=e}},metadata:e},b,y),t(this,null,r,{kind:"accessor",name:"pages",static:!1,private:!1,access:{has:t=>"pages"in t,get:t=>t.pages,set:(t,e)=>{t.pages=e}},metadata:e},g,w),t(null,c={value:u},l,{kind:"class",name:u.name,metadata:e},null,p),u=c.value,e&&Object.defineProperty(u,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,b,void 0);get selector(){return this.#t}set selector(t){this.#t=t}#e=(e(this,y),e(this,g,void 0));get pages(){return this.#e}set pages(t){this.#e=t}static styles=[o`
1
+ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s as o,i as s,x as i}from"./property-ITdaEFzc.js";import{t as m}from"./query-DCTzLeFk.js";import{e as a}from"./custom-element-B_TPyPQO.js";let c=(()=>{let c,u,n,r,l=[a("demo-shell")],p=[],d=o,b=[],y=[],g=[],w=[];return class extends d{static{u=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[m("custom-selector")],r=[m("custom-pages")],t(this,null,n,{kind:"accessor",name:"selector",static:!1,private:!1,access:{has:t=>"selector"in t,get:t=>t.selector,set:(t,e)=>{t.selector=e}},metadata:e},b,y),t(this,null,r,{kind:"accessor",name:"pages",static:!1,private:!1,access:{has:t=>"pages"in t,get:t=>t.pages,set:(t,e)=>{t.pages=e}},metadata:e},g,w),t(null,c={value:u},l,{kind:"class",name:u.name,metadata:e},null,p),u=c.value,e&&Object.defineProperty(u,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,b,void 0);get selector(){return this.#t}set selector(t){this.#t=t}#e=(e(this,y),e(this,g,void 0));get pages(){return this.#e}set pages(t){this.#e=t}static styles=[s`
2
2
  :host {
3
3
  display: block;
4
4
  }
5
- `];async connectedCallback(){this.selector.addEventListener("selected",(async({detail:t})=>{document.dispatchEvent(new CustomEvent("custom-scroll",{detail:{scrolling:!1}})),this.pages.select(t),localStorage.setItem("last-selected",t)}));const t=localStorage.getItem("last-selected");t&&(customElements.get("custom-selector")?this.selector.select(t):(await customElements.whenDefined("custom-selector"),this.selector.select(t),this.pages.select(t)))}render(){return s`
5
+ `];async connectedCallback(){this.selector.addEventListener("selected",(async({detail:t})=>{document.dispatchEvent(new CustomEvent("custom-scroll",{detail:{scrolling:!1}})),this.pages.select(t),localStorage.setItem("last-selected",t)}));const t=localStorage.getItem("last-selected");t&&(customElements.get("custom-selector")?this.selector.select(t):(await customElements.whenDefined("custom-selector"),this.selector.select(t),this.pages.select(t)))}render(){return i`
6
6
  <custom-drawer-layout class="demo-container">
7
7
  <span slot="drawer-headline"> menu </span>
8
8
 
@@ -1,4 +1,4 @@
1
- import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{r as s,i as o,x as a,s as r}from"./property-CVzdqkRx.js";import{e as n}from"./custom-element-B_TPyPQO.js";import"./elevation.js";import"./icon.js";let i=(()=>{let i,l,c,h,m,d,p,u=[n("custom-dialog")],g=[],f=r,y=[],v=[],b=[],x=[],_=[],w=[],H=[],k=[],A=[],j=[];return class extends f{static{l=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0;c=[s({type:Boolean,reflect:!0})],h=[s({type:Boolean,reflect:!0})],m=[s({type:Boolean,reflect:!0,attribute:"has-actions"})],d=[s({type:Boolean,reflect:!0,attribute:"has-header"})],p=[s({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,j),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,j),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=[o`
1
+ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{s,r as o,i as a,x as r}from"./property-ITdaEFzc.js";import{e as n}from"./custom-element-B_TPyPQO.js";import"./elevation.js";import"./icon.js";let i=(()=>{let i,l,c,h,m,d,p,u=[n("custom-dialog")],g=[],f=s,y=[],v=[],b=[],x=[],_=[],w=[],H=[],k=[],A=[],j=[];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,j),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,j),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;
@@ -117,7 +117,7 @@ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{r as s,i as o,x as a,s
117
117
  slot[name='actions'] {
118
118
  align-items: flex-end;
119
119
  }
120
- `];render(){return a`
120
+ `];render(){return r`
121
121
  <span class="scrim" @click=${this._close}></span>
122
122
  <dialog ?open=${this.open}>
123
123
  <custom-elevation level=${this.fullscreen?0:3}></custom-elevation>
@@ -127,15 +127,15 @@ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{r as s,i as o,x as a,s
127
127
  <flex-row class="header" center>
128
128
  <flex-row center style="width: 100%">
129
129
  <slot name="header-start">
130
- ${this.fullscreen?a`<custom-button @click=${this._close}
130
+ ${this.fullscreen?r`<custom-button @click=${this._close}
131
131
  ><custom-icon slot="icon">close</custom-icon></custom-button
132
132
  >`:""}
133
133
  </slot>
134
134
  <slot name="title"></slot>
135
135
  <flex-it></flex-it>
136
136
  <slot name="header-end">
137
- ${this.fullscreen?a`<slot name="actions"></slot>`:""}
138
- ${this.fullscreen?"":a`<custom-button @click=${this._close}
137
+ ${this.fullscreen?r`<slot name="actions"></slot>`:""}
138
+ ${this.fullscreen?"":r`<custom-button @click=${this._close}
139
139
  ><custom-icon slot="icon">close</custom-icon></custom-button
140
140
  >`}
141
141
  </slot>
@@ -146,6 +146,6 @@ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{r as s,i as o,x as a,s
146
146
  <slot></slot>
147
147
  </flex-column>
148
148
 
149
- ${this.fullscreen?"":a`<slot name="actions"></slot>`}
149
+ ${this.fullscreen?"":r`<slot name="actions"></slot>`}
150
150
  </dialog>
151
151
  `}static{t(l,g)}},l})();export{i as CustomDialog};
@@ -1,4 +1,4 @@
1
- import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{x as i,s as a}from"./property-CVzdqkRx.js";import{e as r}from"./custom-element-B_TPyPQO.js";import"./button.js";import"./elevation.js";let o=(()=>{let o,l,s=[r("custom-divider")],n=[],m=a;return class extends m{static{l=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;t(null,o={value:l},s,{kind:"class",name:l.name,metadata:e},null,n),l=o.value,e&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static properties={inset:{type:Boolean,reflect:!0,attribute:"inset"},middleInset:{type:Boolean,reflect:!0,attribute:"middle-inset"}};render(){return i`
1
+ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s as i,x as a}from"./property-ITdaEFzc.js";import{e as r}from"./custom-element-B_TPyPQO.js";import"./button.js";import"./elevation.js";import"./button.css.js";let o=(()=>{let o,s,l=[r("custom-divider")],n=[],m=i;return class extends m{static{s=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;t(null,o={value:s},l,{kind:"class",name:s.name,metadata:e},null,n),s=o.value,e&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static properties={inset:{type:Boolean,reflect:!0,attribute:"inset"},middleInset:{type:Boolean,reflect:!0,attribute:"middle-inset"}};render(){return a`
2
2
  <style>
3
3
  :host {
4
4
  display: block;
@@ -19,4 +19,4 @@ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{x as i,s as a}from"./p
19
19
  margin-right: 16px;
20
20
  }
21
21
  </style>
22
- `}static{e(l,n)}},l})();export{o as CustomDivider};
22
+ `}static{e(s,n)}},s})();export{o as CustomDivider};
@@ -1,4 +1,4 @@
1
- import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{r as s,i as a,x as o,s as i}from"./property-CVzdqkRx.js";import{e as r}from"./custom-element-B_TPyPQO.js";import"./icon-button.js";import"./button.js";import"./elevation.js";import"./icon.js";let n=(()=>{let n,c,l,d,m,p=[r("custom-drawer-button")],u=[],h=i,b=[],_=[],g=[],w=[],v=[],y=[];return class extends h{static{c=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;l=[s({type:Boolean,reflect:!0})],d=[s({type:Boolean,reflect:!0,attribute:"drawer-open"})],m=[s()],e(this,null,l,{kind:"accessor",name:"mobile",static:!1,private:!1,access:{has:e=>"mobile"in e,get:e=>e.mobile,set:(e,t)=>{e.mobile=t}},metadata:t},b,_),e(this,null,d,{kind:"accessor",name:"drawerOpen",static:!1,private:!1,access:{has:e=>"drawerOpen"in e,get:e=>e.drawerOpen,set:(e,t)=>{e.drawerOpen=t}},metadata:t},g,w),e(this,null,m,{kind:"accessor",name:"id",static:!1,private:!1,access:{has:e=>"id"in e,get:e=>e.id,set:(e,t)=>{e.id=t}},metadata:t},v,y),e(null,n={value:c},p,{kind:"class",name:c.name,metadata:t},null,u),c=n.value,t&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,b,!1);get mobile(){return this.#e}set mobile(e){this.#e=e}#t=(t(this,_),t(this,g,void 0));get drawerOpen(){return this.#t}set drawerOpen(e){this.#t=e}#s=(t(this,w),t(this,v,void 0));get id(){return this.#s}set id(e){this.#s=e}openPane(){document.dispatchEvent(new CustomEvent("custom-pane-open",{detail:this.id}))}static styles=[a`
1
+ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{s,r as a,i as o,x as i}from"./property-ITdaEFzc.js";import{e as r}from"./custom-element-B_TPyPQO.js";import"./icon-button.js";import"./button.js";import"./elevation.js";import"./button.css.js";import"./icon.js";let n=(()=>{let n,c,l,m,d,p=[r("custom-drawer-button")],u=[],b=s,h=[],_=[],g=[],w=[],v=[],y=[];return class extends b{static{c=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(b[Symbol.metadata]??null):void 0;l=[a({type:Boolean,reflect:!0})],m=[a({type:Boolean,reflect:!0,attribute:"drawer-open"})],d=[a()],e(this,null,l,{kind:"accessor",name:"mobile",static:!1,private:!1,access:{has:e=>"mobile"in e,get:e=>e.mobile,set:(e,t)=>{e.mobile=t}},metadata:t},h,_),e(this,null,m,{kind:"accessor",name:"drawerOpen",static:!1,private:!1,access:{has:e=>"drawerOpen"in e,get:e=>e.drawerOpen,set:(e,t)=>{e.drawerOpen=t}},metadata:t},g,w),e(this,null,d,{kind:"accessor",name:"id",static:!1,private:!1,access:{has:e=>"id"in e,get:e=>e.id,set:(e,t)=>{e.id=t}},metadata:t},v,y),e(null,n={value:c},p,{kind:"class",name:c.name,metadata:t},null,u),c=n.value,t&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,h,!1);get mobile(){return this.#e}set mobile(e){this.#e=e}#t=(t(this,_),t(this,g,void 0));get drawerOpen(){return this.#t}set drawerOpen(e){this.#t=e}#s=(t(this,w),t(this,v,void 0));get id(){return this.#s}set id(e){this.#s=e}openPane(){document.dispatchEvent(new CustomEvent("custom-pane-open",{detail:this.id}))}static styles=[o`
2
2
  :host {
3
3
  display: block;
4
4
  opacity: 1;
@@ -11,4 +11,4 @@ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{r as s,i as a,x as o,s
11
11
  pointer-events: none;
12
12
  width: 0;
13
13
  }
14
- `];render(){return o` <custom-icon-button @click=${()=>this.openPane()} icon="menu"> </custom-icon-button> `}constructor(){super(...arguments),t(this,y)}static{t(c,u)}},c})();export{n as CustomDrawerButton};
14
+ `];render(){return i` <custom-icon-button @click=${()=>this.openPane()} icon="menu"> </custom-icon-button> `}constructor(){super(...arguments),t(this,y)}static{t(c,u)}},c})();export{n as CustomDrawerButton};