diff --git a/core-packages/assets/vMKvrvF-7a3D.js b/core-packages/assets/8WbAFHjrD_am.js similarity index 94% rename from core-packages/assets/vMKvrvF-7a3D.js rename to core-packages/assets/8WbAFHjrD_am.js index 71721d2c2..d2ea9a111 100644 --- a/core-packages/assets/vMKvrvF-7a3D.js +++ b/core-packages/assets/8WbAFHjrD_am.js @@ -1 +1 @@ -import{a as l,r as p,j as r,V as f,H as m,b as u}from"./BbD1ObBocF77.js";import{E as d}from"./vOBnYnib6xFk.js";import{u as h}from"./BG7f7T4POdrF.js";import{u as v}from"./UN9yAB02F1-Z.js";import{F as g}from"./DCmbPgooq4UU.js";import{F as E}from"./Di3rdG8Xs0Gt.js";import{C as x}from"./C9CafZahHNwS.js";import{T as b}from"./Ddf4mYqhSsPi.js";import{I as j}from"./DUWS-ykArEfP.js";import{H as N}from"./C0abT8QJ97LC.js";import{B as s}from"./C9L897yljxNO.js";const a={DEBUG:0,INFO:1,ERROR:2};class I extends d{level;constructor(e){super(),this.level=w(e.properties)}notify(e,o="INFO"){a[this.level]>a[o]||this.emit("show-notification",{level:o,message:e})}}function w(t){const e=t.notifierLevel;switch(e){case"DEBUG":case"INFO":case"ERROR":return e}throw new Error(`Invalid notifier level: '${e}'.`)}const F={"properties-app":{name:"properties-app",services:{NotifierImpl:{name:"NotifierImpl",clazz:I,provides:[{name:"properties-app.Notifier",qualifier:void 0}],references:{}}},ui:{references:[{name:"properties-app.Notifier",qualifier:void 0,all:!1}]},properties:{notifierLevel:{value:"INFO",required:!1}}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},R="",C=[];function O(t){throw new Error(`Unsupported locale: '${t}'`)}const S=l(R),k=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:O,locales:C,packages:F,styles:S},Symbol.toStringTag,{value:"Module"})),y="properties-app",c=h.bind(void 0,y),T={DEBUG:void 0,INFO:"info",ERROR:"error"};function L(){const t=c("properties-app.Notifier"),e=v();return p.useEffect(()=>{const o=t.on("show-notification",i=>{e({position:"bottom-right",title:i.message,isClosable:!0,status:T[i.level]})});return()=>o.destroy()},[t,e]),null}function U(){return r.jsxs(r.Fragment,{children:[r.jsx(L,{}),r.jsx(A,{})]})}function A(){const t=c("properties-app.Notifier"),[e,o]=p.useState(""),i=n=>{e&&t.notify(e,n)};return r.jsx(x,{children:r.jsxs(f,{my:"20",children:[r.jsx(m,{size:"m",children:"Notifier Sample"}),r.jsxs(b,{children:["This Form attempts to emit a notification with a certain level when clicking one of the button below. The notifier will ignore notifications with a level lower than ",r.jsx("strong",{children:t.level}),". The notifier's level can be configured using an attribute on the web component element."]}),r.jsxs(g,{pt:"3",children:[r.jsx(E,{children:"Enter a message and click one of the buttons to emit a notification"}),r.jsx(j,{placeholder:"Notification text...",value:e,onChange:n=>o(n.target.value)})]}),r.jsxs(N,{children:[r.jsx(s,{onClick:i.bind(void 0,"DEBUG"),children:"Debug"}),r.jsx(s,{onClick:i.bind(void 0,"INFO"),children:"Info"}),r.jsx(s,{onClick:i.bind(void 0,"ERROR"),children:"Error"})]})]})})}const B=u({component:U,appMetadata:k,async resolveConfig(t){const e=t.getAttribute("level");return e?{properties:{"properties-app":{notifierLevel:e}}}:void 0}});customElements.define("properties-app",B); +import{a as l,r as p,j as r,V as f,H as m,b as u}from"./BbD1ObBocF77.js";import{E as d}from"./vOBnYnib6xFk.js";import{u as h}from"./BG7f7T4POdrF.js";import{u as v}from"./UN9yAB02F1-Z.js";import{F as g}from"./DCmbPgooq4UU.js";import{F as E}from"./Di3rdG8Xs0Gt.js";import{C as x}from"./C9CafZahHNwS.js";import{T as b}from"./Ddf4mYqhSsPi.js";import{I as j}from"./DUWS-ykArEfP.js";import{H as N}from"./C0abT8QJ97LC.js";import{B as s}from"./C9L897yljxNO.js";const a={DEBUG:0,INFO:1,ERROR:2};class I extends d{level;constructor(e){super(),this.level=w(e.properties)}notify(e,o="INFO"){a[this.level]>a[o]||this.emit("show-notification",{level:o,message:e})}}function w(t){const e=t.notifierLevel;switch(e){case"DEBUG":case"INFO":case"ERROR":return e}throw new Error(`Invalid notifier level: '${e}'.`)}const F={"properties-app":{name:"properties-app",services:{NotifierImpl:{name:"NotifierImpl",clazz:I,provides:[{name:"properties-app.Notifier",qualifier:void 0}],references:{}}},ui:{references:[{name:"properties-app.Notifier",qualifier:void 0,all:!1}]},properties:{notifierLevel:{value:"INFO",required:!1}}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},R="",C=[];function O(t){throw new Error(`Unsupported locale: '${t}'`)}const S=l(R),k=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:O,locales:C,packages:F,styles:S},Symbol.toStringTag,{value:"Module"})),y="properties-app",c=h.bind(void 0,y),T={DEBUG:void 0,INFO:"info",ERROR:"error"};function L(){const t=c("properties-app.Notifier"),e=v();return p.useEffect(()=>{const o=t.on("show-notification",i=>{e({position:"bottom-right",title:i.message,isClosable:!0,status:T[i.level]})});return()=>o.destroy()},[t,e]),null}function U(){return r.jsxs(r.Fragment,{children:[r.jsx(L,{}),r.jsx(A,{})]})}function A(){const t=c("properties-app.Notifier"),[e,o]=p.useState(""),i=n=>{e&&t.notify(e,n)};return r.jsx(x,{children:r.jsxs(f,{my:"20",children:[r.jsx(m,{size:"m",children:"Notifier Sample"}),r.jsxs(b,{children:["This Form attempts to emit a notification with a certain level when clicking one of the button below. The notifier will ignore notifications with a level lower than ",r.jsx("strong",{children:t.level}),". The notifier's level can be configured using an attribute on the web component element."]}),r.jsxs(g,{pt:"3",children:[r.jsx(E,{children:"Enter a message and click one of the buttons to emit a notification"}),r.jsx(j,{placeholder:"Notification text...",value:e,onChange:n=>o(n.target.value)})]}),r.jsxs(N,{children:[r.jsx(s,{onClick:i.bind(void 0,"DEBUG"),children:"Debug"}),r.jsx(s,{onClick:i.bind(void 0,"INFO"),children:"Info"}),r.jsx(s,{onClick:i.bind(void 0,"ERROR"),children:"Error"})]})]})})}const B=u({component:U,appMetadata:k,async resolveConfig(t){const e=t.getAttribute("level");return e?{properties:{"properties-app":{notifierLevel:e}}}:void 0}});customElements.define("properties-app",B); diff --git a/core-packages/assets/tbSXJeVlMsER.js b/core-packages/assets/BKprByBqoAGx.js similarity index 94% rename from core-packages/assets/tbSXJeVlMsER.js rename to core-packages/assets/BKprByBqoAGx.js index 06ce37ca1..d68d78c7e 100644 --- a/core-packages/assets/tbSXJeVlMsER.js +++ b/core-packages/assets/BKprByBqoAGx.js @@ -1,4 +1,4 @@ -var _e=h=>{throw TypeError(h)};var xe=(h,e,x)=>e.has(h)||_e("Cannot "+x);var E=(h,e,x)=>(xe(h,e,"read from private field"),x?x.call(h):e.get(h)),q=(h,e,x)=>e.has(h)?_e("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,x),G=(h,e,x,b)=>(xe(h,e,"write to private field"),b?b.call(h,x):e.set(h,x),x),ie=(h,e,x)=>(xe(h,e,"access private method"),x);import{h as Pe,a5 as Me,G as Ne,j as A,n as He,l as Ke,ac as Be,a1 as ze,a2 as De,ad as Ve,c as qe,a as Je,H as Fe,V as Ae,O as Ie,b as Ye}from"./BbD1ObBocF77.js";import{H as Ge}from"./CG8OAwIhVllu.js";import{N as $e,a as We}from"./D3NUZzfgzIQn.js";import{r as Xe,A as Qe,u as Ze,F as er}from"./MXDdkNIiVgls.js";import{_ as Ue}from"./CmsKOCeNyeyo.js";import{u as rr}from"./BG7f7T4POdrF.js";import{B as Re}from"./C9L897yljxNO.js";import{C as tr}from"./C9CafZahHNwS.js";import{F as nr}from"./tahGmHek4or5.js";import{T as ae}from"./Ddf4mYqhSsPi.js";import{U as or,L as we}from"./CBwUUj7GVW-6.js";import"./UN9yAB02F1-Z.js";const ee=Pe(function(e,x){const b=Me("Code",e),{className:L,...y}=Ne(e);return A.jsx(He.code,{ref:x,className:Ke("chakra-code",e.className),...y,__css:{display:"inline-block",...b}})});ee.displayName="Code";class ir{authService;constructor(e){this.authService=e.references.authService}beforeRequest({target:e,options:x}){const b=this.authService.getAuthState(),j=((b.kind=="authenticated"?b.sessionInfo:void 0)?.attributes?.keycloak).token;e.protocol==="https:"&&e.hostname==="ogc-api.nrw.de"&&j&&x.headers.set("Authorization",j)}}var Le={exports:{}};const ar={},sr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),Ee=Be(sr);/** +var _e=h=>{throw TypeError(h)};var xe=(h,e,x)=>e.has(h)||_e("Cannot "+x);var E=(h,e,x)=>(xe(h,e,"read from private field"),x?x.call(h):e.get(h)),q=(h,e,x)=>e.has(h)?_e("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,x),G=(h,e,x,b)=>(xe(h,e,"write to private field"),b?b.call(h,x):e.set(h,x),x),ie=(h,e,x)=>(xe(h,e,"access private method"),x);import{h as Pe,a5 as Me,G as Ne,j as A,n as He,l as Ke,ac as Be,a1 as ze,a2 as De,ad as Ve,c as qe,a as Je,H as Fe,V as Ae,O as Ie,b as Ye}from"./BbD1ObBocF77.js";import{r as Ge,A as $e,u as We,F as Xe}from"./MXDdkNIiVgls.js";import{N as Qe,a as Ze}from"./D3NUZzfgzIQn.js";import{H as er}from"./CG8OAwIhVllu.js";import{_ as Ue}from"./CmsKOCeNyeyo.js";import{u as rr}from"./BG7f7T4POdrF.js";import{B as Re}from"./C9L897yljxNO.js";import{C as tr}from"./C9CafZahHNwS.js";import{F as nr}from"./tahGmHek4or5.js";import{T as ae}from"./Ddf4mYqhSsPi.js";import{U as or,L as we}from"./CBwUUj7GVW-6.js";import"./UN9yAB02F1-Z.js";const ee=Pe(function(e,x){const b=Me("Code",e),{className:L,...y}=Ne(e);return A.jsx(He.code,{ref:x,className:Ke("chakra-code",e.className),...y,__css:{display:"inline-block",...b}})});ee.displayName="Code";class ir{authService;constructor(e){this.authService=e.references.authService}beforeRequest({target:e,options:x}){const b=this.authService.getAuthState(),j=((b.kind=="authenticated"?b.sessionInfo:void 0)?.attributes?.keycloak).token;e.protocol==="https:"&&e.hostname==="ogc-api.nrw.de"&&j&&x.headers.set("Authorization",j)}}var Le={exports:{}};const ar={},sr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),Ee=Be(sr);/** * [js-sha256]{@link https://github.com/emn178/js-sha256} * * @version 0.11.0 @@ -10,4 +10,4 @@ var _e=h=>{throw TypeError(h)};var xe=(h,e,x)=>e.has(h)||_e("Cannot "+x);var E=( - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication). - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab). -For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),y.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(t),window.removeEventListener("message",i),r.setSuccess()))};window.addEventListener("message",i,!1)}else r.setSuccess();return u(r.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function O(r){if(!r||r=="default")return{login:function(a){return window.location.assign(e.createLoginUrl(a)),v().promise},logout:async function(a){if((a?.logoutMethod??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(a));return}const k=e.createLogoutUrl(a),g=await fetch(k,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:x.redirectUri(a,!1)})});if(g.redirected){window.location.href=g.url;return}if(g.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(a){return window.location.assign(e.createRegisterUrl(a)),v().promise},accountManagement:function(){var a=e.createAccountUrl();if(typeof a<"u")window.location.href=a;else throw"Not supported by the OIDC server";return v().promise},redirectUri:function(a,c){return a&&a.redirectUri?a.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(r=="cordova"){y.enable=!1;var t=function(a,c,k){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(a,c,k):window.open(a,c,k)},i=function(a){return a&&a.cordovaOptions?Object.keys(a.cordovaOptions).reduce(function(c,k){return c[k]=a.cordovaOptions[k],c},{}):{}},l=function(a){return Object.keys(a).reduce(function(c,k){return c.push(k+"="+a[k]),c},[]).join(",")},o=function(a){var c=i(a);return c.location="no",a&&a.prompt=="none"&&(c.hidden="yes"),l(c)},p=function(){return e.redirectUri||"http://localhost"};return{login:function(a){var c=v(),k=o(a),g=e.createLoginUrl(a),S=t(g,"_blank",k),U=!1,Y=!1,Q=function(){Y=!0,S.close()};return S.addEventListener("loadstart",function(z){if(z.url.indexOf(p())==0){var ue=f(z.url);J(ue,c),Q(),U=!0}}),S.addEventListener("loaderror",function(z){if(!U)if(z.url.indexOf(p())==0){var ue=f(z.url);J(ue,c),Q(),U=!0}else c.setError(),Q()}),S.addEventListener("exit",function(z){Y||c.setError({reason:"closed_by_user"})}),c.promise},logout:function(a){var c=v(),k=e.createLogoutUrl(a),g=t(k,"_blank","location=no,hidden=yes,clearcache=yes"),S;return g.addEventListener("loadstart",function(U){U.url.indexOf(p())==0&&g.close()}),g.addEventListener("loaderror",function(U){U.url.indexOf(p())==0||(S=!0),g.close()}),g.addEventListener("exit",function(U){S?c.setError():(e.clearToken(),c.setSuccess())}),c.promise},register:function(a){var c=v(),k=e.createRegisterUrl(),g=o(a),S=t(k,"_blank",g);return S.addEventListener("loadstart",function(U){if(U.url.indexOf(p())==0){S.close();var Y=f(U.url);J(Y,c)}}),c.promise},accountManagement:function(){var a=e.createAccountUrl();if(typeof a<"u"){var c=t(a,"_blank","location=no");c.addEventListener("loadstart",function(k){k.url.indexOf(p())==0&&c.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(a){return p()}}}if(r=="cordova-native")return y.enable=!1,{login:function(a){var c=v(),k=e.createLoginUrl(a);return universalLinks.subscribe("keycloak",function(g){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var S=f(g.url);J(S,c)}),window.cordova.plugins.browsertab.openUrl(k),c.promise},logout:function(a){var c=v(),k=e.createLogoutUrl(a);return universalLinks.subscribe("keycloak",function(g){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),c.setSuccess()}),window.cordova.plugins.browsertab.openUrl(k),c.promise},register:function(a){var c=v(),k=e.createRegisterUrl(a);return universalLinks.subscribe("keycloak",function(g){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var S=f(g.url);J(S,c)}),window.cordova.plugins.browsertab.openUrl(k),c.promise},accountManagement:function(){var a=e.createAccountUrl();if(typeof a<"u")window.cordova.plugins.browsertab.openUrl(a);else throw"Not supported by the OIDC server"},redirectUri:function(a){return a&&a.redirectUri?a.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+r}var P=function(){if(!(this instanceof P))return new P;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var r=this;function t(){for(var i=new Date().getTime(),l=0;l{ie(this,X,de).call(this,{kind:"error",error:x}),E(this,he).notify({level:"error",title:E(this,se).formatMessage({id:"loginFailed.title"}),message:E(this,se).formatMessage({id:"loginFailed.message"})}),W.error("Failed to check if user is authenticated",x)})}destroy(){clearInterval(E(this,te)),G(this,pe,Ve(E(this,pe))),G(this,te,void 0)}getAuthState(){return E(this,me).value}getLoginBehavior(){return{kind:"effect",login:()=>{W.debug("Login with options",E(this,le)),E(this,M).login(E(this,le))}}}logout(){W.debug("Logout with options",E(this,ce)),E(this,M).logout(E(this,ce))}__refresh(e,x){clearInterval(E(this,te)),G(this,te,setInterval(()=>{E(this,M).updateToken(x).catch(b=>{W.error("Failed to refresh token",b),ie(this,X,de).call(this,{kind:"not-authenticated"}),this.destroy()})},e))}}he=new WeakMap,se=new WeakMap,re=new WeakMap,M=new WeakMap,ce=new WeakMap,le=new WeakMap,te=new WeakMap,pe=new WeakMap,me=new WeakMap,X=new WeakSet,Oe=async function(){const e=E(this,re),x=E(this,re).keycloakInitOptions,b=e.refreshOptions;let L;try{L=await E(this,M).init(x)}catch(y){const j=typeof y=="string"?new Error(y):y;throw new Error("Failed to initialize keycloak session",{cause:j})}L?(ie(this,X,de).call(this,{kind:"authenticated",sessionInfo:{userId:E(this,M).subject?E(this,M).subject:"undefined",userName:E(this,M).idTokenParsed?.preferred_username,attributes:{keycloak:E(this,M),familyName:E(this,M).idTokenParsed?.family_name,givenName:E(this,M).idTokenParsed?.given_name,userName:E(this,M).idTokenParsed?.preferred_username}}}),W.debug(`User ${E(this,M).subject} is authenticated`),b.autoRefresh&&(W.debug("Starting auto-refresh",b),this.__refresh(b.interval,b.timeLeft))):(ie(this,X,de).call(this,{kind:"not-authenticated"}),W.debug("User is not authenticated"))},de=function(e){E(this,me).value=e};const Te={autoRefresh:!0,interval:6e3,timeLeft:70},Ce={onLoad:"check-sso",pkceMethod:"S256"};function pr(h){const{keycloakOptions:e}=h,{refreshOptions:x,keycloakInitOptions:b,keycloakConfig:L}=e;return{refreshOptions:{...mr(x)},keycloakInitOptions:{...vr(b)},keycloakConfig:{...gr(L)}}}function mr(h){return!h||Se(h)?(W.warn(`The autorefresh options of the Keycloak configuration should be set to ensure automatic refreshes at specified intervals. Defaulting to '${Te}'.`),Object.assign({},{...Te})):h}function vr(h){return!h||Se(h)?(W.warn(`The Keycloak init options of the keycloak configuration should be set. Defaulting to '${Ce}'.`),Object.assign({},{...Ce})):h}function gr(h){if(!h||Se(h))throw new Error("KeycloakConfig not found: The Keycloak configuration options are required by the plugin to perform login and logout operations");return h}const Se=h=>h&&Object.keys(h).length===0&&h.constructor===Object,kr={"keycloak-sample":{name:"keycloak-sample",services:{SampleTokenInterceptor:{name:"SampleTokenInterceptor",clazz:ir,provides:[{name:"http.Interceptor",qualifier:void 0}],references:{authService:{name:"authentication.AuthService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1},{name:"http.HttpService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Ge,provides:[{name:"http.HttpService",qualifier:void 0}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:$e,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/authentication":{name:"@open-pioneer/authentication",services:{AuthServiceImpl:{name:"AuthServiceImpl",clazz:Qe,provides:[{name:"authentication.AuthService",qualifier:void 0}],references:{plugin:{name:"authentication.AuthPlugin",qualifier:void 0,all:!1}}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/authentication-keycloak":{name:"@open-pioneer/authentication-keycloak",services:{KeycloakAuthPlugin:{name:"KeycloakAuthPlugin",clazz:hr,provides:[{name:"authentication.AuthPlugin",qualifier:void 0},{name:"authentication-keycloak.KeycloakAuthPlugin",qualifier:void 0}],references:{notifier:{name:"notifier.NotificationService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{keycloakOptions:{value:{refreshOptions:null,keycloakInitOptions:null,keycloakConfig:null,keycloakLogoutOptions:null,keycloakLoginOptions:null},required:!1}}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}}},xr="",wr=["de","en"];function br(h){switch(h){case"de":return Ue(()=>import("./DHsSmHrBD0L-.js"),[],import.meta.url).then(e=>e.default);case"en":return Ue(()=>import("./DOFgVa_i9Fer.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${h}'`)}const yr=Je(xr),Sr=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:br,locales:wr,packages:kr,styles:yr},Symbol.toStringTag,{value:"Module"})),_r="keycloak-sample",ye=rr.bind(void 0,_r);function Fr(){const h=ye("authentication.AuthService"),e=()=>{h.logout()};return A.jsx(Re,{colorScheme:"red",onClick:e,children:"Log out"})}function Ar(){const h=ye("authentication.AuthService"),e=ye("http.HttpService"),x=Ze(h),L=(x.kind=="authenticated"?x.sessionInfo:void 0)?.userName,y=()=>{e.fetch("https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json").catch(j=>console.error("Request failed",j))};return A.jsxs(A.Fragment,{children:[A.jsx(We,{}),A.jsxs(tr,{maxW:"800px",children:[A.jsxs(nr,{height:"100%",direction:"column",overflow:"hidden",children:[A.jsx(Fe,{as:"h1",size:"2xl",children:"Keycloak Sample"}),A.jsxs(Ae,{mt:4,spacing:2,align:"stretch",children:[A.jsx(Fe,{as:"h2",size:"xl",children:"Additional Setup"}),A.jsx(ae,{children:"This application requires additional setup. Most importantly, a Keycloak installation must be present."}),A.jsxs(ae,{children:["The following environment properties should be set via vite (e.g. in"," ",A.jsx(ee,{children:".env.local"}),"):"]}),A.jsxs(or,{children:[A.jsxs(we,{children:[A.jsx(ee,{children:"VITE_KEYCLOAK_CONFIG_URL"})," (the URL to the Keycloak instance)"]}),A.jsxs(we,{children:[A.jsx(ee,{children:"VITE_KEYCLOAK_CONFIG_REALM"})," (the Keycloak realm)"]}),A.jsxs(we,{children:[A.jsx(ee,{children:"VITE_KEYCLOAK_CONFIG_CLIENT_ID"})," (the client id of this application)"]})]}),A.jsxs(ae,{textAlign:"center",children:[A.jsx(ae,{as:"b",children:"Status: "}),L!=null?A.jsxs(A.Fragment,{children:["Logged in as ",A.jsx(ee,{children:L}),"."]}):A.jsx(A.Fragment,{children:"Not logged in."})]})]})]}),A.jsx(er,{renderErrorFallback:j=>A.jsxs(A.Fragment,{children:[A.jsx(Ie,{children:"An Error occured while trying to login!"}),A.jsx(Ie,{color:"red",children:j.message})]}),children:A.jsxs(Ae,{align:"center",p:10,mt:2,spacing:3,border:"2px solid red",borderRadius:5,children:[A.jsx(ae,{textAlign:"center",children:"This part of the application is only visible when logged in."}),A.jsx(Fr,{}),A.jsxs(ae,{children:["The following button triggers a request against a backend. The request will automatically include the Keycloak token (see"," ",A.jsx(ee,{children:"SampleTokenInterceptor.ts"}),"):"]}),A.jsx(Re,{onClick:y,children:"Trigger Request With Token"})]})})]})]})}const Ir=new URLSearchParams(window.location.search),Ur=Ir.get("lang")||void 0,Er=Ye({component:Ar,appMetadata:Sr,config:{properties:{"@open-pioneer/authentication-keycloak":{keycloakOptions:{refreshOptions:{autoRefresh:!0,interval:6e3,timeLeft:70},keycloakInitOptions:{onLoad:"check-sso",pkceMethod:"S256"},keycloakConfig:{url:void 0,realm:void 0,clientId:void 0}}}},locale:Ur}});customElements.define("keycloak-app-element",Er); +For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),y.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(t),window.removeEventListener("message",i),r.setSuccess()))};window.addEventListener("message",i,!1)}else r.setSuccess();return u(r.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function O(r){if(!r||r=="default")return{login:function(a){return window.location.assign(e.createLoginUrl(a)),v().promise},logout:async function(a){if((a?.logoutMethod??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(a));return}const k=e.createLogoutUrl(a),g=await fetch(k,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:x.redirectUri(a,!1)})});if(g.redirected){window.location.href=g.url;return}if(g.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(a){return window.location.assign(e.createRegisterUrl(a)),v().promise},accountManagement:function(){var a=e.createAccountUrl();if(typeof a<"u")window.location.href=a;else throw"Not supported by the OIDC server";return v().promise},redirectUri:function(a,c){return a&&a.redirectUri?a.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(r=="cordova"){y.enable=!1;var t=function(a,c,k){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(a,c,k):window.open(a,c,k)},i=function(a){return a&&a.cordovaOptions?Object.keys(a.cordovaOptions).reduce(function(c,k){return c[k]=a.cordovaOptions[k],c},{}):{}},l=function(a){return Object.keys(a).reduce(function(c,k){return c.push(k+"="+a[k]),c},[]).join(",")},o=function(a){var c=i(a);return c.location="no",a&&a.prompt=="none"&&(c.hidden="yes"),l(c)},p=function(){return e.redirectUri||"http://localhost"};return{login:function(a){var c=v(),k=o(a),g=e.createLoginUrl(a),S=t(g,"_blank",k),U=!1,Y=!1,Q=function(){Y=!0,S.close()};return S.addEventListener("loadstart",function(z){if(z.url.indexOf(p())==0){var ue=f(z.url);J(ue,c),Q(),U=!0}}),S.addEventListener("loaderror",function(z){if(!U)if(z.url.indexOf(p())==0){var ue=f(z.url);J(ue,c),Q(),U=!0}else c.setError(),Q()}),S.addEventListener("exit",function(z){Y||c.setError({reason:"closed_by_user"})}),c.promise},logout:function(a){var c=v(),k=e.createLogoutUrl(a),g=t(k,"_blank","location=no,hidden=yes,clearcache=yes"),S;return g.addEventListener("loadstart",function(U){U.url.indexOf(p())==0&&g.close()}),g.addEventListener("loaderror",function(U){U.url.indexOf(p())==0||(S=!0),g.close()}),g.addEventListener("exit",function(U){S?c.setError():(e.clearToken(),c.setSuccess())}),c.promise},register:function(a){var c=v(),k=e.createRegisterUrl(),g=o(a),S=t(k,"_blank",g);return S.addEventListener("loadstart",function(U){if(U.url.indexOf(p())==0){S.close();var Y=f(U.url);J(Y,c)}}),c.promise},accountManagement:function(){var a=e.createAccountUrl();if(typeof a<"u"){var c=t(a,"_blank","location=no");c.addEventListener("loadstart",function(k){k.url.indexOf(p())==0&&c.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(a){return p()}}}if(r=="cordova-native")return y.enable=!1,{login:function(a){var c=v(),k=e.createLoginUrl(a);return universalLinks.subscribe("keycloak",function(g){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var S=f(g.url);J(S,c)}),window.cordova.plugins.browsertab.openUrl(k),c.promise},logout:function(a){var c=v(),k=e.createLogoutUrl(a);return universalLinks.subscribe("keycloak",function(g){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),c.setSuccess()}),window.cordova.plugins.browsertab.openUrl(k),c.promise},register:function(a){var c=v(),k=e.createRegisterUrl(a);return universalLinks.subscribe("keycloak",function(g){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var S=f(g.url);J(S,c)}),window.cordova.plugins.browsertab.openUrl(k),c.promise},accountManagement:function(){var a=e.createAccountUrl();if(typeof a<"u")window.cordova.plugins.browsertab.openUrl(a);else throw"Not supported by the OIDC server"},redirectUri:function(a){return a&&a.redirectUri?a.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+r}var P=function(){if(!(this instanceof P))return new P;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var r=this;function t(){for(var i=new Date().getTime(),l=0;l{ie(this,X,de).call(this,{kind:"error",error:x}),E(this,he).notify({level:"error",title:E(this,se).formatMessage({id:"loginFailed.title"}),message:E(this,se).formatMessage({id:"loginFailed.message"})}),W.error("Failed to check if user is authenticated",x)})}destroy(){clearInterval(E(this,te)),G(this,pe,Ve(E(this,pe))),G(this,te,void 0)}getAuthState(){return E(this,me).value}getLoginBehavior(){return{kind:"effect",login:()=>{W.debug("Login with options",E(this,le)),E(this,M).login(E(this,le))}}}logout(){W.debug("Logout with options",E(this,ce)),E(this,M).logout(E(this,ce))}__refresh(e,x){clearInterval(E(this,te)),G(this,te,setInterval(()=>{E(this,M).updateToken(x).catch(b=>{W.error("Failed to refresh token",b),ie(this,X,de).call(this,{kind:"not-authenticated"}),this.destroy()})},e))}}he=new WeakMap,se=new WeakMap,re=new WeakMap,M=new WeakMap,ce=new WeakMap,le=new WeakMap,te=new WeakMap,pe=new WeakMap,me=new WeakMap,X=new WeakSet,Oe=async function(){const e=E(this,re),x=E(this,re).keycloakInitOptions,b=e.refreshOptions;let L;try{L=await E(this,M).init(x)}catch(y){const j=typeof y=="string"?new Error(y):y;throw new Error("Failed to initialize keycloak session",{cause:j})}L?(ie(this,X,de).call(this,{kind:"authenticated",sessionInfo:{userId:E(this,M).subject?E(this,M).subject:"undefined",userName:E(this,M).idTokenParsed?.preferred_username,attributes:{keycloak:E(this,M),familyName:E(this,M).idTokenParsed?.family_name,givenName:E(this,M).idTokenParsed?.given_name,userName:E(this,M).idTokenParsed?.preferred_username}}}),W.debug(`User ${E(this,M).subject} is authenticated`),b.autoRefresh&&(W.debug("Starting auto-refresh",b),this.__refresh(b.interval,b.timeLeft))):(ie(this,X,de).call(this,{kind:"not-authenticated"}),W.debug("User is not authenticated"))},de=function(e){E(this,me).value=e};const Te={autoRefresh:!0,interval:6e3,timeLeft:70},Ce={onLoad:"check-sso",pkceMethod:"S256"};function pr(h){const{keycloakOptions:e}=h,{refreshOptions:x,keycloakInitOptions:b,keycloakConfig:L}=e;return{refreshOptions:{...mr(x)},keycloakInitOptions:{...vr(b)},keycloakConfig:{...gr(L)}}}function mr(h){return!h||Se(h)?(W.warn(`The autorefresh options of the Keycloak configuration should be set to ensure automatic refreshes at specified intervals. Defaulting to '${Te}'.`),Object.assign({},{...Te})):h}function vr(h){return!h||Se(h)?(W.warn(`The Keycloak init options of the keycloak configuration should be set. Defaulting to '${Ce}'.`),Object.assign({},{...Ce})):h}function gr(h){if(!h||Se(h))throw new Error("KeycloakConfig not found: The Keycloak configuration options are required by the plugin to perform login and logout operations");return h}const Se=h=>h&&Object.keys(h).length===0&&h.constructor===Object,kr={"keycloak-sample":{name:"keycloak-sample",services:{SampleTokenInterceptor:{name:"SampleTokenInterceptor",clazz:ir,provides:[{name:"http.Interceptor",qualifier:void 0}],references:{authService:{name:"authentication.AuthService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1},{name:"http.HttpService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/authentication":{name:"@open-pioneer/authentication",services:{AuthServiceImpl:{name:"AuthServiceImpl",clazz:$e,provides:[{name:"authentication.AuthService",qualifier:void 0}],references:{plugin:{name:"authentication.AuthPlugin",qualifier:void 0,all:!1}}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:Qe,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:er,provides:[{name:"http.HttpService",qualifier:void 0}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/authentication-keycloak":{name:"@open-pioneer/authentication-keycloak",services:{KeycloakAuthPlugin:{name:"KeycloakAuthPlugin",clazz:hr,provides:[{name:"authentication.AuthPlugin",qualifier:void 0},{name:"authentication-keycloak.KeycloakAuthPlugin",qualifier:void 0}],references:{notifier:{name:"notifier.NotificationService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{keycloakOptions:{value:{refreshOptions:null,keycloakInitOptions:null,keycloakConfig:null,keycloakLogoutOptions:null,keycloakLoginOptions:null},required:!1}}}},xr="",wr=["de","en"];function br(h){switch(h){case"de":return Ue(()=>import("./DHsSmHrBD0L-.js"),[],import.meta.url).then(e=>e.default);case"en":return Ue(()=>import("./DOFgVa_i9Fer.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${h}'`)}const yr=Je(xr),Sr=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:br,locales:wr,packages:kr,styles:yr},Symbol.toStringTag,{value:"Module"})),_r="keycloak-sample",ye=rr.bind(void 0,_r);function Fr(){const h=ye("authentication.AuthService"),e=()=>{h.logout()};return A.jsx(Re,{colorScheme:"red",onClick:e,children:"Log out"})}function Ar(){const h=ye("authentication.AuthService"),e=ye("http.HttpService"),x=We(h),L=(x.kind=="authenticated"?x.sessionInfo:void 0)?.userName,y=()=>{e.fetch("https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json").catch(j=>console.error("Request failed",j))};return A.jsxs(A.Fragment,{children:[A.jsx(Ze,{}),A.jsxs(tr,{maxW:"800px",children:[A.jsxs(nr,{height:"100%",direction:"column",overflow:"hidden",children:[A.jsx(Fe,{as:"h1",size:"2xl",children:"Keycloak Sample"}),A.jsxs(Ae,{mt:4,spacing:2,align:"stretch",children:[A.jsx(Fe,{as:"h2",size:"xl",children:"Additional Setup"}),A.jsx(ae,{children:"This application requires additional setup. Most importantly, a Keycloak installation must be present."}),A.jsxs(ae,{children:["The following environment properties should be set via vite (e.g. in"," ",A.jsx(ee,{children:".env.local"}),"):"]}),A.jsxs(or,{children:[A.jsxs(we,{children:[A.jsx(ee,{children:"VITE_KEYCLOAK_CONFIG_URL"})," (the URL to the Keycloak instance)"]}),A.jsxs(we,{children:[A.jsx(ee,{children:"VITE_KEYCLOAK_CONFIG_REALM"})," (the Keycloak realm)"]}),A.jsxs(we,{children:[A.jsx(ee,{children:"VITE_KEYCLOAK_CONFIG_CLIENT_ID"})," (the client id of this application)"]})]}),A.jsxs(ae,{textAlign:"center",children:[A.jsx(ae,{as:"b",children:"Status: "}),L!=null?A.jsxs(A.Fragment,{children:["Logged in as ",A.jsx(ee,{children:L}),"."]}):A.jsx(A.Fragment,{children:"Not logged in."})]})]})]}),A.jsx(Xe,{renderErrorFallback:j=>A.jsxs(A.Fragment,{children:[A.jsx(Ie,{children:"An Error occured while trying to login!"}),A.jsx(Ie,{color:"red",children:j.message})]}),children:A.jsxs(Ae,{align:"center",p:10,mt:2,spacing:3,border:"2px solid red",borderRadius:5,children:[A.jsx(ae,{textAlign:"center",children:"This part of the application is only visible when logged in."}),A.jsx(Fr,{}),A.jsxs(ae,{children:["The following button triggers a request against a backend. The request will automatically include the Keycloak token (see"," ",A.jsx(ee,{children:"SampleTokenInterceptor.ts"}),"):"]}),A.jsx(Re,{onClick:y,children:"Trigger Request With Token"})]})})]})]})}const Ir=new URLSearchParams(window.location.search),Ur=Ir.get("lang")||void 0,Er=Ye({component:Ar,appMetadata:Sr,config:{properties:{"@open-pioneer/authentication-keycloak":{keycloakOptions:{refreshOptions:{autoRefresh:!0,interval:6e3,timeLeft:70},keycloakInitOptions:{onLoad:"check-sso",pkceMethod:"S256"},keycloakConfig:{url:void 0,realm:void 0,clientId:void 0}}}},locale:Ur}});customElements.define("keycloak-app-element",Er); diff --git a/core-packages/assets/QVC4RvZY7S50.js b/core-packages/assets/BQHS3Ba58tsp.js similarity index 69% rename from core-packages/assets/QVC4RvZY7S50.js rename to core-packages/assets/BQHS3Ba58tsp.js index 360dc8645..7f2bf3f60 100644 --- a/core-packages/assets/QVC4RvZY7S50.js +++ b/core-packages/assets/BQHS3Ba58tsp.js @@ -1 +1 @@ -import{a as r,b as o,r as n}from"./BbD1ObBocF77.js";const t={"error-app":{name:"error-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},s="",p=[];function i(e){throw new Error(`Unsupported locale: '${e}'`)}const a=r(s),c=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:i,locales:p,packages:t,styles:a},Symbol.toStringTag,{value:"Module"})),m=o({component:()=>n.createElement("div"),appMetadata:c,resolveConfig(e){throw new Error("This is a test error.")}});customElements.define("error-app",m); +import{a as r,b as o,r as n}from"./BbD1ObBocF77.js";const t={"error-app":{name:"error-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},s="",p=[];function i(e){throw new Error(`Unsupported locale: '${e}'`)}const a=r(s),c=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:i,locales:p,packages:t,styles:a},Symbol.toStringTag,{value:"Module"})),m=o({component:()=>n.createElement("div"),appMetadata:c,resolveConfig(e){throw new Error("This is a test error.")}});customElements.define("error-app",m); diff --git a/core-packages/assets/cGuuml541B3O.js b/core-packages/assets/BQimd49rmMUY.js similarity index 87% rename from core-packages/assets/cGuuml541B3O.js rename to core-packages/assets/BQimd49rmMUY.js index 6e71eda67..d06077daa 100644 --- a/core-packages/assets/cGuuml541B3O.js +++ b/core-packages/assets/BQimd49rmMUY.js @@ -1 +1 @@ -var E=t=>{throw TypeError(t)};var k=(t,n,r)=>n.has(t)||E("Cannot "+r);var a=(t,n,r)=>(k(t,n,"read from private field"),r?r.call(t):n.get(t)),x=(t,n,r)=>n.has(t)?E("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),d=(t,n,r,s)=>(k(t,n,"write to private field"),s?s.call(t,r):n.set(t,r),r);import{n as U,h as S,j as e,l as F,r as p,V as q,H as P,R as w,U as _,W as D,X as H,a as V,O as G,b as K}from"./BbD1ObBocF77.js";import{u as W,I as X}from"./CVmFO9NFdac9.js";import{C as N}from"./C9CafZahHNwS.js";import{T as Y}from"./Ddf4mYqhSsPi.js";import{F as b}from"./DCmbPgooq4UU.js";import{F as L}from"./Di3rdG8Xs0Gt.js";import{I as y}from"./DUWS-ykArEfP.js";import{B as h}from"./C9L897yljxNO.js";import{H as $}from"./C0abT8QJ97LC.js";import{r as J,A as Q,u as Z,F as ee}from"./MXDdkNIiVgls.js";import{_ as C}from"./CmsKOCeNyeyo.js";import{u as te}from"./BG7f7T4POdrF.js";import{F as ne}from"./tahGmHek4or5.js";const re=U("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),v=S(function(n,r){const{placement:s="left",...c}=n,i=W(),u=i.field,j={[s==="left"?"insetStart":"insetEnd"]:"0",width:u?.height??u?.h,height:u?.height??u?.h,fontSize:u?.fontSize,...i.element};return e.jsx(re,{ref:r,__css:j,...c})});v.id="InputElement";v.displayName="InputElement";const T=S(function(n,r){const{className:s,...c}=n,i=F("chakra-input__left-element",s);return e.jsx(v,{ref:r,placement:"left",className:i,...c})});T.id="InputLeftElement";T.displayName="InputLeftElement";const A=S(function(n,r){const{className:s,...c}=n,i=F("chakra-input__right-element",s);return e.jsx(v,{ref:r,placement:"right",className:i,...c})});A.id="InputRightElement";A.displayName="InputRightElement";function se({doLogin:t,doFail:n,wasLoggedIn:r}){const[s,c]=p.useState(""),[i,u]=p.useState(""),[g,j]=p.useState(!1),[I,M]=p.useState(),[z,R]=p.useState(r),O=m=>{m.preventDefault();const B=t(s,i);M(B||""),R(!1)};return e.jsx(N,{p:5,children:e.jsxs(q,{as:"form",onSubmit:O,spacing:4,children:[e.jsx(P,{as:"h1",textAlign:"center",children:"Login"}),e.jsxs(Y,{textAlign:"center",children:["Please enter your user name and password to authenticate.",e.jsx("br",{}),"Note: credentials are ",'"admin"'," / ",'"admin"']}),I&&e.jsxs(w,{status:"error",children:[e.jsx(_,{}),e.jsx(D,{children:I})]}),z&&e.jsxs(w,{status:"info",mb:5,children:[e.jsx(_,{}),e.jsxs(H,{children:["Logout successful.",e.jsx("br",{}),"You can use the form below to log in again."]})]}),e.jsxs(b,{children:[e.jsx(L,{children:"User name"}),e.jsx(y,{placeholder:"User name",value:s,onChange:m=>c(m.target.value),autoComplete:"username"})]}),e.jsxs(b,{children:[e.jsx(L,{children:"Password"}),e.jsxs(X,{children:[e.jsx(y,{pr:"4.5rem",type:g?"text":"password",placeholder:"Enter password",value:i,onChange:m=>u(m.target.value),autoComplete:"current-password"}),e.jsx(A,{width:"4.5rem",children:e.jsx(h,{h:"1.75rem",size:"sm",onClick:()=>j(!g),children:g?"Hide":"Show"})})]})]}),e.jsxs($,{children:[e.jsx(h,{colorScheme:"red",onClick:n,children:"Let it fail!"}),e.jsx(h,{type:"submit",children:"Login"})]})]})})}var o,l,f;class ie{constructor(){x(this,o,J({kind:"pending"}));x(this,l);x(this,f,!1);d(this,l,setTimeout(()=>{a(this,o).value={kind:"not-authenticated"}},500))}destroy(){clearTimeout(a(this,l)),d(this,l,void 0)}getAuthState(){return a(this,o).value}getLoginBehavior(){const n=(c,i)=>{if(c==="admin"&&i==="admin")a(this,o).value={kind:"authenticated",sessionInfo:{userId:"admin",userName:"Arnold Administrator"}},d(this,f,!0);else return"Invalid user name or password!"},r=()=>{a(this,o).value={kind:"error",error:new Error("Login failed!")}};return{kind:"fallback",Fallback:()=>p.createElement(se,{doLogin:n,doFail:r,wasLoggedIn:a(this,f)})}}logout(){(a(this,o).value.kind==="authenticated"||a(this,o).value.kind==="pending")&&(a(this,o).value={kind:"not-authenticated"},clearTimeout(a(this,l)),d(this,l,void 0))}}o=new WeakMap,l=new WeakMap,f=new WeakMap;const ae={"auth-app":{name:"auth-app",services:{TestAuthPlugin:{name:"TestAuthPlugin",clazz:ie,provides:[{name:"authentication.AuthPlugin",qualifier:void 0}],references:{}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/authentication":{name:"@open-pioneer/authentication",services:{AuthServiceImpl:{name:"AuthServiceImpl",clazz:Q,provides:[{name:"authentication.AuthService",qualifier:void 0}],references:{plugin:{name:"authentication.AuthPlugin",qualifier:void 0,all:!1}}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}}},oe="",ce=["en","de"];function le(t){switch(t){case"en":return C(()=>import("./P9WplnIxWHzS.js"),[],import.meta.url).then(n=>n.default);case"de":return C(()=>import("./z2D46c5wMnzO.js"),[],import.meta.url).then(n=>n.default)}throw new Error(`Unsupported locale: '${t}'`)}const ue=V(oe),pe=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:le,locales:ce,packages:ae,styles:ue},Symbol.toStringTag,{value:"Module"})),me="auth-app",de=te.bind(void 0,me);function he(){const t=de("authentication.AuthService"),n=Z(t),r=()=>{t.logout()};return n.kind==="not-authenticated"||n.kind==="pending"?null:e.jsx(h,{colorScheme:"red",onClick:r,children:"Log out"})}function fe(){return e.jsx(ee,{errorFallback:ge,children:e.jsxs(N,{p:5,children:[e.jsx(P,{as:"h1",children:"Authenticated"}),"This is the actual content of the app. Authentication was successful.",e.jsx(ne,{pt:5,flexDirection:"row",justifyContent:"center",children:e.jsx(he,{})})]})})}function ge(t){return e.jsxs(e.Fragment,{children:[e.jsx(G,{margin:2,color:"red",children:t.error.message}),e.jsx(h,{margin:2,onClick:()=>window.location.reload(),children:"reload"})]})}const xe=K({component:fe,appMetadata:pe});customElements.define("auth-app",xe); +var E=t=>{throw TypeError(t)};var k=(t,n,r)=>n.has(t)||E("Cannot "+r);var a=(t,n,r)=>(k(t,n,"read from private field"),r?r.call(t):n.get(t)),x=(t,n,r)=>n.has(t)?E("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),d=(t,n,r,s)=>(k(t,n,"write to private field"),s?s.call(t,r):n.set(t,r),r);import{n as U,h as S,j as e,l as F,r as p,V as q,H as P,R as w,U as _,W as D,X as H,a as V,O as G,b as K}from"./BbD1ObBocF77.js";import{u as W,I as X}from"./CVmFO9NFdac9.js";import{C as N}from"./C9CafZahHNwS.js";import{T as Y}from"./Ddf4mYqhSsPi.js";import{F as b}from"./DCmbPgooq4UU.js";import{F as L}from"./Di3rdG8Xs0Gt.js";import{I as y}from"./DUWS-ykArEfP.js";import{B as h}from"./C9L897yljxNO.js";import{H as $}from"./C0abT8QJ97LC.js";import{r as J,A as Q,u as Z,F as ee}from"./MXDdkNIiVgls.js";import{_ as C}from"./CmsKOCeNyeyo.js";import{u as te}from"./BG7f7T4POdrF.js";import{F as ne}from"./tahGmHek4or5.js";const re=U("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),v=S(function(n,r){const{placement:s="left",...c}=n,i=W(),u=i.field,j={[s==="left"?"insetStart":"insetEnd"]:"0",width:u?.height??u?.h,height:u?.height??u?.h,fontSize:u?.fontSize,...i.element};return e.jsx(re,{ref:r,__css:j,...c})});v.id="InputElement";v.displayName="InputElement";const T=S(function(n,r){const{className:s,...c}=n,i=F("chakra-input__left-element",s);return e.jsx(v,{ref:r,placement:"left",className:i,...c})});T.id="InputLeftElement";T.displayName="InputLeftElement";const A=S(function(n,r){const{className:s,...c}=n,i=F("chakra-input__right-element",s);return e.jsx(v,{ref:r,placement:"right",className:i,...c})});A.id="InputRightElement";A.displayName="InputRightElement";function se({doLogin:t,doFail:n,wasLoggedIn:r}){const[s,c]=p.useState(""),[i,u]=p.useState(""),[g,j]=p.useState(!1),[I,M]=p.useState(),[z,R]=p.useState(r),O=m=>{m.preventDefault();const B=t(s,i);M(B||""),R(!1)};return e.jsx(N,{p:5,children:e.jsxs(q,{as:"form",onSubmit:O,spacing:4,children:[e.jsx(P,{as:"h1",textAlign:"center",children:"Login"}),e.jsxs(Y,{textAlign:"center",children:["Please enter your user name and password to authenticate.",e.jsx("br",{}),"Note: credentials are ",'"admin"'," / ",'"admin"']}),I&&e.jsxs(w,{status:"error",children:[e.jsx(_,{}),e.jsx(D,{children:I})]}),z&&e.jsxs(w,{status:"info",mb:5,children:[e.jsx(_,{}),e.jsxs(H,{children:["Logout successful.",e.jsx("br",{}),"You can use the form below to log in again."]})]}),e.jsxs(b,{children:[e.jsx(L,{children:"User name"}),e.jsx(y,{placeholder:"User name",value:s,onChange:m=>c(m.target.value),autoComplete:"username"})]}),e.jsxs(b,{children:[e.jsx(L,{children:"Password"}),e.jsxs(X,{children:[e.jsx(y,{pr:"4.5rem",type:g?"text":"password",placeholder:"Enter password",value:i,onChange:m=>u(m.target.value),autoComplete:"current-password"}),e.jsx(A,{width:"4.5rem",children:e.jsx(h,{h:"1.75rem",size:"sm",onClick:()=>j(!g),children:g?"Hide":"Show"})})]})]}),e.jsxs($,{children:[e.jsx(h,{colorScheme:"red",onClick:n,children:"Let it fail!"}),e.jsx(h,{type:"submit",children:"Login"})]})]})})}var o,l,f;class ie{constructor(){x(this,o,J({kind:"pending"}));x(this,l);x(this,f,!1);d(this,l,setTimeout(()=>{a(this,o).value={kind:"not-authenticated"}},500))}destroy(){clearTimeout(a(this,l)),d(this,l,void 0)}getAuthState(){return a(this,o).value}getLoginBehavior(){const n=(c,i)=>{if(c==="admin"&&i==="admin")a(this,o).value={kind:"authenticated",sessionInfo:{userId:"admin",userName:"Arnold Administrator"}},d(this,f,!0);else return"Invalid user name or password!"},r=()=>{a(this,o).value={kind:"error",error:new Error("Login failed!")}};return{kind:"fallback",Fallback:()=>p.createElement(se,{doLogin:n,doFail:r,wasLoggedIn:a(this,f)})}}logout(){(a(this,o).value.kind==="authenticated"||a(this,o).value.kind==="pending")&&(a(this,o).value={kind:"not-authenticated"},clearTimeout(a(this,l)),d(this,l,void 0))}}o=new WeakMap,l=new WeakMap,f=new WeakMap;const ae={"auth-app":{name:"auth-app",services:{TestAuthPlugin:{name:"TestAuthPlugin",clazz:ie,provides:[{name:"authentication.AuthPlugin",qualifier:void 0}],references:{}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/authentication":{name:"@open-pioneer/authentication",services:{AuthServiceImpl:{name:"AuthServiceImpl",clazz:Q,provides:[{name:"authentication.AuthService",qualifier:void 0}],references:{plugin:{name:"authentication.AuthPlugin",qualifier:void 0,all:!1}}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}}},oe="",ce=["en","de"];function le(t){switch(t){case"en":return C(()=>import("./P9WplnIxWHzS.js"),[],import.meta.url).then(n=>n.default);case"de":return C(()=>import("./z2D46c5wMnzO.js"),[],import.meta.url).then(n=>n.default)}throw new Error(`Unsupported locale: '${t}'`)}const ue=V(oe),pe=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:le,locales:ce,packages:ae,styles:ue},Symbol.toStringTag,{value:"Module"})),me="auth-app",de=te.bind(void 0,me);function he(){const t=de("authentication.AuthService"),n=Z(t),r=()=>{t.logout()};return n.kind==="not-authenticated"||n.kind==="pending"?null:e.jsx(h,{colorScheme:"red",onClick:r,children:"Log out"})}function fe(){return e.jsx(ee,{errorFallback:ge,children:e.jsxs(N,{p:5,children:[e.jsx(P,{as:"h1",children:"Authenticated"}),"This is the actual content of the app. Authentication was successful.",e.jsx(ne,{pt:5,flexDirection:"row",justifyContent:"center",children:e.jsx(he,{})})]})})}function ge(t){return e.jsxs(e.Fragment,{children:[e.jsx(G,{margin:2,color:"red",children:t.error.message}),e.jsx(h,{margin:2,onClick:()=>window.location.reload(),children:"reload"})]})}const xe=K({component:fe,appMetadata:pe});customElements.define("auth-app",xe); diff --git a/core-packages/assets/DSy4Lla2yi8J.js b/core-packages/assets/C0FydAxYFtSB.js similarity index 89% rename from core-packages/assets/DSy4Lla2yi8J.js rename to core-packages/assets/C0FydAxYFtSB.js index 10a1af830..7d62da810 100644 --- a/core-packages/assets/DSy4Lla2yi8J.js +++ b/core-packages/assets/C0FydAxYFtSB.js @@ -1 +1 @@ -var p=e=>{throw TypeError(e)};var u=(e,i,n)=>i.has(e)||p("Cannot "+n);var c=(e,i,n)=>(u(e,i,"read from private field"),n?n.call(e):i.get(e)),d=(e,i,n)=>i.has(e)?p("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,n);import{a as f,j as r,H as l,V as g,b as x}from"./BbD1ObBocF77.js";import{u as h}from"./BG7f7T4POdrF.js";import{B as A}from"./C9L897yljxNO.js";import{C as w}from"./C9CafZahHNwS.js";import{T as a}from"./Ddf4mYqhSsPi.js";var o;class b{constructor(i){d(this,o,new Map);const n=c(this,o),t=i.references.providers;for(const m of t){const v=m.createActions();for(const s of v){if(n.has(s.id))throw new Error(`Action '${s.id}' was defined twice.`);n.set(s.id,s)}}}getActionInfo(){const i=Array.from(c(this,o).values()).map(n=>({id:n.id,text:n.text}));return i.sort((n,t)=>n.text.localeCompare(t.text)),i}triggerAction(i){const n=c(this,o).get(i);if(!n)throw new Error(`Action '${i}' was not defined.`);n.trigger()}}o=new WeakMap;class P{createActions(){return[{id:"logging-action",text:"Log a message",trigger(){console.info("Logging a message!")}}]}}class j{createActions(){return[{id:"clear-browser-action",text:"Clear browser",trigger(){document.body.innerHTML=""}},{id:"refresh-browser-action",text:"Refresh browser",trigger(){window.location.reload()}}]}}class S{createActions(){return[{id:"open-window-action",text:"Open window",trigger(){window.open("https://www.conterra.de")}}]}}const y={"extension-app":{name:"extension-app",services:{ActionServiceImpl:{name:"ActionServiceImpl",clazz:b,provides:[{name:"extension-app.ActionService",qualifier:void 0}],references:{providers:{name:"extension-app.ActionProvider",qualifier:void 0,all:!0}}},LoggingActionProvider:{name:"LoggingActionProvider",clazz:P,provides:[{name:"extension-app.ActionProvider",qualifier:void 0}],references:{}},MultiActionProvider:{name:"MultiActionProvider",clazz:j,provides:[{name:"extension-app.ActionProvider",qualifier:void 0}],references:{}},OpenWindowActionProvider:{name:"OpenWindowActionProvider",clazz:S,provides:[{name:"extension-app.ActionProvider",qualifier:void 0}],references:{}}},ui:{references:[{name:"extension-app.ActionService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},I="",z=[];function E(e){throw new Error(`Unsupported locale: '${e}'`)}const M=f(I),T=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:E,locales:z,packages:y,styles:M},Symbol.toStringTag,{value:"Module"})),k="extension-app",C=h.bind(void 0,k);function q(){const e=C("extension-app.ActionService"),i=e.getActionInfo().map(({id:n,text:t})=>r.jsx(A,{onClick:()=>e.triggerAction(n),children:t},n));return r.jsxs(w,{maxW:"3xl",py:2,children:[r.jsx(l,{as:"h1",size:"4xl",mb:4,children:"Extension Example"}),r.jsx(a,{my:2,children:"This example demonstrates how to provide an extensible API with services and 1-to-N dependencies."}),r.jsxs(a,{my:2,children:["Individual ",r.jsx("code",{children:"ActionProvider"})," instances can provide a number of actions, which are then gathered and indexed by the ",r.jsx("code",{children:"ActionService"}),", which depends on all ActionProviders. The UI references the ",r.jsx("code",{children:"ActionService"})," and renders the provided actions as buttons. When a button is clicked, the appropriate action will be triggered."]}),r.jsxs(a,{my:2,children:["To add a new action, simply add new implementation of"," ",r.jsx("code",{children:'"extension-app.ActionProvider"'}),". The"," ",r.jsx("code",{children:"ActionService"})," will pick it up automatically."]}),r.jsxs(l,{as:"h4",size:"xl",children:["Buttons from ",r.jsx("code",{children:"ActionService"}),":"]}),r.jsx(g,{align:"start",children:i})]})}const B=x({component:q,appMetadata:T});customElements.define("extension-app",B); +var p=e=>{throw TypeError(e)};var u=(e,i,n)=>i.has(e)||p("Cannot "+n);var c=(e,i,n)=>(u(e,i,"read from private field"),n?n.call(e):i.get(e)),d=(e,i,n)=>i.has(e)?p("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,n);import{a as f,j as r,H as l,V as g,b as x}from"./BbD1ObBocF77.js";import{u as h}from"./BG7f7T4POdrF.js";import{B as A}from"./C9L897yljxNO.js";import{C as w}from"./C9CafZahHNwS.js";import{T as a}from"./Ddf4mYqhSsPi.js";var o;class b{constructor(i){d(this,o,new Map);const n=c(this,o),t=i.references.providers;for(const m of t){const v=m.createActions();for(const s of v){if(n.has(s.id))throw new Error(`Action '${s.id}' was defined twice.`);n.set(s.id,s)}}}getActionInfo(){const i=Array.from(c(this,o).values()).map(n=>({id:n.id,text:n.text}));return i.sort((n,t)=>n.text.localeCompare(t.text)),i}triggerAction(i){const n=c(this,o).get(i);if(!n)throw new Error(`Action '${i}' was not defined.`);n.trigger()}}o=new WeakMap;class P{createActions(){return[{id:"logging-action",text:"Log a message",trigger(){console.info("Logging a message!")}}]}}class j{createActions(){return[{id:"clear-browser-action",text:"Clear browser",trigger(){document.body.innerHTML=""}},{id:"refresh-browser-action",text:"Refresh browser",trigger(){window.location.reload()}}]}}class S{createActions(){return[{id:"open-window-action",text:"Open window",trigger(){window.open("https://www.conterra.de")}}]}}const y={"extension-app":{name:"extension-app",services:{ActionServiceImpl:{name:"ActionServiceImpl",clazz:b,provides:[{name:"extension-app.ActionService",qualifier:void 0}],references:{providers:{name:"extension-app.ActionProvider",qualifier:void 0,all:!0}}},LoggingActionProvider:{name:"LoggingActionProvider",clazz:P,provides:[{name:"extension-app.ActionProvider",qualifier:void 0}],references:{}},MultiActionProvider:{name:"MultiActionProvider",clazz:j,provides:[{name:"extension-app.ActionProvider",qualifier:void 0}],references:{}},OpenWindowActionProvider:{name:"OpenWindowActionProvider",clazz:S,provides:[{name:"extension-app.ActionProvider",qualifier:void 0}],references:{}}},ui:{references:[{name:"extension-app.ActionService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},I="",z=[];function E(e){throw new Error(`Unsupported locale: '${e}'`)}const M=f(I),T=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:E,locales:z,packages:y,styles:M},Symbol.toStringTag,{value:"Module"})),k="extension-app",C=h.bind(void 0,k);function q(){const e=C("extension-app.ActionService"),i=e.getActionInfo().map(({id:n,text:t})=>r.jsx(A,{onClick:()=>e.triggerAction(n),children:t},n));return r.jsxs(w,{maxW:"3xl",py:2,children:[r.jsx(l,{as:"h1",size:"4xl",mb:4,children:"Extension Example"}),r.jsx(a,{my:2,children:"This example demonstrates how to provide an extensible API with services and 1-to-N dependencies."}),r.jsxs(a,{my:2,children:["Individual ",r.jsx("code",{children:"ActionProvider"})," instances can provide a number of actions, which are then gathered and indexed by the ",r.jsx("code",{children:"ActionService"}),", which depends on all ActionProviders. The UI references the ",r.jsx("code",{children:"ActionService"})," and renders the provided actions as buttons. When a button is clicked, the appropriate action will be triggered."]}),r.jsxs(a,{my:2,children:["To add a new action, simply add new implementation of"," ",r.jsx("code",{children:'"extension-app.ActionProvider"'}),". The"," ",r.jsx("code",{children:"ActionService"})," will pick it up automatically."]}),r.jsxs(l,{as:"h4",size:"xl",children:["Buttons from ",r.jsx("code",{children:"ActionService"}),":"]}),r.jsx(g,{align:"start",children:i})]})}const B=x({component:q,appMetadata:T});customElements.define("extension-app",B); diff --git a/core-packages/assets/Bw0CYwV54J7H.js b/core-packages/assets/C6U5oi4bnrvT.js similarity index 90% rename from core-packages/assets/Bw0CYwV54J7H.js rename to core-packages/assets/C6U5oi4bnrvT.js index 684aed5ba..569f04829 100644 --- a/core-packages/assets/Bw0CYwV54J7H.js +++ b/core-packages/assets/C6U5oi4bnrvT.js @@ -1 +1 @@ -import{h as N,l as C,r as s,j as e,n as E,a as k,S as m,H as R,O as T,b as _}from"./BbD1ObBocF77.js";import{N as B,a as I}from"./D3NUZzfgzIQn.js";import{u as z}from"./BG7f7T4POdrF.js";import{T as A,C as M}from"./DiI0-Y_JDvy-.js";import{a as q,B as x}from"./C9L897yljxNO.js";import{C as w}from"./C9CafZahHNwS.js";import{T as F}from"./Ddf4mYqhSsPi.js";import{F as h}from"./DCmbPgooq4UU.js";import{F as v}from"./Di3rdG8Xs0Gt.js";import{I as G}from"./DUWS-ykArEfP.js";import{S as H}from"./X2feasIkX6s8.js";import"./UN9yAB02F1-Z.js";import"./Bux-xGeHLEc6.js";const D={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},L={horizontal:o=>({"& > *:not(style) ~ *:not(style)":{marginStart:o}}),vertical:o=>({"& > *:not(style) ~ *:not(style)":{marginTop:o}})},g=N(function(a,u){const{size:r,colorScheme:c,variant:n,className:d,spacing:l="0.5rem",isAttached:p,isDisabled:f,orientation:i="horizontal",...t}=a,y=C("chakra-button__group",d),j=s.useMemo(()=>({size:r,colorScheme:c,variant:n,isDisabled:f}),[r,c,n,f]);let S={display:"inline-flex",...p?D[i]:L[i](l)};const b=i==="vertical";return e.jsx(q,{value:j,children:e.jsx(E.div,{ref:u,role:"group",__css:S,className:y,"data-attached":p?"":void 0,"data-orientation":i,flexDir:b?"column":void 0,...t})})});g.displayName="ButtonGroup";const O={"notify-app":{name:"notify-app",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:B,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},P="",U=[];function K(o){throw new Error(`Unsupported locale: '${o}'`)}const V=k(P),W=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:K,locales:U,packages:O,styles:V},Symbol.toStringTag,{value:"Module"})),$="notify-app",J=z.bind(void 0,$);function Q(){const o=J("notifier.NotificationService"),[a,u]=s.useState(""),[r,c]=s.useState("info"),[n,d]=s.useState(""),[l,p]=s.useState(!1),f=()=>{const t={title:a,level:r,message:n,displayDuration:l?5e3:void 0};if(!t.title){o.notify({title:"Title is required",level:"error"});return}o.notify(t)},i=()=>{o.closeAll()};return e.jsxs(e.Fragment,{children:[e.jsx(I,{position:"top-right"}),e.jsx(w,{p:5,children:e.jsxs(m,{spacing:8,children:[e.jsxs(m,{align:"center",children:[e.jsx(R,{as:"h1",children:"Notify Sample"}),e.jsx(F,{children:"Use the form below to emit notifications."})]}),e.jsx(T,{rounded:"lg",boxShadow:"lg",p:8,children:e.jsxs(m,{spacing:4,children:[e.jsxs(h,{isRequired:!0,children:[e.jsx(v,{children:"Title"}),e.jsx(G,{type:"text",value:a,onChange:t=>u(t.target.value)})]}),e.jsxs(h,{isRequired:!0,children:[e.jsx(v,{children:"Level"}),e.jsxs(H,{value:r,onChange:t=>{c(t.target.value)},children:[e.jsx("option",{value:"success",children:"Success"}),e.jsx("option",{value:"info",children:"Info"}),e.jsx("option",{value:"warning",children:"Warning"}),e.jsx("option",{value:"error",children:"Error"})]})]}),e.jsxs(h,{children:[e.jsx(v,{children:"Message"}),e.jsx(A,{placeholder:"Enter additional message",value:n,onChange:t=>d(t.target.value)})]}),e.jsx(M,{isChecked:l,onChange:t=>p(t.target.checked),children:"Hide after 5 seconds"}),e.jsxs(g,{justifyContent:"center",children:[e.jsx(x,{flex:"1",onClick:f,children:"Emit Notification"}),e.jsx(x,{flex:"1",variant:"cancel",onClick:i,children:"Clear notifications"})]})]})})]})})]})}const X=_({component:Q,appMetadata:W});customElements.define("notify-app",X); +import{h as N,l as C,r as s,j as e,n as E,a as k,S as m,H as R,O as T,b as _}from"./BbD1ObBocF77.js";import{N as B,a as I}from"./D3NUZzfgzIQn.js";import{u as z}from"./BG7f7T4POdrF.js";import{T as A,C as M}from"./DiI0-Y_JDvy-.js";import{a as q,B as x}from"./C9L897yljxNO.js";import{C as w}from"./C9CafZahHNwS.js";import{T as F}from"./Ddf4mYqhSsPi.js";import{F as h}from"./DCmbPgooq4UU.js";import{F as v}from"./Di3rdG8Xs0Gt.js";import{I as G}from"./DUWS-ykArEfP.js";import{S as H}from"./X2feasIkX6s8.js";import"./UN9yAB02F1-Z.js";import"./Bux-xGeHLEc6.js";const D={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},L={horizontal:o=>({"& > *:not(style) ~ *:not(style)":{marginStart:o}}),vertical:o=>({"& > *:not(style) ~ *:not(style)":{marginTop:o}})},g=N(function(a,u){const{size:r,colorScheme:c,variant:n,className:d,spacing:l="0.5rem",isAttached:p,isDisabled:f,orientation:i="horizontal",...t}=a,y=C("chakra-button__group",d),j=s.useMemo(()=>({size:r,colorScheme:c,variant:n,isDisabled:f}),[r,c,n,f]);let S={display:"inline-flex",...p?D[i]:L[i](l)};const b=i==="vertical";return e.jsx(q,{value:j,children:e.jsx(E.div,{ref:u,role:"group",__css:S,className:y,"data-attached":p?"":void 0,"data-orientation":i,flexDir:b?"column":void 0,...t})})});g.displayName="ButtonGroup";const O={"notify-app":{name:"notify-app",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:B,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},P="",U=[];function K(o){throw new Error(`Unsupported locale: '${o}'`)}const V=k(P),W=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:K,locales:U,packages:O,styles:V},Symbol.toStringTag,{value:"Module"})),$="notify-app",J=z.bind(void 0,$);function Q(){const o=J("notifier.NotificationService"),[a,u]=s.useState(""),[r,c]=s.useState("info"),[n,d]=s.useState(""),[l,p]=s.useState(!1),f=()=>{const t={title:a,level:r,message:n,displayDuration:l?5e3:void 0};if(!t.title){o.notify({title:"Title is required",level:"error"});return}o.notify(t)},i=()=>{o.closeAll()};return e.jsxs(e.Fragment,{children:[e.jsx(I,{position:"top-right"}),e.jsx(w,{p:5,children:e.jsxs(m,{spacing:8,children:[e.jsxs(m,{align:"center",children:[e.jsx(R,{as:"h1",children:"Notify Sample"}),e.jsx(F,{children:"Use the form below to emit notifications."})]}),e.jsx(T,{rounded:"lg",boxShadow:"lg",p:8,children:e.jsxs(m,{spacing:4,children:[e.jsxs(h,{isRequired:!0,children:[e.jsx(v,{children:"Title"}),e.jsx(G,{type:"text",value:a,onChange:t=>u(t.target.value)})]}),e.jsxs(h,{isRequired:!0,children:[e.jsx(v,{children:"Level"}),e.jsxs(H,{value:r,onChange:t=>{c(t.target.value)},children:[e.jsx("option",{value:"success",children:"Success"}),e.jsx("option",{value:"info",children:"Info"}),e.jsx("option",{value:"warning",children:"Warning"}),e.jsx("option",{value:"error",children:"Error"})]})]}),e.jsxs(h,{children:[e.jsx(v,{children:"Message"}),e.jsx(A,{placeholder:"Enter additional message",value:n,onChange:t=>d(t.target.value)})]}),e.jsx(M,{isChecked:l,onChange:t=>p(t.target.checked),children:"Hide after 5 seconds"}),e.jsxs(g,{justifyContent:"center",children:[e.jsx(x,{flex:"1",onClick:f,children:"Emit Notification"}),e.jsx(x,{flex:"1",variant:"cancel",onClick:i,children:"Clear notifications"})]})]})})]})})]})}const X=_({component:Q,appMetadata:W});customElements.define("notify-app",X); diff --git a/core-packages/assets/BxnPyM5T0zKE.js b/core-packages/assets/C72iOoj85huU.js similarity index 86% rename from core-packages/assets/BxnPyM5T0zKE.js rename to core-packages/assets/C72iOoj85huU.js index 6cfac15b5..4b875063f 100644 --- a/core-packages/assets/BxnPyM5T0zKE.js +++ b/core-packages/assets/C72iOoj85huU.js @@ -1 +1 @@ -import{n as m,h as g,j as e,a as x,H as j,V as v,b as _}from"./BbD1ObBocF77.js";import{_ as c}from"./CmsKOCeNyeyo.js";import{u as b,a as p}from"./BG7f7T4POdrF.js";import{U as y,L as n}from"./CBwUUj7GVW-6.js";import{D as C}from"./BJ2AHJRZBHRV.js";import{H as k}from"./C0abT8QJ97LC.js";import{C as M}from"./C9CafZahHNwS.js";import{T as l}from"./Ddf4mYqhSsPi.js";import{B as S}from"./C9L897yljxNO.js";const d=m("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});d.displayName="Center";const E={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};g(function(r,a){const{axis:o="both",...s}=r;return e.jsx(m.div,{ref:a,__css:E[o],...s,position:"absolute"})});const L={"i18n-app":{name:"i18n-app",services:{},ui:{references:[{name:"runtime.ApplicationContext",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"i18n-sample-package":{name:"i18n-sample-package",services:{},ui:{references:[]},properties:{}}},A="",P=["de","en","de-simple"];function T(t){switch(t){case"de":return c(()=>import("./CVEPn1OX0dMY.js"),[],import.meta.url).then(r=>r.default);case"en":return c(()=>import("./CpxcYkkJOozD.js"),[],import.meta.url).then(r=>r.default);case"de-simple":return c(()=>import("./D02xQxr8Ohom.js"),[],import.meta.url).then(r=>r.default)}throw new Error(`Unsupported locale: '${t}'`)}const I=x(A),R=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:T,locales:P,packages:L,styles:I},Symbol.toStringTag,{value:"Module"})),u="i18n-app",f=b.bind(void 0,u),h=p.bind(void 0,u),D="i18n-sample-package",w=p.bind(void 0,D);function G(){const t=w();return e.jsxs("div",{children:["Greeting: ",t.formatMessage({id:"greeting"})]})}function H(){const t=h(),r=f("runtime.ApplicationContext"),a=r.getLocale(),o=r.getSupportedLocales(),s="Müller",i=["Hans","Peter","Hape"];return e.jsxs(M,{children:[e.jsx(j,{size:"lg",mb:4,children:t.formatMessage({id:"content.header"})}),e.jsx(l,{mb:4,children:t.formatMessage({id:"content.description"})}),e.jsxs(y,{mb:4,children:[e.jsxs(n,{children:["Current locale: ",a]}),e.jsxs(n,{children:["Supported locales: ",o.join(", ")]}),e.jsxs(n,{children:["Current date and time:"," ",t.formatDate(new Date,{dateStyle:"full",timeStyle:"short"})]}),e.jsxs(n,{children:["Relative Time - 1:"," ",t.formatRelativeTime(1,"minute",{numeric:"auto",style:"long"})]}),e.jsxs(n,{children:["Relative Time - 15:"," ",t.formatRelativeTime(15,"minute",{numeric:"auto",style:"long"})]}),e.jsxs(n,{children:["Relative Time - 0:"," ",t.formatRelativeTime(0,"minute",{numeric:"auto",style:"long"})]}),e.jsxs(n,{children:["Large number (Currency):"," ",t.formatNumber(123456789e-2,{style:"currency",currency:"EUR"})]}),e.jsxs(n,{children:["Large number (Unit):"," ",t.formatNumber(123456789e-2,{style:"unit",unit:"kilogram-per-second"})]}),e.jsxs(n,{children:["Plural - Count 0: ",t.formatMessage({id:"content.testplural"},{n:0})]}),e.jsxs(n,{children:["Plural - Count 1: ",t.formatMessage({id:"content.testplural"},{n:1})]}),e.jsxs(n,{children:["Plural - Count 2: ",t.formatMessage({id:"content.testplural"},{n:2})]}),e.jsxs(n,{children:["List: ",t.formatList(i,{type:"conjunction"})]}),e.jsxs(n,{children:["Gender - female:"," ",t.formatMessage({id:"content.testgender"},{gender:"female",name:s})]}),e.jsxs(n,{children:["Gender - male:"," ",t.formatMessage({id:"content.testgender"},{gender:"male",name:s})]}),e.jsxs(n,{children:["Gender - other:"," ",t.formatMessage({id:"content.testgender"},{gender:"other",name:s})]})]}),e.jsx(d,{mb:4,children:e.jsx(U,{})}),e.jsx(C,{my:4}),e.jsxs(l,{mb:4,children:["This component is from another package which does ",e.jsx("em",{children:"not"})," support de-simple by itself:"]}),e.jsx(G,{})]})}function U(){const t=f("runtime.ApplicationContext"),r=h(),a=t.getSupportedLocales(),o=i=>e.jsx(S,{onClick:()=>t.setLocale(i),children:i??r.formatMessage({id:"picker.default"})},i??""),s=a.map(i=>o(i));return s.unshift(o(void 0)),e.jsxs(v,{children:[e.jsx(l,{children:r.formatMessage({id:"picker.choose"})}),e.jsx(k,{spacing:2,children:s})]})}const N=_({component:H,appMetadata:R});customElements.define("i18n-app",N); +import{n as m,h as g,j as e,a as x,H as j,V as v,b as _}from"./BbD1ObBocF77.js";import{_ as c}from"./CmsKOCeNyeyo.js";import{u as b,a as p}from"./BG7f7T4POdrF.js";import{U as y,L as n}from"./CBwUUj7GVW-6.js";import{D as C}from"./BJ2AHJRZBHRV.js";import{H as k}from"./C0abT8QJ97LC.js";import{C as M}from"./C9CafZahHNwS.js";import{T as l}from"./Ddf4mYqhSsPi.js";import{B as S}from"./C9L897yljxNO.js";const d=m("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});d.displayName="Center";const E={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};g(function(r,a){const{axis:o="both",...s}=r;return e.jsx(m.div,{ref:a,__css:E[o],...s,position:"absolute"})});const L={"i18n-app":{name:"i18n-app",services:{},ui:{references:[{name:"runtime.ApplicationContext",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"i18n-sample-package":{name:"i18n-sample-package",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},A="",P=["de","en","de-simple"];function T(t){switch(t){case"de":return c(()=>import("./CVEPn1OX0dMY.js"),[],import.meta.url).then(r=>r.default);case"en":return c(()=>import("./CpxcYkkJOozD.js"),[],import.meta.url).then(r=>r.default);case"de-simple":return c(()=>import("./D02xQxr8Ohom.js"),[],import.meta.url).then(r=>r.default)}throw new Error(`Unsupported locale: '${t}'`)}const I=x(A),R=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:T,locales:P,packages:L,styles:I},Symbol.toStringTag,{value:"Module"})),u="i18n-app",f=b.bind(void 0,u),h=p.bind(void 0,u),D="i18n-sample-package",w=p.bind(void 0,D);function G(){const t=w();return e.jsxs("div",{children:["Greeting: ",t.formatMessage({id:"greeting"})]})}function H(){const t=h(),r=f("runtime.ApplicationContext"),a=r.getLocale(),o=r.getSupportedLocales(),s="Müller",i=["Hans","Peter","Hape"];return e.jsxs(M,{children:[e.jsx(j,{size:"lg",mb:4,children:t.formatMessage({id:"content.header"})}),e.jsx(l,{mb:4,children:t.formatMessage({id:"content.description"})}),e.jsxs(y,{mb:4,children:[e.jsxs(n,{children:["Current locale: ",a]}),e.jsxs(n,{children:["Supported locales: ",o.join(", ")]}),e.jsxs(n,{children:["Current date and time:"," ",t.formatDate(new Date,{dateStyle:"full",timeStyle:"short"})]}),e.jsxs(n,{children:["Relative Time - 1:"," ",t.formatRelativeTime(1,"minute",{numeric:"auto",style:"long"})]}),e.jsxs(n,{children:["Relative Time - 15:"," ",t.formatRelativeTime(15,"minute",{numeric:"auto",style:"long"})]}),e.jsxs(n,{children:["Relative Time - 0:"," ",t.formatRelativeTime(0,"minute",{numeric:"auto",style:"long"})]}),e.jsxs(n,{children:["Large number (Currency):"," ",t.formatNumber(123456789e-2,{style:"currency",currency:"EUR"})]}),e.jsxs(n,{children:["Large number (Unit):"," ",t.formatNumber(123456789e-2,{style:"unit",unit:"kilogram-per-second"})]}),e.jsxs(n,{children:["Plural - Count 0: ",t.formatMessage({id:"content.testplural"},{n:0})]}),e.jsxs(n,{children:["Plural - Count 1: ",t.formatMessage({id:"content.testplural"},{n:1})]}),e.jsxs(n,{children:["Plural - Count 2: ",t.formatMessage({id:"content.testplural"},{n:2})]}),e.jsxs(n,{children:["List: ",t.formatList(i,{type:"conjunction"})]}),e.jsxs(n,{children:["Gender - female:"," ",t.formatMessage({id:"content.testgender"},{gender:"female",name:s})]}),e.jsxs(n,{children:["Gender - male:"," ",t.formatMessage({id:"content.testgender"},{gender:"male",name:s})]}),e.jsxs(n,{children:["Gender - other:"," ",t.formatMessage({id:"content.testgender"},{gender:"other",name:s})]})]}),e.jsx(d,{mb:4,children:e.jsx(U,{})}),e.jsx(C,{my:4}),e.jsxs(l,{mb:4,children:["This component is from another package which does ",e.jsx("em",{children:"not"})," support de-simple by itself:"]}),e.jsx(G,{})]})}function U(){const t=f("runtime.ApplicationContext"),r=h(),a=t.getSupportedLocales(),o=i=>e.jsx(S,{onClick:()=>t.setLocale(i),children:i??r.formatMessage({id:"picker.default"})},i??""),s=a.map(i=>o(i));return s.unshift(o(void 0)),e.jsxs(v,{children:[e.jsx(l,{children:r.formatMessage({id:"picker.choose"})}),e.jsx(k,{spacing:2,children:s})]})}const N=_({component:H,appMetadata:R});customElements.define("i18n-app",N); diff --git a/core-packages/assets/xUdiXfb5FBBK.js b/core-packages/assets/CRzwQBSmWqkt.js similarity index 98% rename from core-packages/assets/xUdiXfb5FBBK.js rename to core-packages/assets/CRzwQBSmWqkt.js index cab6ae498..4941b3653 100644 --- a/core-packages/assets/xUdiXfb5FBBK.js +++ b/core-packages/assets/CRzwQBSmWqkt.js @@ -1 +1 @@ -import{f as M,r as a,j as t,a3 as De,d as $e,e as Je,u as Qe,D as se,o as y,x as Te,h as B,F as Ze,G as et,n as Z,l as Re,a as tt,H as R,S as ie,O as z,b as nt}from"./BbD1ObBocF77.js";import{_ as Ae}from"./CmsKOCeNyeyo.js";import{a as rt}from"./BG7f7T4POdrF.js";import{I as le}from"./DUWS-ykArEfP.js";import{c as st,t as Fe,a as Me}from"./D-Zd7p0hx1Jn.js";import{a as ae,C as at}from"./C9CafZahHNwS.js";import{u as ot}from"./DCmbPgooq4UU.js";import{T as N}from"./Ddf4mYqhSsPi.js";import{S as it}from"./BHl-gw49ttT4.js";import{R as Oe,a as P}from"./wGcAn53r2nTa.js";import"./Bux-xGeHLEc6.js";function lt(e={}){const{onChange:r,precision:o,defaultValue:s,value:u,step:i=1,min:c=Number.MIN_SAFE_INTEGER,max:b=Number.MAX_SAFE_INTEGER,keepWithinRange:m=!0}=e,C=M(r),[_,k]=a.useState(()=>s==null?"":oe(s,i,o)??""),S=typeof u<"u",g=S?u:_,U=Ve(E(g),i),D=o??U,v=a.useCallback(d=>{d!==g&&(S||k(d.toString()),C?.(d.toString(),E(d)))},[C,S,g]),j=a.useCallback(d=>{let p=d;return m&&(p=st(p,c,b)),Fe(p,D)},[D,m,b,c]),K=a.useCallback((d=i)=>{let p;g===""?p=E(d):p=E(g)+d,p=j(p),v(p)},[j,i,v,g]),L=a.useCallback((d=i)=>{let p;g===""?p=E(-d):p=E(g)-d,p=j(p),v(p)},[j,i,v,g]),G=a.useCallback(()=>{let d;s==null?d="":d=oe(s,i,o)??c,v(d)},[s,o,i,v,c]),te=a.useCallback(d=>{const p=oe(d,i,D)??c;v(p)},[D,i,v,c]),A=E(g);return{isOutOfRange:A>b||A{let s=null;const u=()=>o();return r!==null&&(s=window.setInterval(u,r)),()=>{s&&window.clearInterval(s)}},[r,o])}const ct=e=>t.jsx(De,{viewBox:"0 0 24 24",...e,children:t.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),mt=e=>t.jsx(De,{viewBox:"0 0 24 24",...e,children:t.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function Pe(e,r,o,s){a.useEffect(()=>{if(!e.current||!s)return;const u=e.current.ownerDocument.defaultView??window,i=Array.isArray(r)?r:[r],c=new u.MutationObserver(b=>{for(const m of b)m.type==="attributes"&&m.attributeName&&i.includes(m.attributeName)&&o(m)});return c.observe(e.current,{attributes:!0,attributeFilter:i}),()=>c.disconnect()})}const dt=50,_e=300;function pt(e,r){const[o,s]=a.useState(!1),[u,i]=a.useState(null),[c,b]=a.useState(!0),m=a.useRef(null),C=()=>clearTimeout(m.current);ut(()=>{u==="increment"&&e(),u==="decrement"&&r()},o?dt:null);const _=a.useCallback(()=>{c&&e(),m.current=setTimeout(()=>{b(!1),s(!0),i("increment")},_e)},[e,c]),k=a.useCallback(()=>{c&&r(),m.current=setTimeout(()=>{b(!1),s(!0),i("decrement")},_e)},[r,c]),S=a.useCallback(()=>{b(!0),s(!1),C()},[]);return a.useEffect(()=>()=>C(),[]),{up:_,down:k,stop:S,isSpinning:o}}const ft=/^[Ee0-9+\-.]$/;function bt(e){return ft.test(e)}function ht(e,r){if(e.key==null)return!0;const o=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||o?!0:r(e.key)}function gt(e={}){const{focusInputOnChange:r=!0,clampValueOnBlur:o=!0,keepWithinRange:s=!0,min:u=Number.MIN_SAFE_INTEGER,max:i=Number.MAX_SAFE_INTEGER,step:c=1,isReadOnly:b,isDisabled:m,isRequired:C,isInvalid:_,pattern:k="[0-9]*(.[0-9]+)?",inputMode:S="decimal",allowMouseWheel:g,id:U,onChange:D,precision:v,name:j,"aria-describedby":K,"aria-label":L,"aria-labelledby":G,onFocus:te,onBlur:A,onInvalid:ce,getAriaValueText:me,isValidCharacter:de,format:d,parse:p,...We}=e,pe=M(te),fe=M(A),ne=M(ce),W=M(de??bt),be=M(me),l=lt(e),{update:O,increment:he,decrement:ge}=l,[He,re]=a.useState(!1),H=!(b||m),w=a.useRef(null),q=a.useRef(null),xe=a.useRef(null),ve=a.useRef(null),X=a.useCallback(n=>n.split("").filter(W).join(""),[W]),Y=a.useCallback(n=>p?.(n)??n,[p]),T=a.useCallback(n=>(d?.(n)??n).toString(),[d]);$e(()=>{(l.valueAsNumber>i||l.valueAsNumber{if(!w.current)return;if(w.current.value!=l.value){const f=Y(w.current.value);l.setValue(X(f))}},[Y,X]);const $=a.useCallback((n=c)=>{H&&he(n)},[he,H,c]),J=a.useCallback((n=c)=>{H&&ge(n)},[ge,H,c]),h=pt($,J);Pe(xe,"disabled",h.stop,h.isSpinning),Pe(ve,"disabled",h.stop,h.isSpinning);const ye=a.useCallback(n=>{if(n.nativeEvent.isComposing)return;const x=Y(n.currentTarget.value);O(X(x)),q.current={start:n.currentTarget.selectionStart,end:n.currentTarget.selectionEnd}},[O,X,Y]),Ne=a.useCallback(n=>{pe?.(n),q.current&&(n.currentTarget.selectionStart=q.current.start??n.currentTarget.value?.length,n.currentTarget.selectionEnd=q.current.end??n.currentTarget.selectionStart)},[pe]),Ce=a.useCallback(n=>{if(n.nativeEvent.isComposing)return;ht(n,W)||n.preventDefault();const f=Ie(n)*c,x=n.key,V={ArrowUp:()=>$(f),ArrowDown:()=>J(f),Home:()=>O(u),End:()=>O(i)}[x];V&&(n.preventDefault(),V(n))},[W,c,$,J,O,u,i]),Ie=n=>{let f=1;return(n.metaKey||n.ctrlKey)&&(f=.1),n.shiftKey&&(f=10),f},Se=a.useMemo(()=>{const n=be?.(l.value);if(n!=null)return n;const f=l.value.toString();return f||void 0},[l.value,be]),je=a.useCallback(()=>{let n=l.value;if(l.value==="")return;/^[eE]/.test(l.value.toString())?l.setValue(""):(l.valueAsNumberi&&(n=i),l.cast(n))},[l,i,u]),we=a.useCallback(()=>{re(!1),o&&je()},[o,re,je]),Q=a.useCallback(()=>{r&&requestAnimationFrame(()=>{w.current?.focus()})},[r]),Ee=a.useCallback(n=>{n.preventDefault(),h.up(),Q()},[Q,h]),ke=a.useCallback(n=>{n.preventDefault(),h.down(),Q()},[Q,h]);Qe(()=>w.current,"wheel",n=>{const x=(w.current?.ownerDocument??document).activeElement===w.current;if(!g||!x)return;n.preventDefault();const I=Ie(n)*c,V=Math.sign(n.deltaY);V===-1?$(I):V===1&&J(I)},{passive:!1});const qe=a.useCallback((n={},f=null)=>{const x=m||s&&l.isAtMax;return{...n,ref:se(f,xe),role:"button",tabIndex:-1,onPointerDown:y(n.onPointerDown,I=>{I.button!==0||x||Ee(I)}),onPointerLeave:y(n.onPointerLeave,h.stop),onPointerUp:y(n.onPointerUp,h.stop),disabled:x,"aria-disabled":ae(x)}},[l.isAtMax,s,Ee,h.stop,m]),Xe=a.useCallback((n={},f=null)=>{const x=m||s&&l.isAtMin;return{...n,ref:se(f,ve),role:"button",tabIndex:-1,onPointerDown:y(n.onPointerDown,I=>{I.button!==0||x||ke(I)}),onPointerLeave:y(n.onPointerLeave,h.stop),onPointerUp:y(n.onPointerUp,h.stop),disabled:x,"aria-disabled":ae(x)}},[l.isAtMin,s,ke,h.stop,m]),Ye=a.useCallback((n={},f=null)=>({name:j,inputMode:S,type:"text",pattern:k,"aria-labelledby":G,"aria-label":L,"aria-describedby":K,id:U,disabled:m,...n,readOnly:n.readOnly??b,"aria-readonly":n.readOnly??b,"aria-required":n.required??C,required:n.required??C,ref:se(w,f),value:T(l.value),role:"spinbutton","aria-valuemin":u,"aria-valuemax":i,"aria-valuenow":Number.isNaN(l.valueAsNumber)?void 0:l.valueAsNumber,"aria-invalid":ae(_??l.isOutOfRange),"aria-valuetext":Se,autoComplete:"off",autoCorrect:"off",onChange:y(n.onChange,ye),onKeyDown:y(n.onKeyDown,Ce),onFocus:y(n.onFocus,Ne,()=>re(!0)),onBlur:y(n.onBlur,fe,we)}),[j,S,k,G,L,T,K,U,m,C,b,_,l.value,l.valueAsNumber,l.isOutOfRange,u,i,Se,ye,Ce,Ne,fe,we]);return{value:T(l.value),valueAsNumber:l.valueAsNumber,isFocused:He,isDisabled:m,isReadOnly:b,getIncrementButtonProps:qe,getDecrementButtonProps:Xe,getInputProps:Ye,htmlProps:We}}const[xt,ee]=Te({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[vt,ue]=Te({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),ze=B(function(r,o){const s=Ze("NumberInput",r),u=et(r),i=ot(u),{htmlProps:c,...b}=gt(i),m=a.useMemo(()=>b,[b]);return t.jsx(vt,{value:m,children:t.jsx(xt,{value:s,children:t.jsx(Z.div,{...c,ref:o,className:Re("chakra-numberinput",r.className),__css:{position:"relative",zIndex:0,...s.root}})})})});ze.displayName="NumberInput";const Be=B(function(r,o){const s=ee();return t.jsx(Z.div,{"aria-hidden":!0,ref:o,...r,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...s.stepperGroup}})});Be.displayName="NumberInputStepper";const Ue=B(function(r,o){const{getInputProps:s}=ue(),u=s(r,o),i=ee();return t.jsx(Z.input,{...u,className:Re("chakra-numberinput__field",r.className),__css:{width:"100%",...i.field}})});Ue.displayName="NumberInputField";const Ke=Z("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Le=B(function(r,o){const s=ee(),{getDecrementButtonProps:u}=ue(),i=u(r,o);return t.jsx(Ke,{...i,__css:s.stepper,children:r.children??t.jsx(ct,{})})});Le.displayName="NumberDecrementStepper";const Ge=B(function(r,o){const{getIncrementButtonProps:s}=ue(),u=s(r,o),i=ee();return t.jsx(Ke,{...u,__css:i.stepper,children:r.children??t.jsx(mt,{})})});Ge.displayName="NumberIncrementStepper";const yt={"i18n-howto-app":{name:"i18n-howto-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},Nt="",Ct=["de","en"];function It(e){switch(e){case"de":return Ae(()=>import("./BMGLgZQdGFiZ.js"),[],import.meta.url).then(r=>r.default);case"en":return Ae(()=>import("./DRvIJMpysLDi.js"),[],import.meta.url).then(r=>r.default)}throw new Error(`Unsupported locale: '${e}'`)}const St=tt(Nt),jt=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:It,locales:Ct,packages:yt,styles:St},Symbol.toStringTag,{value:"Module"})),wt="i18n-howto-app",F=rt.bind(void 0,wt);function Et(){const e=F();return t.jsxs(at,{children:[t.jsx(R,{as:"h1",size:"lg",children:e.formatMessage({id:"heading"})}),t.jsx(N,{children:e.formatMessage({id:"text"})}),t.jsx(kt,{})]})}function kt(){return t.jsxs(ie,{mb:5,mt:5,divider:t.jsx(it,{borderColor:"gray.200"}),spacing:"24px",align:"stretch",children:[t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(At,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(Mt,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(Pt,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(_t,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(Dt,{})})]})}function At(){const e=F(),[r,o]=a.useState("");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"interpolation.heading"})}),t.jsx(le,{value:r,onChange:s=>o(s.target.value),placeholder:e.formatMessage({id:"interpolation.placeholder"}),size:"sm"}),t.jsx(N,{mb:"8px",children:e.formatMessage({id:"interpolation.value"},{name:r})})]})}function Mt(){const e=F(),[r,o]=a.useState("1");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"plurals.heading"})}),t.jsx(Oe,{onChange:o,value:r,children:t.jsxs(ie,{spacing:4,direction:"row",children:[t.jsx(P,{size:"md",value:"0",children:"0"}),t.jsx(P,{size:"md",value:"1",children:"1"}),t.jsx(P,{size:"md",value:"42",children:"42"}),t.jsx(P,{size:"md",value:"99",children:"99"})]})}),t.jsx(N,{mb:"8px",children:e.formatMessage({id:"plurals.value"},{n:r})})]})}function Pt(){const e=F(),[r,o]=a.useState(""),[s,u]=a.useState("male");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"selection.heading"})}),t.jsx(le,{value:r,onChange:i=>o(i.target.value),placeholder:e.formatMessage({id:"interpolation.placeholder"}),size:"sm"}),t.jsx(Oe,{onChange:u,value:s,children:t.jsxs(ie,{spacing:4,direction:"row",children:[t.jsx(P,{size:"md",value:"female",children:e.formatMessage({id:"selection.gender.female"})}),t.jsx(P,{size:"md",value:"male",children:e.formatMessage({id:"selection.gender.male"})}),t.jsx(P,{size:"md",value:"other",children:e.formatMessage({id:"selection.gender.other"})})]})}),t.jsx(N,{mb:"8px",children:e.formatMessage({id:"selection.value"},{name:r,gender:s})})]})}function _t(){const e=F(),[r,o]=a.useState("424224.24");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"numberformat.heading"})}),t.jsxs(ze,{onChange:s=>o(s),value:r,precision:2,step:.25,children:[t.jsx(Ue,{}),t.jsxs(Be,{children:[t.jsx(Ge,{}),t.jsx(Le,{})]})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.currency1"}),e.formatNumber(+r,{style:"currency",currency:"EUR"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.currency2"}),e.formatNumber(+r,{style:"currency",currency:"EUR",currencyDisplay:"name"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.unit1"}),e.formatNumber(+r,{style:"unit",unit:"terabyte-per-second"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.unit2"}),e.formatNumber(+r,{style:"unit",unit:"terabyte-per-second",unitDisplay:"long"})]})]})}function Dt(){const e=F(),[r,o]=a.useState("2023-02-19T19:02");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"datetimeformat.heading"})}),t.jsx(le,{value:r,onChange:s=>o(s.target.value),size:"md",type:"datetime-local"}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"datetimeformat.timelabel"}),e.formatDate(r,{dateStyle:"full",timeStyle:"short"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"datetimeformat.relativetimelabel"}),e.formatRelativeTime(Tt(r),"minute",{numeric:"auto",style:"long"})]})]})}function Tt(e){const r=new Date(e).getTime()-new Date().getTime();return Math.round(r/6e4)}const Rt=nt({component:Et,appMetadata:jt,async resolveConfig(e){const r=e.getAttribute("forced-locale");if(r)return{locale:r}}});customElements.define("i18n-howto",Rt);const Ft=document.getElementById("container");Ot();function Ot(){const e=window.location.search,o=new URLSearchParams(e).get("lang"),s=document.createElement("i18n-howto");o&&s.setAttribute("forced-locale",o),Ft.appendChild(s)} +import{f as M,r as a,j as t,a3 as De,d as $e,e as Je,u as Qe,D as se,o as y,x as Te,h as B,F as Ze,G as et,n as Z,l as Re,a as tt,H as R,S as ie,O as z,b as nt}from"./BbD1ObBocF77.js";import{_ as Ae}from"./CmsKOCeNyeyo.js";import{a as rt}from"./BG7f7T4POdrF.js";import{I as le}from"./DUWS-ykArEfP.js";import{c as st,t as Fe,a as Me}from"./D-Zd7p0hx1Jn.js";import{a as ae,C as at}from"./C9CafZahHNwS.js";import{u as ot}from"./DCmbPgooq4UU.js";import{T as N}from"./Ddf4mYqhSsPi.js";import{S as it}from"./BHl-gw49ttT4.js";import{R as Oe,a as P}from"./wGcAn53r2nTa.js";import"./Bux-xGeHLEc6.js";function lt(e={}){const{onChange:r,precision:o,defaultValue:s,value:u,step:i=1,min:c=Number.MIN_SAFE_INTEGER,max:b=Number.MAX_SAFE_INTEGER,keepWithinRange:m=!0}=e,C=M(r),[_,k]=a.useState(()=>s==null?"":oe(s,i,o)??""),S=typeof u<"u",g=S?u:_,U=Ve(E(g),i),D=o??U,v=a.useCallback(d=>{d!==g&&(S||k(d.toString()),C?.(d.toString(),E(d)))},[C,S,g]),j=a.useCallback(d=>{let p=d;return m&&(p=st(p,c,b)),Fe(p,D)},[D,m,b,c]),K=a.useCallback((d=i)=>{let p;g===""?p=E(d):p=E(g)+d,p=j(p),v(p)},[j,i,v,g]),L=a.useCallback((d=i)=>{let p;g===""?p=E(-d):p=E(g)-d,p=j(p),v(p)},[j,i,v,g]),G=a.useCallback(()=>{let d;s==null?d="":d=oe(s,i,o)??c,v(d)},[s,o,i,v,c]),te=a.useCallback(d=>{const p=oe(d,i,D)??c;v(p)},[D,i,v,c]),A=E(g);return{isOutOfRange:A>b||A{let s=null;const u=()=>o();return r!==null&&(s=window.setInterval(u,r)),()=>{s&&window.clearInterval(s)}},[r,o])}const ct=e=>t.jsx(De,{viewBox:"0 0 24 24",...e,children:t.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),mt=e=>t.jsx(De,{viewBox:"0 0 24 24",...e,children:t.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function Pe(e,r,o,s){a.useEffect(()=>{if(!e.current||!s)return;const u=e.current.ownerDocument.defaultView??window,i=Array.isArray(r)?r:[r],c=new u.MutationObserver(b=>{for(const m of b)m.type==="attributes"&&m.attributeName&&i.includes(m.attributeName)&&o(m)});return c.observe(e.current,{attributes:!0,attributeFilter:i}),()=>c.disconnect()})}const dt=50,_e=300;function pt(e,r){const[o,s]=a.useState(!1),[u,i]=a.useState(null),[c,b]=a.useState(!0),m=a.useRef(null),C=()=>clearTimeout(m.current);ut(()=>{u==="increment"&&e(),u==="decrement"&&r()},o?dt:null);const _=a.useCallback(()=>{c&&e(),m.current=setTimeout(()=>{b(!1),s(!0),i("increment")},_e)},[e,c]),k=a.useCallback(()=>{c&&r(),m.current=setTimeout(()=>{b(!1),s(!0),i("decrement")},_e)},[r,c]),S=a.useCallback(()=>{b(!0),s(!1),C()},[]);return a.useEffect(()=>()=>C(),[]),{up:_,down:k,stop:S,isSpinning:o}}const ft=/^[Ee0-9+\-.]$/;function bt(e){return ft.test(e)}function ht(e,r){if(e.key==null)return!0;const o=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||o?!0:r(e.key)}function gt(e={}){const{focusInputOnChange:r=!0,clampValueOnBlur:o=!0,keepWithinRange:s=!0,min:u=Number.MIN_SAFE_INTEGER,max:i=Number.MAX_SAFE_INTEGER,step:c=1,isReadOnly:b,isDisabled:m,isRequired:C,isInvalid:_,pattern:k="[0-9]*(.[0-9]+)?",inputMode:S="decimal",allowMouseWheel:g,id:U,onChange:D,precision:v,name:j,"aria-describedby":K,"aria-label":L,"aria-labelledby":G,onFocus:te,onBlur:A,onInvalid:ce,getAriaValueText:me,isValidCharacter:de,format:d,parse:p,...We}=e,pe=M(te),fe=M(A),ne=M(ce),W=M(de??bt),be=M(me),l=lt(e),{update:O,increment:he,decrement:ge}=l,[He,re]=a.useState(!1),H=!(b||m),w=a.useRef(null),q=a.useRef(null),xe=a.useRef(null),ve=a.useRef(null),X=a.useCallback(n=>n.split("").filter(W).join(""),[W]),Y=a.useCallback(n=>p?.(n)??n,[p]),T=a.useCallback(n=>(d?.(n)??n).toString(),[d]);$e(()=>{(l.valueAsNumber>i||l.valueAsNumber{if(!w.current)return;if(w.current.value!=l.value){const f=Y(w.current.value);l.setValue(X(f))}},[Y,X]);const $=a.useCallback((n=c)=>{H&&he(n)},[he,H,c]),J=a.useCallback((n=c)=>{H&&ge(n)},[ge,H,c]),h=pt($,J);Pe(xe,"disabled",h.stop,h.isSpinning),Pe(ve,"disabled",h.stop,h.isSpinning);const ye=a.useCallback(n=>{if(n.nativeEvent.isComposing)return;const x=Y(n.currentTarget.value);O(X(x)),q.current={start:n.currentTarget.selectionStart,end:n.currentTarget.selectionEnd}},[O,X,Y]),Ne=a.useCallback(n=>{pe?.(n),q.current&&(n.currentTarget.selectionStart=q.current.start??n.currentTarget.value?.length,n.currentTarget.selectionEnd=q.current.end??n.currentTarget.selectionStart)},[pe]),Ce=a.useCallback(n=>{if(n.nativeEvent.isComposing)return;ht(n,W)||n.preventDefault();const f=Ie(n)*c,x=n.key,V={ArrowUp:()=>$(f),ArrowDown:()=>J(f),Home:()=>O(u),End:()=>O(i)}[x];V&&(n.preventDefault(),V(n))},[W,c,$,J,O,u,i]),Ie=n=>{let f=1;return(n.metaKey||n.ctrlKey)&&(f=.1),n.shiftKey&&(f=10),f},Se=a.useMemo(()=>{const n=be?.(l.value);if(n!=null)return n;const f=l.value.toString();return f||void 0},[l.value,be]),je=a.useCallback(()=>{let n=l.value;if(l.value==="")return;/^[eE]/.test(l.value.toString())?l.setValue(""):(l.valueAsNumberi&&(n=i),l.cast(n))},[l,i,u]),we=a.useCallback(()=>{re(!1),o&&je()},[o,re,je]),Q=a.useCallback(()=>{r&&requestAnimationFrame(()=>{w.current?.focus()})},[r]),Ee=a.useCallback(n=>{n.preventDefault(),h.up(),Q()},[Q,h]),ke=a.useCallback(n=>{n.preventDefault(),h.down(),Q()},[Q,h]);Qe(()=>w.current,"wheel",n=>{const x=(w.current?.ownerDocument??document).activeElement===w.current;if(!g||!x)return;n.preventDefault();const I=Ie(n)*c,V=Math.sign(n.deltaY);V===-1?$(I):V===1&&J(I)},{passive:!1});const qe=a.useCallback((n={},f=null)=>{const x=m||s&&l.isAtMax;return{...n,ref:se(f,xe),role:"button",tabIndex:-1,onPointerDown:y(n.onPointerDown,I=>{I.button!==0||x||Ee(I)}),onPointerLeave:y(n.onPointerLeave,h.stop),onPointerUp:y(n.onPointerUp,h.stop),disabled:x,"aria-disabled":ae(x)}},[l.isAtMax,s,Ee,h.stop,m]),Xe=a.useCallback((n={},f=null)=>{const x=m||s&&l.isAtMin;return{...n,ref:se(f,ve),role:"button",tabIndex:-1,onPointerDown:y(n.onPointerDown,I=>{I.button!==0||x||ke(I)}),onPointerLeave:y(n.onPointerLeave,h.stop),onPointerUp:y(n.onPointerUp,h.stop),disabled:x,"aria-disabled":ae(x)}},[l.isAtMin,s,ke,h.stop,m]),Ye=a.useCallback((n={},f=null)=>({name:j,inputMode:S,type:"text",pattern:k,"aria-labelledby":G,"aria-label":L,"aria-describedby":K,id:U,disabled:m,...n,readOnly:n.readOnly??b,"aria-readonly":n.readOnly??b,"aria-required":n.required??C,required:n.required??C,ref:se(w,f),value:T(l.value),role:"spinbutton","aria-valuemin":u,"aria-valuemax":i,"aria-valuenow":Number.isNaN(l.valueAsNumber)?void 0:l.valueAsNumber,"aria-invalid":ae(_??l.isOutOfRange),"aria-valuetext":Se,autoComplete:"off",autoCorrect:"off",onChange:y(n.onChange,ye),onKeyDown:y(n.onKeyDown,Ce),onFocus:y(n.onFocus,Ne,()=>re(!0)),onBlur:y(n.onBlur,fe,we)}),[j,S,k,G,L,T,K,U,m,C,b,_,l.value,l.valueAsNumber,l.isOutOfRange,u,i,Se,ye,Ce,Ne,fe,we]);return{value:T(l.value),valueAsNumber:l.valueAsNumber,isFocused:He,isDisabled:m,isReadOnly:b,getIncrementButtonProps:qe,getDecrementButtonProps:Xe,getInputProps:Ye,htmlProps:We}}const[xt,ee]=Te({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[vt,ue]=Te({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),ze=B(function(r,o){const s=Ze("NumberInput",r),u=et(r),i=ot(u),{htmlProps:c,...b}=gt(i),m=a.useMemo(()=>b,[b]);return t.jsx(vt,{value:m,children:t.jsx(xt,{value:s,children:t.jsx(Z.div,{...c,ref:o,className:Re("chakra-numberinput",r.className),__css:{position:"relative",zIndex:0,...s.root}})})})});ze.displayName="NumberInput";const Be=B(function(r,o){const s=ee();return t.jsx(Z.div,{"aria-hidden":!0,ref:o,...r,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...s.stepperGroup}})});Be.displayName="NumberInputStepper";const Ue=B(function(r,o){const{getInputProps:s}=ue(),u=s(r,o),i=ee();return t.jsx(Z.input,{...u,className:Re("chakra-numberinput__field",r.className),__css:{width:"100%",...i.field}})});Ue.displayName="NumberInputField";const Ke=Z("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Le=B(function(r,o){const s=ee(),{getDecrementButtonProps:u}=ue(),i=u(r,o);return t.jsx(Ke,{...i,__css:s.stepper,children:r.children??t.jsx(ct,{})})});Le.displayName="NumberDecrementStepper";const Ge=B(function(r,o){const{getIncrementButtonProps:s}=ue(),u=s(r,o),i=ee();return t.jsx(Ke,{...u,__css:i.stepper,children:r.children??t.jsx(mt,{})})});Ge.displayName="NumberIncrementStepper";const yt={"i18n-howto-app":{name:"i18n-howto-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},Nt="",Ct=["de","en"];function It(e){switch(e){case"de":return Ae(()=>import("./BMGLgZQdGFiZ.js"),[],import.meta.url).then(r=>r.default);case"en":return Ae(()=>import("./DRvIJMpysLDi.js"),[],import.meta.url).then(r=>r.default)}throw new Error(`Unsupported locale: '${e}'`)}const St=tt(Nt),jt=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:It,locales:Ct,packages:yt,styles:St},Symbol.toStringTag,{value:"Module"})),wt="i18n-howto-app",F=rt.bind(void 0,wt);function Et(){const e=F();return t.jsxs(at,{children:[t.jsx(R,{as:"h1",size:"lg",children:e.formatMessage({id:"heading"})}),t.jsx(N,{children:e.formatMessage({id:"text"})}),t.jsx(kt,{})]})}function kt(){return t.jsxs(ie,{mb:5,mt:5,divider:t.jsx(it,{borderColor:"gray.200"}),spacing:"24px",align:"stretch",children:[t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(At,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(Mt,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(Pt,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(_t,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(Dt,{})})]})}function At(){const e=F(),[r,o]=a.useState("");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"interpolation.heading"})}),t.jsx(le,{value:r,onChange:s=>o(s.target.value),placeholder:e.formatMessage({id:"interpolation.placeholder"}),size:"sm"}),t.jsx(N,{mb:"8px",children:e.formatMessage({id:"interpolation.value"},{name:r})})]})}function Mt(){const e=F(),[r,o]=a.useState("1");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"plurals.heading"})}),t.jsx(Oe,{onChange:o,value:r,children:t.jsxs(ie,{spacing:4,direction:"row",children:[t.jsx(P,{size:"md",value:"0",children:"0"}),t.jsx(P,{size:"md",value:"1",children:"1"}),t.jsx(P,{size:"md",value:"42",children:"42"}),t.jsx(P,{size:"md",value:"99",children:"99"})]})}),t.jsx(N,{mb:"8px",children:e.formatMessage({id:"plurals.value"},{n:r})})]})}function Pt(){const e=F(),[r,o]=a.useState(""),[s,u]=a.useState("male");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"selection.heading"})}),t.jsx(le,{value:r,onChange:i=>o(i.target.value),placeholder:e.formatMessage({id:"interpolation.placeholder"}),size:"sm"}),t.jsx(Oe,{onChange:u,value:s,children:t.jsxs(ie,{spacing:4,direction:"row",children:[t.jsx(P,{size:"md",value:"female",children:e.formatMessage({id:"selection.gender.female"})}),t.jsx(P,{size:"md",value:"male",children:e.formatMessage({id:"selection.gender.male"})}),t.jsx(P,{size:"md",value:"other",children:e.formatMessage({id:"selection.gender.other"})})]})}),t.jsx(N,{mb:"8px",children:e.formatMessage({id:"selection.value"},{name:r,gender:s})})]})}function _t(){const e=F(),[r,o]=a.useState("424224.24");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"numberformat.heading"})}),t.jsxs(ze,{onChange:s=>o(s),value:r,precision:2,step:.25,children:[t.jsx(Ue,{}),t.jsxs(Be,{children:[t.jsx(Ge,{}),t.jsx(Le,{})]})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.currency1"}),e.formatNumber(+r,{style:"currency",currency:"EUR"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.currency2"}),e.formatNumber(+r,{style:"currency",currency:"EUR",currencyDisplay:"name"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.unit1"}),e.formatNumber(+r,{style:"unit",unit:"terabyte-per-second"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.unit2"}),e.formatNumber(+r,{style:"unit",unit:"terabyte-per-second",unitDisplay:"long"})]})]})}function Dt(){const e=F(),[r,o]=a.useState("2023-02-19T19:02");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"datetimeformat.heading"})}),t.jsx(le,{value:r,onChange:s=>o(s.target.value),size:"md",type:"datetime-local"}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"datetimeformat.timelabel"}),e.formatDate(r,{dateStyle:"full",timeStyle:"short"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"datetimeformat.relativetimelabel"}),e.formatRelativeTime(Tt(r),"minute",{numeric:"auto",style:"long"})]})]})}function Tt(e){const r=new Date(e).getTime()-new Date().getTime();return Math.round(r/6e4)}const Rt=nt({component:Et,appMetadata:jt,async resolveConfig(e){const r=e.getAttribute("forced-locale");if(r)return{locale:r}}});customElements.define("i18n-howto",Rt);const Ft=document.getElementById("container");Ot();function Ot(){const e=window.location.search,o=new URLSearchParams(e).get("lang"),s=document.createElement("i18n-howto");o&&s.setAttribute("forced-locale",o),Ft.appendChild(s)} diff --git a/core-packages/assets/DtDu0RDjOfBQ.js b/core-packages/assets/CednDTG7zMIG.js similarity index 53% rename from core-packages/assets/DtDu0RDjOfBQ.js rename to core-packages/assets/CednDTG7zMIG.js index fc5492732..4759a791c 100644 --- a/core-packages/assets/DtDu0RDjOfBQ.js +++ b/core-packages/assets/CednDTG7zMIG.js @@ -1,3 +1,3 @@ -import{j as e,a as r,b as o}from"./BbD1ObBocF77.js";function t(){return e.jsxs("div",{className:"sample-component-with-css",children:["The text in this div should be ",e.jsx("strong",{children:"RED"})," because it is styled using external css."]})}const i={"styling-app":{name:"styling-app",services:{},ui:{references:[]},properties:{}},"styling-sample-components":{name:"styling-sample-components",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},p=".sample-component-with-css{color:red;font-size:1.25em}",c=[];function a(s){throw new Error(`Unsupported locale: '${s}'`)}const n=r(p),l=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:a,locales:c,packages:i,styles:n},Symbol.toStringTag,{value:"Module"})),m=o({component:t,appMetadata:l});console.log(`CSS: +import{j as e,a as r,b as o}from"./BbD1ObBocF77.js";function t(){return e.jsxs("div",{className:"sample-component-with-css",children:["The text in this div should be ",e.jsx("strong",{children:"RED"})," because it is styled using external css."]})}const i={"styling-app":{name:"styling-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"styling-sample-components":{name:"styling-sample-components",services:{},ui:{references:[]},properties:{}}},p=".sample-component-with-css{color:red;font-size:1.25em}",c=[];function a(s){throw new Error(`Unsupported locale: '${s}'`)}const n=r(p),l=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:a,locales:c,packages:i,styles:n},Symbol.toStringTag,{value:"Module"})),m=o({component:t,appMetadata:l});console.log(`CSS: ${n.value}`);customElements.define("styling-app",m); diff --git a/core-packages/assets/B2Qk5A_HDxG-.js b/core-packages/assets/DpQrQ2awXFXH.js similarity index 99% rename from core-packages/assets/B2Qk5A_HDxG-.js rename to core-packages/assets/DpQrQ2awXFXH.js index a71d7c54c..6cb5f375d 100644 --- a/core-packages/assets/B2Qk5A_HDxG-.js +++ b/core-packages/assets/DpQrQ2awXFXH.js @@ -1,4 +1,4 @@ -var _t=pe=>{throw TypeError(pe)};var kt=(pe,le,Oe)=>le.has(pe)||_t("Cannot "+Oe);var St=(pe,le,Oe)=>(kt(pe,le,"read from private field"),Oe?Oe.call(pe):le.get(pe)),Ct=(pe,le,Oe)=>le.has(pe)?_t("Cannot add the same private member more than once"):le instanceof WeakSet?le.add(pe):le.set(pe,Oe),Ot=(pe,le,Oe,o)=>(kt(pe,le,"write to private field"),o?o.call(pe,Oe):le.set(pe,Oe),Oe);import{c as Dt,a as Rt,r as mt,a1 as Lt,a2 as Bt,j as Ze,O as ht,V as zt,b as Nt}from"./BbD1ObBocF77.js";import{H as Tt}from"./CG8OAwIhVllu.js";import{u as qt}from"./BG7f7T4POdrF.js";import{T as Vt}from"./Ddf4mYqhSsPi.js";const Kt="https://registry.npmjs.org/@open-pioneer/runtime";var lt;class Wt{constructor(le){Ct(this,lt);Ot(this,lt,le.references.http)}async fetchResource(){const le=await St(this,lt).fetch(Kt,{headers:{Accept:"application/json"}});if(!le.ok)throw new Error("Request failed: "+le.status);return await le.json()}}lt=new WeakMap;const Ht=Dt("http-app:ExampleInterceptor");class Ut{async beforeRequest(le){Ht.info("interceptor invoked with",le),le.target.searchParams.set("a","b")}}const Gt={"http-app":{name:"http-app",services:{HttpClient:{name:"HttpClient",clazz:Wt,provides:[{name:"http-app.HttpClient",qualifier:void 0}],references:{http:{name:"http.HttpService",qualifier:void 0,all:!1}}},ExampleInterceptor:{name:"ExampleInterceptor",clazz:Ut,provides:[{name:"http.Interceptor",qualifier:void 0}],references:{}}},ui:{references:[{name:"http-app.HttpClient",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Tt,provides:[{name:"http.HttpService",qualifier:void 0}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},Jt="",$t=[];function Yt(pe){throw new Error(`Unsupported locale: '${pe}'`)}const Qt=Rt(Jt),Zt=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:Yt,locales:$t,packages:Gt,styles:Qt},Symbol.toStringTag,{value:"Module"})),Xt="http-app",ea=qt.bind(void 0,Xt);var wt={exports:{}};(function(pe,le){(function(Oe,o){pe.exports=o(mt)})(Lt,function(Oe){return function(o){var n={};function e(s){if(n[s])return n[s].exports;var u=n[s]={i:s,l:!1,exports:{}};return o[s].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=o,e.c=n,e.d=function(s,u,f){e.o(s,u)||Object.defineProperty(s,u,{enumerable:!0,get:f})},e.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.t=function(s,u){if(1&u&&(s=e(s)),8&u||4&u&&typeof s=="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(e.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),2&u&&typeof s!="string")for(var p in s)e.d(f,p,(function(d){return s[d]}).bind(null,p));return f},e.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return e.d(u,"a",u),u},e.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},e.p="",e(e.s=48)}([function(o,n){o.exports=Oe},function(o,n){var e=o.exports={version:"2.6.12"};typeof __e=="number"&&(__e=e)},function(o,n,e){var s=e(26)("wks"),u=e(17),f=e(3).Symbol,p=typeof f=="function";(o.exports=function(d){return s[d]||(s[d]=p&&f[d]||(p?f:u)("Symbol."+d))}).store=s},function(o,n){var e=o.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(o,n,e){o.exports=!e(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(o,n){var e={}.hasOwnProperty;o.exports=function(s,u){return e.call(s,u)}},function(o,n,e){var s=e(7),u=e(16);o.exports=e(4)?function(f,p,d){return s.f(f,p,u(1,d))}:function(f,p,d){return f[p]=d,f}},function(o,n,e){var s=e(10),u=e(35),f=e(23),p=Object.defineProperty;n.f=e(4)?Object.defineProperty:function(d,b,E){if(s(d),b=f(b,!0),s(E),u)try{return p(d,b,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported!");return"value"in E&&(d[b]=E.value),d}},function(o,n){o.exports=function(e){try{return!!e()}catch{return!0}}},function(o,n,e){var s=e(40),u=e(22);o.exports=function(f){return s(u(f))}},function(o,n,e){var s=e(11);o.exports=function(u){if(!s(u))throw TypeError(u+" is not an object!");return u}},function(o,n){o.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(o,n){o.exports={}},function(o,n,e){var s=e(39),u=e(27);o.exports=Object.keys||function(f){return s(f,u)}},function(o,n){o.exports=!0},function(o,n,e){var s=e(3),u=e(1),f=e(53),p=e(6),d=e(5),b=function(E,_,P){var I,V,Q,L=E&b.F,Z=E&b.G,t=E&b.S,F=E&b.P,R=E&b.B,B=E&b.W,z=Z?u:u[_]||(u[_]={}),j=z.prototype,C=Z?s:t?s[_]:(s[_]||{}).prototype;for(I in Z&&(P=_),P)(V=!L&&C&&C[I]!==void 0)&&d(z,I)||(Q=V?C[I]:P[I],z[I]=Z&&typeof C[I]!="function"?P[I]:R&&V?f(Q,s):B&&C[I]==Q?function(M){var N=function(y,J,K){if(this instanceof M){switch(arguments.length){case 0:return new M;case 1:return new M(y);case 2:return new M(y,J)}return new M(y,J,K)}return M.apply(this,arguments)};return N.prototype=M.prototype,N}(Q):F&&typeof Q=="function"?f(Function.call,Q):Q,F&&((z.virtual||(z.virtual={}))[I]=Q,E&b.R&&j&&!j[I]&&p(j,I,Q)))};b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,o.exports=b},function(o,n){o.exports=function(e,s){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:s}}},function(o,n){var e=0,s=Math.random();o.exports=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++e+s).toString(36))}},function(o,n,e){var s=e(22);o.exports=function(u){return Object(s(u))}},function(o,n){n.f={}.propertyIsEnumerable},function(o,n,e){var s=e(52)(!0);e(34)(String,"String",function(u){this._t=String(u),this._i=0},function(){var u,f=this._t,p=this._i;return p>=f.length?{value:void 0,done:!0}:(u=s(f,p),this._i+=u.length,{value:u,done:!1})})},function(o,n){var e=Math.ceil,s=Math.floor;o.exports=function(u){return isNaN(u=+u)?0:(u>0?s:e)(u)}},function(o,n){o.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(o,n,e){var s=e(11);o.exports=function(u,f){if(!s(u))return u;var p,d;if(f&&typeof(p=u.toString)=="function"&&!s(d=p.call(u))||typeof(p=u.valueOf)=="function"&&!s(d=p.call(u))||!f&&typeof(p=u.toString)=="function"&&!s(d=p.call(u)))return d;throw TypeError("Can't convert object to primitive value")}},function(o,n){var e={}.toString;o.exports=function(s){return e.call(s).slice(8,-1)}},function(o,n,e){var s=e(26)("keys"),u=e(17);o.exports=function(f){return s[f]||(s[f]=u(f))}},function(o,n,e){var s=e(1),u=e(3),f=u["__core-js_shared__"]||(u["__core-js_shared__"]={});(o.exports=function(p,d){return f[p]||(f[p]=d!==void 0?d:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(o,n){o.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(o,n,e){var s=e(7).f,u=e(5),f=e(2)("toStringTag");o.exports=function(p,d,b){p&&!u(p=b?p:p.prototype,f)&&s(p,f,{configurable:!0,value:d})}},function(o,n,e){e(62);for(var s=e(3),u=e(6),f=e(12),p=e(2)("toStringTag"),d="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),b=0;bdocument.F=Object<\/script>"),E.close(),b=E.F;P--;)delete b.prototype[f[P]];return b()};o.exports=Object.create||function(E,_){var P;return E!==null?(d.prototype=s(E),P=new d,d.prototype=null,P[p]=E):P=b(),_===void 0?P:u(P,_)}},function(o,n,e){var s=e(5),u=e(9),f=e(57)(!1),p=e(25)("IE_PROTO");o.exports=function(d,b){var E,_=u(d),P=0,I=[];for(E in _)E!=p&&s(_,E)&&I.push(E);for(;b.length>P;)s(_,E=b[P++])&&(~f(I,E)||I.push(E));return I}},function(o,n,e){var s=e(24);o.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(o,n,e){var s=e(39),u=e(27).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},function(o,n,e){var s=e(24),u=e(2)("toStringTag"),f=s(function(){return arguments}())=="Arguments";o.exports=function(p){var d,b,E;return p===void 0?"Undefined":p===null?"Null":typeof(b=function(_,P){try{return _[P]}catch{}}(d=Object(p),u))=="string"?b:f?s(d):(E=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":E}},function(o,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}o.exports=e},function(o,n){var e=/-?\d+(\.\d+)?%?/g;o.exports=function(s){return s.match(e)}},function(o,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.getBase16Theme=n.createStyling=n.invertTheme=void 0;var s=V(e(49)),u=V(e(76)),f=V(e(81)),p=V(e(89)),d=V(e(93)),b=function(j){if(j&&j.__esModule)return j;var C={};if(j!=null)for(var M in j)Object.prototype.hasOwnProperty.call(j,M)&&(C[M]=j[M]);return C.default=j,C}(e(94)),E=V(e(132)),_=V(e(133)),P=V(e(138)),I=e(139);function V(j){return j&&j.__esModule?j:{default:j}}var Q=b.default,L=(0,p.default)(Q),Z=(0,P.default)(_.default,I.rgb2yuv,function(j){var C,M=(0,f.default)(j,3),N=M[0],y=M[1],J=M[2];return[(C=N,C<.25?1:C<.5?.9-C:1.1-C),y,J]},I.yuv2rgb,E.default),t=function(j){return function(C){return{className:[C.className,j.className].filter(Boolean).join(" "),style:(0,u.default)({},C.style||{},j.style||{})}}},F=function(j,C){var M=(0,p.default)(C);for(var N in j)M.indexOf(N)===-1&&M.push(N);return M.reduce(function(y,J){return y[J]=function(K,S){if(K===void 0)return S;if(S===void 0)return K;var U=K===void 0?"undefined":(0,s.default)(K),ue=S===void 0?"undefined":(0,s.default)(S);switch(U){case"string":switch(ue){case"string":return[S,K].filter(Boolean).join(" ");case"object":return t({className:K,style:S});case"function":return function(re){for(var W=arguments.length,ne=Array(W>1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G2?M-2:0),y=2;y3?C-3:0),N=3;N1&&arguments[1]!==void 0?arguments[1]:{},J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=y.defaultBase16,S=K===void 0?Q:K,U=y.base16Themes,ue=U===void 0?null:U,re=z(J,ue);re&&(J=(0,u.default)({},re,J));var W=L.reduce(function(be,we){return be[we]=J[we]||S[we],be},{}),ne=(0,p.default)(J).reduce(function(be,we){return L.indexOf(we)===-1&&(be[we]=J[we]),be},{}),G=j(W),fe=F(ne,G);return(0,d.default)(R,2).apply(void 0,[fe].concat(M))},3),n.getBase16Theme=function(j,C){if(j&&j.extend&&(j=j.extend),typeof j=="string"){var M=j.split(":"),N=(0,f.default)(M,2),y=N[0],J=N[1];j=(C||{})[y]||b[y],J==="inverted"&&(j=B(j))}return j&&j.hasOwnProperty("base00")?j:void 0})},function(o,n,e){var s,u=typeof Reflect=="object"?Reflect:null,f=u&&typeof u.apply=="function"?u.apply:function(t,F,R){return Function.prototype.apply.call(t,F,R)};s=u&&typeof u.ownKeys=="function"?u.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var p=Number.isNaN||function(t){return t!=t};function d(){d.init.call(this)}o.exports=d,o.exports.once=function(t,F){return new Promise(function(R,B){function z(){j!==void 0&&t.removeListener("error",j),R([].slice.call(arguments))}var j;F!=="error"&&(j=function(C){t.removeListener(F,z),B(C)},t.once("error",j)),t.once(F,z)})},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var b=10;function E(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _(t){return t._maxListeners===void 0?d.defaultMaxListeners:t._maxListeners}function P(t,F,R,B){var z,j,C,M;if(E(R),(j=t._events)===void 0?(j=t._events=Object.create(null),t._eventsCount=0):(j.newListener!==void 0&&(t.emit("newListener",F,R.listener?R.listener:R),j=t._events),C=j[F]),C===void 0)C=j[F]=R,++t._eventsCount;else if(typeof C=="function"?C=j[F]=B?[R,C]:[C,R]:B?C.unshift(R):C.push(R),(z=_(t))>0&&C.length>z&&!C.warned){C.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=t,N.type=F,N.count=C.length,M=N,console&&console.warn&&console.warn(M)}return t}function I(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function V(t,F,R){var B={fired:!1,wrapFn:void 0,target:t,type:F,listener:R},z=I.bind(B);return z.listener=R,B.wrapFn=z,z}function Q(t,F,R){var B=t._events;if(B===void 0)return[];var z=B[F];return z===void 0?[]:typeof z=="function"?R?[z.listener||z]:[z]:R?function(j){for(var C=new Array(j.length),M=0;M0&&(j=F[0]),j instanceof Error)throw j;var C=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw C.context=j,C}var M=z[t];if(M===void 0)return!1;if(typeof M=="function")f(M,this,F);else{var N=M.length,y=Z(M,N);for(R=0;R=0;j--)if(R[j]===F||R[j].listener===F){C=R[j].listener,z=j;break}if(z<0)return this;z===0?R.shift():function(M,N){for(;N+1=0;B--)this.removeListener(t,F[B]);return this},d.prototype.listeners=function(t){return Q(this,t,!0)},d.prototype.rawListeners=function(t){return Q(this,t,!1)},d.listenerCount=function(t,F){return typeof t.listenerCount=="function"?t.listenerCount(F):L.call(t,F)},d.prototype.listenerCount=L,d.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(o,n,e){o.exports.Dispatcher=e(140)},function(o,n,e){o.exports=e(142)},function(o,n,e){n.__esModule=!0;var s=p(e(50)),u=p(e(65)),f=typeof u.default=="function"&&typeof s.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":typeof d};function p(d){return d&&d.__esModule?d:{default:d}}n.default=typeof u.default=="function"&&f(s.default)==="symbol"?function(d){return d===void 0?"undefined":f(d)}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":d===void 0?"undefined":f(d)}},function(o,n,e){o.exports={default:e(51),__esModule:!0}},function(o,n,e){e(20),e(29),o.exports=e(30).f("iterator")},function(o,n,e){var s=e(21),u=e(22);o.exports=function(f){return function(p,d){var b,E,_=String(u(p)),P=s(d),I=_.length;return P<0||P>=I?f?"":void 0:(b=_.charCodeAt(P))<55296||b>56319||P+1===I||(E=_.charCodeAt(P+1))<56320||E>57343?f?_.charAt(P):b:f?_.slice(P,P+2):E-56320+(b-55296<<10)+65536}}},function(o,n,e){var s=e(54);o.exports=function(u,f,p){if(s(u),f===void 0)return u;switch(p){case 1:return function(d){return u.call(f,d)};case 2:return function(d,b){return u.call(f,d,b)};case 3:return function(d,b,E){return u.call(f,d,b,E)}}return function(){return u.apply(f,arguments)}}},function(o,n){o.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(o,n,e){var s=e(38),u=e(16),f=e(28),p={};e(6)(p,e(2)("iterator"),function(){return this}),o.exports=function(d,b,E){d.prototype=s(p,{next:u(1,E)}),f(d,b+" Iterator")}},function(o,n,e){var s=e(7),u=e(10),f=e(13);o.exports=e(4)?Object.defineProperties:function(p,d){u(p);for(var b,E=f(d),_=E.length,P=0;_>P;)s.f(p,b=E[P++],d[b]);return p}},function(o,n,e){var s=e(9),u=e(58),f=e(59);o.exports=function(p){return function(d,b,E){var _,P=s(d),I=u(P.length),V=f(E,I);if(p&&b!=b){for(;I>V;)if((_=P[V++])!=_)return!0}else for(;I>V;V++)if((p||V in P)&&P[V]===b)return p||V||0;return!p&&-1}}},function(o,n,e){var s=e(21),u=Math.min;o.exports=function(f){return f>0?u(s(f),9007199254740991):0}},function(o,n,e){var s=e(21),u=Math.max,f=Math.min;o.exports=function(p,d){return(p=s(p))<0?u(p+d,0):f(p,d)}},function(o,n,e){var s=e(3).document;o.exports=s&&s.documentElement},function(o,n,e){var s=e(5),u=e(18),f=e(25)("IE_PROTO"),p=Object.prototype;o.exports=Object.getPrototypeOf||function(d){return d=u(d),s(d,f)?d[f]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?p:null}},function(o,n,e){var s=e(63),u=e(64),f=e(12),p=e(9);o.exports=e(34)(Array,"Array",function(d,b){this._t=p(d),this._i=0,this._k=b},function(){var d=this._t,b=this._k,E=this._i++;return!d||E>=d.length?(this._t=void 0,u(1)):u(0,b=="keys"?E:b=="values"?d[E]:[E,d[E]])},"values"),f.Arguments=f.Array,s("keys"),s("values"),s("entries")},function(o,n){o.exports=function(){}},function(o,n){o.exports=function(e,s){return{value:s,done:!!e}}},function(o,n,e){o.exports={default:e(66),__esModule:!0}},function(o,n,e){e(67),e(73),e(74),e(75),o.exports=e(1).Symbol},function(o,n,e){var s=e(3),u=e(5),f=e(4),p=e(15),d=e(37),b=e(68).KEY,E=e(8),_=e(26),P=e(28),I=e(17),V=e(2),Q=e(30),L=e(31),Z=e(69),t=e(70),F=e(10),R=e(11),B=e(18),z=e(9),j=e(23),C=e(16),M=e(38),N=e(71),y=e(72),J=e(32),K=e(7),S=e(13),U=y.f,ue=K.f,re=N.f,W=s.Symbol,ne=s.JSON,G=ne&&ne.stringify,fe=V("_hidden"),be=V("toPrimitive"),we={}.propertyIsEnumerable,ye=_("symbol-registry"),xe=_("symbols"),ce=_("op-symbols"),he=Object.prototype,Pe=typeof W=="function"&&!!J.f,qe=s.QObject,Ue=!qe||!qe.prototype||!qe.prototype.findChild,Ge=f&&E(function(){return M(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a!=7})?function(g,w,D){var T=U(he,w);T&&delete he[w],ue(g,w,D),T&&g!==he&&ue(he,w,T)}:ue,Je=function(g){var w=xe[g]=M(W.prototype);return w._k=g,w},$e=Pe&&typeof W.iterator=="symbol"?function(g){return typeof g=="symbol"}:function(g){return g instanceof W},Ve=function(g,w,D){return g===he&&Ve(ce,w,D),F(g),w=j(w,!0),F(D),u(xe,w)?(D.enumerable?(u(g,fe)&&g[fe][w]&&(g[fe][w]=!1),D=M(D,{enumerable:C(0,!1)})):(u(g,fe)||ue(g,fe,C(1,{})),g[fe][w]=!0),Ge(g,w,D)):ue(g,w,D)},Xe=function(g,w){F(g);for(var D,T=Z(w=z(w)),X=0,$=T.length;$>X;)Ve(g,D=T[X++],w[D]);return g},et=function(g){var w=we.call(this,g=j(g,!0));return!(this===he&&u(xe,g)&&!u(ce,g))&&(!(w||!u(this,g)||!u(xe,g)||u(this,fe)&&this[fe][g])||w)},Ye=function(g,w){if(g=z(g),w=j(w,!0),g!==he||!u(xe,w)||u(ce,w)){var D=U(g,w);return!D||!u(xe,w)||u(g,fe)&&g[fe][w]||(D.enumerable=!0),D}},tt=function(g){for(var w,D=re(z(g)),T=[],X=0;D.length>X;)u(xe,w=D[X++])||w==fe||w==b||T.push(w);return T},Ke=function(g){for(var w,D=g===he,T=re(D?ce:z(g)),X=[],$=0;T.length>$;)!u(xe,w=T[$++])||D&&!u(he,w)||X.push(xe[w]);return X};Pe||(d((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor!");var g=I(arguments.length>0?arguments[0]:void 0),w=function(D){this===he&&w.call(ce,D),u(this,fe)&&u(this[fe],g)&&(this[fe][g]=!1),Ge(this,g,C(1,D))};return f&&Ue&&Ge(he,g,{configurable:!0,set:w}),Je(g)}).prototype,"toString",function(){return this._k}),y.f=Ye,K.f=Ve,e(41).f=N.f=tt,e(19).f=et,J.f=Ke,f&&!e(14)&&d(he,"propertyIsEnumerable",et,!0),Q.f=function(g){return Je(V(g))}),p(p.G+p.W+p.F*!Pe,{Symbol:W});for(var Re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),_e=0;Re.length>_e;)V(Re[_e++]);for(var Qe=S(V.store),O=0;Qe.length>O;)L(Qe[O++]);p(p.S+p.F*!Pe,"Symbol",{for:function(g){return u(ye,g+="")?ye[g]:ye[g]=W(g)},keyFor:function(g){if(!$e(g))throw TypeError(g+" is not a symbol!");for(var w in ye)if(ye[w]===g)return w},useSetter:function(){Ue=!0},useSimple:function(){Ue=!1}}),p(p.S+p.F*!Pe,"Object",{create:function(g,w){return w===void 0?M(g):Xe(M(g),w)},defineProperty:Ve,defineProperties:Xe,getOwnPropertyDescriptor:Ye,getOwnPropertyNames:tt,getOwnPropertySymbols:Ke});var v=E(function(){J.f(1)});p(p.S+p.F*v,"Object",{getOwnPropertySymbols:function(g){return J.f(B(g))}}),ne&&p(p.S+p.F*(!Pe||E(function(){var g=W();return G([g])!="[null]"||G({a:g})!="{}"||G(Object(g))!="{}"})),"JSON",{stringify:function(g){for(var w,D,T=[g],X=1;arguments.length>X;)T.push(arguments[X++]);if(D=w=T[1],(R(w)||g!==void 0)&&!$e(g))return t(w)||(w=function($,oe){if(typeof D=="function"&&(oe=D.call(this,$,oe)),!$e(oe))return oe}),T[1]=w,G.apply(ne,T)}}),W.prototype[be]||e(6)(W.prototype,be,W.prototype.valueOf),P(W,"Symbol"),P(Math,"Math",!0),P(s.JSON,"JSON",!0)},function(o,n,e){var s=e(17)("meta"),u=e(11),f=e(5),p=e(7).f,d=0,b=Object.isExtensible||function(){return!0},E=!e(8)(function(){return b(Object.preventExtensions({}))}),_=function(I){p(I,s,{value:{i:"O"+ ++d,w:{}}})},P=o.exports={KEY:s,NEED:!1,fastKey:function(I,V){if(!u(I))return typeof I=="symbol"?I:(typeof I=="string"?"S":"P")+I;if(!f(I,s)){if(!b(I))return"F";if(!V)return"E";_(I)}return I[s].i},getWeak:function(I,V){if(!f(I,s)){if(!b(I))return!0;if(!V)return!1;_(I)}return I[s].w},onFreeze:function(I){return E&&P.NEED&&b(I)&&!f(I,s)&&_(I),I}}},function(o,n,e){var s=e(13),u=e(32),f=e(19);o.exports=function(p){var d=s(p),b=u.f;if(b)for(var E,_=b(p),P=f.f,I=0;_.length>I;)P.call(p,E=_[I++])&&d.push(E);return d}},function(o,n,e){var s=e(24);o.exports=Array.isArray||function(u){return s(u)=="Array"}},function(o,n,e){var s=e(9),u=e(41).f,f={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];o.exports.f=function(d){return p&&f.call(d)=="[object Window]"?function(b){try{return u(b)}catch{return p.slice()}}(d):u(s(d))}},function(o,n,e){var s=e(19),u=e(16),f=e(9),p=e(23),d=e(5),b=e(35),E=Object.getOwnPropertyDescriptor;n.f=e(4)?E:function(_,P){if(_=f(_),P=p(P,!0),b)try{return E(_,P)}catch{}if(d(_,P))return u(!s.f.call(_,P),_[P])}},function(o,n){},function(o,n,e){e(31)("asyncIterator")},function(o,n,e){e(31)("observable")},function(o,n,e){n.__esModule=!0;var s,u=e(77),f=(s=u)&&s.__esModule?s:{default:s};n.default=f.default||function(p){for(var d=1;dQ;)for(var t,F=b(arguments[Q++]),R=L?u(F).concat(L(F)):u(F),B=R.length,z=0;B>z;)t=R[z++],s&&!Z.call(F,t)||(I[t]=F[t]);return I}:E},function(o,n,e){n.__esModule=!0;var s=f(e(82)),u=f(e(85));function f(p){return p&&p.__esModule?p:{default:p}}n.default=function(p,d){if(Array.isArray(p))return p;if((0,s.default)(Object(p)))return function(b,E){var _=[],P=!0,I=!1,V=void 0;try{for(var Q,L=(0,u.default)(b);!(P=(Q=L.next()).done)&&(_.push(Q.value),!E||_.length!==E);P=!0);}catch(Z){I=!0,V=Z}finally{try{!P&&L.return&&L.return()}finally{if(I)throw V}}return _}(p,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(o,n,e){o.exports={default:e(83),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(84)},function(o,n,e){var s=e(42),u=e(2)("iterator"),f=e(12);o.exports=e(1).isIterable=function(p){var d=Object(p);return d[u]!==void 0||"@@iterator"in d||f.hasOwnProperty(s(d))}},function(o,n,e){o.exports={default:e(86),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(87)},function(o,n,e){var s=e(10),u=e(88);o.exports=e(1).getIterator=function(f){var p=u(f);if(typeof p!="function")throw TypeError(f+" is not iterable!");return s(p.call(f))}},function(o,n,e){var s=e(42),u=e(2)("iterator"),f=e(12);o.exports=e(1).getIteratorMethod=function(p){if(p!=null)return p[u]||p["@@iterator"]||f[s(p)]}},function(o,n,e){o.exports={default:e(90),__esModule:!0}},function(o,n,e){e(91),o.exports=e(1).Object.keys},function(o,n,e){var s=e(18),u=e(13);e(92)("keys",function(){return function(f){return u(s(f))}})},function(o,n,e){var s=e(15),u=e(1),f=e(8);o.exports=function(p,d){var b=(u.Object||{})[p]||Object[p],E={};E[p]=d(b),s(s.S+s.F*f(function(){b(1)}),"Object",E)}},function(o,n,e){(function(s){var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f=/^\s+|\s+$/g,p=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,d=/\{\n\/\* \[wrapped with (.+)\] \*/,b=/,? & /,E=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,P=/^\[object .+?Constructor\]$/,I=/^0o[0-7]+$/i,V=/^(?:0|[1-9]\d*)$/,Q=parseInt,L=typeof s=="object"&&s&&s.Object===Object&&s,Z=typeof self=="object"&&self&&self.Object===Object&&self,t=L||Z||Function("return this")();function F(O,v,g){switch(g.length){case 0:return O.call(v);case 1:return O.call(v,g[0]);case 2:return O.call(v,g[0],g[1]);case 3:return O.call(v,g[0],g[1],g[2])}return O.apply(v,g)}function R(O,v){return!!(O&&O.length)&&function(g,w,D){if(w!=w)return function($,oe,me,ve){for(var ke=$.length,de=me+-1;++de-1}function B(O){return O!=O}function z(O,v){for(var g=O.length,w=0;g--;)O[g]===v&&w++;return w}function j(O,v){for(var g=-1,w=O.length,D=0,T=[];++g2?M:void 0);function we(O){return Re(O)?ne(O):{}}function ye(O){return!(!Re(O)||function(v){return!!S&&S in v}(O))&&(function(v){var g=Re(v)?re.call(v):"";return g=="[object Function]"||g=="[object GeneratorFunction]"}(O)||function(v){var g=!1;if(v!=null&&typeof v.toString!="function")try{g=!!(v+"")}catch{}return g}(O)?W:P).test(function(v){if(v!=null){try{return U.call(v)}catch{}try{return v+""}catch{}}return""}(O))}function xe(O,v,g,w){for(var D=-1,T=O.length,X=g.length,$=-1,oe=v.length,me=G(T-X,0),ve=Array(oe+me),ke=!w;++$1&&te.reverse(),ve&&oe1?"& ":"")+v[w],v=v.join(g>2?", ":" "),O.replace(p,`{ +var _t=pe=>{throw TypeError(pe)};var kt=(pe,le,Oe)=>le.has(pe)||_t("Cannot "+Oe);var St=(pe,le,Oe)=>(kt(pe,le,"read from private field"),Oe?Oe.call(pe):le.get(pe)),Ct=(pe,le,Oe)=>le.has(pe)?_t("Cannot add the same private member more than once"):le instanceof WeakSet?le.add(pe):le.set(pe,Oe),Ot=(pe,le,Oe,o)=>(kt(pe,le,"write to private field"),o?o.call(pe,Oe):le.set(pe,Oe),Oe);import{c as Dt,a as Rt,r as mt,a1 as Lt,a2 as Bt,j as Ze,O as ht,V as zt,b as Nt}from"./BbD1ObBocF77.js";import{H as Tt}from"./CG8OAwIhVllu.js";import{u as qt}from"./BG7f7T4POdrF.js";import{T as Vt}from"./Ddf4mYqhSsPi.js";const Kt="https://registry.npmjs.org/@open-pioneer/runtime";var lt;class Wt{constructor(le){Ct(this,lt);Ot(this,lt,le.references.http)}async fetchResource(){const le=await St(this,lt).fetch(Kt,{headers:{Accept:"application/json"}});if(!le.ok)throw new Error("Request failed: "+le.status);return await le.json()}}lt=new WeakMap;const Ht=Dt("http-app:ExampleInterceptor");class Ut{async beforeRequest(le){Ht.info("interceptor invoked with",le),le.target.searchParams.set("a","b")}}const Gt={"http-app":{name:"http-app",services:{HttpClient:{name:"HttpClient",clazz:Wt,provides:[{name:"http-app.HttpClient",qualifier:void 0}],references:{http:{name:"http.HttpService",qualifier:void 0,all:!1}}},ExampleInterceptor:{name:"ExampleInterceptor",clazz:Ut,provides:[{name:"http.Interceptor",qualifier:void 0}],references:{}}},ui:{references:[{name:"http-app.HttpClient",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Tt,provides:[{name:"http.HttpService",qualifier:void 0}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}}},Jt="",$t=[];function Yt(pe){throw new Error(`Unsupported locale: '${pe}'`)}const Qt=Rt(Jt),Zt=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:Yt,locales:$t,packages:Gt,styles:Qt},Symbol.toStringTag,{value:"Module"})),Xt="http-app",ea=qt.bind(void 0,Xt);var wt={exports:{}};(function(pe,le){(function(Oe,o){pe.exports=o(mt)})(Lt,function(Oe){return function(o){var n={};function e(s){if(n[s])return n[s].exports;var u=n[s]={i:s,l:!1,exports:{}};return o[s].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=o,e.c=n,e.d=function(s,u,f){e.o(s,u)||Object.defineProperty(s,u,{enumerable:!0,get:f})},e.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.t=function(s,u){if(1&u&&(s=e(s)),8&u||4&u&&typeof s=="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(e.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),2&u&&typeof s!="string")for(var p in s)e.d(f,p,(function(d){return s[d]}).bind(null,p));return f},e.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return e.d(u,"a",u),u},e.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},e.p="",e(e.s=48)}([function(o,n){o.exports=Oe},function(o,n){var e=o.exports={version:"2.6.12"};typeof __e=="number"&&(__e=e)},function(o,n,e){var s=e(26)("wks"),u=e(17),f=e(3).Symbol,p=typeof f=="function";(o.exports=function(d){return s[d]||(s[d]=p&&f[d]||(p?f:u)("Symbol."+d))}).store=s},function(o,n){var e=o.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(o,n,e){o.exports=!e(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(o,n){var e={}.hasOwnProperty;o.exports=function(s,u){return e.call(s,u)}},function(o,n,e){var s=e(7),u=e(16);o.exports=e(4)?function(f,p,d){return s.f(f,p,u(1,d))}:function(f,p,d){return f[p]=d,f}},function(o,n,e){var s=e(10),u=e(35),f=e(23),p=Object.defineProperty;n.f=e(4)?Object.defineProperty:function(d,b,E){if(s(d),b=f(b,!0),s(E),u)try{return p(d,b,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported!");return"value"in E&&(d[b]=E.value),d}},function(o,n){o.exports=function(e){try{return!!e()}catch{return!0}}},function(o,n,e){var s=e(40),u=e(22);o.exports=function(f){return s(u(f))}},function(o,n,e){var s=e(11);o.exports=function(u){if(!s(u))throw TypeError(u+" is not an object!");return u}},function(o,n){o.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(o,n){o.exports={}},function(o,n,e){var s=e(39),u=e(27);o.exports=Object.keys||function(f){return s(f,u)}},function(o,n){o.exports=!0},function(o,n,e){var s=e(3),u=e(1),f=e(53),p=e(6),d=e(5),b=function(E,_,P){var I,V,Q,L=E&b.F,Z=E&b.G,t=E&b.S,F=E&b.P,R=E&b.B,B=E&b.W,z=Z?u:u[_]||(u[_]={}),j=z.prototype,C=Z?s:t?s[_]:(s[_]||{}).prototype;for(I in Z&&(P=_),P)(V=!L&&C&&C[I]!==void 0)&&d(z,I)||(Q=V?C[I]:P[I],z[I]=Z&&typeof C[I]!="function"?P[I]:R&&V?f(Q,s):B&&C[I]==Q?function(M){var N=function(y,J,K){if(this instanceof M){switch(arguments.length){case 0:return new M;case 1:return new M(y);case 2:return new M(y,J)}return new M(y,J,K)}return M.apply(this,arguments)};return N.prototype=M.prototype,N}(Q):F&&typeof Q=="function"?f(Function.call,Q):Q,F&&((z.virtual||(z.virtual={}))[I]=Q,E&b.R&&j&&!j[I]&&p(j,I,Q)))};b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,o.exports=b},function(o,n){o.exports=function(e,s){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:s}}},function(o,n){var e=0,s=Math.random();o.exports=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++e+s).toString(36))}},function(o,n,e){var s=e(22);o.exports=function(u){return Object(s(u))}},function(o,n){n.f={}.propertyIsEnumerable},function(o,n,e){var s=e(52)(!0);e(34)(String,"String",function(u){this._t=String(u),this._i=0},function(){var u,f=this._t,p=this._i;return p>=f.length?{value:void 0,done:!0}:(u=s(f,p),this._i+=u.length,{value:u,done:!1})})},function(o,n){var e=Math.ceil,s=Math.floor;o.exports=function(u){return isNaN(u=+u)?0:(u>0?s:e)(u)}},function(o,n){o.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(o,n,e){var s=e(11);o.exports=function(u,f){if(!s(u))return u;var p,d;if(f&&typeof(p=u.toString)=="function"&&!s(d=p.call(u))||typeof(p=u.valueOf)=="function"&&!s(d=p.call(u))||!f&&typeof(p=u.toString)=="function"&&!s(d=p.call(u)))return d;throw TypeError("Can't convert object to primitive value")}},function(o,n){var e={}.toString;o.exports=function(s){return e.call(s).slice(8,-1)}},function(o,n,e){var s=e(26)("keys"),u=e(17);o.exports=function(f){return s[f]||(s[f]=u(f))}},function(o,n,e){var s=e(1),u=e(3),f=u["__core-js_shared__"]||(u["__core-js_shared__"]={});(o.exports=function(p,d){return f[p]||(f[p]=d!==void 0?d:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(o,n){o.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(o,n,e){var s=e(7).f,u=e(5),f=e(2)("toStringTag");o.exports=function(p,d,b){p&&!u(p=b?p:p.prototype,f)&&s(p,f,{configurable:!0,value:d})}},function(o,n,e){e(62);for(var s=e(3),u=e(6),f=e(12),p=e(2)("toStringTag"),d="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),b=0;bdocument.F=Object<\/script>"),E.close(),b=E.F;P--;)delete b.prototype[f[P]];return b()};o.exports=Object.create||function(E,_){var P;return E!==null?(d.prototype=s(E),P=new d,d.prototype=null,P[p]=E):P=b(),_===void 0?P:u(P,_)}},function(o,n,e){var s=e(5),u=e(9),f=e(57)(!1),p=e(25)("IE_PROTO");o.exports=function(d,b){var E,_=u(d),P=0,I=[];for(E in _)E!=p&&s(_,E)&&I.push(E);for(;b.length>P;)s(_,E=b[P++])&&(~f(I,E)||I.push(E));return I}},function(o,n,e){var s=e(24);o.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(o,n,e){var s=e(39),u=e(27).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},function(o,n,e){var s=e(24),u=e(2)("toStringTag"),f=s(function(){return arguments}())=="Arguments";o.exports=function(p){var d,b,E;return p===void 0?"Undefined":p===null?"Null":typeof(b=function(_,P){try{return _[P]}catch{}}(d=Object(p),u))=="string"?b:f?s(d):(E=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":E}},function(o,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}o.exports=e},function(o,n){var e=/-?\d+(\.\d+)?%?/g;o.exports=function(s){return s.match(e)}},function(o,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.getBase16Theme=n.createStyling=n.invertTheme=void 0;var s=V(e(49)),u=V(e(76)),f=V(e(81)),p=V(e(89)),d=V(e(93)),b=function(j){if(j&&j.__esModule)return j;var C={};if(j!=null)for(var M in j)Object.prototype.hasOwnProperty.call(j,M)&&(C[M]=j[M]);return C.default=j,C}(e(94)),E=V(e(132)),_=V(e(133)),P=V(e(138)),I=e(139);function V(j){return j&&j.__esModule?j:{default:j}}var Q=b.default,L=(0,p.default)(Q),Z=(0,P.default)(_.default,I.rgb2yuv,function(j){var C,M=(0,f.default)(j,3),N=M[0],y=M[1],J=M[2];return[(C=N,C<.25?1:C<.5?.9-C:1.1-C),y,J]},I.yuv2rgb,E.default),t=function(j){return function(C){return{className:[C.className,j.className].filter(Boolean).join(" "),style:(0,u.default)({},C.style||{},j.style||{})}}},F=function(j,C){var M=(0,p.default)(C);for(var N in j)M.indexOf(N)===-1&&M.push(N);return M.reduce(function(y,J){return y[J]=function(K,S){if(K===void 0)return S;if(S===void 0)return K;var U=K===void 0?"undefined":(0,s.default)(K),ue=S===void 0?"undefined":(0,s.default)(S);switch(U){case"string":switch(ue){case"string":return[S,K].filter(Boolean).join(" ");case"object":return t({className:K,style:S});case"function":return function(re){for(var W=arguments.length,ne=Array(W>1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G2?M-2:0),y=2;y3?C-3:0),N=3;N1&&arguments[1]!==void 0?arguments[1]:{},J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=y.defaultBase16,S=K===void 0?Q:K,U=y.base16Themes,ue=U===void 0?null:U,re=z(J,ue);re&&(J=(0,u.default)({},re,J));var W=L.reduce(function(be,we){return be[we]=J[we]||S[we],be},{}),ne=(0,p.default)(J).reduce(function(be,we){return L.indexOf(we)===-1&&(be[we]=J[we]),be},{}),G=j(W),fe=F(ne,G);return(0,d.default)(R,2).apply(void 0,[fe].concat(M))},3),n.getBase16Theme=function(j,C){if(j&&j.extend&&(j=j.extend),typeof j=="string"){var M=j.split(":"),N=(0,f.default)(M,2),y=N[0],J=N[1];j=(C||{})[y]||b[y],J==="inverted"&&(j=B(j))}return j&&j.hasOwnProperty("base00")?j:void 0})},function(o,n,e){var s,u=typeof Reflect=="object"?Reflect:null,f=u&&typeof u.apply=="function"?u.apply:function(t,F,R){return Function.prototype.apply.call(t,F,R)};s=u&&typeof u.ownKeys=="function"?u.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var p=Number.isNaN||function(t){return t!=t};function d(){d.init.call(this)}o.exports=d,o.exports.once=function(t,F){return new Promise(function(R,B){function z(){j!==void 0&&t.removeListener("error",j),R([].slice.call(arguments))}var j;F!=="error"&&(j=function(C){t.removeListener(F,z),B(C)},t.once("error",j)),t.once(F,z)})},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var b=10;function E(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _(t){return t._maxListeners===void 0?d.defaultMaxListeners:t._maxListeners}function P(t,F,R,B){var z,j,C,M;if(E(R),(j=t._events)===void 0?(j=t._events=Object.create(null),t._eventsCount=0):(j.newListener!==void 0&&(t.emit("newListener",F,R.listener?R.listener:R),j=t._events),C=j[F]),C===void 0)C=j[F]=R,++t._eventsCount;else if(typeof C=="function"?C=j[F]=B?[R,C]:[C,R]:B?C.unshift(R):C.push(R),(z=_(t))>0&&C.length>z&&!C.warned){C.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=t,N.type=F,N.count=C.length,M=N,console&&console.warn&&console.warn(M)}return t}function I(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function V(t,F,R){var B={fired:!1,wrapFn:void 0,target:t,type:F,listener:R},z=I.bind(B);return z.listener=R,B.wrapFn=z,z}function Q(t,F,R){var B=t._events;if(B===void 0)return[];var z=B[F];return z===void 0?[]:typeof z=="function"?R?[z.listener||z]:[z]:R?function(j){for(var C=new Array(j.length),M=0;M0&&(j=F[0]),j instanceof Error)throw j;var C=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw C.context=j,C}var M=z[t];if(M===void 0)return!1;if(typeof M=="function")f(M,this,F);else{var N=M.length,y=Z(M,N);for(R=0;R=0;j--)if(R[j]===F||R[j].listener===F){C=R[j].listener,z=j;break}if(z<0)return this;z===0?R.shift():function(M,N){for(;N+1=0;B--)this.removeListener(t,F[B]);return this},d.prototype.listeners=function(t){return Q(this,t,!0)},d.prototype.rawListeners=function(t){return Q(this,t,!1)},d.listenerCount=function(t,F){return typeof t.listenerCount=="function"?t.listenerCount(F):L.call(t,F)},d.prototype.listenerCount=L,d.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(o,n,e){o.exports.Dispatcher=e(140)},function(o,n,e){o.exports=e(142)},function(o,n,e){n.__esModule=!0;var s=p(e(50)),u=p(e(65)),f=typeof u.default=="function"&&typeof s.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":typeof d};function p(d){return d&&d.__esModule?d:{default:d}}n.default=typeof u.default=="function"&&f(s.default)==="symbol"?function(d){return d===void 0?"undefined":f(d)}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":d===void 0?"undefined":f(d)}},function(o,n,e){o.exports={default:e(51),__esModule:!0}},function(o,n,e){e(20),e(29),o.exports=e(30).f("iterator")},function(o,n,e){var s=e(21),u=e(22);o.exports=function(f){return function(p,d){var b,E,_=String(u(p)),P=s(d),I=_.length;return P<0||P>=I?f?"":void 0:(b=_.charCodeAt(P))<55296||b>56319||P+1===I||(E=_.charCodeAt(P+1))<56320||E>57343?f?_.charAt(P):b:f?_.slice(P,P+2):E-56320+(b-55296<<10)+65536}}},function(o,n,e){var s=e(54);o.exports=function(u,f,p){if(s(u),f===void 0)return u;switch(p){case 1:return function(d){return u.call(f,d)};case 2:return function(d,b){return u.call(f,d,b)};case 3:return function(d,b,E){return u.call(f,d,b,E)}}return function(){return u.apply(f,arguments)}}},function(o,n){o.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(o,n,e){var s=e(38),u=e(16),f=e(28),p={};e(6)(p,e(2)("iterator"),function(){return this}),o.exports=function(d,b,E){d.prototype=s(p,{next:u(1,E)}),f(d,b+" Iterator")}},function(o,n,e){var s=e(7),u=e(10),f=e(13);o.exports=e(4)?Object.defineProperties:function(p,d){u(p);for(var b,E=f(d),_=E.length,P=0;_>P;)s.f(p,b=E[P++],d[b]);return p}},function(o,n,e){var s=e(9),u=e(58),f=e(59);o.exports=function(p){return function(d,b,E){var _,P=s(d),I=u(P.length),V=f(E,I);if(p&&b!=b){for(;I>V;)if((_=P[V++])!=_)return!0}else for(;I>V;V++)if((p||V in P)&&P[V]===b)return p||V||0;return!p&&-1}}},function(o,n,e){var s=e(21),u=Math.min;o.exports=function(f){return f>0?u(s(f),9007199254740991):0}},function(o,n,e){var s=e(21),u=Math.max,f=Math.min;o.exports=function(p,d){return(p=s(p))<0?u(p+d,0):f(p,d)}},function(o,n,e){var s=e(3).document;o.exports=s&&s.documentElement},function(o,n,e){var s=e(5),u=e(18),f=e(25)("IE_PROTO"),p=Object.prototype;o.exports=Object.getPrototypeOf||function(d){return d=u(d),s(d,f)?d[f]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?p:null}},function(o,n,e){var s=e(63),u=e(64),f=e(12),p=e(9);o.exports=e(34)(Array,"Array",function(d,b){this._t=p(d),this._i=0,this._k=b},function(){var d=this._t,b=this._k,E=this._i++;return!d||E>=d.length?(this._t=void 0,u(1)):u(0,b=="keys"?E:b=="values"?d[E]:[E,d[E]])},"values"),f.Arguments=f.Array,s("keys"),s("values"),s("entries")},function(o,n){o.exports=function(){}},function(o,n){o.exports=function(e,s){return{value:s,done:!!e}}},function(o,n,e){o.exports={default:e(66),__esModule:!0}},function(o,n,e){e(67),e(73),e(74),e(75),o.exports=e(1).Symbol},function(o,n,e){var s=e(3),u=e(5),f=e(4),p=e(15),d=e(37),b=e(68).KEY,E=e(8),_=e(26),P=e(28),I=e(17),V=e(2),Q=e(30),L=e(31),Z=e(69),t=e(70),F=e(10),R=e(11),B=e(18),z=e(9),j=e(23),C=e(16),M=e(38),N=e(71),y=e(72),J=e(32),K=e(7),S=e(13),U=y.f,ue=K.f,re=N.f,W=s.Symbol,ne=s.JSON,G=ne&&ne.stringify,fe=V("_hidden"),be=V("toPrimitive"),we={}.propertyIsEnumerable,ye=_("symbol-registry"),xe=_("symbols"),ce=_("op-symbols"),he=Object.prototype,Pe=typeof W=="function"&&!!J.f,qe=s.QObject,Ue=!qe||!qe.prototype||!qe.prototype.findChild,Ge=f&&E(function(){return M(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a!=7})?function(g,w,D){var T=U(he,w);T&&delete he[w],ue(g,w,D),T&&g!==he&&ue(he,w,T)}:ue,Je=function(g){var w=xe[g]=M(W.prototype);return w._k=g,w},$e=Pe&&typeof W.iterator=="symbol"?function(g){return typeof g=="symbol"}:function(g){return g instanceof W},Ve=function(g,w,D){return g===he&&Ve(ce,w,D),F(g),w=j(w,!0),F(D),u(xe,w)?(D.enumerable?(u(g,fe)&&g[fe][w]&&(g[fe][w]=!1),D=M(D,{enumerable:C(0,!1)})):(u(g,fe)||ue(g,fe,C(1,{})),g[fe][w]=!0),Ge(g,w,D)):ue(g,w,D)},Xe=function(g,w){F(g);for(var D,T=Z(w=z(w)),X=0,$=T.length;$>X;)Ve(g,D=T[X++],w[D]);return g},et=function(g){var w=we.call(this,g=j(g,!0));return!(this===he&&u(xe,g)&&!u(ce,g))&&(!(w||!u(this,g)||!u(xe,g)||u(this,fe)&&this[fe][g])||w)},Ye=function(g,w){if(g=z(g),w=j(w,!0),g!==he||!u(xe,w)||u(ce,w)){var D=U(g,w);return!D||!u(xe,w)||u(g,fe)&&g[fe][w]||(D.enumerable=!0),D}},tt=function(g){for(var w,D=re(z(g)),T=[],X=0;D.length>X;)u(xe,w=D[X++])||w==fe||w==b||T.push(w);return T},Ke=function(g){for(var w,D=g===he,T=re(D?ce:z(g)),X=[],$=0;T.length>$;)!u(xe,w=T[$++])||D&&!u(he,w)||X.push(xe[w]);return X};Pe||(d((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor!");var g=I(arguments.length>0?arguments[0]:void 0),w=function(D){this===he&&w.call(ce,D),u(this,fe)&&u(this[fe],g)&&(this[fe][g]=!1),Ge(this,g,C(1,D))};return f&&Ue&&Ge(he,g,{configurable:!0,set:w}),Je(g)}).prototype,"toString",function(){return this._k}),y.f=Ye,K.f=Ve,e(41).f=N.f=tt,e(19).f=et,J.f=Ke,f&&!e(14)&&d(he,"propertyIsEnumerable",et,!0),Q.f=function(g){return Je(V(g))}),p(p.G+p.W+p.F*!Pe,{Symbol:W});for(var Re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),_e=0;Re.length>_e;)V(Re[_e++]);for(var Qe=S(V.store),O=0;Qe.length>O;)L(Qe[O++]);p(p.S+p.F*!Pe,"Symbol",{for:function(g){return u(ye,g+="")?ye[g]:ye[g]=W(g)},keyFor:function(g){if(!$e(g))throw TypeError(g+" is not a symbol!");for(var w in ye)if(ye[w]===g)return w},useSetter:function(){Ue=!0},useSimple:function(){Ue=!1}}),p(p.S+p.F*!Pe,"Object",{create:function(g,w){return w===void 0?M(g):Xe(M(g),w)},defineProperty:Ve,defineProperties:Xe,getOwnPropertyDescriptor:Ye,getOwnPropertyNames:tt,getOwnPropertySymbols:Ke});var v=E(function(){J.f(1)});p(p.S+p.F*v,"Object",{getOwnPropertySymbols:function(g){return J.f(B(g))}}),ne&&p(p.S+p.F*(!Pe||E(function(){var g=W();return G([g])!="[null]"||G({a:g})!="{}"||G(Object(g))!="{}"})),"JSON",{stringify:function(g){for(var w,D,T=[g],X=1;arguments.length>X;)T.push(arguments[X++]);if(D=w=T[1],(R(w)||g!==void 0)&&!$e(g))return t(w)||(w=function($,oe){if(typeof D=="function"&&(oe=D.call(this,$,oe)),!$e(oe))return oe}),T[1]=w,G.apply(ne,T)}}),W.prototype[be]||e(6)(W.prototype,be,W.prototype.valueOf),P(W,"Symbol"),P(Math,"Math",!0),P(s.JSON,"JSON",!0)},function(o,n,e){var s=e(17)("meta"),u=e(11),f=e(5),p=e(7).f,d=0,b=Object.isExtensible||function(){return!0},E=!e(8)(function(){return b(Object.preventExtensions({}))}),_=function(I){p(I,s,{value:{i:"O"+ ++d,w:{}}})},P=o.exports={KEY:s,NEED:!1,fastKey:function(I,V){if(!u(I))return typeof I=="symbol"?I:(typeof I=="string"?"S":"P")+I;if(!f(I,s)){if(!b(I))return"F";if(!V)return"E";_(I)}return I[s].i},getWeak:function(I,V){if(!f(I,s)){if(!b(I))return!0;if(!V)return!1;_(I)}return I[s].w},onFreeze:function(I){return E&&P.NEED&&b(I)&&!f(I,s)&&_(I),I}}},function(o,n,e){var s=e(13),u=e(32),f=e(19);o.exports=function(p){var d=s(p),b=u.f;if(b)for(var E,_=b(p),P=f.f,I=0;_.length>I;)P.call(p,E=_[I++])&&d.push(E);return d}},function(o,n,e){var s=e(24);o.exports=Array.isArray||function(u){return s(u)=="Array"}},function(o,n,e){var s=e(9),u=e(41).f,f={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];o.exports.f=function(d){return p&&f.call(d)=="[object Window]"?function(b){try{return u(b)}catch{return p.slice()}}(d):u(s(d))}},function(o,n,e){var s=e(19),u=e(16),f=e(9),p=e(23),d=e(5),b=e(35),E=Object.getOwnPropertyDescriptor;n.f=e(4)?E:function(_,P){if(_=f(_),P=p(P,!0),b)try{return E(_,P)}catch{}if(d(_,P))return u(!s.f.call(_,P),_[P])}},function(o,n){},function(o,n,e){e(31)("asyncIterator")},function(o,n,e){e(31)("observable")},function(o,n,e){n.__esModule=!0;var s,u=e(77),f=(s=u)&&s.__esModule?s:{default:s};n.default=f.default||function(p){for(var d=1;dQ;)for(var t,F=b(arguments[Q++]),R=L?u(F).concat(L(F)):u(F),B=R.length,z=0;B>z;)t=R[z++],s&&!Z.call(F,t)||(I[t]=F[t]);return I}:E},function(o,n,e){n.__esModule=!0;var s=f(e(82)),u=f(e(85));function f(p){return p&&p.__esModule?p:{default:p}}n.default=function(p,d){if(Array.isArray(p))return p;if((0,s.default)(Object(p)))return function(b,E){var _=[],P=!0,I=!1,V=void 0;try{for(var Q,L=(0,u.default)(b);!(P=(Q=L.next()).done)&&(_.push(Q.value),!E||_.length!==E);P=!0);}catch(Z){I=!0,V=Z}finally{try{!P&&L.return&&L.return()}finally{if(I)throw V}}return _}(p,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(o,n,e){o.exports={default:e(83),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(84)},function(o,n,e){var s=e(42),u=e(2)("iterator"),f=e(12);o.exports=e(1).isIterable=function(p){var d=Object(p);return d[u]!==void 0||"@@iterator"in d||f.hasOwnProperty(s(d))}},function(o,n,e){o.exports={default:e(86),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(87)},function(o,n,e){var s=e(10),u=e(88);o.exports=e(1).getIterator=function(f){var p=u(f);if(typeof p!="function")throw TypeError(f+" is not iterable!");return s(p.call(f))}},function(o,n,e){var s=e(42),u=e(2)("iterator"),f=e(12);o.exports=e(1).getIteratorMethod=function(p){if(p!=null)return p[u]||p["@@iterator"]||f[s(p)]}},function(o,n,e){o.exports={default:e(90),__esModule:!0}},function(o,n,e){e(91),o.exports=e(1).Object.keys},function(o,n,e){var s=e(18),u=e(13);e(92)("keys",function(){return function(f){return u(s(f))}})},function(o,n,e){var s=e(15),u=e(1),f=e(8);o.exports=function(p,d){var b=(u.Object||{})[p]||Object[p],E={};E[p]=d(b),s(s.S+s.F*f(function(){b(1)}),"Object",E)}},function(o,n,e){(function(s){var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f=/^\s+|\s+$/g,p=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,d=/\{\n\/\* \[wrapped with (.+)\] \*/,b=/,? & /,E=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,P=/^\[object .+?Constructor\]$/,I=/^0o[0-7]+$/i,V=/^(?:0|[1-9]\d*)$/,Q=parseInt,L=typeof s=="object"&&s&&s.Object===Object&&s,Z=typeof self=="object"&&self&&self.Object===Object&&self,t=L||Z||Function("return this")();function F(O,v,g){switch(g.length){case 0:return O.call(v);case 1:return O.call(v,g[0]);case 2:return O.call(v,g[0],g[1]);case 3:return O.call(v,g[0],g[1],g[2])}return O.apply(v,g)}function R(O,v){return!!(O&&O.length)&&function(g,w,D){if(w!=w)return function($,oe,me,ve){for(var ke=$.length,de=me+-1;++de-1}function B(O){return O!=O}function z(O,v){for(var g=O.length,w=0;g--;)O[g]===v&&w++;return w}function j(O,v){for(var g=-1,w=O.length,D=0,T=[];++g2?M:void 0);function we(O){return Re(O)?ne(O):{}}function ye(O){return!(!Re(O)||function(v){return!!S&&S in v}(O))&&(function(v){var g=Re(v)?re.call(v):"";return g=="[object Function]"||g=="[object GeneratorFunction]"}(O)||function(v){var g=!1;if(v!=null&&typeof v.toString!="function")try{g=!!(v+"")}catch{}return g}(O)?W:P).test(function(v){if(v!=null){try{return U.call(v)}catch{}try{return v+""}catch{}}return""}(O))}function xe(O,v,g,w){for(var D=-1,T=O.length,X=g.length,$=-1,oe=v.length,me=G(T-X,0),ve=Array(oe+me),ke=!w;++$1&&te.reverse(),ve&&oe1?"& ":"")+v[w],v=v.join(g>2?", ":" "),O.replace(p,`{ /* [wrapped with `+v+`] */ `)}function Xe(O,v){return!!(v=v??9007199254740991)&&(typeof O=="number"||V.test(O))&&O>-1&&O%1==0&&O1&&f--,d=6*f<1?s+6*(u-s)*f:2*f<1?u:3*f<2?s+(u-s)*(2/3-f)*6:s,p[P]=255*d;return p}},function(o,n,e){(function(s){var u=typeof s=="object"&&s&&s.Object===Object&&s,f=typeof self=="object"&&self&&self.Object===Object&&self,p=u||f||Function("return this")();function d(j,C,M){switch(M.length){case 0:return j.call(C);case 1:return j.call(C,M[0]);case 2:return j.call(C,M[0],M[1]);case 3:return j.call(C,M[0],M[1],M[2])}return j.apply(C,M)}function b(j,C){for(var M=-1,N=C.length,y=j.length;++M-1&&y%1==0&&y<=9007199254740991}(N.length)&&!function(y){var J=function(K){var S=typeof K;return!!K&&(S=="object"||S=="function")}(y)?P.call(y):"";return J=="[object Function]"||J=="[object GeneratorFunction]"}(N)}(M)}(C)&&_.call(C,"callee")&&(!V.call(C,"callee")||P.call(C)=="[object Arguments]")}(j)||!!(Q&&j&&j[Q])}var t=Array.isArray,F,R,B,z=(R=function(j){var C=(j=function(y,J,K,S,U){var ue=-1,re=y.length;for(K||(K=Z),U||(U=[]);++ue2?f-2:0),d=2;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var a,r=P(c);if(l){var i=P(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Q(this,a)}}e.r(n);var Z=e(0),t=e.n(Z);function F(){var c=this.constructor.getDerivedStateFromProps(this.props,this.state);c!=null&&this.setState(c)}function R(c){this.setState((function(l){var a=this.constructor.getDerivedStateFromProps(c,l);return a??null}).bind(this))}function B(c,l){try{var a=this.props,r=this.state;this.props=c,this.state=l,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,r)}finally{this.props=a,this.state=r}}function z(c){var l=c.prototype;if(!l||!l.isReactComponent)throw new Error("Can only polyfill class components");if(typeof c.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function")return c;var a=null,r=null,i=null;if(typeof l.componentWillMount=="function"?a="componentWillMount":typeof l.UNSAFE_componentWillMount=="function"&&(a="UNSAFE_componentWillMount"),typeof l.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof l.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof l.componentWillUpdate=="function"?i="componentWillUpdate":typeof l.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),a!==null||r!==null||i!==null){var m=c.displayName||c.name,k=typeof c.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. diff --git a/core-packages/assets/UDhr-7mERr8y.js b/core-packages/assets/DrC83qWS1SLW.js similarity index 98% rename from core-packages/assets/UDhr-7mERr8y.js rename to core-packages/assets/DrC83qWS1SLW.js index cfd362b3b..ab8a45e03 100644 --- a/core-packages/assets/UDhr-7mERr8y.js +++ b/core-packages/assets/DrC83qWS1SLW.js @@ -1 +1 @@ -import{r as c,u as ge,d as Be,e as xt,g as vt,i as yt,f as jt,h as v,k as V,l as j,m as O,j as e,n as h,C as Ie,o as w,p as be,A as Le,q as Q,w as J,T as De,s as fe,t as gt,v as bt,M as Pt,x as Pe,y as Z,z as _t,B as ce,D as $,E as Me,F as He,G as ze,I as wt,J as Ct,K as kt,a as Tt,L as St,N as Et,H as $e,S as Ve,O as C,P as Ue,Q as Nt,R as Ft,U as Rt,W as Dt,X as Mt,Y as Ot,Z as At,_ as Bt,$ as It,a0 as Lt,b as Ht}from"./BbD1ObBocF77.js";import{g as zt,a as $t,L as Vt}from"./BIYM_9V_yYXg.js";import{S as Ut}from"./BHl-gw49ttT4.js";import{u as Gt}from"./UN9yAB02F1-Z.js";import{R as Wt,a as le}from"./wGcAn53r2nTa.js";import{S as Kt}from"./X2feasIkX6s8.js";import{C as qt}from"./C9CafZahHNwS.js";import{T as Xt}from"./Ddf4mYqhSsPi.js";import{B as b}from"./C9L897yljxNO.js";import"./Bux-xGeHLEc6.js";import"./DCmbPgooq4UU.js";function Yt(t){const{wasSelected:o,enabled:s,isSelected:n,mode:a="unmount"}=t;return!!(!s||n||a==="keepMounted"&&o)}function Jt(t){const{isOpen:o,ref:s}=t,[n,a]=c.useState(o),[r,i]=c.useState(!1);return c.useEffect(()=>{r||(a(o),i(!0))},[o,r,n]),ge(()=>s.current,"animationend",()=>{a(o)}),{present:!(o?!1:!n),onComplete(){const p=zt(s.current),d=new p.CustomEvent("animationend",{bubbles:!0});s.current?.dispatchEvent(d)}}}function Qt(t){const o=t.current;if(!o)return!1;const s=$t(o);return!s||o.contains(s)?!1:!!yt(s)}function Zt(t,o){const{shouldFocus:s,visible:n,focusRef:a}=o,r=s&&!n;Be(()=>{if(!r||Qt(t))return;const i=a?.current||t.current;let l;if(i)return l=requestAnimationFrame(()=>{i.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(l)}},[r,t,a])}const eo={preventScroll:!0,shouldFocus:!1};function to(t,o=eo){const{focusRef:s,preventScroll:n,shouldFocus:a,visible:r}=o,i=oo(t)?t.current:t,l=a&&r,p=c.useRef(l),d=c.useRef(r);xt(()=>{!d.current&&r&&(p.current=l),d.current=r},[r,l]);const f=c.useCallback(()=>{if(!(!r||!i||!p.current)&&(p.current=!1,!i.contains(document.activeElement)))if(s?.current)requestAnimationFrame(()=>{s.current?.focus({preventScroll:n})});else{const m=vt(i);m.length>0&&requestAnimationFrame(()=>{m[0].focus({preventScroll:n})})}},[r,n,i,s]);Be(()=>{f()},[f]),ge(i,"transitionend",f)}function oo(t){return"current"in t}function so(t){return"current"in t}const Ge=()=>typeof window<"u";function no(){return navigator.userAgentData?.platform??navigator.platform}const ro=t=>Ge()&&t.test(navigator.vendor),ao=t=>Ge()&&t.test(no()),io=()=>ao(/mac|iphone|ipad|ipod/i),co=()=>io()&&ro(/apple/i);function lo(t){const{ref:o,elements:s,enabled:n}=t,a=()=>o.current?.ownerDocument??document;ge(a,"pointerdown",r=>{if(!co()||!n)return;const i=r.composedPath?.()?.[0]??r.target,p=(s??[o]).some(d=>{const f=so(d)?d.current:d;return f?.contains(i)||f===i});a().activeElement!==i&&p&&(r.preventDefault(),i.focus())})}function uo(t){const{ref:o,handler:s,enabled:n=!0}=t,a=jt(s),i=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;c.useEffect(()=>{if(!n)return;const l=m=>{de(m,o)&&(i.isPointerDown=!0)},p=m=>{if(i.ignoreEmulatedMouseEvents){i.ignoreEmulatedMouseEvents=!1;return}i.isPointerDown&&s&&de(m,o)&&(i.isPointerDown=!1,a(m))},d=m=>{i.ignoreEmulatedMouseEvents=!0,s&&i.isPointerDown&&de(m,o)&&(i.isPointerDown=!1,a(m))},f=We(o.current);return f.addEventListener("mousedown",l,!0),f.addEventListener("mouseup",p,!0),f.addEventListener("touchstart",l,!0),f.addEventListener("touchend",d,!0),()=>{f.removeEventListener("mousedown",l,!0),f.removeEventListener("mouseup",p,!0),f.removeEventListener("touchstart",l,!0),f.removeEventListener("touchend",d,!0)}},[s,o,a,i,n])}function de(t,o){const s=t.composedPath?.()[0]??t.target;return s&&!We(s).contains(s)?!1:!o.current?.contains(s)}function We(t){return t?.ownerDocument??document}const ee=v((t,o)=>{const{className:s,...n}=t,{bodyId:a,setBodyMounted:r}=V();c.useEffect(()=>(r(!0),()=>r(!1)),[r]);const i=j("chakra-modal__body",s),l=O();return e.jsx(h.div,{ref:o,className:i,id:a,...n,__css:l.body})});ee.displayName="ModalBody";const _e=v((t,o)=>{const{onClick:s,className:n,...a}=t,{onClose:r}=V(),i=j("chakra-modal__close-btn",n),l=O();return e.jsx(Ie,{ref:o,__css:l.closeButton,className:i,onClick:w(s,p=>{p.stopPropagation(),r()}),...a})});_e.displayName="ModalCloseButton";const te=v((t,o)=>{const{className:s,...n}=t,a=j("chakra-modal__footer",s),r=O(),i=be({display:"flex",alignItems:"center",justifyContent:"flex-end",...r.footer});return e.jsx(h.footer,{ref:o,...n,__css:i,className:a})});te.displayName="ModalFooter";const oe=v((t,o)=>{const{className:s,...n}=t,{headerId:a,setHeaderMounted:r}=V();c.useEffect(()=>(r(!0),()=>r(!1)),[r]);const i=j("chakra-modal__header",s),l=O(),p=be({flex:0,...l.header});return e.jsx(h.header,{ref:o,className:i,id:a,...n,__css:p})});oe.displayName="ModalHeader";const po={enter:({transition:t,transitionEnd:o,delay:s}={})=>({opacity:1,transition:t?.enter??J.enter(De.enter,s),transitionEnd:o?.enter}),exit:({transition:t,transitionEnd:o,delay:s}={})=>({opacity:0,transition:t?.exit??J.exit(De.exit,s),transitionEnd:o?.exit})},Ke={initial:"exit",animate:"enter",exit:"exit",variants:po},fo=c.forwardRef(function(o,s){const{unmountOnExit:n,in:a,className:r,transition:i,transitionEnd:l,delay:p,animatePresenceProps:d,...f}=o,m=a||n?"enter":"exit",k=n?a&&n:!0,T={transition:i,transitionEnd:l,delay:p};return e.jsx(Le,{...d,custom:T,children:k&&e.jsx(Q.div,{ref:s,className:j("chakra-fade",r),custom:T,...Ke,animate:m,...f})})});fo.displayName="Fade";const mo=h(Q.div),se=v((t,o)=>{const{className:s,transition:n,motionProps:a,...r}=t,i=j("chakra-modal__overlay",s),p={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...O().overlay},{motionPreset:d}=V(),m=a||(d==="none"?{}:Ke);return e.jsx(mo,{...m,__css:p,ref:o,className:i,...r})});se.displayName="ModalOverlay";const Oe={exit:{duration:.15,ease:gt.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},ho={exit:({direction:t,transition:o,transitionEnd:s,delay:n})=>{const{exit:a}=fe({direction:t});return{...a,transition:o?.exit??J.exit(Oe.exit,n),transitionEnd:s?.exit}},enter:({direction:t,transitionEnd:o,transition:s,delay:n})=>{const{enter:a}=fe({direction:t});return{...a,transition:s?.enter??J.enter(Oe.enter,n),transitionEnd:o?.enter}}},qe=c.forwardRef(function(o,s){const{direction:n="right",style:a,unmountOnExit:r,in:i,className:l,transition:p,transitionEnd:d,delay:f,motionProps:m,animatePresenceProps:k,...T}=o,I=fe({direction:n}),L=Object.assign({position:"fixed"},I.position,a),x=r?i&&r:!0,P=i||r?"enter":"exit",R={transitionEnd:d,transition:p,direction:n,delay:f};return e.jsx(Le,{...k,custom:R,children:x&&e.jsx(Q.div,{...T,ref:s,initial:"exit",className:j("chakra-slide",l),animate:P,exit:"exit",custom:R,variants:ho,style:L,...m})})});qe.displayName="Slide";const xo=h(qe),Xe=v((t,o)=>{const{className:s,children:n,motionProps:a,containerProps:r,...i}=t,{getDialogProps:l,getDialogContainerProps:p,isOpen:d}=V(),f=l(i,o),m=p(r),k=j("chakra-modal__content",s),T=O(),I={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...T.dialog},L={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...T.dialogContainer},{placement:x}=bt();return e.jsx(Pt,{children:e.jsx(h.div,{...m,className:"chakra-modal__content-container",__css:L,children:e.jsx(xo,{motionProps:a,direction:x,in:d,className:k,...f,__css:I,children:n})})})});Xe.displayName="DrawerContent";const[vo,F]=Pe({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[yo,A]=Pe({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),M={click:"click",hover:"hover"};function jo(t={}){const{closeOnBlur:o=!0,closeOnEsc:s=!0,initialFocusRef:n,id:a,returnFocusOnClose:r=!0,autoFocus:i=!0,arrowSize:l,arrowShadowColor:p,trigger:d=M.click,openDelay:f=200,closeDelay:m=200,isLazy:k,lazyBehavior:T="unmount",computePositionOnMount:I,...L}=t,{isOpen:x,onClose:P,onOpen:R,onToggle:we}=Z(t),[et,ne]=c.useState(r);c.useEffect(()=>ne(r),[r]);const re=c.useRef(null),H=c.useRef(null),E=c.useRef(null),z=c.useRef(!1),Ce=c.useRef(!1);x&&(Ce.current=!0);const[ke,tt]=c.useState(!1),[Te,ot]=c.useState(!1),st=c.useId(),nt=a??st,[Se,U,G,W]=["popover-trigger","popover-content","popover-header","popover-body"].map(u=>`${u}-${nt}`),{referenceRef:K,getArrowProps:rt,getPopperProps:Ee,getArrowInnerProps:at,forceUpdate:it}=_t({...L,enabled:x||!!I}),Ne=Jt({isOpen:x,ref:E});lo({enabled:x,ref:H}),Zt(E,{focusRef:H,visible:x,shouldFocus:et&&d===M.click}),to(E,{focusRef:n,visible:x,shouldFocus:i&&d===M.click}),uo({enabled:x&&o,ref:E,handler(u){const g=u.composedPath?.()[0]??[u.target];q(H.current,g)||(g&&ne(!Me(g)),P())}});const Fe=Yt({wasSelected:Ce.current,enabled:k,mode:T,isSelected:Ne.present}),ct=c.useCallback((u={},g=null)=>{const y={...u,style:{...u.style,transformOrigin:ce.transformOrigin.varRef,[ce.arrowSize.var]:l?`${l}px`:void 0,[ce.arrowShadowColor.var]:p},ref:$(E,g),children:Fe?u.children:null,id:U,tabIndex:-1,role:"dialog",onKeyDown:w(u.onKeyDown,_=>{_.nativeEvent.isComposing||s&&_.key==="Escape"&&(_.preventDefault(),_.stopPropagation(),P())}),onBlur:w(u.onBlur,_=>{const D=Ae(_),ie=q(E.current,D),mt=q(H.current,D),ht=!ie&&!mt;D&&ne(!Me(D)),x&&o&&ht&&P()}),"aria-labelledby":ke?G:void 0,"aria-describedby":Te?W:void 0};return d===M.hover&&(y.role="tooltip",y.onMouseEnter=w(u.onMouseEnter,()=>{z.current=!0}),y.onMouseLeave=w(u.onMouseLeave,_=>{_.nativeEvent.relatedTarget!==null&&(z.current=!1,setTimeout(()=>P(),m))})),y},[Fe,U,ke,G,Te,W,d,s,P,x,o,m,p,l]),lt=c.useCallback((u={},g=null)=>Ee({...u,style:{visibility:x?"visible":"hidden",...u.style}},g),[x,Ee]),dt=c.useCallback((u,g=null)=>({...u,ref:$(g,re,K)}),[re,K]),N=c.useRef(),ae=c.useRef(),Re=c.useCallback(u=>{re.current==null&&K(u)},[K]),ut=c.useCallback((u={},g=null)=>{const y={...u,ref:$(H,g,Re),id:Se,"aria-haspopup":"dialog","aria-expanded":x,"aria-controls":U};return d===M.click&&(y.onClick=w(u.onClick,we)),d===M.hover&&(y.onFocus=w(u.onFocus,()=>{N.current===void 0&&R()}),y.onBlur=w(u.onBlur,_=>{const D=Ae(_),ie=!q(E.current,D);x&&o&&ie&&P()}),y.onKeyDown=w(u.onKeyDown,_=>{_.key==="Escape"&&P()}),y.onMouseEnter=w(u.onMouseEnter,()=>{z.current=!0,N.current=window.setTimeout(()=>R(),f)}),y.onMouseLeave=w(u.onMouseLeave,()=>{z.current=!1,N.current&&(clearTimeout(N.current),N.current=void 0),ae.current=window.setTimeout(()=>{z.current===!1&&P()},m)})),y},[Se,x,U,d,Re,we,R,o,P,f,m]);c.useEffect(()=>()=>{N.current&&clearTimeout(N.current),ae.current&&clearTimeout(ae.current)},[]);const pt=c.useCallback((u={},g=null)=>({...u,id:G,ref:$(g,y=>{tt(!!y)})}),[G]),ft=c.useCallback((u={},g=null)=>({...u,id:W,ref:$(g,y=>{ot(!!y)})}),[W]);return{forceUpdate:it,isOpen:x,onAnimationComplete:Ne.onComplete,onClose:P,getAnchorProps:dt,getArrowProps:rt,getArrowInnerProps:at,getPopoverPositionerProps:lt,getPopoverProps:ct,getTriggerProps:ut,getHeaderProps:pt,getBodyProps:ft}}function q(t,o){return t===o||t?.contains(o)}function Ae(t){const o=t.currentTarget.ownerDocument.activeElement;return t.relatedTarget??o}function me(t){const o=He("Popover",t),{children:s,...n}=ze(t),a=wt(),r=jo({...n,direction:a.direction});return e.jsx(vo,{value:r,children:e.jsx(yo,{value:o,children:Ct(s,{isOpen:r.isOpen,onClose:r.onClose,forceUpdate:r.forceUpdate})})})}me.displayName="Popover";const ue=(t,o)=>o?`${t}.${o}, ${o}`:void 0;function he(t){const{bg:o,bgColor:s,backgroundColor:n,shadow:a,boxShadow:r,shadowColor:i,...l}=t,{getArrowProps:p,getArrowInnerProps:d}=F(),f=A(),m=o??s??n,k=a??r;return e.jsx(h.div,{...p(),className:"chakra-popover__arrow-positioner",children:e.jsx(h.div,{className:j("chakra-popover__arrow",t.className),...d(l),__css:{"--popper-arrow-shadow-color":ue("colors",i),"--popper-arrow-bg":ue("colors",m),"--popper-arrow-shadow":ue("shadows",k),...f.arrow}})})}he.displayName="PopoverArrow";const Y=v(function(o,s){const{getBodyProps:n}=F(),a=A();return e.jsx(h.div,{...n(o,s),className:j("chakra-popover__body",o.className),__css:a.body})});Y.displayName="PopoverBody";const xe=v(function(o,s){const{onClose:n}=F(),a=A();return e.jsx(Ie,{size:"sm",onClick:n,className:j("chakra-popover__close-btn",o.className),__css:a.closeButton,ref:s,...o})});xe.displayName="PopoverCloseButton";function go(t){if(t)return{enter:{...t.enter,visibility:"visible"},exit:{...t.exit,transitionEnd:{visibility:"hidden"}}}}const bo={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Po=h(Q.section),Ye=v(function(o,s){const{variants:n=bo,...a}=o,{isOpen:r}=F();return e.jsx(Po,{ref:s,variants:go(n),initial:!1,animate:r?"enter":"exit",...a})});Ye.displayName="PopoverTransition";const ve=v(function(o,s){const{rootProps:n,motionProps:a,...r}=o,{getPopoverProps:i,getPopoverPositionerProps:l,onAnimationComplete:p}=F(),d=A(),f=be({position:"relative",display:"flex",flexDirection:"column",...d.content});return e.jsx(h.div,{...l(n),__css:d.popper,className:"chakra-popover__popper",children:e.jsx(Ye,{...a,...i(r,s),onAnimationComplete:kt(p,r.onAnimationComplete),className:j("chakra-popover__content",o.className),__css:f})})});ve.displayName="PopoverContent";function Je(t){const o=A();return e.jsx(h.footer,{...t,className:j("chakra-popover__footer",t.className),__css:o.footer})}Je.displayName="PopoverFooter";const ye=v(function(o,s){const{getHeaderProps:n}=F(),a=A();return e.jsx(h.header,{...n(o,s),className:j("chakra-popover__header",o.className),__css:a.header})});ye.displayName="PopoverHeader";function je(t){const o=c.Children.only(t.children),{getTriggerProps:s}=F();return e.jsx(e.Fragment,{children:c.cloneElement(o,s(o.props,o.ref))})}je.displayName="PopoverTrigger";const[_o,B]=Pe({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Qe=v((t,o)=>{const s=He("Table",t),{className:n,layout:a,...r}=ze(t);return e.jsx(_o,{value:s,children:e.jsx(h.table,{ref:o,__css:{tableLayout:a,...s.table},className:j("chakra-table",n),...r})})});Qe.displayName="Table";const Ze=v((t,o)=>{const{placement:s="bottom",...n}=t,a=B();return e.jsx(h.caption,{...n,ref:o,__css:{...a.caption,captionSide:s}})});Ze.displayName="TableCaption";const wo=v((t,o)=>{const{overflow:s,overflowX:n,className:a,...r}=t;return e.jsx(h.div,{ref:o,className:j("chakra-table__container",a),...r,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:s??n??"auto",overflowY:"hidden",maxWidth:"100%"}})}),Co=v((t,o)=>{const s=B();return e.jsx(h.tbody,{...t,ref:o,__css:s.tbody})}),S=v(({isNumeric:t,...o},s)=>{const n=B();return e.jsx(h.td,{...o,ref:s,__css:n.td,"data-is-numeric":t})}),pe=v(({isNumeric:t,...o},s)=>{const n=B();return e.jsx(h.th,{...o,ref:s,__css:n.th,"data-is-numeric":t})}),ko=v((t,o)=>{const s=B();return e.jsx(h.thead,{...t,ref:o,__css:s.thead})}),X=v((t,o)=>{const s=B();return e.jsx(h.tr,{...t,ref:o,__css:s.tr})}),To={"chakra-app":{name:"chakra-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},So="",Eo=[];function No(t){throw new Error(`Unsupported locale: '${t}'`)}const Fo=Tt(So),Ro=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:No,locales:Eo,packages:To,styles:Fo},Symbol.toStringTag,{value:"Module"})),Do=St({colors:{primary:{50:"#defffd",100:"#b3fffa",200:"#86feee",300:"#5bfedd",400:"#3efec9",500:"#32e5a6",600:"#23b277",700:"#147f4c",800:"#004d23",900:"#001b0a"}},fonts:{heading:"Helvetica"},components:{Button:{defaultProps:{colorScheme:"primary"},variants:{cancel:{color:"font_inverse",bg:"error",_hover:{backgroundColor:"error_hover"}}}},Link:{baseStyle:{color:"font_link"}},Divider:{baseStyle:{borderColor:"border"}}},semanticTokens:{colors:{background_primary:"primary.300",background_secondary:"primary.500",placeholder:"primary.100",font_primary:"black",font_secondary:"grey.500",font_inverse:"white",font_link:"yellow.300",border:"black",error:"red.500",error_hover:"red.600",success:"green.500",highlight:"yellow.300","chakra-body-bg":"background_primary","chakra-subtle-bg":"background_secondary","chakra-body-text":"font_primary","chakra-subtle-text":"font_secondary","chakra-inverse-text":"font_inverse","chakra-border-color":"border","chakra-placeholder-color":"placeholder"}}},Et);function Mo(){return e.jsx(wo,{sx:{border:"solid"},children:e.jsxs(Qe,{variant:"striped",children:[e.jsx(Ze,{children:"This is the table cation"}),e.jsx(ko,{children:e.jsxs(X,{children:[e.jsx(pe,{children:"First"}),e.jsx(pe,{children:"Test"}),e.jsx(pe,{isNumeric:!0,children:"Third (numeric)"})]})}),e.jsxs(Co,{children:[e.jsxs(X,{children:[e.jsx(S,{children:"one"}),e.jsx(S,{children:"bla"}),e.jsx(S,{isNumeric:!0,children:"22,3"})]}),e.jsxs(X,{children:[e.jsx(S,{children:"two"}),e.jsx(S,{children:"blub"}),e.jsx(S,{isNumeric:!0,children:"23.4"})]}),e.jsxs(X,{children:[e.jsx(S,{children:"three"}),e.jsx(S,{children:"blob"}),e.jsx(S,{isNumeric:!0,children:"12"})]})]})]})})}function Oo(){return e.jsx("div",{style:{overflow:"auto",height:"100%",width:"100%"},children:e.jsxs(qt,{children:[e.jsx($e,{mb:5,children:"chakra technical demo"}),e.jsx(Ao,{}),e.jsx(Bo,{}),e.jsx(Mo,{}),e.jsx(Ko,{})]})})}function Ao(){return e.jsxs(Xt,{children:["This is a"," ",e.jsx(Vt,{href:"https://chakra-ui.com",isExternal:!0,children:"link to Chakra's Design system"})]})}function Bo(){return e.jsxs(Ve,{mb:5,mt:5,divider:e.jsx(Ut,{}),spacing:"24px",align:"stretch",children:[e.jsx(C,{children:e.jsx(Io,{})}),e.jsx(C,{children:e.jsx(Lo,{})}),e.jsx(C,{children:e.jsx(Ho,{})}),e.jsx(C,{children:e.jsx(zo,{})}),e.jsx(C,{children:e.jsx($o,{})}),e.jsx(C,{children:e.jsx(Vo,{})}),e.jsx(C,{children:e.jsx(Uo,{})}),e.jsx(C,{children:e.jsx(Go,{})}),e.jsx(C,{children:e.jsx(Wo,{})})]})}function Io(){return e.jsxs(C,{bg:"background_secondary",children:[e.jsx($e,{size:"sm",children:"Portal Example: "}),"This is box and displayed here. Scroll/Look down to see the portal that is added at the end of document.body. The Portal is part of this Box.",e.jsx(Ue,{children:"This is the portal content!"})]})}function Lo(){return e.jsx(Nt,{hasArrow:!0,label:"Button Tooltip","aria-label":"A tooltip",placement:"top",children:e.jsx(b,{children:"Button with a tooltip"})})}function Ho(){const t=Gt();return e.jsx(b,{onClick:()=>t({title:"Account created.",description:"We've created your account for you.",status:"success",duration:9e3,position:"bottom-left",isClosable:!0}),children:"Show Toast"})}function zo(){return e.jsxs(Ft,{status:"error",children:[e.jsx(Rt,{}),e.jsx(Dt,{children:"Test Alert!"}),e.jsx(Mt,{children:"This is a test alert (error)"})]})}function $o(){const{isOpen:t,onOpen:o,onClose:s}=Z(),n=c.useRef(null);return e.jsxs(e.Fragment,{children:[e.jsx(b,{onClick:o,children:"Open Alert"}),e.jsx(Ot,{isOpen:t,leastDestructiveRef:n,onClose:s,children:e.jsx(se,{children:e.jsxs(At,{className:"class-from-app",children:[e.jsx(oe,{fontSize:"lg",fontWeight:"bold",children:"Alert Title"}),e.jsx(ee,{children:"This is the text in the alert dialog body."}),e.jsxs(te,{children:[e.jsx(b,{ref:n,onClick:s,variant:"cancel",children:"Cancel"}),e.jsx(b,{onClick:s,ml:3,children:"Okay"})]})]})})})]})}function Vo(){const{isOpen:t,onOpen:o,onClose:s}=Z();return e.jsxs(e.Fragment,{children:[e.jsx(b,{onClick:o,children:"Show Modal"}),e.jsxs(Bt,{closeOnOverlayClick:!1,isOpen:t,onClose:s,children:[e.jsx(se,{}),e.jsxs(It,{children:[e.jsx(oe,{children:"This is a modal"}),e.jsx(_e,{}),e.jsx(ee,{pb:6,children:"This is a modal text!"}),e.jsxs(te,{children:[e.jsx(b,{mr:2,children:"Got it"}),e.jsx(b,{onClick:s,children:"Cancel"})]})]})]})]})}function Uo(){const{isOpen:t,onOpen:o,onClose:s}=Z(),n=c.useRef(null);return e.jsxs(e.Fragment,{children:[e.jsx(b,{ref:n,onClick:o,children:"Open Drawer"}),e.jsxs(Lt,{isOpen:t,placement:"left",onClose:s,finalFocusRef:n,isFullHeight:!1,children:[e.jsx(se,{}),e.jsxs(Xe,{children:[e.jsx(_e,{}),e.jsx(oe,{children:"This is the drawer header"}),e.jsx(ee,{children:"This is the body."}),e.jsxs(te,{children:[e.jsx(b,{variant:"outline",mr:3,onClick:s,children:"Cancel"}),e.jsx(b,{children:"Got it"})]})]})]})]})}function Go(){return e.jsxs(e.Fragment,{children:[e.jsxs(me,{children:[e.jsx(je,{children:e.jsx(b,{children:"Show Popover"})}),e.jsxs(ve,{children:[e.jsx(he,{}),e.jsx(xe,{}),e.jsx(ye,{children:"Popover!"}),e.jsx(Y,{children:"This is a very important Popover"})]})]}),e.jsxs(me,{children:[e.jsx(je,{children:e.jsx(b,{ml:5,children:"Show Popover rendered in an portal"})}),e.jsx(Ue,{children:e.jsxs(ve,{children:[e.jsx(he,{}),e.jsx(ye,{children:"Header"}),e.jsx(xe,{}),e.jsx(Y,{children:e.jsx(Y,{children:"This is a very important Popover"})}),e.jsx(Je,{children:"This is the footer"})]})})]})]})}function Wo(){const[t,o]=c.useState("2");return e.jsxs(e.Fragment,{children:[e.jsx(Wt,{onChange:o,value:t,children:e.jsxs(Ve,{spacing:4,direction:"row",children:[e.jsx(le,{size:"sm",value:"1",isDisabled:!0,children:"Radio 1 (Disabled)"}),e.jsx(le,{size:"md",value:"2",children:"Radio 2"}),e.jsx(le,{size:"lg",value:"3",children:"Radio 3"})]})}),e.jsx("p",{children:"Checked radio: "+t})]})}function Ko(){return e.jsxs(Kt,{m:5,placeholder:"Select an item",children:[e.jsx("option",{value:"item1",children:"Item 1"}),e.jsx("option",{value:"item2",children:"Item 2"}),e.jsx("option",{value:"item3",children:"Item 3"})]})}const qo=Ht({component:Oo,theme:Do,appMetadata:Ro});customElements.define("chakra-app",qo); +import{r as c,u as ge,d as Be,e as xt,g as vt,i as yt,f as jt,h as v,k as V,l as j,m as O,j as e,n as h,C as Ie,o as w,p as be,A as Le,q as Q,w as J,T as De,s as fe,t as gt,v as bt,M as Pt,x as Pe,y as Z,z as _t,B as ce,D as $,E as Me,F as He,G as ze,I as wt,J as Ct,K as kt,a as Tt,L as St,N as Et,H as $e,S as Ve,O as C,P as Ue,Q as Nt,R as Ft,U as Rt,W as Dt,X as Mt,Y as Ot,Z as At,_ as Bt,$ as It,a0 as Lt,b as Ht}from"./BbD1ObBocF77.js";import{g as zt,a as $t,L as Vt}from"./BIYM_9V_yYXg.js";import{S as Ut}from"./BHl-gw49ttT4.js";import{u as Gt}from"./UN9yAB02F1-Z.js";import{R as Wt,a as le}from"./wGcAn53r2nTa.js";import{S as Kt}from"./X2feasIkX6s8.js";import{C as qt}from"./C9CafZahHNwS.js";import{T as Xt}from"./Ddf4mYqhSsPi.js";import{B as b}from"./C9L897yljxNO.js";import"./Bux-xGeHLEc6.js";import"./DCmbPgooq4UU.js";function Yt(t){const{wasSelected:o,enabled:s,isSelected:n,mode:a="unmount"}=t;return!!(!s||n||a==="keepMounted"&&o)}function Jt(t){const{isOpen:o,ref:s}=t,[n,a]=c.useState(o),[r,i]=c.useState(!1);return c.useEffect(()=>{r||(a(o),i(!0))},[o,r,n]),ge(()=>s.current,"animationend",()=>{a(o)}),{present:!(o?!1:!n),onComplete(){const p=zt(s.current),d=new p.CustomEvent("animationend",{bubbles:!0});s.current?.dispatchEvent(d)}}}function Qt(t){const o=t.current;if(!o)return!1;const s=$t(o);return!s||o.contains(s)?!1:!!yt(s)}function Zt(t,o){const{shouldFocus:s,visible:n,focusRef:a}=o,r=s&&!n;Be(()=>{if(!r||Qt(t))return;const i=a?.current||t.current;let l;if(i)return l=requestAnimationFrame(()=>{i.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(l)}},[r,t,a])}const eo={preventScroll:!0,shouldFocus:!1};function to(t,o=eo){const{focusRef:s,preventScroll:n,shouldFocus:a,visible:r}=o,i=oo(t)?t.current:t,l=a&&r,p=c.useRef(l),d=c.useRef(r);xt(()=>{!d.current&&r&&(p.current=l),d.current=r},[r,l]);const f=c.useCallback(()=>{if(!(!r||!i||!p.current)&&(p.current=!1,!i.contains(document.activeElement)))if(s?.current)requestAnimationFrame(()=>{s.current?.focus({preventScroll:n})});else{const m=vt(i);m.length>0&&requestAnimationFrame(()=>{m[0].focus({preventScroll:n})})}},[r,n,i,s]);Be(()=>{f()},[f]),ge(i,"transitionend",f)}function oo(t){return"current"in t}function so(t){return"current"in t}const Ge=()=>typeof window<"u";function no(){return navigator.userAgentData?.platform??navigator.platform}const ro=t=>Ge()&&t.test(navigator.vendor),ao=t=>Ge()&&t.test(no()),io=()=>ao(/mac|iphone|ipad|ipod/i),co=()=>io()&&ro(/apple/i);function lo(t){const{ref:o,elements:s,enabled:n}=t,a=()=>o.current?.ownerDocument??document;ge(a,"pointerdown",r=>{if(!co()||!n)return;const i=r.composedPath?.()?.[0]??r.target,p=(s??[o]).some(d=>{const f=so(d)?d.current:d;return f?.contains(i)||f===i});a().activeElement!==i&&p&&(r.preventDefault(),i.focus())})}function uo(t){const{ref:o,handler:s,enabled:n=!0}=t,a=jt(s),i=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;c.useEffect(()=>{if(!n)return;const l=m=>{de(m,o)&&(i.isPointerDown=!0)},p=m=>{if(i.ignoreEmulatedMouseEvents){i.ignoreEmulatedMouseEvents=!1;return}i.isPointerDown&&s&&de(m,o)&&(i.isPointerDown=!1,a(m))},d=m=>{i.ignoreEmulatedMouseEvents=!0,s&&i.isPointerDown&&de(m,o)&&(i.isPointerDown=!1,a(m))},f=We(o.current);return f.addEventListener("mousedown",l,!0),f.addEventListener("mouseup",p,!0),f.addEventListener("touchstart",l,!0),f.addEventListener("touchend",d,!0),()=>{f.removeEventListener("mousedown",l,!0),f.removeEventListener("mouseup",p,!0),f.removeEventListener("touchstart",l,!0),f.removeEventListener("touchend",d,!0)}},[s,o,a,i,n])}function de(t,o){const s=t.composedPath?.()[0]??t.target;return s&&!We(s).contains(s)?!1:!o.current?.contains(s)}function We(t){return t?.ownerDocument??document}const ee=v((t,o)=>{const{className:s,...n}=t,{bodyId:a,setBodyMounted:r}=V();c.useEffect(()=>(r(!0),()=>r(!1)),[r]);const i=j("chakra-modal__body",s),l=O();return e.jsx(h.div,{ref:o,className:i,id:a,...n,__css:l.body})});ee.displayName="ModalBody";const _e=v((t,o)=>{const{onClick:s,className:n,...a}=t,{onClose:r}=V(),i=j("chakra-modal__close-btn",n),l=O();return e.jsx(Ie,{ref:o,__css:l.closeButton,className:i,onClick:w(s,p=>{p.stopPropagation(),r()}),...a})});_e.displayName="ModalCloseButton";const te=v((t,o)=>{const{className:s,...n}=t,a=j("chakra-modal__footer",s),r=O(),i=be({display:"flex",alignItems:"center",justifyContent:"flex-end",...r.footer});return e.jsx(h.footer,{ref:o,...n,__css:i,className:a})});te.displayName="ModalFooter";const oe=v((t,o)=>{const{className:s,...n}=t,{headerId:a,setHeaderMounted:r}=V();c.useEffect(()=>(r(!0),()=>r(!1)),[r]);const i=j("chakra-modal__header",s),l=O(),p=be({flex:0,...l.header});return e.jsx(h.header,{ref:o,className:i,id:a,...n,__css:p})});oe.displayName="ModalHeader";const po={enter:({transition:t,transitionEnd:o,delay:s}={})=>({opacity:1,transition:t?.enter??J.enter(De.enter,s),transitionEnd:o?.enter}),exit:({transition:t,transitionEnd:o,delay:s}={})=>({opacity:0,transition:t?.exit??J.exit(De.exit,s),transitionEnd:o?.exit})},Ke={initial:"exit",animate:"enter",exit:"exit",variants:po},fo=c.forwardRef(function(o,s){const{unmountOnExit:n,in:a,className:r,transition:i,transitionEnd:l,delay:p,animatePresenceProps:d,...f}=o,m=a||n?"enter":"exit",k=n?a&&n:!0,T={transition:i,transitionEnd:l,delay:p};return e.jsx(Le,{...d,custom:T,children:k&&e.jsx(Q.div,{ref:s,className:j("chakra-fade",r),custom:T,...Ke,animate:m,...f})})});fo.displayName="Fade";const mo=h(Q.div),se=v((t,o)=>{const{className:s,transition:n,motionProps:a,...r}=t,i=j("chakra-modal__overlay",s),p={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...O().overlay},{motionPreset:d}=V(),m=a||(d==="none"?{}:Ke);return e.jsx(mo,{...m,__css:p,ref:o,className:i,...r})});se.displayName="ModalOverlay";const Oe={exit:{duration:.15,ease:gt.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},ho={exit:({direction:t,transition:o,transitionEnd:s,delay:n})=>{const{exit:a}=fe({direction:t});return{...a,transition:o?.exit??J.exit(Oe.exit,n),transitionEnd:s?.exit}},enter:({direction:t,transitionEnd:o,transition:s,delay:n})=>{const{enter:a}=fe({direction:t});return{...a,transition:s?.enter??J.enter(Oe.enter,n),transitionEnd:o?.enter}}},qe=c.forwardRef(function(o,s){const{direction:n="right",style:a,unmountOnExit:r,in:i,className:l,transition:p,transitionEnd:d,delay:f,motionProps:m,animatePresenceProps:k,...T}=o,I=fe({direction:n}),L=Object.assign({position:"fixed"},I.position,a),x=r?i&&r:!0,P=i||r?"enter":"exit",R={transitionEnd:d,transition:p,direction:n,delay:f};return e.jsx(Le,{...k,custom:R,children:x&&e.jsx(Q.div,{...T,ref:s,initial:"exit",className:j("chakra-slide",l),animate:P,exit:"exit",custom:R,variants:ho,style:L,...m})})});qe.displayName="Slide";const xo=h(qe),Xe=v((t,o)=>{const{className:s,children:n,motionProps:a,containerProps:r,...i}=t,{getDialogProps:l,getDialogContainerProps:p,isOpen:d}=V(),f=l(i,o),m=p(r),k=j("chakra-modal__content",s),T=O(),I={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...T.dialog},L={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...T.dialogContainer},{placement:x}=bt();return e.jsx(Pt,{children:e.jsx(h.div,{...m,className:"chakra-modal__content-container",__css:L,children:e.jsx(xo,{motionProps:a,direction:x,in:d,className:k,...f,__css:I,children:n})})})});Xe.displayName="DrawerContent";const[vo,F]=Pe({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[yo,A]=Pe({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),M={click:"click",hover:"hover"};function jo(t={}){const{closeOnBlur:o=!0,closeOnEsc:s=!0,initialFocusRef:n,id:a,returnFocusOnClose:r=!0,autoFocus:i=!0,arrowSize:l,arrowShadowColor:p,trigger:d=M.click,openDelay:f=200,closeDelay:m=200,isLazy:k,lazyBehavior:T="unmount",computePositionOnMount:I,...L}=t,{isOpen:x,onClose:P,onOpen:R,onToggle:we}=Z(t),[et,ne]=c.useState(r);c.useEffect(()=>ne(r),[r]);const re=c.useRef(null),H=c.useRef(null),E=c.useRef(null),z=c.useRef(!1),Ce=c.useRef(!1);x&&(Ce.current=!0);const[ke,tt]=c.useState(!1),[Te,ot]=c.useState(!1),st=c.useId(),nt=a??st,[Se,U,G,W]=["popover-trigger","popover-content","popover-header","popover-body"].map(u=>`${u}-${nt}`),{referenceRef:K,getArrowProps:rt,getPopperProps:Ee,getArrowInnerProps:at,forceUpdate:it}=_t({...L,enabled:x||!!I}),Ne=Jt({isOpen:x,ref:E});lo({enabled:x,ref:H}),Zt(E,{focusRef:H,visible:x,shouldFocus:et&&d===M.click}),to(E,{focusRef:n,visible:x,shouldFocus:i&&d===M.click}),uo({enabled:x&&o,ref:E,handler(u){const g=u.composedPath?.()[0]??[u.target];q(H.current,g)||(g&&ne(!Me(g)),P())}});const Fe=Yt({wasSelected:Ce.current,enabled:k,mode:T,isSelected:Ne.present}),ct=c.useCallback((u={},g=null)=>{const y={...u,style:{...u.style,transformOrigin:ce.transformOrigin.varRef,[ce.arrowSize.var]:l?`${l}px`:void 0,[ce.arrowShadowColor.var]:p},ref:$(E,g),children:Fe?u.children:null,id:U,tabIndex:-1,role:"dialog",onKeyDown:w(u.onKeyDown,_=>{_.nativeEvent.isComposing||s&&_.key==="Escape"&&(_.preventDefault(),_.stopPropagation(),P())}),onBlur:w(u.onBlur,_=>{const D=Ae(_),ie=q(E.current,D),mt=q(H.current,D),ht=!ie&&!mt;D&&ne(!Me(D)),x&&o&&ht&&P()}),"aria-labelledby":ke?G:void 0,"aria-describedby":Te?W:void 0};return d===M.hover&&(y.role="tooltip",y.onMouseEnter=w(u.onMouseEnter,()=>{z.current=!0}),y.onMouseLeave=w(u.onMouseLeave,_=>{_.nativeEvent.relatedTarget!==null&&(z.current=!1,setTimeout(()=>P(),m))})),y},[Fe,U,ke,G,Te,W,d,s,P,x,o,m,p,l]),lt=c.useCallback((u={},g=null)=>Ee({...u,style:{visibility:x?"visible":"hidden",...u.style}},g),[x,Ee]),dt=c.useCallback((u,g=null)=>({...u,ref:$(g,re,K)}),[re,K]),N=c.useRef(),ae=c.useRef(),Re=c.useCallback(u=>{re.current==null&&K(u)},[K]),ut=c.useCallback((u={},g=null)=>{const y={...u,ref:$(H,g,Re),id:Se,"aria-haspopup":"dialog","aria-expanded":x,"aria-controls":U};return d===M.click&&(y.onClick=w(u.onClick,we)),d===M.hover&&(y.onFocus=w(u.onFocus,()=>{N.current===void 0&&R()}),y.onBlur=w(u.onBlur,_=>{const D=Ae(_),ie=!q(E.current,D);x&&o&&ie&&P()}),y.onKeyDown=w(u.onKeyDown,_=>{_.key==="Escape"&&P()}),y.onMouseEnter=w(u.onMouseEnter,()=>{z.current=!0,N.current=window.setTimeout(()=>R(),f)}),y.onMouseLeave=w(u.onMouseLeave,()=>{z.current=!1,N.current&&(clearTimeout(N.current),N.current=void 0),ae.current=window.setTimeout(()=>{z.current===!1&&P()},m)})),y},[Se,x,U,d,Re,we,R,o,P,f,m]);c.useEffect(()=>()=>{N.current&&clearTimeout(N.current),ae.current&&clearTimeout(ae.current)},[]);const pt=c.useCallback((u={},g=null)=>({...u,id:G,ref:$(g,y=>{tt(!!y)})}),[G]),ft=c.useCallback((u={},g=null)=>({...u,id:W,ref:$(g,y=>{ot(!!y)})}),[W]);return{forceUpdate:it,isOpen:x,onAnimationComplete:Ne.onComplete,onClose:P,getAnchorProps:dt,getArrowProps:rt,getArrowInnerProps:at,getPopoverPositionerProps:lt,getPopoverProps:ct,getTriggerProps:ut,getHeaderProps:pt,getBodyProps:ft}}function q(t,o){return t===o||t?.contains(o)}function Ae(t){const o=t.currentTarget.ownerDocument.activeElement;return t.relatedTarget??o}function me(t){const o=He("Popover",t),{children:s,...n}=ze(t),a=wt(),r=jo({...n,direction:a.direction});return e.jsx(vo,{value:r,children:e.jsx(yo,{value:o,children:Ct(s,{isOpen:r.isOpen,onClose:r.onClose,forceUpdate:r.forceUpdate})})})}me.displayName="Popover";const ue=(t,o)=>o?`${t}.${o}, ${o}`:void 0;function he(t){const{bg:o,bgColor:s,backgroundColor:n,shadow:a,boxShadow:r,shadowColor:i,...l}=t,{getArrowProps:p,getArrowInnerProps:d}=F(),f=A(),m=o??s??n,k=a??r;return e.jsx(h.div,{...p(),className:"chakra-popover__arrow-positioner",children:e.jsx(h.div,{className:j("chakra-popover__arrow",t.className),...d(l),__css:{"--popper-arrow-shadow-color":ue("colors",i),"--popper-arrow-bg":ue("colors",m),"--popper-arrow-shadow":ue("shadows",k),...f.arrow}})})}he.displayName="PopoverArrow";const Y=v(function(o,s){const{getBodyProps:n}=F(),a=A();return e.jsx(h.div,{...n(o,s),className:j("chakra-popover__body",o.className),__css:a.body})});Y.displayName="PopoverBody";const xe=v(function(o,s){const{onClose:n}=F(),a=A();return e.jsx(Ie,{size:"sm",onClick:n,className:j("chakra-popover__close-btn",o.className),__css:a.closeButton,ref:s,...o})});xe.displayName="PopoverCloseButton";function go(t){if(t)return{enter:{...t.enter,visibility:"visible"},exit:{...t.exit,transitionEnd:{visibility:"hidden"}}}}const bo={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Po=h(Q.section),Ye=v(function(o,s){const{variants:n=bo,...a}=o,{isOpen:r}=F();return e.jsx(Po,{ref:s,variants:go(n),initial:!1,animate:r?"enter":"exit",...a})});Ye.displayName="PopoverTransition";const ve=v(function(o,s){const{rootProps:n,motionProps:a,...r}=o,{getPopoverProps:i,getPopoverPositionerProps:l,onAnimationComplete:p}=F(),d=A(),f=be({position:"relative",display:"flex",flexDirection:"column",...d.content});return e.jsx(h.div,{...l(n),__css:d.popper,className:"chakra-popover__popper",children:e.jsx(Ye,{...a,...i(r,s),onAnimationComplete:kt(p,r.onAnimationComplete),className:j("chakra-popover__content",o.className),__css:f})})});ve.displayName="PopoverContent";function Je(t){const o=A();return e.jsx(h.footer,{...t,className:j("chakra-popover__footer",t.className),__css:o.footer})}Je.displayName="PopoverFooter";const ye=v(function(o,s){const{getHeaderProps:n}=F(),a=A();return e.jsx(h.header,{...n(o,s),className:j("chakra-popover__header",o.className),__css:a.header})});ye.displayName="PopoverHeader";function je(t){const o=c.Children.only(t.children),{getTriggerProps:s}=F();return e.jsx(e.Fragment,{children:c.cloneElement(o,s(o.props,o.ref))})}je.displayName="PopoverTrigger";const[_o,B]=Pe({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "
" `}),Qe=v((t,o)=>{const s=He("Table",t),{className:n,layout:a,...r}=ze(t);return e.jsx(_o,{value:s,children:e.jsx(h.table,{ref:o,__css:{tableLayout:a,...s.table},className:j("chakra-table",n),...r})})});Qe.displayName="Table";const Ze=v((t,o)=>{const{placement:s="bottom",...n}=t,a=B();return e.jsx(h.caption,{...n,ref:o,__css:{...a.caption,captionSide:s}})});Ze.displayName="TableCaption";const wo=v((t,o)=>{const{overflow:s,overflowX:n,className:a,...r}=t;return e.jsx(h.div,{ref:o,className:j("chakra-table__container",a),...r,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:s??n??"auto",overflowY:"hidden",maxWidth:"100%"}})}),Co=v((t,o)=>{const s=B();return e.jsx(h.tbody,{...t,ref:o,__css:s.tbody})}),S=v(({isNumeric:t,...o},s)=>{const n=B();return e.jsx(h.td,{...o,ref:s,__css:n.td,"data-is-numeric":t})}),pe=v(({isNumeric:t,...o},s)=>{const n=B();return e.jsx(h.th,{...o,ref:s,__css:n.th,"data-is-numeric":t})}),ko=v((t,o)=>{const s=B();return e.jsx(h.thead,{...t,ref:o,__css:s.thead})}),X=v((t,o)=>{const s=B();return e.jsx(h.tr,{...t,ref:o,__css:s.tr})}),To={"chakra-app":{name:"chakra-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},So="",Eo=[];function No(t){throw new Error(`Unsupported locale: '${t}'`)}const Fo=Tt(So),Ro=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:No,locales:Eo,packages:To,styles:Fo},Symbol.toStringTag,{value:"Module"})),Do=St({colors:{primary:{50:"#defffd",100:"#b3fffa",200:"#86feee",300:"#5bfedd",400:"#3efec9",500:"#32e5a6",600:"#23b277",700:"#147f4c",800:"#004d23",900:"#001b0a"}},fonts:{heading:"Helvetica"},components:{Button:{defaultProps:{colorScheme:"primary"},variants:{cancel:{color:"font_inverse",bg:"error",_hover:{backgroundColor:"error_hover"}}}},Link:{baseStyle:{color:"font_link"}},Divider:{baseStyle:{borderColor:"border"}}},semanticTokens:{colors:{background_primary:"primary.300",background_secondary:"primary.500",placeholder:"primary.100",font_primary:"black",font_secondary:"grey.500",font_inverse:"white",font_link:"yellow.300",border:"black",error:"red.500",error_hover:"red.600",success:"green.500",highlight:"yellow.300","chakra-body-bg":"background_primary","chakra-subtle-bg":"background_secondary","chakra-body-text":"font_primary","chakra-subtle-text":"font_secondary","chakra-inverse-text":"font_inverse","chakra-border-color":"border","chakra-placeholder-color":"placeholder"}}},Et);function Mo(){return e.jsx(wo,{sx:{border:"solid"},children:e.jsxs(Qe,{variant:"striped",children:[e.jsx(Ze,{children:"This is the table cation"}),e.jsx(ko,{children:e.jsxs(X,{children:[e.jsx(pe,{children:"First"}),e.jsx(pe,{children:"Test"}),e.jsx(pe,{isNumeric:!0,children:"Third (numeric)"})]})}),e.jsxs(Co,{children:[e.jsxs(X,{children:[e.jsx(S,{children:"one"}),e.jsx(S,{children:"bla"}),e.jsx(S,{isNumeric:!0,children:"22,3"})]}),e.jsxs(X,{children:[e.jsx(S,{children:"two"}),e.jsx(S,{children:"blub"}),e.jsx(S,{isNumeric:!0,children:"23.4"})]}),e.jsxs(X,{children:[e.jsx(S,{children:"three"}),e.jsx(S,{children:"blob"}),e.jsx(S,{isNumeric:!0,children:"12"})]})]})]})})}function Oo(){return e.jsx("div",{style:{overflow:"auto",height:"100%",width:"100%"},children:e.jsxs(qt,{children:[e.jsx($e,{mb:5,children:"chakra technical demo"}),e.jsx(Ao,{}),e.jsx(Bo,{}),e.jsx(Mo,{}),e.jsx(Ko,{})]})})}function Ao(){return e.jsxs(Xt,{children:["This is a"," ",e.jsx(Vt,{href:"https://chakra-ui.com",isExternal:!0,children:"link to Chakra's Design system"})]})}function Bo(){return e.jsxs(Ve,{mb:5,mt:5,divider:e.jsx(Ut,{}),spacing:"24px",align:"stretch",children:[e.jsx(C,{children:e.jsx(Io,{})}),e.jsx(C,{children:e.jsx(Lo,{})}),e.jsx(C,{children:e.jsx(Ho,{})}),e.jsx(C,{children:e.jsx(zo,{})}),e.jsx(C,{children:e.jsx($o,{})}),e.jsx(C,{children:e.jsx(Vo,{})}),e.jsx(C,{children:e.jsx(Uo,{})}),e.jsx(C,{children:e.jsx(Go,{})}),e.jsx(C,{children:e.jsx(Wo,{})})]})}function Io(){return e.jsxs(C,{bg:"background_secondary",children:[e.jsx($e,{size:"sm",children:"Portal Example: "}),"This is box and displayed here. Scroll/Look down to see the portal that is added at the end of document.body. The Portal is part of this Box.",e.jsx(Ue,{children:"This is the portal content!"})]})}function Lo(){return e.jsx(Nt,{hasArrow:!0,label:"Button Tooltip","aria-label":"A tooltip",placement:"top",children:e.jsx(b,{children:"Button with a tooltip"})})}function Ho(){const t=Gt();return e.jsx(b,{onClick:()=>t({title:"Account created.",description:"We've created your account for you.",status:"success",duration:9e3,position:"bottom-left",isClosable:!0}),children:"Show Toast"})}function zo(){return e.jsxs(Ft,{status:"error",children:[e.jsx(Rt,{}),e.jsx(Dt,{children:"Test Alert!"}),e.jsx(Mt,{children:"This is a test alert (error)"})]})}function $o(){const{isOpen:t,onOpen:o,onClose:s}=Z(),n=c.useRef(null);return e.jsxs(e.Fragment,{children:[e.jsx(b,{onClick:o,children:"Open Alert"}),e.jsx(Ot,{isOpen:t,leastDestructiveRef:n,onClose:s,children:e.jsx(se,{children:e.jsxs(At,{className:"class-from-app",children:[e.jsx(oe,{fontSize:"lg",fontWeight:"bold",children:"Alert Title"}),e.jsx(ee,{children:"This is the text in the alert dialog body."}),e.jsxs(te,{children:[e.jsx(b,{ref:n,onClick:s,variant:"cancel",children:"Cancel"}),e.jsx(b,{onClick:s,ml:3,children:"Okay"})]})]})})})]})}function Vo(){const{isOpen:t,onOpen:o,onClose:s}=Z();return e.jsxs(e.Fragment,{children:[e.jsx(b,{onClick:o,children:"Show Modal"}),e.jsxs(Bt,{closeOnOverlayClick:!1,isOpen:t,onClose:s,children:[e.jsx(se,{}),e.jsxs(It,{children:[e.jsx(oe,{children:"This is a modal"}),e.jsx(_e,{}),e.jsx(ee,{pb:6,children:"This is a modal text!"}),e.jsxs(te,{children:[e.jsx(b,{mr:2,children:"Got it"}),e.jsx(b,{onClick:s,children:"Cancel"})]})]})]})]})}function Uo(){const{isOpen:t,onOpen:o,onClose:s}=Z(),n=c.useRef(null);return e.jsxs(e.Fragment,{children:[e.jsx(b,{ref:n,onClick:o,children:"Open Drawer"}),e.jsxs(Lt,{isOpen:t,placement:"left",onClose:s,finalFocusRef:n,isFullHeight:!1,children:[e.jsx(se,{}),e.jsxs(Xe,{children:[e.jsx(_e,{}),e.jsx(oe,{children:"This is the drawer header"}),e.jsx(ee,{children:"This is the body."}),e.jsxs(te,{children:[e.jsx(b,{variant:"outline",mr:3,onClick:s,children:"Cancel"}),e.jsx(b,{children:"Got it"})]})]})]})]})}function Go(){return e.jsxs(e.Fragment,{children:[e.jsxs(me,{children:[e.jsx(je,{children:e.jsx(b,{children:"Show Popover"})}),e.jsxs(ve,{children:[e.jsx(he,{}),e.jsx(xe,{}),e.jsx(ye,{children:"Popover!"}),e.jsx(Y,{children:"This is a very important Popover"})]})]}),e.jsxs(me,{children:[e.jsx(je,{children:e.jsx(b,{ml:5,children:"Show Popover rendered in an portal"})}),e.jsx(Ue,{children:e.jsxs(ve,{children:[e.jsx(he,{}),e.jsx(ye,{children:"Header"}),e.jsx(xe,{}),e.jsx(Y,{children:e.jsx(Y,{children:"This is a very important Popover"})}),e.jsx(Je,{children:"This is the footer"})]})})]})]})}function Wo(){const[t,o]=c.useState("2");return e.jsxs(e.Fragment,{children:[e.jsx(Wt,{onChange:o,value:t,children:e.jsxs(Ve,{spacing:4,direction:"row",children:[e.jsx(le,{size:"sm",value:"1",isDisabled:!0,children:"Radio 1 (Disabled)"}),e.jsx(le,{size:"md",value:"2",children:"Radio 2"}),e.jsx(le,{size:"lg",value:"3",children:"Radio 3"})]})}),e.jsx("p",{children:"Checked radio: "+t})]})}function Ko(){return e.jsxs(Kt,{m:5,placeholder:"Select an item",children:[e.jsx("option",{value:"item1",children:"Item 1"}),e.jsx("option",{value:"item2",children:"Item 2"}),e.jsx("option",{value:"item3",children:"Item 3"})]})}const qo=Ht({component:Oo,theme:Do,appMetadata:Ro});customElements.define("chakra-app",qo); diff --git a/core-packages/assets/BqQbAsXTwL1m.js b/core-packages/assets/MllcI1nCjNkA.js similarity index 98% rename from core-packages/assets/BqQbAsXTwL1m.js rename to core-packages/assets/MllcI1nCjNkA.js index 6f2319479..07efcc44f 100644 --- a/core-packages/assets/BqQbAsXTwL1m.js +++ b/core-packages/assets/MllcI1nCjNkA.js @@ -1 +1 @@ -import{f as V,r as m,n as w,h as E,j as n,l as _,d as yt,D as re,o as oe,x as He,F as Oe,G as We,I as St,a as jt,H as b,O as ze,S,Q as kt,b as Pt}from"./BbD1ObBocF77.js";import{F as wt}from"./tahGmHek4or5.js";import{u as Et,I as Ct}from"./CVmFO9NFdac9.js";import{c as ie,p as It,r as Fe,v as Le}from"./D-Zd7p0hx1Jn.js";import{b as Tt,L as _t}from"./BIYM_9V_yYXg.js";import{a as ae,d as A,C as Rt}from"./C9CafZahHNwS.js";import{u as Dt,C as H,T as Nt}from"./DiI0-Y_JDvy-.js";import{B as k}from"./C9L897yljxNO.js";import{D}from"./BJ2AHJRZBHRV.js";import{I as le}from"./DUWS-ykArEfP.js";import{a as ce}from"./wGcAn53r2nTa.js";import{S as ue}from"./X2feasIkX6s8.js";import"./Bux-xGeHLEc6.js";import"./DCmbPgooq4UU.js";function Mt(t,e,s,r){return t.addEventListener(e,s,r),()=>{t.removeEventListener(e,s,r)}}function At(t){const e=Tt(t);return typeof e.PointerEvent<"u"&&t instanceof e.PointerEvent?t.pointerType==="mouse":t instanceof e.MouseEvent}function Ke(t){return!!t.touches}function Vt(t){return Ke(t)&&t.touches.length>1}function zt(t,e="page"){const s=t.touches[0]||t.changedTouches[0];return{x:s[`${e}X`],y:s[`${e}Y`]}}function Ft(t,e="page"){return{x:t[`${e}X`],y:t[`${e}Y`]}}function Xe(t,e="page"){return Ke(t)?zt(t,e):Ft(t,e)}function Lt(t){return e=>{const s=At(e);(!s||s&&e.button===0)&&t(e)}}function $t(t,e=!1){function s(i){t(i,{point:Xe(i)})}return e?Lt(s):s}function O(t,e,s,r){return Mt(t,e,$t(s,e==="pointerdown"),r)}function Ut(t){const{value:e,defaultValue:s,onChange:r,shouldUpdate:i=(x,j)=>x!==j}=t,d=V(r),h=V(i),[p,c]=m.useState(s),u=e!==void 0,a=u?e:p,f=V(x=>{const C=typeof x=="function"?x(a):x;h(a,C)&&(u||c(C),d(C))},[u,d,a,h]);return[a,f]}function Ye(t){const e=m.useRef(null);return e.current=t,e}const Ge=1/60*1e3,Bt=typeof performance<"u"?()=>performance.now():()=>Date.now(),qe=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(Bt()),Ge);function Ht(t){let e=[],s=[],r=0,i=!1,d=!1;const h=new WeakSet,p={schedule:(c,u=!1,a=!1)=>{const f=a&&i,x=f?e:s;return u&&h.add(c),x.indexOf(c)===-1&&(x.push(c),f&&i&&(r=e.length)),c},cancel:c=>{const u=s.indexOf(c);u!==-1&&s.splice(u,1),h.delete(c)},process:c=>{if(i){d=!0;return}if(i=!0,[e,s]=[s,e],s.length=0,r=e.length,r)for(let u=0;u(t[e]=Ht(()=>$=!0),t),{}),Wt=U.reduce((t,e)=>{const s=W[e];return t[e]=(r,i=!1,d=!1)=>($||Yt(),s.schedule(r,i,d)),t},{}),Kt=U.reduce((t,e)=>(t[e]=W[e].cancel,t),{});U.reduce((t,e)=>(t[e]=()=>W[e].process(z),t),{});const Xt=t=>W[t].process(z),Qe=t=>{$=!1,z.delta=me?Ge:Math.max(Math.min(t-z.timestamp,Ot),1),z.timestamp=t,fe=!0,U.forEach(Xt),fe=!1,$&&(me=!1,qe(Qe))},Yt=()=>{$=!0,me=!0,fe||qe(Qe)},$e=()=>z;var Gt=Object.defineProperty,qt=(t,e,s)=>e in t?Gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,P=(t,e,s)=>(qt(t,typeof e!="symbol"?e+"":e,s),s);class Qt{constructor(e,s,r){if(P(this,"history",[]),P(this,"startEvent",null),P(this,"lastEvent",null),P(this,"lastEventInfo",null),P(this,"handlers",{}),P(this,"removeListeners",()=>{}),P(this,"threshold",3),P(this,"win"),P(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const p=de(this.lastEventInfo,this.history),c=this.startEvent!==null,u=tn(p.offset,{x:0,y:0})>=this.threshold;if(!c&&!u)return;const{timestamp:a}=$e();this.history.push({...p.point,timestamp:a});const{onStart:f,onMove:x}=this.handlers;c||(f?.(this.lastEvent,p),this.startEvent=this.lastEvent),x?.(this.lastEvent,p)}),P(this,"onPointerMove",(p,c)=>{this.lastEvent=p,this.lastEventInfo=c,Wt.update(this.updatePoint,!0)}),P(this,"onPointerUp",(p,c)=>{const u=de(c,this.history),{onEnd:a,onSessionEnd:f}=this.handlers;f?.(p,u),this.end(),!(!a||!this.startEvent)&&a?.(p,u)}),this.win=e.view??window,Vt(e))return;this.handlers=s,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();const i={point:Xe(e)},{timestamp:d}=$e();this.history=[{...i.point,timestamp:d}];const{onSessionStart:h}=s;h?.(e,de(i,this.history)),this.removeListeners=en(O(this.win,"pointermove",this.onPointerMove),O(this.win,"pointerup",this.onPointerUp),O(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),Kt.update(this.updatePoint)}}function Ue(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t,e){return{point:t.point,delta:Ue(t.point,e[e.length-1]),offset:Ue(t.point,e[0]),velocity:Zt(e,.1)}}const Jt=t=>t*1e3;function Zt(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,r=null;const i=t[t.length-1];for(;s>=0&&(r=t[s],!(i.timestamp-r.timestamp>Jt(e)));)s--;if(!r)return{x:0,y:0};const d=(i.timestamp-r.timestamp)/1e3;if(d===0)return{x:0,y:0};const h={x:(i.x-r.x)/d,y:(i.y-r.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function en(...t){return e=>t.reduce((s,r)=>r(s),e)}function he(t,e){return Math.abs(t-e)}function Be(t){return"x"in t&&"y"in t}function tn(t,e){if(typeof t=="number"&&typeof e=="number")return he(t,e);if(Be(t)&&Be(e)){const s=he(t.x,e.x),r=he(t.y,e.y);return Math.sqrt(s**2+r**2)}return 0}function nn(t,e){const{onPan:s,onPanStart:r,onPanEnd:i,onPanSessionStart:d,onPanSessionEnd:h,threshold:p}=e,c=!!(s||r||i||d||h),u=m.useRef(null),a=Ye({onSessionStart:d,onSessionEnd:h,onStart:r,onMove:s,onEnd(f,x){u.current=null,i?.(f,x)}});m.useEffect(()=>{u.current?.updateHandlers(a.current)}),m.useEffect(()=>{const f=t.current;if(!f||!c)return;function x(j){u.current=new Qt(j,a.current,p)}return O(f,"pointerdown",x)},[t,c,a,p]),m.useEffect(()=>()=>{u.current?.end(),u.current=null},[])}const sn={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},rn=w("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),xe=E(function(e,s){const{placement:r="left",...i}=e,d=sn[r]??{},h=Et();return n.jsx(rn,{ref:s,...i,__css:{...h.addon,...d}})});xe.displayName="InputAddon";const ge=E(function(e,s){return n.jsx(xe,{ref:s,placement:"left",...e,className:_("chakra-input__left-addon",e.className)})});ge.displayName="InputLeftAddon";ge.id="InputLeftAddon";const Je=E(function(e,s){return n.jsx(xe,{ref:s,placement:"right",...e,className:_("chakra-input__right-addon",e.className)})});Je.displayName="InputRightAddon";Je.id="InputRightAddon";function pe(t){const{orientation:e,vertical:s,horizontal:r}=t;return e==="vertical"?s:r}function on(t){const{orientation:e,thumbPercents:s,isReversed:r}=t,i=j=>({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...pe({orientation:e,vertical:{bottom:`${s[j]}%`},horizontal:{left:`${s[j]}%`}})}),d={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},h={position:"absolute",...pe({orientation:e,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},p=s.length===1,c=[0,r?100-s[0]:s[0]],u=p?c:s;let a=u[0];!p&&r&&(a=100-a);const f=Math.abs(u[u.length-1]-u[0]),x={...h,...pe({orientation:e,vertical:r?{height:`${f}%`,top:`${a}%`}:{height:`${f}%`,bottom:`${a}%`},horizontal:r?{width:`${f}%`,right:`${a}%`}:{width:`${f}%`,left:`${a}%`}})};return{trackStyle:h,innerTrackStyle:x,rootStyle:d,getThumbStyle:i}}function an(t){const{isReversed:e,direction:s,orientation:r}=t;return s==="ltr"||r==="vertical"?e:!e}function ln(t){const{min:e=0,max:s=100,onChange:r,value:i,defaultValue:d,isReversed:h,direction:p="ltr",orientation:c="horizontal",id:u,isDisabled:a,isReadOnly:f,onChangeStart:x,onChangeEnd:j,step:C=1,getAriaValueText:rt,"aria-valuetext":ot,"aria-label":Y,"aria-labelledby":ve,name:be,focusThumbOnChange:it=!0,...ye}=t,at=V(x),G=V(j),lt=V(rt),y=an({isReversed:h,direction:p,orientation:c}),[ct,q]=Ut({value:i,defaultValue:d??un(e,s),onChange:r}),[Q,Se]=m.useState(!1),[J,je]=m.useState(!1),Z=!(a||f),ee=(s-e)/10,F=C||(s-e)/100,g=ie(ct,e,s),ut=s-g+e,ke=Le(y?ut:g,e,s),B=c==="vertical",v=Ye({min:e,max:s,step:C,isDisabled:a,value:g,isInteractive:Z,isReversed:y,isVertical:B,eventSource:null,focusThumbOnChange:it,orientation:c}),te=m.useRef(null),Pe=m.useRef(null),we=m.useRef(null),dt=m.useId(),Ee=u??dt,[Ce,Ie]=[`slider-thumb-${Ee}`,`slider-track-${Ee}`],ht=m.useCallback(o=>{if(!te.current)return;const l=v.current;l.eventSource="pointer";const R=te.current.getBoundingClientRect(),{clientX:N,clientY:M}=o.touches?.[0]??o,ne=B?R.bottom-M:N-R.left,bt=B?R.height:R.width;let se=ne/bt;y&&(se=1-se);let L=It(se,l.min,l.max);return l.step&&(L=parseFloat(Fe(L,l.min,l.step))),L=ie(L,l.min,l.max),L},[B,y,v]),I=m.useCallback(o=>{const l=v.current;l.isInteractive&&(o=parseFloat(Fe(o,l.min,F)),o=ie(o,l.min,l.max),q(o))},[F,q,v]),T=m.useMemo(()=>({stepUp(o=F){const l=y?g-o:g+o;I(l)},stepDown(o=F){const l=y?g+o:g-o;I(l)},reset(){I(d||0)},stepTo(o){I(o)}}),[I,y,g,F,d]),Te=m.useCallback(o=>{const l=v.current,N={ArrowRight:()=>T.stepUp(),ArrowUp:()=>T.stepUp(),ArrowLeft:()=>T.stepDown(),ArrowDown:()=>T.stepDown(),PageUp:()=>T.stepUp(ee),PageDown:()=>T.stepDown(ee),Home:()=>I(l.min),End:()=>I(l.max)}[o.key];N&&(o.preventDefault(),o.stopPropagation(),N(o),l.eventSource="keyboard")},[T,I,ee,v]),_e=lt?.(g)??ot,{getThumbStyle:Re,rootStyle:De,trackStyle:Ne,innerTrackStyle:Me}=m.useMemo(()=>{const o=v.current;return on({isReversed:y,orientation:o.orientation,thumbPercents:[ke]})},[y,ke,v]),Ae=m.useCallback(()=>{v.current.focusThumbOnChange&&setTimeout(()=>Pe.current?.focus())},[v]);yt(()=>{const o=v.current;Ae(),o.eventSource==="keyboard"&&G?.(o.value)},[g,G]);function Ve(o){const l=ht(o);l!=null&&l!==v.current.value&&q(l)}nn(we,{onPanSessionStart(o){const l=v.current;l.isInteractive&&(Se(!0),Ae(),Ve(o),at?.(l.value))},onPanSessionEnd(){const o=v.current;o.isInteractive&&(Se(!1),G?.(o.value))},onPan(o){v.current.isInteractive&&Ve(o)}});const pt=m.useCallback((o={},l=null)=>({...o,...ye,ref:re(l,we),tabIndex:-1,"aria-disabled":ae(a),"data-focused":A(J),style:{...o.style,...De}}),[ye,a,J,De]),mt=m.useCallback((o={},l=null)=>({...o,ref:re(l,te),id:Ie,"data-disabled":A(a),style:{...o.style,...Ne}}),[a,Ie,Ne]),ft=m.useCallback((o={},l=null)=>({...o,ref:l,style:{...o.style,...Me}}),[Me]),xt=m.useCallback((o={},l=null)=>({...o,ref:re(l,Pe),role:"slider",tabIndex:Z?0:void 0,id:Ce,"data-active":A(Q),"aria-valuetext":_e,"aria-valuemin":e,"aria-valuemax":s,"aria-valuenow":g,"aria-orientation":c,"aria-disabled":ae(a),"aria-readonly":ae(f),"aria-label":Y,"aria-labelledby":Y?void 0:ve,style:{...o.style,...Re(0)},onKeyDown:oe(o.onKeyDown,Te),onFocus:oe(o.onFocus,()=>je(!0)),onBlur:oe(o.onBlur,()=>je(!1))}),[Z,Ce,Q,_e,e,s,g,c,a,f,Y,ve,Re,Te]),gt=m.useCallback((o,l=null)=>{const R=!(o.values),N=g>=o.value,M=Le(o.value,e,s),ne={position:"absolute",pointerEvents:"none",...cn({orientation:c,vertical:{bottom:y?`${100-M}%`:`${M}%`},horizontal:{left:y?`${100-M}%`:`${M}%`}})};return{...o,ref:l,role:"presentation","aria-hidden":!0,"data-disabled":A(a),"data-invalid":A(!R),"data-highlighted":A(N),style:{...o.style,...ne}}},[a,y,s,e,c,g]),vt=m.useCallback((o={},l=null)=>({...o,ref:l,type:"hidden",value:g,name:be}),[be,g]);return{state:{value:g,isFocused:J,isDragging:Q},actions:T,getRootProps:pt,getTrackProps:mt,getInnerTrackProps:ft,getThumbProps:xt,getMarkerProps:gt,getInputProps:vt}}function cn(t){const{orientation:e,vertical:s,horizontal:r}=t;return e==="vertical"?s:r}function un(t,e){return e"}),[hn,X]=He({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),Ze=E((t,e)=>{const s={...t,orientation:t?.orientation??"horizontal"},r=Oe("Slider",s),i=We(s),{direction:d}=St();i.direction=d;const{getInputProps:h,getRootProps:p,...c}=ln(i),u=p(),a=h({},e);return n.jsx(dn,{value:c,children:n.jsx(hn,{value:r,children:n.jsxs(w.div,{...u,className:_("chakra-slider",s.className),__css:r.container,children:[s.children,n.jsx("input",{...a})]})})})});Ze.displayName="Slider";const et=E((t,e)=>{const{getThumbProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__thumb",t.className),__css:r.thumb})});et.displayName="SliderThumb";const tt=E((t,e)=>{const{getTrackProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__track",t.className),__css:r.track})});tt.displayName="SliderTrack";const nt=E((t,e)=>{const{getInnerTrackProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__filled-track",t.className),__css:r.filledTrack})});nt.displayName="SliderFilledTrack";const pn=E((t,e)=>{const{getMarkerProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__marker",t.className),__css:r.mark})});pn.displayName="SliderMark";const st=E(function(e,s){const r=Oe("Switch",e),{spacing:i="0.5rem",children:d,...h}=We(e),{getIndicatorProps:p,getInputProps:c,getCheckboxProps:u,getRootProps:a,getLabelProps:f}=Dt(h),x=m.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),j=m.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),C=m.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return n.jsxs(w.label,{...a(),className:_("chakra-switch",e.className),__css:x,children:[n.jsx("input",{className:"chakra-switch__input",...c({},s)}),n.jsx(w.span,{...u(),className:"chakra-switch__track",__css:j,children:n.jsx(w.span,{__css:r.thumb,className:"chakra-switch__thumb",...p()})}),d&&n.jsx(w.span,{className:"chakra-switch__label",...f(),__css:C,children:d})]})});st.displayName="Switch";const mn={"theming-app":{name:"theming-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}}},fn="",xn=[];function gn(t){throw new Error(`Unsupported locale: '${t}'`)}const vn=jt(fn),bn=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:gn,locales:xn,packages:mn,styles:vn},Symbol.toStringTag,{value:"Module"}));function yn(){return n.jsxs(Rt,{children:[n.jsx(b,{size:"md",py:2,children:'Demo page based on color scheme "trails"'}),n.jsxs(wt,{justifyContent:"center",children:[n.jsxs(ze,{bg:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",margin:3,minW:"400px",children:[n.jsx(b,{size:"md",children:"Button"}),n.jsx(b,{size:"xs",children:"default with tooltip"}),n.jsx(S,{direction:"row",my:2,children:n.jsx(kt,{label:"Default button",placement:"auto",openDelay:500,children:n.jsx(k,{children:"default"})})}),n.jsx(b,{size:"xs",children:"Chakra UI variants"}),n.jsxs(S,{direction:"row",my:2,children:[n.jsx(k,{variant:"solid",children:"solid"}),n.jsx(k,{variant:"outline",children:"outline"}),n.jsx(k,{variant:"ghost",children:"ghost"}),n.jsx(k,{variant:"link",children:"link"})]}),n.jsx(b,{size:"xs",children:"Button states"}),n.jsxs(S,{direction:"row",my:2,children:[n.jsx(k,{isDisabled:!0,children:"isDisabled"}),n.jsx(k,{isActive:!0,children:"isActive"}),n.jsx(k,{isLoading:!0,children:"isLoading"}),n.jsx(k,{isLoading:!0,loadingText:"loading...",children:"isLoading with text"})]}),n.jsx(b,{size:"xs",children:"colorScheme"}),n.jsxs(S,{direction:"row",my:2,children:[n.jsx(k,{colorScheme:"blue",children:"blue"}),n.jsx(k,{colorScheme:"red",children:"red"})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Checkbox"}),n.jsxs(S,{direction:"column",my:2,spacing:1,children:[n.jsx(H,{defaultChecked:!0,children:"defaultChecked1"}),n.jsx(H,{defaultChecked:!0,children:"defaultChecked2"}),n.jsx(H,{isDisabled:!0,children:"isDisabled"}),n.jsx(H,{isInvalid:!0,children:"isInvalid"})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Input"}),n.jsxs(S,{direction:"column",my:2,children:[n.jsx(le,{isInvalid:!1,placeholder:"outline (default)"}),n.jsx(le,{variant:"filled",placeholder:"filled"}),n.jsxs(Ct,{children:[n.jsx(ge,{}),n.jsx(le,{placeholder:"input with left addon"})]})]})]}),n.jsxs(ze,{bg:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",margin:3,minW:"400px",children:[n.jsx(b,{size:"md",children:"Link"}),n.jsx(S,{direction:"column",my:2,children:n.jsx(_t,{href:"https://github.com/open-pioneer",target:"_blank",children:"https://github.com/open-pioneer"})}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Radio"}),n.jsxs(S,{direction:"column",my:2,spacing:1,children:[n.jsx(ce,{defaultChecked:!0,children:"defaultChecked"}),n.jsx(ce,{isDisabled:!0,children:"isDisabled"}),n.jsx(ce,{isInvalid:!0,children:"isInvalid"})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Select"}),n.jsxs(S,{direction:"column",my:2,children:[n.jsxs(ue,{children:[n.jsx("option",{value:"option1",children:"outline1 (default)"}),n.jsx("option",{value:"option2",children:"outline2 (default)"})]}),n.jsxs(ue,{variant:"filled",children:[n.jsx("option",{value:"option1",children:"filled1"}),n.jsx("option",{value:"option2",children:"filled2"})]}),n.jsx(ue,{isDisabled:!0,children:n.jsx("option",{value:"option1",children:"isDisabled"})})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Slider"}),n.jsx(S,{direction:"column",my:2,children:n.jsxs(Ze,{"aria-label":"slider-ex-1",defaultValue:30,children:[n.jsx(tt,{children:n.jsx(nt,{})}),n.jsx(et,{})]})}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Switch"}),n.jsx(S,{direction:"column",my:2,children:n.jsx(st,{isChecked:!0})}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Textarea"}),n.jsx(S,{direction:"column",my:2,children:n.jsx(Nt,{placeholder:"Here is a sample placeholder"})})]})]})]})}const Sn=Pt({component:yn,appMetadata:bn});customElements.define("theming-app",Sn); +import{f as V,r as m,n as w,h as E,j as n,l as _,d as yt,D as re,o as oe,x as He,F as Oe,G as We,I as St,a as jt,H as b,O as ze,S,Q as kt,b as Pt}from"./BbD1ObBocF77.js";import{F as wt}from"./tahGmHek4or5.js";import{u as Et,I as Ct}from"./CVmFO9NFdac9.js";import{c as ie,p as It,r as Fe,v as Le}from"./D-Zd7p0hx1Jn.js";import{b as Tt,L as _t}from"./BIYM_9V_yYXg.js";import{a as ae,d as A,C as Rt}from"./C9CafZahHNwS.js";import{u as Dt,C as H,T as Nt}from"./DiI0-Y_JDvy-.js";import{B as k}from"./C9L897yljxNO.js";import{D}from"./BJ2AHJRZBHRV.js";import{I as le}from"./DUWS-ykArEfP.js";import{a as ce}from"./wGcAn53r2nTa.js";import{S as ue}from"./X2feasIkX6s8.js";import"./Bux-xGeHLEc6.js";import"./DCmbPgooq4UU.js";function Mt(t,e,s,r){return t.addEventListener(e,s,r),()=>{t.removeEventListener(e,s,r)}}function At(t){const e=Tt(t);return typeof e.PointerEvent<"u"&&t instanceof e.PointerEvent?t.pointerType==="mouse":t instanceof e.MouseEvent}function Ke(t){return!!t.touches}function Vt(t){return Ke(t)&&t.touches.length>1}function zt(t,e="page"){const s=t.touches[0]||t.changedTouches[0];return{x:s[`${e}X`],y:s[`${e}Y`]}}function Ft(t,e="page"){return{x:t[`${e}X`],y:t[`${e}Y`]}}function Xe(t,e="page"){return Ke(t)?zt(t,e):Ft(t,e)}function Lt(t){return e=>{const s=At(e);(!s||s&&e.button===0)&&t(e)}}function $t(t,e=!1){function s(i){t(i,{point:Xe(i)})}return e?Lt(s):s}function O(t,e,s,r){return Mt(t,e,$t(s,e==="pointerdown"),r)}function Ut(t){const{value:e,defaultValue:s,onChange:r,shouldUpdate:i=(x,j)=>x!==j}=t,d=V(r),h=V(i),[p,c]=m.useState(s),u=e!==void 0,a=u?e:p,f=V(x=>{const C=typeof x=="function"?x(a):x;h(a,C)&&(u||c(C),d(C))},[u,d,a,h]);return[a,f]}function Ye(t){const e=m.useRef(null);return e.current=t,e}const Ge=1/60*1e3,Bt=typeof performance<"u"?()=>performance.now():()=>Date.now(),qe=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(Bt()),Ge);function Ht(t){let e=[],s=[],r=0,i=!1,d=!1;const h=new WeakSet,p={schedule:(c,u=!1,a=!1)=>{const f=a&&i,x=f?e:s;return u&&h.add(c),x.indexOf(c)===-1&&(x.push(c),f&&i&&(r=e.length)),c},cancel:c=>{const u=s.indexOf(c);u!==-1&&s.splice(u,1),h.delete(c)},process:c=>{if(i){d=!0;return}if(i=!0,[e,s]=[s,e],s.length=0,r=e.length,r)for(let u=0;u(t[e]=Ht(()=>$=!0),t),{}),Wt=U.reduce((t,e)=>{const s=W[e];return t[e]=(r,i=!1,d=!1)=>($||Yt(),s.schedule(r,i,d)),t},{}),Kt=U.reduce((t,e)=>(t[e]=W[e].cancel,t),{});U.reduce((t,e)=>(t[e]=()=>W[e].process(z),t),{});const Xt=t=>W[t].process(z),Qe=t=>{$=!1,z.delta=me?Ge:Math.max(Math.min(t-z.timestamp,Ot),1),z.timestamp=t,fe=!0,U.forEach(Xt),fe=!1,$&&(me=!1,qe(Qe))},Yt=()=>{$=!0,me=!0,fe||qe(Qe)},$e=()=>z;var Gt=Object.defineProperty,qt=(t,e,s)=>e in t?Gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,P=(t,e,s)=>(qt(t,typeof e!="symbol"?e+"":e,s),s);class Qt{constructor(e,s,r){if(P(this,"history",[]),P(this,"startEvent",null),P(this,"lastEvent",null),P(this,"lastEventInfo",null),P(this,"handlers",{}),P(this,"removeListeners",()=>{}),P(this,"threshold",3),P(this,"win"),P(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const p=de(this.lastEventInfo,this.history),c=this.startEvent!==null,u=tn(p.offset,{x:0,y:0})>=this.threshold;if(!c&&!u)return;const{timestamp:a}=$e();this.history.push({...p.point,timestamp:a});const{onStart:f,onMove:x}=this.handlers;c||(f?.(this.lastEvent,p),this.startEvent=this.lastEvent),x?.(this.lastEvent,p)}),P(this,"onPointerMove",(p,c)=>{this.lastEvent=p,this.lastEventInfo=c,Wt.update(this.updatePoint,!0)}),P(this,"onPointerUp",(p,c)=>{const u=de(c,this.history),{onEnd:a,onSessionEnd:f}=this.handlers;f?.(p,u),this.end(),!(!a||!this.startEvent)&&a?.(p,u)}),this.win=e.view??window,Vt(e))return;this.handlers=s,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();const i={point:Xe(e)},{timestamp:d}=$e();this.history=[{...i.point,timestamp:d}];const{onSessionStart:h}=s;h?.(e,de(i,this.history)),this.removeListeners=en(O(this.win,"pointermove",this.onPointerMove),O(this.win,"pointerup",this.onPointerUp),O(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),Kt.update(this.updatePoint)}}function Ue(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t,e){return{point:t.point,delta:Ue(t.point,e[e.length-1]),offset:Ue(t.point,e[0]),velocity:Zt(e,.1)}}const Jt=t=>t*1e3;function Zt(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,r=null;const i=t[t.length-1];for(;s>=0&&(r=t[s],!(i.timestamp-r.timestamp>Jt(e)));)s--;if(!r)return{x:0,y:0};const d=(i.timestamp-r.timestamp)/1e3;if(d===0)return{x:0,y:0};const h={x:(i.x-r.x)/d,y:(i.y-r.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function en(...t){return e=>t.reduce((s,r)=>r(s),e)}function he(t,e){return Math.abs(t-e)}function Be(t){return"x"in t&&"y"in t}function tn(t,e){if(typeof t=="number"&&typeof e=="number")return he(t,e);if(Be(t)&&Be(e)){const s=he(t.x,e.x),r=he(t.y,e.y);return Math.sqrt(s**2+r**2)}return 0}function nn(t,e){const{onPan:s,onPanStart:r,onPanEnd:i,onPanSessionStart:d,onPanSessionEnd:h,threshold:p}=e,c=!!(s||r||i||d||h),u=m.useRef(null),a=Ye({onSessionStart:d,onSessionEnd:h,onStart:r,onMove:s,onEnd(f,x){u.current=null,i?.(f,x)}});m.useEffect(()=>{u.current?.updateHandlers(a.current)}),m.useEffect(()=>{const f=t.current;if(!f||!c)return;function x(j){u.current=new Qt(j,a.current,p)}return O(f,"pointerdown",x)},[t,c,a,p]),m.useEffect(()=>()=>{u.current?.end(),u.current=null},[])}const sn={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},rn=w("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),xe=E(function(e,s){const{placement:r="left",...i}=e,d=sn[r]??{},h=Et();return n.jsx(rn,{ref:s,...i,__css:{...h.addon,...d}})});xe.displayName="InputAddon";const ge=E(function(e,s){return n.jsx(xe,{ref:s,placement:"left",...e,className:_("chakra-input__left-addon",e.className)})});ge.displayName="InputLeftAddon";ge.id="InputLeftAddon";const Je=E(function(e,s){return n.jsx(xe,{ref:s,placement:"right",...e,className:_("chakra-input__right-addon",e.className)})});Je.displayName="InputRightAddon";Je.id="InputRightAddon";function pe(t){const{orientation:e,vertical:s,horizontal:r}=t;return e==="vertical"?s:r}function on(t){const{orientation:e,thumbPercents:s,isReversed:r}=t,i=j=>({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...pe({orientation:e,vertical:{bottom:`${s[j]}%`},horizontal:{left:`${s[j]}%`}})}),d={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},h={position:"absolute",...pe({orientation:e,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},p=s.length===1,c=[0,r?100-s[0]:s[0]],u=p?c:s;let a=u[0];!p&&r&&(a=100-a);const f=Math.abs(u[u.length-1]-u[0]),x={...h,...pe({orientation:e,vertical:r?{height:`${f}%`,top:`${a}%`}:{height:`${f}%`,bottom:`${a}%`},horizontal:r?{width:`${f}%`,right:`${a}%`}:{width:`${f}%`,left:`${a}%`}})};return{trackStyle:h,innerTrackStyle:x,rootStyle:d,getThumbStyle:i}}function an(t){const{isReversed:e,direction:s,orientation:r}=t;return s==="ltr"||r==="vertical"?e:!e}function ln(t){const{min:e=0,max:s=100,onChange:r,value:i,defaultValue:d,isReversed:h,direction:p="ltr",orientation:c="horizontal",id:u,isDisabled:a,isReadOnly:f,onChangeStart:x,onChangeEnd:j,step:C=1,getAriaValueText:rt,"aria-valuetext":ot,"aria-label":Y,"aria-labelledby":ve,name:be,focusThumbOnChange:it=!0,...ye}=t,at=V(x),G=V(j),lt=V(rt),y=an({isReversed:h,direction:p,orientation:c}),[ct,q]=Ut({value:i,defaultValue:d??un(e,s),onChange:r}),[Q,Se]=m.useState(!1),[J,je]=m.useState(!1),Z=!(a||f),ee=(s-e)/10,F=C||(s-e)/100,g=ie(ct,e,s),ut=s-g+e,ke=Le(y?ut:g,e,s),B=c==="vertical",v=Ye({min:e,max:s,step:C,isDisabled:a,value:g,isInteractive:Z,isReversed:y,isVertical:B,eventSource:null,focusThumbOnChange:it,orientation:c}),te=m.useRef(null),Pe=m.useRef(null),we=m.useRef(null),dt=m.useId(),Ee=u??dt,[Ce,Ie]=[`slider-thumb-${Ee}`,`slider-track-${Ee}`],ht=m.useCallback(o=>{if(!te.current)return;const l=v.current;l.eventSource="pointer";const R=te.current.getBoundingClientRect(),{clientX:N,clientY:M}=o.touches?.[0]??o,ne=B?R.bottom-M:N-R.left,bt=B?R.height:R.width;let se=ne/bt;y&&(se=1-se);let L=It(se,l.min,l.max);return l.step&&(L=parseFloat(Fe(L,l.min,l.step))),L=ie(L,l.min,l.max),L},[B,y,v]),I=m.useCallback(o=>{const l=v.current;l.isInteractive&&(o=parseFloat(Fe(o,l.min,F)),o=ie(o,l.min,l.max),q(o))},[F,q,v]),T=m.useMemo(()=>({stepUp(o=F){const l=y?g-o:g+o;I(l)},stepDown(o=F){const l=y?g+o:g-o;I(l)},reset(){I(d||0)},stepTo(o){I(o)}}),[I,y,g,F,d]),Te=m.useCallback(o=>{const l=v.current,N={ArrowRight:()=>T.stepUp(),ArrowUp:()=>T.stepUp(),ArrowLeft:()=>T.stepDown(),ArrowDown:()=>T.stepDown(),PageUp:()=>T.stepUp(ee),PageDown:()=>T.stepDown(ee),Home:()=>I(l.min),End:()=>I(l.max)}[o.key];N&&(o.preventDefault(),o.stopPropagation(),N(o),l.eventSource="keyboard")},[T,I,ee,v]),_e=lt?.(g)??ot,{getThumbStyle:Re,rootStyle:De,trackStyle:Ne,innerTrackStyle:Me}=m.useMemo(()=>{const o=v.current;return on({isReversed:y,orientation:o.orientation,thumbPercents:[ke]})},[y,ke,v]),Ae=m.useCallback(()=>{v.current.focusThumbOnChange&&setTimeout(()=>Pe.current?.focus())},[v]);yt(()=>{const o=v.current;Ae(),o.eventSource==="keyboard"&&G?.(o.value)},[g,G]);function Ve(o){const l=ht(o);l!=null&&l!==v.current.value&&q(l)}nn(we,{onPanSessionStart(o){const l=v.current;l.isInteractive&&(Se(!0),Ae(),Ve(o),at?.(l.value))},onPanSessionEnd(){const o=v.current;o.isInteractive&&(Se(!1),G?.(o.value))},onPan(o){v.current.isInteractive&&Ve(o)}});const pt=m.useCallback((o={},l=null)=>({...o,...ye,ref:re(l,we),tabIndex:-1,"aria-disabled":ae(a),"data-focused":A(J),style:{...o.style,...De}}),[ye,a,J,De]),mt=m.useCallback((o={},l=null)=>({...o,ref:re(l,te),id:Ie,"data-disabled":A(a),style:{...o.style,...Ne}}),[a,Ie,Ne]),ft=m.useCallback((o={},l=null)=>({...o,ref:l,style:{...o.style,...Me}}),[Me]),xt=m.useCallback((o={},l=null)=>({...o,ref:re(l,Pe),role:"slider",tabIndex:Z?0:void 0,id:Ce,"data-active":A(Q),"aria-valuetext":_e,"aria-valuemin":e,"aria-valuemax":s,"aria-valuenow":g,"aria-orientation":c,"aria-disabled":ae(a),"aria-readonly":ae(f),"aria-label":Y,"aria-labelledby":Y?void 0:ve,style:{...o.style,...Re(0)},onKeyDown:oe(o.onKeyDown,Te),onFocus:oe(o.onFocus,()=>je(!0)),onBlur:oe(o.onBlur,()=>je(!1))}),[Z,Ce,Q,_e,e,s,g,c,a,f,Y,ve,Re,Te]),gt=m.useCallback((o,l=null)=>{const R=!(o.values),N=g>=o.value,M=Le(o.value,e,s),ne={position:"absolute",pointerEvents:"none",...cn({orientation:c,vertical:{bottom:y?`${100-M}%`:`${M}%`},horizontal:{left:y?`${100-M}%`:`${M}%`}})};return{...o,ref:l,role:"presentation","aria-hidden":!0,"data-disabled":A(a),"data-invalid":A(!R),"data-highlighted":A(N),style:{...o.style,...ne}}},[a,y,s,e,c,g]),vt=m.useCallback((o={},l=null)=>({...o,ref:l,type:"hidden",value:g,name:be}),[be,g]);return{state:{value:g,isFocused:J,isDragging:Q},actions:T,getRootProps:pt,getTrackProps:mt,getInnerTrackProps:ft,getThumbProps:xt,getMarkerProps:gt,getInputProps:vt}}function cn(t){const{orientation:e,vertical:s,horizontal:r}=t;return e==="vertical"?s:r}function un(t,e){return e"}),[hn,X]=He({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),Ze=E((t,e)=>{const s={...t,orientation:t?.orientation??"horizontal"},r=Oe("Slider",s),i=We(s),{direction:d}=St();i.direction=d;const{getInputProps:h,getRootProps:p,...c}=ln(i),u=p(),a=h({},e);return n.jsx(dn,{value:c,children:n.jsx(hn,{value:r,children:n.jsxs(w.div,{...u,className:_("chakra-slider",s.className),__css:r.container,children:[s.children,n.jsx("input",{...a})]})})})});Ze.displayName="Slider";const et=E((t,e)=>{const{getThumbProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__thumb",t.className),__css:r.thumb})});et.displayName="SliderThumb";const tt=E((t,e)=>{const{getTrackProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__track",t.className),__css:r.track})});tt.displayName="SliderTrack";const nt=E((t,e)=>{const{getInnerTrackProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__filled-track",t.className),__css:r.filledTrack})});nt.displayName="SliderFilledTrack";const pn=E((t,e)=>{const{getMarkerProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__marker",t.className),__css:r.mark})});pn.displayName="SliderMark";const st=E(function(e,s){const r=Oe("Switch",e),{spacing:i="0.5rem",children:d,...h}=We(e),{getIndicatorProps:p,getInputProps:c,getCheckboxProps:u,getRootProps:a,getLabelProps:f}=Dt(h),x=m.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),j=m.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),C=m.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return n.jsxs(w.label,{...a(),className:_("chakra-switch",e.className),__css:x,children:[n.jsx("input",{className:"chakra-switch__input",...c({},s)}),n.jsx(w.span,{...u(),className:"chakra-switch__track",__css:j,children:n.jsx(w.span,{__css:r.thumb,className:"chakra-switch__thumb",...p()})}),d&&n.jsx(w.span,{className:"chakra-switch__label",...f(),__css:C,children:d})]})});st.displayName="Switch";const mn={"theming-app":{name:"theming-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},fn="",xn=[];function gn(t){throw new Error(`Unsupported locale: '${t}'`)}const vn=jt(fn),bn=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:gn,locales:xn,packages:mn,styles:vn},Symbol.toStringTag,{value:"Module"}));function yn(){return n.jsxs(Rt,{children:[n.jsx(b,{size:"md",py:2,children:'Demo page based on color scheme "trails"'}),n.jsxs(wt,{justifyContent:"center",children:[n.jsxs(ze,{bg:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",margin:3,minW:"400px",children:[n.jsx(b,{size:"md",children:"Button"}),n.jsx(b,{size:"xs",children:"default with tooltip"}),n.jsx(S,{direction:"row",my:2,children:n.jsx(kt,{label:"Default button",placement:"auto",openDelay:500,children:n.jsx(k,{children:"default"})})}),n.jsx(b,{size:"xs",children:"Chakra UI variants"}),n.jsxs(S,{direction:"row",my:2,children:[n.jsx(k,{variant:"solid",children:"solid"}),n.jsx(k,{variant:"outline",children:"outline"}),n.jsx(k,{variant:"ghost",children:"ghost"}),n.jsx(k,{variant:"link",children:"link"})]}),n.jsx(b,{size:"xs",children:"Button states"}),n.jsxs(S,{direction:"row",my:2,children:[n.jsx(k,{isDisabled:!0,children:"isDisabled"}),n.jsx(k,{isActive:!0,children:"isActive"}),n.jsx(k,{isLoading:!0,children:"isLoading"}),n.jsx(k,{isLoading:!0,loadingText:"loading...",children:"isLoading with text"})]}),n.jsx(b,{size:"xs",children:"colorScheme"}),n.jsxs(S,{direction:"row",my:2,children:[n.jsx(k,{colorScheme:"blue",children:"blue"}),n.jsx(k,{colorScheme:"red",children:"red"})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Checkbox"}),n.jsxs(S,{direction:"column",my:2,spacing:1,children:[n.jsx(H,{defaultChecked:!0,children:"defaultChecked1"}),n.jsx(H,{defaultChecked:!0,children:"defaultChecked2"}),n.jsx(H,{isDisabled:!0,children:"isDisabled"}),n.jsx(H,{isInvalid:!0,children:"isInvalid"})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Input"}),n.jsxs(S,{direction:"column",my:2,children:[n.jsx(le,{isInvalid:!1,placeholder:"outline (default)"}),n.jsx(le,{variant:"filled",placeholder:"filled"}),n.jsxs(Ct,{children:[n.jsx(ge,{}),n.jsx(le,{placeholder:"input with left addon"})]})]})]}),n.jsxs(ze,{bg:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",margin:3,minW:"400px",children:[n.jsx(b,{size:"md",children:"Link"}),n.jsx(S,{direction:"column",my:2,children:n.jsx(_t,{href:"https://github.com/open-pioneer",target:"_blank",children:"https://github.com/open-pioneer"})}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Radio"}),n.jsxs(S,{direction:"column",my:2,spacing:1,children:[n.jsx(ce,{defaultChecked:!0,children:"defaultChecked"}),n.jsx(ce,{isDisabled:!0,children:"isDisabled"}),n.jsx(ce,{isInvalid:!0,children:"isInvalid"})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Select"}),n.jsxs(S,{direction:"column",my:2,children:[n.jsxs(ue,{children:[n.jsx("option",{value:"option1",children:"outline1 (default)"}),n.jsx("option",{value:"option2",children:"outline2 (default)"})]}),n.jsxs(ue,{variant:"filled",children:[n.jsx("option",{value:"option1",children:"filled1"}),n.jsx("option",{value:"option2",children:"filled2"})]}),n.jsx(ue,{isDisabled:!0,children:n.jsx("option",{value:"option1",children:"isDisabled"})})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Slider"}),n.jsx(S,{direction:"column",my:2,children:n.jsxs(Ze,{"aria-label":"slider-ex-1",defaultValue:30,children:[n.jsx(tt,{children:n.jsx(nt,{})}),n.jsx(et,{})]})}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Switch"}),n.jsx(S,{direction:"column",my:2,children:n.jsx(st,{isChecked:!0})}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Textarea"}),n.jsx(S,{direction:"column",my:2,children:n.jsx(Nt,{placeholder:"Here is a sample placeholder"})})]})]})]})}const Sn=Pt({component:yn,appMetadata:bn});customElements.define("theming-app",Sn); diff --git a/core-packages/docs/classes/_open_pioneer_core.Error.html b/core-packages/docs/classes/_open_pioneer_core.Error.html index aff91a449..593e0b729 100644 --- a/core-packages/docs/classes/_open_pioneer_core.Error.html +++ b/core-packages/docs/classes/_open_pioneer_core.Error.html @@ -4,9 +4,9 @@

Conventions

Error ids should be scoped to a package to avoid conflicts. Each package should pick a sensible namespace prefix.

An example for a good error id is runtime:dependency-cycle.

-

Hierarchy

  • GlobalError
    • Error

Constructors

Hierarchy

  • GlobalError
    • Error

Constructors

Properties

Constructors

  • Parameters

    • id: string
    • text: string
    • Optionaloptions: {
          cause?: unknown;
      }
      • Optionalcause?: unknown

    Returns Error

Properties

id: string

Unique error id

-
text: string

Human readable error message

-
+

Constructors

  • Parameters

    • id: string
    • text: string
    • Optionaloptions: {
          cause?: unknown;
      }
      • Optionalcause?: unknown

    Returns Error

Properties

id: string

Unique error id

+
text: string

Human readable error message

+
diff --git a/core-packages/docs/classes/_open_pioneer_core.EventEmitter.html b/core-packages/docs/classes/_open_pioneer_core.EventEmitter.html index 927537395..ec05813c1 100644 --- a/core-packages/docs/classes/_open_pioneer_core.EventEmitter.html +++ b/core-packages/docs/classes/_open_pioneer_core.EventEmitter.html @@ -8,17 +8,17 @@
interface Events {
// key: event name, value: event type
"mouse-clicked": MouseEvent;
}

const emitter = new EventEmitter<Events>();
emitter.on("mouse-clicked", (event) => {
// event is a MouseEvent
});
emitter.emit("mouse-clicked", new MouseEvent(...));
-

Type Parameters

  • Events extends {}

Constructors

Type Parameters

  • Events extends {}

Constructors

Methods

Constructors

Methods

  • Emits an event of the given name and calls the registered event handlers.

    Note: event handlers run synchronously. After emit() has completed, all listeners will already have been invoked.

    -

    Type Parameters

    • Name extends string

    Parameters

    Returns void

  • Registers the given listener function as an event handler for eventName.

    +

    Type Parameters

    • Name extends string

    Parameters

    Returns void

  • Registers the given listener function as an event handler for eventName.

    The listener function should be unregistered by destroying the returned Resource when it is no longer needed.

    -

    Type Parameters

    • Name extends string

    Parameters

    • eventName: Name
    • listener: ((...args: ArgType<Events[Name]>) => void)
        • (...args): void
        • Parameters

          Returns void

    Returns Resource

  • Registers the given listener function to listen for eventName events once. +

    Type Parameters

    • Name extends string

    Parameters

    • eventName: Name
    • listener: ((...args: ArgType<Events[Name]>) => void)
        • (...args): void
        • Parameters

          Returns void

    Returns Resource

  • Registers the given listener function to listen for eventName events once. The listener function will automatically be unregistered after it has been called.

    The listener function should be unregistered by destroying the returned Resource.

    -

    Type Parameters

    • Name extends string

    Parameters

    • eventName: Name
    • listener: ((...args: ArgType<Events[Name]>) => void)
        • (...args): void
        • Parameters

          Returns void

    Returns Resource

+

Type Parameters

  • Name extends string

Parameters

  • eventName: Name
  • listener: ((...args: ArgType<Events[Name]>) => void)
      • (...args): void
      • Parameters

        Returns void

Returns Resource

diff --git a/core-packages/docs/functions/_open_pioneer_authentication.ForceAuth.html b/core-packages/docs/functions/_open_pioneer_authentication.ForceAuth.html index adeac1d79..1e0014699 100644 --- a/core-packages/docs/functions/_open_pioneer_authentication.ForceAuth.html +++ b/core-packages/docs/functions/_open_pioneer_authentication.ForceAuth.html @@ -8,4 +8,4 @@
+

Returns ReactNode

diff --git a/core-packages/docs/functions/_open_pioneer_authentication.useAuthState.html b/core-packages/docs/functions/_open_pioneer_authentication.useAuthState.html index 2e50e3ce6..b394d7eb9 100644 --- a/core-packages/docs/functions/_open_pioneer_authentication.useAuthState.html +++ b/core-packages/docs/functions/_open_pioneer_authentication.useAuthState.html @@ -1,2 +1,2 @@ useAuthState | Trails Packages
+

Parameters

Returns AuthState

diff --git a/core-packages/docs/functions/_open_pioneer_chakra_integration.CustomChakraProvider.html b/core-packages/docs/functions/_open_pioneer_chakra_integration.CustomChakraProvider.html index 8e7e4bf32..e11145859 100644 --- a/core-packages/docs/functions/_open_pioneer_chakra_integration.CustomChakraProvider.html +++ b/core-packages/docs/functions/_open_pioneer_chakra_integration.CustomChakraProvider.html @@ -1,2 +1,2 @@ CustomChakraProvider | Trails Packages
+

Returns ReactNode

diff --git a/core-packages/docs/functions/_open_pioneer_chakra_integration.Portal.html b/core-packages/docs/functions/_open_pioneer_chakra_integration.Portal.html index c024c582c..68a2477e1 100644 --- a/core-packages/docs/functions/_open_pioneer_chakra_integration.Portal.html +++ b/core-packages/docs/functions/_open_pioneer_chakra_integration.Portal.html @@ -1,2 +1,2 @@ Portal | Trails Packages
+

Returns ReactNode

diff --git a/core-packages/docs/functions/_open_pioneer_core.createAbortError.html b/core-packages/docs/functions/_open_pioneer_core.createAbortError.html index 1c138350d..8f4254fa5 100644 --- a/core-packages/docs/functions/_open_pioneer_core.createAbortError.html +++ b/core-packages/docs/functions/_open_pioneer_core.createAbortError.html @@ -1,2 +1,2 @@ createAbortError | Trails Packages
  • Returns an abort error (.name === "AbortError").

    -

    Returns globalThis.Error

+

Returns globalThis.Error

diff --git a/core-packages/docs/functions/_open_pioneer_core.createLogger.html b/core-packages/docs/functions/_open_pioneer_core.createLogger.html index c1d7f4b41..1db6d4cd9 100644 --- a/core-packages/docs/functions/_open_pioneer_core.createLogger.html +++ b/core-packages/docs/functions/_open_pioneer_core.createLogger.html @@ -2,4 +2,4 @@ For available log methods see Logger interface. The log level is globally configured (see vite.config.ts).

Parameters

  • prefix: string

    Prefix used to prefix all log messages invoked by the created logger instance.

    -

Returns Logger

+

Returns Logger

diff --git a/core-packages/docs/functions/_open_pioneer_core.createManualPromise.html b/core-packages/docs/functions/_open_pioneer_core.createManualPromise.html index 8925acaa9..f84d7a60e 100644 --- a/core-packages/docs/functions/_open_pioneer_core.createManualPromise.html +++ b/core-packages/docs/functions/_open_pioneer_core.createManualPromise.html @@ -1 +1 @@ -createManualPromise | Trails Packages
+createManualPromise | Trails Packages
diff --git a/core-packages/docs/functions/_open_pioneer_core.destroyResource.html b/core-packages/docs/functions/_open_pioneer_core.destroyResource.html index 9c4b10dc8..69800d0df 100644 --- a/core-packages/docs/functions/_open_pioneer_core.destroyResource.html +++ b/core-packages/docs/functions/_open_pioneer_core.destroyResource.html @@ -3,4 +3,4 @@
class Holder {
private myResource: Resource | undefined;

destroy() {
this.myResource = destroyResource(this.myResource);
}
}
-

Type Parameters

Parameters

  • resource: undefined | R

Returns undefined

+

Type Parameters

Parameters

  • resource: undefined | R

Returns undefined

diff --git a/core-packages/docs/functions/_open_pioneer_core.destroyResources.html b/core-packages/docs/functions/_open_pioneer_core.destroyResources.html index 73f95649d..7199cdfc8 100644 --- a/core-packages/docs/functions/_open_pioneer_core.destroyResources.html +++ b/core-packages/docs/functions/_open_pioneer_core.destroyResources.html @@ -2,4 +2,4 @@

This function destroys the resources in reverse order (starting from the last element). This is done to reverse the order of construction.

The array will be cleared by this function.

-

Type Parameters

Parameters

  • resources: R[]

Returns void

+

Type Parameters

Parameters

  • resources: R[]

Returns void

diff --git a/core-packages/docs/functions/_open_pioneer_core.getErrorChain.html b/core-packages/docs/functions/_open_pioneer_core.getErrorChain.html index 09189d863..54a3ef7e0 100644 --- a/core-packages/docs/functions/_open_pioneer_core.getErrorChain.html +++ b/core-packages/docs/functions/_open_pioneer_core.getErrorChain.html @@ -1,4 +1,4 @@ getErrorChain | Trails Packages
  • Returns the error chain for the given err, starting with this error. The error chain contains the error itself and all its causes. The first entry is err itself.

    -

    Parameters

    • err: Error

    Returns globalThis.Error[]

+

Parameters

  • err: Error

Returns globalThis.Error[]

diff --git a/core-packages/docs/functions/_open_pioneer_core.isAbortError.html b/core-packages/docs/functions/_open_pioneer_core.isAbortError.html index 6f5d5c00f..6e3c02ed0 100644 --- a/core-packages/docs/functions/_open_pioneer_core.isAbortError.html +++ b/core-packages/docs/functions/_open_pioneer_core.isAbortError.html @@ -1,2 +1,2 @@ isAbortError | Trails Packages
  • Returns true if the error represents an abort error.

    -

    Parameters

    • err: unknown

    Returns boolean

+

Parameters

  • err: unknown

Returns boolean

diff --git a/core-packages/docs/functions/_open_pioneer_core.rethrowAbortError.html b/core-packages/docs/functions/_open_pioneer_core.rethrowAbortError.html index 6844e1ec0..5e0125656 100644 --- a/core-packages/docs/functions/_open_pioneer_core.rethrowAbortError.html +++ b/core-packages/docs/functions/_open_pioneer_core.rethrowAbortError.html @@ -1,2 +1,2 @@ rethrowAbortError | Trails Packages
  • Throws err if it is an abort error. Does nothing otherwise.

    -

    Parameters

    • err: unknown

    Returns void

+

Parameters

  • err: unknown

Returns void

diff --git a/core-packages/docs/functions/_open_pioneer_core.throwAbortError.html b/core-packages/docs/functions/_open_pioneer_core.throwAbortError.html index 8d2f28cfa..721e1a091 100644 --- a/core-packages/docs/functions/_open_pioneer_core.throwAbortError.html +++ b/core-packages/docs/functions/_open_pioneer_core.throwAbortError.html @@ -1,2 +1,2 @@ throwAbortError | Trails Packages
  • Throws an abort error (.name === "AbortError").

    -

    Returns never

+

Returns never

diff --git a/core-packages/docs/functions/_open_pioneer_notifier.Notifier.html b/core-packages/docs/functions/_open_pioneer_notifier.Notifier.html index 69afe597b..d27fa3f4b 100644 --- a/core-packages/docs/functions/_open_pioneer_notifier.Notifier.html +++ b/core-packages/docs/functions/_open_pioneer_notifier.Notifier.html @@ -4,4 +4,4 @@
import { Notifier } from "@open-pioneer/notifier";

export function AppUI() {
return (
<>
<Notifier position="top-right" />
<h1>Your application</h1>
</>
);
}
-

Parameters

Returns ReactElement

+

Parameters

Returns ReactElement

diff --git a/core-packages/docs/functions/_open_pioneer_react_utils.ConfigureTitledSection.html b/core-packages/docs/functions/_open_pioneer_react_utils.ConfigureTitledSection.html index fc8bbd941..f59e5fcc4 100644 --- a/core-packages/docs/functions/_open_pioneer_react_utils.ConfigureTitledSection.html +++ b/core-packages/docs/functions/_open_pioneer_react_utils.ConfigureTitledSection.html @@ -18,4 +18,4 @@

The headings used by Widget will start with h5.

+

Returns ReactNode

diff --git a/core-packages/docs/functions/_open_pioneer_react_utils.SectionHeading.html b/core-packages/docs/functions/_open_pioneer_react_utils.SectionHeading.html index 98f3e9e04..289ca7bc4 100644 --- a/core-packages/docs/functions/_open_pioneer_react_utils.SectionHeading.html +++ b/core-packages/docs/functions/_open_pioneer_react_utils.SectionHeading.html @@ -2,4 +2,4 @@ This component should only be used as part of the title prop of the TitledSection.

Headings are rendered as Chakra Headings.

Heading levels are managed by nesting TitledSection.

-
+
diff --git a/core-packages/docs/functions/_open_pioneer_react_utils.TitledSection.html b/core-packages/docs/functions/_open_pioneer_react_utils.TitledSection.html index 62b244560..b628ada7d 100644 --- a/core-packages/docs/functions/_open_pioneer_react_utils.TitledSection.html +++ b/core-packages/docs/functions/_open_pioneer_react_utils.TitledSection.html @@ -15,4 +15,4 @@
<TitledSection
title={
<SectionHeading size="4xl">Heading</SectionHeading>
}
>
Content
</TitledSection>
-

Parameters

Returns JSX.Element

+

Parameters

Returns JSX.Element

diff --git a/core-packages/docs/functions/_open_pioneer_react_utils.useCommonComponentProps.html b/core-packages/docs/functions/_open_pioneer_react_utils.useCommonComponentProps.html index edebedf4f..5c40f38e2 100644 --- a/core-packages/docs/functions/_open_pioneer_react_utils.useCommonComponentProps.html +++ b/core-packages/docs/functions/_open_pioneer_react_utils.useCommonComponentProps.html @@ -3,4 +3,4 @@
function MyComponent(props) {
const { containerProps } = useCommonComponentProps("my-component", props);
// automatically applies css classes and testid
return <Box {...containerProps}>Content</Box>;
}
-

Parameters

Returns {
    containerProps: HTMLAttributes<HTMLElement>;
}

  • containerProps: HTMLAttributes<HTMLElement>
+

Parameters

Returns {
    containerProps: HTMLAttributes<HTMLElement>;
}

  • containerProps: HTMLAttributes<HTMLElement>
diff --git a/core-packages/docs/functions/_open_pioneer_react_utils.useEvent.html b/core-packages/docs/functions/_open_pioneer_react_utils.useEvent.html index acfc07c61..82eea3d8c 100644 --- a/core-packages/docs/functions/_open_pioneer_react_utils.useEvent.html +++ b/core-packages/docs/functions/_open_pioneer_react_utils.useEvent.html @@ -7,4 +7,4 @@ It can only be used in an effect or in a event handler callback.

See also: https://github.com/reactjs/rfcs/blob/useevent/text/0000-useevent.md

-

Type Parameters

  • Args extends unknown[]
  • Ret

Parameters

  • handler: ((...args: Args) => Ret)
      • (...args): Ret
      • Parameters

        Returns Ret

Returns typeof handler

+

Type Parameters

  • Args extends unknown[]
  • Ret

Parameters

  • handler: ((...args: Args) => Ret)
      • (...args): Ret
      • Parameters

        Returns Ret

Returns typeof handler

diff --git a/core-packages/docs/functions/_open_pioneer_react_utils.useHeadingLevel.html b/core-packages/docs/functions/_open_pioneer_react_utils.useHeadingLevel.html index 4d085195a..db002f99c 100644 --- a/core-packages/docs/functions/_open_pioneer_react_utils.useHeadingLevel.html +++ b/core-packages/docs/functions/_open_pioneer_react_utils.useHeadingLevel.html @@ -1,3 +1,3 @@ useHeadingLevel | Trails Packages
+

Returns HeadingLevel

diff --git a/core-packages/docs/functions/_open_pioneer_reactivity.useComputed.html b/core-packages/docs/functions/_open_pioneer_reactivity.useComputed.html index d0d0a6ea1..e8914f4c1 100644 --- a/core-packages/docs/functions/_open_pioneer_reactivity.useComputed.html +++ b/core-packages/docs/functions/_open_pioneer_reactivity.useComputed.html @@ -13,4 +13,4 @@
  • ()
  • ()
  • -
    +
    diff --git a/core-packages/docs/functions/_open_pioneer_reactivity.useReactive.html b/core-packages/docs/functions/_open_pioneer_reactivity.useReactive.html index d299e478c..8c34a6474 100644 --- a/core-packages/docs/functions/_open_pioneer_reactivity.useReactive.html +++ b/core-packages/docs/functions/_open_pioneer_reactivity.useReactive.html @@ -5,6 +5,6 @@

    Type Parameters

    • T

    Returns Reactive<T | undefined>

    function YourComponent() {
    const mySignal = useReactive();
    const someEventHandler = () => {
    // Update the value after some event
    mySignal.value = "new value";
    };

    // Always returns the current value, re-renders if necessary.
    const currentValue = useReactiveValue(mySignal);
    }
    -
  • Creates a new signal with the given initial value.

    +
  • Creates a new signal with the given initial value.

    Type Parameters

    • T

    Parameters

    • initialValue: T

    Returns Reactive<T>

    ().

    -
  • +
    diff --git a/core-packages/docs/functions/_open_pioneer_reactivity.useReactiveSnapshot.html b/core-packages/docs/functions/_open_pioneer_reactivity.useReactiveSnapshot.html index 42718e9d4..27798fc44 100644 --- a/core-packages/docs/functions/_open_pioneer_reactivity.useReactiveSnapshot.html +++ b/core-packages/docs/functions/_open_pioneer_reactivity.useReactiveSnapshot.html @@ -14,4 +14,4 @@

    This hook is based on () and ().

    -
    +
    diff --git a/core-packages/docs/functions/_open_pioneer_reactivity.useReactiveValue.html b/core-packages/docs/functions/_open_pioneer_reactivity.useReactiveValue.html index 8cdd11048..f31c429cb 100644 --- a/core-packages/docs/functions/_open_pioneer_reactivity.useReactiveValue.html +++ b/core-packages/docs/functions/_open_pioneer_reactivity.useReactiveValue.html @@ -3,4 +3,4 @@

    NOTE: The return value of this hook should be considered read-only.

    Type Parameters

    • T

    Parameters

    • reactive: ReadonlyReactive<T>

    Returns T

    ()

    -
    +
    diff --git a/core-packages/docs/functions/_open_pioneer_runtime.createCustomElement.html b/core-packages/docs/functions/_open_pioneer_runtime.createCustomElement.html index d314139ba..f02692a8a 100644 --- a/core-packages/docs/functions/_open_pioneer_runtime.createCustomElement.html +++ b/core-packages/docs/functions/_open_pioneer_runtime.createCustomElement.html @@ -2,4 +2,4 @@

    Parameters

    Returns ApplicationElementConstructor

    import * as appMetadata from "open-pioneer:app";

    const CustomElementClazz = createCustomElement({
    component: <div>Hello World!</div>,
    appMetadata
    });
    customElements.define("sample-element", CustomElementClazz);
    -
    +
    diff --git a/core-packages/docs/functions/_open_pioneer_test_utils.react.PackageContextProvider.html b/core-packages/docs/functions/_open_pioneer_test_utils.react.PackageContextProvider.html index 7df8e99c9..967b000ca 100644 --- a/core-packages/docs/functions/_open_pioneer_test_utils.react.PackageContextProvider.html +++ b/core-packages/docs/functions/_open_pioneer_test_utils.react.PackageContextProvider.html @@ -3,4 +3,4 @@ will receive the mocked properties here instead. Currently also wrapped with the CustomChakraProvider to support chakra-ui elements

    +

    Returns ReactNode

    diff --git a/core-packages/docs/functions/_open_pioneer_test_utils.services.createService.html b/core-packages/docs/functions/_open_pioneer_test_utils.services.createService.html index 1102e22f3..5ae1e7ddb 100644 --- a/core-packages/docs/functions/_open_pioneer_test_utils.services.createService.html +++ b/core-packages/docs/functions/_open_pioneer_test_utils.services.createService.html @@ -9,4 +9,4 @@

    Type Parameters

    • References extends {}
    • Interface extends {}

    Parameters

    Returns Promise<Service<Interface>>

    a new instance of the given service class

    -
    +
    diff --git a/core-packages/docs/functions/_open_pioneer_test_utils.web_components.defineComponent.html b/core-packages/docs/functions/_open_pioneer_test_utils.web_components.defineComponent.html index 74a0a3aed..17f3241d6 100644 --- a/core-packages/docs/functions/_open_pioneer_test_utils.web_components.defineComponent.html +++ b/core-packages/docs/functions/_open_pioneer_test_utils.web_components.defineComponent.html @@ -1,4 +1,4 @@ defineComponent | Trails Packages
    • Defines the given component and returns the unique tag name. This helper is necessary because tag names must not collide in the global elements registry (and un-registration is not possible).

      -

      Parameters

      • component: CustomElementConstructor
      • Optionaloptions: {
            nameHint?: string;
        }
        • OptionalnameHint?: string

      Returns string

    +

    Parameters

    • component: CustomElementConstructor
    • Optionaloptions: {
          nameHint?: string;
      }
      • OptionalnameHint?: string

    Returns string

    diff --git a/core-packages/docs/functions/_open_pioneer_test_utils.web_components.renderComponent.html b/core-packages/docs/functions/_open_pioneer_test_utils.web_components.renderComponent.html index cbb6d1511..9b770c0ff 100644 --- a/core-packages/docs/functions/_open_pioneer_test_utils.web_components.renderComponent.html +++ b/core-packages/docs/functions/_open_pioneer_test_utils.web_components.renderComponent.html @@ -1,2 +1,2 @@ renderComponent | Trails Packages
    • Renders the given component into the DOM and returns the new node.

      -

      Parameters

      • component: string | CustomElementConstructor
      • Optionaloptions: {
            attributes?: Record<string, string>;
            container?: HTMLElement;
        }
        • Optionalattributes?: Record<string, string>
        • Optionalcontainer?: HTMLElement

      Returns Promise<{
          node: HTMLElement;
      }>

    +

    Parameters

    • component: string | CustomElementConstructor
    • Optionaloptions: {
          attributes?: Record<string, string>;
          container?: HTMLElement;
      }
      • Optionalattributes?: Record<string, string>
      • Optionalcontainer?: HTMLElement

    Returns Promise<{
        node: HTMLElement;
    }>

    diff --git a/core-packages/docs/functions/_open_pioneer_test_utils.web_components.renderComponentShadowDOM.html b/core-packages/docs/functions/_open_pioneer_test_utils.web_components.renderComponentShadowDOM.html index eeaa2b24f..f4356684d 100644 --- a/core-packages/docs/functions/_open_pioneer_test_utils.web_components.renderComponentShadowDOM.html +++ b/core-packages/docs/functions/_open_pioneer_test_utils.web_components.renderComponentShadowDOM.html @@ -4,4 +4,4 @@ where all other searches should be executed.

    Returns the shadow root, the inner container, and a bound queries object that automatically searches in the inner container instead of the whole document.

    -

    Parameters

    • component: string | CustomElementConstructor
    • Optionaloptions: {
          attributes?: Record<string, string>;
          container?: HTMLElement;
          innerContainerSelector?: string;
      }
      • Optionalattributes?: Record<string, string>
      • Optionalcontainer?: HTMLElement
      • OptionalinnerContainerSelector?: string

    Returns Promise<{
        innerContainer: HTMLElement;
        node: HTMLElement;
        queries: {} & {};
        shadowRoot: ShadowRoot;
    }>

    +

    Parameters

    • component: string | CustomElementConstructor
    • Optionaloptions: {
          attributes?: Record<string, string>;
          container?: HTMLElement;
          innerContainerSelector?: string;
      }
      • Optionalattributes?: Record<string, string>
      • Optionalcontainer?: HTMLElement
      • OptionalinnerContainerSelector?: string

    Returns Promise<{
        innerContainer: HTMLElement;
        node: HTMLElement;
        queries: {} & {};
        shadowRoot: ShadowRoot;
    }>

    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPlugin.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPlugin.html index 4fa2f3c05..ff42aa4be 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPlugin.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPlugin.html @@ -2,14 +2,14 @@

    The plugin provides the current authentication state and the authentication fallback to the service.

    The current authentication state returned by getAuthState may change. If that is the case, the plugin must implement its auth state with Reactivity API.

    -
    interface AuthPlugin {
        getAuthState(): AuthState;
        getLoginBehavior(): LoginBehavior;
        logout(): void | Promise<void>;
    }

    Hierarchy (view full)

    Methods

    interface AuthPlugin {
        getAuthState(): AuthState;
        getLoginBehavior(): LoginBehavior;
        logout(): void | Promise<void>;
    }

    Hierarchy (view full)

    Methods

    • Explicitly triggers a logout.

      Should result in a new state (including a changed event) if the user was authenticated.

      -

      Returns void | Promise<void>

    +

    Returns void | Promise<void>

    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthService.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthService.html index 06dd788ca..2ef381bfc 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthService.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthService.html @@ -1,6 +1,6 @@ AuthService | Trails Packages

    Manages the current user's authentication state.

    The current state (such as session info) can be retrieved and watched for changes.

    -
    interface AuthService {
        getAuthState(): AuthState;
        getLoginBehavior(): LoginBehavior;
        getSessionInfo(): Promise<undefined | SessionInfo>;
        logout(): void;
    }

    Hierarchy (view full)

    Methods

    interface AuthService {
        getAuthState(): AuthState;
        getLoginBehavior(): LoginBehavior;
        getSessionInfo(): Promise<undefined | SessionInfo>;
        logout(): void;
    }

    Hierarchy (view full)

    Methods

    getAuthState getLoginBehavior getSessionInfo logout @@ -8,9 +8,9 @@

    The state may initially be pending to allow for async initialization in the authentication plugin. After initialization, the state is either not-authenticated or authenticated.

    Use Reactivity API to watch the auth state.

    -

    Returns AuthState

    +

    Returns Promise<undefined | SessionInfo>

    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html index e83ce42b4..74532534c 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html @@ -1,5 +1,5 @@ AuthStateAuthenticated | Trails Packages

    The user is authenticated and its session attributes can be retrieved.

    -
    interface AuthStateAuthenticated {
        kind: "authenticated";
        sessionInfo: SessionInfo;
    }

    Properties

    interface AuthStateAuthenticated {
        kind: "authenticated";
        sessionInfo: SessionInfo;
    }

    Properties

    Properties

    kind
    sessionInfo: SessionInfo
    +

    Properties

    kind
    sessionInfo: SessionInfo
    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateAuthenticationError.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateAuthenticationError.html index 06117c08d..2d8c7eadf 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateAuthenticationError.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateAuthenticationError.html @@ -1,5 +1,5 @@ AuthStateAuthenticationError | Trails Packages

    This state indicates an error during authentication. This state should used for errors in the authentication workflow (e.g. backend unavailable) rather than failed login attempts (e.g. invalid credentials).

    -
    interface AuthStateAuthenticationError {
        error: Error;
        kind: "error";
    }

    Properties

    interface AuthStateAuthenticationError {
        error: Error;
        kind: "error";
    }

    Properties

    Properties

    error: Error
    kind
    +

    Properties

    error: Error
    kind
    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateNotAuthenticated.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateNotAuthenticated.html index e9d9ebe8b..f0ab02135 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateNotAuthenticated.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateNotAuthenticated.html @@ -1,3 +1,3 @@ AuthStateNotAuthenticated | Trails Packages

    The user not authenticated.

    -
    interface AuthStateNotAuthenticated {
        kind: "not-authenticated";
    }

    Properties

    Properties

    kind
    +
    interface AuthStateNotAuthenticated {
        kind: "not-authenticated";
    }

    Properties

    Properties

    kind
    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStatePending.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStatePending.html index 7fed8d83f..52025cc98 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStatePending.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStatePending.html @@ -1,4 +1,4 @@ AuthStatePending | Trails Packages

    This state is active when the authentication service is still checking whether the current user is authenticated or not.

    -
    interface AuthStatePending {
        kind: "pending";
    }

    Properties

    Properties

    kind
    +
    interface AuthStatePending {
        kind: "pending";
    }

    Properties

    Properties

    kind
    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.ForceAuthProps.html b/core-packages/docs/interfaces/_open_pioneer_authentication.ForceAuthProps.html index c76e7130a..27c1cc8e2 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.ForceAuthProps.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.ForceAuthProps.html @@ -1,19 +1,19 @@ ForceAuthProps | Trails Packages

    Properties for the ForceAuth component.

    -
    interface ForceAuthProps {
        children?: ReactNode;
        errorFallback?: ComponentType<ErrorFallbackProps>;
        fallbackProps?: Record<string, unknown>;
        renderErrorFallback?: ((error: Error) => ReactNode);
        renderFallback?: ((AuthFallback: ComponentType<Record<string, unknown>>) => ReactNode);
    }

    Properties

    interface ForceAuthProps {
        children?: ReactNode;
        errorFallback?: ComponentType<ErrorFallbackProps>;
        fallbackProps?: Record<string, unknown>;
        renderErrorFallback?: ((error: Error) => ReactNode);
        renderFallback?: ((AuthFallback: ComponentType<Record<string, unknown>>) => ReactNode);
    }

    Properties

    children?: ReactNode

    The children are rendered if the current user is authenticated.

    -
    errorFallback?: ComponentType<ErrorFallbackProps>

    This component is rendered as fallback if an error occurs during authentication (e.g authentication backend is not available). +

    errorFallback?: ComponentType<ErrorFallbackProps>

    This component is rendered as fallback if an error occurs during authentication (e.g authentication backend is not available). The actual error that occured is accesible from within the fallback component via ErrorFallbackProps

    Example:

    <ForceAuth errorFallback={ErrorFallback}>
    App Content
    </ForceAuth>

    function ErrorFallback(props: ErrorFallbackProps) {
    return (
    <>
    <Box margin={2} color={"red"}>{props.error.message}</Box>
    </>
    );
    }
    -
    fallbackProps?: Record<string, unknown>

    These properties will be provided to the AuthFallback component implemented by the authentication plugin.

    +
    fallbackProps?: Record<string, unknown>

    These properties will be provided to the AuthFallback component implemented by the authentication plugin.

    NOTE: This property is not used when renderFallback is specified.

    -
    renderErrorFallback?: ((error: Error) => ReactNode)

    This property can be used to customize rendering of the error fallback. +

    renderErrorFallback?: ((error: Error) => ReactNode)

    This property can be used to customize rendering of the error fallback. The renderErrorFallback should be used if inputs other than ErrorFallbackProps are to be used in the error fallback.

    NOTE: renderErrorFallback takes precedence before errorFallback.

    Example:

    @@ -21,7 +21,7 @@

    Type declaration

      • (error): ReactNode
      • Parameters

        • error: Error

          the error that occured during authentication

          -

        Returns ReactNode

    renderFallback?: ((AuthFallback: ComponentType<Record<string, unknown>>) => ReactNode)

    This property can be used to customize rendering of the authentication fallback.

    +

    Returns ReactNode

    renderFallback?: ((AuthFallback: ComponentType<Record<string, unknown>>) => ReactNode)

    This property can be used to customize rendering of the authentication fallback.

    The AuthFallback parameter passed to the render prop is the fallback implemented by the authentication plugin. You can customize the rendering of the fallback by implementing this function. For example, AuthFallback could be wrapped with a few parent components.

    @@ -30,4 +30,4 @@
    <ForceAuth
    renderFallback={(AuthFallback) => {
    return (
    <SomeContainer>
    <AuthFallback foo="bar" />
    </SomeContainer>
    );
    }}
    >
    App Content
    </ForceAuth>
    -
    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.LoginEffect.html b/core-packages/docs/interfaces/_open_pioneer_authentication.LoginEffect.html index dfc4a02c9..6b33f98d3 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.LoginEffect.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.LoginEffect.html @@ -1,5 +1,5 @@ LoginEffect | Trails Packages

    An effect to perform when the user shall be authenticated. login() may, for example, perform a redirect to an authentication provider.

    -
    interface LoginEffect {
        kind: "effect";
        login(): void;
    }

    Properties

    interface LoginEffect {
        kind: "effect";
        login(): void;
    }

    Properties

    Methods

    Properties

    kind

    Methods

    +

    Properties

    kind

    Methods

    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.LoginFallback.html b/core-packages/docs/interfaces/_open_pioneer_authentication.LoginFallback.html index bd94d4902..da08c311e 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.LoginFallback.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.LoginFallback.html @@ -1,5 +1,5 @@ LoginFallback | Trails Packages

    A fallback react component to present to the user. For example, this can be a login form or a message.

    -
    interface LoginFallback {
        Fallback: ComponentType;
        kind: "fallback";
    }

    Properties

    interface LoginFallback {
        Fallback: ComponentType;
        kind: "fallback";
    }

    Properties

    Properties

    Fallback: ComponentType
    kind
    +

    Properties

    Fallback: ComponentType
    kind
    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.SessionInfo.html b/core-packages/docs/interfaces/_open_pioneer_authentication.SessionInfo.html index 9ec15e2b0..3e9715e16 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.SessionInfo.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.SessionInfo.html @@ -1,11 +1,11 @@ SessionInfo | Trails Packages

    Information about the authenticated user's session.

    -
    interface SessionInfo {
        attributes?: Record<string, unknown>;
        expiresAt?: Date;
        userId: string;
        userName?: string;
    }

    Properties

    interface SessionInfo {
        attributes?: Record<string, unknown>;
        expiresAt?: Date;
        userId: string;
        userName?: string;
    }

    Properties

    attributes?: Record<string, unknown>

    Arbitrary attributes from the authentication plugin.

    -
    expiresAt?: Date

    Set to a date if the session expires at some point. Optional.

    -
    userId: string

    Technical user id of the authenticated user, for example an email address.

    -
    userName?: string

    Display name of the authenticated user. +

    expiresAt?: Date

    Set to a date if the session expires at some point. Optional.

    +
    userId: string

    Technical user id of the authenticated user, for example an email address.

    +
    userName?: string

    Display name of the authenticated user. Use the userId as a default value if this value is not available.

    -
    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.KeycloakOptions.html b/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.KeycloakOptions.html index cbb67ec4f..1dbbcc9b7 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.KeycloakOptions.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.KeycloakOptions.html @@ -1,17 +1,17 @@ -KeycloakOptions | Trails Packages
    interface KeycloakOptions {
        keycloakConfig: KeycloakConfig;
        keycloakInitOptions: Partial<KeycloakInitOptions>;
        refreshOptions: RefreshOptions;
    }

    Properties

    keycloakConfig +KeycloakOptions | Trails Packages
    interface KeycloakOptions {
        keycloakConfig: KeycloakConfig;
        keycloakInitOptions: Partial<KeycloakInitOptions>;
        refreshOptions: RefreshOptions;
    }

    Properties

    keycloakConfig: KeycloakConfig

    The configuration details for connecting to Keycloak. 'url': The URL of your Keycloak server. 'realm': The realm within Keycloak. 'clientId': The ID of the client application registered in Keycloak.

    -
    keycloakInitOptions: Partial<KeycloakInitOptions>

    Define how Keycloak initializes. +

    keycloakInitOptions: Partial<KeycloakInitOptions>

    Define how Keycloak initializes. This properties can be used: 'onLoad': Specifies when Keycloak should initialize. 'pkceMethod': The method used for PKCE for enhanced security. 'scope': The scope of the authentication.

    -
    refreshOptions: RefreshOptions

    Control the automatic refreshing of authentication tokens. +

    refreshOptions: RefreshOptions

    Control the automatic refreshing of authentication tokens. 'autoRefresh': Whether token refreshing should happen automatically. 'interval': The interval (in milliseconds) at which token refreshing should occur. 'timeLeft': The remaining time (in milliseconds) before token expiration.

    -
    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.KeycloakProperties.html b/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.KeycloakProperties.html index 24b4673c4..624466268 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.KeycloakProperties.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.KeycloakProperties.html @@ -1,5 +1,5 @@ KeycloakProperties | Trails Packages

    The central configuration properties of the plugin.

    An object of this type should be used as configuration for this package.

    -
    interface KeycloakProperties {
        keycloakOptions: KeycloakOptions;
    }

    Properties

    interface KeycloakProperties {
        keycloakOptions: KeycloakOptions;
    }

    Properties

    Properties

    keycloakOptions: KeycloakOptions

    These properties are required by the Keycloak JavaScript adapter.

    -
    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.RefreshOptions.html b/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.RefreshOptions.html index 1ec13082a..3c2baa7a9 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.RefreshOptions.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication_keycloak.RefreshOptions.html @@ -1,8 +1,8 @@ RefreshOptions | Trails Packages

    Control the automatic refreshing of authentication tokens.

    -
    interface RefreshOptions {
        autoRefresh: boolean;
        interval: number;
        timeLeft: number;
    }

    Properties

    interface RefreshOptions {
        autoRefresh: boolean;
        interval: number;
        timeLeft: number;
    }

    Properties

    autoRefresh: boolean

    Whether token refreshing should happen automatically.

    -
    interval: number

    The interval (in milliseconds) at which token refreshing should occur.

    -
    timeLeft: number

    The remaining time (in milliseconds) before token expiration.

    -
    +
    interval: number

    The interval (in milliseconds) at which token refreshing should occur.

    +
    timeLeft: number

    The remaining time (in milliseconds) before token expiration.

    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_core.LogMethod.html b/core-packages/docs/interfaces/_open_pioneer_core.LogMethod.html index cb2692506..6f8f3a90b 100644 --- a/core-packages/docs/interfaces/_open_pioneer_core.LogMethod.html +++ b/core-packages/docs/interfaces/_open_pioneer_core.LogMethod.html @@ -2,4 +2,4 @@

    Parameters

    • message: unknown

      Log message to be logged (attached to the prefix). This can be an arbitrary value. Errors will be logged as-is, and other values are formatted as strings.

    • Rest...values: unknown[]

      Arbitrary amount of additional values to be logged (attached to message).

      -

    Returns void

    +

    Returns void

    diff --git a/core-packages/docs/interfaces/_open_pioneer_core.Logger.html b/core-packages/docs/interfaces/_open_pioneer_core.Logger.html index c42d92266..acd60ce02 100644 --- a/core-packages/docs/interfaces/_open_pioneer_core.Logger.html +++ b/core-packages/docs/interfaces/_open_pioneer_core.Logger.html @@ -1,7 +1,7 @@ Logger | Trails Packages

    Provides a logger for a standardized application wide logging.

    The logger's log level is configured globally.

    Use the createLogger function to receive a new logger instance for logging.

    -
    interface Logger {
        debug: LogMethod;
        error: LogMethod;
        info: LogMethod;
        prefix: string;
        warn: LogMethod;
        isDebug(): boolean;
    }

    Properties

    interface Logger {
        debug: LogMethod;
        error: LogMethod;
        info: LogMethod;
        prefix: string;
        warn: LogMethod;
        isDebug(): boolean;
    }

    Properties

    debug error info prefix @@ -9,12 +9,12 @@

    Methods

    Properties

    debug: LogMethod

    Logging method for debug log level. Follows normal LogMethod structure but logs in debug level.

    -
    error: LogMethod

    Logging method for debug error level. +

    error: LogMethod

    Logging method for debug error level. Follows normal log method structure but logs in error level.

    -
    info: LogMethod

    Logging method for info log level. +

    info: LogMethod

    Logging method for info log level. Follows normal log method structure but logs in info level.

    -
    prefix: string

    Prefix prepended to all logging messages

    -
    warn: LogMethod

    Logging method for warn log level. +

    prefix: string

    Prefix prepended to all logging messages

    +
    warn: LogMethod

    Logging method for warn log level. Follows normal log method structure but logs in warn level.

    -

    Methods

    • Returns true if debug log level is enabled.

      -

      Returns boolean

    +

    Methods

    • Returns true if debug log level is enabled.

      +

      Returns boolean

    diff --git a/core-packages/docs/interfaces/_open_pioneer_core.ManualPromise.html b/core-packages/docs/interfaces/_open_pioneer_core.ManualPromise.html index f9b5e5d60..daa66d94e 100644 --- a/core-packages/docs/interfaces/_open_pioneer_core.ManualPromise.html +++ b/core-packages/docs/interfaces/_open_pioneer_core.ManualPromise.html @@ -1,7 +1,7 @@ ManualPromise | Trails Packages

    A manual promise that also exposes its resolve and reject functions.

    The user must take care to always call either resolve or reject at least once, otherwise clients waiting for the promise may wait forever.

    -
    interface ManualPromise<T> {
        promise: Promise<T>;
        reject(error: unknown): void;
        resolve(value: T): void;
    }

    Type Parameters

    • T

    Properties

    interface ManualPromise<T> {
        promise: Promise<T>;
        reject(error: unknown): void;
        resolve(value: T): void;
    }

    Type Parameters

    • T

    Properties

    Methods

    Properties

    promise: Promise<T>

    Methods

    • Parameters

      • error: unknown

      Returns void

    • Parameters

      • value: T

      Returns void

    +

    Properties

    promise: Promise<T>

    Methods

    • Parameters

      • error: unknown

      Returns void

    • Parameters

      • value: T

      Returns void

    diff --git a/core-packages/docs/interfaces/_open_pioneer_core.Resource.html b/core-packages/docs/interfaces/_open_pioneer_core.Resource.html index 9a53d0f2e..c899f453a 100644 --- a/core-packages/docs/interfaces/_open_pioneer_core.Resource.html +++ b/core-packages/docs/interfaces/_open_pioneer_core.Resource.html @@ -1,4 +1,4 @@ Resource | Trails Packages

    An object that has some cleanup code associated with it.

    -
    interface Resource {
        destroy(): void;
    }

    Methods

    interface Resource {
        destroy(): void;
    }

    Methods

    Methods

    • A function that releases any state held by the resource.

      -

      Returns void

    +

    Returns void

    diff --git a/core-packages/docs/interfaces/_open_pioneer_http.BeforeRequestParams.html b/core-packages/docs/interfaces/_open_pioneer_http.BeforeRequestParams.html index 1e7cf5075..d20cc5944 100644 --- a/core-packages/docs/interfaces/_open_pioneer_http.BeforeRequestParams.html +++ b/core-packages/docs/interfaces/_open_pioneer_http.BeforeRequestParams.html @@ -1,14 +1,14 @@ BeforeRequestParams | Trails Packages

    Options passed to Interceptor.beforeRequest.

    -
    interface BeforeRequestParams {
        context: ContextData;
        options: ResolvedRequestOptions;
        signal: AbortSignal;
        target: URL;
    }

    Properties

    interface BeforeRequestParams {
        context: ContextData;
        options: ResolvedRequestOptions;
        signal: AbortSignal;
        target: URL;
    }

    Properties

    context: ContextData

    The context object holds arbitrary values associated with this http request. Interceptors can read and modify values within this object.

    -

    The options that were used when the request was made. +

    The options that were used when the request was made. Option values (such as headers) can be modified by an interceptor.

    -
    signal: AbortSignal

    The signal can be used to listen for cancellation. +

    signal: AbortSignal

    The signal can be used to listen for cancellation. This is useful if an interceptor may run for a longer time.

    -
    target: URL

    The request's target URL, including query parameters.

    +
    target: URL

    The request's target URL, including query parameters.

    This property can be changed by the interceptor.

    -
    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_http.HttpService.html b/core-packages/docs/interfaces/_open_pioneer_http.HttpService.html index 94b1da0a1..c91c30c55 100644 --- a/core-packages/docs/interfaces/_open_pioneer_http.HttpService.html +++ b/core-packages/docs/interfaces/_open_pioneer_http.HttpService.html @@ -1,6 +1,6 @@ HttpService | Trails Packages

    Central service for sending HTTP requests.

    Use the interface "http.HttpService" to obtain an instance of this service.

    -
    interface HttpService {
        fetch(resource: string | URL, init?: HttpServiceRequestInit): Promise<Response>;
    }

    Hierarchy (view full)

    Methods

    interface HttpService {
        fetch(resource: string | URL, init?: HttpServiceRequestInit): Promise<Response>;
    }

    Hierarchy (view full)

    Methods

    Methods

    • Requests the given resource via HTTP and returns the response.

      This method works almost exactly the same as the browser's native fetch function. However, certain Open Pioneer Trails extensions (such as interceptors) are implemented on top of fetch @@ -8,4 +8,4 @@

      For example, access tokens or other header / query parameters can be added automatically using an interceptor if a package uses the HttpService.

      See also fetch documentation for reference.

      -

      Parameters

      Returns Promise<Response>

    +

    Parameters

    Returns Promise<Response>

    diff --git a/core-packages/docs/interfaces/_open_pioneer_http.HttpServiceRequestInit.html b/core-packages/docs/interfaces/_open_pioneer_http.HttpServiceRequestInit.html index a53b3ea66..3e886d2c8 100644 --- a/core-packages/docs/interfaces/_open_pioneer_http.HttpServiceRequestInit.html +++ b/core-packages/docs/interfaces/_open_pioneer_http.HttpServiceRequestInit.html @@ -1,5 +1,5 @@ HttpServiceRequestInit | Trails Packages

    Options for HttpService.fetch.

    -
    interface HttpServiceRequestInit {
        context?: ContextData;
    }

    Hierarchy

    • RequestInit
      • HttpServiceRequestInit

    Properties

    interface HttpServiceRequestInit {
        context?: ContextData;
    }

    Hierarchy

    • RequestInit
      • HttpServiceRequestInit

    Properties

    Properties

    context?: ContextData

    Arbitrary context properties for this http request. These values can be accessed by interceptors.

    -
    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_http.Interceptor.html b/core-packages/docs/interfaces/_open_pioneer_http.Interceptor.html index cb174da97..e2924c42e 100644 --- a/core-packages/docs/interfaces/_open_pioneer_http.Interceptor.html +++ b/core-packages/docs/interfaces/_open_pioneer_http.Interceptor.html @@ -5,7 +5,7 @@

    Note that the request interceptor API is experimental: it may change with a new minor release as a response to feedback.

    -
    interface Interceptor {
        beforeRequest?(params: BeforeRequestParams): void | Promise<void>;
    }

    Hierarchy (view full)

    Methods

    interface Interceptor {
        beforeRequest?(params: BeforeRequestParams): void | Promise<void>;
    }

    Hierarchy (view full)

    Methods

    • This method will be invoked for every request made by the HttpService.

      The params passed to the interceptor method can be inspected and can also be updated to change how the request is going to be made. For example, target and options.headers can be modified.

      @@ -15,4 +15,4 @@ All interceptors are invoked for every request. The order in which the interceptors are invoked is currently not defined.

      -

      Parameters

      Returns void | Promise<void>

    +

    Parameters

    Returns void | Promise<void>

    diff --git a/core-packages/docs/interfaces/_open_pioneer_integration.ApiExtension.html b/core-packages/docs/interfaces/_open_pioneer_integration.ApiExtension.html index 2f3d1b12e..09024dbe0 100644 --- a/core-packages/docs/interfaces/_open_pioneer_integration.ApiExtension.html +++ b/core-packages/docs/interfaces/_open_pioneer_integration.ApiExtension.html @@ -1,4 +1,4 @@ ApiExtension | Trails Packages

    Provides a set of methods to the application's web component API.

    -
    interface ApiExtension {
        getApiMethods(): ApiMethods | Promise<ApiMethods>;
    }

    Methods

    interface ApiExtension {
        getApiMethods(): ApiMethods | Promise<ApiMethods>;
    }

    Methods

    +

    Returns ApiMethods | Promise<ApiMethods>

    diff --git a/core-packages/docs/interfaces/_open_pioneer_integration.ExternalEventService.html b/core-packages/docs/interfaces/_open_pioneer_integration.ExternalEventService.html index 500027757..97d596d8e 100644 --- a/core-packages/docs/interfaces/_open_pioneer_integration.ExternalEventService.html +++ b/core-packages/docs/interfaces/_open_pioneer_integration.ExternalEventService.html @@ -1,15 +1,15 @@ ExternalEventService | Trails Packages

    Emits events to users of the current web component.

    Use the interface "integration.ExternalEventService" to obtain an instance of this service.

    -
    interface ExternalEventService {
        emitEvent(name: string, detail?: unknown): void;
        emitEvent(event: Event): void;
    }

    Hierarchy (view full)

    Methods

    interface ExternalEventService {
        emitEvent(name: string, detail?: unknown): void;
        emitEvent(event: Event): void;
    }

    Hierarchy (view full)

    Methods

    Methods

    • Emits an event to the host site as a CustomEvent.

      The detail value (if any) will be used as the custom event's detail.

      Parameters

      • name: string
      • Optionaldetail: unknown

      Returns void

      // In the application, e.g. in a service
      eventService.emitEvent("my-event", { message: "Hello World" });

      // In the host site (node is the application's web component node)
      node.addEventLister("my-event", (event) => {
      console.log(event.detail);
      })
      -
    • Emits a prepared DOM event to the host site.

      +
  • Emits a prepared DOM event to the host site.

    The event will be dispatched on the web component's dom node without being altered by this service.

    You must take care to set the appropriate event options for your use case if you're using this overload (e.g. bubbles).

    Parameters

    • event: Event

    Returns void

    // You can use the CustomEvent class or your own subclass of Event
    eventService.emitEvent(new CustomEvent("my-event", {
    detail: "detail-value"
    }));
    -
  • +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageAPI.html b/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageAPI.html index 3b411f7d1..6bf159ea3 100644 --- a/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageAPI.html +++ b/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageAPI.html @@ -1,14 +1,14 @@ LocalStorageAPI | Trails Packages

    Provides basic operations to interact with the browser's local storage.

    The operations provided by this interface always act on an object in local storage: either the root value or a nested object.

    -
    interface LocalStorageAPI {
        get(key: string): unknown;
        getNamespace(key: string): LocalStorageAPI;
        remove(key: string): void;
        removeAll(): void;
        set(key: string, value: unknown): void;
    }

    Hierarchy (view full)

    Methods

    get +
    interface LocalStorageAPI {
        get(key: string): unknown;
        getNamespace(key: string): LocalStorageAPI;
        remove(key: string): void;
        removeAll(): void;
        set(key: string, value: unknown): void;
    }

    Hierarchy (view full)

    Methods

    • Returns the value associated with the given key, or undefined if no such value exists.

      -

      Parameters

      • key: string

      Returns unknown

    • Returns a storage namespace operating on the given key that can be used to group multiple related properties. key should either be associated with an object or it's value should be undefined. If key is not associated with a value, a new empty object will be created.

      @@ -21,12 +21,12 @@
      const storageService = ...; // injected

      // Namespace operates on the "my-package-name" object (which may not exist yet)
      const packageNamespace = storageService.getNamespace("my-package-name");

      // Setting the first value will ensure that the object exists
      packageNamespace.set("foo", "bar"); // actually sets `"my-package-name" -> "foo"`

      // Retrieving the same object ("my-package-name") via get():
      const backingObject = storageService.get("my-package-name"); // {"foo": "bar"}
      console.log(backingObject);
      -

      Parameters

      • key: string

      Returns LocalStorageAPI

    • Removes any value associated with key.

      -

      Parameters

      • key: string

      Returns void

    • Removes any value associated with key.

      +

      Parameters

      • key: string

      Returns void

    • Removes all entries associated managed by this instance.

      If this represents the root object, all entries will be removed. If this represents a (possibly nested) namespace, only the contents of that namespace will be removed.

      -

      Returns void

    • Associates the given value with key.

      This method supports arbitrary JSON compatible values, including objects and arrays. If you store an object, you can later access (or modify) its individual properties using getNamespace.

      @@ -34,4 +34,4 @@

      NOTE: This function creates a clone of the original value to protect against accidental side effects. Updating the original value after set() will have no effect on the stored value.

      -

      Parameters

      • key: string
      • value: unknown

      Returns void

    +

    Parameters

    • key: string
    • value: unknown

    Returns void

    diff --git a/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageProperties.html b/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageProperties.html index 730b8f1c3..06ec59ad2 100644 --- a/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageProperties.html +++ b/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageProperties.html @@ -1,4 +1,4 @@ LocalStorageProperties | Trails Packages

    Package properties of the "local-storage" package.

    -
    interface LocalStorageProperties {
        storageId: null | string;
    }

    Properties

    interface LocalStorageProperties {
        storageId: null | string;
    }

    Properties

    Properties

    storageId: null | string

    The root local storage key used to store application state.

    -
    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageService.html b/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageService.html index ed15d04ba..31c15e1b9 100644 --- a/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageService.html +++ b/core-packages/docs/interfaces/_open_pioneer_local_storage.LocalStorageService.html @@ -1,6 +1,6 @@ LocalStorageService | Trails Packages

    Provides access to the browser's local storage for Open Pioneer Trails packages through a convenient API. Use the interface name "local-storage.LocalStorageService" to inject an instance of this interface.

    -
    interface LocalStorageService {
        isSupported: boolean;
        get(key: string): unknown;
        getNamespace(key: string): LocalStorageAPI;
        remove(key: string): void;
        removeAll(): void;
        set(key: string, value: unknown): void;
    }

    Hierarchy (view full)

    Properties

    interface LocalStorageService {
        isSupported: boolean;
        get(key: string): unknown;
        getNamespace(key: string): LocalStorageAPI;
        remove(key: string): void;
        removeAll(): void;
        set(key: string, value: unknown): void;
    }

    Hierarchy (view full)

    Properties

    Methods

    get getNamespace remove @@ -8,9 +8,9 @@ set

    Properties

    isSupported: boolean

    Whether local storage is supported by the current environment.

    Getters and setters working on local storage will throw if this value is false.

    -

    Methods

    • Returns the value associated with the given key, or undefined if +

    Methods

    • Returns the value associated with the given key, or undefined if no such value exists.

      -

      Parameters

      • key: string

      Returns unknown

    • Returns a storage namespace operating on the given key that can be used to group multiple related properties. key should either be associated with an object or it's value should be undefined. If key is not associated with a value, a new empty object will be created.

      @@ -23,12 +23,12 @@
      const storageService = ...; // injected

      // Namespace operates on the "my-package-name" object (which may not exist yet)
      const packageNamespace = storageService.getNamespace("my-package-name");

      // Setting the first value will ensure that the object exists
      packageNamespace.set("foo", "bar"); // actually sets `"my-package-name" -> "foo"`

      // Retrieving the same object ("my-package-name") via get():
      const backingObject = storageService.get("my-package-name"); // {"foo": "bar"}
      console.log(backingObject);
      -

      Parameters

      • key: string

      Returns LocalStorageAPI

    • Removes all entries associated managed by this instance.

      If this represents the root object, all entries will be removed. If this represents a (possibly nested) namespace, only the contents of that namespace will be removed.

      -

      Returns void

    • Associates the given value with key.

      This method supports arbitrary JSON compatible values, including objects and arrays. If you store an object, you can later access (or modify) its individual properties using getNamespace.

      @@ -36,4 +36,4 @@

      NOTE: This function creates a clone of the original value to protect against accidental side effects. Updating the original value after set() will have no effect on the stored value.

      -

      Parameters

      • key: string
      • value: unknown

      Returns void

    +

    Parameters

    • key: string
    • value: unknown

    Returns void

    diff --git a/core-packages/docs/interfaces/_open_pioneer_notifier.NotificationOptions.html b/core-packages/docs/interfaces/_open_pioneer_notifier.NotificationOptions.html index 76af0624f..41070e672 100644 --- a/core-packages/docs/interfaces/_open_pioneer_notifier.NotificationOptions.html +++ b/core-packages/docs/interfaces/_open_pioneer_notifier.NotificationOptions.html @@ -1,15 +1,15 @@ NotificationOptions | Trails Packages

    Options used when emitting a new notification via NotificationService.notify.

    -
    interface NotificationOptions {
        displayDuration?: number;
        level?: NotificationLevel;
        message?: ReactNode;
        title?: ReactNode;
    }

    Properties

    interface NotificationOptions {
        displayDuration?: number;
        level?: NotificationLevel;
        message?: ReactNode;
        title?: ReactNode;
    }

    Properties

    displayDuration?: number

    The duration (in milliseconds) how long the notification is displayed. By default, notifications are displayed until they are explicitly closed by the user.

    Note that important messages should not be hidden automatically for a11y reasons.

    -

    The level of this notification.

    +

    The level of this notification.

    "info"
     
    -
    message?: ReactNode

    An optional message, shown below the title.

    -
    title?: ReactNode

    The title of the notification.

    -
    +
    message?: ReactNode

    An optional message, shown below the title.

    +
    title?: ReactNode

    The title of the notification.

    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_notifier.NotificationService.html b/core-packages/docs/interfaces/_open_pioneer_notifier.NotificationService.html index 3b17522f8..e85957ead 100644 --- a/core-packages/docs/interfaces/_open_pioneer_notifier.NotificationService.html +++ b/core-packages/docs/interfaces/_open_pioneer_notifier.NotificationService.html @@ -1,11 +1,11 @@ NotificationService | Trails Packages

    The NotificationService allows any part of the application to emit notifications to the user.

    You can inject an instance of this service by referencing the interface name notifier.NotificationService.

    -
    interface NotificationService {
        closeAll(): void;
        notify(options: NotificationOptions): void;
    }

    Hierarchy (view full)

    Methods

    interface NotificationService {
        closeAll(): void;
        notify(options: NotificationOptions): void;
    }

    Hierarchy (view full)

    Methods

    • Closes all active notifications.

      -

      Returns void

    • Emits a new notification.

      Notifications are shown by the <Notifier /> component, which must be present in your application.

      Parameters

      Returns void

    +

    Returns void

    diff --git a/core-packages/docs/interfaces/_open_pioneer_notifier.NotifierProps.html b/core-packages/docs/interfaces/_open_pioneer_notifier.NotifierProps.html index 2c8bde052..b91cfa244 100644 --- a/core-packages/docs/interfaces/_open_pioneer_notifier.NotifierProps.html +++ b/core-packages/docs/interfaces/_open_pioneer_notifier.NotifierProps.html @@ -1,7 +1,7 @@ NotifierProps | Trails Packages

    Props supported by the Notifier component.

    -
    interface NotifierProps {
        position?:
            | "top"
            | "top-left"
            | "top-right"
            | "bottom"
            | "bottom-left"
            | "bottom-right";
    }

    Properties

    interface NotifierProps {
        position?:
            | "top"
            | "top-left"
            | "top-right"
            | "bottom"
            | "bottom-left"
            | "bottom-right";
    }

    Properties

    Properties

    position?:
        | "top"
        | "top-left"
        | "top-right"
        | "bottom"
        | "bottom-left"
        | "bottom-right"

    The position for new notifications.

    "top-right"
     
    -
    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_react_utils.CommonComponentProps.html b/core-packages/docs/interfaces/_open_pioneer_react_utils.CommonComponentProps.html index 3fdfbbf8f..fa88e6e36 100644 --- a/core-packages/docs/interfaces/_open_pioneer_react_utils.CommonComponentProps.html +++ b/core-packages/docs/interfaces/_open_pioneer_react_utils.CommonComponentProps.html @@ -1,6 +1,6 @@ CommonComponentProps | Trails Packages

    Common properties supported by all public react components.

    -
    interface CommonComponentProps {
        className?: string;
        data-testid?: string;
    }

    Properties

    interface CommonComponentProps {
        className?: string;
        data-testid?: string;
    }

    Properties

    className?: string

    Additional class name(s).

    -
    data-testid?: string

    Used for testing.

    -
    +
    data-testid?: string

    Used for testing.

    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html b/core-packages/docs/interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html index 28691eda2..90ee093f2 100644 --- a/core-packages/docs/interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html +++ b/core-packages/docs/interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html @@ -1,4 +1,4 @@ ConfigureTitledSectionProps | Trails Packages

    Properties for the ConfigureTitledSection component.

    -
    interface ConfigureTitledSectionProps {
        children?: ReactNode;
        level: HeadingLevel;
    }

    Properties

    interface ConfigureTitledSectionProps {
        children?: ReactNode;
        level: HeadingLevel;
    }

    Properties

    Properties

    children?: ReactNode
    +

    Properties

    children?: ReactNode
    diff --git a/core-packages/docs/interfaces/_open_pioneer_react_utils.SectionHeadingProps.html b/core-packages/docs/interfaces/_open_pioneer_react_utils.SectionHeadingProps.html index 049ea259e..79f1a5f4b 100644 --- a/core-packages/docs/interfaces/_open_pioneer_react_utils.SectionHeadingProps.html +++ b/core-packages/docs/interfaces/_open_pioneer_react_utils.SectionHeadingProps.html @@ -1,6 +1,6 @@ SectionHeadingProps | Trails Packages

    Properties supported by the SectionHeading component.

    All chakra properties are forwarded to the Heading component.

    -
    interface SectionHeadingProps {
        _active: undefined | SystemStyleObject;
        _activeLink: undefined | SystemStyleObject;
        _activeStep: undefined | SystemStyleObject;
        _after: undefined | SystemStyleObject;
        _autofill: undefined | SystemStyleObject;
        _before: undefined | SystemStyleObject;
        _checked: undefined | SystemStyleObject;
        _closed: undefined | SystemStyleObject;
        _complete: undefined | SystemStyleObject;
        _current: undefined | SystemStyleObject;
        _dark: undefined | SystemStyleObject;
        _disabled: undefined | SystemStyleObject;
        _empty: undefined | SystemStyleObject;
        _even: undefined | SystemStyleObject;
        _expanded: undefined | SystemStyleObject;
        _first: undefined | SystemStyleObject;
        _firstLetter: undefined | SystemStyleObject;
        _focus: undefined | SystemStyleObject;
        _focusVisible: undefined | SystemStyleObject;
        _focusWithin: undefined | SystemStyleObject;
        _fullScreen: undefined | SystemStyleObject;
        _grabbed: undefined | SystemStyleObject;
        _groupActive: undefined | SystemStyleObject;
        _groupChecked: undefined | SystemStyleObject;
        _groupClosed: undefined | SystemStyleObject;
        _groupDisabled: undefined | SystemStyleObject;
        _groupFocus: undefined | SystemStyleObject;
        _groupFocusVisible: undefined | SystemStyleObject;
        _groupFocusWithin: undefined | SystemStyleObject;
        _groupHover: undefined | SystemStyleObject;
        _groupInvalid: undefined | SystemStyleObject;
        _groupOpen: undefined | SystemStyleObject;
        _hidden: undefined | SystemStyleObject;
        _highlighted: undefined | SystemStyleObject;
        _horizontal: undefined | SystemStyleObject;
        _hover: undefined | SystemStyleObject;
        _incomplete: undefined | SystemStyleObject;
        _indeterminate: undefined | SystemStyleObject;
        _invalid: undefined | SystemStyleObject;
        _last: undefined | SystemStyleObject;
        _light: undefined | SystemStyleObject;
        _loading: undefined | SystemStyleObject;
        _ltr: undefined | SystemStyleObject;
        _mediaDark: undefined | SystemStyleObject;
        _mediaReduceMotion: undefined | SystemStyleObject;
        _notFirst: undefined | SystemStyleObject;
        _notLast: undefined | SystemStyleObject;
        _odd: undefined | SystemStyleObject;
        _open: undefined | SystemStyleObject;
        _peerActive: undefined | SystemStyleObject;
        _peerChecked: undefined | SystemStyleObject;
        _peerDisabled: undefined | SystemStyleObject;
        _peerFocus: undefined | SystemStyleObject;
        _peerFocusVisible: undefined | SystemStyleObject;
        _peerFocusWithin: undefined | SystemStyleObject;
        _peerHover: undefined | SystemStyleObject;
        _peerInvalid: undefined | SystemStyleObject;
        _peerPlaceholderShown: undefined | SystemStyleObject;
        _placeholder: undefined | SystemStyleObject;
        _placeholderShown: undefined | SystemStyleObject;
        _pressed: undefined | SystemStyleObject;
        _readOnly: undefined | SystemStyleObject;
        _rtl: undefined | SystemStyleObject;
        _selected: undefined | SystemStyleObject;
        _selection: undefined | SystemStyleObject;
        _valid: undefined | SystemStyleObject;
        _vertical: undefined | SystemStyleObject;
        _visited: undefined | SystemStyleObject;
        children?: ReactNode;
    }

    Hierarchy

    • HeadingProps
      • SectionHeadingProps

    Properties

    interface SectionHeadingProps {
        _active: undefined | SystemStyleObject;
        _activeLink: undefined | SystemStyleObject;
        _activeStep: undefined | SystemStyleObject;
        _after: undefined | SystemStyleObject;
        _autofill: undefined | SystemStyleObject;
        _before: undefined | SystemStyleObject;
        _checked: undefined | SystemStyleObject;
        _closed: undefined | SystemStyleObject;
        _complete: undefined | SystemStyleObject;
        _current: undefined | SystemStyleObject;
        _dark: undefined | SystemStyleObject;
        _disabled: undefined | SystemStyleObject;
        _empty: undefined | SystemStyleObject;
        _even: undefined | SystemStyleObject;
        _expanded: undefined | SystemStyleObject;
        _first: undefined | SystemStyleObject;
        _firstLetter: undefined | SystemStyleObject;
        _focus: undefined | SystemStyleObject;
        _focusVisible: undefined | SystemStyleObject;
        _focusWithin: undefined | SystemStyleObject;
        _fullScreen: undefined | SystemStyleObject;
        _grabbed: undefined | SystemStyleObject;
        _groupActive: undefined | SystemStyleObject;
        _groupChecked: undefined | SystemStyleObject;
        _groupClosed: undefined | SystemStyleObject;
        _groupDisabled: undefined | SystemStyleObject;
        _groupFocus: undefined | SystemStyleObject;
        _groupFocusVisible: undefined | SystemStyleObject;
        _groupFocusWithin: undefined | SystemStyleObject;
        _groupHover: undefined | SystemStyleObject;
        _groupInvalid: undefined | SystemStyleObject;
        _groupOpen: undefined | SystemStyleObject;
        _hidden: undefined | SystemStyleObject;
        _highlighted: undefined | SystemStyleObject;
        _horizontal: undefined | SystemStyleObject;
        _hover: undefined | SystemStyleObject;
        _incomplete: undefined | SystemStyleObject;
        _indeterminate: undefined | SystemStyleObject;
        _invalid: undefined | SystemStyleObject;
        _last: undefined | SystemStyleObject;
        _light: undefined | SystemStyleObject;
        _loading: undefined | SystemStyleObject;
        _ltr: undefined | SystemStyleObject;
        _mediaDark: undefined | SystemStyleObject;
        _mediaReduceMotion: undefined | SystemStyleObject;
        _notFirst: undefined | SystemStyleObject;
        _notLast: undefined | SystemStyleObject;
        _odd: undefined | SystemStyleObject;
        _open: undefined | SystemStyleObject;
        _peerActive: undefined | SystemStyleObject;
        _peerChecked: undefined | SystemStyleObject;
        _peerDisabled: undefined | SystemStyleObject;
        _peerFocus: undefined | SystemStyleObject;
        _peerFocusVisible: undefined | SystemStyleObject;
        _peerFocusWithin: undefined | SystemStyleObject;
        _peerHover: undefined | SystemStyleObject;
        _peerInvalid: undefined | SystemStyleObject;
        _peerPlaceholderShown: undefined | SystemStyleObject;
        _placeholder: undefined | SystemStyleObject;
        _placeholderShown: undefined | SystemStyleObject;
        _pressed: undefined | SystemStyleObject;
        _readOnly: undefined | SystemStyleObject;
        _rtl: undefined | SystemStyleObject;
        _selected: undefined | SystemStyleObject;
        _selection: undefined | SystemStyleObject;
        _valid: undefined | SystemStyleObject;
        _vertical: undefined | SystemStyleObject;
        _visited: undefined | SystemStyleObject;
        children?: ReactNode;
    }

    Hierarchy

    • HeadingProps
      • SectionHeadingProps

    Properties

    _active: undefined | SystemStyleObject
    _activeLink: undefined | SystemStyleObject
    _activeStep: undefined | SystemStyleObject
    _after: undefined | SystemStyleObject
    _autofill: undefined | SystemStyleObject
    _before: undefined | SystemStyleObject
    _checked: undefined | SystemStyleObject
    _closed: undefined | SystemStyleObject
    _complete: undefined | SystemStyleObject
    _current: undefined | SystemStyleObject
    _dark: undefined | SystemStyleObject
    _disabled: undefined | SystemStyleObject
    _empty: undefined | SystemStyleObject
    _even: undefined | SystemStyleObject
    _expanded: undefined | SystemStyleObject
    _first: undefined | SystemStyleObject
    _firstLetter: undefined | SystemStyleObject
    _focus: undefined | SystemStyleObject
    _focusVisible: undefined | SystemStyleObject
    _focusWithin: undefined | SystemStyleObject
    _fullScreen: undefined | SystemStyleObject
    _grabbed: undefined | SystemStyleObject
    _groupActive: undefined | SystemStyleObject
    _groupChecked: undefined | SystemStyleObject
    _groupClosed: undefined | SystemStyleObject
    _groupDisabled: undefined | SystemStyleObject
    _groupFocus: undefined | SystemStyleObject
    _groupFocusVisible: undefined | SystemStyleObject
    _groupFocusWithin: undefined | SystemStyleObject
    _groupHover: undefined | SystemStyleObject
    _groupInvalid: undefined | SystemStyleObject
    _groupOpen: undefined | SystemStyleObject
    _hidden: undefined | SystemStyleObject
    _highlighted: undefined | SystemStyleObject
    _horizontal: undefined | SystemStyleObject
    _hover: undefined | SystemStyleObject
    _incomplete: undefined | SystemStyleObject
    _indeterminate: undefined | SystemStyleObject
    _invalid: undefined | SystemStyleObject
    _last: undefined | SystemStyleObject
    _light: undefined | SystemStyleObject
    _loading: undefined | SystemStyleObject
    _ltr: undefined | SystemStyleObject
    _mediaDark: undefined | SystemStyleObject
    _mediaReduceMotion: undefined | SystemStyleObject
    _notFirst: undefined | SystemStyleObject
    _notLast: undefined | SystemStyleObject
    _odd: undefined | SystemStyleObject
    _open: undefined | SystemStyleObject
    _peerActive: undefined | SystemStyleObject
    _peerChecked: undefined | SystemStyleObject
    _peerDisabled: undefined | SystemStyleObject
    _peerFocus: undefined | SystemStyleObject
    _peerFocusVisible: undefined | SystemStyleObject
    _peerFocusWithin: undefined | SystemStyleObject
    _peerHover: undefined | SystemStyleObject
    _peerInvalid: undefined | SystemStyleObject
    _peerPlaceholderShown: undefined | SystemStyleObject
    _placeholder: undefined | SystemStyleObject
    _placeholderShown: undefined | SystemStyleObject
    _pressed: undefined | SystemStyleObject
    _readOnly: undefined | SystemStyleObject
    _rtl: undefined | SystemStyleObject
    _selected: undefined | SystemStyleObject
    _selection: undefined | SystemStyleObject
    _valid: undefined | SystemStyleObject
    _vertical: undefined | SystemStyleObject
    _visited: undefined | SystemStyleObject
    children?: ReactNode
    +

    Properties

    _active: undefined | SystemStyleObject
    _activeLink: undefined | SystemStyleObject
    _activeStep: undefined | SystemStyleObject
    _after: undefined | SystemStyleObject
    _autofill: undefined | SystemStyleObject
    _before: undefined | SystemStyleObject
    _checked: undefined | SystemStyleObject
    _closed: undefined | SystemStyleObject
    _complete: undefined | SystemStyleObject
    _current: undefined | SystemStyleObject
    _dark: undefined | SystemStyleObject
    _disabled: undefined | SystemStyleObject
    _empty: undefined | SystemStyleObject
    _even: undefined | SystemStyleObject
    _expanded: undefined | SystemStyleObject
    _first: undefined | SystemStyleObject
    _firstLetter: undefined | SystemStyleObject
    _focus: undefined | SystemStyleObject
    _focusVisible: undefined | SystemStyleObject
    _focusWithin: undefined | SystemStyleObject
    _fullScreen: undefined | SystemStyleObject
    _grabbed: undefined | SystemStyleObject
    _groupActive: undefined | SystemStyleObject
    _groupChecked: undefined | SystemStyleObject
    _groupClosed: undefined | SystemStyleObject
    _groupDisabled: undefined | SystemStyleObject
    _groupFocus: undefined | SystemStyleObject
    _groupFocusVisible: undefined | SystemStyleObject
    _groupFocusWithin: undefined | SystemStyleObject
    _groupHover: undefined | SystemStyleObject
    _groupInvalid: undefined | SystemStyleObject
    _groupOpen: undefined | SystemStyleObject
    _hidden: undefined | SystemStyleObject
    _highlighted: undefined | SystemStyleObject
    _horizontal: undefined | SystemStyleObject
    _hover: undefined | SystemStyleObject
    _incomplete: undefined | SystemStyleObject
    _indeterminate: undefined | SystemStyleObject
    _invalid: undefined | SystemStyleObject
    _last: undefined | SystemStyleObject
    _light: undefined | SystemStyleObject
    _loading: undefined | SystemStyleObject
    _ltr: undefined | SystemStyleObject
    _mediaDark: undefined | SystemStyleObject
    _mediaReduceMotion: undefined | SystemStyleObject
    _notFirst: undefined | SystemStyleObject
    _notLast: undefined | SystemStyleObject
    _odd: undefined | SystemStyleObject
    _open: undefined | SystemStyleObject
    _peerActive: undefined | SystemStyleObject
    _peerChecked: undefined | SystemStyleObject
    _peerDisabled: undefined | SystemStyleObject
    _peerFocus: undefined | SystemStyleObject
    _peerFocusVisible: undefined | SystemStyleObject
    _peerFocusWithin: undefined | SystemStyleObject
    _peerHover: undefined | SystemStyleObject
    _peerInvalid: undefined | SystemStyleObject
    _peerPlaceholderShown: undefined | SystemStyleObject
    _placeholder: undefined | SystemStyleObject
    _placeholderShown: undefined | SystemStyleObject
    _pressed: undefined | SystemStyleObject
    _readOnly: undefined | SystemStyleObject
    _rtl: undefined | SystemStyleObject
    _selected: undefined | SystemStyleObject
    _selection: undefined | SystemStyleObject
    _valid: undefined | SystemStyleObject
    _vertical: undefined | SystemStyleObject
    _visited: undefined | SystemStyleObject
    children?: ReactNode
    diff --git a/core-packages/docs/interfaces/_open_pioneer_react_utils.TitledSectionProps.html b/core-packages/docs/interfaces/_open_pioneer_react_utils.TitledSectionProps.html index 5ffd3973f..9289d4a4e 100644 --- a/core-packages/docs/interfaces/_open_pioneer_react_utils.TitledSectionProps.html +++ b/core-packages/docs/interfaces/_open_pioneer_react_utils.TitledSectionProps.html @@ -1,15 +1,15 @@ TitledSectionProps | Trails Packages

    Properties of the TitledSection component.

    -
    interface TitledSectionProps {
        children?: ReactNode;
        sectionHeadingProps?: SectionHeadingProps;
        substituteHeadingLevel?: HeadingLevel;
        title?: ReactNode;
    }

    Properties

    interface TitledSectionProps {
        children?: ReactNode;
        sectionHeadingProps?: SectionHeadingProps;
        substituteHeadingLevel?: HeadingLevel;
        title?: ReactNode;
    }

    Properties

    children?: ReactNode

    Children are rendered without any modifications.

    -
    sectionHeadingProps?: SectionHeadingProps

    Properties for the automatically generated section heading.

    +
    sectionHeadingProps?: SectionHeadingProps

    Properties for the automatically generated section heading.

    NOTE: This is only applied if title is a string.

    -
    substituteHeadingLevel?: HeadingLevel

    Allows to substitute the heading level that is used up from this section. +

    substituteHeadingLevel?: HeadingLevel

    Allows to substitute the heading level that is used up from this section. This should only be used to configure the initial level or if it is actually intended to adjust the DOM structure.

    -
    title?: ReactNode

    The title component.

    +
    title?: ReactNode

    The title component.

    Strings are automatically wrapped in a SectionHeading. More complex nodes should use the SectionHeading internally.

    -
    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.ApiExtension.html b/core-packages/docs/interfaces/_open_pioneer_runtime.ApiExtension.html index 9a97ca041..469d6e524 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.ApiExtension.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.ApiExtension.html @@ -1,4 +1,4 @@ ApiExtension | Trails Packages

    Provides a set of methods to the application's web component API.

    -
    interface ApiExtension {
        getApiMethods(): ApiMethods | Promise<ApiMethods>;
    }

    Methods

    interface ApiExtension {
        getApiMethods(): ApiMethods | Promise<ApiMethods>;
    }

    Methods

    +

    Returns ApiMethods | Promise<ApiMethods>

    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.ApiService.html b/core-packages/docs/interfaces/_open_pioneer_runtime.ApiService.html index 709fe6f76..05c785813 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.ApiService.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.ApiService.html @@ -1,5 +1,5 @@ ApiService | Trails Packages

    A service provided by the system. Used by the runtime to assemble the public facing API.

    -
    interface ApiService {
        getApi(): Promise<ApiMethods>;
    }

    Hierarchy (view full)

    Methods

    interface ApiService {
        getApi(): Promise<ApiMethods>;
    }

    Hierarchy (view full)

    Methods

    Methods

    • Called by the runtime to gather methods that should be available from the web component's API.

      -

      Returns Promise<ApiMethods>

    +

    Returns Promise<ApiMethods>

    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationConfig.html b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationConfig.html index cb5ae1abf..d1916dade 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationConfig.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationConfig.html @@ -1,9 +1,9 @@ ApplicationConfig | Trails Packages

    Runtime application configuration.

    -
    interface ApplicationConfig {
        locale?: string;
        properties?: ApplicationProperties;
    }

    Properties

    interface ApplicationConfig {
        locale?: string;
        properties?: ApplicationProperties;
    }

    Properties

    Properties

    locale?: string

    Set this value to a locale string (e.g. "en") to for the application's locale. The default behavior is to choose an appropriate locale for the current user based on the browser's settings.

    The locale must be supported by the application.

    -

    Properties specified here will override default properties of the application's packages.

    -
    +

    Properties specified here will override default properties of the application's packages.

    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationContext.html b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationContext.html index 9983f7514..93e4472cb 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationContext.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationContext.html @@ -1,25 +1,25 @@ ApplicationContext | Trails Packages

    A service provided by the system, useful for accessing values that are global to the application.

    -
    interface ApplicationContext {
        getApplicationContainer(): HTMLElement;
        getHostElement(): HTMLElement;
        getLocale(): string;
        getShadowRoot(): ShadowRoot;
        getSupportedLocales(): readonly string[];
        setLocale(locale: undefined | string): void;
    }

    Hierarchy (view full)

    Methods

    interface ApplicationContext {
        getApplicationContainer(): HTMLElement;
        getHostElement(): HTMLElement;
        getLocale(): string;
        getShadowRoot(): ShadowRoot;
        getSupportedLocales(): readonly string[];
        setLocale(locale: undefined | string): void;
    }

    Hierarchy (view full)

    Methods

    • The node containing the rest of the application inside the current web component's shadow dom.

      -

      Returns HTMLElement

    • The web component's host element. +

      Returns HTMLElement

    • The web component's host element. This dom node can be accessed by the host site.

      -

      Returns HTMLElement

    • Returns the current locale of the application.

      +

      Returns HTMLElement

    • Returns the current locale of the application.

      E.g. "de-DE"

      -

      Returns string

    • The current web component's shadow root. +

      Returns string

    • The current web component's shadow root. This shadow root is located inside the host element.

      -

      Returns ShadowRoot

    • Returns the locales supported by the application, i.e. +

      Returns ShadowRoot

    • Returns the locales supported by the application, i.e. the locales that have associated i18n messages.

      For example: ["de", "en"]

      -

      Returns readonly string[]

    • Changes the application's locale. +

      Returns readonly string[]

    • Changes the application's locale. locale must be one of the supported locales, see () or undefined (for automatic locale). Note that locale does not need to be a precise match, e.g. "de-DE" is also valid if "de" is supported.

      NOTE: This method will currently trigger a full restart of the application. Altering the locale on the fly is possible in theory but has not been implemented yet.

      -

      Parameters

      • locale: undefined | string

      Returns void

    +

    Parameters

    • locale: undefined | string

    Returns void

    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationElement.html b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationElement.html index 7405f4a55..86e530b24 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationElement.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationElement.html @@ -1,4 +1,4 @@ ApplicationElement | Trails Packages

    The interface implemented by web components produced via createCustomElement.

    -
    interface ApplicationElement {
        when(): Promise<ApiMethods>;
    }

    Hierarchy

    • HTMLElement
      • ApplicationElement

    Methods

    interface ApplicationElement {
        when(): Promise<ApiMethods>;
    }

    Hierarchy

    • HTMLElement
      • ApplicationElement

    Methods

    Methods

    +

    Returns Promise<ApiMethods>

    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationElementConstructor.html b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationElementConstructor.html index abd69159b..201945d4a 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationElementConstructor.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationElementConstructor.html @@ -1,3 +1,3 @@ ApplicationElementConstructor | Trails Packages

    The class returned by a call to createCustomElement.

    -
    interface ApplicationElementConstructor {
        new ApplicationElementConstructornew (): ApplicationElement;
    }

    Constructors

    Constructors

    +
    interface ApplicationElementConstructor {
        new ApplicationElementConstructornew (): ApplicationElement;
    }

    Constructors

    Constructors

    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationLifecycleListener.html b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationLifecycleListener.html index 339417bdf..fc2efef62 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationLifecycleListener.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationLifecycleListener.html @@ -2,8 +2,8 @@ application-wide lifecycle events.

    Experimental. This interface is not affected by semver guarantees. It may change (or be removed) in a future minor release.

    -
    interface ApplicationLifecycleListener {
        afterApplicationStart?(): void;
        beforeApplicationStop?(): void;
    }

    Hierarchy (view full)

    • DeclaredService<"runtime.ApplicationLifecycleListener">
      • ApplicationLifecycleListener

    Methods

    interface ApplicationLifecycleListener {
        afterApplicationStart?(): void;
        beforeApplicationStop?(): void;
    }

    Hierarchy (view full)

    • DeclaredService<"runtime.ApplicationLifecycleListener">
      • ApplicationLifecycleListener

    Methods

    • Called after all services required by the application have been started.

      -

      Returns void

    • Called during the application shutdown just before services will be destroyed.

      -

      Returns void

    +

    Returns void

    • Called during the application shutdown just before services will be destroyed.

      +

      Returns void

    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationProperties.html b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationProperties.html index 10e099ee5..2ca4970c0 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationProperties.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.ApplicationProperties.html @@ -3,4 +3,4 @@

    Indexable

    • [packageName: string]: Record<string, unknown>

      Key: the name of the package. Value: A record of configuration properties (key/value pairs).

      Properties will override default property values in the package.

      -
    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.ConfigContext.html b/core-packages/docs/interfaces/_open_pioneer_runtime.ConfigContext.html index 6b3effd1d..2175ba624 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.ConfigContext.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.ConfigContext.html @@ -1,6 +1,6 @@ ConfigContext | Trails Packages

    A context object that is passed to the resolveProperties function.

    -
    interface ConfigContext {
        hostElement: HTMLElement;
        getAttribute(name: string): undefined | string;
    }

    Properties

    interface ConfigContext {
        hostElement: HTMLElement;
        getAttribute(name: string): undefined | string;
    }

    Properties

    Methods

    Properties

    hostElement: HTMLElement

    The application's host element.

    -

    Methods

    • Returns an attribute from the application's root node.

      -

      Parameters

      • name: string

      Returns undefined | string

    +

    Methods

    • Returns an attribute from the application's root node.

      +

      Parameters

      • name: string

      Returns undefined | string

    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.CustomElementOptions.html b/core-packages/docs/interfaces/_open_pioneer_runtime.CustomElementOptions.html index da003bb44..eec9f5b6c 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.CustomElementOptions.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.CustomElementOptions.html @@ -1,18 +1,18 @@ CustomElementOptions | Trails Packages

    Options for the createCustomElement function.

    -
    interface CustomElementOptions {
        appMetadata?: ApplicationMetadata;
        component?: ComponentType<Record<string, string>>;
        config?: ApplicationConfig;
        theme?: Record<string, unknown>;
        resolveConfig?(ctx: ConfigContext): Promise<undefined | ApplicationConfig>;
    }

    Properties

    interface CustomElementOptions {
        appMetadata?: ApplicationMetadata;
        component?: ComponentType<Record<string, string>>;
        config?: ApplicationConfig;
        theme?: Record<string, unknown>;
        resolveConfig?(ctx: ConfigContext): Promise<undefined | ApplicationConfig>;
    }

    Properties

    appMetadata?: ApplicationMetadata

    Application metadata (packages, services etc.). This is usually autogenerated by importing the virtual "open-pioneer:app" module.

    -
    component?: ComponentType<Record<string, string>>

    Rendered UI component.

    -

    Application defined configuration.

    +
    component?: ComponentType<Record<string, string>>

    Rendered UI component.

    +

    Application defined configuration.

    This option can be used to override default properties of the application's packages.

    All instances of the web component will share this static configuration.

    -
    theme?: Record<string, unknown>

    Chakra theming object.

    -

    Methods

    theme?: Record<string, unknown>

    Chakra theming object.

    +

    Methods

    • Function to provide additional application defined configuration parameters.

      Compared to config, this function receives a context object that allows the developer to provide dynamic properties on a per-application instance basis.

      Parameters returned by this function take precedence over the ones defined by config.

      -

      Parameters

      Returns Promise<undefined | ApplicationConfig>

    +

    Parameters

    Returns Promise<undefined | ApplicationConfig>

    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.DeclaredService.html b/core-packages/docs/interfaces/_open_pioneer_runtime.DeclaredService.html index e1eaf916f..1660600bb 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.DeclaredService.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.DeclaredService.html @@ -12,4 +12,4 @@ You can simply remove the offending line; it is not required (and not possible) to implement that attribute - it only exists for the compiler.

    -

    Type Parameters

    • InterfaceName extends string

    Hierarchy (view full)

    +

    Type Parameters

    • InterfaceName extends string

    Hierarchy (view full)

    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.ReferenceMeta.html b/core-packages/docs/interfaces/_open_pioneer_runtime.ReferenceMeta.html index b1f9d03f1..8bb647ed3 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.ReferenceMeta.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.ReferenceMeta.html @@ -1,4 +1,4 @@ ReferenceMeta | Trails Packages

    Represents metadata for an injected reference.

    -
    interface ReferenceMeta {
        serviceId: string;
    }

    Properties

    interface ReferenceMeta {
        serviceId: string;
    }

    Properties

    Properties

    serviceId: string

    The unique service id of the injected service.

    -
    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_runtime.ServiceLifecycleHooks.html b/core-packages/docs/interfaces/_open_pioneer_runtime.ServiceLifecycleHooks.html index 7519d1f13..bb3edaf5e 100644 --- a/core-packages/docs/interfaces/_open_pioneer_runtime.ServiceLifecycleHooks.html +++ b/core-packages/docs/interfaces/_open_pioneer_runtime.ServiceLifecycleHooks.html @@ -1,6 +1,6 @@ ServiceLifecycleHooks | Trails Packages

    Lifecycle hooks supported by the service interface.

    -
    interface ServiceLifecycleHooks {
        destroy?(): void;
        toString(): string;
    }

    Methods

    interface ServiceLifecycleHooks {
        destroy?(): void;
        toString(): string;
    }

    Methods

    • Destroys the component. Should clean up all resources used by the component.

      -

      Returns void

    +

    Returns void

    diff --git a/core-packages/docs/interfaces/_open_pioneer_test_utils.react.PackageContextProviderProps.html b/core-packages/docs/interfaces/_open_pioneer_test_utils.react.PackageContextProviderProps.html index 8cdfe81b7..9319c31b6 100644 --- a/core-packages/docs/interfaces/_open_pioneer_test_utils.react.PackageContextProviderProps.html +++ b/core-packages/docs/interfaces/_open_pioneer_test_utils.react.PackageContextProviderProps.html @@ -1,20 +1,20 @@ -PackageContextProviderProps | Trails Packages
    interface PackageContextProviderProps {
        children?: ReactNode;
        locale?: string;
        messages?: {
            [packageName: string]: Record<string, string>;
        };
        properties?: {
            [packageName: string]: Record<string, unknown>;
        };
        qualifiedServices?: {
            [interfaceName: string]: {
                [qualifier: string]: AnyService;
            };
        };
        services?: {
            [interfaceName: string]: AnyService;
        };
    }

    Properties

    children? +PackageContextProviderProps | Trails Packages
    interface PackageContextProviderProps {
        children?: ReactNode;
        locale?: string;
        messages?: {
            [packageName: string]: Record<string, string>;
        };
        properties?: {
            [packageName: string]: Record<string, unknown>;
        };
        qualifiedServices?: {
            [interfaceName: string]: {
                [qualifier: string]: AnyService;
            };
        };
        services?: {
            [interfaceName: string]: AnyService;
        };
    }

    Properties

    children?: ReactNode

    Children to render

    -
    locale?: string

    The locale for i18n messages and formatting.

    +
    locale?: string

    The locale for i18n messages and formatting.

    "en"
     
    -
    messages?: {
        [packageName: string]: Record<string, string>;
    }

    I18n messages for packages

    +
    messages?: {
        [packageName: string]: Record<string, string>;
    }

    I18n messages for packages

    Type declaration

    • [packageName: string]: Record<string, string>

      I18n messages as (messageId, message) entries.

      {}
       
      -
    properties?: {
        [packageName: string]: Record<string, unknown>;
    }

    Package properties (keyed by package name).

    -
    qualifiedServices?: {
        [interfaceName: string]: {
            [qualifier: string]: AnyService;
        };
    }

    Interface implementations, keyed by interface name and then by qualifier.

    -
    services?: {
        [interfaceName: string]: AnyService;
    }

    Interface implementations, keyed by interface name.

    -
    +
    properties?: {
        [packageName: string]: Record<string, unknown>;
    }

    Package properties (keyed by package name).

    +
    qualifiedServices?: {
        [interfaceName: string]: {
            [qualifier: string]: AnyService;
        };
    }

    Interface implementations, keyed by interface name and then by qualifier.

    +
    services?: {
        [interfaceName: string]: AnyService;
    }

    Interface implementations, keyed by interface name.

    +
    diff --git a/core-packages/docs/interfaces/_open_pioneer_test_utils.services.CreateServiceOptions.html b/core-packages/docs/interfaces/_open_pioneer_test_utils.services.CreateServiceOptions.html index 17014f961..2ba993ea2 100644 --- a/core-packages/docs/interfaces/_open_pioneer_test_utils.services.CreateServiceOptions.html +++ b/core-packages/docs/interfaces/_open_pioneer_test_utils.services.CreateServiceOptions.html @@ -1,5 +1,5 @@ CreateServiceOptions | Trails Packages

    Options for the createService function.

    -
    interface CreateServiceOptions<References> {
        defaultMessageLocale?: string;
        locale?: string;
        messages?: Record<string, string>;
        properties?: Record<string, unknown>;
        references?: PartialServiceReferences<References>;
    }

    Type Parameters

    • References

    Properties

    interface CreateServiceOptions<References> {
        defaultMessageLocale?: string;
        locale?: string;
        messages?: Record<string, string>;
        properties?: Record<string, unknown>;
        references?: PartialServiceReferences<References>;
    }

    Type Parameters

    • References

    Properties

    "en"
     
    -
    locale?: string

    The locale for i18n messages and formatting.

    +
    locale?: string

    The locale for i18n messages and formatting.

    "en"
     
    -
    messages?: Record<string, string>

    I18n messages as (messageId, message) entries.

    +
    messages?: Record<string, string>

    I18n messages as (messageId, message) entries.

    {}
     
    -
    properties?: Record<string, unknown>

    Properties provided to the service constructor.

    +
    properties?: Record<string, unknown>

    Properties provided to the service constructor.

    {}
     
    -
    references?: PartialServiceReferences<References>

    References provided to the service constructor.

    +
    references?: PartialServiceReferences<References>

    References provided to the service constructor.

    {}
     
    -
    +
    diff --git a/core-packages/docs/modules/_open_pioneer_test_utils.react.html b/core-packages/docs/modules/_open_pioneer_test_utils.react.html index e6def6d28..78d4ae5a2 100644 --- a/core-packages/docs/modules/_open_pioneer_test_utils.react.html +++ b/core-packages/docs/modules/_open_pioneer_test_utils.react.html @@ -1,4 +1,4 @@ -react | Trails Packages

    Index

    Interfaces

    PackageContextProviderProps +react | Trails Packages
    diff --git a/core-packages/docs/modules/_open_pioneer_test_utils.services.html b/core-packages/docs/modules/_open_pioneer_test_utils.services.html index de5fe7aad..30ab5b9d4 100644 --- a/core-packages/docs/modules/_open_pioneer_test_utils.services.html +++ b/core-packages/docs/modules/_open_pioneer_test_utils.services.html @@ -1,3 +1,3 @@ -services | Trails Packages

    Index

    Interfaces

    CreateServiceOptions +services | Trails Packages
    diff --git a/core-packages/docs/modules/_open_pioneer_test_utils.web_components.html b/core-packages/docs/modules/_open_pioneer_test_utils.web_components.html index f05d89d74..e7b2789f5 100644 --- a/core-packages/docs/modules/_open_pioneer_test_utils.web_components.html +++ b/core-packages/docs/modules/_open_pioneer_test_utils.web_components.html @@ -1,4 +1,4 @@ -web-components | Trails Packages

    Index

    Functions

    defineComponent +web-components | Trails Packages
    diff --git a/core-packages/docs/types/_open_pioneer_authentication.AuthState.html b/core-packages/docs/types/_open_pioneer_authentication.AuthState.html index 4d721ef69..01d950633 100644 --- a/core-packages/docs/types/_open_pioneer_authentication.AuthState.html +++ b/core-packages/docs/types/_open_pioneer_authentication.AuthState.html @@ -1,4 +1,4 @@ AuthState | Trails Packages
    AuthState:
        | AuthStatePending
        | AuthStateNotAuthenticated
        | AuthStateAuthenticated
        | AuthStateAuthenticationError

    Models the current authentication state.

    NOTE: Future versions of this package may define additional states. Your code should contain sensible fallback or error logic.

    -
    +
    diff --git a/core-packages/docs/types/_open_pioneer_authentication.LoginBehavior.html b/core-packages/docs/types/_open_pioneer_authentication.LoginBehavior.html index 00ea7428d..671dad969 100644 --- a/core-packages/docs/types/_open_pioneer_authentication.LoginBehavior.html +++ b/core-packages/docs/types/_open_pioneer_authentication.LoginBehavior.html @@ -1,3 +1,3 @@ LoginBehavior | Trails Packages
    LoginBehavior: LoginFallback | LoginEffect

    Defines the behavior of the authentication service when attempting to authenticate a user.

    -
    +
    diff --git a/core-packages/docs/types/_open_pioneer_chakra_integration.CustomChakraProviderProps.html b/core-packages/docs/types/_open_pioneer_chakra_integration.CustomChakraProviderProps.html index 22d4abc92..0400a91c0 100644 --- a/core-packages/docs/types/_open_pioneer_chakra_integration.CustomChakraProviderProps.html +++ b/core-packages/docs/types/_open_pioneer_chakra_integration.CustomChakraProviderProps.html @@ -3,4 +3,4 @@ Note that updates of this property are not supported.

    This is typically the shadow root.

  • Optionaltheme?: Record<string, unknown>

    Chakra theming object.

    -
  • +
    diff --git a/core-packages/docs/types/_open_pioneer_core.EventNames.html b/core-packages/docs/types/_open_pioneer_core.EventNames.html index 2eac6c24a..c0d47927d 100644 --- a/core-packages/docs/types/_open_pioneer_core.EventNames.html +++ b/core-packages/docs/types/_open_pioneer_core.EventNames.html @@ -1 +1 @@ -EventNames | Trails Packages

    Type Alias EventNames<Events>

    EventNames<Events>: keyof Events & string

    Type Parameters

    • Events extends {}
    +EventNames | Trails Packages

    Type Alias EventNames<Events>

    EventNames<Events>: keyof Events & string

    Type Parameters

    • Events extends {}
    diff --git a/core-packages/docs/types/_open_pioneer_core.EventSource.html b/core-packages/docs/types/_open_pioneer_core.EventSource.html index fc5712627..e7034134c 100644 --- a/core-packages/docs/types/_open_pioneer_core.EventSource.html +++ b/core-packages/docs/types/_open_pioneer_core.EventSource.html @@ -1,2 +1,2 @@ EventSource | Trails Packages

    Type Alias EventSource<Events>

    EventSource<Events>: Pick<EventEmitter<Events>, "on" | "once">

    Read-only version of the EventEmitter interface that only allows listening for events.

    -

    Type Parameters

    • Events extends {}
    +

    Type Parameters

    • Events extends {}
    diff --git a/core-packages/docs/types/_open_pioneer_core.LogLevel.html b/core-packages/docs/types/_open_pioneer_core.LogLevel.html index 7fcecf4d8..369754b90 100644 --- a/core-packages/docs/types/_open_pioneer_core.LogLevel.html +++ b/core-packages/docs/types/_open_pioneer_core.LogLevel.html @@ -1,3 +1,3 @@ LogLevel | Trails Packages
    LogLevel:
        | "DEBUG"
        | "INFO"
        | "WARN"
        | "ERROR"

    Allowed log levels. Order: DEBUG < INFO < WARN < ERROR

    -
    +
    diff --git a/core-packages/docs/types/_open_pioneer_http.ContextData.html b/core-packages/docs/types/_open_pioneer_http.ContextData.html index ebab89b4e..32f24ee0c 100644 --- a/core-packages/docs/types/_open_pioneer_http.ContextData.html +++ b/core-packages/docs/types/_open_pioneer_http.ContextData.html @@ -1 +1 @@ -ContextData | Trails Packages
    ContextData: Record<string | symbol, unknown>
    +ContextData | Trails Packages
    ContextData: Record<string | symbol, unknown>
    diff --git a/core-packages/docs/types/_open_pioneer_http.ResolvedRequestOptions.html b/core-packages/docs/types/_open_pioneer_http.ResolvedRequestOptions.html index e96464cea..84fb2075d 100644 --- a/core-packages/docs/types/_open_pioneer_http.ResolvedRequestOptions.html +++ b/core-packages/docs/types/_open_pioneer_http.ResolvedRequestOptions.html @@ -1 +1 @@ -ResolvedRequestOptions | Trails Packages
    ResolvedRequestOptions: Omit<HttpServiceRequestInit,
        | "method"
        | "headers"
        | "signal"
        | "context"> & {
        headers: Headers;
        method: string;
    }
    +ResolvedRequestOptions | Trails Packages
    ResolvedRequestOptions: Omit<HttpServiceRequestInit,
        | "method"
        | "headers"
        | "signal"
        | "context"> & {
        headers: Headers;
        method: string;
    }
    diff --git a/core-packages/docs/types/_open_pioneer_integration.ApiMethod.html b/core-packages/docs/types/_open_pioneer_integration.ApiMethod.html index e75ae48fd..5072ae860 100644 --- a/core-packages/docs/types/_open_pioneer_integration.ApiMethod.html +++ b/core-packages/docs/types/_open_pioneer_integration.ApiMethod.html @@ -1 +1 @@ -ApiMethod | Trails Packages
    ApiMethod: ((...args: any[]) => any)
    +ApiMethod | Trails Packages
    ApiMethod: ((...args: any[]) => any)
    diff --git a/core-packages/docs/types/_open_pioneer_integration.ApiMethods.html b/core-packages/docs/types/_open_pioneer_integration.ApiMethods.html index 9686d6e74..543849e8e 100644 --- a/core-packages/docs/types/_open_pioneer_integration.ApiMethods.html +++ b/core-packages/docs/types/_open_pioneer_integration.ApiMethods.html @@ -1,2 +1,2 @@ ApiMethods | Trails Packages
    ApiMethods: Record<string, ApiMethod>

    A record of exposed functions.

    -
    +
    diff --git a/core-packages/docs/types/_open_pioneer_local_storage.LocalStorageNamespace.html b/core-packages/docs/types/_open_pioneer_local_storage.LocalStorageNamespace.html index 461c2edb4..b5e19ecdc 100644 --- a/core-packages/docs/types/_open_pioneer_local_storage.LocalStorageNamespace.html +++ b/core-packages/docs/types/_open_pioneer_local_storage.LocalStorageNamespace.html @@ -1,3 +1,3 @@ LocalStorageNamespace | Trails Packages
    LocalStorageNamespace: LocalStorageAPI

    A namespace provides access to the properties of an object in local storage. This can be used to manage groups of related values under a common name.

    -
    +
    diff --git a/core-packages/docs/types/_open_pioneer_notifier.NotificationLevel.html b/core-packages/docs/types/_open_pioneer_notifier.NotificationLevel.html index 8c1c557e5..a4016e071 100644 --- a/core-packages/docs/types/_open_pioneer_notifier.NotificationLevel.html +++ b/core-packages/docs/types/_open_pioneer_notifier.NotificationLevel.html @@ -1,2 +1,2 @@ NotificationLevel | Trails Packages
    NotificationLevel:
        | "success"
        | "info"
        | "warning"
        | "error"

    Represents the severity or kind of a notification.

    -
    +
    diff --git a/core-packages/docs/types/_open_pioneer_react_utils.HeadingLevel.html b/core-packages/docs/types/_open_pioneer_react_utils.HeadingLevel.html index bc210a7b2..bc0a1f273 100644 --- a/core-packages/docs/types/_open_pioneer_react_utils.HeadingLevel.html +++ b/core-packages/docs/types/_open_pioneer_react_utils.HeadingLevel.html @@ -1,2 +1,2 @@ HeadingLevel | Trails Packages
    HeadingLevel:
        | 1
        | 2
        | 3
        | 4
        | 5
        | 6

    The level of a html heading.

    -
    +
    diff --git a/core-packages/docs/types/_open_pioneer_runtime.ApiMethod.html b/core-packages/docs/types/_open_pioneer_runtime.ApiMethod.html index 56088a060..633b79d9a 100644 --- a/core-packages/docs/types/_open_pioneer_runtime.ApiMethod.html +++ b/core-packages/docs/types/_open_pioneer_runtime.ApiMethod.html @@ -1 +1 @@ -ApiMethod | Trails Packages
    ApiMethod: ((...args: any[]) => any)
    +ApiMethod | Trails Packages
    ApiMethod: ((...args: any[]) => any)
    diff --git a/core-packages/docs/types/_open_pioneer_runtime.ApiMethods.html b/core-packages/docs/types/_open_pioneer_runtime.ApiMethods.html index ee5119f2b..99a371ca3 100644 --- a/core-packages/docs/types/_open_pioneer_runtime.ApiMethods.html +++ b/core-packages/docs/types/_open_pioneer_runtime.ApiMethods.html @@ -1,2 +1,2 @@ ApiMethods | Trails Packages
    ApiMethods: Record<string, ApiMethod>

    A record of exposed functions.

    -
    +
    diff --git a/core-packages/docs/types/_open_pioneer_runtime.AssociatedInterfaceName.html b/core-packages/docs/types/_open_pioneer_runtime.AssociatedInterfaceName.html index b78d2b217..47421e086 100644 --- a/core-packages/docs/types/_open_pioneer_runtime.AssociatedInterfaceName.html +++ b/core-packages/docs/types/_open_pioneer_runtime.AssociatedInterfaceName.html @@ -1,3 +1,3 @@ AssociatedInterfaceName | Trails Packages
    AssociatedInterfaceName<T>: T extends DeclaredService<infer InterfaceName>
        ? InterfaceName
        : T extends {
                [DECLARE_SERVICE_INTERFACE]: string & infer InterfaceName;
            }
            ? InterfaceName
            : never

    Given a type implementing DeclaredService or using DECLARE_SERVICE_INTERFACE, this type will produce the interface name associated with the service type.

    -

    Type Parameters

    • T
    +

    Type Parameters

    • T
    diff --git a/core-packages/docs/types/_open_pioneer_runtime.InterfaceNameForServiceType.html b/core-packages/docs/types/_open_pioneer_runtime.InterfaceNameForServiceType.html index 33470a047..65096e573 100644 --- a/core-packages/docs/types/_open_pioneer_runtime.InterfaceNameForServiceType.html +++ b/core-packages/docs/types/_open_pioneer_runtime.InterfaceNameForServiceType.html @@ -4,4 +4,4 @@
  • If ServiceType implements DeclaredService, it will enforce the associated interface name.
  • Otherwise, a compile time error is generated.
  • -

    Type Parameters

    • ServiceType
    +

    Type Parameters

    • ServiceType
    diff --git a/core-packages/docs/types/_open_pioneer_runtime.PackageIntl.html b/core-packages/docs/types/_open_pioneer_runtime.PackageIntl.html index f18749cdd..3b456b599 100644 --- a/core-packages/docs/types/_open_pioneer_runtime.PackageIntl.html +++ b/core-packages/docs/types/_open_pioneer_runtime.PackageIntl.html @@ -1,3 +1,3 @@ PackageIntl | Trails Packages
    PackageIntl: Pick<IntlShape, "locale" | "timeZone"> & IntlFormatters<string>

    Gives access to the package's i18n messages for the current locale.

    See also https://formatjs.io/docs/intl

    -
    +
    diff --git a/core-packages/docs/types/_open_pioneer_runtime.ReferencesMeta.html b/core-packages/docs/types/_open_pioneer_runtime.ReferencesMeta.html index 0e4d464b5..263bcf675 100644 --- a/core-packages/docs/types/_open_pioneer_runtime.ReferencesMeta.html +++ b/core-packages/docs/types/_open_pioneer_runtime.ReferencesMeta.html @@ -1,3 +1,3 @@ ReferencesMeta | Trails Packages

    Type Alias ReferencesMeta<References>

    ReferencesMeta<References>: {
        [referenceName in keyof References]: References[referenceName] extends any[]
            ? ReferenceMeta[]
            : ReferenceMeta
    }

    Contains metadata about injected references. The key for the reference metadata is the reference's name.

    -

    Type Parameters

    • References extends {}
    +

    Type Parameters

    • References extends {}
    diff --git a/core-packages/docs/types/_open_pioneer_runtime.Service.html b/core-packages/docs/types/_open_pioneer_runtime.Service.html index d22c7c040..2710ce7c5 100644 --- a/core-packages/docs/types/_open_pioneer_runtime.Service.html +++ b/core-packages/docs/types/_open_pioneer_runtime.Service.html @@ -1 +1 @@ -Service | Trails Packages

    Type Alias Service<Interface>

    Type Parameters

    • Interface extends {} = {}
    +Service | Trails Packages

    Type Alias Service<Interface>

    Type Parameters

    • Interface extends {} = {}
    diff --git a/core-packages/docs/types/_open_pioneer_runtime.ServiceConstructor.html b/core-packages/docs/types/_open_pioneer_runtime.ServiceConstructor.html index 1e4194539..67ff9371c 100644 --- a/core-packages/docs/types/_open_pioneer_runtime.ServiceConstructor.html +++ b/core-packages/docs/types/_open_pioneer_runtime.ServiceConstructor.html @@ -1,2 +1,2 @@ ServiceConstructor | Trails Packages

    Type Alias ServiceConstructor<References, Interface>

    ServiceConstructor<References, Interface>: (new (options: ServiceOptions<References>) => Service<Interface>)

    A service constructor returns a service instance when calling new.

    -

    Type Parameters

    • References extends {} = {}
    • Interface extends {} = {}
    +

    Type Parameters

    • References extends {} = {}
    • Interface extends {} = {}
    diff --git a/core-packages/docs/types/_open_pioneer_runtime.ServiceOptions.html b/core-packages/docs/types/_open_pioneer_runtime.ServiceOptions.html index cb52b8074..8377b48d1 100644 --- a/core-packages/docs/types/_open_pioneer_runtime.ServiceOptions.html +++ b/core-packages/docs/types/_open_pioneer_runtime.ServiceOptions.html @@ -10,4 +10,4 @@

    If a single service has been injected, referencesMeta[key] will be of type ReferenceMeta. If multiple services have been injected, an array of ReferenceMeta will be provided instead, where the indices match the order in the injected references array.

    -
    +
    diff --git a/core-packages/docs/types/_open_pioneer_test_utils.react.AnyService.html b/core-packages/docs/types/_open_pioneer_test_utils.react.AnyService.html index 2b375a8f8..217b82788 100644 --- a/core-packages/docs/types/_open_pioneer_test_utils.react.AnyService.html +++ b/core-packages/docs/types/_open_pioneer_test_utils.react.AnyService.html @@ -1 +1 @@ -AnyService | Trails Packages
    +AnyService | Trails Packages
    diff --git a/core-packages/docs/variables/_open_pioneer_base_theme.theme.html b/core-packages/docs/variables/_open_pioneer_base_theme.theme.html index ff4662c69..329a32543 100644 --- a/core-packages/docs/variables/_open_pioneer_base_theme.theme.html +++ b/core-packages/docs/variables/_open_pioneer_base_theme.theme.html @@ -3,4 +3,4 @@
    import { extendTheme } from "@open-pioneer/chakra-integration";
    import { theme as baseTheme } from "@open-pioneer/base-theme";

    export const theme = extendTheme({
    // Your overrides
    }, baseTheme);
    -
    +
    diff --git a/core-packages/docs/variables/_open_pioneer_chakra_integration.AlertDialog.html b/core-packages/docs/variables/_open_pioneer_chakra_integration.AlertDialog.html index da99de0ba..6a9d3a003 100644 --- a/core-packages/docs/variables/_open_pioneer_chakra_integration.AlertDialog.html +++ b/core-packages/docs/variables/_open_pioneer_chakra_integration.AlertDialog.html @@ -1 +1 @@ -AlertDialog | Trails Packages
    AlertDialog: ComponentType<AlertDialogProps> = ...
    +AlertDialog | Trails Packages
    AlertDialog: ComponentType<AlertDialogProps> = ...
    diff --git a/core-packages/docs/variables/_open_pioneer_chakra_integration.Drawer.html b/core-packages/docs/variables/_open_pioneer_chakra_integration.Drawer.html index ac9d7625f..2b1a8fd62 100644 --- a/core-packages/docs/variables/_open_pioneer_chakra_integration.Drawer.html +++ b/core-packages/docs/variables/_open_pioneer_chakra_integration.Drawer.html @@ -1 +1 @@ -Drawer | Trails Packages
    Drawer: ComponentType<DrawerProps> = ...
    +Drawer | Trails Packages
    Drawer: ComponentType<DrawerProps> = ...
    diff --git a/core-packages/docs/variables/_open_pioneer_chakra_integration.Modal.html b/core-packages/docs/variables/_open_pioneer_chakra_integration.Modal.html index f80ab90fd..0700e71b7 100644 --- a/core-packages/docs/variables/_open_pioneer_chakra_integration.Modal.html +++ b/core-packages/docs/variables/_open_pioneer_chakra_integration.Modal.html @@ -1 +1 @@ -Modal | Trails Packages
    Modal: ComponentType<ModalProps> = ...
    +Modal | Trails Packages
    Modal: ComponentType<ModalProps> = ...
    diff --git a/core-packages/docs/variables/_open_pioneer_chakra_integration.Tooltip.html b/core-packages/docs/variables/_open_pioneer_chakra_integration.Tooltip.html index 7ff66ca7b..154f0f998 100644 --- a/core-packages/docs/variables/_open_pioneer_chakra_integration.Tooltip.html +++ b/core-packages/docs/variables/_open_pioneer_chakra_integration.Tooltip.html @@ -1 +1 @@ -Tooltip | Trails Packages
    Tooltip: ComponentType<TooltipProps> = ...
    +Tooltip | Trails Packages
    Tooltip: ComponentType<TooltipProps> = ...
    diff --git a/core-packages/docs/variables/_open_pioneer_runtime.DECLARE_SERVICE_INTERFACE.html b/core-packages/docs/variables/_open_pioneer_runtime.DECLARE_SERVICE_INTERFACE.html index 3e7888e82..f15aaa71b 100644 --- a/core-packages/docs/variables/_open_pioneer_runtime.DECLARE_SERVICE_INTERFACE.html +++ b/core-packages/docs/variables/_open_pioneer_runtime.DECLARE_SERVICE_INTERFACE.html @@ -6,4 +6,4 @@
    import { type DECLARE_SERVICE_INTERFACE} from "@open-pioneer/runtime";

    class MyServiceImpl {
    // Add this line to your class.
    // It declares (at compile time) that the service class must be used via the given interface name.
    // Note that the property is not really present at runtime.
    declare [DECLARE_SERVICE_INTERFACE]: "my-package.MyInterface";

    method(): void {
    throw new Error("Method not implemented.");
    }
    }
    -
    +
    diff --git a/core-packages/samples/auth-sample/index.html b/core-packages/samples/auth-sample/index.html index 7cd6bb57a..3e4435c08 100644 --- a/core-packages/samples/auth-sample/index.html +++ b/core-packages/samples/auth-sample/index.html @@ -16,7 +16,7 @@ max-height: 100%; } - + diff --git a/core-packages/samples/chakra-sample/index.html b/core-packages/samples/chakra-sample/index.html index d77e67690..d147b1f72 100644 --- a/core-packages/samples/chakra-sample/index.html +++ b/core-packages/samples/chakra-sample/index.html @@ -28,7 +28,7 @@ height: 80%; } - + diff --git a/core-packages/samples/error-sample/index.html b/core-packages/samples/error-sample/index.html index 566e54d3e..eb64c7c6e 100644 --- a/core-packages/samples/error-sample/index.html +++ b/core-packages/samples/error-sample/index.html @@ -4,7 +4,7 @@ Error Sample - + diff --git a/core-packages/samples/extension-sample/index.html b/core-packages/samples/extension-sample/index.html index 6e9098b86..0ce41e530 100644 --- a/core-packages/samples/extension-sample/index.html +++ b/core-packages/samples/extension-sample/index.html @@ -4,7 +4,7 @@ Extension Sample - + diff --git a/core-packages/samples/http-sample/index.html b/core-packages/samples/http-sample/index.html index 28390a6a4..d36c029f1 100644 --- a/core-packages/samples/http-sample/index.html +++ b/core-packages/samples/http-sample/index.html @@ -4,7 +4,7 @@ HTTP Sample - + diff --git a/core-packages/samples/i18n-howto/index.html b/core-packages/samples/i18n-howto/index.html index d0cba9532..33db9f50a 100644 --- a/core-packages/samples/i18n-howto/index.html +++ b/core-packages/samples/i18n-howto/index.html @@ -4,7 +4,7 @@ Empty Site - + diff --git a/core-packages/samples/i18n-sample/index.html b/core-packages/samples/i18n-sample/index.html index 634e1b673..4ec8404af 100644 --- a/core-packages/samples/i18n-sample/index.html +++ b/core-packages/samples/i18n-sample/index.html @@ -4,7 +4,7 @@ I18n App Demo - + diff --git a/core-packages/samples/keycloak-sample/index.html b/core-packages/samples/keycloak-sample/index.html index bd7c95266..54ea5e826 100644 --- a/core-packages/samples/keycloak-sample/index.html +++ b/core-packages/samples/keycloak-sample/index.html @@ -17,13 +17,13 @@ height: 500px; } - + - + - + diff --git a/core-packages/samples/notify-sample/index.html b/core-packages/samples/notify-sample/index.html index abbc5b01a..5404fe913 100644 --- a/core-packages/samples/notify-sample/index.html +++ b/core-packages/samples/notify-sample/index.html @@ -11,7 +11,7 @@ margin: 0px; } - + diff --git a/core-packages/samples/properties-sample/index.html b/core-packages/samples/properties-sample/index.html index 59ebd3022..b76ba8b12 100644 --- a/core-packages/samples/properties-sample/index.html +++ b/core-packages/samples/properties-sample/index.html @@ -4,7 +4,7 @@ Properties Demo - + diff --git a/core-packages/samples/styling-sample/index.html b/core-packages/samples/styling-sample/index.html index a3dddace2..6496640ce 100644 --- a/core-packages/samples/styling-sample/index.html +++ b/core-packages/samples/styling-sample/index.html @@ -4,7 +4,7 @@ Styling App Demo - + diff --git a/core-packages/samples/theming-sample/index.html b/core-packages/samples/theming-sample/index.html index 6e3b0ba4e..0650db793 100644 --- a/core-packages/samples/theming-sample/index.html +++ b/core-packages/samples/theming-sample/index.html @@ -5,7 +5,7 @@ [Demo] Theming-App - +