@everymatrix/gamification-dropdown 1.43.4 → 1.54.2
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/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/gamification-dropdown-0fd9c5b8.js +186 -0
- package/dist/cjs/gamification-dropdown.cjs.js +17 -11
- package/dist/cjs/gamification-dropdown_4.cjs.entry.js +408 -528
- package/dist/cjs/index-c535ed72.js +1796 -0
- package/dist/cjs/index.cjs.js +8 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/{player-elevate-card-items-1cb6488c.js → player-elevate-card-items-42538012.js} +195 -180
- package/dist/cjs/player-elevate-card.cjs.entry.js +71 -70
- package/dist/cjs/player-elevate-pointcard.cjs.entry.js +79 -78
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/gamification-dropdown/gamification-dropdown.js +272 -257
- package/dist/collection/components/gamification-dropdown/index.js +1 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/locale.utils.js +34 -34
- package/dist/collection/utils/utils.js +1 -1
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/gamification-dropdown-ae7b7c69.js +184 -0
- package/dist/esm/gamification-dropdown.js +14 -11
- package/dist/esm/gamification-dropdown_4.entry.js +408 -528
- package/dist/esm/index-ea7720e4.js +1766 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/loader.js +7 -13
- package/dist/esm/{player-elevate-card-items-5bf07fe3.js → player-elevate-card-items-9d490a3b.js} +196 -180
- package/dist/esm/player-elevate-card.entry.js +71 -70
- package/dist/esm/player-elevate-pointcard.entry.js +79 -78
- package/dist/gamification-dropdown/gamification-dropdown.esm.js +1 -1
- package/dist/gamification-dropdown/index.esm.js +1 -0
- package/dist/gamification-dropdown/p-10486e5b.entry.js +1 -0
- package/dist/gamification-dropdown/p-21507480.js +1 -0
- package/dist/gamification-dropdown/p-3f7623db.js +2 -0
- package/dist/gamification-dropdown/p-422d11f7.entry.js +1 -0
- package/dist/gamification-dropdown/p-4b1d42b5.entry.js +1 -0
- package/dist/gamification-dropdown/p-c5998a81.js +1 -0
- package/dist/gamification-dropdown/p-e1255160.js +1 -0
- package/dist/stencil.config.dev.js +15 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/gamification-dropdown/gamification-dropdown.d.ts +41 -41
- package/dist/types/components/gamification-dropdown/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +148 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +11 -4
- package/dist/cjs/index-4aa14dda.js +0 -1717
- package/dist/components/gamification-dropdown.d.ts +0 -11
- package/dist/components/gamification-dropdown.js +0 -230
- package/dist/components/general-styling-wrapper.js +0 -6
- package/dist/components/general-styling-wrapper2.js +0 -103
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/player-elevate-card-data.js +0 -6
- package/dist/components/player-elevate-card-data2.js +0 -635
- package/dist/components/player-elevate-card-items.js +0 -2149
- package/dist/components/player-elevate-card.js +0 -126
- package/dist/components/player-elevate-loyaltycard.js +0 -6
- package/dist/components/player-elevate-loyaltycard2.js +0 -129
- package/dist/components/player-elevate-pointcard.js +0 -135
- package/dist/esm/index-a803f08b.js +0 -1688
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/gamification-dropdown/p-118adbd3.entry.js +0 -1
- package/dist/gamification-dropdown/p-1bea1936.js +0 -1
- package/dist/gamification-dropdown/p-727c8663.js +0 -1
- package/dist/gamification-dropdown/p-bf29bfd4.entry.js +0 -1
- package/dist/gamification-dropdown/p-cdf41413.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/gamification-dropdown/.stencil/packages/gamification-dropdown/stencil.config.d.ts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,a,h as n,F as t}from"./p-3f7623db.js";import{T as i,P as s,h as r,c as d}from"./p-21507480.js";const o=class{constructor(a){e(this,a),this.theme="Dark",this.language="en",this.buttonType="earningRule",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isPointDetailCard="earningRule"===this.buttonType}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(e){e.detail&&(e.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=e.detail.elevateLevelWalletTotal,this.elevateSPTotal=e.detail.loyaltyWalletTotal),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.pointExpireString))}onDetailsClick(){window.postMessage({type:this.isPointDetailCard?"BEEPointRulesClicked":"BEEDetailsClicked",path:this.isPointDetailCard?"player-elevate-level":"player-elevate-point-details"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}render(){const e=a("../static/card-ground.svg"),o=a("../static/card-ground-over.svg");return n("div",{key:"4e6e25bdd2a9f795369b39dbfd7e9adbd1523e17",class:`ElevateCardWrapper ${this.theme}`},n("div",{key:"ddeea1e67d51d5c0c8ed56edfd2d8d9c39e85253",class:"PointsCard Outer ",style:{backgroundImage:`url(${e}`}},n("general-styling-wrapper",{key:"c6d6e3a3bc9a54cb99b4268feb3c296527d1ba8c",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:i,translationUrl:this.translationUrl}),n("player-elevate-card-data",{key:"4371faac6967c5b3eced57f6251064ea4e1d6a65",params:this.paramProxy}),n("div",{key:"c78235a6fdc2aed90df898f007b5ee091cece8dc",class:"OuterCover Inner",style:{backgroundImage:`url(${o}`}},n("div",{key:"025e779223c1c85c11998be8389a8ff836a31e6c",class:"Content Row"},this.playerElevateLevel&&n(t,{key:"68daa6047dc93d2596d8b2309a26f56960737617"},n("div",{key:"6a2d2b2e7d234bceaf3d9240c5d4f2eb80395319",class:"PlayerImg"},n(s,{key:"aeaf35ad8055ad4f7312922c8600ea58d09be74f",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),n("div",{key:"bd51ce868b4d8a547f40ec55548bbf3cfa416534",class:`LevelInfo ${this.playerElevateLevel.name}`},n("div",{key:"5f4d77a5b43c8efee850b9813bc1c8e61d27d45d",class:"PointsTxt Label"},this.cardTitle?this.cardTitle:r("spendablePoints")),n("div",{key:"bae5dc76d00c98aed803601c19fe3bf1aa4418d5",class:"PointsTxt SPPoints"},n(d,{key:"59d51bd37f44ed23108fc4356af41c01668354e3",spendablePoints:this.playerElevateLevel.spendablePoints,language:this.language}),n("a",{key:"3a923bea242ae5fa412f4448dca7277b3588621e",class:"TC",onClick:()=>{this.onDetailsClick()}},r("termAndConditions",this.language))),this.pointExpireString&&n("div",{key:"8803ae8d343885da58dfa04b9a4474ff473b5a74",class:"ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};o.style=":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}";export{o as player_elevate_pointcard}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,h as t,g as o}from"./p-3f7623db.js";let n={en:{gamificationNoPoints:"No points"},de:{gamificationNoPoints:"No points"},ro:{gamificationNoPoints:"No points"},fr:{gamificationNoPoints:"No points"},ar:{gamificationNoPoints:"No points"},hr:{gamificationNoPoints:"No points"}};const s=i=>new Promise((t=>{fetch(i).then((i=>i.json())).then((i=>{Object.keys(i).forEach((t=>{n[t]||(n[t]={});for(let o in i[t])n[t][o]=i[t][o]})),t(!0)}))})),e=class{constructor(t){i(this,t),this.language="en",this.session="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isOpen=!1,this.isLoading=!1,this.stylingAppends=!1,this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.setClientStylingURL=()=>{let i=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(i.href).then((i=>i.text())).then((i=>{t.innerHTML=i,setTimeout((()=>{this.stylingContainer.prepend(t)}),1)})).catch((i=>{console.log("error ",i)}))},this.navigateToGamification=()=>{window.postMessage({type:"NavigateToGamification"},window.location.href),this.isOpen=!1},this.handleOutsideClick=i=>{i.composedPath().includes(this.el)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=i=>{i.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}}handleNewTranslations(){this.isLoading=!0,s(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){if(this.translationUrl.length>2&&await s(this.translationUrl),this.endpoint&&this.language)return this.fetchPointsData()}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}fetchPointsData(){let i=new URL(`${this.endpoint}/v1/elevate/playerInfo`);i.searchParams.append("language",this.language);const t=new Headers;t.append("X-SessionId",this.session);const o={method:"GET",headers:t};return new Promise(((t,n)=>{this.isLoading=!0,fetch(i.href,o).then((i=>i.json())).then((i=>{var o,n;this.loyaltyPoints=null===(n=null===(o=null==i?void 0:i.data)||void 0===o?void 0:o.level)||void 0===n?void 0:n.loyaltyPoints,t(!0)})).catch((i=>{console.error(i),n(i)})).finally((()=>{this.isLoading=!1}))}))}render(){return this.isLoading?null:t("div",{ref:i=>this.stylingContainer=i,class:"GamificationDropdownContainer"},t("button",{class:"GamificationDropdownButton "+(this.isOpen?"IsOpen":""),type:"button",onClick:i=>this.handleDropdownClick(i),title:"number"==typeof this.loyaltyPoints?String(this.loyaltyPoints):(i=this.language,n[void 0!==i&&i in n?i:"en"].gamificationNoPoints)},"number"==typeof this.loyaltyPoints?`${this.loyaltyPoints} XP`:"...",t("span",{class:this.isOpen?"TriangleActive":"TriangleInactive"},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},t("path",{id:"arrow",d:"M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z",transform:"translate(-274.511 -441.088)"})))),this.isOpen&&t("div",{class:"GamificationDropdown",onClick:this.navigateToGamification},t("player-elevate-loyaltycard",{endpoint:this.endpoint,session:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStyling})));var i}get el(){return o(this)}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};e.style=":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}";export{e as G}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=()=>{};export{o as g}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const config = {
|
|
2
|
+
namespace: 'gamification-dropdown',
|
|
3
|
+
taskQueue: 'async',
|
|
4
|
+
sourceMap: false,
|
|
5
|
+
minifyJs: true,
|
|
6
|
+
extras: {
|
|
7
|
+
experimentalImportInjection: true
|
|
8
|
+
},
|
|
9
|
+
outputTargets: [
|
|
10
|
+
{
|
|
11
|
+
type: 'www',
|
|
12
|
+
serviceWorker: null // disable service workers
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
};
|
package/dist/stencil.config.js
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { sass } from
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
2
|
export const config = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
esmLoaderPath: '../loader',
|
|
3
|
+
namespace: 'gamification-dropdown',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
10
9
|
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
type: 'www',
|
|
19
|
-
serviceWorker: null, // disable service workers
|
|
20
|
-
},
|
|
21
|
-
],
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'dist',
|
|
14
|
+
esmLoaderPath: '../loader'
|
|
15
|
+
}
|
|
16
|
+
]
|
|
22
17
|
};
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../../../../dist/packages/stencil/player-elevate-card/dist/types/index";
|
|
2
2
|
export declare class GamificationDropdown {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Endpoint URL for the source of data
|
|
5
|
+
*/
|
|
6
|
+
endpoint: string;
|
|
7
|
+
/**
|
|
8
|
+
* Language of the widget
|
|
9
|
+
*/
|
|
10
|
+
language: string;
|
|
11
|
+
/**
|
|
12
|
+
* Session of the user
|
|
13
|
+
*/
|
|
14
|
+
session: string;
|
|
15
|
+
/**
|
|
16
|
+
* Client custom styling via string
|
|
17
|
+
*/
|
|
18
|
+
clientStyling: string;
|
|
19
|
+
/**
|
|
20
|
+
* Client custom styling via url
|
|
21
|
+
*/
|
|
22
|
+
clientStylingUrl: string;
|
|
23
|
+
/**
|
|
24
|
+
* Translations via URL
|
|
25
|
+
*/
|
|
26
|
+
translationUrl: string;
|
|
27
|
+
isOpen: boolean;
|
|
28
|
+
isLoading: boolean;
|
|
29
|
+
private stylingAppends;
|
|
30
|
+
private loyaltyPoints;
|
|
31
|
+
el: HTMLElement;
|
|
32
|
+
private stylingContainer;
|
|
33
|
+
handleNewTranslations(): void;
|
|
34
|
+
componentWillLoad(): Promise<any>;
|
|
35
|
+
componentDidRender(): void;
|
|
36
|
+
setClientStyling: () => void;
|
|
37
|
+
setClientStylingURL: () => void;
|
|
38
|
+
fetchPointsData(): Promise<any>;
|
|
39
|
+
navigateToGamification: () => void;
|
|
40
|
+
handleOutsideClick: (event: MouseEvent) => void;
|
|
41
|
+
handleDropdownClick: (event: MouseEvent) => void;
|
|
42
|
+
render(): any;
|
|
43
43
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GamificationDropdown } from './gamification-dropdown';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './components';
|
|
1
|
+
export * from './components/gamification-dropdown';
|
|
@@ -3,6 +3,16 @@ export interface ComponentDecorator {
|
|
|
3
3
|
(opts?: ComponentOptions): ClassDecorator;
|
|
4
4
|
}
|
|
5
5
|
export interface ComponentOptions {
|
|
6
|
+
/**
|
|
7
|
+
* When set to `true` this component will be form-associated. See
|
|
8
|
+
* https://stenciljs.com/docs/next/form-associated documentation on how to
|
|
9
|
+
* build form-associated Stencil components that integrate into forms like
|
|
10
|
+
* native browser elements such as `<input>` and `<textarea>`.
|
|
11
|
+
*
|
|
12
|
+
* The {@link AttachInternals} decorator allows for access to the
|
|
13
|
+
* `ElementInternals` object to modify the associated form.
|
|
14
|
+
*/
|
|
15
|
+
formAssociated?: boolean;
|
|
6
16
|
/**
|
|
7
17
|
* Tag name of the web component. Ideally, the tag name must be globally unique,
|
|
8
18
|
* so it's recommended to choose an unique prefix for all your components within the same collection.
|
|
@@ -62,7 +72,7 @@ export interface PropOptions {
|
|
|
62
72
|
/**
|
|
63
73
|
* The name of the associated DOM attribute.
|
|
64
74
|
* Stencil uses different heuristics to determine the default name of the attribute,
|
|
65
|
-
* but using this property, you can override the default
|
|
75
|
+
* but using this property, you can override the default behavior.
|
|
66
76
|
*/
|
|
67
77
|
attribute?: string | null;
|
|
68
78
|
/**
|
|
@@ -107,6 +117,9 @@ export interface EventOptions {
|
|
|
107
117
|
*/
|
|
108
118
|
composed?: boolean;
|
|
109
119
|
}
|
|
120
|
+
export interface AttachInternalsDecorator {
|
|
121
|
+
(): PropertyDecorator;
|
|
122
|
+
}
|
|
110
123
|
export interface ListenDecorator {
|
|
111
124
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
112
125
|
}
|
|
@@ -128,12 +141,12 @@ export interface ListenOptions {
|
|
|
128
141
|
* By default, Stencil uses several heuristics to determine if
|
|
129
142
|
* it must attach a `passive` event listener or not.
|
|
130
143
|
*
|
|
131
|
-
* Using the `passive` option can be used to change the default
|
|
144
|
+
* Using the `passive` option can be used to change the default behavior.
|
|
132
145
|
* Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
|
|
133
146
|
*/
|
|
134
147
|
passive?: boolean;
|
|
135
148
|
}
|
|
136
|
-
export
|
|
149
|
+
export type ListenTargetOptions = 'body' | 'document' | 'window';
|
|
137
150
|
export interface StateDecorator {
|
|
138
151
|
(): PropertyDecorator;
|
|
139
152
|
}
|
|
@@ -175,6 +188,12 @@ export declare const Element: ElementDecorator;
|
|
|
175
188
|
* https://stenciljs.com/docs/events
|
|
176
189
|
*/
|
|
177
190
|
export declare const Event: EventDecorator;
|
|
191
|
+
/**
|
|
192
|
+
* If the `formAssociated` option is set in options passed to the
|
|
193
|
+
* `@Component()` decorator then this decorator may be used to get access to the
|
|
194
|
+
* `ElementInternals` instance associated with the component.
|
|
195
|
+
*/
|
|
196
|
+
export declare const AttachInternals: AttachInternalsDecorator;
|
|
178
197
|
/**
|
|
179
198
|
* The `Listen()` decorator is for listening DOM events, including the ones
|
|
180
199
|
* dispatched from `@Events()`.
|
|
@@ -214,14 +233,16 @@ export declare const State: StateDecorator;
|
|
|
214
233
|
* https://stenciljs.com/docs/reactive-data#watch-decorator
|
|
215
234
|
*/
|
|
216
235
|
export declare const Watch: WatchDecorator;
|
|
217
|
-
export
|
|
218
|
-
export
|
|
236
|
+
export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
|
|
237
|
+
export type ErrorHandler = (err: any, element?: HTMLElement) => void;
|
|
219
238
|
/**
|
|
220
239
|
* `setMode()` is used for libraries which provide multiple "modes" for styles.
|
|
221
240
|
*/
|
|
222
241
|
export declare const setMode: (handler: ResolutionHandler) => void;
|
|
223
242
|
/**
|
|
224
|
-
* getMode
|
|
243
|
+
* `getMode()` is used for libraries which provide multiple "modes" for styles.
|
|
244
|
+
* @param ref a reference to the node to get styles for
|
|
245
|
+
* @returns the current mode or undefined, if not found
|
|
225
246
|
*/
|
|
226
247
|
export declare function getMode<T = string | undefined>(ref: any): T;
|
|
227
248
|
export declare function setPlatformHelpers(helpers: {
|
|
@@ -234,6 +255,9 @@ export declare function setPlatformHelpers(helpers: {
|
|
|
234
255
|
/**
|
|
235
256
|
* Get the base path to where the assets can be found. Use `setAssetPath(path)`
|
|
236
257
|
* if the path needs to be customized.
|
|
258
|
+
* @param path the path to use in calculating the asset path. this value will be
|
|
259
|
+
* used in conjunction with the base asset path
|
|
260
|
+
* @returns the base path
|
|
237
261
|
*/
|
|
238
262
|
export declare function getAssetPath(path: string): string;
|
|
239
263
|
/**
|
|
@@ -246,22 +270,38 @@ export declare function getAssetPath(path: string): string;
|
|
|
246
270
|
* `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
|
|
247
271
|
* dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
|
|
248
272
|
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
249
|
-
*
|
|
273
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
250
274
|
* will have to ensure the static assets are copied to its build directory.
|
|
275
|
+
* @param path the asset path to set
|
|
276
|
+
* @returns the set path
|
|
251
277
|
*/
|
|
252
278
|
export declare function setAssetPath(path: string): string;
|
|
253
279
|
/**
|
|
254
|
-
*
|
|
280
|
+
* Used to specify a nonce value that corresponds with an application's
|
|
281
|
+
* [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
|
|
282
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
283
|
+
* Alternatively, the nonce value can be set on a `meta` tag in the DOM head
|
|
284
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior.
|
|
285
|
+
* @param nonce The value to be used for the nonce attribute.
|
|
286
|
+
*/
|
|
287
|
+
export declare function setNonce(nonce: string): void;
|
|
288
|
+
/**
|
|
289
|
+
* Retrieve a Stencil element for a given reference
|
|
290
|
+
* @param ref the ref to get the Stencil element for
|
|
291
|
+
* @returns a reference to the element
|
|
255
292
|
*/
|
|
256
293
|
export declare function getElement(ref: any): HTMLStencilElement;
|
|
257
294
|
/**
|
|
258
295
|
* Schedules a new render of the given instance or element even if no state changed.
|
|
259
296
|
*
|
|
260
|
-
* Notice `forceUpdate()` is not
|
|
297
|
+
* Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
|
|
298
|
+
*
|
|
299
|
+
* @param ref the node/element to force the re-render of
|
|
261
300
|
*/
|
|
262
301
|
export declare function forceUpdate(ref: any): void;
|
|
263
302
|
/**
|
|
264
303
|
* getRenderingRef
|
|
304
|
+
* @returns the rendering ref
|
|
265
305
|
*/
|
|
266
306
|
export declare function getRenderingRef(): any;
|
|
267
307
|
export interface HTMLStencilElement extends HTMLElement {
|
|
@@ -272,6 +312,8 @@ export interface HTMLStencilElement extends HTMLElement {
|
|
|
272
312
|
* in the best moment to perform DOM mutation without causing layout thrashing.
|
|
273
313
|
*
|
|
274
314
|
* For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
|
|
315
|
+
*
|
|
316
|
+
* @param task the DOM-write to schedule
|
|
275
317
|
*/
|
|
276
318
|
export declare function writeTask(task: RafCallback): void;
|
|
277
319
|
/**
|
|
@@ -279,6 +321,8 @@ export declare function writeTask(task: RafCallback): void;
|
|
|
279
321
|
* in the best moment to perform DOM reads without causing layout thrashing.
|
|
280
322
|
*
|
|
281
323
|
* For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
|
|
324
|
+
*
|
|
325
|
+
* @param task the DOM-read to schedule
|
|
282
326
|
*/
|
|
283
327
|
export declare function readTask(task: RafCallback): void;
|
|
284
328
|
/**
|
|
@@ -407,7 +451,7 @@ export interface QueueApi {
|
|
|
407
451
|
/**
|
|
408
452
|
* Host
|
|
409
453
|
*/
|
|
410
|
-
interface HostAttributes {
|
|
454
|
+
export interface HostAttributes {
|
|
411
455
|
class?: string | {
|
|
412
456
|
[className: string]: boolean;
|
|
413
457
|
};
|
|
@@ -417,13 +461,57 @@ interface HostAttributes {
|
|
|
417
461
|
ref?: (el: HTMLElement | null) => void;
|
|
418
462
|
[prop: string]: any;
|
|
419
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* Utilities for working with functional Stencil components. An object
|
|
466
|
+
* conforming to this interface is passed by the Stencil runtime as the third
|
|
467
|
+
* argument to a functional component, allowing component authors to work with
|
|
468
|
+
* features like children.
|
|
469
|
+
*
|
|
470
|
+
* The children of a functional component will be passed as the second
|
|
471
|
+
* argument, so a functional component which uses these utils to transform its
|
|
472
|
+
* children might look like the following:
|
|
473
|
+
*
|
|
474
|
+
* ```ts
|
|
475
|
+
* export const AddClass: FunctionalComponent = (_, children, utils) => (
|
|
476
|
+
* utils.map(children, child => ({
|
|
477
|
+
* ...child,
|
|
478
|
+
* vattrs: {
|
|
479
|
+
* ...child.vattrs,
|
|
480
|
+
* class: `${child.vattrs.class} add-class`
|
|
481
|
+
* }
|
|
482
|
+
* }))
|
|
483
|
+
* );
|
|
484
|
+
* ```
|
|
485
|
+
*
|
|
486
|
+
* For more see the Stencil documentation, here:
|
|
487
|
+
* https://stenciljs.com/docs/functional-components
|
|
488
|
+
*/
|
|
420
489
|
export interface FunctionalUtilities {
|
|
490
|
+
/**
|
|
491
|
+
* Utility for reading the children of a functional component at runtime.
|
|
492
|
+
* Since the Stencil runtime uses a different interface for children it is
|
|
493
|
+
* not recommended to read the children directly, and is preferable to use
|
|
494
|
+
* this utility to, for instance, perform a side effect for each child.
|
|
495
|
+
*/
|
|
421
496
|
forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
|
|
497
|
+
/**
|
|
498
|
+
* Utility for transforming the children of a functional component. Given an
|
|
499
|
+
* array of children and a callback this will return a list of the results of
|
|
500
|
+
* passing each child to the supplied callback.
|
|
501
|
+
*/
|
|
422
502
|
map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
|
|
423
503
|
}
|
|
424
504
|
export interface FunctionalComponent<T = {}> {
|
|
425
505
|
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
|
|
426
506
|
}
|
|
507
|
+
/**
|
|
508
|
+
* A Child VDOM node
|
|
509
|
+
*
|
|
510
|
+
* This has most of the same properties as {@link VNode} but friendlier names
|
|
511
|
+
* (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
|
|
512
|
+
* order to provide a friendlier public interface for users of the
|
|
513
|
+
* {@link FunctionalUtilities}).
|
|
514
|
+
*/
|
|
427
515
|
export interface ChildNode {
|
|
428
516
|
vtag?: string | number | Function;
|
|
429
517
|
vkey?: string | number;
|
|
@@ -470,6 +558,9 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
|
|
|
470
558
|
export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
471
559
|
export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
472
560
|
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
561
|
+
/**
|
|
562
|
+
* A virtual DOM node
|
|
563
|
+
*/
|
|
473
564
|
export interface VNode {
|
|
474
565
|
$flags$: number;
|
|
475
566
|
$tag$: string | number | Function;
|
|
@@ -677,6 +768,7 @@ export declare namespace JSXBase {
|
|
|
677
768
|
hrefLang?: string;
|
|
678
769
|
hreflang?: string;
|
|
679
770
|
media?: string;
|
|
771
|
+
ping?: string;
|
|
680
772
|
rel?: string;
|
|
681
773
|
target?: string;
|
|
682
774
|
referrerPolicy?: ReferrerPolicy;
|
|
@@ -703,7 +795,6 @@ export declare namespace JSXBase {
|
|
|
703
795
|
cite?: string;
|
|
704
796
|
}
|
|
705
797
|
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
706
|
-
autoFocus?: boolean;
|
|
707
798
|
disabled?: boolean;
|
|
708
799
|
form?: string;
|
|
709
800
|
formAction?: string;
|
|
@@ -719,6 +810,9 @@ export declare namespace JSXBase {
|
|
|
719
810
|
name?: string;
|
|
720
811
|
type?: string;
|
|
721
812
|
value?: string | string[] | number;
|
|
813
|
+
popoverTargetAction?: string;
|
|
814
|
+
popoverTargetElement?: Element | null;
|
|
815
|
+
popoverTarget?: string;
|
|
722
816
|
}
|
|
723
817
|
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
724
818
|
height?: number | string;
|
|
@@ -740,6 +834,7 @@ export declare namespace JSXBase {
|
|
|
740
834
|
datetime?: string;
|
|
741
835
|
}
|
|
742
836
|
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
837
|
+
onCancel?: (event: Event) => void;
|
|
743
838
|
onClose?: (event: Event) => void;
|
|
744
839
|
open?: boolean;
|
|
745
840
|
returnValue?: string;
|
|
@@ -799,6 +894,8 @@ export declare namespace JSXBase {
|
|
|
799
894
|
}
|
|
800
895
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
801
896
|
alt?: string;
|
|
897
|
+
crossOrigin?: string;
|
|
898
|
+
crossorigin?: string;
|
|
802
899
|
decoding?: 'async' | 'auto' | 'sync';
|
|
803
900
|
importance?: 'low' | 'auto' | 'high';
|
|
804
901
|
height?: number | string;
|
|
@@ -820,12 +917,10 @@ export declare namespace JSXBase {
|
|
|
820
917
|
accept?: string;
|
|
821
918
|
allowdirs?: boolean;
|
|
822
919
|
alt?: string;
|
|
823
|
-
autoCapitalize?:
|
|
824
|
-
autocapitalize?:
|
|
920
|
+
autoCapitalize?: string;
|
|
921
|
+
autocapitalize?: string;
|
|
825
922
|
autoComplete?: string;
|
|
826
923
|
autocomplete?: string;
|
|
827
|
-
autoFocus?: boolean;
|
|
828
|
-
autofocus?: boolean | string;
|
|
829
924
|
capture?: string;
|
|
830
925
|
checked?: boolean;
|
|
831
926
|
crossOrigin?: string;
|
|
@@ -857,6 +952,8 @@ export declare namespace JSXBase {
|
|
|
857
952
|
minlength?: number | string;
|
|
858
953
|
multiple?: boolean;
|
|
859
954
|
name?: string;
|
|
955
|
+
onSelect?: (event: Event) => void;
|
|
956
|
+
onselect?: (event: Event) => void;
|
|
860
957
|
pattern?: string;
|
|
861
958
|
placeholder?: string;
|
|
862
959
|
readOnly?: boolean;
|
|
@@ -875,10 +972,11 @@ export declare namespace JSXBase {
|
|
|
875
972
|
webkitdirectory?: boolean;
|
|
876
973
|
webkitEntries?: any;
|
|
877
974
|
width?: number | string;
|
|
975
|
+
popoverTargetAction?: string;
|
|
976
|
+
popoverTargetElement?: Element | null;
|
|
977
|
+
popoverTarget?: string;
|
|
878
978
|
}
|
|
879
979
|
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
880
|
-
autoFocus?: boolean;
|
|
881
|
-
autofocus?: boolean | string;
|
|
882
980
|
challenge?: string;
|
|
883
981
|
disabled?: boolean;
|
|
884
982
|
form?: string;
|
|
@@ -891,7 +989,6 @@ export declare namespace JSXBase {
|
|
|
891
989
|
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
892
990
|
form?: string;
|
|
893
991
|
htmlFor?: string;
|
|
894
|
-
htmlfor?: string;
|
|
895
992
|
}
|
|
896
993
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
897
994
|
value?: string | string[] | number;
|
|
@@ -918,6 +1015,8 @@ export declare namespace JSXBase {
|
|
|
918
1015
|
autoPlay?: boolean;
|
|
919
1016
|
autoplay?: boolean | string;
|
|
920
1017
|
controls?: boolean;
|
|
1018
|
+
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1019
|
+
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
921
1020
|
crossOrigin?: string;
|
|
922
1021
|
crossorigin?: string;
|
|
923
1022
|
loop?: boolean;
|
|
@@ -1002,7 +1101,6 @@ export declare namespace JSXBase {
|
|
|
1002
1101
|
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1003
1102
|
form?: string;
|
|
1004
1103
|
htmlFor?: string;
|
|
1005
|
-
htmlfor?: string;
|
|
1006
1104
|
name?: string;
|
|
1007
1105
|
}
|
|
1008
1106
|
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
@@ -1027,7 +1125,6 @@ export declare namespace JSXBase {
|
|
|
1027
1125
|
type?: string;
|
|
1028
1126
|
}
|
|
1029
1127
|
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1030
|
-
autoFocus?: boolean;
|
|
1031
1128
|
disabled?: boolean;
|
|
1032
1129
|
form?: string;
|
|
1033
1130
|
multiple?: boolean;
|
|
@@ -1038,11 +1135,13 @@ export declare namespace JSXBase {
|
|
|
1038
1135
|
autocomplete?: string;
|
|
1039
1136
|
}
|
|
1040
1137
|
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1138
|
+
height?: number;
|
|
1041
1139
|
media?: string;
|
|
1042
1140
|
sizes?: string;
|
|
1043
1141
|
src?: string;
|
|
1044
1142
|
srcSet?: string;
|
|
1045
1143
|
type?: string;
|
|
1144
|
+
width?: number;
|
|
1046
1145
|
}
|
|
1047
1146
|
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1048
1147
|
media?: string;
|
|
@@ -1058,8 +1157,8 @@ export declare namespace JSXBase {
|
|
|
1058
1157
|
summary?: string;
|
|
1059
1158
|
}
|
|
1060
1159
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1061
|
-
|
|
1062
|
-
|
|
1160
|
+
autoComplete?: string;
|
|
1161
|
+
autocomplete?: string;
|
|
1063
1162
|
cols?: number;
|
|
1064
1163
|
disabled?: boolean;
|
|
1065
1164
|
form?: string;
|
|
@@ -1068,6 +1167,8 @@ export declare namespace JSXBase {
|
|
|
1068
1167
|
minLength?: number;
|
|
1069
1168
|
minlength?: number | string;
|
|
1070
1169
|
name?: string;
|
|
1170
|
+
onSelect?: (event: Event) => void;
|
|
1171
|
+
onselect?: (event: Event) => void;
|
|
1071
1172
|
placeholder?: string;
|
|
1072
1173
|
readOnly?: boolean;
|
|
1073
1174
|
readonly?: boolean | string;
|
|
@@ -1110,6 +1211,8 @@ export declare namespace JSXBase {
|
|
|
1110
1211
|
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1111
1212
|
innerHTML?: string;
|
|
1112
1213
|
accessKey?: string;
|
|
1214
|
+
autoFocus?: boolean;
|
|
1215
|
+
autofocus?: boolean | string;
|
|
1113
1216
|
class?: string | {
|
|
1114
1217
|
[className: string]: boolean;
|
|
1115
1218
|
};
|
|
@@ -1121,6 +1224,7 @@ export declare namespace JSXBase {
|
|
|
1121
1224
|
draggable?: boolean;
|
|
1122
1225
|
hidden?: boolean;
|
|
1123
1226
|
id?: string;
|
|
1227
|
+
inert?: boolean;
|
|
1124
1228
|
lang?: string;
|
|
1125
1229
|
spellcheck?: 'true' | 'false' | any;
|
|
1126
1230
|
style?: {
|
|
@@ -1129,6 +1233,7 @@ export declare namespace JSXBase {
|
|
|
1129
1233
|
tabIndex?: number;
|
|
1130
1234
|
tabindex?: number | string;
|
|
1131
1235
|
title?: string;
|
|
1236
|
+
popover?: string | null;
|
|
1132
1237
|
inputMode?: string;
|
|
1133
1238
|
inputmode?: string;
|
|
1134
1239
|
enterKeyHint?: string;
|
|
@@ -1145,8 +1250,8 @@ export declare namespace JSXBase {
|
|
|
1145
1250
|
resource?: string;
|
|
1146
1251
|
typeof?: string;
|
|
1147
1252
|
vocab?: string;
|
|
1148
|
-
autoCapitalize?:
|
|
1149
|
-
autocapitalize?:
|
|
1253
|
+
autoCapitalize?: string;
|
|
1254
|
+
autocapitalize?: string;
|
|
1150
1255
|
autoCorrect?: string;
|
|
1151
1256
|
autocorrect?: string;
|
|
1152
1257
|
autoSave?: string;
|
|
@@ -1214,7 +1319,7 @@ export declare namespace JSXBase {
|
|
|
1214
1319
|
clipPathUnits?: number | string;
|
|
1215
1320
|
'clip-rule'?: number | string;
|
|
1216
1321
|
'color-interpolation'?: number | string;
|
|
1217
|
-
'color-interpolation-filters'?: 'auto' | '
|
|
1322
|
+
'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB';
|
|
1218
1323
|
'color-profile'?: number | string;
|
|
1219
1324
|
'color-rendering'?: number | string;
|
|
1220
1325
|
contentScriptType?: number | string;
|
|
@@ -1437,12 +1542,12 @@ export declare namespace JSXBase {
|
|
|
1437
1542
|
onCutCapture?: (event: ClipboardEvent) => void;
|
|
1438
1543
|
onPaste?: (event: ClipboardEvent) => void;
|
|
1439
1544
|
onPasteCapture?: (event: ClipboardEvent) => void;
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1545
|
+
onCompositionend?: (event: CompositionEvent) => void;
|
|
1546
|
+
onCompositionendCapture?: (event: CompositionEvent) => void;
|
|
1547
|
+
onCompositionstart?: (event: CompositionEvent) => void;
|
|
1548
|
+
onCompositionstartCapture?: (event: CompositionEvent) => void;
|
|
1549
|
+
onCompositionupdate?: (event: CompositionEvent) => void;
|
|
1550
|
+
onCompositionupdateCapture?: (event: CompositionEvent) => void;
|
|
1446
1551
|
onFocus?: (event: FocusEvent) => void;
|
|
1447
1552
|
onFocusCapture?: (event: FocusEvent) => void;
|
|
1448
1553
|
onFocusin?: (event: FocusEvent) => void;
|
|
@@ -1453,14 +1558,18 @@ export declare namespace JSXBase {
|
|
|
1453
1558
|
onBlurCapture?: (event: FocusEvent) => void;
|
|
1454
1559
|
onChange?: (event: Event) => void;
|
|
1455
1560
|
onChangeCapture?: (event: Event) => void;
|
|
1456
|
-
onInput?: (event:
|
|
1457
|
-
onInputCapture?: (event:
|
|
1561
|
+
onInput?: (event: InputEvent) => void;
|
|
1562
|
+
onInputCapture?: (event: InputEvent) => void;
|
|
1458
1563
|
onReset?: (event: Event) => void;
|
|
1459
1564
|
onResetCapture?: (event: Event) => void;
|
|
1460
1565
|
onSubmit?: (event: Event) => void;
|
|
1461
1566
|
onSubmitCapture?: (event: Event) => void;
|
|
1462
1567
|
onInvalid?: (event: Event) => void;
|
|
1463
1568
|
onInvalidCapture?: (event: Event) => void;
|
|
1569
|
+
onBeforeToggle?: (event: Event) => void;
|
|
1570
|
+
onBeforeToggleCapture?: (event: Event) => void;
|
|
1571
|
+
onToggle?: (event: Event) => void;
|
|
1572
|
+
onToggleCapture?: (event: Event) => void;
|
|
1464
1573
|
onLoad?: (event: Event) => void;
|
|
1465
1574
|
onLoadCapture?: (event: Event) => void;
|
|
1466
1575
|
onError?: (event: Event) => void;
|
|
@@ -1544,8 +1653,14 @@ export declare namespace JSXBase {
|
|
|
1544
1653
|
onAnimationEndCapture?: (event: AnimationEvent) => void;
|
|
1545
1654
|
onAnimationIteration?: (event: AnimationEvent) => void;
|
|
1546
1655
|
onAnimationIterationCapture?: (event: AnimationEvent) => void;
|
|
1656
|
+
onTransitionCancel?: (event: TransitionEvent) => void;
|
|
1657
|
+
onTransitionCancelCapture?: (event: TransitionEvent) => void;
|
|
1547
1658
|
onTransitionEnd?: (event: TransitionEvent) => void;
|
|
1548
1659
|
onTransitionEndCapture?: (event: TransitionEvent) => void;
|
|
1660
|
+
onTransitionRun?: (event: TransitionEvent) => void;
|
|
1661
|
+
onTransitionRunCapture?: (event: TransitionEvent) => void;
|
|
1662
|
+
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1663
|
+
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1549
1664
|
}
|
|
1550
1665
|
}
|
|
1551
1666
|
export interface JSXAttributes<T = Element> {
|
package/loader/cdn.js
CHANGED
package/loader/index.cjs.js
CHANGED