@vandeurenglenn/lite-elements 0.3.49 → 0.3.51

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 (142) hide show
  1. package/exports/banner.js +37 -37
  2. package/exports/bar/top-app-bar.d.ts +1 -1
  3. package/exports/bundle/banner.js +2 -2
  4. package/exports/bundle/button.js +6 -1
  5. package/exports/bundle/card.js +1 -1
  6. package/exports/bundle/code.js +1 -1
  7. package/exports/bundle/{column-B0bUzxkF.js → column-dsIMZ5XT.js} +1 -1
  8. package/exports/bundle/demo-elements.js +1 -1
  9. package/exports/bundle/demo-icons.js +1 -1
  10. package/exports/bundle/demo-shell.js +1 -1
  11. package/exports/bundle/demo.js +1 -1
  12. package/exports/bundle/dialog.js +1 -1
  13. package/exports/bundle/divider.js +1 -1
  14. package/exports/bundle/drawer-button.js +1 -1
  15. package/exports/bundle/drawer-item.js +1 -1
  16. package/exports/bundle/drawer-layout.js +1 -1
  17. package/exports/bundle/drawer.js +2 -2
  18. package/exports/bundle/dropdown-menu.js +1 -1
  19. package/exports/bundle/dropdown.js +1 -1
  20. package/exports/bundle/elements.js +1 -1
  21. package/exports/bundle/elevation.js +1 -1
  22. package/exports/bundle/fab.js +2 -2
  23. package/exports/bundle/icon-button.js +1 -1
  24. package/exports/bundle/icon-set.js +1 -1
  25. package/exports/bundle/icon.js +1 -1
  26. package/exports/bundle/index.html +590 -590
  27. package/exports/bundle/input.js +2 -2
  28. package/exports/bundle/list-item.js +1 -1
  29. package/exports/bundle/menu.js +1 -1
  30. package/exports/bundle/minute-field.js +1 -1
  31. package/exports/bundle/notification.js +1 -1
  32. package/exports/bundle/notifications.js +1 -1
  33. package/exports/bundle/pages.js +1 -1
  34. package/exports/bundle/pane.js +3 -3
  35. package/exports/bundle/property-C1gA9hig.js +23 -0
  36. package/exports/bundle/property-DL093_VN.js +11 -0
  37. package/exports/bundle/rail.js +1 -1
  38. package/exports/bundle/root.js +2 -2
  39. package/exports/bundle/row-CW5FbTZ_.js +28 -0
  40. package/exports/bundle/section.js +1 -1
  41. package/exports/bundle/section2.js +1 -1
  42. package/exports/bundle/select-mixin.js +1 -1
  43. package/exports/bundle/selector-mixin.js +1 -1
  44. package/exports/bundle/selector.js +1 -1
  45. package/exports/bundle/summary-mirror.js +1 -1
  46. package/exports/bundle/summary.js +2 -2
  47. package/exports/bundle/supporting-pane.js +1 -1
  48. package/exports/bundle/tab.js +2 -2
  49. package/exports/bundle/tabs.js +1 -1
  50. package/exports/bundle/text-field.js +1 -1
  51. package/exports/bundle/theme.js +1 -1
  52. package/exports/bundle/themes/default/colors.module.css +180 -180
  53. package/exports/bundle/themes/default/missing/motion.css +3 -3
  54. package/exports/bundle/themes/default/missing/shape.css +12 -12
  55. package/exports/bundle/themes/default/missing/theme.dark.css +4 -4
  56. package/exports/bundle/themes/default/missing/theme.light.css +4 -4
  57. package/exports/bundle/themes/default/missing/tokens.css +8 -8
  58. package/exports/bundle/themes/default/theme.css +10 -10
  59. package/exports/bundle/themes/default/theme.dark.css +33 -33
  60. package/exports/bundle/themes/default/theme.light.css +33 -33
  61. package/exports/bundle/themes/default/tokens.css +256 -256
  62. package/exports/bundle/themes/default/typography.module.css +150 -150
  63. package/exports/bundle/time-picker.js +1 -1
  64. package/exports/bundle/toggle-button.js +1 -1
  65. package/exports/bundle/toggle.js +1 -1
  66. package/exports/bundle/top-app-bar.js +63 -2
  67. package/exports/bundle/typography.js +1 -1
  68. package/exports/bundle/upload-file.js +1 -1
  69. package/exports/bundle/upload-image.js +62 -55
  70. package/exports/button.js +149 -144
  71. package/exports/card.js +140 -140
  72. package/exports/code.js +35 -35
  73. package/exports/demo-elements.js +1 -1
  74. package/exports/demo-icons.js +16 -16
  75. package/exports/demo-shell.js +540 -540
  76. package/exports/demo.js +457 -457
  77. package/exports/dialog.js +149 -149
  78. package/exports/divider.js +22 -22
  79. package/exports/drawer-button.js +14 -14
  80. package/exports/drawer-item.js +39 -39
  81. package/exports/drawer-layout.js +96 -96
  82. package/exports/drawer.js +8 -8
  83. package/exports/dropdown-menu.js +59 -59
  84. package/exports/dropdown.js +26 -26
  85. package/exports/elements.js +1 -1
  86. package/exports/elevation.js +51 -51
  87. package/exports/fab.js +146 -146
  88. package/exports/icon-button.js +13 -13
  89. package/exports/icon-set.js +5 -5
  90. package/exports/icon.js +16 -16
  91. package/exports/input.js +6 -6
  92. package/exports/list-item.js +43 -43
  93. package/exports/menu.js +13 -13
  94. package/exports/minute-field.js +5 -5
  95. package/exports/mixins/scroll-mixin.d.ts +1 -1
  96. package/exports/notification.js +35 -35
  97. package/exports/notifications.js +66 -66
  98. package/exports/pages.js +42 -42
  99. package/exports/pane.js +19 -19
  100. package/exports/rail.js +58 -58
  101. package/exports/root.js +8 -8
  102. package/exports/section/section.d.ts +2 -2
  103. package/exports/section.js +11 -11
  104. package/exports/section2.js +25 -25
  105. package/exports/selector.js +31 -31
  106. package/exports/summary-mirror.js +20 -20
  107. package/exports/summary.js +25 -25
  108. package/exports/supporting-pane.js +47 -47
  109. package/exports/tab.js +22 -22
  110. package/exports/tabs.js +51 -51
  111. package/exports/text-field.js +10 -10
  112. package/exports/theme.js +9 -9
  113. package/exports/themes/default/colors.module.css +180 -180
  114. package/exports/themes/default/missing/motion.css +3 -3
  115. package/exports/themes/default/missing/shape.css +12 -12
  116. package/exports/themes/default/missing/theme.dark.css +4 -4
  117. package/exports/themes/default/missing/theme.light.css +4 -4
  118. package/exports/themes/default/missing/tokens.css +8 -8
  119. package/exports/themes/default/theme.css +10 -10
  120. package/exports/themes/default/theme.dark.css +33 -33
  121. package/exports/themes/default/theme.light.css +33 -33
  122. package/exports/themes/default/tokens.css +256 -256
  123. package/exports/themes/default/typography.module.css +150 -150
  124. package/exports/time-picker.js +21 -21
  125. package/exports/toggle-button.js +4 -4
  126. package/exports/toggle.js +5 -5
  127. package/exports/top-app-bar.js +21 -21
  128. package/exports/{tslib.es6-CFl_-KPR.js → tslib.es6-Cg9lAhfj.js} +1 -1
  129. package/exports/typography.js +156 -156
  130. package/exports/upload-file.js +9 -9
  131. package/exports/upload-image.js +201 -201
  132. package/package.json +20 -36
  133. package/exports/bundle/property-BYA8Sw2t.js +0 -11
  134. package/exports/bundle/property-C4lhirVQ.js +0 -23
  135. package/exports/bundle/row-DYDgQVDj.js +0 -28
  136. package/exports/bundle/simple-hash-router.js +0 -1
  137. package/exports/bundle/types2.js +0 -1
  138. package/exports/mixins/file-reader-mixin.d.ts +0 -341
  139. package/exports/router/types.d.ts +0 -45
  140. package/exports/simple-hash-router.js +0 -111
  141. package/exports/types2.js +0 -1
  142. package/exports/upload/upload-image.d.ts +0 -381
