@pushengineering/umg-web-components 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/event-manager/event-manager.d.ts +52 -0
- package/dist/classes/event-manager/types.d.ts +6 -0
- package/dist/classes/index.d.ts +1 -0
- package/dist/components/badge/badge.d.ts +19 -0
- package/dist/{packages/web-components/components → components}/badge/badge.js +47 -49
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/banner/banner.d.ts +39 -0
- package/dist/{packages/web-components/components → components}/banner/banner.js +23 -25
- package/dist/components/banner/index.d.ts +3 -0
- package/dist/components/banner-image/banner-image.d.ts +23 -0
- package/dist/{packages/web-components/components → components}/banner-image/banner-image.js +26 -29
- package/dist/components/banner-image/index.d.ts +2 -0
- package/dist/components/box/box.d.ts +28 -0
- package/dist/components/box/box.js +229 -0
- package/dist/components/box/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +31 -0
- package/dist/{packages/web-components/components → components}/button/button.js +21 -24
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button-group/button-group.d.ts +12 -0
- package/dist/{packages/web-components/components → components}/button-group/button-group.js +20 -23
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-icon/button-icon.d.ts +31 -0
- package/dist/{packages/web-components/components → components}/button-icon/button-icon.js +25 -28
- package/dist/components/button-icon/index.d.ts +2 -0
- package/dist/components/caption-card/caption-card.d.ts +38 -0
- package/dist/{packages/web-components/components → components}/caption-card/caption-card.js +19 -21
- package/dist/components/caption-card/index.d.ts +2 -0
- package/dist/components/deferred-media/deferred-media.d.ts +25 -0
- package/dist/{packages/web-components/components → components}/deferred-media/deferred-media.js +27 -27
- package/dist/components/deferred-media/index.d.ts +2 -0
- package/dist/components/disclosure/disclosure.d.ts +23 -0
- package/dist/{packages/web-components/components → components}/disclosure/disclosure.js +16 -19
- package/dist/components/disclosure/index.d.ts +2 -0
- package/dist/components/event-table/event-content.d.ts +7 -0
- package/dist/{packages/web-components/components → components}/event-table/event-content.js +19 -22
- package/dist/components/event-table/event-date.d.ts +5 -0
- package/dist/components/event-table/event-date.js +42 -0
- package/dist/components/event-table/event-table.d.ts +10 -0
- package/dist/components/event-table/event-table.js +71 -0
- package/dist/components/event-table/event.d.ts +5 -0
- package/dist/components/event-table/event.js +42 -0
- package/dist/components/event-table/index.d.ts +2 -0
- package/dist/components/footer/footer.d.ts +16 -0
- package/dist/{packages/web-components/components → components}/footer/footer.js +15 -18
- package/dist/components/footer/index.d.ts +2 -0
- package/dist/components/grid/grid-cell.d.ts +5 -0
- package/dist/components/grid/grid-cell.js +37 -0
- package/dist/components/grid/grid.d.ts +12 -0
- package/dist/{packages/web-components/components → components}/grid/grid.js +37 -40
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/header/header.d.ts +36 -0
- package/dist/{packages/web-components/components → components}/header/header.js +25 -29
- package/dist/components/header/index.d.ts +2 -0
- package/dist/components/header-drawer/header-drawer.d.ts +32 -0
- package/dist/{packages/web-components/components → components}/header-drawer/header-drawer.js +18 -21
- package/dist/components/header-drawer/index.d.ts +2 -0
- package/dist/components/header-drawer/menu-drawer.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/header-drawer/menu-drawer.js +16 -19
- package/dist/components/horizontal-stack/horizontal-stack.d.ts +13 -0
- package/dist/components/horizontal-stack/horizontal-stack.js +90 -0
- package/dist/components/horizontal-stack/index.d.ts +2 -0
- package/dist/components/icon/icon.d.ts +14 -0
- package/dist/{packages/web-components/components → components}/icon/icon.js +20 -23
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/image/image.d.ts +19 -0
- package/dist/{packages/web-components/components → components}/image/image.js +17 -20
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/index.d.ts +41 -0
- package/dist/{packages/web-components/components → components}/index.js +38 -36
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/link.d.ts +10 -0
- package/dist/{packages/web-components/components → components}/link/link.js +27 -30
- package/dist/components/link-group/index.d.ts +2 -0
- package/dist/components/link-group/link-group.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/link-group/link-group.js +15 -18
- package/dist/components/logo/index.d.ts +2 -0
- package/dist/components/logo/logo.d.ts +19 -0
- package/dist/{packages/web-components/components → components}/logo/logo.js +32 -35
- package/dist/components/media-gallery/index.d.ts +2 -0
- package/dist/components/media-gallery/media-gallery.d.ts +14 -0
- package/dist/{packages/web-components/components → components}/media-gallery/media-gallery.js +19 -22
- package/dist/components/media-gallery/media.d.ts +5 -0
- package/dist/components/media-gallery/media.js +29 -0
- package/dist/components/media-text/index.d.ts +2 -0
- package/dist/components/media-text/media-text.d.ts +30 -0
- package/dist/{packages/web-components/components → components}/media-text/media-text.js +20 -34
- package/dist/components/media-text/styles/media-size.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/media-text/styles/media-size.js +5 -8
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.d.ts +36 -0
- package/dist/{packages/web-components/components → components}/menu/menu.js +39 -38
- package/dist/components/menu-bar/index.d.ts +2 -0
- package/dist/components/menu-bar/menu-bar.d.ts +16 -0
- package/dist/components/menu-bar/menu-bar.js +110 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/modal.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/modal/modal.js +70 -41
- package/dist/components/multiselect/index.d.ts +2 -0
- package/dist/components/multiselect/multiselect.d.ts +60 -0
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/number-field.d.ts +28 -0
- package/dist/{packages/web-components/components → components}/number-field/number-field.js +22 -25
- package/dist/components/overlay/index.d.ts +2 -0
- package/dist/components/overlay/overlay.d.ts +13 -0
- package/dist/components/overlay/overlay.js +74 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/page.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/page/page.js +16 -19
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +19 -0
- package/dist/components/popover/popover.js +181 -0
- package/dist/components/rich-text/index.d.ts +2 -0
- package/dist/components/rich-text/rich-text.d.ts +11 -0
- package/dist/{packages/web-components/components → components}/rich-text/rich-text.js +25 -28
- package/dist/components/section/index.d.ts +2 -0
- package/dist/components/section/section.d.ts +33 -0
- package/dist/{packages/web-components/components → components}/section/section.js +71 -59
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.d.ts +44 -0
- package/dist/{packages/web-components/components → components}/select/select.js +48 -63
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/slide.d.ts +8 -0
- package/dist/components/slider/slide.js +65 -0
- package/dist/components/slider/slider-controls.d.ts +27 -0
- package/dist/{packages/web-components/components → components}/slider/slider-controls.js +45 -47
- package/dist/components/slider/slider.d.ts +68 -0
- package/dist/{packages/web-components/components → components}/slider/slider.js +25 -28
- package/dist/components/slider/styles/controls.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/slider/styles/controls.js +3 -6
- package/dist/components/slider/styles/slider.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/slider/styles/slider.js +3 -6
- package/dist/components/socials/index.d.ts +2 -0
- package/dist/components/socials/socials.d.ts +26 -0
- package/dist/components/socials/socials.js +93 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/table.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/table/table.js +30 -33
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/text.d.ts +24 -0
- package/dist/{packages/web-components/components → components}/text/text.js +65 -57
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/text-field.d.ts +25 -0
- package/dist/{packages/web-components/components → components}/text-field/text-field.js +13 -16
- package/dist/components/thumbnail-slider/index.d.ts +2 -0
- package/dist/components/thumbnail-slider/thumbnail-slide.d.ts +5 -0
- package/dist/components/thumbnail-slider/thumbnail-slide.js +48 -0
- package/dist/components/thumbnail-slider/thumbnail-slider.d.ts +20 -0
- package/dist/{packages/web-components/components → components}/thumbnail-slider/thumbnail-slider.js +15 -15
- package/dist/components/vertical-stack/index.d.ts +2 -0
- package/dist/components/vertical-stack/vertical-stack.d.ts +13 -0
- package/dist/components/vertical-stack/vertical-stack.js +92 -0
- package/dist/components/video/index.d.ts +2 -0
- package/dist/components/video/video.d.ts +29 -0
- package/dist/{packages/web-components/components → components}/video/video.js +22 -26
- package/dist/{packages/web-components/styles → styles}/button.js +4 -7
- package/dist/{packages/web-components/styles → styles}/fonts.js +21 -14
- package/dist/{packages/web-components/styles → styles}/global.js +3 -6
- package/dist/{packages/web-components/styles → styles}/grid.js +3 -6
- package/dist/{packages/web-components/styles → styles}/group.js +11 -14
- package/dist/{packages/web-components/styles → styles}/link.js +3 -6
- package/dist/{packages/web-components/styles → styles}/placeholder-media.js +3 -6
- package/dist/types.d.ts +66 -0
- package/package.json +47 -49
- package/readme.md +22 -69
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js +0 -56
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/base.js +0 -9
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js +0 -37
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +0 -19
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query.js +0 -34
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js +0 -12
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js +0 -260
- package/dist/node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js +0 -50
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directive.js +0 -27
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js +0 -37
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/if-defined.js +0 -10
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/map.js +0 -15
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/range.js +0 -14
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js +0 -39
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js +0 -259
- package/dist/packages/web-components/components/box/box.js +0 -208
- package/dist/packages/web-components/components/event-table/event-date.js +0 -45
- package/dist/packages/web-components/components/event-table/event-table.js +0 -74
- package/dist/packages/web-components/components/event-table/event.js +0 -45
- package/dist/packages/web-components/components/grid/grid-cell.js +0 -40
- package/dist/packages/web-components/components/horizontal-stack/horizontal-stack.js +0 -93
- package/dist/packages/web-components/components/media-gallery/media.js +0 -31
- package/dist/packages/web-components/components/overlay/overlay.js +0 -77
- package/dist/packages/web-components/components/popover/popover.js +0 -163
- package/dist/packages/web-components/components/slider/slide.js +0 -68
- package/dist/packages/web-components/components/socials/socials.js +0 -96
- package/dist/packages/web-components/components/thumbnail-slider/thumbnail-slide.js +0 -51
- package/dist/packages/web-components/components/vertical-stack/vertical-stack.js +0 -95
- /package/dist/{packages/web-components/classes → classes}/event-manager/event-manager.js +0 -0
- /package/dist/{packages/web-components/classes → classes}/index.js +0 -0
- /package/dist/{packages/web-components/components → components}/icon/icons.svg.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/mergeStyles.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/polyfills/scrollyfills.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/settings.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/themeStyleSheet.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/utilities/debounce.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/utilities/paddingTransformations.js +0 -0
- /package/dist/{packages/web-components/styles → styles}/icon-size.js +0 -0
package/readme.md
CHANGED
|
@@ -1,81 +1,34 @@
|
|
|
1
|
-
# Table of Contents
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
- [Local Development Environment](#local-development-environment)
|
|
7
|
-
- [Prerequisites](#prerequisites)
|
|
8
|
-
- [Installation](#installation)
|
|
9
|
-
- [Build scripts](#build-scripts)
|
|
10
|
-
- [Lit - Lightning-Fast Components](#lit---lightning-fast-components)
|
|
11
|
-
- [Storybook Integration for Component Previews and Documentation](#storybook-integration-for-component-previews-and-documentation)
|
|
2
|
+
# UMG Web Components Library
|
|
3
|
+
This library provides a collection of native UX web components built with [Lit](https://lit.dev/docs/).
|
|
4
|
+
The components are designed to be fast, reusable, and highly customisable for any project, without relying on proprietary technologies or frameworks. They leverage standard Web APIs and are compatible with all modern browsers.
|
|
12
5
|
|
|
13
|
-
|
|
14
|
-
Welcome to the UMG UX Components Library! This library provides a collection of UX frontend components designed to be fast, reusable, and highly customisable for any project, without relying on proprietary technologies or frameworks. These components leverage standard Web APIs and are compatible with all modern browsers.
|
|
6
|
+
Components are exported as native ES Modules and can be directly used in web applications using raw module imports. If your application does not support native modules, tools like Rollup or Webpack can be used to prepare the components for serving in your production environment as needed.
|
|
15
7
|
|
|
16
|
-
|
|
17
|
-
To deepen your understanding of web components, their key concepts, and the specific web APIs we employ, we recommend reading the [MDN guide on Web Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components).
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# Local Development Environment
|
|
21
|
-
|
|
22
|
-
## Prerequisites
|
|
23
|
-
|
|
24
|
-
Before you begin, make sure you have the following prerequisites installed on your system:
|
|
25
|
-
|
|
26
|
-
Node.js v16.14 or higher. You can download it from [here](https://nodejs.org/en/download)
|
|
27
|
-
[PNPM](https://pnpm.io/) v8 or higher. Install it via these links: [Mac](https://github.com/nvm-sh/nvm) | [Windows](https://github.com/coreybutler/nvm-windows)
|
|
8
|
+
To keep code sizes to a minimum Lit is not exported with the library and will need to be installed as a dependency of your project.
|
|
28
9
|
|
|
29
10
|
## Installation
|
|
30
|
-
1. Install Node.js globally using one of the following methods:
|
|
31
|
-
- Mac: [NVM](https://github.com/nvm-sh/nvm)
|
|
32
|
-
- Windows: [NVM for Windows](https://github.com/coreybutler/nvm-windows)
|
|
33
|
-
- Direct download: [Node.js](https://nodejs.org/en/download)
|
|
34
|
-
|
|
35
|
-
2. Install PNPM globally using one of the following methods:
|
|
36
|
-
- Mac: ``brew install pnpm``
|
|
37
|
-
- Windows PowerShell: Run the command ``iwr https://get.pnpm.io/install.ps1 -useb | iex``
|
|
38
|
-
|
|
39
|
-
For more details, check the: [PNPM documentation](https://pnpm.io/)
|
|
40
|
-
|
|
41
|
-
1. Clone the project repository using this command:
|
|
42
|
-
```
|
|
43
|
-
git clone git@github.com:Push-Entertainment/umg-component-library.git
|
|
44
|
-
```
|
|
45
11
|
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
pnpm install
|
|
49
|
-
```
|
|
12
|
+
Install the package as dependency of your application:
|
|
50
13
|
|
|
51
|
-
|
|
14
|
+
`npm i @pushengineering/umg-web-components`
|
|
15
|
+
`yarn add @pushengineering/umg-web-components`
|
|
16
|
+
`pnpm add @pushengineering/umg-web-components`
|
|
52
17
|
|
|
53
|
-
|
|
18
|
+
Install Lit as a dependency:
|
|
54
19
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
- Build components, design tokens and Storybook static site: `pnpm build-all`
|
|
59
|
-
- Build design tokens: `pnpm build-tokens`
|
|
60
|
-
- Build Storybook static site: `pnpm build-storybook`
|
|
61
|
-
|
|
62
|
-
# Lit - Lightning-Fast Components
|
|
63
|
-
|
|
64
|
-
Our library is built using Lit, a framework that simplifies component development without sacrificing performance or relying on non-standard frameworks. Lit builds on web component standards, is lightweight, and reduces boilerplate code. You can find Lit 2's documentation [here](https://lit.dev/docs/).
|
|
65
|
-
|
|
66
|
-
To save time, minimise errors, and future-proof your code, we've written this library in TypeScript and utilise Lit's decorator methods, which TypeScript transpiles into browser-compatible JavaScript.
|
|
67
|
-
|
|
68
|
-
# Storybook Integration for Component Previews and Documentation
|
|
69
|
-
|
|
70
|
-
We've seamlessly integrated Storybook into our component library to provide you with a powerful playground tool with component previews and comprehensive documentation. Storybook serves as a valuable resource for both developers and designers, offering a visual representation of each component's behavior and appearance in different scenarios.
|
|
71
|
-
|
|
72
|
-
- Exploring Components in Storybook
|
|
73
|
-
With Storybook, you can easily navigate and explore our components:
|
|
74
|
-
|
|
75
|
-
- Preview Components: View live, interactive previews of each component to understand how they look and behave in various situations.
|
|
20
|
+
`npm i lit`
|
|
21
|
+
|
|
22
|
+
## Further information
|
|
76
23
|
|
|
77
|
-
|
|
24
|
+
[Push Engineering Git Repository](https://github.com/Push-Entertainment/umg-component-library)
|
|
78
25
|
|
|
79
|
-
|
|
26
|
+
## Release Version 2
|
|
27
|
+
- Supports UMG Grand Royal layouts:
|
|
28
|
+
- Single Slick V1 themes
|
|
29
|
+
- Multipage Slick V1 themes
|
|
80
30
|
|
|
81
|
-
|
|
31
|
+
### Patches in this release
|
|
32
|
+
- Social component
|
|
33
|
+
- Social icon links target property was not being passed to child button icons.
|
|
34
|
+
- Missing social icons previously added to the Icon component had not merged into the main release branch.
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/
|
|
6
|
-
const r = globalThis, c = r.ShadowRoot && (r.ShadyCSS === void 0 || r.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, a = Symbol(), i = /* @__PURE__ */ new WeakMap();
|
|
7
|
-
class l {
|
|
8
|
-
constructor(s, t, o) {
|
|
9
|
-
if (this._$cssResult$ = !0, o !== a)
|
|
10
|
-
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
11
|
-
this.cssText = s, this.t = t;
|
|
12
|
-
}
|
|
13
|
-
get styleSheet() {
|
|
14
|
-
let s = this.o;
|
|
15
|
-
const t = this.t;
|
|
16
|
-
if (c && s === void 0) {
|
|
17
|
-
const o = t !== void 0 && t.length === 1;
|
|
18
|
-
o && (s = i.get(t)), s === void 0 && ((this.o = s = new CSSStyleSheet()).replaceSync(this.cssText), o && i.set(t, s));
|
|
19
|
-
}
|
|
20
|
-
return s;
|
|
21
|
-
}
|
|
22
|
-
toString() {
|
|
23
|
-
return this.cssText;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
const h = (e) => new l(typeof e == "string" ? e : e + "", void 0, a), p = (e, ...s) => {
|
|
27
|
-
const t = e.length === 1 ? e[0] : s.reduce((o, S, u) => o + ((n) => {
|
|
28
|
-
if (n._$cssResult$ === !0)
|
|
29
|
-
return n.cssText;
|
|
30
|
-
if (typeof n == "number")
|
|
31
|
-
return n;
|
|
32
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
33
|
-
})(S) + e[u + 1], e[0]);
|
|
34
|
-
return new l(t, e, a);
|
|
35
|
-
}, d = (e, s) => {
|
|
36
|
-
if (c)
|
|
37
|
-
e.adoptedStyleSheets = s.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
38
|
-
else
|
|
39
|
-
for (const t of s) {
|
|
40
|
-
const o = document.createElement("style"), S = r.litNonce;
|
|
41
|
-
S !== void 0 && o.setAttribute("nonce", S), o.textContent = t.cssText, e.appendChild(o);
|
|
42
|
-
}
|
|
43
|
-
}, y = c ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((s) => {
|
|
44
|
-
let t = "";
|
|
45
|
-
for (const o of s.cssRules)
|
|
46
|
-
t += o.cssText;
|
|
47
|
-
return h(t);
|
|
48
|
-
})(e) : e;
|
|
49
|
-
export {
|
|
50
|
-
l as CSSResult,
|
|
51
|
-
d as adoptStyles,
|
|
52
|
-
p as css,
|
|
53
|
-
y as getCompatibleStyle,
|
|
54
|
-
c as supportsAdoptingStyleSheets,
|
|
55
|
-
h as unsafeCSS
|
|
56
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/
|
|
6
|
-
const r = (t, o, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof o != "object" && Object.defineProperty(t, o, e), e);
|
|
7
|
-
export {
|
|
8
|
-
r as desc
|
|
9
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/
|
|
6
|
-
const s = (e) => (t, n) => {
|
|
7
|
-
n !== void 0 ? n.addInitializer(() => {
|
|
8
|
-
customElements.define(e, t);
|
|
9
|
-
}) : customElements.define(e, t);
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
s as customElement
|
|
13
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defaultConverter as p, notEqual as d } from "../reactive-element.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2017 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/
|
|
7
|
-
const l = { attribute: !0, type: String, converter: p, reflect: !1, hasChanged: d }, u = (e = l, a, t) => {
|
|
8
|
-
const { kind: n, metadata: s } = t;
|
|
9
|
-
let o = globalThis.litPropertyMetadata.get(s);
|
|
10
|
-
if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), o.set(t.name, e), n === "accessor") {
|
|
11
|
-
const { name: r } = t;
|
|
12
|
-
return { set(i) {
|
|
13
|
-
const c = a.get.call(this);
|
|
14
|
-
a.set.call(this, i), this.requestUpdate(r, c, e);
|
|
15
|
-
}, init(i) {
|
|
16
|
-
return i !== void 0 && this.P(r, void 0, e), i;
|
|
17
|
-
} };
|
|
18
|
-
}
|
|
19
|
-
if (n === "setter") {
|
|
20
|
-
const { name: r } = t;
|
|
21
|
-
return function(i) {
|
|
22
|
-
const c = this[r];
|
|
23
|
-
a.call(this, i), this.requestUpdate(r, c, e);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
throw Error("Unsupported decorator location: " + n);
|
|
27
|
-
};
|
|
28
|
-
function f(e) {
|
|
29
|
-
return (a, t) => typeof t == "object" ? u(e, a, t) : ((n, s, o) => {
|
|
30
|
-
const r = s.hasOwnProperty(o);
|
|
31
|
-
return s.constructor.createProperty(o, r ? { ...n, wrapped: !0 } : n), r ? Object.getOwnPropertyDescriptor(s, o) : void 0;
|
|
32
|
-
})(e, a, t);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
f as property,
|
|
36
|
-
u as standardProperty
|
|
37
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { desc as a } from "./base.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2021 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/
|
|
7
|
-
function d(t) {
|
|
8
|
-
return (c, i) => {
|
|
9
|
-
const { slot: r, selector: s } = t ?? {}, l = "slot" + (r ? `[name=${r}]` : ":not([name])");
|
|
10
|
-
return a(c, i, { get() {
|
|
11
|
-
var o;
|
|
12
|
-
const e = (o = this.renderRoot) == null ? void 0 : o.querySelector(l), n = (e == null ? void 0 : e.assignedElements(t)) ?? [];
|
|
13
|
-
return s === void 0 ? n : n.filter((m) => m.matches(s));
|
|
14
|
-
} });
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
d as queryAssignedElements
|
|
19
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { desc as u } from "./base.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2017 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/
|
|
7
|
-
function d(i, l) {
|
|
8
|
-
return (r, o, c) => {
|
|
9
|
-
const n = (s) => {
|
|
10
|
-
var e;
|
|
11
|
-
return ((e = s.renderRoot) == null ? void 0 : e.querySelector(i)) ?? null;
|
|
12
|
-
};
|
|
13
|
-
if (l) {
|
|
14
|
-
const { get: s, set: e } = typeof o == "object" ? r : c ?? (() => {
|
|
15
|
-
const t = Symbol();
|
|
16
|
-
return { get() {
|
|
17
|
-
return this[t];
|
|
18
|
-
}, set(h) {
|
|
19
|
-
this[t] = h;
|
|
20
|
-
} };
|
|
21
|
-
})();
|
|
22
|
-
return u(r, o, { get() {
|
|
23
|
-
let t = s.call(this);
|
|
24
|
-
return t === void 0 && (t = n(this), (t !== null || this.hasUpdated) && e.call(this, t)), t;
|
|
25
|
-
} });
|
|
26
|
-
}
|
|
27
|
-
return u(r, o, { get() {
|
|
28
|
-
return n(this);
|
|
29
|
-
} });
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
d as query
|
|
34
|
-
};
|
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
import { getCompatibleStyle as u, adoptStyles as $ } from "./css-tag.js";
|
|
2
|
-
import { CSSResult as O, css as C, supportsAdoptingStyleSheets as R, unsafeCSS as z } from "./css-tag.js";
|
|
3
|
-
/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright 2017 Google LLC
|
|
6
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
-
*/
|
|
8
|
-
const { is: m, defineProperty: y, getOwnPropertyDescriptor: g, getOwnPropertyNames: P, getOwnPropertySymbols: b, getPrototypeOf: v } = Object, h = globalThis, f = h.trustedTypes, S = f ? f.emptyScript : "", p = h.reactiveElementPolyfillSupport, c = (r, t) => r, d = { toAttribute(r, t) {
|
|
9
|
-
switch (t) {
|
|
10
|
-
case Boolean:
|
|
11
|
-
r = r ? S : null;
|
|
12
|
-
break;
|
|
13
|
-
case Object:
|
|
14
|
-
case Array:
|
|
15
|
-
r = r == null ? r : JSON.stringify(r);
|
|
16
|
-
}
|
|
17
|
-
return r;
|
|
18
|
-
}, fromAttribute(r, t) {
|
|
19
|
-
let e = r;
|
|
20
|
-
switch (t) {
|
|
21
|
-
case Boolean:
|
|
22
|
-
e = r !== null;
|
|
23
|
-
break;
|
|
24
|
-
case Number:
|
|
25
|
-
e = r === null ? null : Number(r);
|
|
26
|
-
break;
|
|
27
|
-
case Object:
|
|
28
|
-
case Array:
|
|
29
|
-
try {
|
|
30
|
-
e = JSON.parse(r);
|
|
31
|
-
} catch {
|
|
32
|
-
e = null;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return e;
|
|
36
|
-
} }, _ = (r, t) => !m(r, t), E = { attribute: !0, type: String, converter: d, reflect: !1, hasChanged: _ };
|
|
37
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), h.litPropertyMetadata ?? (h.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
38
|
-
class a extends HTMLElement {
|
|
39
|
-
static addInitializer(t) {
|
|
40
|
-
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
41
|
-
}
|
|
42
|
-
static get observedAttributes() {
|
|
43
|
-
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
44
|
-
}
|
|
45
|
-
static createProperty(t, e = E) {
|
|
46
|
-
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
47
|
-
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
48
|
-
i !== void 0 && y(this.prototype, t, i);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
static getPropertyDescriptor(t, e, s) {
|
|
52
|
-
const { get: i, set: o } = g(this.prototype, t) ?? { get() {
|
|
53
|
-
return this[e];
|
|
54
|
-
}, set(n) {
|
|
55
|
-
this[e] = n;
|
|
56
|
-
} };
|
|
57
|
-
return { get() {
|
|
58
|
-
return i == null ? void 0 : i.call(this);
|
|
59
|
-
}, set(n) {
|
|
60
|
-
const l = i == null ? void 0 : i.call(this);
|
|
61
|
-
o.call(this, n), this.requestUpdate(t, l, s);
|
|
62
|
-
}, configurable: !0, enumerable: !0 };
|
|
63
|
-
}
|
|
64
|
-
static getPropertyOptions(t) {
|
|
65
|
-
return this.elementProperties.get(t) ?? E;
|
|
66
|
-
}
|
|
67
|
-
static _$Ei() {
|
|
68
|
-
if (this.hasOwnProperty(c("elementProperties")))
|
|
69
|
-
return;
|
|
70
|
-
const t = v(this);
|
|
71
|
-
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
72
|
-
}
|
|
73
|
-
static finalize() {
|
|
74
|
-
if (this.hasOwnProperty(c("finalized")))
|
|
75
|
-
return;
|
|
76
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(c("properties"))) {
|
|
77
|
-
const e = this.properties, s = [...P(e), ...b(e)];
|
|
78
|
-
for (const i of s)
|
|
79
|
-
this.createProperty(i, e[i]);
|
|
80
|
-
}
|
|
81
|
-
const t = this[Symbol.metadata];
|
|
82
|
-
if (t !== null) {
|
|
83
|
-
const e = litPropertyMetadata.get(t);
|
|
84
|
-
if (e !== void 0)
|
|
85
|
-
for (const [s, i] of e)
|
|
86
|
-
this.elementProperties.set(s, i);
|
|
87
|
-
}
|
|
88
|
-
this._$Eh = /* @__PURE__ */ new Map();
|
|
89
|
-
for (const [e, s] of this.elementProperties) {
|
|
90
|
-
const i = this._$Eu(e, s);
|
|
91
|
-
i !== void 0 && this._$Eh.set(i, e);
|
|
92
|
-
}
|
|
93
|
-
this.elementStyles = this.finalizeStyles(this.styles);
|
|
94
|
-
}
|
|
95
|
-
static finalizeStyles(t) {
|
|
96
|
-
const e = [];
|
|
97
|
-
if (Array.isArray(t)) {
|
|
98
|
-
const s = new Set(t.flat(1 / 0).reverse());
|
|
99
|
-
for (const i of s)
|
|
100
|
-
e.unshift(u(i));
|
|
101
|
-
} else
|
|
102
|
-
t !== void 0 && e.push(u(t));
|
|
103
|
-
return e;
|
|
104
|
-
}
|
|
105
|
-
static _$Eu(t, e) {
|
|
106
|
-
const s = e.attribute;
|
|
107
|
-
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
108
|
-
}
|
|
109
|
-
constructor() {
|
|
110
|
-
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
111
|
-
}
|
|
112
|
-
_$Ev() {
|
|
113
|
-
var t;
|
|
114
|
-
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
|
115
|
-
}
|
|
116
|
-
addController(t) {
|
|
117
|
-
var e;
|
|
118
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
|
119
|
-
}
|
|
120
|
-
removeController(t) {
|
|
121
|
-
var e;
|
|
122
|
-
(e = this._$EO) == null || e.delete(t);
|
|
123
|
-
}
|
|
124
|
-
_$E_() {
|
|
125
|
-
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
126
|
-
for (const s of e.keys())
|
|
127
|
-
this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
128
|
-
t.size > 0 && (this._$Ep = t);
|
|
129
|
-
}
|
|
130
|
-
createRenderRoot() {
|
|
131
|
-
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
132
|
-
return $(t, this.constructor.elementStyles), t;
|
|
133
|
-
}
|
|
134
|
-
connectedCallback() {
|
|
135
|
-
var t;
|
|
136
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
137
|
-
var s;
|
|
138
|
-
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
enableUpdating(t) {
|
|
142
|
-
}
|
|
143
|
-
disconnectedCallback() {
|
|
144
|
-
var t;
|
|
145
|
-
(t = this._$EO) == null || t.forEach((e) => {
|
|
146
|
-
var s;
|
|
147
|
-
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
attributeChangedCallback(t, e, s) {
|
|
151
|
-
this._$AK(t, s);
|
|
152
|
-
}
|
|
153
|
-
_$EC(t, e) {
|
|
154
|
-
var o;
|
|
155
|
-
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
156
|
-
if (i !== void 0 && s.reflect === !0) {
|
|
157
|
-
const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : d).toAttribute(e, s.type);
|
|
158
|
-
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
_$AK(t, e) {
|
|
162
|
-
var o;
|
|
163
|
-
const s = this.constructor, i = s._$Eh.get(t);
|
|
164
|
-
if (i !== void 0 && this._$Em !== i) {
|
|
165
|
-
const n = s.getPropertyOptions(i), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : d;
|
|
166
|
-
this._$Em = i, this[i] = l.fromAttribute(e, n.type), this._$Em = null;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
requestUpdate(t, e, s) {
|
|
170
|
-
if (t !== void 0) {
|
|
171
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? _)(this[t], e))
|
|
172
|
-
return;
|
|
173
|
-
this.P(t, e, s);
|
|
174
|
-
}
|
|
175
|
-
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
176
|
-
}
|
|
177
|
-
P(t, e, s) {
|
|
178
|
-
this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
|
179
|
-
}
|
|
180
|
-
async _$ET() {
|
|
181
|
-
this.isUpdatePending = !0;
|
|
182
|
-
try {
|
|
183
|
-
await this._$ES;
|
|
184
|
-
} catch (e) {
|
|
185
|
-
Promise.reject(e);
|
|
186
|
-
}
|
|
187
|
-
const t = this.scheduleUpdate();
|
|
188
|
-
return t != null && await t, !this.isUpdatePending;
|
|
189
|
-
}
|
|
190
|
-
scheduleUpdate() {
|
|
191
|
-
return this.performUpdate();
|
|
192
|
-
}
|
|
193
|
-
performUpdate() {
|
|
194
|
-
var s;
|
|
195
|
-
if (!this.isUpdatePending)
|
|
196
|
-
return;
|
|
197
|
-
if (!this.hasUpdated) {
|
|
198
|
-
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
199
|
-
for (const [o, n] of this._$Ep)
|
|
200
|
-
this[o] = n;
|
|
201
|
-
this._$Ep = void 0;
|
|
202
|
-
}
|
|
203
|
-
const i = this.constructor.elementProperties;
|
|
204
|
-
if (i.size > 0)
|
|
205
|
-
for (const [o, n] of i)
|
|
206
|
-
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
|
207
|
-
}
|
|
208
|
-
let t = !1;
|
|
209
|
-
const e = this._$AL;
|
|
210
|
-
try {
|
|
211
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
|
|
212
|
-
var o;
|
|
213
|
-
return (o = i.hostUpdate) == null ? void 0 : o.call(i);
|
|
214
|
-
}), this.update(e)) : this._$EU();
|
|
215
|
-
} catch (i) {
|
|
216
|
-
throw t = !1, this._$EU(), i;
|
|
217
|
-
}
|
|
218
|
-
t && this._$AE(e);
|
|
219
|
-
}
|
|
220
|
-
willUpdate(t) {
|
|
221
|
-
}
|
|
222
|
-
_$AE(t) {
|
|
223
|
-
var e;
|
|
224
|
-
(e = this._$EO) == null || e.forEach((s) => {
|
|
225
|
-
var i;
|
|
226
|
-
return (i = s.hostUpdated) == null ? void 0 : i.call(s);
|
|
227
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
228
|
-
}
|
|
229
|
-
_$EU() {
|
|
230
|
-
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
231
|
-
}
|
|
232
|
-
get updateComplete() {
|
|
233
|
-
return this.getUpdateComplete();
|
|
234
|
-
}
|
|
235
|
-
getUpdateComplete() {
|
|
236
|
-
return this._$ES;
|
|
237
|
-
}
|
|
238
|
-
shouldUpdate(t) {
|
|
239
|
-
return !0;
|
|
240
|
-
}
|
|
241
|
-
update(t) {
|
|
242
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
|
|
243
|
-
}
|
|
244
|
-
updated(t) {
|
|
245
|
-
}
|
|
246
|
-
firstUpdated(t) {
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
a.elementStyles = [], a.shadowRootOptions = { mode: "open" }, a[c("elementProperties")] = /* @__PURE__ */ new Map(), a[c("finalized")] = /* @__PURE__ */ new Map(), p == null || p({ ReactiveElement: a }), (h.reactiveElementVersions ?? (h.reactiveElementVersions = [])).push("2.0.4");
|
|
250
|
-
export {
|
|
251
|
-
O as CSSResult,
|
|
252
|
-
a as ReactiveElement,
|
|
253
|
-
$ as adoptStyles,
|
|
254
|
-
C as css,
|
|
255
|
-
d as defaultConverter,
|
|
256
|
-
u as getCompatibleStyle,
|
|
257
|
-
_ as notEqual,
|
|
258
|
-
R as supportsAdoptingStyleSheets,
|
|
259
|
-
z as unsafeCSS
|
|
260
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ReactiveElement as o } from "../../../@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
-
import { defaultConverter as m, notEqual as u } from "../../../@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";
|
|
3
|
-
import { render as i, noChange as l } from "../../../lit-html@3.1.2/node_modules/lit-html/lit-html.js";
|
|
4
|
-
import { html as E, nothing as f, svg as b } from "../../../lit-html@3.1.2/node_modules/lit-html/lit-html.js";
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright 2017 Google LLC
|
|
8
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/
|
|
10
|
-
class n extends o {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
13
|
-
}
|
|
14
|
-
createRenderRoot() {
|
|
15
|
-
var t;
|
|
16
|
-
const e = super.createRenderRoot();
|
|
17
|
-
return (t = this.renderOptions).renderBefore ?? (t.renderBefore = e.firstChild), e;
|
|
18
|
-
}
|
|
19
|
-
update(e) {
|
|
20
|
-
const t = this.render();
|
|
21
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = i(t, this.renderRoot, this.renderOptions);
|
|
22
|
-
}
|
|
23
|
-
connectedCallback() {
|
|
24
|
-
var e;
|
|
25
|
-
super.connectedCallback(), (e = this._$Do) == null || e.setConnected(!0);
|
|
26
|
-
}
|
|
27
|
-
disconnectedCallback() {
|
|
28
|
-
var e;
|
|
29
|
-
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
|
30
|
-
}
|
|
31
|
-
render() {
|
|
32
|
-
return l;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
var r;
|
|
36
|
-
n._$litElement$ = !0, n.finalized = !0, (r = globalThis.litElementHydrateSupport) == null || r.call(globalThis, { LitElement: n });
|
|
37
|
-
const s = globalThis.litElementPolyfillSupport;
|
|
38
|
-
s == null || s({ LitElement: n });
|
|
39
|
-
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
|
40
|
-
export {
|
|
41
|
-
n as LitElement,
|
|
42
|
-
o as ReactiveElement,
|
|
43
|
-
m as defaultConverter,
|
|
44
|
-
E as html,
|
|
45
|
-
l as noChange,
|
|
46
|
-
u as notEqual,
|
|
47
|
-
f as nothing,
|
|
48
|
-
i as render,
|
|
49
|
-
b as svg
|
|
50
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/
|
|
6
|
-
const s = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, T = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
7
|
-
class _ {
|
|
8
|
-
constructor(t) {
|
|
9
|
-
}
|
|
10
|
-
get _$AU() {
|
|
11
|
-
return this._$AM._$AU;
|
|
12
|
-
}
|
|
13
|
-
_$AT(t, e, r) {
|
|
14
|
-
this._$Ct = t, this._$AM = e, this._$Ci = r;
|
|
15
|
-
}
|
|
16
|
-
_$AS(t, e) {
|
|
17
|
-
return this.update(t, e);
|
|
18
|
-
}
|
|
19
|
-
update(t, e) {
|
|
20
|
-
return this.render(...e);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
_ as Directive,
|
|
25
|
-
s as PartType,
|
|
26
|
-
T as directive
|
|
27
|
-
};
|
package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { noChange as o } from "../lit-html.js";
|
|
2
|
-
import { directive as h, Directive as c, PartType as d } from "../directive.js";
|
|
3
|
-
/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright 2018 Google LLC
|
|
6
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
-
*/
|
|
8
|
-
const f = h(class extends c {
|
|
9
|
-
constructor(s) {
|
|
10
|
-
var e;
|
|
11
|
-
if (super(s), s.type !== d.ATTRIBUTE || s.name !== "class" || ((e = s.strings) == null ? void 0 : e.length) > 2)
|
|
12
|
-
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
13
|
-
}
|
|
14
|
-
render(s) {
|
|
15
|
-
return " " + Object.keys(s).filter((e) => s[e]).join(" ") + " ";
|
|
16
|
-
}
|
|
17
|
-
update(s, [e]) {
|
|
18
|
-
var n, i;
|
|
19
|
-
if (this.st === void 0) {
|
|
20
|
-
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((t) => t !== "")));
|
|
21
|
-
for (const t in e)
|
|
22
|
-
e[t] && !((n = this.nt) != null && n.has(t)) && this.st.add(t);
|
|
23
|
-
return this.render(e);
|
|
24
|
-
}
|
|
25
|
-
const r = s.element.classList;
|
|
26
|
-
for (const t of this.st)
|
|
27
|
-
t in e || (r.remove(t), this.st.delete(t));
|
|
28
|
-
for (const t in e) {
|
|
29
|
-
const a = !!e[t];
|
|
30
|
-
a === this.st.has(t) || (i = this.nt) != null && i.has(t) || (a ? (r.add(t), this.st.add(t)) : (r.remove(t), this.st.delete(t)));
|
|
31
|
-
}
|
|
32
|
-
return o;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
export {
|
|
36
|
-
f as classMap
|
|
37
|
-
};
|