@telia-ace/alliance-ui 2.0.1-next.0 → 2.0.1-next.1

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.
@@ -1,4 +1,4 @@
1
- import{a as p}from"./chunk-JWRPMTFZ.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`
1
+ import{a as p}from"./chunk-L3VH74CD.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);
@@ -0,0 +1,2 @@
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};
@@ -1,4 +1,4 @@
1
- import{b as s,c as l}from"./chunk-JWRPMTFZ.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`
1
+ import{b as s,c as l}from"./chunk-L3VH74CD.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
  }
@@ -25,9 +25,13 @@ import{a as r,b as p,c as a,e as l,g,h as e,j as u}from"./chunk-CNFJFZ6D.js";imp
25
25
  flex-direction: column;
26
26
  }
27
27
 
28
+ .header {
29
+ border-bottom: ${t(r.widthXs)} solid ${t(a.gray200)};
30
+ }
31
+
28
32
  .body {
29
33
  flex: 1;
30
- padding: ${t(e.spacing24)} ${t(e.spacing32)};
34
+ padding: ${t(e.spacing24)};
31
35
  height: 80%;
32
36
  overflow-x: hidden;
33
37
  overflow-y: auto;
@@ -35,7 +39,7 @@ import{a as r,b as p,c as a,e as l,g,h as e,j as u}from"./chunk-CNFJFZ6D.js";imp
35
39
 
36
40
  .footer {
37
41
  border-top: ${t(r.widthXs)} solid ${t(a.gray200)};
38
- padding: ${t(e.spacing24)} ${t(e.spacing32)};
42
+ padding: ${t(e.spacing24)};
39
43
  }
40
44
  </style>`:i`<style>
41
45
  .container {
@@ -51,8 +55,7 @@ import{a as r,b as p,c as a,e as l,g,h as e,j as u}from"./chunk-CNFJFZ6D.js";imp
51
55
 
52
56
  .footer,
53
57
  .body {
54
- margin: ${t(e.spacing24)} 0;
55
- padding: 0 ${t(e.spacing32)};
58
+ padding: 0 ${t(e.spacing24)} ${t(e.spacing24)};
56
59
  }
57
60
  </style>`;this.subHeaderStyling=()=>{if(this.hasSubHeader)return i`<style>
58
61
  div.sub-header {
@@ -126,15 +129,14 @@ import{a as r,b as p,c as a,e as l,g,h as e,j as u}from"./chunk-CNFJFZ6D.js";imp
126
129
  position: relative;
127
130
  display: flex;
128
131
  align-items: center;
129
- padding: ${t(e.spacing24)} ${t(e.spacing32)};
130
- border-bottom: ${t(r.widthXs)} solid ${t(a.gray200)};
131
- min-height: 40px;
132
+ padding: ${t(e.spacing24)} ${t(e.spacing24)} ${t(e.spacing32)};
133
+ min-height: 30px;
132
134
  }
133
135
 
134
136
  .header telia-button {
135
137
  position: absolute;
136
- top: ${t(e.spacing20)};
137
- right: ${t(e.spacing24)};
138
+ top: ${t(e.spacing16)};
139
+ right: ${t(e.spacing16)};
138
140
  }
139
141
 
140
142
  .sub-header {
@@ -1 +1 @@
1
- import{a}from"../../chunk-ZCIEXUWM.js";import"../../chunk-JWRPMTFZ.js";import"../../chunk-JFKSI6I7.js";export{a as Link};
1
+ import{a}from"../../chunk-PRKPUBA7.js";import"../../chunk-L3VH74CD.js";import"../../chunk-JFKSI6I7.js";export{a as Link};
@@ -1 +1 @@
1
- import{a}from"../../chunk-FQZL23E4.js";import"../../chunk-H7ZWVNSK.js";import"../../chunk-BDQXACZ6.js";import"../../chunk-JZJUYJ7F.js";import"../../chunk-CNFJFZ6D.js";import"../../chunk-JFKSI6I7.js";export{a as Modal};
1
+ import{a}from"../../chunk-TJ37YT5S.js";import"../../chunk-H7ZWVNSK.js";import"../../chunk-BDQXACZ6.js";import"../../chunk-JZJUYJ7F.js";import"../../chunk-CNFJFZ6D.js";import"../../chunk-JFKSI6I7.js";export{a as Modal};
@@ -1 +1 @@
1
- import{a,b,c,d,e}from"../../chunk-2TIUYDHX.js";import"../../chunk-JWRPMTFZ.js";import"../../chunk-JFKSI6I7.js";export{c as ViewElementType,e as registerViewElement,a as viewElementPrefix,b as viewElementSelector,d as viewElementTag};
1
+ import{a,b,c,d,e}from"../../chunk-DPROJK37.js";import"../../chunk-L3VH74CD.js";import"../../chunk-JFKSI6I7.js";export{c as ViewElementType,e as registerViewElement,a as viewElementPrefix,b as viewElementSelector,d as viewElementTag};
@@ -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-2TIUYDHX.js";import{a as t}from"../chunk-ZCIEXUWM.js";import"../chunk-JWRPMTFZ.js";import{a as e}from"../chunk-FQZL23E4.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};
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-DPROJK37.js";import{a as t}from"../chunk-PRKPUBA7.js";import"../chunk-L3VH74CD.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": "2.0.1-next.0",
3
+ "version": "2.0.1-next.1",
4
4
  "description": "UI components used by ACE Alliance apps.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",
@@ -1,2 +0,0 @@
1
- import f from"node:crypto";var m=(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))(m||{}),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,n="";if(e.length===0)t={};else if(p(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},n=n=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:n}}var i=class s extends Error{constructor(t,n){let o=[...arguments],{options:r,shortMessage:a}=k(o),u=a;if(r.cause&&(u=`${u}: ${r.cause.message}`),super(u),this.message=u,r.name&&typeof r.name=="string"?this.name=r.name:this.name=E(),r.cause&&Object.defineProperty(this,"_cause",{value:r.cause}),Object.defineProperty(this,"_info",{value:{}}),r.info&&typeof r.info=="object"&&Object.assign(this._info,r.info),Error.captureStackTrace){let y=r.constructorOpt||this.constructor;Error.captureStackTrace(this,y)}}static cause(t){return d(t),t._cause&&p(t._cause)?t._cause:null}static fullStack(t){d(t);let n=s.cause(t);return n?`${t.stack}
2
- caused by: ${s.fullStack(n)}`:t.stack??""}static info(t){d(t);let n={},o=s.cause(t);return o&&Object.assign(n,s.info(o)),t._info&&Object.assign(n,t._info),n}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}},b="0123456789ABCDEFGHJKMNPQRSTVWXYZ",l=32,g=0xffffffffffff,j=10,$=16,c=Object.freeze({source:"ulid"});function O(e){let t=e||T(),n=t&&(t.crypto||t.msCrypto)||(typeof f<"u"?f:null);if(typeof n?.getRandomValues=="function")return()=>{let o=new Uint8Array(1);return n.getRandomValues(o),o[0]/255};if(typeof n?.randomBytes=="function")return()=>n.randomBytes(1).readUInt8()/255;if(f?.randomBytes)return()=>f.randomBytes(1).readUInt8()/255;throw new i({info:{code:"PRNG_DETECT",...c}},"Failed to find a reliable PRNG")}function T(){return v()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function A(e,t){let n="";for(;e>0;e--)n=_(t)+n;return n}function M(e,t){if(isNaN(e))throw new i({info:{code:"ENC_TIME_NAN",...c}},`Time must be a number: ${e}`);if(e>g)throw new i({info:{code:"ENC_TIME_SIZE_EXCEED",...c}},`Cannot encode a time larger than ${g}: ${e}`);if(e<0)throw new i({info:{code:"ENC_TIME_NEG",...c}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new i({info:{code:"ENC_TIME_TYPE",...c}},`Time must be an integer: ${e}`);let n,o="";for(let r=t;r>0;r--)n=e%l,o=b.charAt(n)+o,e=(e-n)/l;return o}function v(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function _(e){let t=Math.floor(e()*l);return t===l&&(t=l-1),b.charAt(t)}function U(e,t){let n=t||O(),o=isNaN(e)?Date.now():e;return M(o,j)+A($,n)}function D(){return U().toLowerCase()}function I(e){let t=Object.entries(e).reduce((n,o)=>{let[r,a]=o;return typeof a>"u"||(typeof a=="object"&&a!==null?n[r]=JSON.stringify(a):n[r]=a),n},{});return Object.keys(t).length?`?${new URLSearchParams(t)}`:""}function L(e="",t="",n={}){let o=S().replace(location.origin,""),r=I(n);return e?t?`${o}/${e}/${t}${r}`:`${o}/${e}${r}`:`${o}${r}`}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};