@@ -1,4 +1,4 @@
1
- import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
2
  import { customElement, query, property, css, html, LiteElement } from '@vandeurenglenn/lite';
3
3
  import { render } from 'lit-html';
4
4
  import '@material/web/button/filled-tonal-button.js';
@@ -89,99 +89,99 @@ let CustomUploadImage = (() => {
89
89
  get hasLibrary() { return this.#hasLibrary_accessor_storage; }
90
90
  set hasLibrary(value) { this.#hasLibrary_accessor_storage = value; }
91
91
  static styles = [
92
- css `
93
- :host {
94
- display: block;
95
- }
96
-
97
- h5 {
98
- margin: 0;
99
- }
100
-
101
- custom-tab.custom-selected {
102
- background: var(--md-sys-color-tertiary);
103
- --custom-icon-color: var(--md-sys-color-on-tertiary);
104
- border: none;
105
- }
106
-
107
- custom-tab.custom-selected span,
108
- custom-tab.custom-selected custom-icon {
109
- color: var(--md-sys-color-on-tertiary);
110
- --custom-icon-color: var(--md-sys-color-on-tertiary);
111
- }
112
-
113
- custom-tab {
114
- gap: 8px;
115
- height: 40px;
116
- padding: 0 12px;
117
- box-sizing: border-box;
118
- width: auto;
119
- border-radius: 20px;
120
- font: var(--_supporting-text-type);
121
- }
122
-
123
- custom-tabs {
124
- height: 40px;
125
- }
126
-
127
- section {
128
- display: flex;
129
- flex-direction: column;
130
- height: 100%;
131
- width: 100%;
132
- min-height: 168px;
133
- position: absolute;
134
- transform: scale(0);
135
- justify-content: center;
136
- align-items: center;
137
- }
138
-
139
- section[route='camera'] {
140
- overflow-y: hidden;
141
- }
142
-
143
- section.custom-selected {
144
- transform: scale(1);
145
- position: relative;
146
- }
147
- md-outlined-text-field {
148
- padding-top: 12px;
149
- }
150
-
151
- .camera-actions {
152
- width: 100%;
153
- position: absolute;
154
- bottom: 0;
155
- margin-bottom: 3px;
156
- }
157
-
158
- section[route='camera'] flex-container {
159
- height: 320px;
160
- }
161
-
162
- flex-column {
163
- width: auto;
164
- }
165
-
166
- flex-container video,
167
- img:not([data-variant='icon']) {
168
- height: -webkit-fill-available;
169
- width: -webkit-fill-available;
170
- }
171
-
172
- [route='library'] img {
173
- width: 150px;
174
- cursor: pointer;
175
- }
176
-
177
- [data-variant='icon'] {
178
- height: 48px;
179
- width: 48px;
180
- }
181
-
182
- md-dialog {
183
- --_container-color: #2d2f31;
184
- }
92
+ css `
93
+ :host {
94
+ display: block;
95
+ }
96
+
97
+ h5 {
98
+ margin: 0;
99
+ }
100
+
101
+ custom-tab.custom-selected {
102
+ background: var(--md-sys-color-tertiary);
103
+ --custom-icon-color: var(--md-sys-color-on-tertiary);
104
+ border: none;
105
+ }
106
+
107
+ custom-tab.custom-selected span,
108
+ custom-tab.custom-selected custom-icon {
109
+ color: var(--md-sys-color-on-tertiary);
110
+ --custom-icon-color: var(--md-sys-color-on-tertiary);
111
+ }
112
+
113
+ custom-tab {
114
+ gap: 8px;
115
+ height: 40px;
116
+ padding: 0 12px;
117
+ box-sizing: border-box;
118
+ width: auto;
119
+ border-radius: 20px;
120
+ font: var(--_supporting-text-type);
121
+ }
122
+
123
+ custom-tabs {
124
+ height: 40px;
125
+ }
126
+
127
+ section {
128
+ display: flex;
129
+ flex-direction: column;
130
+ height: 100%;
131
+ width: 100%;
132
+ min-height: 168px;
133
+ position: absolute;
134
+ transform: scale(0);
135
+ justify-content: center;
136
+ align-items: center;
137
+ }
138
+
139
+ section[route='camera'] {
140
+ overflow-y: hidden;
141
+ }
142
+
143
+ section.custom-selected {
144
+ transform: scale(1);
145
+ position: relative;
146
+ }
147
+ md-outlined-text-field {
148
+ padding-top: 12px;
149
+ }
150
+
151
+ .camera-actions {
152
+ width: 100%;
153
+ position: absolute;
154
+ bottom: 0;
155
+ margin-bottom: 3px;
156
+ }
157
+
158
+ section[route='camera'] flex-container {
159
+ height: 320px;
160
+ }
161
+
162
+ flex-column {
163
+ width: auto;
164
+ }
165
+
166
+ flex-container video,
167
+ img:not([data-variant='icon']) {
168
+ height: -webkit-fill-available;
169
+ width: -webkit-fill-available;
170
+ }
171
+
172
+ [route='library'] img {
173
+ width: 150px;
174
+ cursor: pointer;
175
+ }
176
+
177
+ [data-variant='icon'] {
178
+ height: 48px;
179
+ width: 48px;
180
+ }
181
+
182
+ md-dialog {
183
+ --_container-color: #2d2f31;
184
+ }
185
185
  `
186
186
  ];
187
187
  get #dialog() {
@@ -214,9 +214,9 @@ let CustomUploadImage = (() => {
214
214
  const item = document.createElement('md-list-item');
215
215
  item.headline = file.name;
216
216
  item.setAttribute('noninteractive', '');
217
- item.innerHTML = `
218
- <img data-variant="icon" slot="start" src="${data}">
219
- <md-standard-icon-button slot="end"><custom-icon>delete</custom-icon></md-standard-icon-button>
217
+ item.innerHTML = `
218
+ <img data-variant="icon" slot="start" src="${data}">
219
+ <md-standard-icon-button slot="end"><custom-icon>delete</custom-icon></md-standard-icon-button>
220
220
  `;
221
221
  item.onclick = () => {
222
222
  this.shadowRoot.querySelector('section[route="file"]').removeChild(item);
@@ -255,103 +255,103 @@ let CustomUploadImage = (() => {
255
255
  this.#dialog.open = true;
256
256
  }
257
257
  #addImageTemplate() {
258
- return html `
259
- <form id="form-content" method="dialog">
260
- <custom-tabs attr-for-selected="route" @selected=${this.#onSelected.bind(this)}>
258
+ return html `
259
+ <form id="form-content" method="dialog">
260
+ <custom-tabs attr-for-selected="route" @selected=${this.#onSelected.bind(this)}>
261
261
  ${this.hasLibrary
262
- ? html `
263
- <custom-tab route="library">
264
- <custom-icon>photo_library</custom-icon>
265
- <span>library</span>
266
- </custom-tab>
262
+ ? html `
263
+ <custom-tab route="library">
264
+ <custom-icon>photo_library</custom-icon>
265
+ <span>library</span>
266
+ </custom-tab>
267
267
  `
268
- : ''}
269
- <custom-tab route="url">
270
- <custom-icon>link</custom-icon>
271
- <span>url</span>
272
- </custom-tab>
273
-
274
- <custom-tab route="camera">
275
- <custom-icon>camera</custom-icon>
276
- <span>camera</span>
277
- </custom-tab>
278
-
279
- <custom-tab route="file">
280
- <custom-icon>upload</custom-icon>
281
- <span>file</span>
282
- </custom-tab>
283
- <flex-it></flex-it>
284
- </custom-tabs>
285
- <custom-pages attr-for-selected="route">
268
+ : ''}
269
+ <custom-tab route="url">
270
+ <custom-icon>link</custom-icon>
271
+ <span>url</span>
272
+ </custom-tab>
273
+
274
+ <custom-tab route="camera">
275
+ <custom-icon>camera</custom-icon>
276
+ <span>camera</span>
277
+ </custom-tab>
278
+
279
+ <custom-tab route="file">
280
+ <custom-icon>upload</custom-icon>
281
+ <span>file</span>
282
+ </custom-tab>
283
+ <flex-it></flex-it>
284
+ </custom-tabs>
285
+ <custom-pages attr-for-selected="route">
286
286
  ${this.hasLibrary
287
- ? html `
288
- <section route="library">
289
- <flex-wrap-around>
290
- ${this.images.map((image) => html `
291
- <img
292
- @click=${(event) => this.#onlibclick.call(this, event, image.firebaseKey)}
293
- src=${`${location.origin}/api/image?image=${image.link.replace('.png', 'b.png')}`}
294
- />
295
- `)}
296
- </flex-wrap-around>
297
- </section>
287
+ ? html `
288
+ <section route="library">
289
+ <flex-wrap-around>
290
+ ${this.images.map((image) => html `
291
+ <img
292
+ @click=${(event) => this.#onlibclick.call(this, event, image.firebaseKey)}
293
+ src=${`${location.origin}/api/image?image=${image.link.replace('.png', 'b.png')}`}
294
+ />
295
+ `)}
296
+ </flex-wrap-around>
297
+ </section>
298
298
  `
299
- : ''}
300
- <section route="url">
301
- <flex-column>
302
- add image using a link/url
303
- <md-outlined-text-field label="url" input-field="url"></md-outlined-text-field>
304
- </flex-column>
305
- </section>
306
-
307
- <section route="camera">
308
- <flex-container>
309
- <video autoplay mute="true" class="camera-preview"></video>
310
- </flex-container>
311
-
312
- <flex-row class="camera-actions">
313
- <flex-it flex="2"></flex-it>
314
-
315
- <md-standard-icon-button
316
- @click=${() => (this.#cameraFacingMode = 'user')}
317
- ?disabled=${this.frontCameraDisabled}
318
- >
319
- <custom-icon>photo_camera_front</custom-icon>
320
- </md-standard-icon-button>
321
-
322
- <flex-it flex="1"></flex-it>
323
-
324
- <md-standard-icon-button style="transform: scale(1.66);" @click=${this.#takePhoto}>
325
- <custom-icon>photo_camera</custom-icon>
326
- </md-standard-icon-button>
327
-
328
- <flex-it flex="1"></flex-it>
329
-
330
- <md-standard-icon-button
331
- @click=${() => (this.#cameraFacingMode = 'environment')}
332
- ?disabled=${this.rearCameraDisabled}
333
- >
334
- <custom-icon>photo_camera_back</custom-icon>
335
- </md-standard-icon-button>
336
-
337
- <flex-it flex="2"></flex-it>
338
- </flex-row>
339
- </section>
340
-
341
- <section route="file">
342
- <md-filled-tonal-button @click=${this.#selectFile.bind(this)}>
343
- <custom-icon slot="icon">upload</custom-icon>
344
- select
345
- </md-filled-tonal-button>
346
- </section>
347
- </custom-pages>
348
- </form>
349
-
350
- <flex-row slot="actions">
351
- <md-text-button form="form-content" value="cancel">cancel</md-text-button>
352
- <flex-one></flex-one>
353
- <md-text-button form="form-content" value="submit">submit</md-text-button>
354
- </flex-row>
299
+ : ''}
300
+ <section route="url">
301
+ <flex-column>
302
+ add image using a link/url
303
+ <md-outlined-text-field label="url" input-field="url"></md-outlined-text-field>
304
+ </flex-column>
305
+ </section>
306
+
307
+ <section route="camera">
308
+ <flex-container>
309
+ <video autoplay mute="true" class="camera-preview"></video>
310
+ </flex-container>
311
+
312
+ <flex-row class="camera-actions">
313
+ <flex-it flex="2"></flex-it>
314
+
315
+ <md-standard-icon-button
316
+ @click=${() => (this.#cameraFacingMode = 'user')}
317
+ ?disabled=${this.frontCameraDisabled}
318
+ >
319
+ <custom-icon>photo_camera_front</custom-icon>
320
+ </md-standard-icon-button>
321
+
322
+ <flex-it flex="1"></flex-it>
323
+
324
+ <md-standard-icon-button style="transform: scale(1.66);" @click=${this.#takePhoto}>
325
+ <custom-icon>photo_camera</custom-icon>
326
+ </md-standard-icon-button>
327
+
328
+ <flex-it flex="1"></flex-it>
329
+
330
+ <md-standard-icon-button
331
+ @click=${() => (this.#cameraFacingMode = 'environment')}
332
+ ?disabled=${this.rearCameraDisabled}
333
+ >
334
+ <custom-icon>photo_camera_back</custom-icon>
335
+ </md-standard-icon-button>
336
+
337
+ <flex-it flex="2"></flex-it>
338
+ </flex-row>
339
+ </section>
340
+
341
+ <section route="file">
342
+ <md-filled-tonal-button @click=${this.#selectFile.bind(this)}>
343
+ <custom-icon slot="icon">upload</custom-icon>
344
+ select
345
+ </md-filled-tonal-button>
346
+ </section>
347
+ </custom-pages>
348
+ </form>
349
+
350
+ <flex-row slot="actions">
351
+ <md-text-button form="form-content" value="cancel">cancel</md-text-button>
352
+ <flex-one></flex-one>
353
+ <md-text-button form="form-content" value="submit">submit</md-text-button>
354
+ </flex-row>
355
355
  `;
356
356
  }
357
357
  #onAction = () => new Promise((resolve, reject) => {
@@ -383,17 +383,17 @@ let CustomUploadImage = (() => {
383
383
  this.#dialog.addEventListener('closed', action);
384
384
  });
385
385
  #busytemplate(title, description) {
386
- return html `
387
- <flex-row slot="title">
388
- <h5>${title}</h5>
389
- </flex-row>
390
- <flex-column>
391
- <flex-column> ${description} </flex-column>
392
-
393
- <flex-row style="justify-content: center; width: 100%;">
394
- <md-circular-progress indeterminate></md-circular-progress>
395
- </flex-row>
396
- </flex-column>
386
+ return html `
387
+ <flex-row slot="title">
388
+ <h5>${title}</h5>
389
+ </flex-row>
390
+ <flex-column>
391
+ <flex-column> ${description} </flex-column>
392
+
393
+ <flex-row style="justify-content: center; width: 100%;">
394
+ <md-circular-progress indeterminate></md-circular-progress>
395
+ </flex-row>
396
+ </flex-column>
397
397
  `;
398
398
  }
399
399
  async addImage() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vandeurenglenn/lite-elements",
3
- "version": "0.3.49",
3
+ "version": "0.3.51",
4
4
  "description": "set of lite elements following Material Design 3 spec",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -19,32 +19,32 @@
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
21
  "@material-design-icons/svg": "^0.14.13",
22
- "@material-symbols/svg-400": "^0.17.0",
23
- "@material/web": "^1.3.0",
24
- "@vandeurenglenn/custom-shared-styles": "^0.0.14",
25
- "@vandeurenglenn/flex-elements": "^1.3.1",
26
- "@vandeurenglenn/lite": "^0.2.37",
22
+ "@material-symbols/svg-400": "^0.27.2",
23
+ "@material/web": "^2.2.0",
24
+ "@vandeurenglenn/custom-shared-styles": "^0.0.18",
25
+ "@vandeurenglenn/flex-elements": "^1.3.2",
26
+ "@vandeurenglenn/lite": "^0.2.52",
27
27
  "custom-element-decorator": "^0.6.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@rollup/plugin-commonjs": "^25.0.7",
30
+ "@rollup/plugin-commonjs": "^28.0.1",
31
31
  "@rollup/plugin-json": "^6.1.0",
32
- "@rollup/plugin-node-resolve": "^15.2.3",
32
+ "@rollup/plugin-node-resolve": "^15.3.0",
33
33
  "@rollup/plugin-terser": "^0.4.4",
34
- "@rollup/plugin-typescript": "^11.1.6",
34
+ "@rollup/plugin-typescript": "^12.1.1",
35
35
  "@types/html": "^1.0.4",
36
- "@types/node": "^20.11.30",
36
+ "@types/node": "^22.10.1",
37
37
  "@web/rollup-plugin-html": "^2.3.0",
38
- "chrome-launcher": "^1.1.0",
39
- "globby": "^14.0.1",
40
- "lighthouse": "^11.6.0",
41
- "material-symbols": "^0.17.0",
42
- "rimraf": "^5.0.5",
43
- "rollup": "^4.13.0",
38
+ "chrome-launcher": "^1.1.2",
39
+ "globby": "^14.0.2",
40
+ "lighthouse": "^12.2.2",
41
+ "material-symbols": "^0.27.2",
42
+ "rimraf": "^6.0.1",
43
+ "rollup": "^4.28.1",
44
44
  "rollup-plugin-auto-exports": "^1.0.8",
45
45
  "rollup-plugin-material-symbols": "^2.1.5",
46
- "tslib": "^2.6.2",
47
- "typescript": "^5.4.2"
46
+ "tslib": "^2.8.1",
47
+ "typescript": "^5.7.2"
48
48
  },
49
49
  "exports": {
50
50
  ".": {
@@ -219,14 +219,6 @@
219
219
  "import": "./exports/fab.js",
220
220
  "types": "./exports/fab/fab.d.ts"
221
221
  },
222
- "./file-reader-mixin": {
223
- "import": "./exports/file-reader-mixin.js",
224
- "types": "./exports/mixins/file-reader-mixin.d.ts"
225
- },
226
- "./file-reader-mixin.js": {
227
- "import": "./exports/file-reader-mixin.js",
228
- "types": "./exports/mixins/file-reader-mixin.d.ts"
229
- },
230
222
  "./hash-router": {
231
223
  "import": "./exports/hash-router.js",
232
224
  "types": "./exports/router/hash-router.d.ts"
@@ -493,11 +485,11 @@
493
485
  },
494
486
  "./types": {
495
487
  "import": "./exports/types.js",
496
- "types": "./exports/router/types.d.ts"
488
+ "types": "./exports/types.d.ts"
497
489
  },
498
490
  "./types.js": {
499
491
  "import": "./exports/types.js",
500
- "types": "./exports/router/types.d.ts"
492
+ "types": "./exports/types.d.ts"
501
493
  },
502
494
  "./typography": {
503
495
  "import": "./exports/typography.js",
@@ -514,14 +506,6 @@
514
506
  "./upload-file.js": {
515
507
  "import": "./exports/upload-file.js",
516
508
  "types": "./exports/upload/upload-file.d.ts"
517
- },
518
- "./upload-image": {
519
- "import": "./exports/upload-image.js",
520
- "types": "./exports/upload/upload-image.d.ts"
521
- },
522
- "./upload-image.js": {
523
- "import": "./exports/upload-image.js",
524
- "types": "./exports/upload/upload-image.d.ts"
525
509
  }
526
510
  }
527
511
  }
@@ -1,11 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
- const t=globalThis,e=t.trustedTypes,i=e?e.createPolicy("lit-html",{createHTML:t=>t}):void 0,r="$lit$",o=`lit$${Math.random().toFixed(9).slice(2)}$`,h="?"+o,l=`<${h}>`,a=document,u=()=>a.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,b="[ \t\n\f\r]",p=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,_=/>/g,A=RegExp(`>|${b}(?:([^\\s"'>=/]+)(${b}*=${b}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,v=/"/g,f=/^(?:script|style|textarea|title)$/i,m=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),y=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),T=new WeakMap,w=a.createTreeWalker(a,129);function C(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==i?i.createHTML(e):e}const N=(t,e)=>{const i=t.length-1,h=[];let a,u=2===e?"<svg>":"",c=p;for(let e=0;e<i;e++){const i=t[e];let d,b,m=-1,y=0;for(;y<i.length&&(c.lastIndex=y,b=c.exec(i),null!==b);)y=c.lastIndex,c===p?"!--"===b[1]?c=$:void 0!==b[1]?c=_:void 0!==b[2]?(f.test(b[2])&&(a=RegExp("</"+b[2],"g")),c=A):void 0!==b[3]&&(c=A):c===A?">"===b[0]?(c=a??p,m=-1):void 0===b[1]?m=-2:(m=c.lastIndex-b[2].length,d=b[1],c=void 0===b[3]?A:'"'===b[3]?v:g):c===v||c===g?c=A:c===$||c===_?c=p:(c=A,a=void 0);const x=c===A&&t[e+1].startsWith("/>")?" ":"";u+=c===p?i+l:m>=0?(h.push(d),i.slice(0,m)+r+i.slice(m)+o+x):i+o+(-2===m?e:x)}return[C(t,u+(t[i]||"<?>")+(2===e?"</svg>":"")),h]};class V{constructor({strings:t,_$litType$:i},l){let a;this.parts=[];let c=0,d=0;const b=t.length-1,p=this.parts,[$,_]=N(t,i);if(this.el=V.createElement($,l),w.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(a=w.nextNode())&&p.length<b;){if(1===a.nodeType){if(a.hasAttributes())for(const t of a.getAttributeNames())if(t.endsWith(r)){const e=_[d++],i=a.getAttribute(t).split(o),r=/([.?@])?(.*)/.exec(e);p.push({type:1,index:c,name:r[2],strings:i,ctor:"."===r[1]?k:"?"===r[1]?H:"@"===r[1]?I:R}),a.removeAttribute(t)}else t.startsWith(o)&&(p.push({type:6,index:c}),a.removeAttribute(t));if(f.test(a.tagName)){const t=a.textContent.split(o),i=t.length-1;if(i>0){a.textContent=e?e.emptyScript:"";for(let e=0;e<i;e++)a.append(t[e],u()),w.nextNode(),p.push({type:2,index:++c});a.append(t[i],u())}}}else if(8===a.nodeType)if(a.data===h)p.push({type:2,index:c});else{let t=-1;for(;-1!==(t=a.data.indexOf(o,t+1));)p.push({type:7,index:c}),t+=o.length-1}c++}}static createElement(t,e){const i=a.createElement("template");return i.innerHTML=t,i}}function E(t,e,i=t,r){if(e===y)return e;let o=void 0!==r?i._$Co?.[r]:i._$Cl;const h=c(e)?void 0:e._$litDirective$;return o?.constructor!==h&&(o?._$AO?.(!1),void 0===h?o=void 0:(o=new h(t),o._$AT(t,i,r)),void 0!==r?(i._$Co??=[])[r]=o:i._$Cl=o),void 0!==o&&(e=E(t,o._$AS(t,e.values),o,r)),e}let U=class S{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,r=(t?.creationScope??a).importNode(e,!0);w.currentNode=r;let o=w.nextNode(),h=0,l=0,u=i[0];for(;void 0!==u;){if(h===u.index){let e;2===u.type?e=new M(o,o.nextSibling,this,t):1===u.type?e=new u.ctor(o,u.name,u.strings,this,t):6===u.type&&(e=new L(o,this,t)),this._$AV.push(e),u=i[++l]}h!==u?.index&&(o=w.nextNode(),h++)}return w.currentNode=a,r}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}};class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),c(t)?t===x||null==t||""===t?(this._$AH!==x&&this._$AR(),this._$AH=x):t!==this._$AH&&t!==y&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>d(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==x&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(a.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=V.createElement(C(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new U(r,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=T.get(t.strings);return void 0===e&&T.set(t.strings,e=new V(t)),e}k(t){d(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new M(this.S(u()),this.S(u()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,o){this.type=1,this._$AH=x,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=x}_$AI(t,e=this,i,r){const o=this.strings;let h=!1;if(void 0===o)t=E(this,t,e,0),h=!c(t)||t!==this._$AH&&t!==y,h&&(this._$AH=t);else{const r=t;let l,a;for(t=o[0],l=0;l<o.length-1;l++)a=E(this,r[i+l],e,l),a===y&&(a=this._$AH[l]),h||=!c(a)||a!==this._$AH[l],a===x?t=x:t!==x&&(t+=(a??"")+o[l+1]),this._$AH[l]=a}h&&!r&&this.j(t)}j(t){t===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class k extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===x?void 0:t}}class H extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==x)}}class I extends R{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){if((t=E(this,t,e,0)??x)===y)return;const i=this._$AH,r=t===x&&i!==x||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==x&&(i===x||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){E(this,t)}}const B=t.litHtmlPolyfillSupport;B?.(V,M),(t.litHtmlVersions??=[]).push("3.1.4");const O=(t,e,i)=>{const r=i?.renderBefore??e;let o=r._$litPart$;if(void 0===o){const t=i?.renderBefore??null;r._$litPart$=o=new M(e.insertBefore(u(),t),t,void 0,i??{})}return o._$AI(t),o
7
- /**
8
- * @license
9
- * Copyright 2019 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */},P=globalThis,W=P.ShadowRoot&&(void 0===P.ShadyCSS||P.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,j=Symbol(),D=new WeakMap;class n{constructor(t,e,i){if(this._$cssResult$=!0,i!==j)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(W&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=D.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&D.set(e,t))}return t}toString(){return this.cssText}}const q=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]);return new n(i,t,j)},z=(t,e)=>{if(W)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),r=P.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=i.cssText,t.appendChild(e)}},J=W?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new n("string"==typeof t?t:t+"",void 0,j))(e)})(t):t;Symbol.metadata??=Symbol("metadata");class s extends HTMLElement{static get observedAttributes(){return this[Symbol.metadata]?.observedAttributes?.values()??[]}attributeChangedCallback(t,e,i){this[t]===i&&e===i||(this[t]=i)}constructor(){super(),this.renderedOnce=!1,this.rendered=new Promise((t=>{this.renderResolve=t})),this.attachShadow({mode:"open"});const t=customElements.get(this.localName);this.shadowRoot.adoptedStyleSheets=t.styles?t.styles.map((t=>t.styleSheet??t)):[],this.requestRender()}render(){return m`<slot></slot>`}requestRender(){O(this.render(),this.shadowRoot),this.renderedOnce||(this.renderResolve(!0),this.renderedOnce=!0,this.firstRender&&this.firstRender())}}class LittlePubSub{subscribers={};verbose;constructor(t){this.verbose=t}_handleContext(t,e){return void 0===e&&(e=t),e}hasSubscribers(t){return!!this.subscribers[t]}subscribe(t,e,i){this.hasSubscribers(t)||(this.subscribers[t]={handlers:[],value:void 0}),i=this._handleContext(e,i),this.subscribers[t].handlers.push(e.bind(i))}unsubscribe(t,e,i){if(!this.hasSubscribers(t))return;i=this._handleContext(e,i);const r=this.subscribers[t].handlers.indexOf(e.bind(i));this.subscribers[t].handlers.splice(r),0===this.subscribers[t].handlers.length&&delete this.subscribers[t]}publish(t,e,i){this.hasSubscribers(t)||(this.subscribers[t]={handlers:[]});const r=this.subscribers[t]?.value;if(this.verbose||i||r!==e){this.subscribers[t].value=e;for(const i of this.subscribers[t].handlers)i(e,r)}}publishVerbose(t,e){this.publish(t,e,!0)}once(t){return new Promise((e=>{const i=r=>{e(r),this.unsubscribe(t,i)};this.subscribe(t,i)}))}}const Z=(t,e)=>{let i=t;return e===Boolean?i=Boolean("true"===t):e===Number?i=Number(t):e===Uint8Array?i=new Uint8Array(t.split(",")):e!==Array&&e!==Object&&e!==WeakMap&&e!==Map&&e!==Uint8Array||(i=JSON.parse(t),e===Map&&(i=new Map(t)),e===WeakMap&&(i=new WeakMap(t))),i};globalThis.pubsub=globalThis.pubsub||new LittlePubSub;const F={type:String,reflect:!1,renders:!0,batchDelay:50,temporaryRender:10},G=t=>{t={...F,...t};let e=0;return function(i,{kind:r,name:o,addInitializer:h,access:l,metadata:a}){const{type:u,reflect:c,renders:d,batches:b,batchDelay:p,consumer:$,provider:_,temporaryRender:A}=t,g=t.attribute??c,v=String(o),f=g&&"string"==typeof g?g:v,m=u===Boolean,y=$||"boolean"==typeof t.consumes?f:t.consumes,x=_||"boolean"==typeof t.provides?f:t.provides;if(t.provider&&console.warn(`${v}: 'options.provider' is deprecated, use options.provides instead`),t.consumer&&console.warn(`${v}: 'options.consumer' is deprecated, use options.consumes instead`),h((function(){"accessor"!==r&&console.warn(`${this.localName}: @property(${t}) ${v} ${r} is not supported`),g&&(a||(a={}),a.observedAttributes||(a.observedAttributes=new Map),a.observedAttributes.set(v,f)),y&&globalThis.pubsub.subscribe(y,(async t=>{this[o]=t}))})),"accessor"===r)return{get(){return T.call(this)},set(t){return w.call(this,t)},init(t){return this.hasAttribute(f)&&(t=m?this.hasAttribute(f):Z(this.getAttribute(f),u)),y&&globalThis.pubsub.subscribers?.[y]?.value&&(t=globalThis.pubsub.subscribers[y].value),void 0!==t&&w.call(this,t),this[o]}};function T(){const t=g?m?this.hasAttribute(f):Z(this.getAttribute(f),u):this[`__lite_${v}`]?this[`__lite_${v}`]:this[`_lite_${v}`];return y&&!this[`__lite_${v}`]&&globalThis.pubsub.subscribers?.[y]?.value?(t!==globalThis.pubsub.subscribers[y].value&&w.call(this,globalThis.pubsub.subscribers[y].value),globalThis.pubsub.subscribers[y].value):t}async function w(t){if(x&&globalThis.pubsub.publish(x,t),this[`_lite_${v}`]!==t){this.willChange&&(this[`__lite_${v}`]=await this.willChange(o,t)),g?m?t||this[`__lite_${v}`]?this.setAttribute(f,""):this.removeAttribute(f):t||this[`__lite_${v}`]?this.setAttribute(f,((t,e)=>{let i=e;if(t===Boolean||t===Number||t===Uint8Array)return e.toString();if(t===Array||t===Object||t===WeakMap||t===Map||t===Uint8Array){let r;t!==Map&&t!==WeakMap||(r=Object(e).entries()),i=JSON.stringify(r)}return i})(u,this[`__lite_${v}`]??t)):this.removeAttribute(f):this[`_lite_${v}`]=t;const i=()=>{e=0,this.requestRender&&d&&this.requestRender(),this.onChange&&this.onChange(o,this[`__lite_${v}`]??t)};b?e===A?i():(this[`_${v}_timeout`]&&clearTimeout(this[`_${v}_timeout`]),this[`_${v}_timeout`]=setTimeout(i,p)):i()}}}};export{LittlePubSub as L,z as S,x as T,J as c,q as i,O as j,G as r,s,y as w,m as x};
@@ -1,23 +0,0 @@
1
- import{c as t,S as e,j as i,w as r}from"./property-BYA8Sw2t.js";
2
- /**
3
- * @license
4
- * Copyright 2017 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
6
- */const{is:o,defineProperty:n,getOwnPropertyDescriptor:a,getOwnPropertyNames:h,getOwnPropertySymbols:c,getPrototypeOf:l}=Object,d=globalThis,p=d.trustedTypes,u=p?p.emptyScript:"",f=d.reactiveElementPolyfillSupport,E=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},_=(t,e)=>!o(t,e),$={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:_};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);void 0!==r&&n(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:o}=a(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);o.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$}static _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;const t=l(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){const t=this.properties,e=[...h(t),...c(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)i.unshift(t(e))}else void 0!==e&&i.push(t(e));return i}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return e(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(void 0!==r&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:m).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,r=i._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=i.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=r,this[r]=o.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??_)(this[t],e))return;this.P(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[E("elementProperties")]=new Map,b[E("finalized")]=new Map,f?.({ReactiveElement:b}),(d.reactiveElementVersions??=[]).push("2.0.4");
7
- /**
8
- * @license
9
- * Copyright 2017 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */
12
- class s extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=i(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return r}}s._$litElement$=!0,s.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:s});const y=globalThis.litElementPolyfillSupport;y?.({LitElement:s}),(globalThis.litElementVersions??=[]).push("4.0.6");
13
- /**
14
- * @license
15
- * Copyright 2017 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- */
18
- const g=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)}
19
- /**
20
- * @license
21
- * Copyright 2017 Google LLC
22
- * SPDX-License-Identifier: BSD-3-Clause
23
- */,P={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:_},v=(t=P,e,i)=>{const{kind:r,metadata:o}=i;let n=globalThis.litPropertyMetadata.get(o);if(void 0===n&&globalThis.litPropertyMetadata.set(o,n=new Map),n.set(i.name,t),"accessor"===r){const{name:r}=i;return{set(i){const o=e.get.call(this);e.set.call(this,i),this.requestUpdate(r,o,t)},init(e){return void 0!==e&&this.P(r,void 0,t),e}}}if("setter"===r){const{name:r}=i;return function(i){const o=this[r];e.call(this,i),this.requestUpdate(r,o,t)}}throw Error("Unsupported decorator location: "+r)};function U(t){return(e,i)=>"object"==typeof i?v(t,e,i):((t,e,i)=>{const r=e.hasOwnProperty(i);return e.constructor.createProperty(i,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}export{U as n,s,g as t};