first commit

This commit is contained in:
becarta
2025-05-16 00:17:42 +02:00
parent ea5c866137
commit bacf566ec9
6020 changed files with 1715262 additions and 0 deletions

28
node_modules/lit-element/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,28 @@
BSD 3-Clause License
Copyright (c) 2017 Google LLC. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

22
node_modules/lit-element/README.md generated vendored Normal file
View File

@@ -0,0 +1,22 @@
# LitElement 3.0
A simple base class for creating fast, lightweight web components.
[![Build Status](https://github.com/lit/lit/workflows/Tests/badge.svg)](https://github.com/lit/lit/actions?query=workflow%3ATests)
[![Published on npm](https://img.shields.io/npm/v/lit-element.svg?logo=npm)](https://www.npmjs.com/package/lit-element)
[![Join our Discord](https://img.shields.io/badge/discord-join%20chat-5865F2.svg?logo=discord&logoColor=fff)](https://lit.dev/discord/)
[![Mentioned in Awesome Lit](https://awesome.re/mentioned-badge.svg)](https://github.com/web-padawan/awesome-lit)
LitElement is the base class that powers the [Lit](https://lit.dev) library for building fast web components. Most users should import `LitElement` from the [`lit`](https://www.npmjs.com/package/lit) package rather than installing and importing from the `lit-element` package directly.
## About this release
This is a stable release of `lit-element` 3.0.0 (part of the Lit 2.0 release). If upgrading from previous versions of `lit-element`, please see the [Upgrade Guide](https://lit.dev/docs/releases/upgrade/) for a step-by-step guide on upgrading.
## Documentation
Full documentation is available at [lit.dev](https://lit.dev).
## Contributing
Please see [CONTRIBUTING.md](../../CONTRIBUTING.md).

16
node_modules/lit-element/decorators.d.ts generated vendored Normal file
View File

@@ -0,0 +1,16 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/base.js';
export * from '@lit/reactive-element/decorators/custom-element.js';
export * from '@lit/reactive-element/decorators/property.js';
export * from '@lit/reactive-element/decorators/state.js';
export * from '@lit/reactive-element/decorators/event-options.js';
export * from '@lit/reactive-element/decorators/query.js';
export * from '@lit/reactive-element/decorators/query-all.js';
export * from '@lit/reactive-element/decorators/query-async.js';
export * from '@lit/reactive-element/decorators/query-assigned-elements.js';
export * from '@lit/reactive-element/decorators/query-assigned-nodes.js';
//# sourceMappingURL=decorators.d.ts.map

1
node_modules/lit-element/decorators.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,0DAA0D,CAAC"}

2
node_modules/lit-element/decorators.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export*from"@lit/reactive-element/decorators/base.js";export*from"@lit/reactive-element/decorators/custom-element.js";export*from"@lit/reactive-element/decorators/property.js";export*from"@lit/reactive-element/decorators/state.js";export*from"@lit/reactive-element/decorators/event-options.js";export*from"@lit/reactive-element/decorators/query.js";export*from"@lit/reactive-element/decorators/query-all.js";export*from"@lit/reactive-element/decorators/query-async.js";export*from"@lit/reactive-element/decorators/query-assigned-elements.js";export*from"@lit/reactive-element/decorators/query-assigned-nodes.js";
//# sourceMappingURL=decorators.js.map

1
node_modules/lit-element/decorators.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"decorators.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/custom-element.js';
//# sourceMappingURL=custom-element.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"custom-element.d.ts","sourceRoot":"","sources":["../../src/decorators/custom-element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,oDAAoD,CAAC"}

View File

@@ -0,0 +1,2 @@
export*from"@lit/reactive-element/decorators/custom-element.js";
//# sourceMappingURL=custom-element.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"custom-element.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/event-options.js';
//# sourceMappingURL=event-options.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"event-options.d.ts","sourceRoot":"","sources":["../../src/decorators/event-options.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,mDAAmD,CAAC"}

2
node_modules/lit-element/decorators/event-options.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export*from"@lit/reactive-element/decorators/event-options.js";
//# sourceMappingURL=event-options.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"event-options.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

7
node_modules/lit-element/decorators/property.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/property.js';
//# sourceMappingURL=property.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../src/decorators/property.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,8CAA8C,CAAC"}

2
node_modules/lit-element/decorators/property.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export*from"@lit/reactive-element/decorators/property.js";
//# sourceMappingURL=property.js.map

1
node_modules/lit-element/decorators/property.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"property.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

7
node_modules/lit-element/decorators/query-all.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-all.js';
//# sourceMappingURL=query-all.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-all.d.ts","sourceRoot":"","sources":["../../src/decorators/query-all.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,+CAA+C,CAAC"}

2
node_modules/lit-element/decorators/query-all.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export*from"@lit/reactive-element/decorators/query-all.js";
//# sourceMappingURL=query-all.js.map

1
node_modules/lit-element/decorators/query-all.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"query-all.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-assigned-elements.js';
//# sourceMappingURL=query-assigned-elements.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-assigned-elements.d.ts","sourceRoot":"","sources":["../../src/decorators/query-assigned-elements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,6DAA6D,CAAC"}

View File

@@ -0,0 +1,2 @@
export*from"@lit/reactive-element/decorators/query-assigned-elements.js";
//# sourceMappingURL=query-assigned-elements.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-assigned-elements.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-assigned-nodes.js';
//# sourceMappingURL=query-assigned-nodes.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-assigned-nodes.d.ts","sourceRoot":"","sources":["../../src/decorators/query-assigned-nodes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,0DAA0D,CAAC"}

View File

@@ -0,0 +1,2 @@
export*from"@lit/reactive-element/decorators/query-assigned-nodes.js";
//# sourceMappingURL=query-assigned-nodes.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-assigned-nodes.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

7
node_modules/lit-element/decorators/query-async.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-async.js';
//# sourceMappingURL=query-async.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-async.d.ts","sourceRoot":"","sources":["../../src/decorators/query-async.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,iDAAiD,CAAC"}

2
node_modules/lit-element/decorators/query-async.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export*from"@lit/reactive-element/decorators/query-async.js";
//# sourceMappingURL=query-async.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-async.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

7
node_modules/lit-element/decorators/query.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query.js';
//# sourceMappingURL=query.d.ts.map

1
node_modules/lit-element/decorators/query.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/decorators/query.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,2CAA2C,CAAC"}

2
node_modules/lit-element/decorators/query.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export*from"@lit/reactive-element/decorators/query.js";
//# sourceMappingURL=query.js.map

1
node_modules/lit-element/decorators/query.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"query.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

7
node_modules/lit-element/decorators/state.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/state.js';
//# sourceMappingURL=state.d.ts.map

1
node_modules/lit-element/decorators/state.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/decorators/state.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,2CAA2C,CAAC"}

2
node_modules/lit-element/decorators/state.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export*from"@lit/reactive-element/decorators/state.js";
//# sourceMappingURL=state.js.map

1
node_modules/lit-element/decorators/state.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"state.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

16
node_modules/lit-element/development/decorators.d.ts generated vendored Normal file
View File

@@ -0,0 +1,16 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/base.js';
export * from '@lit/reactive-element/decorators/custom-element.js';
export * from '@lit/reactive-element/decorators/property.js';
export * from '@lit/reactive-element/decorators/state.js';
export * from '@lit/reactive-element/decorators/event-options.js';
export * from '@lit/reactive-element/decorators/query.js';
export * from '@lit/reactive-element/decorators/query-all.js';
export * from '@lit/reactive-element/decorators/query-async.js';
export * from '@lit/reactive-element/decorators/query-assigned-elements.js';
export * from '@lit/reactive-element/decorators/query-assigned-nodes.js';
//# sourceMappingURL=decorators.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,0DAA0D,CAAC"}

22
node_modules/lit-element/development/decorators.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all
* property decorators (but not class decorators) in this file that have
* an @ExportDecoratedItems annotation must be defined as a regular function,
* not an arrow function.
*/
export * from '@lit/reactive-element/decorators/base.js';
export * from '@lit/reactive-element/decorators/custom-element.js';
export * from '@lit/reactive-element/decorators/property.js';
export * from '@lit/reactive-element/decorators/state.js';
export * from '@lit/reactive-element/decorators/event-options.js';
export * from '@lit/reactive-element/decorators/query.js';
export * from '@lit/reactive-element/decorators/query-all.js';
export * from '@lit/reactive-element/decorators/query-async.js';
export * from '@lit/reactive-element/decorators/query-assigned-elements.js';
export * from '@lit/reactive-element/decorators/query-assigned-nodes.js';
//# sourceMappingURL=decorators.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AAEH,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,0DAA0D,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nexport * from '@lit/reactive-element/decorators/base.js';\nexport * from '@lit/reactive-element/decorators/custom-element.js';\nexport * from '@lit/reactive-element/decorators/property.js';\nexport * from '@lit/reactive-element/decorators/state.js';\nexport * from '@lit/reactive-element/decorators/event-options.js';\nexport * from '@lit/reactive-element/decorators/query.js';\nexport * from '@lit/reactive-element/decorators/query-all.js';\nexport * from '@lit/reactive-element/decorators/query-async.js';\nexport * from '@lit/reactive-element/decorators/query-assigned-elements.js';\nexport * from '@lit/reactive-element/decorators/query-assigned-nodes.js';\n"]}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/custom-element.js';
//# sourceMappingURL=custom-element.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"custom-element.d.ts","sourceRoot":"","sources":["../../src/decorators/custom-element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,oDAAoD,CAAC"}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/custom-element.js';
//# sourceMappingURL=custom-element.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"custom-element.js","sourceRoot":"","sources":["../../src/decorators/custom-element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,oDAAoD,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nexport * from '@lit/reactive-element/decorators/custom-element.js';\n"]}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/event-options.js';
//# sourceMappingURL=event-options.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"event-options.d.ts","sourceRoot":"","sources":["../../src/decorators/event-options.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,mDAAmD,CAAC"}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/event-options.js';
//# sourceMappingURL=event-options.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"event-options.js","sourceRoot":"","sources":["../../src/decorators/event-options.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,mDAAmD,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nexport * from '@lit/reactive-element/decorators/event-options.js';\n"]}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/property.js';
//# sourceMappingURL=property.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../src/decorators/property.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,8CAA8C,CAAC"}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/property.js';
//# sourceMappingURL=property.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../src/decorators/property.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,8CAA8C,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nexport * from '@lit/reactive-element/decorators/property.js';\n"]}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-all.js';
//# sourceMappingURL=query-all.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-all.d.ts","sourceRoot":"","sources":["../../src/decorators/query-all.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,+CAA+C,CAAC"}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-all.js';
//# sourceMappingURL=query-all.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-all.js","sourceRoot":"","sources":["../../src/decorators/query-all.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,+CAA+C,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nexport * from '@lit/reactive-element/decorators/query-all.js';\n"]}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-assigned-elements.js';
//# sourceMappingURL=query-assigned-elements.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-assigned-elements.d.ts","sourceRoot":"","sources":["../../src/decorators/query-assigned-elements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,6DAA6D,CAAC"}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-assigned-elements.js';
//# sourceMappingURL=query-assigned-elements.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-assigned-elements.js","sourceRoot":"","sources":["../../src/decorators/query-assigned-elements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,6DAA6D,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nexport * from '@lit/reactive-element/decorators/query-assigned-elements.js';\n"]}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-assigned-nodes.js';
//# sourceMappingURL=query-assigned-nodes.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-assigned-nodes.d.ts","sourceRoot":"","sources":["../../src/decorators/query-assigned-nodes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,0DAA0D,CAAC"}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-assigned-nodes.js';
//# sourceMappingURL=query-assigned-nodes.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-assigned-nodes.js","sourceRoot":"","sources":["../../src/decorators/query-assigned-nodes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,0DAA0D,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nexport * from '@lit/reactive-element/decorators/query-assigned-nodes.js';\n"]}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-async.js';
//# sourceMappingURL=query-async.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-async.d.ts","sourceRoot":"","sources":["../../src/decorators/query-async.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,iDAAiD,CAAC"}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-async.js';
//# sourceMappingURL=query-async.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query-async.js","sourceRoot":"","sources":["../../src/decorators/query-async.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,iDAAiD,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nexport * from '@lit/reactive-element/decorators/query-async.js';\n"]}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query.js';
//# sourceMappingURL=query.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/decorators/query.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,2CAA2C,CAAC"}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query.js';
//# sourceMappingURL=query.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/decorators/query.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,2CAA2C,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nexport * from '@lit/reactive-element/decorators/query.js';\n"]}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/state.js';
//# sourceMappingURL=state.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/decorators/state.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,2CAA2C,CAAC"}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/state.js';
//# sourceMappingURL=state.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/decorators/state.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,2CAA2C,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nexport * from '@lit/reactive-element/decorators/state.js';\n"]}

View File

@@ -0,0 +1,7 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export {};
//# sourceMappingURL=experimental-hydrate-support.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"experimental-hydrate-support.d.ts","sourceRoot":"","sources":["../src/experimental-hydrate-support.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}

View File

@@ -0,0 +1,76 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
import { render } from 'lit-html';
import { hydrate } from 'lit-html/experimental-hydrate.js';
import { HYDRATE_INTERNALS_ATTR_PREFIX } from '@lit-labs/ssr-dom-shim';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
globalThis.litElementHydrateSupport = ({ LitElement, }) => {
const observedAttributes = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(LitElement), 'observedAttributes').get;
// Add `defer-hydration` to observedAttributes
Object.defineProperty(LitElement, 'observedAttributes', {
get() {
return [...observedAttributes.call(this), 'defer-hydration'];
},
});
// Enable element when 'defer-hydration' attribute is removed by calling the
// super.connectedCallback()
const attributeChangedCallback = LitElement.prototype.attributeChangedCallback;
LitElement.prototype.attributeChangedCallback = function (name, old, value) {
if (name === 'defer-hydration' && value === null) {
connectedCallback.call(this);
}
attributeChangedCallback.call(this, name, old, value);
};
// Override `connectedCallback` to capture whether we need hydration, and
// defer `super.connectedCallback()` if the 'defer-hydration' attribute is set
const connectedCallback = LitElement.prototype.connectedCallback;
LitElement.prototype.connectedCallback = function () {
// If the outer scope of this element has not yet been hydrated, wait until
// 'defer-hydration' attribute has been removed to enable
if (!this.hasAttribute('defer-hydration')) {
connectedCallback.call(this);
}
};
// If we've been server-side rendered, just return `this.shadowRoot`, don't
// call the base implementation, which would also adopt styles (for now)
const createRenderRoot = LitElement.prototype.createRenderRoot;
LitElement.prototype.createRenderRoot = function () {
if (this.shadowRoot) {
this._$needsHydration = true;
return this.shadowRoot;
}
else {
return createRenderRoot.call(this);
}
};
// Hydrate on first update when needed
const update = Object.getPrototypeOf(LitElement.prototype).update;
LitElement.prototype.update = function (changedProperties) {
const value = this.render();
// Since this is a patch, we can't call super.update(), so we capture
// it off the proto chain and call it instead
update.call(this, changedProperties);
if (this._$needsHydration) {
this._$needsHydration = false;
// Remove aria attributes added by internals shim during SSR
for (let i = 0; i < this.attributes.length; i++) {
const attr = this.attributes[i];
if (attr.name.startsWith(HYDRATE_INTERNALS_ATTR_PREFIX)) {
const ariaAttr = attr.name.slice(HYDRATE_INTERNALS_ATTR_PREFIX.length);
this.removeAttribute(ariaAttr);
this.removeAttribute(attr.name);
}
}
hydrate(value, this.renderRoot, this.renderOptions);
}
else {
render(value, this.renderRoot, this.renderOptions);
}
};
};
console.warn('Import from `lit-element/experimental-hydrate-support.js` is deprecated.' +
'Import `@lit-labs/ssr-client/lit-element-hydrate-support.js` instead.');
//# sourceMappingURL=experimental-hydrate-support.js.map

File diff suppressed because one or more lines are too long

10
node_modules/lit-element/development/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element';
export * from 'lit-html';
export * from './lit-element.js';
export * from './decorators.js';
//# sourceMappingURL=index.d.ts.map

1
node_modules/lit-element/development/index.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}

14
node_modules/lit-element/development/index.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element';
export * from 'lit-html';
export * from './lit-element.js';
export * from './decorators.js';
console.warn("The main 'lit-element' module entrypoint is deprecated. Please update " +
"your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' " +
"or import from 'lit-element/lit-element.ts'. See " +
'https://lit.dev/msg/deprecated-import-path for more information.');
//# sourceMappingURL=index.js.map

1
node_modules/lit-element/development/index.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAEhC,OAAO,CAAC,IAAI,CACV,wEAAwE;IACtE,uEAAuE;IACvE,mDAAmD;IACnD,kEAAkE,CACrE,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nexport * from '@lit/reactive-element';\nexport * from 'lit-html';\nexport * from './lit-element.js';\nexport * from './decorators.js';\n\nconsole.warn(\n \"The main 'lit-element' module entrypoint is deprecated. Please update \" +\n \"your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' \" +\n \"or import from 'lit-element/lit-element.ts'. See \" +\n 'https://lit.dev/msg/deprecated-import-path for more information.'\n);\n"]}

183
node_modules/lit-element/development/lit-element.d.ts generated vendored Normal file
View File

@@ -0,0 +1,183 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* The main LitElement module, which defines the {@linkcode LitElement} base
* class and related APIs.
*
* LitElement components can define a template and a set of observed
* properties. Changing an observed property triggers a re-render of the
* element.
*
* Import {@linkcode LitElement} and {@linkcode html} from this module to
* create a component:
*
* ```js
* import {LitElement, html} from 'lit-element';
*
* class MyElement extends LitElement {
*
* // Declare observed properties
* static get properties() {
* return {
* adjective: {}
* }
* }
*
* constructor() {
* this.adjective = 'awesome';
* }
*
* // Define the element's template
* render() {
* return html`<p>your ${adjective} template here</p>`;
* }
* }
*
* customElements.define('my-element', MyElement);
* ```
*
* `LitElement` extends {@linkcode ReactiveElement} and adds lit-html
* templating. The `ReactiveElement` class is provided for users that want to
* build their own custom element base classes that don't use lit-html.
*
* @packageDocumentation
*/
import { PropertyValues, ReactiveElement } from '@lit/reactive-element';
import { RenderOptions } from 'lit-html';
export * from '@lit/reactive-element';
export * from 'lit-html';
import { LitUnstable } from 'lit-html';
import { ReactiveUnstable } from '@lit/reactive-element';
/**
* Contains types that are part of the unstable debug API.
*
* Everything in this API is not stable and may change or be removed in the future,
* even on patch releases.
*/
export declare namespace Unstable {
/**
* When Lit is running in dev mode and `window.emitLitDebugLogEvents` is true,
* we will emit 'lit-debug' events to window, with live details about the update and render
* lifecycle. These can be useful for writing debug tooling and visualizations.
*
* Please be aware that running with window.emitLitDebugLogEvents has performance overhead,
* making certain operations that are normally very cheap (like a no-op render) much slower,
* because we must copy data and dispatch events.
*/
namespace DebugLog {
type Entry = LitUnstable.DebugLog.Entry | ReactiveUnstable.DebugLog.Entry;
}
}
export declare const UpdatingElement: typeof ReactiveElement;
/**
* Base element class that manages element properties and attributes, and
* renders a lit-html template.
*
* To define a component, subclass `LitElement` and implement a
* `render` method to provide the component's template. Define properties
* using the {@linkcode LitElement.properties properties} property or the
* {@linkcode property} decorator.
*/
export declare class LitElement extends ReactiveElement {
/**
* Ensure this class is marked as `finalized` as an optimization ensuring
* it will not needlessly try to `finalize`.
*
* Note this property name is a string to prevent breaking Closure JS Compiler
* optimizations. See @lit/reactive-element for more information.
*/
protected static ['finalized']: boolean;
static ['_$litElement$']: boolean;
/**
* @category rendering
*/
readonly renderOptions: RenderOptions;
private __childPart;
/**
* @category rendering
*/
protected createRenderRoot(): Element | ShadowRoot;
/**
* Updates the element. This method reflects property values to attributes
* and calls `render` to render DOM via lit-html. Setting properties inside
* this method will *not* trigger another update.
* @param changedProperties Map of changed properties with old values
* @category updates
*/
protected update(changedProperties: PropertyValues): void;
/**
* Invoked when the component is added to the document's DOM.
*
* In `connectedCallback()` you should setup tasks that should only occur when
* the element is connected to the document. The most common of these is
* adding event listeners to nodes external to the element, like a keydown
* event handler added to the window.
*
* ```ts
* connectedCallback() {
* super.connectedCallback();
* addEventListener('keydown', this._handleKeydown);
* }
* ```
*
* Typically, anything done in `connectedCallback()` should be undone when the
* element is disconnected, in `disconnectedCallback()`.
*
* @category lifecycle
*/
connectedCallback(): void;
/**
* Invoked when the component is removed from the document's DOM.
*
* This callback is the main signal to the element that it may no longer be
* used. `disconnectedCallback()` should ensure that nothing is holding a
* reference to the element (such as event listeners added to nodes external
* to the element), so that it is free to be garbage collected.
*
* ```ts
* disconnectedCallback() {
* super.disconnectedCallback();
* window.removeEventListener('keydown', this._handleKeydown);
* }
* ```
*
* An element may be re-connected after being disconnected.
*
* @category lifecycle
*/
disconnectedCallback(): void;
/**
* Invoked on each update to perform rendering tasks. This method may return
* any value renderable by lit-html's `ChildPart` - typically a
* `TemplateResult`. Setting properties inside this method will *not* trigger
* the element to update.
* @category rendering
*/
protected render(): unknown;
}
/**
* END USERS SHOULD NOT RELY ON THIS OBJECT.
*
* Private exports for use by other Lit packages, not intended for use by
* external users.
*
* We currently do not make a mangled rollup build of the lit-ssr code. In order
* to keep a number of (otherwise private) top-level exports mangled in the
* client side code, we export a _$LE object containing those members (or
* helper methods for accessing private fields of those members), and then
* re-export them for use in lit-ssr. This keeps lit-ssr agnostic to whether the
* client-side code is being used in `dev` mode or `prod` mode.
*
* This has a unique name, to disambiguate it from private exports in
* lit-html, since this module re-exports all of lit-html.
*
* @private
*/
export declare const _$LE: {
_$attributeToProperty: (el: LitElement, name: string, value: string | null) => void;
_$changedProperties: (el: LitElement) => any;
};
//# sourceMappingURL=lit-element.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"lit-element.d.ts","sourceRoot":"","sources":["../src/lit-element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAS,aAAa,EAAqB,MAAM,UAAU,CAAC;AACnE,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAEvD;;;;;GAKG;AAEH,yBAAiB,QAAQ,CAAC;IACxB;;;;;;;;OAQG;IAEH,UAAiB,QAAQ,CAAC;QACxB,KAAY,KAAK,GACb,WAAW,CAAC,QAAQ,CAAC,KAAK,GAC1B,gBAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC;KACrC;CACF;AAID,eAAO,MAAM,eAAe,wBAAkB,CAAC;AAsB/C;;;;;;;;GAQG;AACH,qBAAa,UAAW,SAAQ,eAAe;IAC7C;;;;;;OAMG;IACH,iBAA0B,CAAC,WAAW,CAAC,UAAQ;IAG/C,MAAM,CAAC,CAAC,eAAe,CAAC,UAAQ;IAEhC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAgB;IAErD,OAAO,CAAC,WAAW,CAAmC;IAEtD;;OAEG;cACgB,gBAAgB;IAWnC;;;;;;OAMG;cACgB,MAAM,CAAC,iBAAiB,EAAE,cAAc;IAY3D;;;;;;;;;;;;;;;;;;;OAmBG;IACM,iBAAiB;IAK1B;;;;;;;;;;;;;;;;;;OAkBG;IACM,oBAAoB;IAK7B;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,IAAI,OAAO;CAG5B;AAyCD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,IAAI;gCAET,UAAU,QACR,MAAM,SACL,MAAM,GAAG,IAAI;8BAMI,UAAU;CACrC,CAAC"}

258
node_modules/lit-element/development/lit-element.js generated vendored Normal file
View File

@@ -0,0 +1,258 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var _a, _b, _c;
/**
* The main LitElement module, which defines the {@linkcode LitElement} base
* class and related APIs.
*
* LitElement components can define a template and a set of observed
* properties. Changing an observed property triggers a re-render of the
* element.
*
* Import {@linkcode LitElement} and {@linkcode html} from this module to
* create a component:
*
* ```js
* import {LitElement, html} from 'lit-element';
*
* class MyElement extends LitElement {
*
* // Declare observed properties
* static get properties() {
* return {
* adjective: {}
* }
* }
*
* constructor() {
* this.adjective = 'awesome';
* }
*
* // Define the element's template
* render() {
* return html`<p>your ${adjective} template here</p>`;
* }
* }
*
* customElements.define('my-element', MyElement);
* ```
*
* `LitElement` extends {@linkcode ReactiveElement} and adds lit-html
* templating. The `ReactiveElement` class is provided for users that want to
* build their own custom element base classes that don't use lit-html.
*
* @packageDocumentation
*/
import { ReactiveElement } from '@lit/reactive-element';
import { render, noChange } from 'lit-html';
export * from '@lit/reactive-element';
export * from 'lit-html';
// For backwards compatibility export ReactiveElement as UpdatingElement. Note,
// IE transpilation requires exporting like this.
export const UpdatingElement = ReactiveElement;
const DEV_MODE = true;
let issueWarning;
if (DEV_MODE) {
// Ensure warnings are issued only 1x, even if multiple versions of Lit
// are loaded.
const issuedWarnings = ((_a = globalThis.litIssuedWarnings) !== null && _a !== void 0 ? _a : (globalThis.litIssuedWarnings = new Set()));
// Issue a warning, if we haven't already.
issueWarning = (code, warning) => {
warning += ` See https://lit.dev/msg/${code} for more information.`;
if (!issuedWarnings.has(warning)) {
console.warn(warning);
issuedWarnings.add(warning);
}
};
}
/**
* Base element class that manages element properties and attributes, and
* renders a lit-html template.
*
* To define a component, subclass `LitElement` and implement a
* `render` method to provide the component's template. Define properties
* using the {@linkcode LitElement.properties properties} property or the
* {@linkcode property} decorator.
*/
export class LitElement extends ReactiveElement {
constructor() {
super(...arguments);
/**
* @category rendering
*/
this.renderOptions = { host: this };
this.__childPart = undefined;
}
/**
* @category rendering
*/
createRenderRoot() {
var _a;
var _b;
const renderRoot = super.createRenderRoot();
// When adoptedStyleSheets are shimmed, they are inserted into the
// shadowRoot by createRenderRoot. Adjust the renderBefore node so that
// any styles in Lit content render before adoptedStyleSheets. This is
// important so that adoptedStyleSheets have precedence over styles in
// the shadowRoot.
(_a = (_b = this.renderOptions).renderBefore) !== null && _a !== void 0 ? _a : (_b.renderBefore = renderRoot.firstChild);
return renderRoot;
}
/**
* Updates the element. This method reflects property values to attributes
* and calls `render` to render DOM via lit-html. Setting properties inside
* this method will *not* trigger another update.
* @param changedProperties Map of changed properties with old values
* @category updates
*/
update(changedProperties) {
// Setting properties in `render` should not trigger an update. Since
// updates are allowed after super.update, it's important to call `render`
// before that.
const value = this.render();
if (!this.hasUpdated) {
this.renderOptions.isConnected = this.isConnected;
}
super.update(changedProperties);
this.__childPart = render(value, this.renderRoot, this.renderOptions);
}
/**
* Invoked when the component is added to the document's DOM.
*
* In `connectedCallback()` you should setup tasks that should only occur when
* the element is connected to the document. The most common of these is
* adding event listeners to nodes external to the element, like a keydown
* event handler added to the window.
*
* ```ts
* connectedCallback() {
* super.connectedCallback();
* addEventListener('keydown', this._handleKeydown);
* }
* ```
*
* Typically, anything done in `connectedCallback()` should be undone when the
* element is disconnected, in `disconnectedCallback()`.
*
* @category lifecycle
*/
connectedCallback() {
var _a;
super.connectedCallback();
(_a = this.__childPart) === null || _a === void 0 ? void 0 : _a.setConnected(true);
}
/**
* Invoked when the component is removed from the document's DOM.
*
* This callback is the main signal to the element that it may no longer be
* used. `disconnectedCallback()` should ensure that nothing is holding a
* reference to the element (such as event listeners added to nodes external
* to the element), so that it is free to be garbage collected.
*
* ```ts
* disconnectedCallback() {
* super.disconnectedCallback();
* window.removeEventListener('keydown', this._handleKeydown);
* }
* ```
*
* An element may be re-connected after being disconnected.
*
* @category lifecycle
*/
disconnectedCallback() {
var _a;
super.disconnectedCallback();
(_a = this.__childPart) === null || _a === void 0 ? void 0 : _a.setConnected(false);
}
/**
* Invoked on each update to perform rendering tasks. This method may return
* any value renderable by lit-html's `ChildPart` - typically a
* `TemplateResult`. Setting properties inside this method will *not* trigger
* the element to update.
* @category rendering
*/
render() {
return noChange;
}
}
/**
* Ensure this class is marked as `finalized` as an optimization ensuring
* it will not needlessly try to `finalize`.
*
* Note this property name is a string to prevent breaking Closure JS Compiler
* optimizations. See @lit/reactive-element for more information.
*/
LitElement['finalized'] = true;
// This property needs to remain unminified.
LitElement['_$litElement$'] = true;
// Install hydration if available
(_b = globalThis.litElementHydrateSupport) === null || _b === void 0 ? void 0 : _b.call(globalThis, { LitElement });
// Apply polyfills if available
const polyfillSupport = DEV_MODE
? globalThis.litElementPolyfillSupportDevMode
: globalThis.litElementPolyfillSupport;
polyfillSupport === null || polyfillSupport === void 0 ? void 0 : polyfillSupport({ LitElement });
// DEV mode warnings
if (DEV_MODE) {
/* eslint-disable @typescript-eslint/no-explicit-any */
// Note, for compatibility with closure compilation, this access
// needs to be as a string property index.
LitElement['finalize'] = function () {
const finalized = ReactiveElement.finalize.call(this);
if (!finalized) {
return false;
}
const warnRemovedOrRenamed = (obj, name, renamed = false) => {
if (obj.hasOwnProperty(name)) {
const ctorName = (typeof obj === 'function' ? obj : obj.constructor)
.name;
issueWarning(renamed ? 'renamed-api' : 'removed-api', `\`${name}\` is implemented on class ${ctorName}. It ` +
`has been ${renamed ? 'renamed' : 'removed'} ` +
`in this version of LitElement.`);
}
};
warnRemovedOrRenamed(this, 'render');
warnRemovedOrRenamed(this, 'getStyles', true);
warnRemovedOrRenamed(this.prototype, 'adoptStyles');
return true;
};
/* eslint-enable @typescript-eslint/no-explicit-any */
}
/**
* END USERS SHOULD NOT RELY ON THIS OBJECT.
*
* Private exports for use by other Lit packages, not intended for use by
* external users.
*
* We currently do not make a mangled rollup build of the lit-ssr code. In order
* to keep a number of (otherwise private) top-level exports mangled in the
* client side code, we export a _$LE object containing those members (or
* helper methods for accessing private fields of those members), and then
* re-export them for use in lit-ssr. This keeps lit-ssr agnostic to whether the
* client-side code is being used in `dev` mode or `prod` mode.
*
* This has a unique name, to disambiguate it from private exports in
* lit-html, since this module re-exports all of lit-html.
*
* @private
*/
export const _$LE = {
_$attributeToProperty: (el, name, value) => {
// eslint-disable-next-line
el._$attributeToProperty(name, value);
},
// eslint-disable-next-line
_$changedProperties: (el) => el._$changedProperties,
};
// IMPORTANT: do not change the property name or the assignment expression.
// This line will be used in regexes to search for LitElement usage.
((_c = globalThis.litElementVersions) !== null && _c !== void 0 ? _c : (globalThis.litElementVersions = [])).push('3.3.3');
if (DEV_MODE && globalThis.litElementVersions.length > 1) {
issueWarning('multiple-versions', `Multiple versions of Lit loaded. Loading multiple versions ` +
`is not recommended.`);
}
//# sourceMappingURL=lit-element.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,25 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* LitElement patch to support browsers without native web components.
*
* This module should be used in addition to loading the web components
* polyfills via @webcomponents/webcomponentjs. When using those polyfills
* support for polyfilled Shadow DOM is automatic via the ShadyDOM polyfill, but
* support for Shadow DOM like css scoping is opt-in. This module uses ShadyCSS
* to scope styles defined via the `static styles` property and styles included
* in the render method. There are some limitations to be aware of:
* * only styles that are included in the first render of a component are scoped.
* * In addition, support for the deprecated `@apply` feature of ShadyCSS is
* only provided for styles included in the template and not styles provided
* via the static styles property.
* * Lit parts cannot be used in styles included in the template.
*
* @packageDocumentation
*/
import '@lit/reactive-element/polyfill-support.js';
import 'lit-html/polyfill-support.js';
//# sourceMappingURL=polyfill-support.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"polyfill-support.d.ts","sourceRoot":"","sources":["../src/polyfill-support.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,2CAA2C,CAAC;AACnD,OAAO,8BAA8B,CAAC"}

View File

@@ -0,0 +1,63 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var _a, _b;
/**
* LitElement patch to support browsers without native web components.
*
* This module should be used in addition to loading the web components
* polyfills via @webcomponents/webcomponentjs. When using those polyfills
* support for polyfilled Shadow DOM is automatic via the ShadyDOM polyfill, but
* support for Shadow DOM like css scoping is opt-in. This module uses ShadyCSS
* to scope styles defined via the `static styles` property and styles included
* in the render method. There are some limitations to be aware of:
* * only styles that are included in the first render of a component are scoped.
* * In addition, support for the deprecated `@apply` feature of ShadyCSS is
* only provided for styles included in the template and not styles provided
* via the static styles property.
* * Lit parts cannot be used in styles included in the template.
*
* @packageDocumentation
*/
import '@lit/reactive-element/polyfill-support.js';
import 'lit-html/polyfill-support.js';
// Note, explicitly use `var` here so that this can be re-defined when
// bundled.
// eslint-disable-next-line no-var
var DEV_MODE = true;
var polyfillSupport = function (_a) {
var LitElement = _a.LitElement;
// polyfill-support is only needed if ShadyCSS or the ApplyShim is in use
// We test at the point of patching, which makes it safe to load
// webcomponentsjs and polyfill-support in either order
if (window.ShadyCSS === undefined ||
(window.ShadyCSS.nativeShadow && !window.ShadyCSS.ApplyShim)) {
return;
}
// console.log(
// '%c Making LitElement compatible with ShadyDOM/CSS.',
// 'color: lightgreen; font-style: italic'
// );
LitElement._$handlesPrepareStyles = true;
/**
* Patch to apply adoptedStyleSheets via ShadyCSS
*/
var litElementProto = LitElement.prototype;
var createRenderRoot = litElementProto.createRenderRoot;
litElementProto.createRenderRoot = function () {
// Pass the scope to render options so that it gets to lit-html for proper
// scoping via ShadyCSS. This is needed under Shady and also Shadow DOM,
// due to @apply.
this.renderOptions.scope = this.localName;
return createRenderRoot.call(this);
};
};
if (DEV_MODE) {
(_a = globalThis.litElementPolyfillSupportDevMode) !== null && _a !== void 0 ? _a : (globalThis.litElementPolyfillSupportDevMode = polyfillSupport);
}
else {
(_b = globalThis.litElementPolyfillSupport) !== null && _b !== void 0 ? _b : (globalThis.litElementPolyfillSupport = polyfillSupport);
}
//# sourceMappingURL=polyfill-support.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"polyfill-support.js","sourceRoot":"","sources":["../src/polyfill-support.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,2CAA2C,CAAC;AACnD,OAAO,8BAA8B,CAAC;AAmBtC,sEAAsE;AACtE,WAAW;AACX,kCAAkC;AAClC,IAAI,QAAQ,GAAG,IAAI,CAAC;AAEpB,IAAM,eAAe,GAAG,UAAC,EAA+C;QAA9C,UAAU,gBAAA;IAClC,yEAAyE;IACzE,gEAAgE;IAChE,uDAAuD;IACvD,IACE,MAAM,CAAC,QAAQ,KAAK,SAAS;QAC7B,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,EAC5D;QACA,OAAO;KACR;IAED,eAAe;IACf,0DAA0D;IAC1D,4CAA4C;IAC5C,KAAK;IAGH,UACD,CAAC,sBAAsB,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,IAAM,eAAe,GAAG,UAAU,CAAC,SAAS,CAAC;IAC7C,IAAM,gBAAgB,GAAG,eAAe,CAAC,gBAAgB,CAAC;IAC1D,eAAe,CAAC,gBAAgB,GAAG;QACjC,0EAA0E;QAC1E,wEAAwE;QACxE,iBAAiB;QACjB,IAAI,CAAC,aAAa,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC;QAC1C,OAAO,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,IAAI,QAAQ,EAAE;IACZ,MAAA,UAAU,CAAC,gCAAgC,oCAA3C,UAAU,CAAC,gCAAgC,GAAK,eAAe,EAAC;CACjE;KAAM;IACL,MAAA,UAAU,CAAC,yBAAyB,oCAApC,UAAU,CAAC,yBAAyB,GAAK,eAAe,EAAC;CAC1D","sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * LitElement patch to support browsers without native web components.\n *\n * This module should be used in addition to loading the web components\n * polyfills via @webcomponents/webcomponentjs. When using those polyfills\n * support for polyfilled Shadow DOM is automatic via the ShadyDOM polyfill, but\n * support for Shadow DOM like css scoping is opt-in. This module uses ShadyCSS\n * to scope styles defined via the `static styles` property and styles included\n * in the render method. There are some limitations to be aware of:\n * * only styles that are included in the first render of a component are scoped.\n * * In addition, support for the deprecated `@apply` feature of ShadyCSS is\n * only provided for styles included in the template and not styles provided\n * via the static styles property.\n * * Lit parts cannot be used in styles included in the template.\n *\n * @packageDocumentation\n */\n\nimport '@lit/reactive-element/polyfill-support.js';\nimport 'lit-html/polyfill-support.js';\n\ninterface RenderOptions {\n readonly renderBefore?: ChildNode | null;\n scope?: string;\n}\n\ninterface PatchableLitElementConstructor {\n _$handlesPrepareStyles?: boolean;\n}\n\ninterface PatchableLitElement extends HTMLElement {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-misused-new\n new (...args: any[]): PatchableLitElement;\n constructor: PatchableLitElementConstructor;\n createRenderRoot(): Element | ShadowRoot;\n renderOptions: RenderOptions;\n}\n\n// Note, explicitly use `var` here so that this can be re-defined when\n// bundled.\n// eslint-disable-next-line no-var\nvar DEV_MODE = true;\n\nconst polyfillSupport = ({LitElement}: {LitElement: PatchableLitElement}) => {\n // polyfill-support is only needed if ShadyCSS or the ApplyShim is in use\n // We test at the point of patching, which makes it safe to load\n // webcomponentsjs and polyfill-support in either order\n if (\n window.ShadyCSS === undefined ||\n (window.ShadyCSS.nativeShadow && !window.ShadyCSS.ApplyShim)\n ) {\n return;\n }\n\n // console.log(\n // '%c Making LitElement compatible with ShadyDOM/CSS.',\n // 'color: lightgreen; font-style: italic'\n // );\n\n (\n LitElement as unknown as PatchableLitElementConstructor\n )._$handlesPrepareStyles = true;\n\n /**\n * Patch to apply adoptedStyleSheets via ShadyCSS\n */\n const litElementProto = LitElement.prototype;\n const createRenderRoot = litElementProto.createRenderRoot;\n litElementProto.createRenderRoot = function (this: PatchableLitElement) {\n // Pass the scope to render options so that it gets to lit-html for proper\n // scoping via ShadyCSS. This is needed under Shady and also Shadow DOM,\n // due to @apply.\n this.renderOptions.scope = this.localName;\n return createRenderRoot.call(this);\n };\n};\n\nif (DEV_MODE) {\n globalThis.litElementPolyfillSupportDevMode ??= polyfillSupport;\n} else {\n globalThis.litElementPolyfillSupport ??= polyfillSupport;\n}\n"]}

View File

@@ -0,0 +1,22 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* END USERS SHOULD NOT RELY ON THIS OBJECT.
*
* We currently do not make a mangled rollup build of the lit-ssr code. In order
* to keep a number of (otherwise private) top-level exports mangled in the
* client side code, we export a _$LE object containing those members (or
* helper methods for accessing private fields of those members), and then
* re-export them for use in lit-ssr. This keeps lit-ssr agnostic to whether the
* client-side code is being used in `dev` mode or `prod` mode.
*
* @private
*/
export declare const _$LE: {
attributeToProperty: (el: import("./lit-element.js").LitElement, name: string, value: string | null) => void;
changedProperties: (el: import("./lit-element.js").LitElement) => any;
};
//# sourceMappingURL=private-ssr-support.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"private-ssr-support.d.ts","sourceRoot":"","sources":["../src/private-ssr-support.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,IAAI;;;CAGhB,CAAC"}

Some files were not shown because too many files have changed in this diff Show More