From 5adc268d0e3f23693277040fb0f6dd69f0b7ea6b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:51:50 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20open-pio?= =?UTF-8?q?neer/trails-core-packages@1ce5f114e4be0d6fa2df67b3417b2bb369ccd?= =?UTF-8?q?4db=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core-packages/assets/B67hOg_U-Yp9.js | 1 + core-packages/assets/Bp6FgAg5vEp7.js | 13 ------------ .../{sP3S3hT6OXRb.js => ByVX2dWNILB_.js} | 2 +- .../{BHNCJz8h4sy0.js => C9A_GJKpT1nq.js} | 2 +- core-packages/assets/CCCkDjBfC1Rx.js | 1 + .../{C5gzsCUSeGnZ.js => CDTvC2sBv52w.js} | 2 +- core-packages/assets/CfkrDmERxVI8.js | 13 ++++++++++++ .../{g1BJdB74TioF.js => D2XlaS5Lai55.js} | 2 +- .../{DskoU3k5tfRy.js => DGZaBR5iXeaY.js} | 2 +- .../{IYf3wYeThTW4.js => DHKG28WD4ny_.js} | 2 +- core-packages/assets/DkVfmBxvveNW.js | 1 - core-packages/assets/DmpMMwGLAqtN.js | 1 - .../{CdW_8K6w63rI.js => DugBTOH4Whwn.js} | 2 +- .../{CPx89lC1HAc1.js => IkibgNADSKAJ.js} | 2 +- core-packages/docs/assets/navigation.js | 2 +- core-packages/docs/assets/search.js | 2 +- .../classes/_open_pioneer_core.Error.html | 8 +++---- .../_open_pioneer_core.EventEmitter.html | 8 +++---- ...open_pioneer_authentication.ForceAuth.html | 2 +- ...n_pioneer_authentication.useAuthState.html | 2 +- ...akra_integration.CustomChakraProvider.html | 2 +- ...pen_pioneer_chakra_integration.Portal.html | 2 +- .../_open_pioneer_core.createAbortError.html | 2 +- .../_open_pioneer_core.createLogger.html | 2 +- ...open_pioneer_core.createManualPromise.html | 2 +- .../_open_pioneer_core.destroyResource.html | 2 +- .../_open_pioneer_core.destroyResources.html | 2 +- .../_open_pioneer_core.getErrorChain.html | 2 +- .../_open_pioneer_core.isAbortError.html | 2 +- .../_open_pioneer_core.rethrowAbortError.html | 2 +- .../_open_pioneer_core.throwAbortError.html | 2 +- .../_open_pioneer_notifier.Notifier.html | 2 +- ...er_react_utils.ConfigureTitledSection.html | 2 +- ...en_pioneer_react_utils.SectionHeading.html | 2 +- ...pen_pioneer_react_utils.TitledSection.html | 2 +- ...r_react_utils.useCommonComponentProps.html | 2 +- .../_open_pioneer_react_utils.useEvent.html | 2 +- ...n_pioneer_react_utils.useHeadingLevel.html | 2 +- .../_open_pioneer_reactivity.useComputed.html | 2 +- .../_open_pioneer_reactivity.useReactive.html | 4 ++-- ...ioneer_reactivity.useReactiveSnapshot.html | 2 +- ...n_pioneer_reactivity.useReactiveValue.html | 2 +- ...n_pioneer_runtime.createCustomElement.html | 2 +- ...st_utils.react.PackageContextProvider.html | 2 +- ...eer_test_utils.services.createService.html | 2 +- ..._utils.web_components.defineComponent.html | 2 +- ..._utils.web_components.renderComponent.html | 2 +- ...b_components.renderComponentShadowDOM.html | 2 +- ...pen_pioneer_authentication.AuthEvents.html | 4 ---- ...pen_pioneer_authentication.AuthPlugin.html | 21 +++++-------------- ...oneer_authentication.AuthPluginEvents.html | 3 --- ...en_pioneer_authentication.AuthService.html | 21 ++++++------------- ...authentication.AuthStateAuthenticated.html | 4 ++-- ...tication.AuthStateAuthenticationError.html | 4 ++-- ...hentication.AuthStateNotAuthenticated.html | 4 ++-- ...oneer_authentication.AuthStatePending.html | 4 ++-- ...pioneer_authentication.ForceAuthProps.html | 12 +++++------ ...en_pioneer_authentication.LoginEffect.html | 4 ++-- ..._pioneer_authentication.LoginFallback.html | 4 ++-- ...en_pioneer_authentication.SessionInfo.html | 10 ++++----- ...thentication_keycloak.KeycloakOptions.html | 8 +++---- ...ntication_keycloak.KeycloakProperties.html | 4 ++-- ...uthentication_keycloak.RefreshOptions.html | 8 +++---- .../_open_pioneer_core.LogMethod.html | 2 +- .../interfaces/_open_pioneer_core.Logger.html | 14 ++++++------- .../_open_pioneer_core.ManualPromise.html | 4 ++-- .../_open_pioneer_core.Resource.html | 4 ++-- ...open_pioneer_http.BeforeRequestParams.html | 10 ++++----- .../_open_pioneer_http.HttpService.html | 4 ++-- ...n_pioneer_http.HttpServiceRequestInit.html | 4 ++-- .../_open_pioneer_http.Interceptor.html | 4 ++-- ...open_pioneer_integration.ApiExtension.html | 4 ++-- ...neer_integration.ExternalEventService.html | 6 +++--- ...pioneer_local_storage.LocalStorageAPI.html | 12 +++++------ ..._local_storage.LocalStorageProperties.html | 4 ++-- ...eer_local_storage.LocalStorageService.html | 14 ++++++------- ..._pioneer_notifier.NotificationOptions.html | 10 ++++----- ..._pioneer_notifier.NotificationService.html | 6 +++--- .../_open_pioneer_notifier.NotifierProps.html | 4 ++-- ...neer_react_utils.CommonComponentProps.html | 6 +++--- ...act_utils.ConfigureTitledSectionProps.html | 4 ++-- ...oneer_react_utils.SectionHeadingProps.html | 4 ++-- ...ioneer_react_utils.TitledSectionProps.html | 10 ++++----- .../_open_pioneer_runtime.ApiExtension.html | 4 ++-- .../_open_pioneer_runtime.ApiService.html | 4 ++-- ...pen_pioneer_runtime.ApplicationConfig.html | 6 +++--- ...en_pioneer_runtime.ApplicationContext.html | 14 ++++++------- ...en_pioneer_runtime.ApplicationElement.html | 4 ++-- ...runtime.ApplicationElementConstructor.html | 4 ++-- ..._runtime.ApplicationLifecycleListener.html | 6 +++--- ...pioneer_runtime.ApplicationProperties.html | 2 +- .../_open_pioneer_runtime.ConfigContext.html | 6 +++--- ..._pioneer_runtime.CustomElementOptions.html | 12 +++++------ ..._open_pioneer_runtime.DeclaredService.html | 2 +- .../_open_pioneer_runtime.ReferenceMeta.html | 4 ++-- ...pioneer_runtime.ServiceLifecycleHooks.html | 4 ++-- ...ils.react.PackageContextProviderProps.html | 14 ++++++------- ...t_utils.services.CreateServiceOptions.html | 12 +++++------ .../modules/_open_pioneer_authentication.html | 7 ++----- .../_open_pioneer_test_utils.react.html | 2 +- .../_open_pioneer_test_utils.services.html | 2 +- ...pen_pioneer_test_utils.web_components.html | 2 +- ...er_authentication.AuthPluginEventBase.html | 2 -- ...open_pioneer_authentication.AuthState.html | 2 +- ..._pioneer_authentication.LoginBehavior.html | 2 +- ...integration.CustomChakraProviderProps.html | 2 +- .../types/_open_pioneer_core.EventNames.html | 2 +- .../types/_open_pioneer_core.EventSource.html | 2 +- .../types/_open_pioneer_core.LogLevel.html | 2 +- .../types/_open_pioneer_http.ContextData.html | 2 +- ...n_pioneer_http.ResolvedRequestOptions.html | 2 +- .../_open_pioneer_integration.ApiMethod.html | 2 +- .../_open_pioneer_integration.ApiMethods.html | 2 +- ...r_local_storage.LocalStorageNamespace.html | 2 +- ...en_pioneer_notifier.NotificationLevel.html | 2 +- ...open_pioneer_react_utils.HeadingLevel.html | 2 +- .../_open_pioneer_runtime.ApiMethod.html | 2 +- .../_open_pioneer_runtime.ApiMethods.html | 2 +- ...oneer_runtime.AssociatedInterfaceName.html | 2 +- ...r_runtime.InterfaceNameForServiceType.html | 2 +- .../_open_pioneer_runtime.PackageIntl.html | 2 +- .../_open_pioneer_runtime.ReferencesMeta.html | 2 +- .../types/_open_pioneer_runtime.Service.html | 2 +- ...en_pioneer_runtime.ServiceConstructor.html | 2 +- .../_open_pioneer_runtime.ServiceOptions.html | 2 +- ...n_pioneer_test_utils.react.AnyService.html | 2 +- .../_open_pioneer_base_theme.theme.html | 2 +- ...ioneer_chakra_integration.AlertDialog.html | 2 +- ...pen_pioneer_chakra_integration.Drawer.html | 2 +- ...open_pioneer_chakra_integration.Modal.html | 2 +- ...en_pioneer_chakra_integration.Tooltip.html | 2 +- ...eer_runtime.DECLARE_SERVICE_INTERFACE.html | 2 +- core-packages/samples/api-sample/index.html | 2 +- core-packages/samples/auth-sample/index.html | 5 ++--- .../samples/chakra-sample/index.html | 2 +- .../samples/extension-sample/index.html | 2 +- core-packages/samples/i18n-sample/index.html | 2 +- .../samples/keycloak-sample/index.html | 9 ++++---- .../samples/notify-sample/index.html | 2 +- .../samples/properties-sample/index.html | 2 +- .../samples/styling-sample/index.html | 2 +- .../samples/theming-sample/index.html | 2 +- 142 files changed, 270 insertions(+), 304 deletions(-) create mode 100644 core-packages/assets/B67hOg_U-Yp9.js delete mode 100644 core-packages/assets/Bp6FgAg5vEp7.js rename core-packages/assets/{sP3S3hT6OXRb.js => ByVX2dWNILB_.js} (98%) rename core-packages/assets/{BHNCJz8h4sy0.js => C9A_GJKpT1nq.js} (76%) create mode 100644 core-packages/assets/CCCkDjBfC1Rx.js rename core-packages/assets/{C5gzsCUSeGnZ.js => CDTvC2sBv52w.js} (89%) create mode 100644 core-packages/assets/CfkrDmERxVI8.js rename core-packages/assets/{g1BJdB74TioF.js => D2XlaS5Lai55.js} (98%) rename core-packages/assets/{DskoU3k5tfRy.js => DGZaBR5iXeaY.js} (80%) rename core-packages/assets/{IYf3wYeThTW4.js => DHKG28WD4ny_.js} (89%) delete mode 100644 core-packages/assets/DkVfmBxvveNW.js delete mode 100644 core-packages/assets/DmpMMwGLAqtN.js rename core-packages/assets/{CdW_8K6w63rI.js => DugBTOH4Whwn.js} (89%) rename core-packages/assets/{CPx89lC1HAc1.js => IkibgNADSKAJ.js} (94%) delete mode 100644 core-packages/docs/interfaces/_open_pioneer_authentication.AuthEvents.html delete mode 100644 core-packages/docs/interfaces/_open_pioneer_authentication.AuthPluginEvents.html delete mode 100644 core-packages/docs/types/_open_pioneer_authentication.AuthPluginEventBase.html diff --git a/core-packages/assets/B67hOg_U-Yp9.js b/core-packages/assets/B67hOg_U-Yp9.js new file mode 100644 index 000000000..a54f7af97 --- /dev/null +++ b/core-packages/assets/B67hOg_U-Yp9.js @@ -0,0 +1 @@ +var T=t=>{throw TypeError(t)};var q=(t,e,i)=>e.has(t)||T("Cannot "+i);var u=(t,e,i)=>(q(t,e,"read from private field"),i?i.call(t):e.get(t)),E=(t,e,i)=>e.has(t)?T("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),l=(t,e,i,r)=>(q(t,e,"write to private field"),r?r.call(t,i):e.set(t,i),i),_=(t,e,i)=>(q(t,e,"access private method"),i);import{af as rt,a8 as nt,ag as st,c as ot,r as c,j as d}from"./D2oXSZAF25Nh.js";import{u as ut,a as at}from"./CEqcg7qjrBaf.js";import{B as ct}from"./CW9VlGYS245s.js";var ht=Symbol.for("preact-signals");function R(){if(p>1)p--;else{for(var t,e=!1;m!==void 0;){var i=m;for(m=void 0,j++;i!==void 0;){var r=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&W(i))try{i.c()}catch(o){e||(t=o,e=!0)}i=r}}if(j=0,p--,e)throw t}}var n=void 0;function N(t){var e=n;n=void 0;try{return t()}finally{n=e}}var m=void 0,p=0,j=0,A=0;function H(t){if(n!==void 0){var e=t.n;if(e===void 0||e.t!==n)return e={i:0,S:t,p:n.s,n:void 0,t:n,e:void 0,x:void 0,r:e},n.s!==void 0&&(n.s.n=e),n.s=e,t.n=e,32&n.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=n.s,e.n=void 0,n.s.n=e,n.s=e),e}}function s(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}s.prototype.brand=ht;s.prototype.h=function(){return!0};s.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};s.prototype.U=function(t){if(this.t!==void 0){var e=t.e,i=t.x;e!==void 0&&(e.x=i,t.e=void 0),i!==void 0&&(i.e=e,t.x=void 0),t===this.t&&(this.t=i)}};s.prototype.subscribe=function(t){var e=this;return O(function(){var i=e.value,r=n;n=void 0;try{t(i)}finally{n=r}})};s.prototype.valueOf=function(){return this.value};s.prototype.toString=function(){return this.value+""};s.prototype.toJSON=function(){return this.value};s.prototype.peek=function(){var t=n;n=void 0;try{return this.value}finally{n=t}};Object.defineProperty(s.prototype,"value",{get:function(){var t=H(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(j>100)throw new Error("Cycle detected");this.v=t,this.i++,A++,p++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{R()}}}});function ft(t){return new s(t)}function W(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function $(t){for(var e=t.s;e!==void 0;e=e.n){var i=e.S.n;if(i!==void 0&&(e.r=i),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function G(t){for(var e=t.s,i=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):i=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}t.s=i}function g(t){s.call(this,void 0),this.x=t,this.s=void 0,this.g=A-1,this.f=4}(g.prototype=new s).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===A))return!0;if(this.g=A,this.f|=1,this.i>0&&!W(this))return this.f&=-2,!0;var t=n;try{$(this),n=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(i){this.v=i,this.f|=16,this.i++}return n=t,G(this),this.f&=-2,!0};g.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}s.prototype.S.call(this,t)};g.prototype.U=function(t){if(this.t!==void 0&&(s.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};g.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(g.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=H(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function J(t){return new g(t)}function Q(t){var e=t.u;if(t.u=void 0,typeof e=="function"){p++;var i=n;n=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,D(t),r}finally{n=i,R()}}}function D(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Q(t)}function lt(t){if(n!==this)throw new Error("Out-of-order effect");G(this),n=t,this.f&=-2,8&this.f&&D(this),R()}function b(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}b.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};b.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Q(this),$(this),p++;var t=n;return n=this,lt.bind(this,t)};b.prototype.N=function(){2&this.f||(this.f|=2,this.o=m,m=this)};b.prototype.d=function(){this.f|=8,1&this.f||D(this)};function O(t){var e=new b(t);try{e.c()}catch(i){throw e.d(),i}return e.d.bind(e)}function dt(t){let e;return{destroy:O(function(){this[vt]=t.bind(void 0),e=this[pt].bind(this)}),start:e}}var vt="N",pt="S";function Ht(t,e){return new St(t,e?.equal)}function yt(t,e){return new gt(t,e?.equal)}function K(t){return N(t)}var v=Symbol("signal"),x=Symbol("equals"),V=class{[v];constructor(t){this[v]=t}get value(){return this[v].value}set value(t){throw new Error("Cannot update a readonly reactive object.")}trigger(){throw new Error("Cannot trigger this reactive object.")}peek(){return this[v].peek()}toJSON(){return this.value}toString(){return`Reactive[value=${mt(this[v].value)}]`}},gt=class extends V{[x];constructor(t,e){const i=J(e?Et(t,e):t);super(i),this[x]=e}},St=class extends V{[x];constructor(t,e){super(ft(t)),this[x]=e}get value(){return super.value}set value(t){N(()=>this[x]?.(this.value,t))||(this[v].value=t)}};function Et(t,e){let i=!0,r;return function(){const h=t();return N(()=>((i||!e(r,h))&&(r=h,i=!1),r))}}function mt(t){return typeof t=="string"?JSON.stringify(t):String(t)}function Y(t,e){return t===e?!0:t.length===e.length&&t.every((i,r)=>i===e[r])}function z(t,e,i,r){const o=J(e),h=r?.immediate??!1,et=r?.equal??xt;let w=!0,L,I;function P(){const S=I;I=void 0;try{S?.()}catch(k){throw U.destroy(),k}}const it=t(()=>{const S=o.value;K(()=>{const k=L,M=w&&h||!w&&!et(k,S);(M||w)&&(L=S,w=!1),M&&(P(),I=i(S,k))})}),U={destroy(){try{P()}finally{it.destroy()}}};return U}function xt(t,e){return t===e}function bt(t){return{destroy:O(t)}}function wt(t,e,i){return z(bt,t,e,{equal:Y,...i})}function X(t){Promise.reject(new Error("Error in effect or watch callback",{cause:t}))}var kt=class{queue=[];channel=new MessageChannel;constructor(){this.channel.port2.start()}enqueue(t){const e={fn:t,destroyed:!1};return this.queue.push(e),this.queue.length===1&&this.scheduleIteration(),{destroy(){e.destroyed||(e.destroyed=!0)}}}messageHandler=()=>this.runIteration();scheduleIteration(){const t=this.channel;t.port2.addEventListener("message",this.messageHandler),t.port1.postMessage("")}runIteration(){this.channel.port2.removeEventListener("message",this.messageHandler);const t=this.queue;this.queue=[];for(const e of t)if(!e.destroyed)try{e.fn()}catch(i){X(i)}}};function At(t){const e=new Ct(t);return{destroy:e.destroy.bind(e)}}var Ct=class{callback;cleanup;watcher;scheduledExecution;isDestroyed=!1;initialExecution=!0;isExecuting=!1;constructor(t){this.callback=t,this.watcher=dt(this.scheduleExecution),this.execute(),this.initialExecution=!1}destroy(){if(!this.isDestroyed){this.isDestroyed=!0;try{this.triggerCleanup()}finally{this.watcher?.destroy(),this.watcher=void 0,this.scheduledExecution?.destroy(),this.scheduledExecution=void 0}}}execute(){const t=this.watcher;if(!t)return;this.isExecuting=!0;const e=t.start();try{if(this.initialExecution)try{this.triggerCallback()}catch(i){throw this.destroy(),i}else try{this.triggerCallback()}catch(i){X(i)}}finally{e(),this.isExecuting=!1}this.isDestroyed&&this.triggerCleanup()}triggerCallback(){if(!this.isDestroyed){this.triggerCleanup();const t=this.callback();typeof t=="function"&&(this.cleanup=t)}}triggerCleanup(){const t=this.cleanup;this.cleanup=void 0;try{t&&K(t)}catch(e){throw this.destroy(),e}}scheduleExecution=()=>{if(!this.isDestroyed){if(this.isExecuting)throw new Error("Cycle detected");this.scheduledExecution||(this.scheduledExecution=Ft(()=>{try{this.execute()}finally{this.scheduledExecution=void 0}}))}}};function It(t,e,i){return z(At,t,e,{equal:Y,...i})}var qt=new kt;function Ft(t){return qt.enqueue(t)}const F=ot("authentication:AuthService");var f,a,y,C,Z;class Wt{constructor(e){E(this,C);E(this,f);E(this,a);E(this,y);l(this,f,e.references.plugin),l(this,y,wt(()=>[u(this,f).getAuthState()],([i])=>{_(this,C,Z).call(this,i)},{immediate:!1})),F.debug(`Constructed with initial auth state '${this.getAuthState().kind}'`,this.getAuthState())}destroy(){u(this,a)?.reject(rt()),l(this,a,void 0),l(this,y,nt(u(this,y)))}getAuthState(){return u(this,f).getAuthState()}getSessionInfo(){return this.getAuthState().kind!=="pending"?Promise.resolve(B(this.getAuthState())):(u(this,a)||l(this,a,st()),u(this,a).promise)}getLoginBehavior(){return u(this,f).getLoginBehavior()}logout(){F.debug("Triggering logout"),u(this,f).logout()}}f=new WeakMap,a=new WeakMap,y=new WeakMap,C=new WeakSet,Z=function(e){e.kind!=="pending"&&u(this,a)&&(u(this,a).resolve(B(e)),l(this,a,void 0)),F.debug(`Auth state changed to '${e.kind}'`,e)};function B(t){return t.kind==="authenticated"?t.sessionInfo:void 0}const tt="@open-pioneer/authentication",jt=ut.bind(void 0,tt),Rt=at.bind(void 0,tt);function Nt(t,e){const i=c.useRef(t);i.current=t;const r=Lt(e);return c.useMemo(()=>yt(()=>i.current()),[r])}function Dt(t){const e=c.useCallback(()=>t.peek(),[t]),i=c.useCallback(o=>{const h=It(()=>[t.value],o);return()=>h.destroy()},[t]),r=c.useSyncExternalStore(i,e);return c.useDebugValue(r),r}function Ot(t,e){const i=Nt(t,e),r=Dt(i);return c.useDebugValue(r),r}function Lt(t){const e=c.useRef();return(e.current==null||!Pt(e.current,t))&&(e.current=t??[]),e.current}function Pt(t,e){return t===e?!0:t.length===(e?.length??0)&&t.every((i,r)=>i===e[r])}function Ut(t){return Ot(()=>t.getAuthState(),[t])}const $t=t=>{const e=jt("authentication.AuthService"),i=Ut(e),r=Rt(),o=c.useMemo(()=>{if(i.kind==="not-authenticated")return e.getLoginBehavior()},[e,i.kind]);switch(c.useEffect(()=>{i.kind==="not-authenticated"&&o?.kind==="effect"&&o.login()},[o,i.kind]),i.kind){case"pending":return null;case"not-authenticated":{if(!o||o.kind!=="fallback")return null;const h=o.Fallback;return t.renderFallback?d.jsx(d.Fragment,{children:t.renderFallback(h)}):d.jsx(h,{...t.fallbackProps})}case"error":return t.renderErrorFallback?t.renderErrorFallback(i.error):t.errorFallback?d.jsx(t.errorFallback,{error:i.error}):d.jsx(ct,{className:"authentication-error",children:r.formatMessage({id:"auth-error"})});case"authenticated":return d.jsx(d.Fragment,{children:t.children})}};export{Wt as A,$t as F,Ht as r,Ut as u}; diff --git a/core-packages/assets/Bp6FgAg5vEp7.js b/core-packages/assets/Bp6FgAg5vEp7.js deleted file mode 100644 index 36a567e15..000000000 --- a/core-packages/assets/Bp6FgAg5vEp7.js +++ /dev/null @@ -1,13 +0,0 @@ -var Pe=r=>{throw TypeError(r)};var Ae=(r,e,s)=>e.has(r)||Pe("Cannot "+s);var T=(r,e,s)=>(Ae(r,e,"read from private field"),s?s.call(r):e.get(r)),G=(r,e,s)=>e.has(r)?Pe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,s),$=(r,e,s,k)=>(Ae(r,e,"write to private field"),k?k.call(r,s):e.set(r,s),s),ue=(r,e,s)=>(Ae(r,e,"access private method"),s);import{h as nt,a1 as it,G as ot,j as F,n as st,l as at,a7 as ct,Z as ut,_ as lt,a8 as ft,c as ht,a as dt,b as pt}from"./D2oXSZAF25Nh.js";import{N as vt,a as mt}from"./LKojhJIlmLP8.js";import{H as gt}from"./CNWmJGa2bJMS.js";import{A as kt,u as xt,F as yt}from"./DmpMMwGLAqtN.js";import{E as wt}from"./vOBnYnib6xFk.js";import{_ as Me}from"./CmsKOCeNyeyo.js";import{u as bt}from"./CEqcg7qjrBaf.js";import{B as ze}from"./ByauQZPFLiUp.js";import{C as St,H as Ne}from"./D5d8MKrNO9TY.js";import{F as _t}from"./CJAaOOGk-WF8.js";import{V as He}from"./C01kSkQ--ETF.js";import{T as le}from"./DfwCaCqN11zg.js";import{U as Et,L as Ie}from"./Cuqg4Q-7MAjf.js";import{B as Ke}from"./CW9VlGYS245s.js";import"./DMyVcVfFoYJc.js";import"./CZpnpGhF6lFQ.js";const se=nt(function(e,s){const k=it("Code",e),{className:R,...b}=ot(e);return F.jsx(st.code,{ref:s,className:at("chakra-code",e.className),...b,__css:{display:"inline-block",...k}})});se.displayName="Code";class Ft{authService;constructor(e){this.authService=e.references.authService}beforeRequest({target:e,options:s}){const k=this.authService.getAuthState(),O=((k.kind=="authenticated"?k.sessionInfo:void 0)?.attributes?.keycloak).token;e.protocol==="https:"&&e.hostname==="ogc-api.nrw.de"&&O&&s.headers.set("Authorization",O)}}var At=Symbol.for("preact-signals");function Le(){if(he>1)he--;else{for(var r,e=!1;be!==void 0;){var s=be;for(be=void 0,Ce++;s!==void 0;){var k=s.o;if(s.o=void 0,s.f&=-3,!(8&s.f)&&Ye(s))try{s.c()}catch(R){e||(r=R,e=!0)}s=k}}if(Ce=0,he--,e)throw r}}var U=void 0;function Je(r){var e=U;U=void 0;try{return r()}finally{U=e}}var be=void 0,he=0,Ce=0,Fe=0;function Ve(r){if(U!==void 0){var e=r.n;if(e===void 0||e.t!==U)return e={i:0,S:r,p:U.s,n:void 0,t:U,e:void 0,x:void 0,r:e},U.s!==void 0&&(U.s.n=e),U.s=e,r.n=e,32&U.f&&r.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=U.s,e.n=void 0,U.s.n=e,U.s=e),e}}function q(r){this.v=r,this.i=0,this.n=void 0,this.t=void 0}q.prototype.brand=At;q.prototype.h=function(){return!0};q.prototype.S=function(r){this.t!==r&&r.e===void 0&&(r.x=this.t,this.t!==void 0&&(this.t.e=r),this.t=r)};q.prototype.U=function(r){if(this.t!==void 0){var e=r.e,s=r.x;e!==void 0&&(e.x=s,r.e=void 0),s!==void 0&&(s.e=e,r.x=void 0),r===this.t&&(this.t=s)}};q.prototype.subscribe=function(r){var e=this;return Xe(function(){var s=e.value,k=U;U=void 0;try{r(s)}finally{U=k}})};q.prototype.valueOf=function(){return this.value};q.prototype.toString=function(){return this.value+""};q.prototype.toJSON=function(){return this.value};q.prototype.peek=function(){var r=U;U=void 0;try{return this.value}finally{U=r}};Object.defineProperty(q.prototype,"value",{get:function(){var r=Ve(this);return r!==void 0&&(r.i=this.i),this.v},set:function(r){if(r!==this.v){if(Ce>100)throw new Error("Cycle detected");this.v=r,this.i++,Fe++,he++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Le()}}}});function It(r){return new q(r)}function Ye(r){for(var e=r.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function Ge(r){for(var e=r.s;e!==void 0;e=e.n){var s=e.S.n;if(s!==void 0&&(e.r=s),e.S.n=e,e.i=-1,e.n===void 0){r.s=e;break}}}function $e(r){for(var e=r.s,s=void 0;e!==void 0;){var k=e.p;e.i===-1?(e.S.U(e),k!==void 0&&(k.n=e.n),e.n!==void 0&&(e.n.p=k)):s=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=k}r.s=s}function ke(r){q.call(this,void 0),this.x=r,this.s=void 0,this.g=Fe-1,this.f=4}(ke.prototype=new q).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Fe))return!0;if(this.g=Fe,this.f|=1,this.i>0&&!Ye(this))return this.f&=-2,!0;var r=U;try{Ge(this),U=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(s){this.v=s,this.f|=16,this.i++}return U=r,$e(this),this.f&=-2,!0};ke.prototype.S=function(r){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}q.prototype.S.call(this,r)};ke.prototype.U=function(r){if(this.t!==void 0&&(q.prototype.U.call(this,r),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};ke.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var r=this.t;r!==void 0;r=r.x)r.t.N()}};Object.defineProperty(ke.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var r=Ve(this);if(this.h(),r!==void 0&&(r.i=this.i),16&this.f)throw this.v;return this.v}});function Ut(r){return new ke(r)}function We(r){var e=r.u;if(r.u=void 0,typeof e=="function"){he++;var s=U;U=void 0;try{e()}catch(k){throw r.f&=-2,r.f|=8,Oe(r),k}finally{U=s,Le()}}}function Oe(r){for(var e=r.s;e!==void 0;e=e.n)e.S.U(e);r.x=void 0,r.s=void 0,We(r)}function Tt(r){if(U!==this)throw new Error("Out-of-order effect");$e(this),U=r,this.f&=-2,8&this.f&&Oe(this),Le()}function _e(r){this.x=r,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}_e.prototype.c=function(){var r=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{r()}};_e.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,We(this),Ge(this),he++;var r=U;return U=this,Tt.bind(this,r)};_e.prototype.N=function(){2&this.f||(this.f|=2,this.o=be,be=this)};_e.prototype.d=function(){this.f|=8,1&this.f||Oe(this)};function Xe(r){var e=new _e(r);try{e.c()}catch(s){throw e.d(),s}return e.d.bind(e)}function Ct(r){let e;return{destroy:Xe(function(){this[Rt]=r.bind(void 0),e=this[Lt].bind(this)}),start:e}}var Rt="N",Lt="S";function Ot(r,e){return new Pt(r,e?.equal)}function Qe(r){return Je(r)}var fe=Symbol("signal"),Ue=Symbol("equals"),jt=class{[fe];constructor(r){this[fe]=r}get value(){return this[fe].value}set value(r){throw new Error("Cannot update a readonly reactive object.")}trigger(){throw new Error("Cannot trigger this reactive object.")}peek(){return this[fe].peek()}toJSON(){return this.value}toString(){return`Reactive[value=${Mt(this[fe].value)}]`}},Pt=class extends jt{[Ue];constructor(r,e){super(It(r)),this[Ue]=e}get value(){return super.value}set value(r){Je(()=>this[Ue]?.(this.value,r))||(this[fe].value=r)}};function Mt(r){return typeof r=="string"?JSON.stringify(r):String(r)}function Nt(r,e){return r===e?!0:r.length===e.length&&r.every((s,k)=>s===e[k])}function Ht(r,e,s,k){const R=Ut(e),b=k?.immediate??!1,O=k?.equal??Kt;let j=!0,v,B;function M(){const C=B;B=void 0;try{C?.()}catch(Z){throw Q.destroy(),Z}}const re=r(()=>{const C=R.value;Qe(()=>{const Z=v,ie=j&&b||!j&&!O(Z,C);(ie||j)&&(v=C,j=!1),ie&&(M(),B=s(C,Z))})}),Q={destroy(){try{M()}finally{re.destroy()}}};return Q}function Kt(r,e){return r===e}function Ze(r){Promise.reject(new Error("Error in effect or watch callback",{cause:r}))}var qt=class{queue=[];channel=new MessageChannel;constructor(){this.channel.port2.start()}enqueue(r){const e={fn:r,destroyed:!1};return this.queue.push(e),this.queue.length===1&&this.scheduleIteration(),{destroy(){e.destroyed||(e.destroyed=!0)}}}messageHandler=()=>this.runIteration();scheduleIteration(){const r=this.channel;r.port2.addEventListener("message",this.messageHandler),r.port1.postMessage("")}runIteration(){this.channel.port2.removeEventListener("message",this.messageHandler);const r=this.queue;this.queue=[];for(const e of r)if(!e.destroyed)try{e.fn()}catch(s){Ze(s)}}};function Bt(r){const e=new Dt(r);return{destroy:e.destroy.bind(e)}}var Dt=class{callback;cleanup;watcher;scheduledExecution;isDestroyed=!1;initialExecution=!0;isExecuting=!1;constructor(r){this.callback=r,this.watcher=Ct(this.scheduleExecution),this.execute(),this.initialExecution=!1}destroy(){if(!this.isDestroyed){this.isDestroyed=!0;try{this.triggerCleanup()}finally{this.watcher?.destroy(),this.watcher=void 0,this.scheduledExecution?.destroy(),this.scheduledExecution=void 0}}}execute(){const r=this.watcher;if(!r)return;this.isExecuting=!0;const e=r.start();try{if(this.initialExecution)try{this.triggerCallback()}catch(s){throw this.destroy(),s}else try{this.triggerCallback()}catch(s){Ze(s)}}finally{e(),this.isExecuting=!1}this.isDestroyed&&this.triggerCleanup()}triggerCallback(){if(!this.isDestroyed){this.triggerCleanup();const r=this.callback();typeof r=="function"&&(this.cleanup=r)}}triggerCleanup(){const r=this.cleanup;this.cleanup=void 0;try{r&&Qe(r)}catch(e){throw this.destroy(),e}}scheduleExecution=()=>{if(!this.isDestroyed){if(this.isExecuting)throw new Error("Cycle detected");this.scheduledExecution||(this.scheduledExecution=Vt(()=>{try{this.execute()}finally{this.scheduledExecution=void 0}}))}}};function zt(r,e,s){return Ht(Bt,r,e,{equal:Nt,...s})}var Jt=new qt;function Vt(r){return Jt.enqueue(r)}var et={exports:{}};const Yt={},Gt=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"})),qe=ct(Gt);/** - * [js-sha256]{@link https://github.com/emn178/js-sha256} - * - * @version 0.11.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2014-2024 - * @license MIT - */(function(r){(function(){var e="input is invalid type",s=typeof window=="object",k=s?window:{};k.JS_SHA256_NO_WINDOW&&(s=!1);var R=!s&&typeof self=="object",b=!k.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;b?k=ut:R&&(k=self);var O=!k.JS_SHA256_NO_COMMON_JS&&!0&&r.exports,j=!k.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",v="0123456789abcdef".split(""),B=[-2147483648,8388608,32768,128],M=[24,16,8,0],re=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Q=["hex","array","digest","arrayBuffer"],C=[];(k.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(i){return Object.prototype.toString.call(i)==="[object Array]"}),j&&(k.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(i){return typeof i=="object"&&i.buffer&&i.buffer.constructor===ArrayBuffer});var Z=function(i,d){return function(w){return new P(d,!0).update(w)[i]()}},ie=function(i){var d=Z("hex",i);b&&(d=V(d,i)),d.create=function(){return new P(i)},d.update=function(g){return d.create().update(g)};for(var w=0;w>>2]|=i[g]<>>2]|=p<>>2]|=(192|p>>>6)<>>2]|=(128|p&63)<=57344?(u[h>>>2]|=(224|p>>>12)<>>2]|=(128|p>>>6&63)<>>2]|=(128|p&63)<>>2]|=(240|p>>>18)<>>2]|=(128|p>>>12&63)<>>2]|=(128|p>>>6&63)<>>2]|=(128|p&63)<=64?(this.block=u[16],this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},P.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var i=this.blocks,d=this.lastByteIndex;i[16]=this.block,i[d>>>2]|=B[d&3],this.block=i[16],d>=56&&(this.hashed||this.hash(),i[0]=this.block,i[16]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=i[10]=i[11]=i[12]=i[13]=i[14]=i[15]=0),i[14]=this.hBytes<<3|this.bytes>>>29,i[15]=this.bytes<<3,this.hash()}},P.prototype.hash=function(){var i=this.h0,d=this.h1,w=this.h2,p=this.h3,g=this.h4,h=this.h5,E=this.h6,u=this.h7,_=this.blocks,L,N,H,z,A,Y,t,n,a,f,o;for(L=16;L<64;++L)A=_[L-15],N=(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3,A=_[L-2],H=(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10,_[L]=_[L-16]+N+_[L-7]+H<<0;for(o=d&w,L=0;L<64;L+=4)this.first?(this.is224?(n=300032,A=_[0]-1413257819,u=A-150054599<<0,p=A+24177077<<0):(n=704751109,A=_[0]-210244248,u=A-1521486534<<0,p=A+143694565<<0),this.first=!1):(N=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),H=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),n=i&d,z=n^i&w^o,t=g&h^~g&E,A=u+H+t+re[L]+_[L],Y=N+z,u=p+A<<0,p=A+Y<<0),N=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),H=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),a=p&i,z=a^p&d^n,t=u&g^~u&h,A=E+H+t+re[L+1]+_[L+1],Y=N+z,E=w+A<<0,w=A+Y<<0,N=(w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10),H=(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7),f=w&p,z=f^w&i^a,t=E&u^~E&g,A=h+H+t+re[L+2]+_[L+2],Y=N+z,h=d+A<<0,d=A+Y<<0,N=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),H=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7),o=d&w,z=o^d&p^f,t=h&E^~h&u,A=g+H+t+re[L+3]+_[L+3],Y=N+z,g=i+A<<0,i=A+Y<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+i<<0,this.h1=this.h1+d<<0,this.h2=this.h2+w<<0,this.h3=this.h3+p<<0,this.h4=this.h4+g<<0,this.h5=this.h5+h<<0,this.h6=this.h6+E<<0,this.h7=this.h7+u<<0},P.prototype.hex=function(){this.finalize();var i=this.h0,d=this.h1,w=this.h2,p=this.h3,g=this.h4,h=this.h5,E=this.h6,u=this.h7,_=v[i>>>28&15]+v[i>>>24&15]+v[i>>>20&15]+v[i>>>16&15]+v[i>>>12&15]+v[i>>>8&15]+v[i>>>4&15]+v[i&15]+v[d>>>28&15]+v[d>>>24&15]+v[d>>>20&15]+v[d>>>16&15]+v[d>>>12&15]+v[d>>>8&15]+v[d>>>4&15]+v[d&15]+v[w>>>28&15]+v[w>>>24&15]+v[w>>>20&15]+v[w>>>16&15]+v[w>>>12&15]+v[w>>>8&15]+v[w>>>4&15]+v[w&15]+v[p>>>28&15]+v[p>>>24&15]+v[p>>>20&15]+v[p>>>16&15]+v[p>>>12&15]+v[p>>>8&15]+v[p>>>4&15]+v[p&15]+v[g>>>28&15]+v[g>>>24&15]+v[g>>>20&15]+v[g>>>16&15]+v[g>>>12&15]+v[g>>>8&15]+v[g>>>4&15]+v[g&15]+v[h>>>28&15]+v[h>>>24&15]+v[h>>>20&15]+v[h>>>16&15]+v[h>>>12&15]+v[h>>>8&15]+v[h>>>4&15]+v[h&15]+v[E>>>28&15]+v[E>>>24&15]+v[E>>>20&15]+v[E>>>16&15]+v[E>>>12&15]+v[E>>>8&15]+v[E>>>4&15]+v[E&15];return this.is224||(_+=v[u>>>28&15]+v[u>>>24&15]+v[u>>>20&15]+v[u>>>16&15]+v[u>>>12&15]+v[u>>>8&15]+v[u>>>4&15]+v[u&15]),_},P.prototype.toString=P.prototype.hex,P.prototype.digest=function(){this.finalize();var i=this.h0,d=this.h1,w=this.h2,p=this.h3,g=this.h4,h=this.h5,E=this.h6,u=this.h7,_=[i>>>24&255,i>>>16&255,i>>>8&255,i&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,w>>>24&255,w>>>16&255,w>>>8&255,w&255,p>>>24&255,p>>>16&255,p>>>8&255,p&255,g>>>24&255,g>>>16&255,g>>>8&255,g&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255];return this.is224||_.push(u>>>24&255,u>>>16&255,u>>>8&255,u&255),_},P.prototype.array=P.prototype.digest,P.prototype.arrayBuffer=function(){this.finalize();var i=new ArrayBuffer(this.is224?28:32),d=new DataView(i);return d.setUint32(0,this.h0),d.setUint32(4,this.h1),d.setUint32(8,this.h2),d.setUint32(12,this.h3),d.setUint32(16,this.h4),d.setUint32(20,this.h5),d.setUint32(24,this.h6),this.is224||d.setUint32(28,this.h7),i};function oe(i,d,w){var p,g=typeof i;if(g==="string"){var h=[],E=i.length,u=0,_;for(p=0;p>>6,h[u++]=128|_&63):_<55296||_>=57344?(h[u++]=224|_>>>12,h[u++]=128|_>>>6&63,h[u++]=128|_&63):(_=65536+((_&1023)<<10|i.charCodeAt(++p)&1023),h[u++]=240|_>>>18,h[u++]=128|_>>>12&63,h[u++]=128|_>>>6&63,h[u++]=128|_&63);i=h}else if(g==="object"){if(i===null)throw new Error(e);if(j&&i.constructor===ArrayBuffer)i=new Uint8Array(i);else if(!Array.isArray(i)&&(!j||!ArrayBuffer.isView(i)))throw new Error(e)}else throw new Error(e);i.length>64&&(i=new P(d,!0).update(i).array());var L=[],N=[];for(p=0;p<64;++p){var H=i[p]||0;L[p]=92^H,N[p]=54^H}P.call(this,d,w),this.update(N),this.oKeyPad=L,this.inner=!0,this.sharedMemory=w}oe.prototype=new P,oe.prototype.finalize=function(){if(P.prototype.finalize.call(this),this.inner){this.inner=!1;var i=this.array();P.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(i),P.prototype.finalize.call(this)}};var D=ie();D.sha256=D,D.sha224=ie(!0),D.sha256.hmac=W(),D.sha224.hmac=W(!0),O?r.exports=D:(k.sha256=D.sha256,k.sha224=D.sha224)})()})(et);var $t=et.exports;const Wt=lt($t);class ye extends Error{}ye.prototype.name="InvalidTokenError";function Xt(r){return decodeURIComponent(atob(r).replace(/(.)/g,(e,s)=>{let k=s.charCodeAt(0).toString(16).toUpperCase();return k.length<2&&(k="0"+k),"%"+k}))}function Qt(r){let e=r.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Xt(e)}catch{return atob(e)}}function Te(r,e){if(typeof r!="string")throw new ye("Invalid token specified: must be a string");e||(e={});const s=e.header===!0?0:1,k=r.split(".")[s];if(typeof k!="string")throw new ye(`Invalid token specified: missing part #${s+1}`);let R;try{R=Qt(k)}catch(b){throw new ye(`Invalid token specified: invalid base64 for part #${s+1} (${b.message})`)}try{return JSON.parse(R)}catch(b){throw new ye(`Invalid token specified: invalid json for part #${s+1} (${b.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function tt(r){if(!(this instanceof tt))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,s,k=[],R,b={enable:!0,callbackList:[],interval:5},O=document.getElementsByTagName("script"),j=0;j-1?s=N(t.adapter):t&&typeof t.adapter=="object"?s=t.adapter:window.Cordova||window.cordova?s=N("cordova"):s=N(),t){if(typeof t.useNonce<"u"&&(v=t.useNonce),typeof t.checkLoginIframe<"u"&&(b.enable=t.checkLoginIframe),t.checkLoginIframeInterval&&(b.interval=t.checkLoginIframeInterval),t.onLoad==="login-required"&&(e.loginRequired=!0),t.responseMode)if(t.responseMode==="query"||t.responseMode==="fragment")e.responseMode=t.responseMode;else throw"Invalid value for responseMode";if(t.flow){switch(t.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=t.flow}if(t.timeSkew!=null&&(e.timeSkew=t.timeSkew),t.redirectUri&&(e.redirectUri=t.redirectUri),t.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=t.silentCheckSsoRedirectUri),typeof t.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=t.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof t.pkceMethod<"u"){if(t.pkceMethod!=="S256"&&t.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${t.pkceMethod}.`);e.pkceMethod=t.pkceMethod}else e.pkceMethod="S256";typeof t.enableLogging=="boolean"?e.enableLogging=t.enableLogging:e.enableLogging=!1,t.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof t.scope=="string"&&(e.scope=t.scope),typeof t.acrValues=="string"&&(e.acrValues=t.acrValues),typeof t.messageReceiveTimeout=="number"&&t.messageReceiveTimeout>0?e.messageReceiveTimeout=t.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var a=g(),f=g();f.promise.then(function(){e.onReady&&e.onReady(e.authenticated),a.setSuccess(e.authenticated)}).catch(function(y){a.setError(y)});var o=P();function m(){var y=function(I){I||(S.prompt="none"),t&&t.locale&&(S.locale=t.locale),e.login(S).then(function(){f.setSuccess()}).catch(function(X){f.setError(X)})},x=function(){var I=document.createElement("iframe"),X=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});I.setAttribute("src",X),I.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),I.setAttribute("title","keycloak-silent-check-sso"),I.style.display="none",document.body.appendChild(I);var ne=function(J){if(!(J.origin!==window.location.origin||I.contentWindow!==J.source)){var xe=d(J.data);W(xe,f),document.body.removeChild(I),window.removeEventListener("message",ne)}};window.addEventListener("message",ne)},S={};switch(t.onLoad){case"check-sso":b.enable?E().then(function(){_().then(function(I){I?f.setSuccess():e.silentCheckSsoRedirectUri?x():y(!1)}).catch(function(I){f.setError(I)})}):e.silentCheckSsoRedirectUri?x():y(!1);break;case"login-required":y(!0);break;default:throw"Invalid value for onLoad"}}function c(){var y=d(window.location.href);if(y&&window.history.replaceState(window.history.state,null,y.newUrl),y&&y.valid)return E().then(function(){W(y,f)}).catch(function(x){f.setError(x)});t?t.token&&t.refreshToken?(D(t.token,t.refreshToken,t.idToken),b.enable?E().then(function(){_().then(function(x){x?(e.onAuthSuccess&&e.onAuthSuccess(),f.setSuccess(),u()):f.setSuccess()}).catch(function(x){f.setError(x)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),f.setSuccess()}).catch(function(x){e.onAuthError&&e.onAuthError(),t.onLoad?m():f.setError(x)})):t.onLoad?m():f.setSuccess():f.setSuccess()}function l(){var y=g(),x=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",x),y.setSuccess())};return document.addEventListener("readystatechange",x),x(),y.promise}return o.then(function(){l().then(L).then(c).catch(function(y){a.setError(y)})}),o.catch(function(y){a.setError(y)}),a.promise},e.login=function(t){return s.login(t)};function re(t){var n=null,a=window.crypto||window.msCrypto;if(a&&a.getRandomValues&&window.Uint8Array)return n=new Uint8Array(t),a.getRandomValues(n),n;n=new Array(t);for(var f=0;f=0},e.hasResourceRole=function(t,n){if(!e.resourceAccess)return!1;var a=e.resourceAccess[n||e.clientId];return!!a&&a.roles.indexOf(t)>=0},e.loadUserProfile=function(){var t=V()+"/account",n=new XMLHttpRequest;n.open("GET",t,!0),n.setRequestHeader("Accept","application/json"),n.setRequestHeader("Authorization","bearer "+e.token);var a=g();return n.onreadystatechange=function(){n.readyState==4&&(n.status==200?(e.profile=JSON.parse(n.responseText),a.setSuccess(e.profile)):a.setError())},n.send(),a.promise},e.loadUserInfo=function(){var t=e.endpoints.userinfo(),n=new XMLHttpRequest;n.open("GET",t,!0),n.setRequestHeader("Accept","application/json"),n.setRequestHeader("Authorization","bearer "+e.token);var a=g();return n.onreadystatechange=function(){n.readyState==4&&(n.status==200?(e.userInfo=JSON.parse(n.responseText),a.setSuccess(e.userInfo)):a.setError())},n.send(),a.promise},e.isTokenExpired=function(t){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return B("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var n=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(t){if(isNaN(t))throw"Invalid minValidity";n-=t}return n<0},e.updateToken=function(t){var n=g();if(!e.refreshToken)return n.setError(),n.promise;t=t||5;var a=function(){var o=!1;if(t==-1?(o=!0,B("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(t))&&(o=!0,B("[KEYCLOAK] Refreshing token: token expired")),!o)n.setSuccess(!1);else{var m="grant_type=refresh_token&refresh_token="+e.refreshToken,c=e.endpoints.token();if(k.push(n),k.length==1){var l=new XMLHttpRequest;l.open("POST",c,!0),l.setRequestHeader("Content-type","application/x-www-form-urlencoded"),l.withCredentials=!0,m+="&client_id="+encodeURIComponent(e.clientId);var y=new Date().getTime();l.onreadystatechange=function(){if(l.readyState==4)if(l.status==200){B("[KEYCLOAK] Token refreshed"),y=(y+new Date().getTime())/2;var x=JSON.parse(l.responseText);D(x.access_token,x.refresh_token,x.id_token,y),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var S=k.pop();S!=null;S=k.pop())S.setSuccess(!0)}else{M("[KEYCLOAK] Failed to refresh token"),l.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var S=k.pop();S!=null;S=k.pop())S.setError(!0)}},l.send(m)}}};if(b.enable){var f=_();f.then(function(){a()}).catch(function(o){n.setError(o)})}else a();return n.promise},e.clearToken=function(){e.token&&(D(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function V(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function Ee(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function W(t,n){var a=t.code,f=t.error,o=t.prompt,m=new Date().getTime();if(t.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(t.kc_action_status),f){if(o!="none")if(t.error_description&&t.error_description==="authentication_expired")e.login(t.loginOptions);else{var c={error:f,error_description:t.error_description};e.onAuthError&&e.onAuthError(c),n&&n.setError(c)}else n&&n.setSuccess();return}else e.flow!="standard"&&(t.access_token||t.id_token)&&S(t.access_token,null,t.id_token,!0);if(e.flow!="implicit"&&a){var l="code="+a+"&grant_type=authorization_code",y=e.endpoints.token(),x=new XMLHttpRequest;x.open("POST",y,!0),x.setRequestHeader("Content-type","application/x-www-form-urlencoded"),l+="&client_id="+encodeURIComponent(e.clientId),l+="&redirect_uri="+t.redirectUri,t.pkceCodeVerifier&&(l+="&code_verifier="+t.pkceCodeVerifier),x.withCredentials=!0,x.onreadystatechange=function(){if(x.readyState==4)if(x.status==200){var I=JSON.parse(x.responseText);S(I.access_token,I.refresh_token,I.id_token,e.flow==="standard"),u()}else e.onAuthError&&e.onAuthError(),n&&n.setError()},x.send(l)}function S(I,X,ne,J){m=(m+new Date().getTime())/2,D(I,X,ne,m),v&&e.idTokenParsed&&e.idTokenParsed.nonce!=t.storedNonce?(B("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),n&&n.setError()):J&&(e.onAuthSuccess&&e.onAuthSuccess(),n&&n.setSuccess())}}function P(t){var n=g(),a;r?typeof r=="string"&&(a=r):a="keycloak.json";function f(x){x?e.endpoints={authorize:function(){return x.authorization_endpoint},token:function(){return x.token_endpoint},logout:function(){if(!x.end_session_endpoint)throw"Not supported by the OIDC server";return x.end_session_endpoint},checkSessionIframe:function(){if(!x.check_session_iframe)throw"Not supported by the OIDC server";return x.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!x.userinfo_endpoint)throw"Not supported by the OIDC server";return x.userinfo_endpoint}}:e.endpoints={authorize:function(){return V()+"/protocol/openid-connect/auth"},token:function(){return V()+"/protocol/openid-connect/token"},logout:function(){return V()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var S=V()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(S=S+"?version="+e.iframeVersion),S},thirdPartyCookiesIframe:function(){var S=V()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(S=S+"?version="+e.iframeVersion),S},register:function(){return V()+"/protocol/openid-connect/registrations"},userinfo:function(){return V()+"/protocol/openid-connect/userinfo"}}}if(a){var o=new XMLHttpRequest;o.open("GET",a,!0),o.setRequestHeader("Accept","application/json"),o.onreadystatechange=function(){if(o.readyState==4)if(o.status==200||oe(o)){var x=JSON.parse(o.responseText);e.authServerUrl=x["auth-server-url"],e.realm=x.realm,e.clientId=x.resource,f(null),n.setSuccess()}else n.setError()},o.send()}else{if(!r.clientId)throw"clientId missing";e.clientId=r.clientId;var m=r.oidcProvider;if(m)if(typeof m=="string"){var y;m.charAt(m.length-1)=="/"?y=m+".well-known/openid-configuration":y=m+"/.well-known/openid-configuration";var o=new XMLHttpRequest;o.open("GET",y,!0),o.setRequestHeader("Accept","application/json"),o.onreadystatechange=function(){if(o.readyState==4)if(o.status==200||oe(o)){var S=JSON.parse(o.responseText);f(S),n.setSuccess()}else n.setError()},o.send()}else f(m),n.setSuccess();else{if(!r.url){for(var c=document.getElementsByTagName("script"),l=0;l=0;--c){var l=m[c];o.data=="error"?l.setError():l.setSuccess(o.data=="unchanged")}}};return window.addEventListener("message",f,!1),t.promise}function u(){b.enable&&e.token&&setTimeout(function(){_().then(function(t){t&&u()})},b.interval*1e3)}function _(){var t=g();if(b.iframe&&b.iframeOrigin){var n=e.clientId+" "+(e.sessionId?e.sessionId:"");b.callbackList.push(t);var a=b.iframeOrigin;b.callbackList.length==1&&b.iframe.contentWindow.postMessage(n,a)}else t.setSuccess();return t.promise}function L(){var t=g();if(b.enable||e.silentCheckSsoRedirectUri){var n=document.createElement("iframe");n.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),n.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),n.setAttribute("title","keycloak-3p-check-iframe"),n.style.display="none",document.body.appendChild(n);var a=function(f){n.contentWindow===f.source&&(f.data!=="supported"&&f.data!=="unsupported"||(f.data==="unsupported"&&(M(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means: - - - 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`),b.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(n),window.removeEventListener("message",a),t.setSuccess()))};window.addEventListener("message",a,!1)}else t.setSuccess();return h(t.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function N(t){if(!t||t=="default")return{login:function(c){return window.location.assign(e.createLoginUrl(c)),g().promise},logout:async function(c){if((c?.logoutMethod??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(c));return}const y=e.createLogoutUrl(c),x=await fetch(y,{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:s.redirectUri(c,!1)})});if(x.redirected){window.location.href=x.url;return}if(x.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(c){return window.location.assign(e.createRegisterUrl(c)),g().promise},accountManagement:function(){var c=e.createAccountUrl();if(typeof c<"u")window.location.href=c;else throw"Not supported by the OIDC server";return g().promise},redirectUri:function(c,l){return c&&c.redirectUri?c.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(t=="cordova"){b.enable=!1;var n=function(c,l,y){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(c,l,y):window.open(c,l,y)},a=function(c){return c&&c.cordovaOptions?Object.keys(c.cordovaOptions).reduce(function(l,y){return l[y]=c.cordovaOptions[y],l},{}):{}},f=function(c){return Object.keys(c).reduce(function(l,y){return l.push(y+"="+c[y]),l},[]).join(",")},o=function(c){var l=a(c);return l.location="no",c&&c.prompt=="none"&&(l.hidden="yes"),f(l)},m=function(){return e.redirectUri||"http://localhost"};return{login:function(c){var l=g(),y=o(c),x=e.createLoginUrl(c),S=n(x,"_blank",y),I=!1,X=!1,ne=function(){X=!0,S.close()};return S.addEventListener("loadstart",function(J){if(J.url.indexOf(m())==0){var xe=d(J.url);W(xe,l),ne(),I=!0}}),S.addEventListener("loaderror",function(J){if(!I)if(J.url.indexOf(m())==0){var xe=d(J.url);W(xe,l),ne(),I=!0}else l.setError(),ne()}),S.addEventListener("exit",function(J){X||l.setError({reason:"closed_by_user"})}),l.promise},logout:function(c){var l=g(),y=e.createLogoutUrl(c),x=n(y,"_blank","location=no,hidden=yes,clearcache=yes"),S;return x.addEventListener("loadstart",function(I){I.url.indexOf(m())==0&&x.close()}),x.addEventListener("loaderror",function(I){I.url.indexOf(m())==0||(S=!0),x.close()}),x.addEventListener("exit",function(I){S?l.setError():(e.clearToken(),l.setSuccess())}),l.promise},register:function(c){var l=g(),y=e.createRegisterUrl(),x=o(c),S=n(y,"_blank",x);return S.addEventListener("loadstart",function(I){if(I.url.indexOf(m())==0){S.close();var X=d(I.url);W(X,l)}}),l.promise},accountManagement:function(){var c=e.createAccountUrl();if(typeof c<"u"){var l=n(c,"_blank","location=no");l.addEventListener("loadstart",function(y){y.url.indexOf(m())==0&&l.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(c){return m()}}}if(t=="cordova-native")return b.enable=!1,{login:function(c){var l=g(),y=e.createLoginUrl(c);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var S=d(x.url);W(S,l)}),window.cordova.plugins.browsertab.openUrl(y),l.promise},logout:function(c){var l=g(),y=e.createLogoutUrl(c);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),l.setSuccess()}),window.cordova.plugins.browsertab.openUrl(y),l.promise},register:function(c){var l=g(),y=e.createRegisterUrl(c);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var S=d(x.url);W(S,l)}),window.cordova.plugins.browsertab.openUrl(y),l.promise},accountManagement:function(){var c=e.createAccountUrl();if(typeof c<"u")window.cordova.plugins.browsertab.openUrl(c);else throw"Not supported by the OIDC server"},redirectUri:function(c){return c&&c.redirectUri?c.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+t}var H=function(){if(!(this instanceof H))return new H;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var t=this;function n(){for(var a=new Date().getTime(),f=0;f[T(this,ge).value],()=>{this.emit("changed")}));try{$(this,ae,tr(s.properties))}catch(k){throw new Error("Invalid keycloak configuration",{cause:k})}try{$(this,K,new tt(T(this,ae).keycloakConfig))}catch(k){throw new Error("Failed to construct keycloak instance",{cause:k})}ue(this,te,rt).call(this).catch(k=>{ue(this,te,we).call(this,{kind:"error",error:k}),T(this,Se).notify({level:"error",title:T(this,de).formatMessage({id:"loginFailed.title"}),message:T(this,de).formatMessage({id:"loginFailed.message"})}),ee.error("Failed to check if user is authenticated",k)})}destroy(){clearInterval(T(this,ce)),$(this,me,ft(T(this,me))),$(this,ce,void 0)}getAuthState(){return T(this,ge).value}getLoginBehavior(){return{kind:"effect",login:()=>{ee.debug("Login with options",T(this,ve)),T(this,K).login(T(this,ve))}}}logout(){ee.debug("Logout with options",T(this,pe)),T(this,K).logout(T(this,pe))}__refresh(s,k){clearInterval(T(this,ce)),$(this,ce,setInterval(()=>{T(this,K).updateToken(k).catch(R=>{ee.error("Failed to refresh token",R),ue(this,te,we).call(this,{kind:"not-authenticated"}),this.emit("changed"),this.destroy()})},s))}}Se=new WeakMap,de=new WeakMap,ae=new WeakMap,K=new WeakMap,pe=new WeakMap,ve=new WeakMap,ce=new WeakMap,me=new WeakMap,ge=new WeakMap,te=new WeakSet,rt=async function(){const s=T(this,ae),k=T(this,ae).keycloakInitOptions,R=s.refreshOptions;let b;try{b=await T(this,K).init(k)}catch(O){const j=typeof O=="string"?new Error(O):O;throw new Error("Failed to initialize keycloak session",{cause:j})}b?(ue(this,te,we).call(this,{kind:"authenticated",sessionInfo:{userId:T(this,K).subject?T(this,K).subject:"undefined",userName:T(this,K).idTokenParsed?.preferred_username,attributes:{keycloak:T(this,K),familyName:T(this,K).idTokenParsed?.family_name,givenName:T(this,K).idTokenParsed?.given_name,userName:T(this,K).idTokenParsed?.preferred_username}}}),ee.debug(`User ${T(this,K).subject} is authenticated`),R.autoRefresh&&(ee.debug("Starting auto-refresh",R),this.__refresh(R.interval,R.timeLeft))):(ue(this,te,we).call(this,{kind:"not-authenticated"}),ee.debug("User is not authenticated"))},we=function(s){T(this,ge).value=s};const Be={autoRefresh:!0,interval:6e3,timeLeft:70},De={onLoad:"check-sso",pkceMethod:"S256"};function tr(r){const{keycloakOptions:e}=r,{refreshOptions:s,keycloakInitOptions:k,keycloakConfig:R}=e;return{refreshOptions:{...rr(s)},keycloakInitOptions:{...nr(k)},keycloakConfig:{...ir(R)}}}function rr(r){return!r||je(r)?(ee.warn(`The autorefresh options of the Keycloak configuration should be set to ensure automatic refreshes at specified intervals. Defaulting to '${Be}'.`),Object.assign({},{...Be})):r}function nr(r){return!r||je(r)?(ee.warn(`The Keycloak init options of the keycloak configuration should be set. Defaulting to '${De}'.`),Object.assign({},{...De})):r}function ir(r){if(!r||je(r))throw new Error("KeycloakConfig not found: The Keycloak configuration options are required by the plugin to perform login and logout operations");return r}const je=r=>r&&Object.keys(r).length===0&&r.constructor===Object,or={"keycloak-sample":{name:"keycloak-sample",services:{SampleTokenInterceptor:{name:"SampleTokenInterceptor",clazz:Ft,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/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:vt,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},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:{}},"@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:gt,provides:[{name:"http.HttpService",qualifier:void 0}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/authentication":{name:"@open-pioneer/authentication",services:{AuthServiceImpl:{name:"AuthServiceImpl",clazz:kt,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:er,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}}}},sr="",ar=["de","en"];function cr(r){switch(r){case"de":return Me(()=>import("./DHsSmHrBD0L-.js"),[],import.meta.url).then(e=>e.default);case"en":return Me(()=>import("./DOFgVa_i9Fer.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${r}'`)}const ur=dt(sr),lr=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:cr,locales:ar,packages:or,styles:ur},Symbol.toStringTag,{value:"Module"})),fr="keycloak-sample",Re=bt.bind(void 0,fr);function hr(){const r=Re("authentication.AuthService"),e=()=>{r.logout()};return F.jsx(ze,{colorScheme:"red",onClick:e,children:"Log out"})}function dr(){const r=Re("authentication.AuthService"),e=Re("http.HttpService"),s=xt(r),R=(s.kind=="authenticated"?s.sessionInfo:void 0)?.userName,b=()=>{e.fetch("https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json").catch(O=>console.error("Request failed",O))};return F.jsxs(F.Fragment,{children:[F.jsx(mt,{}),F.jsxs(St,{maxW:"800px",children:[F.jsxs(_t,{height:"100%",direction:"column",overflow:"hidden",children:[F.jsx(Ne,{as:"h1",size:"2xl",children:"Keycloak Sample"}),F.jsxs(He,{mt:4,spacing:2,align:"stretch",children:[F.jsx(Ne,{as:"h2",size:"xl",children:"Additional Setup"}),F.jsx(le,{children:"This application requires additional setup. Most importantly, a Keycloak installation must be present."}),F.jsxs(le,{children:["The following environment properties should be set via vite (e.g. in"," ",F.jsx(se,{children:".env.local"}),"):"]}),F.jsxs(Et,{children:[F.jsxs(Ie,{children:[F.jsx(se,{children:"VITE_KEYCLOAK_CONFIG_URL"})," (the URL to the Keycloak instance)"]}),F.jsxs(Ie,{children:[F.jsx(se,{children:"VITE_KEYCLOAK_CONFIG_REALM"})," (the Keycloak realm)"]}),F.jsxs(Ie,{children:[F.jsx(se,{children:"VITE_KEYCLOAK_CONFIG_CLIENT_ID"})," (the client id of this application)"]})]}),F.jsxs(le,{textAlign:"center",children:[F.jsx(le,{as:"b",children:"Status: "}),R!=null?F.jsxs(F.Fragment,{children:["Logged in as ",F.jsx(se,{children:R}),"."]}):F.jsx(F.Fragment,{children:"Not logged in."})]})]})]}),F.jsx(yt,{renderErrorFallback:O=>F.jsxs(F.Fragment,{children:[F.jsx(Ke,{children:"An Error occured while trying to login!"}),F.jsx(Ke,{color:"red",children:O.message})]}),children:F.jsxs(He,{align:"center",p:10,mt:2,spacing:3,border:"2px solid red",borderRadius:5,children:[F.jsx(le,{textAlign:"center",children:"This part of the application is only visible when logged in."}),F.jsx(hr,{}),F.jsxs(le,{children:["The following button triggers a request against a backend. The request will automatically include the Keycloak token (see"," ",F.jsx(se,{children:"SampleTokenInterceptor.ts"}),"):"]}),F.jsx(ze,{onClick:b,children:"Trigger Request With Token"})]})})]})]})}const pr=new URLSearchParams(window.location.search),vr=pr.get("lang")||void 0,mr=pt({component:dr,appMetadata:lr,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:vr}});customElements.define("keycloak-app-element",mr); diff --git a/core-packages/assets/sP3S3hT6OXRb.js b/core-packages/assets/ByVX2dWNILB_.js similarity index 98% rename from core-packages/assets/sP3S3hT6OXRb.js rename to core-packages/assets/ByVX2dWNILB_.js index 3dedd6ecb..4aabe859c 100644 --- a/core-packages/assets/sP3S3hT6OXRb.js +++ b/core-packages/assets/ByVX2dWNILB_.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,H as St,a as jt,O as kt,b as Pt}from"./D2oXSZAF25Nh.js";import{F as wt}from"./CJAaOOGk-WF8.js";import{u as Et,I as Ct}from"./DVtiiguhxXOo.js";import{c as ie,p as Tt,r as ze,v as Fe}from"./D-Zd7p0hx1Jn.js";import{b as It,L as _t}from"./vDSfyahLBK_0.js";import{a as ae,d as A,C as Rt,H as b}from"./D5d8MKrNO9TY.js";import{u as Dt,C as H,T as Nt}from"./BpoHbMrAD09_.js";import{B as Le}from"./CW9VlGYS245s.js";import{S}from"./CZpnpGhF6lFQ.js";import{B as k}from"./ByauQZPFLiUp.js";import{D}from"./4I-HvAsJCy0u.js";import{I as le}from"./CB_-DziTXLXN.js";import{a as ce}from"./Ciw69F18KeCb.js";import{S as ue}from"./ASlqsl1uPZkA.js";import"./Bux-xGeHLEc6.js";import"./NWwYVL9TBgXj.js";function Mt(t,e,s,r){return t.addEventListener(e,s,r),()=>{t.removeEventListener(e,s,r)}}function At(t){const e=It(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),Je=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(Je))},Yt=()=>{$=!0,me=!0,fe||qe(Je)},$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 Jt{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 Qt=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>Qt(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 Jt(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 Qe=E(function(e,s){return n.jsx(xe,{ref:s,placement:"right",...e,className:_("chakra-input__right-addon",e.className)})});Qe.displayName="InputRightAddon";Qe.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}),[J,Se]=m.useState(!1),[Q,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=Fe(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,Te]=[`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=Tt(se,l.min,l.max);return l.step&&(L=parseFloat(ze(L,l.min,l.step))),L=ie(L,l.min,l.max),L},[B,y,v]),T=m.useCallback(o=>{const l=v.current;l.isInteractive&&(o=parseFloat(ze(o,l.min,F)),o=ie(o,l.min,l.max),q(o))},[F,q,v]),I=m.useMemo(()=>({stepUp(o=F){const l=y?g-o:g+o;T(l)},stepDown(o=F){const l=y?g+o:g-o;T(l)},reset(){T(d||0)},stepTo(o){T(o)}}),[T,y,g,F,d]),Ie=m.useCallback(o=>{const l=v.current,N={ArrowRight:()=>I.stepUp(),ArrowUp:()=>I.stepUp(),ArrowLeft:()=>I.stepDown(),ArrowDown:()=>I.stepDown(),PageUp:()=>I.stepUp(ee),PageDown:()=>I.stepDown(ee),Home:()=>T(l.min),End:()=>T(l.max)}[o.key];N&&(o.preventDefault(),o.stopPropagation(),N(o),l.eventSource="keyboard")},[I,T,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(Q),style:{...o.style,...De}}),[ye,a,Q,De]),mt=m.useCallback((o={},l=null)=>({...o,ref:re(l,te),id:Te,"data-disabled":A(a),style:{...o.style,...Ne}}),[a,Te,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(J),"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,Ie),onFocus:oe(o.onFocus,()=>je(!0)),onBlur:oe(o.onBlur,()=>je(!1))}),[Z,Ce,J,_e,e,s,g,c,a,f,Y,ve,Re,Ie]),gt=m.useCallback((o,l=null)=>{const R=!(o.values),N=g>=o.value,M=Fe(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:Q,isDragging:J},actions:I,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(Le,{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(Le,{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,H as St,a as jt,O as kt,b as Pt}from"./D2oXSZAF25Nh.js";import{F as wt}from"./CJAaOOGk-WF8.js";import{u as Et,I as Ct}from"./DVtiiguhxXOo.js";import{c as ie,p as Tt,r as ze,v as Fe}from"./D-Zd7p0hx1Jn.js";import{b as It,L as _t}from"./vDSfyahLBK_0.js";import{a as ae,d as A,C as Rt,H as b}from"./D5d8MKrNO9TY.js";import{u as Dt,C as H,T as Nt}from"./BpoHbMrAD09_.js";import{B as Le}from"./CW9VlGYS245s.js";import{S}from"./CZpnpGhF6lFQ.js";import{B as k}from"./ByauQZPFLiUp.js";import{D}from"./4I-HvAsJCy0u.js";import{I as le}from"./CB_-DziTXLXN.js";import{a as ce}from"./Ciw69F18KeCb.js";import{S as ue}from"./ASlqsl1uPZkA.js";import"./Bux-xGeHLEc6.js";import"./NWwYVL9TBgXj.js";function Mt(t,e,s,r){return t.addEventListener(e,s,r),()=>{t.removeEventListener(e,s,r)}}function At(t){const e=It(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),Je=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(Je))},Yt=()=>{$=!0,me=!0,fe||qe(Je)},$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 Jt{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 Qt=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>Qt(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 Jt(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 Qe=E(function(e,s){return n.jsx(xe,{ref:s,placement:"right",...e,className:_("chakra-input__right-addon",e.className)})});Qe.displayName="InputRightAddon";Qe.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}),[J,Se]=m.useState(!1),[Q,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=Fe(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,Te]=[`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=Tt(se,l.min,l.max);return l.step&&(L=parseFloat(ze(L,l.min,l.step))),L=ie(L,l.min,l.max),L},[B,y,v]),T=m.useCallback(o=>{const l=v.current;l.isInteractive&&(o=parseFloat(ze(o,l.min,F)),o=ie(o,l.min,l.max),q(o))},[F,q,v]),I=m.useMemo(()=>({stepUp(o=F){const l=y?g-o:g+o;T(l)},stepDown(o=F){const l=y?g+o:g-o;T(l)},reset(){T(d||0)},stepTo(o){T(o)}}),[T,y,g,F,d]),Ie=m.useCallback(o=>{const l=v.current,N={ArrowRight:()=>I.stepUp(),ArrowUp:()=>I.stepUp(),ArrowLeft:()=>I.stepDown(),ArrowDown:()=>I.stepDown(),PageUp:()=>I.stepUp(ee),PageDown:()=>I.stepDown(ee),Home:()=>T(l.min),End:()=>T(l.max)}[o.key];N&&(o.preventDefault(),o.stopPropagation(),N(o),l.eventSource="keyboard")},[I,T,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(Q),style:{...o.style,...De}}),[ye,a,Q,De]),mt=m.useCallback((o={},l=null)=>({...o,ref:re(l,te),id:Te,"data-disabled":A(a),style:{...o.style,...Ne}}),[a,Te,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(J),"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,Ie),onFocus:oe(o.onFocus,()=>je(!0)),onBlur:oe(o.onBlur,()=>je(!1))}),[Z,Ce,J,_e,e,s,g,c,a,f,Y,ve,Re,Ie]),gt=m.useCallback((o,l=null)=>{const R=!(o.values),N=g>=o.value,M=Fe(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:Q,isDragging:J},actions:I,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(Le,{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(Le,{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/assets/BHNCJz8h4sy0.js b/core-packages/assets/C9A_GJKpT1nq.js similarity index 76% rename from core-packages/assets/BHNCJz8h4sy0.js rename to core-packages/assets/C9A_GJKpT1nq.js index cb0511ed3..2ce882340 100644 --- a/core-packages/assets/BHNCJz8h4sy0.js +++ b/core-packages/assets/C9A_GJKpT1nq.js @@ -1,3 +1,3 @@ -import{j as e,a as r,b as o}from"./D2oXSZAF25Nh.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:{}},"styling-sample-components":{name:"styling-sample-components",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"./D2oXSZAF25Nh.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:{}},"styling-sample-components":{name:"styling-sample-components",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:{}}},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/CCCkDjBfC1Rx.js b/core-packages/assets/CCCkDjBfC1Rx.js new file mode 100644 index 000000000..d7d93693a --- /dev/null +++ b/core-packages/assets/CCCkDjBfC1Rx.js @@ -0,0 +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 q,h as S,j as e,l as C,r as p,P as w,Q as _,R as D,S as H,a as U,b as V}from"./D2oXSZAF25Nh.js";import{u as G,I as K}from"./DVtiiguhxXOo.js";import{C as F,H as N}from"./D5d8MKrNO9TY.js";import{V as Q}from"./C01kSkQ--ETF.js";import{T as Y}from"./DfwCaCqN11zg.js";import{F as b}from"./NWwYVL9TBgXj.js";import{F as L}from"./DjuJFArFKNLG.js";import{I as y}from"./CB_-DziTXLXN.js";import{B as h}from"./ByauQZPFLiUp.js";import{H as $}from"./BLexmwLyHax-.js";import{r as J,A as W,u as X,F as Z}from"./B67hOg_U-Yp9.js";import{_ as P}from"./CmsKOCeNyeyo.js";import{u as ee}from"./CEqcg7qjrBaf.js";import{F as te}from"./CJAaOOGk-WF8.js";import{B as ne}from"./CW9VlGYS245s.js";import"./CZpnpGhF6lFQ.js";const re=q("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=G(),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=C("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=C("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),B=m=>{m.preventDefault();const O=t(s,i);M(O||""),R(!1)};return e.jsx(F,{p:5,children:e.jsxs(Q,{as:"form",onSubmit:B,spacing:4,children:[e.jsx(N,{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(K,{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/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/authentication":{name:"@open-pioneer/authentication",services:{AuthServiceImpl:{name:"AuthServiceImpl",clazz:W,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 P(()=>import("./P9WplnIxWHzS.js"),[],import.meta.url).then(n=>n.default);case"de":return P(()=>import("./z2D46c5wMnzO.js"),[],import.meta.url).then(n=>n.default)}throw new Error(`Unsupported locale: '${t}'`)}const ue=U(oe),pe=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:le,locales:ce,packages:ae,styles:ue},Symbol.toStringTag,{value:"Module"})),me="auth-app",de=ee.bind(void 0,me);function he(){const t=de("authentication.AuthService"),n=X(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(Z,{errorFallback:ge,children:e.jsxs(F,{p:5,children:[e.jsx(N,{as:"h1",children:"Authenticated"}),"This is the actual content of the app. Authentication was successful.",e.jsx(te,{pt:5,flexDirection:"row",justifyContent:"center",children:e.jsx(he,{})})]})})}function ge(t){return e.jsxs(e.Fragment,{children:[e.jsx(ne,{margin:2,color:"red",children:t.error.message}),e.jsx(h,{margin:2,onClick:()=>window.location.reload(),children:"reload"})]})}const xe=V({component:fe,appMetadata:pe});customElements.define("auth-app",xe); diff --git a/core-packages/assets/C5gzsCUSeGnZ.js b/core-packages/assets/CDTvC2sBv52w.js similarity index 89% rename from core-packages/assets/C5gzsCUSeGnZ.js rename to core-packages/assets/CDTvC2sBv52w.js index 215b9a6a2..bb2670859 100644 --- a/core-packages/assets/C5gzsCUSeGnZ.js +++ b/core-packages/assets/CDTvC2sBv52w.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,b as g}from"./D2oXSZAF25Nh.js";import{u as x}from"./CEqcg7qjrBaf.js";import{B as h}from"./ByauQZPFLiUp.js";import{C as A,H as l}from"./D5d8MKrNO9TY.js";import{T as a}from"./DfwCaCqN11zg.js";import{V as w}from"./C01kSkQ--ETF.js";import"./CZpnpGhF6lFQ.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/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=x.bind(void 0,k);function q(){const e=C("extension-app.ActionService"),i=e.getActionInfo().map(({id:n,text:t})=>r.jsx(h,{onClick:()=>e.triggerAction(n),children:t},n));return r.jsxs(A,{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(w,{align:"start",children:i})]})}const B=g({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,b as g}from"./D2oXSZAF25Nh.js";import{u as x}from"./CEqcg7qjrBaf.js";import{B as h}from"./ByauQZPFLiUp.js";import{C as A,H as l}from"./D5d8MKrNO9TY.js";import{T as a}from"./DfwCaCqN11zg.js";import{V as w}from"./C01kSkQ--ETF.js";import"./CZpnpGhF6lFQ.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/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=x.bind(void 0,k);function q(){const e=C("extension-app.ActionService"),i=e.getActionInfo().map(({id:n,text:t})=>r.jsx(h,{onClick:()=>e.triggerAction(n),children:t},n));return r.jsxs(A,{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(w,{align:"start",children:i})]})}const B=g({component:q,appMetadata:T});customElements.define("extension-app",B); diff --git a/core-packages/assets/CfkrDmERxVI8.js b/core-packages/assets/CfkrDmERxVI8.js new file mode 100644 index 000000000..7657e9d20 --- /dev/null +++ b/core-packages/assets/CfkrDmERxVI8.js @@ -0,0 +1,13 @@ +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,a1 as Me,G as Ne,j as A,n as He,l as Ke,a7 as Be,Z as ze,_ as De,a8 as Ve,c as qe,a as Je,b as Ye}from"./D2oXSZAF25Nh.js";import{r as Ge,A as $e,u as We,F as Xe}from"./B67hOg_U-Yp9.js";import{N as Qe,a as Ze}from"./LKojhJIlmLP8.js";import{H as er}from"./CNWmJGa2bJMS.js";import{_ as Fe}from"./CmsKOCeNyeyo.js";import{u as rr}from"./CEqcg7qjrBaf.js";import{B as Re}from"./ByauQZPFLiUp.js";import{C as tr,H as Ae}from"./D5d8MKrNO9TY.js";import{F as nr}from"./CJAaOOGk-WF8.js";import{V as Ie}from"./C01kSkQ--ETF.js";import{T as ae}from"./DfwCaCqN11zg.js";import{U as or,L as we}from"./Cuqg4Q-7MAjf.js";import{B as Ue}from"./CW9VlGYS245s.js";import"./DMyVcVfFoYJc.js";import"./CZpnpGhF6lFQ.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 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2014-2024 + * @license MIT + */(function(h){(function(){var e="input is invalid type",x=typeof window=="object",b=x?window:{};b.JS_SHA256_NO_WINDOW&&(x=!1);var L=!x&&typeof self=="object",y=!b.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;y?b=ze:L&&(b=self);var j=!b.JS_SHA256_NO_COMMON_JS&&!0&&h.exports,H=!b.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",m="0123456789abcdef".split(""),$=[-2147483648,8388608,32768,128],N=[24,16,8,0],ne=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],oe=["hex","array","digest","arrayBuffer"],C=[];(b.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(n){return Object.prototype.toString.call(n)==="[object Array]"}),H&&(b.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(n){return typeof n=="object"&&n.buffer&&n.buffer.constructor===ArrayBuffer});var ve=function(n,f){return function(w){return new R(f,!0).update(w)[n]()}},ge=function(n){var f=ve("hex",n);y&&(f=D(f,n)),f.create=function(){return new R(n)},f.update=function(v){return f.create().update(v)};for(var w=0;w>>2]|=n[v]<>>2]|=d<>>2]|=(192|d>>>6)<>>2]|=(128|d&63)<=57344?(s[u>>>2]|=(224|d>>>12)<>>2]|=(128|d>>>6&63)<>>2]|=(128|d&63)<>>2]|=(240|d>>>18)<>>2]|=(128|d>>>12&63)<>>2]|=(128|d>>>6&63)<>>2]|=(128|d&63)<=64?(this.block=s[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var n=this.blocks,f=this.lastByteIndex;n[16]=this.block,n[f>>>2]|=$[f&3],this.block=n[16],f>=56&&(this.hashed||this.hash(),n[0]=this.block,n[16]=n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=0),n[14]=this.hBytes<<3|this.bytes>>>29,n[15]=this.bytes<<3,this.hash()}},R.prototype.hash=function(){var n=this.h0,f=this.h1,w=this.h2,d=this.h3,v=this.h4,u=this.h5,F=this.h6,s=this.h7,_=this.blocks,T,O,P,B,I,V,r,t,i,l,o;for(T=16;T<64;++T)I=_[T-15],O=(I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3,I=_[T-2],P=(I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10,_[T]=_[T-16]+O+_[T-7]+P<<0;for(o=f&w,T=0;T<64;T+=4)this.first?(this.is224?(t=300032,I=_[0]-1413257819,s=I-150054599<<0,d=I+24177077<<0):(t=704751109,I=_[0]-210244248,s=I-1521486534<<0,d=I+143694565<<0),this.first=!1):(O=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),P=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),t=n&f,B=t^n&w^o,r=v&u^~v&F,I=s+P+r+ne[T]+_[T],V=O+B,s=d+I<<0,d=I+V<<0),O=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),P=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),i=d&n,B=i^d&f^t,r=s&v^~s&u,I=F+P+r+ne[T+1]+_[T+1],V=O+B,F=w+I<<0,w=I+V<<0,O=(w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10),P=(F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7),l=w&d,B=l^w&n^i,r=F&s^~F&v,I=u+P+r+ne[T+2]+_[T+2],V=O+B,u=f+I<<0,f=I+V<<0,O=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),P=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),o=f&w,B=o^f&d^l,r=u&F^~u&s,I=v+P+r+ne[T+3]+_[T+3],V=O+B,v=n+I<<0,n=I+V<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+n<<0,this.h1=this.h1+f<<0,this.h2=this.h2+w<<0,this.h3=this.h3+d<<0,this.h4=this.h4+v<<0,this.h5=this.h5+u<<0,this.h6=this.h6+F<<0,this.h7=this.h7+s<<0},R.prototype.hex=function(){this.finalize();var n=this.h0,f=this.h1,w=this.h2,d=this.h3,v=this.h4,u=this.h5,F=this.h6,s=this.h7,_=m[n>>>28&15]+m[n>>>24&15]+m[n>>>20&15]+m[n>>>16&15]+m[n>>>12&15]+m[n>>>8&15]+m[n>>>4&15]+m[n&15]+m[f>>>28&15]+m[f>>>24&15]+m[f>>>20&15]+m[f>>>16&15]+m[f>>>12&15]+m[f>>>8&15]+m[f>>>4&15]+m[f&15]+m[w>>>28&15]+m[w>>>24&15]+m[w>>>20&15]+m[w>>>16&15]+m[w>>>12&15]+m[w>>>8&15]+m[w>>>4&15]+m[w&15]+m[d>>>28&15]+m[d>>>24&15]+m[d>>>20&15]+m[d>>>16&15]+m[d>>>12&15]+m[d>>>8&15]+m[d>>>4&15]+m[d&15]+m[v>>>28&15]+m[v>>>24&15]+m[v>>>20&15]+m[v>>>16&15]+m[v>>>12&15]+m[v>>>8&15]+m[v>>>4&15]+m[v&15]+m[u>>>28&15]+m[u>>>24&15]+m[u>>>20&15]+m[u>>>16&15]+m[u>>>12&15]+m[u>>>8&15]+m[u>>>4&15]+m[u&15]+m[F>>>28&15]+m[F>>>24&15]+m[F>>>20&15]+m[F>>>16&15]+m[F>>>12&15]+m[F>>>8&15]+m[F>>>4&15]+m[F&15];return this.is224||(_+=m[s>>>28&15]+m[s>>>24&15]+m[s>>>20&15]+m[s>>>16&15]+m[s>>>12&15]+m[s>>>8&15]+m[s>>>4&15]+m[s&15]),_},R.prototype.toString=R.prototype.hex,R.prototype.digest=function(){this.finalize();var n=this.h0,f=this.h1,w=this.h2,d=this.h3,v=this.h4,u=this.h5,F=this.h6,s=this.h7,_=[n>>>24&255,n>>>16&255,n>>>8&255,n&255,f>>>24&255,f>>>16&255,f>>>8&255,f&255,w>>>24&255,w>>>16&255,w>>>8&255,w&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,v>>>24&255,v>>>16&255,v>>>8&255,v&255,u>>>24&255,u>>>16&255,u>>>8&255,u&255,F>>>24&255,F>>>16&255,F>>>8&255,F&255];return this.is224||_.push(s>>>24&255,s>>>16&255,s>>>8&255,s&255),_},R.prototype.array=R.prototype.digest,R.prototype.arrayBuffer=function(){this.finalize();var n=new ArrayBuffer(this.is224?28:32),f=new DataView(n);return f.setUint32(0,this.h0),f.setUint32(4,this.h1),f.setUint32(8,this.h2),f.setUint32(12,this.h3),f.setUint32(16,this.h4),f.setUint32(20,this.h5),f.setUint32(24,this.h6),this.is224||f.setUint32(28,this.h7),n};function Z(n,f,w){var d,v=typeof n;if(v==="string"){var u=[],F=n.length,s=0,_;for(d=0;d>>6,u[s++]=128|_&63):_<55296||_>=57344?(u[s++]=224|_>>>12,u[s++]=128|_>>>6&63,u[s++]=128|_&63):(_=65536+((_&1023)<<10|n.charCodeAt(++d)&1023),u[s++]=240|_>>>18,u[s++]=128|_>>>12&63,u[s++]=128|_>>>6&63,u[s++]=128|_&63);n=u}else if(v==="object"){if(n===null)throw new Error(e);if(H&&n.constructor===ArrayBuffer)n=new Uint8Array(n);else if(!Array.isArray(n)&&(!H||!ArrayBuffer.isView(n)))throw new Error(e)}else throw new Error(e);n.length>64&&(n=new R(f,!0).update(n).array());var T=[],O=[];for(d=0;d<64;++d){var P=n[d]||0;T[d]=92^P,O[d]=54^P}R.call(this,f,w),this.update(O),this.oKeyPad=T,this.inner=!0,this.sharedMemory=w}Z.prototype=new R,Z.prototype.finalize=function(){if(R.prototype.finalize.call(this),this.inner){this.inner=!1;var n=this.array();R.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(n),R.prototype.finalize.call(this)}};var K=ge();K.sha256=K,K.sha224=ge(!0),K.sha256.hmac=J(),K.sha224.hmac=J(!0),j?h.exports=K:(b.sha256=K.sha256,b.sha224=K.sha224)})()})(Le);var cr=Le.exports;const lr=De(cr);class fe extends Error{}fe.prototype.name="InvalidTokenError";function ur(h){return decodeURIComponent(atob(h).replace(/(.)/g,(e,x)=>{let b=x.charCodeAt(0).toString(16).toUpperCase();return b.length<2&&(b="0"+b),"%"+b}))}function fr(h){let e=h.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return ur(e)}catch{return atob(e)}}function be(h,e){if(typeof h!="string")throw new fe("Invalid token specified: must be a string");e||(e={});const x=e.header===!0?0:1,b=h.split(".")[x];if(typeof b!="string")throw new fe(`Invalid token specified: missing part #${x+1}`);let L;try{L=fr(b)}catch(y){throw new fe(`Invalid token specified: invalid base64 for part #${x+1} (${y.message})`)}try{return JSON.parse(L)}catch(y){throw new fe(`Invalid token specified: invalid json for part #${x+1} (${y.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function je(h){if(!(this instanceof je))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,x,b=[],L,y={enable:!0,callbackList:[],interval:5},j=document.getElementsByTagName("script"),H=0;H-1?x=O(r.adapter):r&&typeof r.adapter=="object"?x=r.adapter:window.Cordova||window.cordova?x=O("cordova"):x=O(),r){if(typeof r.useNonce<"u"&&(m=r.useNonce),typeof r.checkLoginIframe<"u"&&(y.enable=r.checkLoginIframe),r.checkLoginIframeInterval&&(y.interval=r.checkLoginIframeInterval),r.onLoad==="login-required"&&(e.loginRequired=!0),r.responseMode)if(r.responseMode==="query"||r.responseMode==="fragment")e.responseMode=r.responseMode;else throw"Invalid value for responseMode";if(r.flow){switch(r.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=r.flow}if(r.timeSkew!=null&&(e.timeSkew=r.timeSkew),r.redirectUri&&(e.redirectUri=r.redirectUri),r.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=r.silentCheckSsoRedirectUri),typeof r.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=r.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof r.pkceMethod<"u"){if(r.pkceMethod!=="S256"&&r.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${r.pkceMethod}.`);e.pkceMethod=r.pkceMethod}else e.pkceMethod="S256";typeof r.enableLogging=="boolean"?e.enableLogging=r.enableLogging:e.enableLogging=!1,r.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof r.scope=="string"&&(e.scope=r.scope),typeof r.acrValues=="string"&&(e.acrValues=r.acrValues),typeof r.messageReceiveTimeout=="number"&&r.messageReceiveTimeout>0?e.messageReceiveTimeout=r.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var i=v(),l=v();l.promise.then(function(){e.onReady&&e.onReady(e.authenticated),i.setSuccess(e.authenticated)}).catch(function(k){i.setError(k)});var o=R();function p(){var k=function(U){U||(S.prompt="none"),r&&r.locale&&(S.locale=r.locale),e.login(S).then(function(){l.setSuccess()}).catch(function(Y){l.setError(Y)})},g=function(){var U=document.createElement("iframe"),Y=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});U.setAttribute("src",Y),U.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),U.setAttribute("title","keycloak-silent-check-sso"),U.style.display="none",document.body.appendChild(U);var Q=function(z){if(!(z.origin!==window.location.origin||U.contentWindow!==z.source)){var ue=f(z.data);J(ue,l),document.body.removeChild(U),window.removeEventListener("message",Q)}};window.addEventListener("message",Q)},S={};switch(r.onLoad){case"check-sso":y.enable?F().then(function(){_().then(function(U){U?l.setSuccess():e.silentCheckSsoRedirectUri?g():k(!1)}).catch(function(U){l.setError(U)})}):e.silentCheckSsoRedirectUri?g():k(!1);break;case"login-required":k(!0);break;default:throw"Invalid value for onLoad"}}function a(){var k=f(window.location.href);if(k&&window.history.replaceState(window.history.state,null,k.newUrl),k&&k.valid)return F().then(function(){J(k,l)}).catch(function(g){l.setError(g)});r?r.token&&r.refreshToken?(K(r.token,r.refreshToken,r.idToken),y.enable?F().then(function(){_().then(function(g){g?(e.onAuthSuccess&&e.onAuthSuccess(),l.setSuccess(),s()):l.setSuccess()}).catch(function(g){l.setError(g)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),l.setSuccess()}).catch(function(g){e.onAuthError&&e.onAuthError(),r.onLoad?p():l.setError(g)})):r.onLoad?p():l.setSuccess():l.setSuccess()}function c(){var k=v(),g=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",g),k.setSuccess())};return document.addEventListener("readystatechange",g),g(),k.promise}return o.then(function(){c().then(T).then(a).catch(function(k){i.setError(k)})}),o.catch(function(k){i.setError(k)}),i.promise},e.login=function(r){return x.login(r)};function ne(r){var t=null,i=window.crypto||window.msCrypto;if(i&&i.getRandomValues&&window.Uint8Array)return t=new Uint8Array(r),i.getRandomValues(t),t;t=new Array(r);for(var l=0;l=0},e.hasResourceRole=function(r,t){if(!e.resourceAccess)return!1;var i=e.resourceAccess[t||e.clientId];return!!i&&i.roles.indexOf(r)>=0},e.loadUserProfile=function(){var r=D()+"/account",t=new XMLHttpRequest;t.open("GET",r,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+e.token);var i=v();return t.onreadystatechange=function(){t.readyState==4&&(t.status==200?(e.profile=JSON.parse(t.responseText),i.setSuccess(e.profile)):i.setError())},t.send(),i.promise},e.loadUserInfo=function(){var r=e.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",r,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+e.token);var i=v();return t.onreadystatechange=function(){t.readyState==4&&(t.status==200?(e.userInfo=JSON.parse(t.responseText),i.setSuccess(e.userInfo)):i.setError())},t.send(),i.promise},e.isTokenExpired=function(r){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return $("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(r){if(isNaN(r))throw"Invalid minValidity";t-=r}return t<0},e.updateToken=function(r){var t=v();if(!e.refreshToken)return t.setError(),t.promise;r=r||5;var i=function(){var o=!1;if(r==-1?(o=!0,$("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(r))&&(o=!0,$("[KEYCLOAK] Refreshing token: token expired")),!o)t.setSuccess(!1);else{var p="grant_type=refresh_token&refresh_token="+e.refreshToken,a=e.endpoints.token();if(b.push(t),b.length==1){var c=new XMLHttpRequest;c.open("POST",a,!0),c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c.withCredentials=!0,p+="&client_id="+encodeURIComponent(e.clientId);var k=new Date().getTime();c.onreadystatechange=function(){if(c.readyState==4)if(c.status==200){$("[KEYCLOAK] Token refreshed"),k=(k+new Date().getTime())/2;var g=JSON.parse(c.responseText);K(g.access_token,g.refresh_token,g.id_token,k),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var S=b.pop();S!=null;S=b.pop())S.setSuccess(!0)}else{N("[KEYCLOAK] Failed to refresh token"),c.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var S=b.pop();S!=null;S=b.pop())S.setError(!0)}},c.send(p)}}};if(y.enable){var l=_();l.then(function(){i()}).catch(function(o){t.setError(o)})}else i();return t.promise},e.clearToken=function(){e.token&&(K(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function D(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function ke(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function J(r,t){var i=r.code,l=r.error,o=r.prompt,p=new Date().getTime();if(r.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(r.kc_action_status),l){if(o!="none")if(r.error_description&&r.error_description==="authentication_expired")e.login(r.loginOptions);else{var a={error:l,error_description:r.error_description};e.onAuthError&&e.onAuthError(a),t&&t.setError(a)}else t&&t.setSuccess();return}else e.flow!="standard"&&(r.access_token||r.id_token)&&S(r.access_token,null,r.id_token,!0);if(e.flow!="implicit"&&i){var c="code="+i+"&grant_type=authorization_code",k=e.endpoints.token(),g=new XMLHttpRequest;g.open("POST",k,!0),g.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c+="&client_id="+encodeURIComponent(e.clientId),c+="&redirect_uri="+r.redirectUri,r.pkceCodeVerifier&&(c+="&code_verifier="+r.pkceCodeVerifier),g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState==4)if(g.status==200){var U=JSON.parse(g.responseText);S(U.access_token,U.refresh_token,U.id_token,e.flow==="standard"),s()}else e.onAuthError&&e.onAuthError(),t&&t.setError()},g.send(c)}function S(U,Y,Q,z){p=(p+new Date().getTime())/2,K(U,Y,Q,p),m&&e.idTokenParsed&&e.idTokenParsed.nonce!=r.storedNonce?($("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),t&&t.setError()):z&&(e.onAuthSuccess&&e.onAuthSuccess(),t&&t.setSuccess())}}function R(r){var t=v(),i;h?typeof h=="string"&&(i=h):i="keycloak.json";function l(g){g?e.endpoints={authorize:function(){return g.authorization_endpoint},token:function(){return g.token_endpoint},logout:function(){if(!g.end_session_endpoint)throw"Not supported by the OIDC server";return g.end_session_endpoint},checkSessionIframe:function(){if(!g.check_session_iframe)throw"Not supported by the OIDC server";return g.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!g.userinfo_endpoint)throw"Not supported by the OIDC server";return g.userinfo_endpoint}}:e.endpoints={authorize:function(){return D()+"/protocol/openid-connect/auth"},token:function(){return D()+"/protocol/openid-connect/token"},logout:function(){return D()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var S=D()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(S=S+"?version="+e.iframeVersion),S},thirdPartyCookiesIframe:function(){var S=D()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(S=S+"?version="+e.iframeVersion),S},register:function(){return D()+"/protocol/openid-connect/registrations"},userinfo:function(){return D()+"/protocol/openid-connect/userinfo"}}}if(i){var o=new XMLHttpRequest;o.open("GET",i,!0),o.setRequestHeader("Accept","application/json"),o.onreadystatechange=function(){if(o.readyState==4)if(o.status==200||Z(o)){var g=JSON.parse(o.responseText);e.authServerUrl=g["auth-server-url"],e.realm=g.realm,e.clientId=g.resource,l(null),t.setSuccess()}else t.setError()},o.send()}else{if(!h.clientId)throw"clientId missing";e.clientId=h.clientId;var p=h.oidcProvider;if(p)if(typeof p=="string"){var k;p.charAt(p.length-1)=="/"?k=p+".well-known/openid-configuration":k=p+"/.well-known/openid-configuration";var o=new XMLHttpRequest;o.open("GET",k,!0),o.setRequestHeader("Accept","application/json"),o.onreadystatechange=function(){if(o.readyState==4)if(o.status==200||Z(o)){var S=JSON.parse(o.responseText);l(S),t.setSuccess()}else t.setError()},o.send()}else l(p),t.setSuccess();else{if(!h.url){for(var a=document.getElementsByTagName("script"),c=0;c=0;--a){var c=p[a];o.data=="error"?c.setError():c.setSuccess(o.data=="unchanged")}}};return window.addEventListener("message",l,!1),r.promise}function s(){y.enable&&e.token&&setTimeout(function(){_().then(function(r){r&&s()})},y.interval*1e3)}function _(){var r=v();if(y.iframe&&y.iframeOrigin){var t=e.clientId+" "+(e.sessionId?e.sessionId:"");y.callbackList.push(r);var i=y.iframeOrigin;y.callbackList.length==1&&y.iframe.contentWindow.postMessage(t,i)}else r.setSuccess();return r.promise}function T(){var r=v();if(y.enable||e.silentCheckSsoRedirectUri){var t=document.createElement("iframe");t.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-3p-check-iframe"),t.style.display="none",document.body.appendChild(t);var i=function(l){t.contentWindow===l.source&&(l.data!=="supported"&&l.data!=="unsupported"||(l.data==="unsupported"&&(N(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means: + + - 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/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 Fe(()=>import("./DHsSmHrBD0L-.js"),[],import.meta.url).then(e=>e.default);case"en":return Fe(()=>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(Ae,{as:"h1",size:"2xl",children:"Keycloak Sample"}),A.jsxs(Ie,{mt:4,spacing:2,align:"stretch",children:[A.jsx(Ae,{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(Ue,{children:"An Error occured while trying to login!"}),A.jsx(Ue,{color:"red",children:j.message})]}),children:A.jsxs(Ie,{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/g1BJdB74TioF.js b/core-packages/assets/D2XlaS5Lai55.js similarity index 98% rename from core-packages/assets/g1BJdB74TioF.js rename to core-packages/assets/D2XlaS5Lai55.js index 44b247e55..c75f426dc 100644 --- a/core-packages/assets/g1BJdB74TioF.js +++ b/core-packages/assets/D2XlaS5Lai55.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 me,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,H as wt,I as Ct,J as kt,a as Tt,K as St,L as Et,N as $e,O as Nt,P as Ft,Q as Rt,R as Dt,S as Mt,U as Ot,V as At,W as Bt,X as It,Y as Lt,b as Ht}from"./D2oXSZAF25Nh.js";import{g as zt,a as $t,L as Vt}from"./vDSfyahLBK_0.js";import{S as Ve}from"./CZpnpGhF6lFQ.js";import{S as Ut}from"./CNRj9BHt5u2J.js";import{B as C}from"./CW9VlGYS245s.js";import{u as Gt}from"./DMyVcVfFoYJc.js";import{R as Wt,a as le}from"./Ciw69F18KeCb.js";import{S as Kt}from"./ASlqsl1uPZkA.js";import{C as qt,H as Ue}from"./D5d8MKrNO9TY.js";import{T as Xt}from"./DfwCaCqN11zg.js";import{B as b}from"./ByauQZPFLiUp.js";import"./Bux-xGeHLEc6.js";import"./NWwYVL9TBgXj.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 m=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 f=vt(i);f.length>0&&requestAnimationFrame(()=>{f[0].focus({preventScroll:n})})}},[r,n,i,s]);Be(()=>{m()},[m]),ge(i,"transitionend",m)}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 m=so(d)?d.current:d;return m?.contains(i)||m===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=f=>{de(f,o)&&(i.isPointerDown=!0)},p=f=>{if(i.ignoreEmulatedMouseEvents){i.ignoreEmulatedMouseEvents=!1;return}i.isPointerDown&&s&&de(f,o)&&(i.isPointerDown=!1,a(f))},d=f=>{i.ignoreEmulatedMouseEvents=!0,s&&i.isPointerDown&&de(f,o)&&(i.isPointerDown=!1,a(f))},m=We(o.current);return m.addEventListener("mousedown",l,!0),m.addEventListener("mouseup",p,!0),m.addEventListener("touchstart",l,!0),m.addEventListener("touchend",d,!0),()=>{m.removeEventListener("mousedown",l,!0),m.removeEventListener("mouseup",p,!0),m.removeEventListener("touchstart",l,!0),m.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},mo=c.forwardRef(function(o,s){const{unmountOnExit:n,in:a,className:r,transition:i,transitionEnd:l,delay:p,animatePresenceProps:d,...m}=o,f=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:f,...m})})});mo.displayName="Fade";const fo=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(),f=a||(d==="none"?{}:Ke);return e.jsx(fo,{...f,__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}=me({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}=me({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:m,motionProps:f,animatePresenceProps:k,...T}=o,I=me({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:m};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,...f})})});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(),m=l(i,o),f=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,{...f,className:"chakra-modal__content-container",__css:L,children:e.jsx(xo,{motionProps:a,direction:x,in:d,className:k,...m,__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:m=200,closeDelay:f=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),ft=q(H.current,D),ht=!ie&&!ft;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(),f))})),y},[Fe,U,ke,G,Te,W,d,s,P,x,o,f,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(),m)}),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()},f)})),y},[Se,x,U,d,Re,we,R,o,P,m,f]);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]),mt=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:mt}}function q(t,o){return t===o||t?.contains(o)}function Ae(t){const o=t.currentTarget.ownerDocument.activeElement;return t.relatedTarget??o}function fe(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})})})}fe.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(),m=A(),f=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",f),"--popper-arrow-shadow":ue("shadows",k),...m.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(),m=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:m})})});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(Ue,{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(Ue,{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($e,{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(fe,{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(fe,{children:[e.jsx(je,{children:e.jsx(b,{ml:5,children:"Show Popover rendered in an portal"})}),e.jsx($e,{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 me,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,H as wt,I as Ct,J as kt,a as Tt,K as St,L as Et,N as $e,O as Nt,P as Ft,Q as Rt,R as Dt,S as Mt,U as Ot,V as At,W as Bt,X as It,Y as Lt,b as Ht}from"./D2oXSZAF25Nh.js";import{g as zt,a as $t,L as Vt}from"./vDSfyahLBK_0.js";import{S as Ve}from"./CZpnpGhF6lFQ.js";import{S as Ut}from"./CNRj9BHt5u2J.js";import{B as C}from"./CW9VlGYS245s.js";import{u as Gt}from"./DMyVcVfFoYJc.js";import{R as Wt,a as le}from"./Ciw69F18KeCb.js";import{S as Kt}from"./ASlqsl1uPZkA.js";import{C as qt,H as Ue}from"./D5d8MKrNO9TY.js";import{T as Xt}from"./DfwCaCqN11zg.js";import{B as b}from"./ByauQZPFLiUp.js";import"./Bux-xGeHLEc6.js";import"./NWwYVL9TBgXj.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 m=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 f=vt(i);f.length>0&&requestAnimationFrame(()=>{f[0].focus({preventScroll:n})})}},[r,n,i,s]);Be(()=>{m()},[m]),ge(i,"transitionend",m)}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 m=so(d)?d.current:d;return m?.contains(i)||m===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=f=>{de(f,o)&&(i.isPointerDown=!0)},p=f=>{if(i.ignoreEmulatedMouseEvents){i.ignoreEmulatedMouseEvents=!1;return}i.isPointerDown&&s&&de(f,o)&&(i.isPointerDown=!1,a(f))},d=f=>{i.ignoreEmulatedMouseEvents=!0,s&&i.isPointerDown&&de(f,o)&&(i.isPointerDown=!1,a(f))},m=We(o.current);return m.addEventListener("mousedown",l,!0),m.addEventListener("mouseup",p,!0),m.addEventListener("touchstart",l,!0),m.addEventListener("touchend",d,!0),()=>{m.removeEventListener("mousedown",l,!0),m.removeEventListener("mouseup",p,!0),m.removeEventListener("touchstart",l,!0),m.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},mo=c.forwardRef(function(o,s){const{unmountOnExit:n,in:a,className:r,transition:i,transitionEnd:l,delay:p,animatePresenceProps:d,...m}=o,f=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:f,...m})})});mo.displayName="Fade";const fo=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(),f=a||(d==="none"?{}:Ke);return e.jsx(fo,{...f,__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}=me({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}=me({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:m,motionProps:f,animatePresenceProps:k,...T}=o,I=me({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:m};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,...f})})});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(),m=l(i,o),f=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,{...f,className:"chakra-modal__content-container",__css:L,children:e.jsx(xo,{motionProps:a,direction:x,in:d,className:k,...m,__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:m=200,closeDelay:f=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),ft=q(H.current,D),ht=!ie&&!ft;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(),f))})),y},[Fe,U,ke,G,Te,W,d,s,P,x,o,f,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(),m)}),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()},f)})),y},[Se,x,U,d,Re,we,R,o,P,m,f]);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]),mt=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:mt}}function q(t,o){return t===o||t?.contains(o)}function Ae(t){const o=t.currentTarget.ownerDocument.activeElement;return t.relatedTarget??o}function fe(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})})})}fe.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(),m=A(),f=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",f),"--popper-arrow-shadow":ue("shadows",k),...m.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(),m=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:m})})});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(Ue,{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(Ue,{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($e,{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(fe,{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(fe,{children:[e.jsx(je,{children:e.jsx(b,{ml:5,children:"Show Popover rendered in an portal"})}),e.jsx($e,{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/DskoU3k5tfRy.js b/core-packages/assets/DGZaBR5iXeaY.js similarity index 80% rename from core-packages/assets/DskoU3k5tfRy.js rename to core-packages/assets/DGZaBR5iXeaY.js index a5ead54ab..c5874ccb7 100644 --- a/core-packages/assets/DskoU3k5tfRy.js +++ b/core-packages/assets/DGZaBR5iXeaY.js @@ -1 +1 @@ -var m=t=>{throw TypeError(t)};var a=(t,e,n)=>e.has(t)||m("Cannot "+n);var v=(t,e,n)=>(a(t,e,"read from private field"),n?n.call(t):e.get(t)),c=(t,e,n)=>e.has(t)?m("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),u=(t,e,n,r)=>(a(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),p=(t,e,n)=>(a(t,e,"access private method"),n);import{c as S,a as T,r as d,j as i,b as A}from"./D2oXSZAF25Nh.js";import{E as b}from"./vOBnYnib6xFk.js";import{u as j}from"./CEqcg7qjrBaf.js";import{C as y,H as f}from"./D5d8MKrNO9TY.js";import{V as z}from"./C01kSkQ--ETF.js";import{T as C}from"./DfwCaCqN11zg.js";import{B as q}from"./ByauQZPFLiUp.js";import"./CZpnpGhF6lFQ.js";class M{textService;logger;constructor(e){this.textService=e.references.textService,this.logger=S("api-app:TextApiExtension")}async getApiMethods(){return{changeText:e=>{this.logger.info("Changing text to",JSON.stringify(e)),this.textService.setText(e)}}}}class k extends b{text="not yet set";setText(e){const n=this.text;this.text=e,this.emit("text-changed",{newText:this.text,oldText:n})}getText(){return this.text}}class w{async getApiMethods(){return{justAnotherApiMethod:()=>{console.log("justAnotherApiMethod")}}}}var s,o,l;class I{constructor({references:e}){c(this,o);c(this,s);u(this,s,e.ctx)}emitEvent(e,n=null){if(e==null)return;if(e instanceof Event){p(this,o,l).call(this,e);return}const r=new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n});p(this,o,l).call(this,r)}}s=new WeakMap,o=new WeakSet,l=function(e){v(this,s).getHostElement().dispatchEvent(e)};const _={"api-app":{name:"api-app",services:{TextApiExtension:{name:"TextApiExtension",clazz:M,provides:[{name:"integration.ApiExtension",qualifier:void 0}],references:{textService:{name:"api-app.TextService",qualifier:void 0,all:!1}}},TextService:{name:"TextService",clazz:k,provides:[{name:"api-app.TextService",qualifier:void 0}],references:{}},SecondApiExtension:{name:"SecondApiExtension",clazz:w,provides:[{name:"integration.ApiExtension",qualifier:void 0}],references:{}}},ui:{references:[{name:"api-app.TextService",qualifier:void 0,all:!1},{name:"integration.ExternalEventService",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/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/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/integration":{name:"@open-pioneer/integration",services:{ExternalEventServiceImpl:{name:"ExternalEventServiceImpl",clazz:I,provides:[{name:"integration.ExternalEventService",qualifier:void 0}],references:{ctx:{name:"runtime.ApplicationContext",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}}},B="",H=[];function P(t){throw new Error(`Unsupported locale: '${t}'`)}const N=T(B),R=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:P,locales:H,packages:_,styles:N},Symbol.toStringTag,{value:"Module"})),U="api-app",h=j.bind(void 0,U);function V(){const t=h("integration.ExternalEventService"),e=()=>{t.emitEvent("my-custom-event",{data:"my-event-data"})},n=h("api-app.TextService"),[r,x]=d.useState("");return d.useEffect(()=>{x(n.getText());const E=n.on("text-changed",g=>{x(g.newText)});return()=>E.destroy()},[n]),i.jsx(y,{children:i.jsxs(z,{children:[i.jsx(f,{size:"md",children:"Emitting Events"}),i.jsx(C,{children:"Click this button to emit a browser event:"}),i.jsx(q,{onClick:e,children:"Emit Event"}),i.jsx(f,{size:"md",pt:20,children:"Reacting to API calls from the host site"}),i.jsxs("div",{children:["Current text: ",r]})]})})}const D=A({component:V,appMetadata:R});customElements.define("api-app",D); +var m=t=>{throw TypeError(t)};var a=(t,e,n)=>e.has(t)||m("Cannot "+n);var v=(t,e,n)=>(a(t,e,"read from private field"),n?n.call(t):e.get(t)),c=(t,e,n)=>e.has(t)?m("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),u=(t,e,n,r)=>(a(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),p=(t,e,n)=>(a(t,e,"access private method"),n);import{c as S,a as T,r as d,j as i,b as A}from"./D2oXSZAF25Nh.js";import{E as b}from"./vOBnYnib6xFk.js";import{u as j}from"./CEqcg7qjrBaf.js";import{C as y,H as f}from"./D5d8MKrNO9TY.js";import{V as z}from"./C01kSkQ--ETF.js";import{T as C}from"./DfwCaCqN11zg.js";import{B as q}from"./ByauQZPFLiUp.js";import"./CZpnpGhF6lFQ.js";class M{textService;logger;constructor(e){this.textService=e.references.textService,this.logger=S("api-app:TextApiExtension")}async getApiMethods(){return{changeText:e=>{this.logger.info("Changing text to",JSON.stringify(e)),this.textService.setText(e)}}}}class k extends b{text="not yet set";setText(e){const n=this.text;this.text=e,this.emit("text-changed",{newText:this.text,oldText:n})}getText(){return this.text}}class w{async getApiMethods(){return{justAnotherApiMethod:()=>{console.log("justAnotherApiMethod")}}}}var s,o,l;class I{constructor({references:e}){c(this,o);c(this,s);u(this,s,e.ctx)}emitEvent(e,n=null){if(e==null)return;if(e instanceof Event){p(this,o,l).call(this,e);return}const r=new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n});p(this,o,l).call(this,r)}}s=new WeakMap,o=new WeakSet,l=function(e){v(this,s).getHostElement().dispatchEvent(e)};const _={"api-app":{name:"api-app",services:{TextApiExtension:{name:"TextApiExtension",clazz:M,provides:[{name:"integration.ApiExtension",qualifier:void 0}],references:{textService:{name:"api-app.TextService",qualifier:void 0,all:!1}}},TextService:{name:"TextService",clazz:k,provides:[{name:"api-app.TextService",qualifier:void 0}],references:{}},SecondApiExtension:{name:"SecondApiExtension",clazz:w,provides:[{name:"integration.ApiExtension",qualifier:void 0}],references:{}}},ui:{references:[{name:"api-app.TextService",qualifier:void 0,all:!1},{name:"integration.ExternalEventService",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/integration":{name:"@open-pioneer/integration",services:{ExternalEventServiceImpl:{name:"ExternalEventServiceImpl",clazz:I,provides:[{name:"integration.ExternalEventService",qualifier:void 0}],references:{ctx:{name:"runtime.ApplicationContext",qualifier:void 0,all:!1}}}},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:{}}},B="",H=[];function P(t){throw new Error(`Unsupported locale: '${t}'`)}const N=T(B),R=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:P,locales:H,packages:_,styles:N},Symbol.toStringTag,{value:"Module"})),U="api-app",h=j.bind(void 0,U);function V(){const t=h("integration.ExternalEventService"),e=()=>{t.emitEvent("my-custom-event",{data:"my-event-data"})},n=h("api-app.TextService"),[r,x]=d.useState("");return d.useEffect(()=>{x(n.getText());const E=n.on("text-changed",g=>{x(g.newText)});return()=>E.destroy()},[n]),i.jsx(y,{children:i.jsxs(z,{children:[i.jsx(f,{size:"md",children:"Emitting Events"}),i.jsx(C,{children:"Click this button to emit a browser event:"}),i.jsx(q,{onClick:e,children:"Emit Event"}),i.jsx(f,{size:"md",pt:20,children:"Reacting to API calls from the host site"}),i.jsxs("div",{children:["Current text: ",r]})]})})}const D=A({component:V,appMetadata:R});customElements.define("api-app",D); diff --git a/core-packages/assets/IYf3wYeThTW4.js b/core-packages/assets/DHKG28WD4ny_.js similarity index 89% rename from core-packages/assets/IYf3wYeThTW4.js rename to core-packages/assets/DHKG28WD4ny_.js index a5db4fee7..2dd580c69 100644 --- a/core-packages/assets/IYf3wYeThTW4.js +++ b/core-packages/assets/DHKG28WD4ny_.js @@ -1 +1 @@ -import{n as m,h as g,j as e,a as x,b as j}from"./D2oXSZAF25Nh.js";import{_ as c}from"./CmsKOCeNyeyo.js";import{u as v,a as p}from"./CEqcg7qjrBaf.js";import{U as _,L as n}from"./Cuqg4Q-7MAjf.js";import{D as b}from"./4I-HvAsJCy0u.js";import{H as y}from"./BLexmwLyHax-.js";import{C,H as k}from"./D5d8MKrNO9TY.js";import{T as l}from"./DfwCaCqN11zg.js";import{V as M}from"./C01kSkQ--ETF.js";import{B as S}from"./ByauQZPFLiUp.js";import"./CZpnpGhF6lFQ.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:i="both",...s}=r;return e.jsx(m.div,{ref:a,__css:E[i],...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/base-theme":{name:"@open-pioneer/base-theme",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/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=v.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(),i=r.getSupportedLocales(),s="Müller",o=["Hans","Peter","Hape"];return e.jsxs(C,{children:[e.jsx(k,{size:"lg",mb:4,children:t.formatMessage({id:"content.header"})}),e.jsx(l,{mb:4,children:t.formatMessage({id:"content.description"})}),e.jsxs(_,{mb:4,children:[e.jsxs(n,{children:["Current locale: ",a]}),e.jsxs(n,{children:["Supported locales: ",i.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(o,{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(b,{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(),i=o=>e.jsx(S,{onClick:()=>t.setLocale(o),children:o??r.formatMessage({id:"picker.default"})},o??""),s=a.map(o=>i(o));return s.unshift(i(void 0)),e.jsxs(M,{children:[e.jsx(l,{children:r.formatMessage({id:"picker.choose"})}),e.jsx(y,{spacing:2,children:s})]})}const N=j({component:H,appMetadata:R});customElements.define("i18n-app",N); +import{n as m,h as g,j as e,a as x,b as j}from"./D2oXSZAF25Nh.js";import{_ as c}from"./CmsKOCeNyeyo.js";import{u as v,a as p}from"./CEqcg7qjrBaf.js";import{U as _,L as n}from"./Cuqg4Q-7MAjf.js";import{D as b}from"./4I-HvAsJCy0u.js";import{H as y}from"./BLexmwLyHax-.js";import{C,H as k}from"./D5d8MKrNO9TY.js";import{T as l}from"./DfwCaCqN11zg.js";import{V as M}from"./C01kSkQ--ETF.js";import{B as S}from"./ByauQZPFLiUp.js";import"./CZpnpGhF6lFQ.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:i="both",...s}=r;return e.jsx(m.div,{ref:a,__css:E[i],...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/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=v.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(),i=r.getSupportedLocales(),s="Müller",o=["Hans","Peter","Hape"];return e.jsxs(C,{children:[e.jsx(k,{size:"lg",mb:4,children:t.formatMessage({id:"content.header"})}),e.jsx(l,{mb:4,children:t.formatMessage({id:"content.description"})}),e.jsxs(_,{mb:4,children:[e.jsxs(n,{children:["Current locale: ",a]}),e.jsxs(n,{children:["Supported locales: ",i.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(o,{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(b,{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(),i=o=>e.jsx(S,{onClick:()=>t.setLocale(o),children:o??r.formatMessage({id:"picker.default"})},o??""),s=a.map(o=>i(o));return s.unshift(i(void 0)),e.jsxs(M,{children:[e.jsx(l,{children:r.formatMessage({id:"picker.choose"})}),e.jsx(y,{spacing:2,children:s})]})}const N=j({component:H,appMetadata:R});customElements.define("i18n-app",N); diff --git a/core-packages/assets/DkVfmBxvveNW.js b/core-packages/assets/DkVfmBxvveNW.js deleted file mode 100644 index e2dac4d8d..000000000 --- a/core-packages/assets/DkVfmBxvveNW.js +++ /dev/null @@ -1 +0,0 @@ -var E=t=>{throw TypeError(t)};var k=(t,n,s)=>n.has(t)||E("Cannot "+s);var p=(t,n,s)=>(k(t,n,"read from private field"),s?s.call(t):n.get(t)),x=(t,n,s)=>n.has(t)?E("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,s),c=(t,n,s,r)=>(k(t,n,"write to private field"),r?r.call(t,s):n.set(t,s),s);import{n as q,h as S,j as e,l as C,r as m,P as w,Q as _,R as D,S as H,a as U,b as V}from"./D2oXSZAF25Nh.js";import{E as G}from"./vOBnYnib6xFk.js";import{u as K,I as Q}from"./DVtiiguhxXOo.js";import{C as F,H as N}from"./D5d8MKrNO9TY.js";import{V as Y}from"./C01kSkQ--ETF.js";import{T as $}from"./DfwCaCqN11zg.js";import{F as b}from"./NWwYVL9TBgXj.js";import{F as L}from"./DjuJFArFKNLG.js";import{I as y}from"./CB_-DziTXLXN.js";import{B as d}from"./ByauQZPFLiUp.js";import{H as J}from"./BLexmwLyHax-.js";import{A as W,u as X,F as Z}from"./DmpMMwGLAqtN.js";import{_ as P}from"./CmsKOCeNyeyo.js";import{u as ee}from"./CEqcg7qjrBaf.js";import{F as te}from"./CJAaOOGk-WF8.js";import{B as ne}from"./CW9VlGYS245s.js";import"./CZpnpGhF6lFQ.js";const se=q("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),j=S(function(n,s){const{placement:r="left",...l}=n,i=K(),a=i.field,v={[r==="left"?"insetStart":"insetEnd"]:"0",width:a?.height??a?.h,height:a?.height??a?.h,fontSize:a?.fontSize,...i.element};return e.jsx(se,{ref:s,__css:v,...l})});j.id="InputElement";j.displayName="InputElement";const T=S(function(n,s){const{className:r,...l}=n,i=C("chakra-input__left-element",r);return e.jsx(j,{ref:s,placement:"left",className:i,...l})});T.id="InputLeftElement";T.displayName="InputLeftElement";const A=S(function(n,s){const{className:r,...l}=n,i=C("chakra-input__right-element",r);return e.jsx(j,{ref:s,placement:"right",className:i,...l})});A.id="InputRightElement";A.displayName="InputRightElement";function re({doLogin:t,doFail:n,wasLoggedIn:s}){const[r,l]=m.useState(""),[i,a]=m.useState(""),[g,v]=m.useState(!1),[I,M]=m.useState(),[z,R]=m.useState(s),B=h=>{h.preventDefault();const O=t(r,i);M(O||""),R(!1)};return e.jsx(F,{p:5,children:e.jsxs(Y,{as:"form",onSubmit:B,spacing:4,children:[e.jsx(N,{as:"h1",textAlign:"center",children:"Login"}),e.jsxs($,{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:r,onChange:h=>l(h.target.value),autoComplete:"username"})]}),e.jsxs(b,{children:[e.jsx(L,{children:"Password"}),e.jsxs(Q,{children:[e.jsx(y,{pr:"4.5rem",type:g?"text":"password",placeholder:"Enter password",value:i,onChange:h=>a(h.target.value),autoComplete:"current-password"}),e.jsx(A,{width:"4.5rem",children:e.jsx(d,{h:"1.75rem",size:"sm",onClick:()=>v(!g),children:g?"Hide":"Show"})})]})]}),e.jsxs(J,{children:[e.jsx(d,{colorScheme:"red",onClick:n,children:"Let it fail!"}),e.jsx(d,{type:"submit",children:"Login"})]})]})})}var o,u,f;class ie extends G{constructor(){super();x(this,o,{kind:"pending"});x(this,u);x(this,f,!1);c(this,u,setTimeout(()=>{c(this,o,{kind:"not-authenticated"}),this.emit("changed")},500))}destroy(){clearTimeout(p(this,u)),c(this,u,void 0)}getAuthState(){return p(this,o)}getLoginBehavior(){const s=(i,a)=>{if(i==="admin"&&a==="admin")c(this,o,{kind:"authenticated",sessionInfo:{userId:"admin",userName:"Arnold Administrator"}}),c(this,f,!0),this.emit("changed");else return"Invalid user name or password!"},r=()=>{c(this,o,{kind:"error",error:new Error("Login failed!")}),this.emit("changed")};return{kind:"fallback",Fallback:()=>m.createElement(re,{doLogin:s,doFail:r,wasLoggedIn:p(this,f)})}}logout(){(p(this,o).kind==="authenticated"||p(this,o).kind==="pending")&&(c(this,o,{kind:"not-authenticated"}),clearTimeout(p(this,u)),c(this,u,void 0),this.emit("changed"))}}o=new WeakMap,u=new WeakMap,f=new WeakMap;const oe={"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:W,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:{}}},ae="",ce=["en","de"];function le(t){switch(t){case"en":return P(()=>import("./P9WplnIxWHzS.js"),[],import.meta.url).then(n=>n.default);case"de":return P(()=>import("./z2D46c5wMnzO.js"),[],import.meta.url).then(n=>n.default)}throw new Error(`Unsupported locale: '${t}'`)}const ue=U(ae),pe=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:le,locales:ce,packages:oe,styles:ue},Symbol.toStringTag,{value:"Module"})),me="auth-app",he=ee.bind(void 0,me);function de(){const t=he("authentication.AuthService"),n=X(t),s=()=>{t.logout()};return n.kind==="not-authenticated"||n.kind==="pending"?null:e.jsx(d,{colorScheme:"red",onClick:s,children:"Log out"})}function fe(){return e.jsx(Z,{errorFallback:ge,children:e.jsxs(F,{p:5,children:[e.jsx(N,{as:"h1",children:"Authenticated"}),"This is the actual content of the app. Authentication was successful.",e.jsx(te,{pt:5,flexDirection:"row",justifyContent:"center",children:e.jsx(de,{})})]})})}function ge(t){return e.jsxs(e.Fragment,{children:[e.jsx(ne,{margin:2,color:"red",children:t.error.message}),e.jsx(d,{margin:2,onClick:()=>window.location.reload(),children:"reload"})]})}const xe=V({component:fe,appMetadata:pe});customElements.define("auth-app",xe); diff --git a/core-packages/assets/DmpMMwGLAqtN.js b/core-packages/assets/DmpMMwGLAqtN.js deleted file mode 100644 index 0b108f283..000000000 --- a/core-packages/assets/DmpMMwGLAqtN.js +++ /dev/null @@ -1 +0,0 @@ -var A=t=>{throw TypeError(t)};var b=(t,n,e)=>n.has(t)||A("Cannot "+e);var r=(t,n,e)=>(b(t,n,"read from private field"),e?e.call(t):n.get(t)),h=(t,n,e)=>n.has(t)?A("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,e),a=(t,n,e,d)=>(b(t,n,"write to private field"),d?d.call(t,e):n.set(t,e),e),S=(t,n,e)=>(b(t,n,"access private method"),e);import{af as F,a8 as I,ag as j,c as p,r as g,j as u}from"./D2oXSZAF25Nh.js";import{E as B}from"./vOBnYnib6xFk.js";import{u as C,a as L}from"./CEqcg7qjrBaf.js";import{B as P}from"./CW9VlGYS245s.js";const m=p("authentication:AuthService");var o,i,s,l,k,x;class K extends B{constructor(e){super();h(this,k);h(this,o);h(this,i);h(this,s);h(this,l);a(this,o,e.references.plugin),a(this,i,r(this,o).getAuthState()),a(this,l,r(this,o).on?.("changed",()=>S(this,k,x).call(this))),m.debug(`Constructed with initial auth state '${r(this,i).kind}'`,r(this,i))}destroy(){r(this,s)?.reject(F()),a(this,s,void 0),a(this,l,I(r(this,l)))}getAuthState(){return r(this,i)}getSessionInfo(){return r(this,i).kind!=="pending"?Promise.resolve(v(r(this,i))):(r(this,s)||a(this,s,j()),r(this,s).promise)}getLoginBehavior(){return r(this,o).getLoginBehavior()}logout(){m.debug("Triggering logout"),r(this,o).logout()}}o=new WeakMap,i=new WeakMap,s=new WeakMap,l=new WeakMap,k=new WeakSet,x=function(){const e=r(this,o).getAuthState();a(this,i,e),e.kind!=="pending"&&r(this,s)&&(r(this,s).resolve(v(e)),a(this,s,void 0)),m.debug(`Auth state changed to '${r(this,i).kind}'`,r(this,i)),this.emit("changed")};function v(t){return t.kind==="authenticated"?t.sessionInfo:void 0}const E="@open-pioneer/authentication",w=C.bind(void 0,E),y=L.bind(void 0,E);function M(t){const n=g.useCallback(c=>{const f=t.on("changed",c);return()=>f.destroy()},[t]),e=g.useCallback(()=>t.getAuthState(),[t]);return g.useSyncExternalStore(n,e)}const O=t=>{const n=w("authentication.AuthService"),e=M(n),d=y(),c=g.useMemo(()=>{if(e.kind==="not-authenticated")return n.getLoginBehavior()},[n,e.kind]);switch(g.useEffect(()=>{e.kind==="not-authenticated"&&c?.kind==="effect"&&c.login()},[c,e.kind]),e.kind){case"pending":return null;case"not-authenticated":{if(!c||c.kind!=="fallback")return null;const f=c.Fallback;return t.renderFallback?u.jsx(u.Fragment,{children:t.renderFallback(f)}):u.jsx(f,{...t.fallbackProps})}case"error":return t.renderErrorFallback?t.renderErrorFallback(e.error):t.errorFallback?u.jsx(t.errorFallback,{error:e.error}):u.jsx(P,{className:"authentication-error",children:d.formatMessage({id:"auth-error"})});case"authenticated":return u.jsx(u.Fragment,{children:t.children})}};export{K as A,O as F,M as u}; diff --git a/core-packages/assets/CdW_8K6w63rI.js b/core-packages/assets/DugBTOH4Whwn.js similarity index 89% rename from core-packages/assets/CdW_8K6w63rI.js rename to core-packages/assets/DugBTOH4Whwn.js index 9c779cea6..27b28a490 100644 --- a/core-packages/assets/CdW_8K6w63rI.js +++ b/core-packages/assets/DugBTOH4Whwn.js @@ -1 +1 @@ -import{h as N,l as C,r as s,j as e,n as E,a as k,b as B}from"./D2oXSZAF25Nh.js";import{N as R,a as T}from"./LKojhJIlmLP8.js";import{u as _}from"./CEqcg7qjrBaf.js";import{T as I,C as z}from"./BpoHbMrAD09_.js";import{a as A,B as x}from"./ByauQZPFLiUp.js";import{C as M,H as q}from"./D5d8MKrNO9TY.js";import{S as m}from"./CZpnpGhF6lFQ.js";import{T as w}from"./DfwCaCqN11zg.js";import{B as F}from"./CW9VlGYS245s.js";import{F as h}from"./NWwYVL9TBgXj.js";import{F as v}from"./DjuJFArFKNLG.js";import{I as G}from"./CB_-DziTXLXN.js";import{S as H}from"./ASlqsl1uPZkA.js";import"./DMyVcVfFoYJc.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(A,{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 P={"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/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:R,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},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:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}}},U="",O=[];function K(o){throw new Error(`Unsupported locale: '${o}'`)}const V=k(U),W=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:K,locales:O,packages:P,styles:V},Symbol.toStringTag,{value:"Module"})),$="notify-app",J=_.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(T,{position:"top-right"}),e.jsx(M,{p:5,children:e.jsxs(m,{spacing:8,children:[e.jsxs(m,{align:"center",children:[e.jsx(q,{as:"h1",children:"Notify Sample"}),e.jsx(w,{children:"Use the form below to emit notifications."})]}),e.jsx(F,{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(I,{placeholder:"Enter additional message",value:n,onChange:t=>d(t.target.value)})]}),e.jsx(z,{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=B({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,b as B}from"./D2oXSZAF25Nh.js";import{N as R,a as T}from"./LKojhJIlmLP8.js";import{u as _}from"./CEqcg7qjrBaf.js";import{T as I,C as z}from"./BpoHbMrAD09_.js";import{a as A,B as x}from"./ByauQZPFLiUp.js";import{C as M,H as q}from"./D5d8MKrNO9TY.js";import{S as m}from"./CZpnpGhF6lFQ.js";import{T as w}from"./DfwCaCqN11zg.js";import{B as F}from"./CW9VlGYS245s.js";import{F as h}from"./NWwYVL9TBgXj.js";import{F as v}from"./DjuJFArFKNLG.js";import{I as G}from"./CB_-DziTXLXN.js";import{S as H}from"./ASlqsl1uPZkA.js";import"./DMyVcVfFoYJc.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(A,{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 P={"notify-app":{name:"notify-app",services:{},ui:{references:[{name:"notifier.NotificationService",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/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:R,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/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:{}}},U="",O=[];function K(o){throw new Error(`Unsupported locale: '${o}'`)}const V=k(U),W=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:K,locales:O,packages:P,styles:V},Symbol.toStringTag,{value:"Module"})),$="notify-app",J=_.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(T,{position:"top-right"}),e.jsx(M,{p:5,children:e.jsxs(m,{spacing:8,children:[e.jsxs(m,{align:"center",children:[e.jsx(q,{as:"h1",children:"Notify Sample"}),e.jsx(w,{children:"Use the form below to emit notifications."})]}),e.jsx(F,{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(I,{placeholder:"Enter additional message",value:n,onChange:t=>d(t.target.value)})]}),e.jsx(z,{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=B({component:Q,appMetadata:W});customElements.define("notify-app",X); diff --git a/core-packages/assets/CPx89lC1HAc1.js b/core-packages/assets/IkibgNADSKAJ.js similarity index 94% rename from core-packages/assets/CPx89lC1HAc1.js rename to core-packages/assets/IkibgNADSKAJ.js index b57a6a590..3861b37f0 100644 --- a/core-packages/assets/CPx89lC1HAc1.js +++ b/core-packages/assets/IkibgNADSKAJ.js @@ -1 +1 @@ -import{a as l,r as a,j as r,b as m}from"./D2oXSZAF25Nh.js";import{E as f}from"./vOBnYnib6xFk.js";import{u}from"./CEqcg7qjrBaf.js";import{u as d}from"./DMyVcVfFoYJc.js";import{F as h}from"./NWwYVL9TBgXj.js";import{F as v}from"./DjuJFArFKNLG.js";import{C as g,H as E}from"./D5d8MKrNO9TY.js";import{V as x}from"./C01kSkQ--ETF.js";import{T as b}from"./DfwCaCqN11zg.js";import{I as j}from"./CB_-DziTXLXN.js";import{H as N}from"./BLexmwLyHax-.js";import{B as s}from"./ByauQZPFLiUp.js";import"./CZpnpGhF6lFQ.js";const p={DEBUG:0,INFO:1,ERROR:2};class I extends f{level;constructor(e){super(),this.level=w(e.properties)}notify(e,o="INFO"){p[this.level]>p[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=u.bind(void 0,y),T={DEBUG:void 0,INFO:"info",ERROR:"error"};function L(){const t=c("properties-app.Notifier"),e=d();return a.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]=a.useState(""),i=n=>{e&&t.notify(e,n)};return r.jsx(g,{children:r.jsxs(x,{my:"20",children:[r.jsx(E,{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(h,{pt:"3",children:[r.jsx(v,{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=m({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 a,j as r,b as m}from"./D2oXSZAF25Nh.js";import{E as f}from"./vOBnYnib6xFk.js";import{u}from"./CEqcg7qjrBaf.js";import{u as d}from"./DMyVcVfFoYJc.js";import{F as h}from"./NWwYVL9TBgXj.js";import{F as v}from"./DjuJFArFKNLG.js";import{C as g,H as E}from"./D5d8MKrNO9TY.js";import{V as x}from"./C01kSkQ--ETF.js";import{T as b}from"./DfwCaCqN11zg.js";import{I as j}from"./CB_-DziTXLXN.js";import{H as N}from"./BLexmwLyHax-.js";import{B as s}from"./ByauQZPFLiUp.js";import"./CZpnpGhF6lFQ.js";const p={DEBUG:0,INFO:1,ERROR:2};class I extends f{level;constructor(e){super(),this.level=w(e.properties)}notify(e,o="INFO"){p[this.level]>p[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/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:{}}},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=u.bind(void 0,y),T={DEBUG:void 0,INFO:"info",ERROR:"error"};function L(){const t=c("properties-app.Notifier"),e=d();return a.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]=a.useState(""),i=n=>{e&&t.notify(e,n)};return r.jsx(g,{children:r.jsxs(x,{my:"20",children:[r.jsx(E,{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(h,{pt:"3",children:[r.jsx(v,{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=m({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/docs/assets/navigation.js b/core-packages/docs/assets/navigation.js index 4eb974e1b..f73b2dda1 100644 --- a/core-packages/docs/assets/navigation.js +++ b/core-packages/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA7Wa3W7jNhCF38XXcdtNu9s2V3UcB2s0yRpxsDeLwmDksUVYJlWScjYo+u6FKMmmJGo4dFLsTbCYcz7+DMkh5W//jAx8N6Or0R8yBzHOuRQAanQxSlKerRWI0dW3YwwrTArC8IQZLsXoYpQzk46uRnu5LjLQP65Kj1XtsWpH/5CafTa6GO24WI+uLv2ASWHS2QGE0SdzLgyoDUtC/idtB/Xx078XLcIiK7ZcnEeotDTCW3riOoRoS1AHnsB5oFocZBhmYHKSw/pMXM8nlsylmCkl1fvwGzdSKx6kea8h6FqR+AsQay62b8DWDhjtVqrEjtBCyfyM7G3rMdKdLFN8s4HExGMccZBxy7LsmSW7MymNHOMsQWsuxVxsZDzFEUfsLNdMO2vevOaR+0qp7+B++v3XDx8vfakXDbKqkL0d3mtI2YG7C5qAaClDmGNKnhCbQiSlETWZ24hPvzjuhQbPMBEBrrjH+MuhtHXjHbwmmWS7uEN41chIp/GfdfCX3HYkOq9PtI4TluRNaLl7gDIc3oN7MsPQj7BRoNO3d7dt1Ee68/rMNIxNCnsITWUZubKRpNnreB6Y4uwZdfV4/3zZamySsp1i43JAtopUBFaKlaMgNX5aaCP3UyteKHnga1Cd88i3SXhog07BrS8DZW44y+Q2PIoesKPvjemJcqPYC6izAJUU8b6Xa5adZW2ViPOTlJnh+VnetRZx901ZeGMlzj2ykS+kMu6ARZAqKbqBJ1IFl3gZQ1ofnQo4yZjWfjdPdfvh8jenXbYWmO25MUB0dASY8Z3cboFSplvXKjpQyt2DSSWl7G4sKwHmes9EwbKFknuuKVco69wS4UeKlo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9LXWia8/LndvBmN8u5PxPjFIWYr+FaqepifXnMiFzEIsRcs2bEtzIUJ3RRqliMIP/bWeanbCY3ZtzUhQm85Ytb+FTjk6T0gCPbDB8IQifQI3qGg79/OtjWb3k0eZ6vl7PHrfDpbzR+eZo+3k+ks/Eh63L+GLJBfZ1RfIVt7LKFOrIEeMaVOHFdvJLrIc6kMsWqsbyK1qDOa7sc00MTnlzIy4vXF8iM8bTzJuV6n9VE68AOpwR2/h0Ts0ANAvJLWaI93EhJ3sE7LwvlG7CKae7pqYkxWNBLa45xdC0P7BGX2jjifFTZziRsfNZpHZMsCHccXeB4nzTtGzGi+wPPqJCSN6Ro2XMDx1SSqax1cxwr94i/WoN4F2rGiQ5cpW8uXmy/370g/enqm1/77D5rAjL8+NAAA" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA7Wa227jNhCG38XXcdtNu9s2V/U6DmLUyRpxsDeLwmCksUVYJlWScjYo+u6FKMmmJGo4clzsTbCY//94GJ5G/vbPyMB3M7oZ/SEzEOOMSwGgRlejKOFprECMbr4dY1huEhCGR8xwKUZXo4yZZHQz2ss4T0H/uC481pXHuhn9Q2L26ehqtOMiHt1c+wGT3CTLNN9yx5wLA2rDopD/SdtCffz071WDsAJ14BGch6jEQYZhBiYnOcRn4jo+Q8lciplSUl2GX7uRWvEozaWGoG1F4i9BxFxs34GtHDDanVSRHaGlkpkezmrqMdJCbrmYbTYQmeEYRxxk3LE0fWHR7kxKLcc4K9CaSzEXGzmc4ohJeXAimLeMPPct659+//XDx+v2UH2GhB24u7oIiIYyhDnmxwmxyUVUGFEzq4n49IvjnmvwDBMR4Io7jL8cSlM33sFblEq2G3aCrGsZ6Sj5swr+ktmODE6yE63lhGVcHVosZVCGwyW4JzMM/QQbBTp5f3ebRl2kO68vTMPYJLCH0FQWkWsbSZq9lueBKc5eUFeP98/XjcZGCdspNi4GZKtIN5hSsXYUpMZPc23kfmrFSyUPPAbVOhx8m4SH1usU2jQmKShzy1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2f88l1SIiahZCvvGzjQEVYmHoaZSaKPyiFY76ac6PsQGLPgGorcohQXXBgTp84eH37Eh4gc9+zxc2nuvTLThGdTQoQD73a6aBPqL6MjxyDHcLUQpU8XhPnR9t5SBHxeAAhHBA7h1tyCiocPvvbYNx9S5l3I3ZNS8+gsUk5y98LKFpI5x+JO+1jLixW/f5vVoFG9/IsYvDjEbwXdSVcP8/JYRuYhBiL1k0Y5tYS5M6KVQsRxBuNhb5aVuJjRm39SECJ3liFn7V2Cfp/eAINj3Hwh9JFIRvEVB69/OtjWbLiZPs/Vq9vR1Pp2t54/Ps6e7yXQWLpIe968+C+TXGeVXyMYeS7gnVkCPmHJPHJc1Ep1nmVSGeGusXiKVqDWa7sc00MTySxE5oPpi+QM8bTzJuVqn1VHa8wOp3h2/g0Ts0ANAvJHWaId3EhJ3sFbLwvlG7CKae7ps4pCsqCW04pxdC337BGX2jjifFTZzkRs/aDSPyIYFOo6v8DKO6jrGkNF8hZf1SUga0xg2XMCxajKoay1cywr94i9iUBeBtqzo0FXCYvl6++XhgvSjp2d67b//AJIZ2Oj7MgAA" \ No newline at end of file diff --git a/core-packages/docs/assets/search.js b/core-packages/docs/assets/search.js index 0b66c2077..7183a8263 100644 --- a/core-packages/docs/assets/search.js +++ b/core-packages/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA92dXZPbNrau/0vrtt2jtUDqI1cn4zg1qePMuOKpOReulIstoVvcZosakmrHOzX/fRdBSlpYWJQWJUrJ2VfjSQsvF8AXnw8A/n5X5F/Lu+8+/X73JV0v777D+7t18mLvvrv7P/nGrt9s0nxtbfGXZFut7LpKF0mV5uu7+7ttkd19d/eSL7eZLf/yuf7x5/bHn/0fP6yql+zu/m6RJWVpy7vv7u7+c79/XjzZP/H7bbV692rXVbnXT9eVLZ6SxalHHJIKT7u/2ySFXVenMnWICsYY7cNarJL1s11eGtPooNM/NiJ2pPA+ZNvndH1WoE3SQQoPx9FsH9azrW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/oWemkKKHlvPTHM7JOXVXryVDl7dUdB/MkXDSbeZVK5q+vIgRXaXCsbhuPnVJCCNVTCjirPsyr1Vk3ofmzl5pcqL6uCd+kT73iYzqzb0sqnMklpKff9bst6C/bRY1vobfpTQsNGd7PlVyTQlRdUIvNtaYMtwUjxIOoz29kS0v0FqFw03Ja2Xb9hqy10kKskCkSrXCebcsV2W1Hch8oDeUTzNcm2LEg6llSCgVrQb2wpXlDO/moRl4TKkEqpHNduqzRjxIQOJyb72bcuqq9J4TU9dIlA2VZ/tY/+9NC7V1jX0nxdsdOjtDNDzVW2v97fbdJNfeGvvfvu06//+c//AGsuR1C8lQEA"; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA92d3ZLbRpK276X7tNXDzAL4o6PPK8thx8ozCmtivgOFQ4Emq5tYoQkOALakdfjeN1AAyaysBJkgQcq7R5Yl1suswlt/+VSBf9wU+Zfy5vXHP24+p6vFzWu8u1klz/bm9c3/y9d29Wqd5itri78lm2ppV1U6T6o0X93c3WyK7Ob1zXO+2GS2/Nun+sOf2g9/8j98v6yes5u7m3mWlKUtb17f3Px5t/u+eLz7xh821fJ9tnlK9/rpqrLFYzI/9hX7osK33d2sk8KuqmOVIlGNoukurCdb1fIfqqSy5wZ2y8T6R0kUDwT8Ln9KV/9hl8lLmhdDBM0FLxJ4lj/lm+rscHcygwXJTPrBFi/p/DQztGX/gjalkQ3k021DXdKoPOyBnHo89A+2LNN89cvqMR8kcF/vMmGf0cO8cM/tYkKYvI/VzvthX9IuTos6kBmk58EIo1247q8GDO62FTy1bcOW6wi8PNfBHfGXgzj5UDWOuSXNV2+L4tQRpUNseOfYy8R4u9UdqOl3rXnpDuDXYthuIFRCdNHf82qgYYcr/dVGHjG+IVo9aMIjTf7erhbp6un0mrQCf7UGpmEN0a7bdpKb86e8mDvDvy/yddk7ar/48E05X6bZorD993ZCYLdE7IQGZS11aHD+Kcmyh2T+eZCoueLFQn9sv2MwJ9xyxYuFXtjVwh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qyKdffUSE1oPO7VFSzaktbSXLtQ+COEMA3G18v0Vha2WRf6lI09ODKK8dt8emm2hlf806QCo7Be+nHAUl06a4+3BWWUnkQ6g0ZwaKo89tTpdd43o4TtUHn1qJdmNRnpaGJXzcqu0u7G0zPPP/mxCwRgqh9QDpz4pJEMlXZFnczo8wfYNasqTRx182M88t5LaKrMzHjTXtU3ig9F2E5Ha06MOyrVkmT6t/AUpvcEPymPLba7abyo6Kim3La0OuzJOT46BMgdbbh7KKq02le0G4HR+UM5fLX/zjTYKFnxHdaqkYId+6LsOQKtSk252M4q2unKXzc/r03d4Ke8fVkvr77nodcNdGmr37kNdzu7Q1EIGHSXNrXeFmX30akqvPiu3ru5yh7+dpoQn2tZROSwcuIJCR2vluHD45gnS4QuVuKbK86xKvZQJvcGjPNlS5WVV8Bmd+gyVC45NaeWjWWSWVJ7n3ZT1weqDF7HQu5OmhIKN7nrDb+9761ElEd+UNjjqi97ZSX1luwdCb9Wt6wab0rbJG5ZqoQsgJTIgWuUqWZdLdpSKQkZUXrEjmi9JtmFB0jWGMvNfC7L1FL2foo/KFaEyNF+gjKVKM4ZE6Goi3m29de3/JSl8rEFMrxyqv9gHv2lobkw50nxZWsaWqS81b1n9/e5mna7rd9Ham9cff//zz/8BSQeaE/SLAQA="; \ No newline at end of file diff --git a/core-packages/docs/classes/_open_pioneer_core.Error.html b/core-packages/docs/classes/_open_pioneer_core.Error.html index 98ffff3d6..a298041d1 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 847e10a44..0e3042a7f 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 671e7d64f..8d3f9979c 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 18782594e..f155df7ec 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 2898d68dd..4711c3812 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 dd9e5724a..c949ef094 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 b4cfba949..d07b82563 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 ec602829c..53cf4918f 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 734b38463..5c3755155 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 6a5f25518..4fa078e17 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 0d02456ed..96ee54e34 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 9c90d3f0b..0af7c0e3b 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 95ae66c94..da970ff96 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 c3d79b9db..6ad20601e 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 fc2155bd1..6200f3af9 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 45b8d5c83..92baf949c 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 265d1c5f4..ea29474a2 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 32f5d639e..51ccf062a 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 9868f9989..0b1532aa1 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 6a91ee560..238c64209 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 c956e96f6..a9fb25e89 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 fef52e377..d58621ec6 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 548fbc08d..7bea731ac 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 a98d2ccc1..119303821 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 6d5701bd8..7df9e2d17 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 e712d14b9..2686e0a2f 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 1605c104a..4c9434968 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 db85ef803..7c67dbb9f 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 e9bf91b9a..6b75eddbd 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 5f16e9f50..f39d707bc 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 6e3b59aa2..27610adb1 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 d131fc184..81750e2db 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.AuthEvents.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthEvents.html deleted file mode 100644 index 86a482686..000000000 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthEvents.html +++ /dev/null @@ -1,4 +0,0 @@ -AuthEvents | Trails Packages

    Events emitted by the AuthService.

    -
    interface AuthEvents {
        changed: void;
    }

    Properties

    Properties

    changed: void

    Emitted when there were any changes to the service's state.

    -
    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPlugin.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPlugin.html index e9d606eb4..6832f1a63 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPlugin.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPlugin.html @@ -1,26 +1,15 @@ AuthPlugin | Trails Packages

    The authentication service requires an AuthPlugin to implement a concrete authentication flow.

    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 also emit the changed event to notify the service.

    -

    The implementation of AuthPluginEventBase is optional: it is only necessary if the state changes -during the lifetime of the plugin. -To implement the event, you can write class MyPlugin extends EventEmitter<AuthPluginEvents>.

    -
    interface AuthPlugin {
        getAuthState(): AuthState;
        getLoginBehavior(): LoginBehavior;
        logout(): void | Promise<void>;
        on?<Name>(eventName: Name, listener: ((...args: ArgType<AuthPluginEvents[Name]>) => void)): Resource;
        once?<Name>(eventName: Name, listener: ((...args: ArgType<AuthPluginEvents[Name]>) => void)): Resource;
    }

    Hierarchy (view full)

    Methods

    getAuthState +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

    • Explicitly triggers a logout.

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

      -

      Returns void | Promise<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 "changed"

      Parameters

      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 "changed"

      Parameters

      Returns Resource

    +

    Returns void | Promise<void>

    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPluginEvents.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPluginEvents.html deleted file mode 100644 index 83dd335e0..000000000 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPluginEvents.html +++ /dev/null @@ -1,3 +0,0 @@ -AuthPluginEvents | Trails Packages

    Events that may be emitted by an authentication plugin.

    -
    interface AuthPluginEvents {
        changed: void;
    }

    Properties

    Properties

    changed: void
    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthService.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthService.html index 4c14032da..6b151b2f2 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthService.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthService.html @@ -1,25 +1,16 @@ 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;
        on<Name>(eventName: Name, listener: ((...args: ArgType<AuthEvents[Name]>) => void)): Resource;
        once<Name>(eventName: Name, listener: ((...args: ArgType<AuthEvents[Name]>) => void)): Resource;
    }

    Hierarchy (view full)

    Methods

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

    Hierarchy (view full)

    Methods

    • Returns the current authentication state.

      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.

      -

      This method must be called again after the AuthService has emitted the changed event.

      -

      Returns AuthState

    • Returns the current user's SessionInfo or undefined, if the current user is not authenticated.

      The method is asynchronous to allow for async initialization in the authentication plugin.

      -

      This method must be called again after the AuthService has emitted the changed event.

      -

      Returns Promise<undefined | SessionInfo>

    • 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 "changed"

      Parameters

      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 "changed"

      Parameters

      Returns Resource

    +

    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 f7efd9436..e3f04f405 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 1b02b1bf0..e807f99b0 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 e468b485d..acd1bcc3b 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 be9755687..f3c673203 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 82fb4c7ad..bca99ff1f 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 33f1d993a..9fc09b068 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 6ad12b057..14fbd5989 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 4b4fb7956..b88072262 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 db4ad7d19..0b2eee71d 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 da2ccb237..6801b7913 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 c720e34ea..3067a1050 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 63224d74e..969d2a7c6 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 f1909e933..561f7e668 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 a41c3af95..d2ec54644 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 db136fa30..0b5393797 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 d4813df87..131698f99 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 a3deb146b..4215fd13d 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 8eb73ac60..44d6c69c4 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 3be8a27af..7dc05642d 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 a99358fe3..95ba2f795 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 1c6a648d9..d56dcbbd4 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 5c3e77740..b693bd493 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 91e6d4a0a..825746166 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 778bfdf48..89e88e0a8 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 aefaa1fe2..0568a4265 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 5b0df702a..97fce767c 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 64e43963c..d65669d48 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 42c4899a6..a9d9f0a78 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 f3d700329..0d45b8634 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 1b2906cc4..adc4b6075 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 1c69a4a39..9688997e5 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 1787792b1..b4df6711f 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 2f3676e20..3ac7b6c45 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 2c7da55ae..6d25901ed 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 04c55beef..bf2fc62ec 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 c85412435..0d47f7458 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 3139d0ef1..79216c38c 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 d2681b153..e4cafe527 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 dbfe7ce97..76cf4e22d 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 18746b9d1..f255bb204 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 3fc6ff1aa..09209dd5d 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 db917869e..01e4a4ab8 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 ea976b804..8fb31a97f 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 70ab0011f..367e84101 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 d0d73fc71..d68785528 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 d72332f63..c9577c0ff 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_authentication.html b/core-packages/docs/modules/_open_pioneer_authentication.html index cd5dec840..01b218acf 100644 --- a/core-packages/docs/modules/_open_pioneer_authentication.html +++ b/core-packages/docs/modules/_open_pioneer_authentication.html @@ -43,9 +43,7 @@

    An example is available in this project's auth-sample.

    Apache-2.0 (see LICENSE file)

    -

    Index

    Interfaces

    Index

    Interfaces

    Type Aliases

    Type Aliases

    Functions

    ForceAuth useAuthState 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 45b4d83d6..f5560b664 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 ad4015b09..49ead9bf8 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 e3e7275d2..64ac3e45d 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.AuthPluginEventBase.html b/core-packages/docs/types/_open_pioneer_authentication.AuthPluginEventBase.html deleted file mode 100644 index 7d165b1cf..000000000 --- a/core-packages/docs/types/_open_pioneer_authentication.AuthPluginEventBase.html +++ /dev/null @@ -1,2 +0,0 @@ -AuthPluginEventBase | Trails Packages
    AuthPluginEventBase: EventSource<AuthPluginEvents>

    Optional base type for an authentication plugin: the event emitter interface is not required.

    -
    diff --git a/core-packages/docs/types/_open_pioneer_authentication.AuthState.html b/core-packages/docs/types/_open_pioneer_authentication.AuthState.html index 94d0007c6..dff194483 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 58ca9e50d..7af529f9d 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 5f5c08285..04e58c655 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 c5b7658ca..8c94a332e 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 941c3d795..8aaadd1e0 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 ffab12776..3b35318d4 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 912dc2318..686f7cce9 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 2036df6f8..0ef75d06b 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 450446078..ffdc4d068 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 0fdef7f63..05ac42c1f 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 6641f49c4..ff5d90f30 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 5d715c6e7..53d39a691 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 3dda5882c..d6fd083bd 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 9b7848d64..6d0313fd8 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 705c25851..cbdbc750c 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 8a525a8c8..a5dbe35db 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 18f8bccb4..635f2cfa2 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 bd3c17616..ae8a022ee 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 19baadff1..0cfef5244 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 b4481db2c..08e262a86 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 a896975d3..3505984fe 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 ac8223ec9..bada8f4a0 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 54713a22d..373c6772d 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 58b1022c4..364c0d7c7 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 9dd45f5ce..0edb591e5 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 b786ea1f6..3b583d358 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 e5b0ed680..d54f7f23a 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 7011ef36b..741f582c7 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 8b1d55c80..5ca9c2981 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/api-sample/index.html b/core-packages/samples/api-sample/index.html index a3b34b082..e3d08b33a 100644 --- a/core-packages/samples/api-sample/index.html +++ b/core-packages/samples/api-sample/index.html @@ -4,7 +4,7 @@ API Sample - + diff --git a/core-packages/samples/auth-sample/index.html b/core-packages/samples/auth-sample/index.html index 84214d3e4..cd09f0ee3 100644 --- a/core-packages/samples/auth-sample/index.html +++ b/core-packages/samples/auth-sample/index.html @@ -16,9 +16,8 @@ max-height: 100%; } - + - @@ -31,7 +30,7 @@ - + diff --git a/core-packages/samples/chakra-sample/index.html b/core-packages/samples/chakra-sample/index.html index 48c23ca35..abf12360a 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/extension-sample/index.html b/core-packages/samples/extension-sample/index.html index f69939f0a..353ea2e0e 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/i18n-sample/index.html b/core-packages/samples/i18n-sample/index.html index 8327a6678..5a89446d5 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 564c96666..54d9d7c5e 100644 --- a/core-packages/samples/keycloak-sample/index.html +++ b/core-packages/samples/keycloak-sample/index.html @@ -17,16 +17,15 @@ height: 500px; } - + - + + + - - - diff --git a/core-packages/samples/notify-sample/index.html b/core-packages/samples/notify-sample/index.html index 74f83406d..15aa25a5b 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 27734f417..19afc1731 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 6c9b3336c..e0d3da986 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 259ce0f51..903dd25d4 100644 --- a/core-packages/samples/theming-sample/index.html +++ b/core-packages/samples/theming-sample/index.html @@ -5,7 +5,7 @@ [Demo] Theming-App - +