@telia-ace/alliance-ui 4.0.0-next.4 → 4.0.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-DPROJK37.js → chunk-54QIKEP4.js} +1 -1
- package/dist/{chunk-PRKPUBA7.js → chunk-USRN3KLA.js} +1 -1
- package/dist/chunk-W3TP4NYJ.js +2 -0
- package/dist/components/alliance-link/index.js +1 -1
- package/dist/components/alliance-view/index.js +1 -1
- package/dist/components/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-L3VH74CD.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-W3TP4NYJ.js";import{a as t}from"./chunk-JFKSI6I7.js";import{LitElement as c,css as h,html as l}from"lit";import{property as i}from"lit/decorators.js";var m="alliance-view-",u="app-view",y=(a=>(a.Main="main",a.Aside="aside",a.Body="body",a))(y||{});function f(r){return`${m}${r}`}function w(r,d){class e extends c{static{this.styles=h`
|
|
2
2
|
.loader {
|
|
3
3
|
background-color: rgba(255, 255, 255, 0.4);
|
|
4
4
|
z-index: var(--layer-dropdown);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as s,c as l}from"./chunk-
|
|
1
|
+
import{b as s,c as l}from"./chunk-W3TP4NYJ.js";import{a as e}from"./chunk-JFKSI6I7.js";import{LitElement as o,css as p,html as u}from"lit";import{property as r}from"lit/decorators.js";function d(i=""){return location.href.replace(location.origin,"").startsWith(i)}var t=class extends o{constructor(){super();this.navigate=()=>{this.active||(history.pushState({},"",this._href),window.dispatchEvent(new Event("popstate")))};this.clickHandler=a=>{!this.app||this.download||(a.preventDefault(),this.navigate())};this.updateActive=()=>{this.active=d(this._href)};this.computeHref=()=>{if(this.app){this._href=this.href=s(this.app,this.capability,this.args),this.updateActive();return}if(this.href){this.capability="",this._href=this.href;return}throw new Error("The <alliance-link> component requires either the 'app' property or 'href' property!")};this.args={},this.download=!1,this.target="_self",this.href=this._href="",this.capability="launch",this.active=!1}static{this.styles=p`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import f from"crypto";var y=(e=>(e[e.AlreadyInitialized=1e3]="AlreadyInitialized",e[e.NoAppName=1001]="NoAppName",e[e.MissingAppController=1002]="MissingAppController",e[e.MissingCapabilityOnApp=1003]="MissingCapabilityOnApp",e[e.MissingManagedObjectProvider=1004]="MissingManagedObjectProvider",e[e.NoManifest=1005]="NoManifest",e[e.NoRootElement=1006]="NoRootElement",e[e.NoView=1007]="NoView",e[e.CookieKeyNotDefined=1008]="CookieKeyNotDefined",e[e.CookieCategoryNotAllowed=1009]="CookieCategoryNotAllowed",e[e.StorageKeyNotDefined=1010]="StorageKeyNotDefined",e[e.StorageCategoryNotAllowed=1011]="StorageCategoryNotAllowed",e[e.LocalizationTemplateNotDefined=1012]="LocalizationTemplateNotDefined",e[e.NonViewOperation=1013]="NonViewOperation",e))(y||{}),h=(e=>(e[e.CurrentUserMissingProvider=2e3]="CurrentUserMissingProvider",e[e.CurrentUserGatewayNotStarted=2001]="CurrentUserGatewayNotStarted",e[e.CurrentUserMissingBackend=2002]="CurrentUserMissingBackend",e[e.CurrentUserMissingInDatabase=2003]="CurrentUserMissingInDatabase",e))(h||{});function d(e){if(!p(e))throw new Error("Parameter was not an error")}function p(e){return!!e&&typeof e=="object"&&N(e)==="[object Error]"||e instanceof Error}function N(e){return Object.prototype.toString.call(e)}var w="Layerr",C=w;function E(){return C}function k(e){let t,r="";if(e.length===0)t={};else if(p(e[0]))t={cause:e[0]},r=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),r=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},r=r=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:r}}var i=class s extends Error{constructor(t,r){let o=[...arguments],{options:n,shortMessage:a}=k(o),u=a;if(n.cause&&(u=`${u}: ${n.cause.message}`),super(u),this.message=u,n.name&&typeof n.name=="string"?this.name=n.name:this.name=E(),n.cause&&Object.defineProperty(this,"_cause",{value:n.cause}),Object.defineProperty(this,"_info",{value:{}}),n.info&&typeof n.info=="object"&&Object.assign(this._info,n.info),Error.captureStackTrace){let m=n.constructorOpt||this.constructor;Error.captureStackTrace(this,m)}}static cause(t){return d(t),t._cause&&p(t._cause)?t._cause:null}static fullStack(t){d(t);let r=s.cause(t);return r?`${t.stack}
|
|
2
|
+
caused by: ${s.fullStack(r)}`:t.stack??""}static info(t){d(t);let r={},o=s.cause(t);return o&&Object.assign(r,s.info(o)),t._info&&Object.assign(r,t._info),r}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}},b="0123456789ABCDEFGHJKMNPQRSTVWXYZ",c=32,g=0xffffffffffff,$=10,T=16,l=Object.freeze({source:"ulid"});function j(e){let t=e||O(),r=t&&(t.crypto||t.msCrypto)||(typeof f<"u"?f:null);if(typeof r?.getRandomValues=="function")return()=>{let o=new Uint8Array(1);return r.getRandomValues(o),o[0]/255};if(typeof r?.randomBytes=="function")return()=>r.randomBytes(1).readUInt8()/255;if(f?.randomBytes)return()=>f.randomBytes(1).readUInt8()/255;throw new i({info:{code:"PRNG_DETECT",...l}},"Failed to find a reliable PRNG")}function O(){return U()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function A(e,t){let r="";for(;e>0;e--)r=v(t)+r;return r}function M(e,t){if(isNaN(e))throw new i({info:{code:"ENC_TIME_NAN",...l}},`Time must be a number: ${e}`);if(e>g)throw new i({info:{code:"ENC_TIME_SIZE_EXCEED",...l}},`Cannot encode a time larger than ${g}: ${e}`);if(e<0)throw new i({info:{code:"ENC_TIME_NEG",...l}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new i({info:{code:"ENC_TIME_TYPE",...l}},`Time must be an integer: ${e}`);let r,o="";for(let n=t;n>0;n--)r=e%c,o=b.charAt(r)+o,e=(e-r)/c;return o}function U(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function v(e){let t=Math.floor(e()*c);return t===c&&(t=c-1),b.charAt(t)}function _(e,t){let r=t||j(),o=isNaN(e)?Date.now():e;return M(o,$)+A(T,r)}function D(){return _().toLowerCase()}function I(e){let t=Object.entries(e).reduce((r,o)=>{let[n,a]=o;return typeof a>"u"||(typeof a=="object"&&a!==null?r[n]=JSON.stringify(a):r[n]=a),r},{});return Object.keys(t).length?`?${new URLSearchParams(t)}`:""}function L(e="",t="",r={}){let o=S().replace(location.origin,""),n=I(r);return e?t?`${o}/${e}/${t}${n}`:`${o}/${e}${n}`:`${o}${n}`}function S(){return globalThis.__ALLIANCE_RUNTIME_ROOT_URL?globalThis.__ALLIANCE_RUNTIME_ROOT_URL:window.origin}function P(e){return t=>{t.key==="Enter"&&e(t)}}export{D as a,L as b,P as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-USRN3KLA.js";import"../../chunk-W3TP4NYJ.js";import"../../chunk-JFKSI6I7.js";export{a as Link};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e}from"../../chunk-54QIKEP4.js";import"../../chunk-W3TP4NYJ.js";import"../../chunk-JFKSI6I7.js";export{c as ViewElementType,e as registerViewElement,a as viewElementPrefix,b as viewElementSelector,d as viewElementTag};
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p,b as i,c as m,d as f,e as c}from"../chunk-LZEZ2U5O.js";import{a as s}from"../chunk-3Y6W4IDL.js";import{a as b,b as x,c as y,d as h,e as P}from"../chunk-
|
|
1
|
+
import{a as p,b as i,c as m,d as f,e as c}from"../chunk-LZEZ2U5O.js";import{a as s}from"../chunk-3Y6W4IDL.js";import{a as b,b as x,c as y,d as h,e as P}from"../chunk-54QIKEP4.js";import{a as t}from"../chunk-USRN3KLA.js";import"../chunk-W3TP4NYJ.js";import{a as e}from"../chunk-TJ37YT5S.js";import"../chunk-H7ZWVNSK.js";import{a as r,b as a,c as n}from"../chunk-ERBUEZ5O.js";import"../chunk-AZ6GENL6.js";import"../chunk-BDQXACZ6.js";import"../chunk-JZJUYJ7F.js";import{a as l}from"../chunk-ZO3TGBYT.js";import"../chunk-QLXKAVKR.js";import"../chunk-CNFJFZ6D.js";import"../chunk-JFKSI6I7.js";var g=[["link",t],["modal",e],["unauthorized",s],["page-selector",r],["paginator-button",n],["paginator",a],["pop-over",l],["table",p],["tb",i],["td",m],["th",f],["tr",c]];for(let[u,d]of g){let o=`alliance-${u}`;customElements.get(o)||customElements.define(o,d)}export{y as ViewElementType,P as registerViewElement,b as viewElementPrefix,x as viewElementSelector,h as viewElementTag};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/alliance-ui",
|
|
3
|
-
"version": "4.0.0-next.
|
|
3
|
+
"version": "4.0.0-next.6",
|
|
4
4
|
"description": "UI components used by ACE Alliance apps.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@floating-ui/dom": "^1.
|
|
28
|
+
"@floating-ui/dom": "^1.7.1",
|
|
29
29
|
"@teliads/components": "^22.1.1",
|
|
30
|
-
"lit": "^3.
|
|
30
|
+
"lit": "^3.3.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@telia-ace/alliance-internal-client-utilities": "^4.0.0-next.
|
|
33
|
+
"@telia-ace/alliance-internal-client-utilities": "^4.0.0-next.6"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
package/dist/chunk-L3VH74CD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import f from"node:crypto";var y=(e=>(e[e.AlreadyInitialized=1e3]="AlreadyInitialized",e[e.NoAppName=1001]="NoAppName",e[e.MissingAppController=1002]="MissingAppController",e[e.MissingCapabilityOnApp=1003]="MissingCapabilityOnApp",e[e.MissingManagedObjectProvider=1004]="MissingManagedObjectProvider",e[e.NoManifest=1005]="NoManifest",e[e.NoRootElement=1006]="NoRootElement",e[e.NoView=1007]="NoView",e[e.CookieKeyNotDefined=1008]="CookieKeyNotDefined",e[e.CookieCategoryNotAllowed=1009]="CookieCategoryNotAllowed",e[e.StorageKeyNotDefined=1010]="StorageKeyNotDefined",e[e.StorageCategoryNotAllowed=1011]="StorageCategoryNotAllowed",e[e.LocalizationTemplateNotDefined=1012]="LocalizationTemplateNotDefined",e[e.NonViewOperation=1013]="NonViewOperation",e))(y||{}),h=(e=>(e[e.CurrentUserMissingProvider=2e3]="CurrentUserMissingProvider",e[e.CurrentUserGatewayNotStarted=2001]="CurrentUserGatewayNotStarted",e[e.CurrentUserMissingBackend=2002]="CurrentUserMissingBackend",e[e.CurrentUserMissingInDatabase=2003]="CurrentUserMissingInDatabase",e))(h||{});function d(e){if(!p(e))throw new Error("Parameter was not an error")}function p(e){return!!e&&typeof e=="object"&&N(e)==="[object Error]"||e instanceof Error}function N(e){return Object.prototype.toString.call(e)}var w="Layerr",C=w;function E(){return C}function k(e){let t,r="";if(e.length===0)t={};else if(p(e[0]))t={cause:e[0]},r=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),r=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},r=r=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:r}}var i=class s extends Error{constructor(t,r){let o=[...arguments],{options:n,shortMessage:a}=k(o),u=a;if(n.cause&&(u=`${u}: ${n.cause.message}`),super(u),this.message=u,n.name&&typeof n.name=="string"?this.name=n.name:this.name=E(),n.cause&&Object.defineProperty(this,"_cause",{value:n.cause}),Object.defineProperty(this,"_info",{value:{}}),n.info&&typeof n.info=="object"&&Object.assign(this._info,n.info),Error.captureStackTrace){let m=n.constructorOpt||this.constructor;Error.captureStackTrace(this,m)}}static cause(t){return d(t),t._cause&&p(t._cause)?t._cause:null}static fullStack(t){d(t);let r=s.cause(t);return r?`${t.stack}
|
|
2
|
-
caused by: ${s.fullStack(r)}`:t.stack??""}static info(t){d(t);let r={},o=s.cause(t);return o&&Object.assign(r,s.info(o)),t._info&&Object.assign(r,t._info),r}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}},b="0123456789ABCDEFGHJKMNPQRSTVWXYZ",c=32,g=0xffffffffffff,$=10,T=16,l=Object.freeze({source:"ulid"});function j(e){let t=e||O(),r=t&&(t.crypto||t.msCrypto)||(typeof f<"u"?f:null);if(typeof r?.getRandomValues=="function")return()=>{let o=new Uint8Array(1);return r.getRandomValues(o),o[0]/255};if(typeof r?.randomBytes=="function")return()=>r.randomBytes(1).readUInt8()/255;if(f?.randomBytes)return()=>f.randomBytes(1).readUInt8()/255;throw new i({info:{code:"PRNG_DETECT",...l}},"Failed to find a reliable PRNG")}function O(){return U()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function A(e,t){let r="";for(;e>0;e--)r=v(t)+r;return r}function M(e,t){if(isNaN(e))throw new i({info:{code:"ENC_TIME_NAN",...l}},`Time must be a number: ${e}`);if(e>g)throw new i({info:{code:"ENC_TIME_SIZE_EXCEED",...l}},`Cannot encode a time larger than ${g}: ${e}`);if(e<0)throw new i({info:{code:"ENC_TIME_NEG",...l}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new i({info:{code:"ENC_TIME_TYPE",...l}},`Time must be an integer: ${e}`);let r,o="";for(let n=t;n>0;n--)r=e%c,o=b.charAt(r)+o,e=(e-r)/c;return o}function U(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function v(e){let t=Math.floor(e()*c);return t===c&&(t=c-1),b.charAt(t)}function _(e,t){let r=t||j(),o=isNaN(e)?Date.now():e;return M(o,$)+A(T,r)}function D(){return _().toLowerCase()}function I(e){let t=Object.entries(e).reduce((r,o)=>{let[n,a]=o;return typeof a>"u"||(typeof a=="object"&&a!==null?r[n]=JSON.stringify(a):r[n]=a),r},{});return Object.keys(t).length?`?${new URLSearchParams(t)}`:""}function L(e="",t="",r={}){let o=S().replace(location.origin,""),n=I(r);return e?t?`${o}/${e}/${t}${n}`:`${o}/${e}${n}`:`${o}${n}`}function S(){return globalThis.__ALLIANCE_RUNTIME_ROOT_URL?globalThis.__ALLIANCE_RUNTIME_ROOT_URL:window.origin}function P(e){return t=>{t.key==="Enter"&&e(t)}}export{D as a,L as b,P as c};
|