@carbon/ibmdotcom-web-components 2.15.1 → 2.16.0-rc.0
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/custom-elements.json +275 -9
- package/dist/dotcom-shell.js +1 -1
- package/dist/dotcom-shell.min.js +1 -1
- package/dist/ibmdotcom-web-components-dotcom-shell.js +1 -1
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +1 -1
- package/dist/{index-99142b40.js → index-6ab416ae.js} +5 -5
- package/dist/{index-03c48f1e.js → index-6f798488.js} +20 -9
- package/dist/{left-nav-menu-2e404c03.js → left-nav-menu-40ebffa9.js} +1 -1
- package/dist/{left-nav-menu-992dba4e.js → left-nav-menu-629e7752.js} +1 -1
- package/dist/{left-nav-menu-category-heading-49bdf0ea.js → left-nav-menu-category-heading-1886967e.js} +1 -1
- package/dist/{left-nav-menu-category-heading-7a46e8b6.js → left-nav-menu-category-heading-1d965e0a.js} +1 -1
- package/dist/{left-nav-menu-item-b5f3022a.js → left-nav-menu-item-03cf8244.js} +1 -1
- package/dist/{left-nav-menu-item-85504de0.js → left-nav-menu-item-a9c7113f.js} +1 -1
- package/dist/{left-nav-menu-section-16fe3a87.js → left-nav-menu-section-c39512a8.js} +1 -1
- package/dist/{left-nav-menu-section-d0d11510.js → left-nav-menu-section-e9526c5a.js} +1 -1
- package/dist/{left-nav-overlay-43be2e0f.js → left-nav-overlay-59e8851e.js} +1 -1
- package/dist/{left-nav-overlay-e8435b5c.js → left-nav-overlay-60a5eead.js} +1 -1
- package/dist/{megamenu-category-group-0f365f5a.js → megamenu-category-group-60d3805b.js} +1 -1
- package/dist/{megamenu-category-group-copy-f600eb27.js → megamenu-category-group-copy-46df540c.js} +1 -1
- package/dist/{megamenu-category-group-copy-bd0e2529.js → megamenu-category-group-copy-6ae3dfe8.js} +1 -1
- package/dist/{megamenu-category-group-ed0148e2.js → megamenu-category-group-e191e806.js} +1 -1
- package/dist/{megamenu-category-heading-9e4184d9.js → megamenu-category-heading-420838f8.js} +1 -1
- package/dist/{megamenu-category-heading-e73a6d5b.js → megamenu-category-heading-4b2d5ba1.js} +1 -1
- package/dist/{megamenu-category-link-4c1ca891.js → megamenu-category-link-e5f8c975.js} +1 -1
- package/dist/{megamenu-category-link-fc55652f.js → megamenu-category-link-ef739901.js} +1 -1
- package/dist/{megamenu-category-link-group-d22c6c1b.js → megamenu-category-link-group-90b667c2.js} +1 -1
- package/dist/{megamenu-category-link-group-ace0e779.js → megamenu-category-link-group-a85ef70e.js} +1 -1
- package/dist/{megamenu-left-navigation-eead91f9.js → megamenu-left-navigation-0a188f17.js} +1 -1
- package/dist/{megamenu-left-navigation-3b2e1168.js → megamenu-left-navigation-d3619fc8.js} +1 -1
- package/dist/{megamenu-overlay-8b3ba0fb.js → megamenu-overlay-73bf0741.js} +1 -1
- package/dist/{megamenu-overlay-08bd8a36.js → megamenu-overlay-98b82923.js} +1 -1
- package/dist/{megamenu-tab-15629cd2.js → megamenu-tab-320d3677.js} +6 -6
- package/dist/{megamenu-tab-c2aa1eac.js → megamenu-tab-63b4d4a8.js} +14 -19
- package/es/components/back-to-top/__stories__/back-to-top.stories.css.js +1 -1
- package/es/components/countdown/countdown.d.ts +406 -0
- package/es/components/countdown/countdown.js +269 -0
- package/es/components/countdown/countdown.js.map +1 -0
- package/es/components/countdown/index.d.ts +11 -0
- package/es/components/countdown/index.js +18 -0
- package/es/components/countdown/index.js.map +1 -0
- package/es/components/leadspace/leadspace.css.js +1 -1
- package/es/components/masthead/masthead-cart.js +1 -1
- package/es/components/masthead/masthead-cart.js.map +1 -1
- package/es/components/masthead/masthead-l1.js +11 -1
- package/es/components/masthead/masthead-l1.js.map +1 -1
- package/es/components/masthead/megamenu-tab.d.ts +1 -5
- package/es/components/masthead/megamenu-tab.js +10 -16
- package/es/components/masthead/megamenu-tab.js.map +1 -1
- package/es/components/promo-banner/index.d.ts +11 -0
- package/es/components/promo-banner/index.js +18 -0
- package/es/components/promo-banner/index.js.map +1 -0
- package/es/components/promo-banner/promo-banner.css.js +12 -0
- package/es/components/promo-banner/promo-banner.d.ts +385 -0
- package/es/components/promo-banner/promo-banner.js +216 -0
- package/es/components/promo-banner/promo-banner.js.map +1 -0
- package/es/components/star-rating/index.d.ts +11 -0
- package/es/components/star-rating/index.js +18 -0
- package/es/components/star-rating/index.js.map +1 -0
- package/es/components/star-rating/star-rating.css.js +12 -0
- package/es/components/star-rating/star-rating.d.ts +427 -0
- package/es/components/star-rating/star-rating.js +320 -0
- package/es/components/star-rating/star-rating.js.map +1 -0
- package/es/components/structured-list/structured-list-cell.js +1 -1
- package/es/components/structured-list/structured-list-cell.js.map +1 -1
- package/es/components/table-of-contents/table-of-contents-cdn.css.js +1 -1
- package/es/components/table-of-contents/table-of-contents.css.js +1 -1
- package/es/components/tile/index.d.ts +12 -0
- package/es/components/tile/index.js +19 -0
- package/es/components/tile/index.js.map +1 -0
- package/es/components/tile/tile-group.d.ts +21 -0
- package/es/components/tile/tile-group.js +56 -0
- package/es/components/tile/tile-group.js.map +1 -0
- package/es/components/tile/tile.css.js +12 -0
- package/es/components/tile/tile.d.ts +737 -0
- package/es/components/tile/tile.js +225 -0
- package/es/components/tile/tile.js.map +1 -0
- package/es/globals/internal/storybook-decorators.d.ts +31 -0
- package/es/globals/internal/storybook-decorators.js +43 -0
- package/es/globals/internal/storybook-decorators.js.map +1 -0
- package/es/globals/mixins/throttled-input.js +5 -4
- package/es/globals/mixins/throttled-input.js.map +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/package.json +7 -6
- package/scss/components/promo-banner/promo-banner.scss +163 -0
- package/scss/components/star-rating/star-rating.scss +76 -0
- package/scss/components/tile/tile.scss +290 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { css } from 'lit';
|
|
10
|
+
export default css([
|
|
11
|
+
':host(c4d-star-rating){display:inline-block}:host(c4d-star-rating) .cds-star-rating{display:flex;flex-wrap:wrap;gap:.5rem 1rem}:host(c4d-star-rating) .cds-star-rating__stars{align-items:center;display:inline-flex;margin:0}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]){align-items:center;cursor:default;display:inline-flex;overflow:visible;position:relative}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):focus{outline:1px solid var(--cds-focus,#0f62fe)}@media screen and (prefers-contrast){:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):focus{outline-style:dotted}}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]) .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip])+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]) .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip])+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):before{display:inline-block}}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):before{transition:none}}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--a11y:after,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--a11y:before{transition:none}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):before{block-size:0;border-style:solid;content:"";inline-size:0}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]) .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip])+.cds--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]) .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip])+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after{background-color:var(--cds-background-inverse,#393939);block-size:auto;border-radius:.125rem;box-shadow:0 2px 6px var(--cds-shadow,rgba(0,0,0,.3));color:var(--cds-text-inverse,#fff);font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:400;font-weight:var(--cds-body-compact-01-font-weight,400);inline-size:-moz-max-content;inline-size:max-content;letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572);max-inline-size:13rem;min-inline-size:1.5rem;padding:.5rem 1rem;text-align:start;transform:translateX(-50%);z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]) .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip])+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after{inline-size:auto}}@supports (-ms-accelerator:true){:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]) .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip])+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after{inline-size:auto}}@supports (-ms-ime-align:auto){:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]) .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip])+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after{inline-size:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]) .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip])+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after{border:1px solid transparent}}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after{content:attr(aria-label)}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--a11y:after{content:none}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--visible:after,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--visible:before,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):focus:after,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):focus:before,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):hover:after,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):hover:before{opacity:1}@keyframes cds--tooltip-fade{0%{opacity:0}to{opacity:1}}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--visible .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--visible+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):focus .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):focus+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):hover .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):hover+.cds--assistive-text{clip:auto;margin:auto;overflow:visible}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--visible .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--visible+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--visible.cds--tooltip--a11y:before,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):focus .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):focus+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):focus.cds--tooltip--a11y:before,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):hover .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):hover+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):hover.cds--tooltip--a11y:before{animation:cds--tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--hidden .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--hidden+.cds--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]).cds--tooltip--hidden.cds--tooltip--a11y:before{animation:none;opacity:0}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]) .cds--assistive-text:after{block-size:.75rem;content:"";display:block;inline-size:100%;inset-block-end:-.75rem;inset-inline-start:0;position:absolute}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]) .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip])+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):before{inset-block-start:0;inset-inline-start:50%}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):before{border-color:var(--cds-background-inverse,#393939) transparent transparent transparent;border-width:.3125rem .25rem 0;inset-block-start:-.25rem;transform:translate(-50%,-100%)}:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]) .cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip])+.cds--assistive-text,:host(c4d-star-rating) .cds-star-rating__stars:not([disableTooltip]):after{inset-block-start:-.5625rem;inset-inline-start:50%;transform:translate(-50%,-100%)}:host(c4d-star-rating) .cds-star-count__star svg{fill:var(--cds-button-primary,#0f62fe);display:block}:host(c4d-star-rating) .cds-star-count__star--half{position:relative}:host(c4d-star-rating) .cds-star-count__star--half svg{inset:0;position:absolute}:host(c4d-star-rating) .cds-star-count__star--half svg:first-of-type{position:static}:host(c4d-star-rating) .cds-star-count__star--half svg:nth-of-type(2):dir(rtl){transform:scaleX(-1)}:host(c4d-star-rating) .cds-star-rating__label,:host(c4d-star-rating) .cds-star-rating__label a{color:var(--cds-border-inverse,#161616);font-size:var(--cds-body-compact-02-font-size,1rem);font-weight:var(--cds-body-compact-02-font-weight,400);letter-spacing:var(--cds-body-compact-02-letter-spacing,0);line-height:var(--cds-body-compact-02-line-height,1.375)}:host(c4d-star-rating) .cds-star-rating__label a{text-decoration:none}:host(c4d-star-rating) .cds-star-rating__label a:focus,:host(c4d-star-rating) .cds-star-rating__label a:hover{text-decoration:underline}',
|
|
12
|
+
]);
|
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2020, 2024
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { LitElement } from 'lit';
|
|
10
|
+
import '@carbon/web-components/es/components/tooltip/tooltip.js';
|
|
11
|
+
declare const C4DStarRating_base: {
|
|
12
|
+
new (...args: any[]): {
|
|
13
|
+
linkNode: any;
|
|
14
|
+
altAttributes: any;
|
|
15
|
+
_mutationObserver: MutationObserver | null;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
transposeAttributes(linkNodeArg?: any, altAttributesArg?: any): void;
|
|
19
|
+
_cleanAndCreateMutationObserver({ create }?: {
|
|
20
|
+
create?: boolean;
|
|
21
|
+
}): void;
|
|
22
|
+
accessKey: string;
|
|
23
|
+
readonly accessKeyLabel: string;
|
|
24
|
+
autocapitalize: string;
|
|
25
|
+
dir: string;
|
|
26
|
+
draggable: boolean;
|
|
27
|
+
hidden: boolean;
|
|
28
|
+
inert: boolean;
|
|
29
|
+
innerText: string;
|
|
30
|
+
lang: string;
|
|
31
|
+
readonly offsetHeight: number;
|
|
32
|
+
readonly offsetLeft: number;
|
|
33
|
+
readonly offsetParent: Element | null;
|
|
34
|
+
readonly offsetTop: number;
|
|
35
|
+
readonly offsetWidth: number;
|
|
36
|
+
outerText: string;
|
|
37
|
+
popover: string | null;
|
|
38
|
+
spellcheck: boolean;
|
|
39
|
+
title: string;
|
|
40
|
+
translate: boolean;
|
|
41
|
+
attachInternals(): ElementInternals;
|
|
42
|
+
click(): void;
|
|
43
|
+
hidePopover(): void;
|
|
44
|
+
showPopover(): void;
|
|
45
|
+
togglePopover(force?: boolean): boolean;
|
|
46
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
47
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
48
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
49
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
50
|
+
readonly attributes: NamedNodeMap;
|
|
51
|
+
readonly classList: DOMTokenList;
|
|
52
|
+
className: string;
|
|
53
|
+
readonly clientHeight: number;
|
|
54
|
+
readonly clientLeft: number;
|
|
55
|
+
readonly clientTop: number;
|
|
56
|
+
readonly clientWidth: number;
|
|
57
|
+
id: string;
|
|
58
|
+
readonly localName: string;
|
|
59
|
+
readonly namespaceURI: string | null;
|
|
60
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
61
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
62
|
+
outerHTML: string;
|
|
63
|
+
readonly ownerDocument: Document;
|
|
64
|
+
readonly part: DOMTokenList;
|
|
65
|
+
readonly prefix: string | null;
|
|
66
|
+
readonly scrollHeight: number;
|
|
67
|
+
scrollLeft: number;
|
|
68
|
+
scrollTop: number;
|
|
69
|
+
readonly scrollWidth: number;
|
|
70
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
71
|
+
slot: string;
|
|
72
|
+
readonly tagName: string;
|
|
73
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
74
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
75
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
76
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
77
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
78
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
|
79
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
|
80
|
+
getAttribute(qualifiedName: string): string | null;
|
|
81
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
82
|
+
getAttributeNames(): string[];
|
|
83
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
84
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
85
|
+
getBoundingClientRect(): DOMRect;
|
|
86
|
+
getClientRects(): DOMRectList;
|
|
87
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
88
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
89
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
90
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
91
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
92
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
93
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
94
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
95
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
96
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
97
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
98
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
99
|
+
hasAttributes(): boolean;
|
|
100
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
101
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
102
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
103
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
104
|
+
matches(selectors: string): boolean;
|
|
105
|
+
releasePointerCapture(pointerId: number): void;
|
|
106
|
+
removeAttribute(qualifiedName: string): void;
|
|
107
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
108
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
109
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
110
|
+
requestPointerLock(): void;
|
|
111
|
+
scroll(options?: ScrollToOptions): void;
|
|
112
|
+
scroll(x: number, y: number): void;
|
|
113
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
114
|
+
scrollBy(x: number, y: number): void;
|
|
115
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
116
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
117
|
+
scrollTo(x: number, y: number): void;
|
|
118
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
119
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
120
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
121
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
122
|
+
setHTMLUnsafe(html: string): void;
|
|
123
|
+
setPointerCapture(pointerId: number): void;
|
|
124
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
125
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
126
|
+
readonly baseURI: string;
|
|
127
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
128
|
+
readonly firstChild: ChildNode | null;
|
|
129
|
+
readonly isConnected: boolean;
|
|
130
|
+
readonly lastChild: ChildNode | null;
|
|
131
|
+
readonly nextSibling: ChildNode | null;
|
|
132
|
+
readonly nodeName: string;
|
|
133
|
+
readonly nodeType: number;
|
|
134
|
+
nodeValue: string | null;
|
|
135
|
+
readonly parentElement: HTMLElement | null;
|
|
136
|
+
readonly parentNode: ParentNode | null;
|
|
137
|
+
readonly previousSibling: ChildNode | null;
|
|
138
|
+
textContent: string | null;
|
|
139
|
+
appendChild<T extends Node>(node: T): T;
|
|
140
|
+
cloneNode(deep?: boolean): Node;
|
|
141
|
+
compareDocumentPosition(other: Node): number;
|
|
142
|
+
contains(other: Node | null): boolean;
|
|
143
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
144
|
+
hasChildNodes(): boolean;
|
|
145
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
146
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
147
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
148
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
149
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
150
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
151
|
+
normalize(): void;
|
|
152
|
+
removeChild<T extends Node>(child: T): T;
|
|
153
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
154
|
+
readonly ELEMENT_NODE: 1;
|
|
155
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
156
|
+
readonly TEXT_NODE: 3;
|
|
157
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
158
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
159
|
+
readonly ENTITY_NODE: 6;
|
|
160
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
161
|
+
readonly COMMENT_NODE: 8;
|
|
162
|
+
readonly DOCUMENT_NODE: 9;
|
|
163
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
164
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
165
|
+
readonly NOTATION_NODE: 12;
|
|
166
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
167
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
168
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
169
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
170
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
171
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
172
|
+
dispatchEvent(event: Event): boolean;
|
|
173
|
+
ariaAtomic: string | null;
|
|
174
|
+
ariaAutoComplete: string | null;
|
|
175
|
+
ariaBrailleLabel: string | null;
|
|
176
|
+
ariaBrailleRoleDescription: string | null;
|
|
177
|
+
ariaBusy: string | null;
|
|
178
|
+
ariaChecked: string | null;
|
|
179
|
+
ariaColCount: string | null;
|
|
180
|
+
ariaColIndex: string | null;
|
|
181
|
+
ariaColSpan: string | null;
|
|
182
|
+
ariaCurrent: string | null;
|
|
183
|
+
ariaDescription: string | null;
|
|
184
|
+
ariaDisabled: string | null;
|
|
185
|
+
ariaExpanded: string | null;
|
|
186
|
+
ariaHasPopup: string | null;
|
|
187
|
+
ariaHidden: string | null;
|
|
188
|
+
ariaInvalid: string | null;
|
|
189
|
+
ariaKeyShortcuts: string | null;
|
|
190
|
+
ariaLabel: string | null;
|
|
191
|
+
ariaLevel: string | null;
|
|
192
|
+
ariaLive: string | null;
|
|
193
|
+
ariaModal: string | null;
|
|
194
|
+
ariaMultiLine: string | null;
|
|
195
|
+
ariaMultiSelectable: string | null;
|
|
196
|
+
ariaOrientation: string | null;
|
|
197
|
+
ariaPlaceholder: string | null;
|
|
198
|
+
ariaPosInSet: string | null;
|
|
199
|
+
ariaPressed: string | null;
|
|
200
|
+
ariaReadOnly: string | null;
|
|
201
|
+
ariaRequired: string | null;
|
|
202
|
+
ariaRoleDescription: string | null;
|
|
203
|
+
ariaRowCount: string | null;
|
|
204
|
+
ariaRowIndex: string | null;
|
|
205
|
+
ariaRowSpan: string | null;
|
|
206
|
+
ariaSelected: string | null;
|
|
207
|
+
ariaSetSize: string | null;
|
|
208
|
+
ariaSort: string | null;
|
|
209
|
+
ariaValueMax: string | null;
|
|
210
|
+
ariaValueMin: string | null;
|
|
211
|
+
ariaValueNow: string | null;
|
|
212
|
+
ariaValueText: string | null;
|
|
213
|
+
role: string | null;
|
|
214
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
215
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
216
|
+
after(...nodes: (Node | string)[]): void;
|
|
217
|
+
before(...nodes: (Node | string)[]): void;
|
|
218
|
+
remove(): void;
|
|
219
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
220
|
+
innerHTML: string;
|
|
221
|
+
readonly nextElementSibling: Element | null;
|
|
222
|
+
readonly previousElementSibling: Element | null;
|
|
223
|
+
readonly childElementCount: number;
|
|
224
|
+
readonly children: HTMLCollection;
|
|
225
|
+
readonly firstElementChild: Element | null;
|
|
226
|
+
readonly lastElementChild: Element | null;
|
|
227
|
+
append(...nodes: (Node | string)[]): void;
|
|
228
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
229
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
230
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
231
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
232
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
233
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
234
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
235
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
236
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
237
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
238
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
239
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
240
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
241
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
242
|
+
readonly style: CSSStyleDeclaration;
|
|
243
|
+
contentEditable: string;
|
|
244
|
+
enterKeyHint: string;
|
|
245
|
+
inputMode: string;
|
|
246
|
+
readonly isContentEditable: boolean;
|
|
247
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
248
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
249
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
250
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
251
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
252
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
253
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
254
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
255
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
256
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
257
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
258
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
259
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
260
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
261
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
262
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
263
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
264
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
265
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
266
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
267
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
268
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
269
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
270
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
271
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
272
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
273
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
274
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
275
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
276
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
277
|
+
onerror: OnErrorEventHandler;
|
|
278
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
279
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
280
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
281
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
282
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
283
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
284
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
285
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
286
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
287
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
288
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
289
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
290
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
291
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
292
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
293
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
294
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
295
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
296
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
297
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
298
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
299
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
300
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
301
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
302
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
303
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
304
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
305
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
306
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
307
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
308
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
309
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
310
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
311
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
312
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
313
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
314
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
316
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
317
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
318
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
319
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
320
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
321
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
322
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
323
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
324
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
325
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
326
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
327
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
329
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
330
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
331
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
332
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
333
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
334
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
335
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
336
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
337
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
338
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
339
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
340
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
341
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
342
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
343
|
+
autofocus: boolean;
|
|
344
|
+
readonly dataset: DOMStringMap;
|
|
345
|
+
nonce?: string;
|
|
346
|
+
tabIndex: number;
|
|
347
|
+
blur(): void;
|
|
348
|
+
focus(options?: FocusOptions): void;
|
|
349
|
+
};
|
|
350
|
+
stableSelector: string;
|
|
351
|
+
} & typeof LitElement;
|
|
352
|
+
/**
|
|
353
|
+
* The Star Rating component.
|
|
354
|
+
* @element c4d-star-rating
|
|
355
|
+
*/
|
|
356
|
+
declare class C4DStarRating extends C4DStarRating_base {
|
|
357
|
+
/**
|
|
358
|
+
* Maximum number of stars that may be in a rating.
|
|
359
|
+
*/
|
|
360
|
+
protected maxStarCount: number;
|
|
361
|
+
/**
|
|
362
|
+
* Internal store for rating value.
|
|
363
|
+
*/
|
|
364
|
+
private _rating;
|
|
365
|
+
/**
|
|
366
|
+
* Internal store for star count value.
|
|
367
|
+
*/
|
|
368
|
+
private _starCount;
|
|
369
|
+
/**
|
|
370
|
+
* Internal store for custom tooltip text.
|
|
371
|
+
*/
|
|
372
|
+
private _tooltip;
|
|
373
|
+
/**
|
|
374
|
+
* The rating that will inform the number of stars to display.
|
|
375
|
+
*/
|
|
376
|
+
set rating(value: number);
|
|
377
|
+
get rating(): number;
|
|
378
|
+
/**
|
|
379
|
+
* The text to display beside the rating.
|
|
380
|
+
*/
|
|
381
|
+
label?: string;
|
|
382
|
+
/**
|
|
383
|
+
* An optional href for the label.
|
|
384
|
+
*/
|
|
385
|
+
labelHref?: string;
|
|
386
|
+
/**
|
|
387
|
+
* The number of stars to display.
|
|
388
|
+
*/
|
|
389
|
+
set starCount(value: number);
|
|
390
|
+
get starCount(): number;
|
|
391
|
+
/**
|
|
392
|
+
* The tooltip text that appears when hovering over the stars. Also used as an
|
|
393
|
+
* accessible label for the stars.
|
|
394
|
+
*/
|
|
395
|
+
set tooltip(value: string | null);
|
|
396
|
+
get tooltip(): string | null;
|
|
397
|
+
/**
|
|
398
|
+
* Disables the visible tooltip without removing accessibility text.
|
|
399
|
+
*/
|
|
400
|
+
disableTooltip: boolean;
|
|
401
|
+
/**
|
|
402
|
+
* Renders the label.
|
|
403
|
+
*
|
|
404
|
+
* @returns {TemplateResult} A template fragment representing the label.
|
|
405
|
+
*/
|
|
406
|
+
protected _renderLabel(): "" | import("lit-html").TemplateResult<1>;
|
|
407
|
+
/**
|
|
408
|
+
* Renders the rating as a series of stars.
|
|
409
|
+
*
|
|
410
|
+
* @returns {TemplateResult} A template fragment representing a series of stars.
|
|
411
|
+
*/
|
|
412
|
+
protected _renderStars(): import("lit-html").TemplateResult<1>;
|
|
413
|
+
shouldUpdate(): boolean;
|
|
414
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
415
|
+
/**
|
|
416
|
+
* Renders an individual star at a given fill value.
|
|
417
|
+
*
|
|
418
|
+
* @param {number} fill The star's fill value.
|
|
419
|
+
* @returns {TemplateResult} A template fragment representing a single star.
|
|
420
|
+
*/
|
|
421
|
+
static renderStar(fill: any): import("lit-html").TemplateResult<1>;
|
|
422
|
+
static get stableSelector(): string;
|
|
423
|
+
static styles: any;
|
|
424
|
+
}
|
|
425
|
+
export default C4DStarRating;
|
|
426
|
+
|
|
427
|
+
//# sourceMappingURL=star-rating.d.ts.map
|