diff --git a/core-packages/assets/mg2SxLUvS3jj.js b/core-packages/assets/AkkBfFXgCDdq.js similarity index 99% rename from core-packages/assets/mg2SxLUvS3jj.js rename to core-packages/assets/AkkBfFXgCDdq.js index cfcaf80e4..ecf487a07 100644 --- a/core-packages/assets/mg2SxLUvS3jj.js +++ b/core-packages/assets/AkkBfFXgCDdq.js @@ -1,4 +1,4 @@ -var _t=pe=>{throw TypeError(pe)};var kt=(pe,le,Oe)=>le.has(pe)||_t("Cannot "+Oe);var St=(pe,le,Oe)=>(kt(pe,le,"read from private field"),Oe?Oe.call(pe):le.get(pe)),Ct=(pe,le,Oe)=>le.has(pe)?_t("Cannot add the same private member more than once"):le instanceof WeakSet?le.add(pe):le.set(pe,Oe),Ot=(pe,le,Oe,o)=>(kt(pe,le,"write to private field"),o?o.call(pe,Oe):le.set(pe,Oe),Oe);import{c as Dt,a as Rt,r as mt,Z as Lt,_ as Bt,j as Ze,b as zt}from"./D2oXSZAF25Nh.js";import{H as Nt}from"./CNWmJGa2bJMS.js";import{u as Tt}from"./CEqcg7qjrBaf.js";import{B as ht}from"./CW9VlGYS245s.js";import{V as qt}from"./C01kSkQ--ETF.js";import{T as Vt}from"./DfwCaCqN11zg.js";import"./CZpnpGhF6lFQ.js";const Kt="https://registry.npmjs.org/@open-pioneer/runtime";var lt;class Wt{constructor(le){Ct(this,lt);Ot(this,lt,le.references.http)}async fetchResource(){const le=await St(this,lt).fetch(Kt,{headers:{Accept:"application/json"}});if(!le.ok)throw new Error("Request failed: "+le.status);return await le.json()}}lt=new WeakMap;const Ht=Dt("http-app:ExampleInterceptor");class Ut{async beforeRequest(le){Ht.info("interceptor invoked with",le),le.target.searchParams.set("a","b")}}const Gt={"http-app":{name:"http-app",services:{HttpClient:{name:"HttpClient",clazz:Wt,provides:[{name:"http-app.HttpClient",qualifier:void 0}],references:{http:{name:"http.HttpService",qualifier:void 0,all:!1}}},ExampleInterceptor:{name:"ExampleInterceptor",clazz:Ut,provides:[{name:"http.Interceptor",qualifier:void 0}],references:{}}},ui:{references:[{name:"http-app.HttpClient",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/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/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Nt,provides:[{name:"http.HttpService",qualifier:void 0}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},Jt="",$t=[];function Yt(pe){throw new Error(`Unsupported locale: '${pe}'`)}const Qt=Rt(Jt),Zt=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:Yt,locales:$t,packages:Gt,styles:Qt},Symbol.toStringTag,{value:"Module"})),Xt="http-app",ea=Tt.bind(void 0,Xt);var wt={exports:{}};(function(pe,le){(function(Oe,o){pe.exports=o(mt)})(Lt,function(Oe){return function(o){var n={};function e(s){if(n[s])return n[s].exports;var u=n[s]={i:s,l:!1,exports:{}};return o[s].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=o,e.c=n,e.d=function(s,u,f){e.o(s,u)||Object.defineProperty(s,u,{enumerable:!0,get:f})},e.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.t=function(s,u){if(1&u&&(s=e(s)),8&u||4&u&&typeof s=="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(e.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),2&u&&typeof s!="string")for(var p in s)e.d(f,p,(function(d){return s[d]}).bind(null,p));return f},e.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return e.d(u,"a",u),u},e.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},e.p="",e(e.s=48)}([function(o,n){o.exports=Oe},function(o,n){var e=o.exports={version:"2.6.12"};typeof __e=="number"&&(__e=e)},function(o,n,e){var s=e(26)("wks"),u=e(17),f=e(3).Symbol,p=typeof f=="function";(o.exports=function(d){return s[d]||(s[d]=p&&f[d]||(p?f:u)("Symbol."+d))}).store=s},function(o,n){var e=o.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(o,n,e){o.exports=!e(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(o,n){var e={}.hasOwnProperty;o.exports=function(s,u){return e.call(s,u)}},function(o,n,e){var s=e(7),u=e(16);o.exports=e(4)?function(f,p,d){return s.f(f,p,u(1,d))}:function(f,p,d){return f[p]=d,f}},function(o,n,e){var s=e(10),u=e(35),f=e(23),p=Object.defineProperty;n.f=e(4)?Object.defineProperty:function(d,b,E){if(s(d),b=f(b,!0),s(E),u)try{return p(d,b,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported!");return"value"in E&&(d[b]=E.value),d}},function(o,n){o.exports=function(e){try{return!!e()}catch{return!0}}},function(o,n,e){var s=e(40),u=e(22);o.exports=function(f){return s(u(f))}},function(o,n,e){var s=e(11);o.exports=function(u){if(!s(u))throw TypeError(u+" is not an object!");return u}},function(o,n){o.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(o,n){o.exports={}},function(o,n,e){var s=e(39),u=e(27);o.exports=Object.keys||function(f){return s(f,u)}},function(o,n){o.exports=!0},function(o,n,e){var s=e(3),u=e(1),f=e(53),p=e(6),d=e(5),b=function(E,_,P){var I,V,Q,L=E&b.F,Z=E&b.G,t=E&b.S,F=E&b.P,R=E&b.B,B=E&b.W,z=Z?u:u[_]||(u[_]={}),j=z.prototype,C=Z?s:t?s[_]:(s[_]||{}).prototype;for(I in Z&&(P=_),P)(V=!L&&C&&C[I]!==void 0)&&d(z,I)||(Q=V?C[I]:P[I],z[I]=Z&&typeof C[I]!="function"?P[I]:R&&V?f(Q,s):B&&C[I]==Q?function(M){var N=function(y,J,K){if(this instanceof M){switch(arguments.length){case 0:return new M;case 1:return new M(y);case 2:return new M(y,J)}return new M(y,J,K)}return M.apply(this,arguments)};return N.prototype=M.prototype,N}(Q):F&&typeof Q=="function"?f(Function.call,Q):Q,F&&((z.virtual||(z.virtual={}))[I]=Q,E&b.R&&j&&!j[I]&&p(j,I,Q)))};b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,o.exports=b},function(o,n){o.exports=function(e,s){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:s}}},function(o,n){var e=0,s=Math.random();o.exports=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++e+s).toString(36))}},function(o,n,e){var s=e(22);o.exports=function(u){return Object(s(u))}},function(o,n){n.f={}.propertyIsEnumerable},function(o,n,e){var s=e(52)(!0);e(34)(String,"String",function(u){this._t=String(u),this._i=0},function(){var u,f=this._t,p=this._i;return p>=f.length?{value:void 0,done:!0}:(u=s(f,p),this._i+=u.length,{value:u,done:!1})})},function(o,n){var e=Math.ceil,s=Math.floor;o.exports=function(u){return isNaN(u=+u)?0:(u>0?s:e)(u)}},function(o,n){o.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(o,n,e){var s=e(11);o.exports=function(u,f){if(!s(u))return u;var p,d;if(f&&typeof(p=u.toString)=="function"&&!s(d=p.call(u))||typeof(p=u.valueOf)=="function"&&!s(d=p.call(u))||!f&&typeof(p=u.toString)=="function"&&!s(d=p.call(u)))return d;throw TypeError("Can't convert object to primitive value")}},function(o,n){var e={}.toString;o.exports=function(s){return e.call(s).slice(8,-1)}},function(o,n,e){var s=e(26)("keys"),u=e(17);o.exports=function(f){return s[f]||(s[f]=u(f))}},function(o,n,e){var s=e(1),u=e(3),f=u["__core-js_shared__"]||(u["__core-js_shared__"]={});(o.exports=function(p,d){return f[p]||(f[p]=d!==void 0?d:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(o,n){o.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(o,n,e){var s=e(7).f,u=e(5),f=e(2)("toStringTag");o.exports=function(p,d,b){p&&!u(p=b?p:p.prototype,f)&&s(p,f,{configurable:!0,value:d})}},function(o,n,e){e(62);for(var s=e(3),u=e(6),f=e(12),p=e(2)("toStringTag"),d="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),b=0;bdocument.F=Object<\/script>"),E.close(),b=E.F;P--;)delete b.prototype[f[P]];return b()};o.exports=Object.create||function(E,_){var P;return E!==null?(d.prototype=s(E),P=new d,d.prototype=null,P[p]=E):P=b(),_===void 0?P:u(P,_)}},function(o,n,e){var s=e(5),u=e(9),f=e(57)(!1),p=e(25)("IE_PROTO");o.exports=function(d,b){var E,_=u(d),P=0,I=[];for(E in _)E!=p&&s(_,E)&&I.push(E);for(;b.length>P;)s(_,E=b[P++])&&(~f(I,E)||I.push(E));return I}},function(o,n,e){var s=e(24);o.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(o,n,e){var s=e(39),u=e(27).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},function(o,n,e){var s=e(24),u=e(2)("toStringTag"),f=s(function(){return arguments}())=="Arguments";o.exports=function(p){var d,b,E;return p===void 0?"Undefined":p===null?"Null":typeof(b=function(_,P){try{return _[P]}catch{}}(d=Object(p),u))=="string"?b:f?s(d):(E=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":E}},function(o,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}o.exports=e},function(o,n){var e=/-?\d+(\.\d+)?%?/g;o.exports=function(s){return s.match(e)}},function(o,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.getBase16Theme=n.createStyling=n.invertTheme=void 0;var s=V(e(49)),u=V(e(76)),f=V(e(81)),p=V(e(89)),d=V(e(93)),b=function(j){if(j&&j.__esModule)return j;var C={};if(j!=null)for(var M in j)Object.prototype.hasOwnProperty.call(j,M)&&(C[M]=j[M]);return C.default=j,C}(e(94)),E=V(e(132)),_=V(e(133)),P=V(e(138)),I=e(139);function V(j){return j&&j.__esModule?j:{default:j}}var Q=b.default,L=(0,p.default)(Q),Z=(0,P.default)(_.default,I.rgb2yuv,function(j){var C,M=(0,f.default)(j,3),N=M[0],y=M[1],J=M[2];return[(C=N,C<.25?1:C<.5?.9-C:1.1-C),y,J]},I.yuv2rgb,E.default),t=function(j){return function(C){return{className:[C.className,j.className].filter(Boolean).join(" "),style:(0,u.default)({},C.style||{},j.style||{})}}},F=function(j,C){var M=(0,p.default)(C);for(var N in j)M.indexOf(N)===-1&&M.push(N);return M.reduce(function(y,J){return y[J]=function(K,S){if(K===void 0)return S;if(S===void 0)return K;var U=K===void 0?"undefined":(0,s.default)(K),ue=S===void 0?"undefined":(0,s.default)(S);switch(U){case"string":switch(ue){case"string":return[S,K].filter(Boolean).join(" ");case"object":return t({className:K,style:S});case"function":return function(re){for(var W=arguments.length,ne=Array(W>1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G2?M-2:0),y=2;y3?C-3:0),N=3;N1&&arguments[1]!==void 0?arguments[1]:{},J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=y.defaultBase16,S=K===void 0?Q:K,U=y.base16Themes,ue=U===void 0?null:U,re=z(J,ue);re&&(J=(0,u.default)({},re,J));var W=L.reduce(function(be,we){return be[we]=J[we]||S[we],be},{}),ne=(0,p.default)(J).reduce(function(be,we){return L.indexOf(we)===-1&&(be[we]=J[we]),be},{}),G=j(W),fe=F(ne,G);return(0,d.default)(R,2).apply(void 0,[fe].concat(M))},3),n.getBase16Theme=function(j,C){if(j&&j.extend&&(j=j.extend),typeof j=="string"){var M=j.split(":"),N=(0,f.default)(M,2),y=N[0],J=N[1];j=(C||{})[y]||b[y],J==="inverted"&&(j=B(j))}return j&&j.hasOwnProperty("base00")?j:void 0})},function(o,n,e){var s,u=typeof Reflect=="object"?Reflect:null,f=u&&typeof u.apply=="function"?u.apply:function(t,F,R){return Function.prototype.apply.call(t,F,R)};s=u&&typeof u.ownKeys=="function"?u.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var p=Number.isNaN||function(t){return t!=t};function d(){d.init.call(this)}o.exports=d,o.exports.once=function(t,F){return new Promise(function(R,B){function z(){j!==void 0&&t.removeListener("error",j),R([].slice.call(arguments))}var j;F!=="error"&&(j=function(C){t.removeListener(F,z),B(C)},t.once("error",j)),t.once(F,z)})},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var b=10;function E(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _(t){return t._maxListeners===void 0?d.defaultMaxListeners:t._maxListeners}function P(t,F,R,B){var z,j,C,M;if(E(R),(j=t._events)===void 0?(j=t._events=Object.create(null),t._eventsCount=0):(j.newListener!==void 0&&(t.emit("newListener",F,R.listener?R.listener:R),j=t._events),C=j[F]),C===void 0)C=j[F]=R,++t._eventsCount;else if(typeof C=="function"?C=j[F]=B?[R,C]:[C,R]:B?C.unshift(R):C.push(R),(z=_(t))>0&&C.length>z&&!C.warned){C.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=t,N.type=F,N.count=C.length,M=N,console&&console.warn&&console.warn(M)}return t}function I(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function V(t,F,R){var B={fired:!1,wrapFn:void 0,target:t,type:F,listener:R},z=I.bind(B);return z.listener=R,B.wrapFn=z,z}function Q(t,F,R){var B=t._events;if(B===void 0)return[];var z=B[F];return z===void 0?[]:typeof z=="function"?R?[z.listener||z]:[z]:R?function(j){for(var C=new Array(j.length),M=0;M0&&(j=F[0]),j instanceof Error)throw j;var C=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw C.context=j,C}var M=z[t];if(M===void 0)return!1;if(typeof M=="function")f(M,this,F);else{var N=M.length,y=Z(M,N);for(R=0;R=0;j--)if(R[j]===F||R[j].listener===F){C=R[j].listener,z=j;break}if(z<0)return this;z===0?R.shift():function(M,N){for(;N+1=0;B--)this.removeListener(t,F[B]);return this},d.prototype.listeners=function(t){return Q(this,t,!0)},d.prototype.rawListeners=function(t){return Q(this,t,!1)},d.listenerCount=function(t,F){return typeof t.listenerCount=="function"?t.listenerCount(F):L.call(t,F)},d.prototype.listenerCount=L,d.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(o,n,e){o.exports.Dispatcher=e(140)},function(o,n,e){o.exports=e(142)},function(o,n,e){n.__esModule=!0;var s=p(e(50)),u=p(e(65)),f=typeof u.default=="function"&&typeof s.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":typeof d};function p(d){return d&&d.__esModule?d:{default:d}}n.default=typeof u.default=="function"&&f(s.default)==="symbol"?function(d){return d===void 0?"undefined":f(d)}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":d===void 0?"undefined":f(d)}},function(o,n,e){o.exports={default:e(51),__esModule:!0}},function(o,n,e){e(20),e(29),o.exports=e(30).f("iterator")},function(o,n,e){var s=e(21),u=e(22);o.exports=function(f){return function(p,d){var b,E,_=String(u(p)),P=s(d),I=_.length;return P<0||P>=I?f?"":void 0:(b=_.charCodeAt(P))<55296||b>56319||P+1===I||(E=_.charCodeAt(P+1))<56320||E>57343?f?_.charAt(P):b:f?_.slice(P,P+2):E-56320+(b-55296<<10)+65536}}},function(o,n,e){var s=e(54);o.exports=function(u,f,p){if(s(u),f===void 0)return u;switch(p){case 1:return function(d){return u.call(f,d)};case 2:return function(d,b){return u.call(f,d,b)};case 3:return function(d,b,E){return u.call(f,d,b,E)}}return function(){return u.apply(f,arguments)}}},function(o,n){o.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(o,n,e){var s=e(38),u=e(16),f=e(28),p={};e(6)(p,e(2)("iterator"),function(){return this}),o.exports=function(d,b,E){d.prototype=s(p,{next:u(1,E)}),f(d,b+" Iterator")}},function(o,n,e){var s=e(7),u=e(10),f=e(13);o.exports=e(4)?Object.defineProperties:function(p,d){u(p);for(var b,E=f(d),_=E.length,P=0;_>P;)s.f(p,b=E[P++],d[b]);return p}},function(o,n,e){var s=e(9),u=e(58),f=e(59);o.exports=function(p){return function(d,b,E){var _,P=s(d),I=u(P.length),V=f(E,I);if(p&&b!=b){for(;I>V;)if((_=P[V++])!=_)return!0}else for(;I>V;V++)if((p||V in P)&&P[V]===b)return p||V||0;return!p&&-1}}},function(o,n,e){var s=e(21),u=Math.min;o.exports=function(f){return f>0?u(s(f),9007199254740991):0}},function(o,n,e){var s=e(21),u=Math.max,f=Math.min;o.exports=function(p,d){return(p=s(p))<0?u(p+d,0):f(p,d)}},function(o,n,e){var s=e(3).document;o.exports=s&&s.documentElement},function(o,n,e){var s=e(5),u=e(18),f=e(25)("IE_PROTO"),p=Object.prototype;o.exports=Object.getPrototypeOf||function(d){return d=u(d),s(d,f)?d[f]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?p:null}},function(o,n,e){var s=e(63),u=e(64),f=e(12),p=e(9);o.exports=e(34)(Array,"Array",function(d,b){this._t=p(d),this._i=0,this._k=b},function(){var d=this._t,b=this._k,E=this._i++;return!d||E>=d.length?(this._t=void 0,u(1)):u(0,b=="keys"?E:b=="values"?d[E]:[E,d[E]])},"values"),f.Arguments=f.Array,s("keys"),s("values"),s("entries")},function(o,n){o.exports=function(){}},function(o,n){o.exports=function(e,s){return{value:s,done:!!e}}},function(o,n,e){o.exports={default:e(66),__esModule:!0}},function(o,n,e){e(67),e(73),e(74),e(75),o.exports=e(1).Symbol},function(o,n,e){var s=e(3),u=e(5),f=e(4),p=e(15),d=e(37),b=e(68).KEY,E=e(8),_=e(26),P=e(28),I=e(17),V=e(2),Q=e(30),L=e(31),Z=e(69),t=e(70),F=e(10),R=e(11),B=e(18),z=e(9),j=e(23),C=e(16),M=e(38),N=e(71),y=e(72),J=e(32),K=e(7),S=e(13),U=y.f,ue=K.f,re=N.f,W=s.Symbol,ne=s.JSON,G=ne&&ne.stringify,fe=V("_hidden"),be=V("toPrimitive"),we={}.propertyIsEnumerable,ye=_("symbol-registry"),xe=_("symbols"),ce=_("op-symbols"),he=Object.prototype,Pe=typeof W=="function"&&!!J.f,qe=s.QObject,Ue=!qe||!qe.prototype||!qe.prototype.findChild,Ge=f&&E(function(){return M(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a!=7})?function(g,w,D){var T=U(he,w);T&&delete he[w],ue(g,w,D),T&&g!==he&&ue(he,w,T)}:ue,Je=function(g){var w=xe[g]=M(W.prototype);return w._k=g,w},$e=Pe&&typeof W.iterator=="symbol"?function(g){return typeof g=="symbol"}:function(g){return g instanceof W},Ve=function(g,w,D){return g===he&&Ve(ce,w,D),F(g),w=j(w,!0),F(D),u(xe,w)?(D.enumerable?(u(g,fe)&&g[fe][w]&&(g[fe][w]=!1),D=M(D,{enumerable:C(0,!1)})):(u(g,fe)||ue(g,fe,C(1,{})),g[fe][w]=!0),Ge(g,w,D)):ue(g,w,D)},Xe=function(g,w){F(g);for(var D,T=Z(w=z(w)),X=0,$=T.length;$>X;)Ve(g,D=T[X++],w[D]);return g},et=function(g){var w=we.call(this,g=j(g,!0));return!(this===he&&u(xe,g)&&!u(ce,g))&&(!(w||!u(this,g)||!u(xe,g)||u(this,fe)&&this[fe][g])||w)},Ye=function(g,w){if(g=z(g),w=j(w,!0),g!==he||!u(xe,w)||u(ce,w)){var D=U(g,w);return!D||!u(xe,w)||u(g,fe)&&g[fe][w]||(D.enumerable=!0),D}},tt=function(g){for(var w,D=re(z(g)),T=[],X=0;D.length>X;)u(xe,w=D[X++])||w==fe||w==b||T.push(w);return T},Ke=function(g){for(var w,D=g===he,T=re(D?ce:z(g)),X=[],$=0;T.length>$;)!u(xe,w=T[$++])||D&&!u(he,w)||X.push(xe[w]);return X};Pe||(d((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor!");var g=I(arguments.length>0?arguments[0]:void 0),w=function(D){this===he&&w.call(ce,D),u(this,fe)&&u(this[fe],g)&&(this[fe][g]=!1),Ge(this,g,C(1,D))};return f&&Ue&&Ge(he,g,{configurable:!0,set:w}),Je(g)}).prototype,"toString",function(){return this._k}),y.f=Ye,K.f=Ve,e(41).f=N.f=tt,e(19).f=et,J.f=Ke,f&&!e(14)&&d(he,"propertyIsEnumerable",et,!0),Q.f=function(g){return Je(V(g))}),p(p.G+p.W+p.F*!Pe,{Symbol:W});for(var Re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),_e=0;Re.length>_e;)V(Re[_e++]);for(var Qe=S(V.store),O=0;Qe.length>O;)L(Qe[O++]);p(p.S+p.F*!Pe,"Symbol",{for:function(g){return u(ye,g+="")?ye[g]:ye[g]=W(g)},keyFor:function(g){if(!$e(g))throw TypeError(g+" is not a symbol!");for(var w in ye)if(ye[w]===g)return w},useSetter:function(){Ue=!0},useSimple:function(){Ue=!1}}),p(p.S+p.F*!Pe,"Object",{create:function(g,w){return w===void 0?M(g):Xe(M(g),w)},defineProperty:Ve,defineProperties:Xe,getOwnPropertyDescriptor:Ye,getOwnPropertyNames:tt,getOwnPropertySymbols:Ke});var v=E(function(){J.f(1)});p(p.S+p.F*v,"Object",{getOwnPropertySymbols:function(g){return J.f(B(g))}}),ne&&p(p.S+p.F*(!Pe||E(function(){var g=W();return G([g])!="[null]"||G({a:g})!="{}"||G(Object(g))!="{}"})),"JSON",{stringify:function(g){for(var w,D,T=[g],X=1;arguments.length>X;)T.push(arguments[X++]);if(D=w=T[1],(R(w)||g!==void 0)&&!$e(g))return t(w)||(w=function($,oe){if(typeof D=="function"&&(oe=D.call(this,$,oe)),!$e(oe))return oe}),T[1]=w,G.apply(ne,T)}}),W.prototype[be]||e(6)(W.prototype,be,W.prototype.valueOf),P(W,"Symbol"),P(Math,"Math",!0),P(s.JSON,"JSON",!0)},function(o,n,e){var s=e(17)("meta"),u=e(11),f=e(5),p=e(7).f,d=0,b=Object.isExtensible||function(){return!0},E=!e(8)(function(){return b(Object.preventExtensions({}))}),_=function(I){p(I,s,{value:{i:"O"+ ++d,w:{}}})},P=o.exports={KEY:s,NEED:!1,fastKey:function(I,V){if(!u(I))return typeof I=="symbol"?I:(typeof I=="string"?"S":"P")+I;if(!f(I,s)){if(!b(I))return"F";if(!V)return"E";_(I)}return I[s].i},getWeak:function(I,V){if(!f(I,s)){if(!b(I))return!0;if(!V)return!1;_(I)}return I[s].w},onFreeze:function(I){return E&&P.NEED&&b(I)&&!f(I,s)&&_(I),I}}},function(o,n,e){var s=e(13),u=e(32),f=e(19);o.exports=function(p){var d=s(p),b=u.f;if(b)for(var E,_=b(p),P=f.f,I=0;_.length>I;)P.call(p,E=_[I++])&&d.push(E);return d}},function(o,n,e){var s=e(24);o.exports=Array.isArray||function(u){return s(u)=="Array"}},function(o,n,e){var s=e(9),u=e(41).f,f={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];o.exports.f=function(d){return p&&f.call(d)=="[object Window]"?function(b){try{return u(b)}catch{return p.slice()}}(d):u(s(d))}},function(o,n,e){var s=e(19),u=e(16),f=e(9),p=e(23),d=e(5),b=e(35),E=Object.getOwnPropertyDescriptor;n.f=e(4)?E:function(_,P){if(_=f(_),P=p(P,!0),b)try{return E(_,P)}catch{}if(d(_,P))return u(!s.f.call(_,P),_[P])}},function(o,n){},function(o,n,e){e(31)("asyncIterator")},function(o,n,e){e(31)("observable")},function(o,n,e){n.__esModule=!0;var s,u=e(77),f=(s=u)&&s.__esModule?s:{default:s};n.default=f.default||function(p){for(var d=1;dQ;)for(var t,F=b(arguments[Q++]),R=L?u(F).concat(L(F)):u(F),B=R.length,z=0;B>z;)t=R[z++],s&&!Z.call(F,t)||(I[t]=F[t]);return I}:E},function(o,n,e){n.__esModule=!0;var s=f(e(82)),u=f(e(85));function f(p){return p&&p.__esModule?p:{default:p}}n.default=function(p,d){if(Array.isArray(p))return p;if((0,s.default)(Object(p)))return function(b,E){var _=[],P=!0,I=!1,V=void 0;try{for(var Q,L=(0,u.default)(b);!(P=(Q=L.next()).done)&&(_.push(Q.value),!E||_.length!==E);P=!0);}catch(Z){I=!0,V=Z}finally{try{!P&&L.return&&L.return()}finally{if(I)throw V}}return _}(p,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(o,n,e){o.exports={default:e(83),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(84)},function(o,n,e){var s=e(42),u=e(2)("iterator"),f=e(12);o.exports=e(1).isIterable=function(p){var d=Object(p);return d[u]!==void 0||"@@iterator"in d||f.hasOwnProperty(s(d))}},function(o,n,e){o.exports={default:e(86),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(87)},function(o,n,e){var s=e(10),u=e(88);o.exports=e(1).getIterator=function(f){var p=u(f);if(typeof p!="function")throw TypeError(f+" is not iterable!");return s(p.call(f))}},function(o,n,e){var s=e(42),u=e(2)("iterator"),f=e(12);o.exports=e(1).getIteratorMethod=function(p){if(p!=null)return p[u]||p["@@iterator"]||f[s(p)]}},function(o,n,e){o.exports={default:e(90),__esModule:!0}},function(o,n,e){e(91),o.exports=e(1).Object.keys},function(o,n,e){var s=e(18),u=e(13);e(92)("keys",function(){return function(f){return u(s(f))}})},function(o,n,e){var s=e(15),u=e(1),f=e(8);o.exports=function(p,d){var b=(u.Object||{})[p]||Object[p],E={};E[p]=d(b),s(s.S+s.F*f(function(){b(1)}),"Object",E)}},function(o,n,e){(function(s){var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f=/^\s+|\s+$/g,p=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,d=/\{\n\/\* \[wrapped with (.+)\] \*/,b=/,? & /,E=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,P=/^\[object .+?Constructor\]$/,I=/^0o[0-7]+$/i,V=/^(?:0|[1-9]\d*)$/,Q=parseInt,L=typeof s=="object"&&s&&s.Object===Object&&s,Z=typeof self=="object"&&self&&self.Object===Object&&self,t=L||Z||Function("return this")();function F(O,v,g){switch(g.length){case 0:return O.call(v);case 1:return O.call(v,g[0]);case 2:return O.call(v,g[0],g[1]);case 3:return O.call(v,g[0],g[1],g[2])}return O.apply(v,g)}function R(O,v){return!!(O&&O.length)&&function(g,w,D){if(w!=w)return function($,oe,me,ve){for(var ke=$.length,de=me+-1;++de-1}function B(O){return O!=O}function z(O,v){for(var g=O.length,w=0;g--;)O[g]===v&&w++;return w}function j(O,v){for(var g=-1,w=O.length,D=0,T=[];++g2?M:void 0);function we(O){return Re(O)?ne(O):{}}function ye(O){return!(!Re(O)||function(v){return!!S&&S in v}(O))&&(function(v){var g=Re(v)?re.call(v):"";return g=="[object Function]"||g=="[object GeneratorFunction]"}(O)||function(v){var g=!1;if(v!=null&&typeof v.toString!="function")try{g=!!(v+"")}catch{}return g}(O)?W:P).test(function(v){if(v!=null){try{return U.call(v)}catch{}try{return v+""}catch{}}return""}(O))}function xe(O,v,g,w){for(var D=-1,T=O.length,X=g.length,$=-1,oe=v.length,me=G(T-X,0),ve=Array(oe+me),ke=!w;++$1&&te.reverse(),ve&&oe1?"& ":"")+v[w],v=v.join(g>2?", ":" "),O.replace(p,`{ +var _t=pe=>{throw TypeError(pe)};var kt=(pe,le,Oe)=>le.has(pe)||_t("Cannot "+Oe);var St=(pe,le,Oe)=>(kt(pe,le,"read from private field"),Oe?Oe.call(pe):le.get(pe)),Ct=(pe,le,Oe)=>le.has(pe)?_t("Cannot add the same private member more than once"):le instanceof WeakSet?le.add(pe):le.set(pe,Oe),Ot=(pe,le,Oe,o)=>(kt(pe,le,"write to private field"),o?o.call(pe,Oe):le.set(pe,Oe),Oe);import{c as Dt,a as Rt,r as mt,Z as Lt,_ as Bt,j as Ze,b as zt}from"./D2oXSZAF25Nh.js";import{H as Nt}from"./CNWmJGa2bJMS.js";import{u as Tt}from"./CEqcg7qjrBaf.js";import{B as ht}from"./CW9VlGYS245s.js";import{V as qt}from"./C01kSkQ--ETF.js";import{T as Vt}from"./DfwCaCqN11zg.js";import"./CZpnpGhF6lFQ.js";const Kt="https://registry.npmjs.org/@open-pioneer/runtime";var lt;class Wt{constructor(le){Ct(this,lt);Ot(this,lt,le.references.http)}async fetchResource(){const le=await St(this,lt).fetch(Kt,{headers:{Accept:"application/json"}});if(!le.ok)throw new Error("Request failed: "+le.status);return await le.json()}}lt=new WeakMap;const Ht=Dt("http-app:ExampleInterceptor");class Ut{async beforeRequest(le){Ht.info("interceptor invoked with",le),le.target.searchParams.set("a","b")}}const Gt={"http-app":{name:"http-app",services:{HttpClient:{name:"HttpClient",clazz:Wt,provides:[{name:"http-app.HttpClient",qualifier:void 0}],references:{http:{name:"http.HttpService",qualifier:void 0,all:!1}}},ExampleInterceptor:{name:"ExampleInterceptor",clazz:Ut,provides:[{name:"http.Interceptor",qualifier:void 0}],references:{}}},ui:{references:[{name:"http-app.HttpClient",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Nt,provides:[{name:"http.HttpService",qualifier:void 0}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}}},Jt="",$t=[];function Yt(pe){throw new Error(`Unsupported locale: '${pe}'`)}const Qt=Rt(Jt),Zt=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:Yt,locales:$t,packages:Gt,styles:Qt},Symbol.toStringTag,{value:"Module"})),Xt="http-app",ea=Tt.bind(void 0,Xt);var wt={exports:{}};(function(pe,le){(function(Oe,o){pe.exports=o(mt)})(Lt,function(Oe){return function(o){var n={};function e(s){if(n[s])return n[s].exports;var u=n[s]={i:s,l:!1,exports:{}};return o[s].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=o,e.c=n,e.d=function(s,u,f){e.o(s,u)||Object.defineProperty(s,u,{enumerable:!0,get:f})},e.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.t=function(s,u){if(1&u&&(s=e(s)),8&u||4&u&&typeof s=="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(e.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),2&u&&typeof s!="string")for(var p in s)e.d(f,p,(function(d){return s[d]}).bind(null,p));return f},e.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return e.d(u,"a",u),u},e.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},e.p="",e(e.s=48)}([function(o,n){o.exports=Oe},function(o,n){var e=o.exports={version:"2.6.12"};typeof __e=="number"&&(__e=e)},function(o,n,e){var s=e(26)("wks"),u=e(17),f=e(3).Symbol,p=typeof f=="function";(o.exports=function(d){return s[d]||(s[d]=p&&f[d]||(p?f:u)("Symbol."+d))}).store=s},function(o,n){var e=o.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(o,n,e){o.exports=!e(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(o,n){var e={}.hasOwnProperty;o.exports=function(s,u){return e.call(s,u)}},function(o,n,e){var s=e(7),u=e(16);o.exports=e(4)?function(f,p,d){return s.f(f,p,u(1,d))}:function(f,p,d){return f[p]=d,f}},function(o,n,e){var s=e(10),u=e(35),f=e(23),p=Object.defineProperty;n.f=e(4)?Object.defineProperty:function(d,b,E){if(s(d),b=f(b,!0),s(E),u)try{return p(d,b,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported!");return"value"in E&&(d[b]=E.value),d}},function(o,n){o.exports=function(e){try{return!!e()}catch{return!0}}},function(o,n,e){var s=e(40),u=e(22);o.exports=function(f){return s(u(f))}},function(o,n,e){var s=e(11);o.exports=function(u){if(!s(u))throw TypeError(u+" is not an object!");return u}},function(o,n){o.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(o,n){o.exports={}},function(o,n,e){var s=e(39),u=e(27);o.exports=Object.keys||function(f){return s(f,u)}},function(o,n){o.exports=!0},function(o,n,e){var s=e(3),u=e(1),f=e(53),p=e(6),d=e(5),b=function(E,_,P){var I,V,Q,L=E&b.F,Z=E&b.G,t=E&b.S,F=E&b.P,R=E&b.B,B=E&b.W,z=Z?u:u[_]||(u[_]={}),j=z.prototype,C=Z?s:t?s[_]:(s[_]||{}).prototype;for(I in Z&&(P=_),P)(V=!L&&C&&C[I]!==void 0)&&d(z,I)||(Q=V?C[I]:P[I],z[I]=Z&&typeof C[I]!="function"?P[I]:R&&V?f(Q,s):B&&C[I]==Q?function(M){var N=function(y,J,K){if(this instanceof M){switch(arguments.length){case 0:return new M;case 1:return new M(y);case 2:return new M(y,J)}return new M(y,J,K)}return M.apply(this,arguments)};return N.prototype=M.prototype,N}(Q):F&&typeof Q=="function"?f(Function.call,Q):Q,F&&((z.virtual||(z.virtual={}))[I]=Q,E&b.R&&j&&!j[I]&&p(j,I,Q)))};b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,o.exports=b},function(o,n){o.exports=function(e,s){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:s}}},function(o,n){var e=0,s=Math.random();o.exports=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++e+s).toString(36))}},function(o,n,e){var s=e(22);o.exports=function(u){return Object(s(u))}},function(o,n){n.f={}.propertyIsEnumerable},function(o,n,e){var s=e(52)(!0);e(34)(String,"String",function(u){this._t=String(u),this._i=0},function(){var u,f=this._t,p=this._i;return p>=f.length?{value:void 0,done:!0}:(u=s(f,p),this._i+=u.length,{value:u,done:!1})})},function(o,n){var e=Math.ceil,s=Math.floor;o.exports=function(u){return isNaN(u=+u)?0:(u>0?s:e)(u)}},function(o,n){o.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(o,n,e){var s=e(11);o.exports=function(u,f){if(!s(u))return u;var p,d;if(f&&typeof(p=u.toString)=="function"&&!s(d=p.call(u))||typeof(p=u.valueOf)=="function"&&!s(d=p.call(u))||!f&&typeof(p=u.toString)=="function"&&!s(d=p.call(u)))return d;throw TypeError("Can't convert object to primitive value")}},function(o,n){var e={}.toString;o.exports=function(s){return e.call(s).slice(8,-1)}},function(o,n,e){var s=e(26)("keys"),u=e(17);o.exports=function(f){return s[f]||(s[f]=u(f))}},function(o,n,e){var s=e(1),u=e(3),f=u["__core-js_shared__"]||(u["__core-js_shared__"]={});(o.exports=function(p,d){return f[p]||(f[p]=d!==void 0?d:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(o,n){o.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(o,n,e){var s=e(7).f,u=e(5),f=e(2)("toStringTag");o.exports=function(p,d,b){p&&!u(p=b?p:p.prototype,f)&&s(p,f,{configurable:!0,value:d})}},function(o,n,e){e(62);for(var s=e(3),u=e(6),f=e(12),p=e(2)("toStringTag"),d="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),b=0;bdocument.F=Object<\/script>"),E.close(),b=E.F;P--;)delete b.prototype[f[P]];return b()};o.exports=Object.create||function(E,_){var P;return E!==null?(d.prototype=s(E),P=new d,d.prototype=null,P[p]=E):P=b(),_===void 0?P:u(P,_)}},function(o,n,e){var s=e(5),u=e(9),f=e(57)(!1),p=e(25)("IE_PROTO");o.exports=function(d,b){var E,_=u(d),P=0,I=[];for(E in _)E!=p&&s(_,E)&&I.push(E);for(;b.length>P;)s(_,E=b[P++])&&(~f(I,E)||I.push(E));return I}},function(o,n,e){var s=e(24);o.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(o,n,e){var s=e(39),u=e(27).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},function(o,n,e){var s=e(24),u=e(2)("toStringTag"),f=s(function(){return arguments}())=="Arguments";o.exports=function(p){var d,b,E;return p===void 0?"Undefined":p===null?"Null":typeof(b=function(_,P){try{return _[P]}catch{}}(d=Object(p),u))=="string"?b:f?s(d):(E=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":E}},function(o,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}o.exports=e},function(o,n){var e=/-?\d+(\.\d+)?%?/g;o.exports=function(s){return s.match(e)}},function(o,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.getBase16Theme=n.createStyling=n.invertTheme=void 0;var s=V(e(49)),u=V(e(76)),f=V(e(81)),p=V(e(89)),d=V(e(93)),b=function(j){if(j&&j.__esModule)return j;var C={};if(j!=null)for(var M in j)Object.prototype.hasOwnProperty.call(j,M)&&(C[M]=j[M]);return C.default=j,C}(e(94)),E=V(e(132)),_=V(e(133)),P=V(e(138)),I=e(139);function V(j){return j&&j.__esModule?j:{default:j}}var Q=b.default,L=(0,p.default)(Q),Z=(0,P.default)(_.default,I.rgb2yuv,function(j){var C,M=(0,f.default)(j,3),N=M[0],y=M[1],J=M[2];return[(C=N,C<.25?1:C<.5?.9-C:1.1-C),y,J]},I.yuv2rgb,E.default),t=function(j){return function(C){return{className:[C.className,j.className].filter(Boolean).join(" "),style:(0,u.default)({},C.style||{},j.style||{})}}},F=function(j,C){var M=(0,p.default)(C);for(var N in j)M.indexOf(N)===-1&&M.push(N);return M.reduce(function(y,J){return y[J]=function(K,S){if(K===void 0)return S;if(S===void 0)return K;var U=K===void 0?"undefined":(0,s.default)(K),ue=S===void 0?"undefined":(0,s.default)(S);switch(U){case"string":switch(ue){case"string":return[S,K].filter(Boolean).join(" ");case"object":return t({className:K,style:S});case"function":return function(re){for(var W=arguments.length,ne=Array(W>1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G2?M-2:0),y=2;y3?C-3:0),N=3;N1&&arguments[1]!==void 0?arguments[1]:{},J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=y.defaultBase16,S=K===void 0?Q:K,U=y.base16Themes,ue=U===void 0?null:U,re=z(J,ue);re&&(J=(0,u.default)({},re,J));var W=L.reduce(function(be,we){return be[we]=J[we]||S[we],be},{}),ne=(0,p.default)(J).reduce(function(be,we){return L.indexOf(we)===-1&&(be[we]=J[we]),be},{}),G=j(W),fe=F(ne,G);return(0,d.default)(R,2).apply(void 0,[fe].concat(M))},3),n.getBase16Theme=function(j,C){if(j&&j.extend&&(j=j.extend),typeof j=="string"){var M=j.split(":"),N=(0,f.default)(M,2),y=N[0],J=N[1];j=(C||{})[y]||b[y],J==="inverted"&&(j=B(j))}return j&&j.hasOwnProperty("base00")?j:void 0})},function(o,n,e){var s,u=typeof Reflect=="object"?Reflect:null,f=u&&typeof u.apply=="function"?u.apply:function(t,F,R){return Function.prototype.apply.call(t,F,R)};s=u&&typeof u.ownKeys=="function"?u.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var p=Number.isNaN||function(t){return t!=t};function d(){d.init.call(this)}o.exports=d,o.exports.once=function(t,F){return new Promise(function(R,B){function z(){j!==void 0&&t.removeListener("error",j),R([].slice.call(arguments))}var j;F!=="error"&&(j=function(C){t.removeListener(F,z),B(C)},t.once("error",j)),t.once(F,z)})},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var b=10;function E(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _(t){return t._maxListeners===void 0?d.defaultMaxListeners:t._maxListeners}function P(t,F,R,B){var z,j,C,M;if(E(R),(j=t._events)===void 0?(j=t._events=Object.create(null),t._eventsCount=0):(j.newListener!==void 0&&(t.emit("newListener",F,R.listener?R.listener:R),j=t._events),C=j[F]),C===void 0)C=j[F]=R,++t._eventsCount;else if(typeof C=="function"?C=j[F]=B?[R,C]:[C,R]:B?C.unshift(R):C.push(R),(z=_(t))>0&&C.length>z&&!C.warned){C.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=t,N.type=F,N.count=C.length,M=N,console&&console.warn&&console.warn(M)}return t}function I(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function V(t,F,R){var B={fired:!1,wrapFn:void 0,target:t,type:F,listener:R},z=I.bind(B);return z.listener=R,B.wrapFn=z,z}function Q(t,F,R){var B=t._events;if(B===void 0)return[];var z=B[F];return z===void 0?[]:typeof z=="function"?R?[z.listener||z]:[z]:R?function(j){for(var C=new Array(j.length),M=0;M0&&(j=F[0]),j instanceof Error)throw j;var C=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw C.context=j,C}var M=z[t];if(M===void 0)return!1;if(typeof M=="function")f(M,this,F);else{var N=M.length,y=Z(M,N);for(R=0;R=0;j--)if(R[j]===F||R[j].listener===F){C=R[j].listener,z=j;break}if(z<0)return this;z===0?R.shift():function(M,N){for(;N+1=0;B--)this.removeListener(t,F[B]);return this},d.prototype.listeners=function(t){return Q(this,t,!0)},d.prototype.rawListeners=function(t){return Q(this,t,!1)},d.listenerCount=function(t,F){return typeof t.listenerCount=="function"?t.listenerCount(F):L.call(t,F)},d.prototype.listenerCount=L,d.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(o,n,e){o.exports.Dispatcher=e(140)},function(o,n,e){o.exports=e(142)},function(o,n,e){n.__esModule=!0;var s=p(e(50)),u=p(e(65)),f=typeof u.default=="function"&&typeof s.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":typeof d};function p(d){return d&&d.__esModule?d:{default:d}}n.default=typeof u.default=="function"&&f(s.default)==="symbol"?function(d){return d===void 0?"undefined":f(d)}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":d===void 0?"undefined":f(d)}},function(o,n,e){o.exports={default:e(51),__esModule:!0}},function(o,n,e){e(20),e(29),o.exports=e(30).f("iterator")},function(o,n,e){var s=e(21),u=e(22);o.exports=function(f){return function(p,d){var b,E,_=String(u(p)),P=s(d),I=_.length;return P<0||P>=I?f?"":void 0:(b=_.charCodeAt(P))<55296||b>56319||P+1===I||(E=_.charCodeAt(P+1))<56320||E>57343?f?_.charAt(P):b:f?_.slice(P,P+2):E-56320+(b-55296<<10)+65536}}},function(o,n,e){var s=e(54);o.exports=function(u,f,p){if(s(u),f===void 0)return u;switch(p){case 1:return function(d){return u.call(f,d)};case 2:return function(d,b){return u.call(f,d,b)};case 3:return function(d,b,E){return u.call(f,d,b,E)}}return function(){return u.apply(f,arguments)}}},function(o,n){o.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(o,n,e){var s=e(38),u=e(16),f=e(28),p={};e(6)(p,e(2)("iterator"),function(){return this}),o.exports=function(d,b,E){d.prototype=s(p,{next:u(1,E)}),f(d,b+" Iterator")}},function(o,n,e){var s=e(7),u=e(10),f=e(13);o.exports=e(4)?Object.defineProperties:function(p,d){u(p);for(var b,E=f(d),_=E.length,P=0;_>P;)s.f(p,b=E[P++],d[b]);return p}},function(o,n,e){var s=e(9),u=e(58),f=e(59);o.exports=function(p){return function(d,b,E){var _,P=s(d),I=u(P.length),V=f(E,I);if(p&&b!=b){for(;I>V;)if((_=P[V++])!=_)return!0}else for(;I>V;V++)if((p||V in P)&&P[V]===b)return p||V||0;return!p&&-1}}},function(o,n,e){var s=e(21),u=Math.min;o.exports=function(f){return f>0?u(s(f),9007199254740991):0}},function(o,n,e){var s=e(21),u=Math.max,f=Math.min;o.exports=function(p,d){return(p=s(p))<0?u(p+d,0):f(p,d)}},function(o,n,e){var s=e(3).document;o.exports=s&&s.documentElement},function(o,n,e){var s=e(5),u=e(18),f=e(25)("IE_PROTO"),p=Object.prototype;o.exports=Object.getPrototypeOf||function(d){return d=u(d),s(d,f)?d[f]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?p:null}},function(o,n,e){var s=e(63),u=e(64),f=e(12),p=e(9);o.exports=e(34)(Array,"Array",function(d,b){this._t=p(d),this._i=0,this._k=b},function(){var d=this._t,b=this._k,E=this._i++;return!d||E>=d.length?(this._t=void 0,u(1)):u(0,b=="keys"?E:b=="values"?d[E]:[E,d[E]])},"values"),f.Arguments=f.Array,s("keys"),s("values"),s("entries")},function(o,n){o.exports=function(){}},function(o,n){o.exports=function(e,s){return{value:s,done:!!e}}},function(o,n,e){o.exports={default:e(66),__esModule:!0}},function(o,n,e){e(67),e(73),e(74),e(75),o.exports=e(1).Symbol},function(o,n,e){var s=e(3),u=e(5),f=e(4),p=e(15),d=e(37),b=e(68).KEY,E=e(8),_=e(26),P=e(28),I=e(17),V=e(2),Q=e(30),L=e(31),Z=e(69),t=e(70),F=e(10),R=e(11),B=e(18),z=e(9),j=e(23),C=e(16),M=e(38),N=e(71),y=e(72),J=e(32),K=e(7),S=e(13),U=y.f,ue=K.f,re=N.f,W=s.Symbol,ne=s.JSON,G=ne&&ne.stringify,fe=V("_hidden"),be=V("toPrimitive"),we={}.propertyIsEnumerable,ye=_("symbol-registry"),xe=_("symbols"),ce=_("op-symbols"),he=Object.prototype,Pe=typeof W=="function"&&!!J.f,qe=s.QObject,Ue=!qe||!qe.prototype||!qe.prototype.findChild,Ge=f&&E(function(){return M(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a!=7})?function(g,w,D){var T=U(he,w);T&&delete he[w],ue(g,w,D),T&&g!==he&&ue(he,w,T)}:ue,Je=function(g){var w=xe[g]=M(W.prototype);return w._k=g,w},$e=Pe&&typeof W.iterator=="symbol"?function(g){return typeof g=="symbol"}:function(g){return g instanceof W},Ve=function(g,w,D){return g===he&&Ve(ce,w,D),F(g),w=j(w,!0),F(D),u(xe,w)?(D.enumerable?(u(g,fe)&&g[fe][w]&&(g[fe][w]=!1),D=M(D,{enumerable:C(0,!1)})):(u(g,fe)||ue(g,fe,C(1,{})),g[fe][w]=!0),Ge(g,w,D)):ue(g,w,D)},Xe=function(g,w){F(g);for(var D,T=Z(w=z(w)),X=0,$=T.length;$>X;)Ve(g,D=T[X++],w[D]);return g},et=function(g){var w=we.call(this,g=j(g,!0));return!(this===he&&u(xe,g)&&!u(ce,g))&&(!(w||!u(this,g)||!u(xe,g)||u(this,fe)&&this[fe][g])||w)},Ye=function(g,w){if(g=z(g),w=j(w,!0),g!==he||!u(xe,w)||u(ce,w)){var D=U(g,w);return!D||!u(xe,w)||u(g,fe)&&g[fe][w]||(D.enumerable=!0),D}},tt=function(g){for(var w,D=re(z(g)),T=[],X=0;D.length>X;)u(xe,w=D[X++])||w==fe||w==b||T.push(w);return T},Ke=function(g){for(var w,D=g===he,T=re(D?ce:z(g)),X=[],$=0;T.length>$;)!u(xe,w=T[$++])||D&&!u(he,w)||X.push(xe[w]);return X};Pe||(d((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor!");var g=I(arguments.length>0?arguments[0]:void 0),w=function(D){this===he&&w.call(ce,D),u(this,fe)&&u(this[fe],g)&&(this[fe][g]=!1),Ge(this,g,C(1,D))};return f&&Ue&&Ge(he,g,{configurable:!0,set:w}),Je(g)}).prototype,"toString",function(){return this._k}),y.f=Ye,K.f=Ve,e(41).f=N.f=tt,e(19).f=et,J.f=Ke,f&&!e(14)&&d(he,"propertyIsEnumerable",et,!0),Q.f=function(g){return Je(V(g))}),p(p.G+p.W+p.F*!Pe,{Symbol:W});for(var Re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),_e=0;Re.length>_e;)V(Re[_e++]);for(var Qe=S(V.store),O=0;Qe.length>O;)L(Qe[O++]);p(p.S+p.F*!Pe,"Symbol",{for:function(g){return u(ye,g+="")?ye[g]:ye[g]=W(g)},keyFor:function(g){if(!$e(g))throw TypeError(g+" is not a symbol!");for(var w in ye)if(ye[w]===g)return w},useSetter:function(){Ue=!0},useSimple:function(){Ue=!1}}),p(p.S+p.F*!Pe,"Object",{create:function(g,w){return w===void 0?M(g):Xe(M(g),w)},defineProperty:Ve,defineProperties:Xe,getOwnPropertyDescriptor:Ye,getOwnPropertyNames:tt,getOwnPropertySymbols:Ke});var v=E(function(){J.f(1)});p(p.S+p.F*v,"Object",{getOwnPropertySymbols:function(g){return J.f(B(g))}}),ne&&p(p.S+p.F*(!Pe||E(function(){var g=W();return G([g])!="[null]"||G({a:g})!="{}"||G(Object(g))!="{}"})),"JSON",{stringify:function(g){for(var w,D,T=[g],X=1;arguments.length>X;)T.push(arguments[X++]);if(D=w=T[1],(R(w)||g!==void 0)&&!$e(g))return t(w)||(w=function($,oe){if(typeof D=="function"&&(oe=D.call(this,$,oe)),!$e(oe))return oe}),T[1]=w,G.apply(ne,T)}}),W.prototype[be]||e(6)(W.prototype,be,W.prototype.valueOf),P(W,"Symbol"),P(Math,"Math",!0),P(s.JSON,"JSON",!0)},function(o,n,e){var s=e(17)("meta"),u=e(11),f=e(5),p=e(7).f,d=0,b=Object.isExtensible||function(){return!0},E=!e(8)(function(){return b(Object.preventExtensions({}))}),_=function(I){p(I,s,{value:{i:"O"+ ++d,w:{}}})},P=o.exports={KEY:s,NEED:!1,fastKey:function(I,V){if(!u(I))return typeof I=="symbol"?I:(typeof I=="string"?"S":"P")+I;if(!f(I,s)){if(!b(I))return"F";if(!V)return"E";_(I)}return I[s].i},getWeak:function(I,V){if(!f(I,s)){if(!b(I))return!0;if(!V)return!1;_(I)}return I[s].w},onFreeze:function(I){return E&&P.NEED&&b(I)&&!f(I,s)&&_(I),I}}},function(o,n,e){var s=e(13),u=e(32),f=e(19);o.exports=function(p){var d=s(p),b=u.f;if(b)for(var E,_=b(p),P=f.f,I=0;_.length>I;)P.call(p,E=_[I++])&&d.push(E);return d}},function(o,n,e){var s=e(24);o.exports=Array.isArray||function(u){return s(u)=="Array"}},function(o,n,e){var s=e(9),u=e(41).f,f={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];o.exports.f=function(d){return p&&f.call(d)=="[object Window]"?function(b){try{return u(b)}catch{return p.slice()}}(d):u(s(d))}},function(o,n,e){var s=e(19),u=e(16),f=e(9),p=e(23),d=e(5),b=e(35),E=Object.getOwnPropertyDescriptor;n.f=e(4)?E:function(_,P){if(_=f(_),P=p(P,!0),b)try{return E(_,P)}catch{}if(d(_,P))return u(!s.f.call(_,P),_[P])}},function(o,n){},function(o,n,e){e(31)("asyncIterator")},function(o,n,e){e(31)("observable")},function(o,n,e){n.__esModule=!0;var s,u=e(77),f=(s=u)&&s.__esModule?s:{default:s};n.default=f.default||function(p){for(var d=1;dQ;)for(var t,F=b(arguments[Q++]),R=L?u(F).concat(L(F)):u(F),B=R.length,z=0;B>z;)t=R[z++],s&&!Z.call(F,t)||(I[t]=F[t]);return I}:E},function(o,n,e){n.__esModule=!0;var s=f(e(82)),u=f(e(85));function f(p){return p&&p.__esModule?p:{default:p}}n.default=function(p,d){if(Array.isArray(p))return p;if((0,s.default)(Object(p)))return function(b,E){var _=[],P=!0,I=!1,V=void 0;try{for(var Q,L=(0,u.default)(b);!(P=(Q=L.next()).done)&&(_.push(Q.value),!E||_.length!==E);P=!0);}catch(Z){I=!0,V=Z}finally{try{!P&&L.return&&L.return()}finally{if(I)throw V}}return _}(p,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(o,n,e){o.exports={default:e(83),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(84)},function(o,n,e){var s=e(42),u=e(2)("iterator"),f=e(12);o.exports=e(1).isIterable=function(p){var d=Object(p);return d[u]!==void 0||"@@iterator"in d||f.hasOwnProperty(s(d))}},function(o,n,e){o.exports={default:e(86),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(87)},function(o,n,e){var s=e(10),u=e(88);o.exports=e(1).getIterator=function(f){var p=u(f);if(typeof p!="function")throw TypeError(f+" is not iterable!");return s(p.call(f))}},function(o,n,e){var s=e(42),u=e(2)("iterator"),f=e(12);o.exports=e(1).getIteratorMethod=function(p){if(p!=null)return p[u]||p["@@iterator"]||f[s(p)]}},function(o,n,e){o.exports={default:e(90),__esModule:!0}},function(o,n,e){e(91),o.exports=e(1).Object.keys},function(o,n,e){var s=e(18),u=e(13);e(92)("keys",function(){return function(f){return u(s(f))}})},function(o,n,e){var s=e(15),u=e(1),f=e(8);o.exports=function(p,d){var b=(u.Object||{})[p]||Object[p],E={};E[p]=d(b),s(s.S+s.F*f(function(){b(1)}),"Object",E)}},function(o,n,e){(function(s){var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f=/^\s+|\s+$/g,p=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,d=/\{\n\/\* \[wrapped with (.+)\] \*/,b=/,? & /,E=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,P=/^\[object .+?Constructor\]$/,I=/^0o[0-7]+$/i,V=/^(?:0|[1-9]\d*)$/,Q=parseInt,L=typeof s=="object"&&s&&s.Object===Object&&s,Z=typeof self=="object"&&self&&self.Object===Object&&self,t=L||Z||Function("return this")();function F(O,v,g){switch(g.length){case 0:return O.call(v);case 1:return O.call(v,g[0]);case 2:return O.call(v,g[0],g[1]);case 3:return O.call(v,g[0],g[1],g[2])}return O.apply(v,g)}function R(O,v){return!!(O&&O.length)&&function(g,w,D){if(w!=w)return function($,oe,me,ve){for(var ke=$.length,de=me+-1;++de-1}function B(O){return O!=O}function z(O,v){for(var g=O.length,w=0;g--;)O[g]===v&&w++;return w}function j(O,v){for(var g=-1,w=O.length,D=0,T=[];++g2?M:void 0);function we(O){return Re(O)?ne(O):{}}function ye(O){return!(!Re(O)||function(v){return!!S&&S in v}(O))&&(function(v){var g=Re(v)?re.call(v):"";return g=="[object Function]"||g=="[object GeneratorFunction]"}(O)||function(v){var g=!1;if(v!=null&&typeof v.toString!="function")try{g=!!(v+"")}catch{}return g}(O)?W:P).test(function(v){if(v!=null){try{return U.call(v)}catch{}try{return v+""}catch{}}return""}(O))}function xe(O,v,g,w){for(var D=-1,T=O.length,X=g.length,$=-1,oe=v.length,me=G(T-X,0),ve=Array(oe+me),ke=!w;++$1&&te.reverse(),ve&&oe1?"& ":"")+v[w],v=v.join(g>2?", ":" "),O.replace(p,`{ /* [wrapped with `+v+`] */ `)}function Xe(O,v){return!!(v=v??9007199254740991)&&(typeof O=="number"||V.test(O))&&O>-1&&O%1==0&&O1&&f--,d=6*f<1?s+6*(u-s)*f:2*f<1?u:3*f<2?s+(u-s)*(2/3-f)*6:s,p[P]=255*d;return p}},function(o,n,e){(function(s){var u=typeof s=="object"&&s&&s.Object===Object&&s,f=typeof self=="object"&&self&&self.Object===Object&&self,p=u||f||Function("return this")();function d(j,C,M){switch(M.length){case 0:return j.call(C);case 1:return j.call(C,M[0]);case 2:return j.call(C,M[0],M[1]);case 3:return j.call(C,M[0],M[1],M[2])}return j.apply(C,M)}function b(j,C){for(var M=-1,N=C.length,y=j.length;++M-1&&y%1==0&&y<=9007199254740991}(N.length)&&!function(y){var J=function(K){var S=typeof K;return!!K&&(S=="object"||S=="function")}(y)?P.call(y):"";return J=="[object Function]"||J=="[object GeneratorFunction]"}(N)}(M)}(C)&&_.call(C,"callee")&&(!V.call(C,"callee")||P.call(C)=="[object Arguments]")}(j)||!!(Q&&j&&j[Q])}var t=Array.isArray,F,R,B,z=(R=function(j){var C=(j=function(y,J,K,S,U){var ue=-1,re=y.length;for(K||(K=Z),U||(U=[]);++ue2?f-2:0),d=2;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var a,r=P(c);if(l){var i=P(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Q(this,a)}}e.r(n);var Z=e(0),t=e.n(Z);function F(){var c=this.constructor.getDerivedStateFromProps(this.props,this.state);c!=null&&this.setState(c)}function R(c){this.setState((function(l){var a=this.constructor.getDerivedStateFromProps(c,l);return a??null}).bind(this))}function B(c,l){try{var a=this.props,r=this.state;this.props=c,this.state=l,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,r)}finally{this.props=a,this.state=r}}function z(c){var l=c.prototype;if(!l||!l.isReactComponent)throw new Error("Can only polyfill class components");if(typeof c.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function")return c;var a=null,r=null,i=null;if(typeof l.componentWillMount=="function"?a="componentWillMount":typeof l.UNSAFE_componentWillMount=="function"&&(a="UNSAFE_componentWillMount"),typeof l.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof l.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof l.componentWillUpdate=="function"?i="componentWillUpdate":typeof l.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),a!==null||r!==null||i!==null){var m=c.displayName||c.name,k=typeof c.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. diff --git a/core-packages/assets/Bu0wWIMd2iee.js b/core-packages/assets/Bp6FgAg5vEp7.js similarity index 95% rename from core-packages/assets/Bu0wWIMd2iee.js rename to core-packages/assets/Bp6FgAg5vEp7.js index 61180cc2e..36a567e15 100644 --- a/core-packages/assets/Bu0wWIMd2iee.js +++ b/core-packages/assets/Bp6FgAg5vEp7.js @@ -1,4 +1,4 @@ -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{H as vt}from"./CNWmJGa2bJMS.js";import{N as mt,a as gt}from"./LKojhJIlmLP8.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);/** +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 @@ -10,4 +10,4 @@ var Pe=r=>{throw TypeError(r)};var Ae=(r,e,s)=>e.has(r)||Pe("Cannot "+s);var T=( - 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/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:vt,provides:[{name:"http.HttpService",qualifier:void 0}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:mt,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/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}}},"@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:{}}},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(gt,{}),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); +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/CBHdPn9TT3Q7.js b/core-packages/assets/C5gzsCUSeGnZ.js similarity index 94% rename from core-packages/assets/CBHdPn9TT3Q7.js rename to core-packages/assets/C5gzsCUSeGnZ.js index 3c08e15d7..215b9a6a2 100644 --- a/core-packages/assets/CBHdPn9TT3Q7.js +++ b/core-packages/assets/C5gzsCUSeGnZ.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/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},I="",z=[];function E(e){throw new Error(`Unsupported locale: '${e}'`)}const M=f(I),T=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:E,locales:z,packages:y,styles:M},Symbol.toStringTag,{value:"Module"})),k="extension-app",C=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/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); diff --git a/core-packages/assets/IkibgNADSKAJ.js b/core-packages/assets/CPx89lC1HAc1.js similarity index 94% rename from core-packages/assets/IkibgNADSKAJ.js rename to core-packages/assets/CPx89lC1HAc1.js index 3861b37f0..b57a6a590 100644 --- a/core-packages/assets/IkibgNADSKAJ.js +++ b/core-packages/assets/CPx89lC1HAc1.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/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); +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); diff --git a/core-packages/assets/Dg1XPF6aWlIi.js b/core-packages/assets/CdW_8K6w63rI.js similarity index 82% rename from core-packages/assets/Dg1XPF6aWlIi.js rename to core-packages/assets/CdW_8K6w63rI.js index 321a55b55..9c779cea6 100644 --- a/core-packages/assets/Dg1XPF6aWlIi.js +++ b/core-packages/assets/CdW_8K6w63rI.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/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/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",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:{}}},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/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); diff --git a/core-packages/assets/Cl682W9r-YJn.js b/core-packages/assets/DkVfmBxvveNW.js similarity index 85% rename from core-packages/assets/Cl682W9r-YJn.js rename to core-packages/assets/DkVfmBxvveNW.js index cfb642533..e2dac4d8d 100644 --- a/core-packages/assets/Cl682W9r-YJn.js +++ b/core-packages/assets/DkVfmBxvveNW.js @@ -1 +1 @@ -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/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/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:{}}},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); +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/Cu92QPAumNCG.js b/core-packages/assets/DskoU3k5tfRy.js similarity index 80% rename from core-packages/assets/Cu92QPAumNCG.js rename to core-packages/assets/DskoU3k5tfRy.js index 36e52d9d0..a5ead54ab 100644 --- a/core-packages/assets/Cu92QPAumNCG.js +++ b/core-packages/assets/DskoU3k5tfRy.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/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",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/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); +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); diff --git a/core-packages/assets/4LiCkXEq62LF.js b/core-packages/assets/IYf3wYeThTW4.js similarity index 92% rename from core-packages/assets/4LiCkXEq62LF.js rename to core-packages/assets/IYf3wYeThTW4.js index e7c5d4f41..a5db4fee7 100644 --- a/core-packages/assets/4LiCkXEq62LF.js +++ b/core-packages/assets/IYf3wYeThTW4.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/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"i18n-sample-package":{name:"i18n-sample-package",services:{},ui:{references:[]},properties:{}}},A="",P=["de","en","de-simple"];function T(t){switch(t){case"de":return c(()=>import("./CVEPn1OX0dMY.js"),[],import.meta.url).then(r=>r.default);case"en":return c(()=>import("./CpxcYkkJOozD.js"),[],import.meta.url).then(r=>r.default);case"de-simple":return c(()=>import("./D02xQxr8Ohom.js"),[],import.meta.url).then(r=>r.default)}throw new Error(`Unsupported locale: '${t}'`)}const I=x(A),R=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:T,locales:P,packages:L,styles:I},Symbol.toStringTag,{value:"Module"})),u="i18n-app",f=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/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); diff --git a/core-packages/assets/BJizmv2ouIHe.js b/core-packages/assets/g1BJdB74TioF.js similarity index 98% rename from core-packages/assets/BJizmv2ouIHe.js rename to core-packages/assets/g1BJdB74TioF.js index 8adc20b3a..44b247e55 100644 --- a/core-packages/assets/BJizmv2ouIHe.js +++ b/core-packages/assets/g1BJdB74TioF.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/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},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/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); diff --git a/core-packages/docs/classes/_open_pioneer_core.Error.html b/core-packages/docs/classes/_open_pioneer_core.Error.html index d6db82ed2..98ffff3d6 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 8b7dd5eb0..847e10a44 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 ace5804f3..671e7d64f 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 579f280f4..18782594e 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 e38f91a45..2898d68dd 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 c9d180971..dd9e5724a 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 60c469014..b4cfba949 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 359dfddb8..ec602829c 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 758127872..734b38463 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 e50a85f32..6a5f25518 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 f62f5d142..0d02456ed 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 67e8e8842..9c90d3f0b 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 62bf3f912..95ae66c94 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 e6a51a481..c3d79b9db 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 954c014ce..fc2155bd1 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 67d4c5913..45b8d5c83 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 6160b4f2c..265d1c5f4 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 3abfe0144..32f5d639e 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 bf3313d53..9868f9989 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 b77c30618..6a91ee560 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 dc887b525..c956e96f6 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 6266e2d7d..fef52e377 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 4c1c145b6..548fbc08d 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 8af9d7f49..a98d2ccc1 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 cfd1c7ebb..6d5701bd8 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 46d302b43..e712d14b9 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 17c858504..1605c104a 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 3cf94e01e..db85ef803 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 2dbe6fbb4..e9bf91b9a 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 e9301e484..5f16e9f50 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 b2824094c..6e3b59aa2 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 38dcb4015..d131fc184 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 index 6f8ff08e7..86a482686 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthEvents.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthEvents.html @@ -1,4 +1,4 @@ AuthEvents | Trails Packages

    Events emitted by the AuthService.

    -
    interface AuthEvents {
        changed: void;
    }

    Properties

    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 500a2ea11..e9d606eb4 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPlugin.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPlugin.html @@ -5,7 +5,7 @@

    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

    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

    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

    +

    Type Parameters

    • Name extends "changed"

    Parameters

    Returns Resource

    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPluginEvents.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPluginEvents.html index db6611c46..83dd335e0 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPluginEvents.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthPluginEvents.html @@ -1,3 +1,3 @@ AuthPluginEvents | Trails Packages

    Events that may be emitted by an authentication plugin.

    -
    interface AuthPluginEvents {
        changed: void;
    }

    Properties

    Properties

    changed: void
    +
    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 10cee9f38..4c14032da 100644 --- a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthService.html +++ b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthService.html @@ -1,6 +1,6 @@ AuthService | Trails Packages

    Manages the current user's authentication state.

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

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

    getAuthState getLoginBehavior getSessionInfo logout @@ -10,16 +10,16 @@

    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

    +

    Type Parameters

    • Name extends "changed"

    Parameters

    Returns Resource

    diff --git a/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html b/core-packages/docs/interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html index e27328c7f..f7efd9436 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 5c13ebb3f..1b02b1bf0 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 cfe81d587..e468b485d 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 bd19953e0..be9755687 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 2ac59cd7f..82fb4c7ad 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 4ae585070..33f1d993a 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 b55db7bcd..6ad12b057 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 bcde9de93..4b4fb7956 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 0cf27f5e0..db4ad7d19 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 cd78429d0..da2ccb237 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 7bdf3174f..c720e34ea 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 6e5751f4a..63224d74e 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 1a7916d94..f1909e933 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 a08f38ed2..a41c3af95 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 dcb8b9327..db136fa30 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 368106b1b..d4813df87 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 df39d04cf..a3deb146b 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 110bce9b4..8eb73ac60 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 8212adab5..3be8a27af 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 fec7994a2..a99358fe3 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 47f71bfa4..1c6a648d9 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 9bf4757b9..5c3e77740 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 48e6e69d1..91e6d4a0a 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 65d84ec5e..778bfdf48 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 af30a9ad2..aefaa1fe2 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 02d1ab7c5..5b0df702a 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 87864a1a3..64e43963c 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 8086585b7..42c4899a6 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 dac5d820a..f3d700329 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 25dcfd0d8..1b2906cc4 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 a2c0c1b6d..1c69a4a39 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 4d92fd263..1787792b1 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 c35a7321e..2f3676e20 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 2fb8579c1..2c7da55ae 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 fb9d4a678..04c55beef 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 8caa7e550..c85412435 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 ed406c90a..3139d0ef1 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 f4855950a..d2681b153 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 2890ce230..dbfe7ce97 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 92d9a35bd..18746b9d1 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 b501e8985..3fc6ff1aa 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 a032473c2..db917869e 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 4e4af8340..ea976b804 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 2210c6508..70ab0011f 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 e7306e7cc..d0d73fc71 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 c5f4304c8..d72332f63 100644 --- a/core-packages/docs/interfaces/_open_pioneer_test_utils.services.CreateServiceOptions.html +++ b/core-packages/docs/interfaces/_open_pioneer_test_utils.services.CreateServiceOptions.html @@ -1,5 +1,5 @@ CreateServiceOptions | Trails Packages

    Options for the createService function.

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

    Type Parameters

    • References

    Properties

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

    Type Parameters

    • References

    Properties

    "en"
     
    -
    locale?: string

    The locale for i18n messages and formatting.

    +
    locale?: string

    The locale for i18n messages and formatting.

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

    I18n messages as (messageId, message) entries.

    +
    messages?: Record<string, string>

    I18n messages as (messageId, message) entries.

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

    Properties provided to the service constructor.

    +
    properties?: Record<string, unknown>

    Properties provided to the service constructor.

    {}
     
    -
    references?: PartialServiceReferences<References>

    References provided to the service constructor.

    +
    references?: PartialServiceReferences<References>

    References provided to the service constructor.

    {}
     
    -
    +
    diff --git a/core-packages/docs/modules/_open_pioneer_test_utils.react.html b/core-packages/docs/modules/_open_pioneer_test_utils.react.html index 0426fb0ff..45b4d83d6 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 e94a3af9c..ad4015b09 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 ac7b12afb..e3e7275d2 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 index 2dfb602ac..7d165b1cf 100644 --- a/core-packages/docs/types/_open_pioneer_authentication.AuthPluginEventBase.html +++ b/core-packages/docs/types/_open_pioneer_authentication.AuthPluginEventBase.html @@ -1,2 +1,2 @@ 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 b4d2ca5de..94d0007c6 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

    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 1248ddd50..58ca9e50d 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 91addfd4c..5f5c08285 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 de89110bb..c5b7658ca 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 49248a80d..941c3d795 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 ba0069ffc..ffab12776 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 73914317d..912dc2318 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 23ad60924..2036df6f8 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 aaae4cbe7..450446078 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 0ca62b870..0fdef7f63 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 273e06811..6641f49c4 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 24e3ab179..5d715c6e7 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 72a06376f..3dda5882c 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 56afc1804..9b7848d64 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 c261b9f0c..705c25851 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 4686fe3e7..8a525a8c8 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 322a46673..18f8bccb4 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 c78f6d769..bd3c17616 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 e127d4b16..19baadff1 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 8bf42f454..b4481db2c 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 9e905fd9e..a896975d3 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 2f3ea2663..ac8223ec9 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 14f066b2b..54713a22d 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 d0b8ab723..58b1022c4 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 c6d067781..9dd45f5ce 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 71486784d..b786ea1f6 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 2dbd78ec4..e5b0ed680 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 05afdf056..7011ef36b 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 fe19cc3d0..8b1d55c80 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 80ff95400..a3b34b082 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 8b929a4ca..84214d3e4 100644 --- a/core-packages/samples/auth-sample/index.html +++ b/core-packages/samples/auth-sample/index.html @@ -16,7 +16,7 @@ max-height: 100%; } - + diff --git a/core-packages/samples/chakra-sample/index.html b/core-packages/samples/chakra-sample/index.html index 0ac25d836..48c23ca35 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 f8cac91e9..f69939f0a 100644 --- a/core-packages/samples/extension-sample/index.html +++ b/core-packages/samples/extension-sample/index.html @@ -4,7 +4,7 @@ Extension Sample - + diff --git a/core-packages/samples/http-sample/index.html b/core-packages/samples/http-sample/index.html index 7b3508526..cb0a0b794 100644 --- a/core-packages/samples/http-sample/index.html +++ b/core-packages/samples/http-sample/index.html @@ -4,7 +4,7 @@ HTTP Sample - + diff --git a/core-packages/samples/i18n-sample/index.html b/core-packages/samples/i18n-sample/index.html index ad9f5bd8f..8327a6678 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 5849abeae..564c96666 100644 --- a/core-packages/samples/keycloak-sample/index.html +++ b/core-packages/samples/keycloak-sample/index.html @@ -17,13 +17,13 @@ height: 500px; } - + - + diff --git a/core-packages/samples/notify-sample/index.html b/core-packages/samples/notify-sample/index.html index 763fd7b6f..74f83406d 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 19afc1731..27734f417 100644 --- a/core-packages/samples/properties-sample/index.html +++ b/core-packages/samples/properties-sample/index.html @@ -4,7 +4,7 @@ Properties Demo - +