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

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-DCXN3PRQ.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-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-DCXN3PRQ.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,7 @@
1
+ import g from"crypto";function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var v={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function h(e,t){function n(r,i,a){if(!(typeof document>"u")){a=d({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var c in a)a[c]&&(s+="; "+c,a[c]!==!0&&(s+="="+a[c].split(";")[0]));return document.cookie=r+"="+e.write(i,r)+s}}function o(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var i=document.cookie?document.cookie.split("; "):[],a={},s=0;s<i.length;s++){var c=i[s].split("="),N=c.slice(1).join("=");try{var m=decodeURIComponent(c[0]);if(a[m]=e.read(N,m),r===m)break}catch{}}return r?a[r]:a}}return Object.create({set:n,get:o,remove:function(r,i){n(r,"",d({},i,{expires:-1}))},withAttributes:function(r){return h(this.converter,d({},this.attributes,r))},withConverter:function(r){return h(d({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var z=h(v,{path:"/"});var E=(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))(E||{}),k=(e=>(e[e.CurrentUserMissingProvider=2e3]="CurrentUserMissingProvider",e[e.CurrentUserGatewayNotStarted=2001]="CurrentUserGatewayNotStarted",e[e.CurrentUserMissingBackend=2002]="CurrentUserMissingBackend",e[e.CurrentUserMissingInDatabase=2003]="CurrentUserMissingInDatabase",e))(k||{});function b(e){if(!y(e))throw new Error("Parameter was not an error")}function y(e){return!!e&&typeof e=="object"&&j(e)==="[object Error]"||e instanceof Error}function j(e){return Object.prototype.toString.call(e)}var O="Layerr",T=O;function U(){return T}function $(e){let t,n="";if(e.length===0)t={};else if(y(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 u=class l extends Error{constructor(t,n){let o=[...arguments],{options:r,shortMessage:i}=$(o),a=i;if(r.cause&&(a=`${a}: ${r.cause.message}`),super(a),this.message=a,r.name&&typeof r.name=="string"?this.name=r.name:this.name=U(),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 s=r.constructorOpt||this.constructor;Error.captureStackTrace(this,s)}}static cause(t){return b(t),t._cause&&y(t._cause)?t._cause:null}static fullStack(t){b(t);let n=l.cause(t);return n?`${t.stack}
2
+ caused by: ${l.fullStack(n)}`:t.stack??""}static info(t){b(t);let n={},o=l.cause(t);return o&&Object.assign(n,l.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}},C="0123456789ABCDEFGHJKMNPQRSTVWXYZ",p=32,w=0xffffffffffff,A=10,I=16,f=Object.freeze({source:"ulid"});function M(e){let t=e||_(),n=t&&(t.crypto||t.msCrypto)||(typeof g<"u"?g: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(g?.randomBytes)return()=>g.randomBytes(1).readUInt8()/255;throw new u({info:{code:"PRNG_DETECT",...f}},"Failed to find a reliable PRNG")}function _(){return D()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function R(e,t){let n="";for(;e>0;e--)n=L(t)+n;return n}function S(e,t){if(isNaN(e))throw new u({info:{code:"ENC_TIME_NAN",...f}},`Time must be a number: ${e}`);if(e>w)throw new u({info:{code:"ENC_TIME_SIZE_EXCEED",...f}},`Cannot encode a time larger than ${w}: ${e}`);if(e<0)throw new u({info:{code:"ENC_TIME_NEG",...f}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new u({info:{code:"ENC_TIME_TYPE",...f}},`Time must be an integer: ${e}`);let n,o="";for(let r=t;r>0;r--)n=e%p,o=C.charAt(n)+o,e=(e-n)/p;return o}function D(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function L(e){let t=Math.floor(e()*p);return t===p&&(t=p-1),C.charAt(t)}function P(e,t){let n=t||M(),o=isNaN(e)?Date.now():e;return S(o,A)+R(I,n)}function G(){return P().toLowerCase()}function x(e){let t=Object.entries(e).reduce((n,o)=>{let[r,i]=o;return typeof i>"u"||(typeof i=="object"&&i!==null?n[r]=JSON.stringify(i):n[r]=i),n},{});return Object.keys(t).length?`?${new URLSearchParams(t)}`:""}function F(e="",t="",n={}){let o=B().replace(location.origin,""),r=x(n);return e?t?`${o}/${e}/${t}${r}`:`${o}/${e}${r}`:`${o}${r}`}function B(){return globalThis.__ALLIANCE_RUNTIME_ROOT_URL?globalThis.__ALLIANCE_RUNTIME_ROOT_URL:window.origin}function K(e){return t=>{t.key==="Enter"&&e(t)}}export{G as a,F as b,K as c};
3
+ /*! Bundled license information:
4
+
5
+ js-cookie/dist/js.cookie.mjs:
6
+ (*! js-cookie v3.0.5 | MIT *)
7
+ */
@@ -1,4 +1,4 @@
1
- import{a as r,b as p,c as a,e as l,g,h as e,j as u}from"./chunk-CNFJFZ6D.js";import{a as n}from"./chunk-JFKSI6I7.js";import{close as y}from"@teliads/components/icons";import{LitElement as m,css as $,html as i,unsafeCSS as t}from"lit";import{property as d,state as f}from"lit/decorators.js";import{repeat as v}from"lit/directives/repeat.js";var o=class extends m{constructor(){super();this.containStyling=()=>this.contain?i`<style>
1
+ import{a as r,b as u,c as n,e as l,g as b,h as e,j as p}from"./chunk-CNFJFZ6D.js";import{a as s}from"./chunk-JFKSI6I7.js";import{close as y}from"@teliads/components/icons";import{LitElement as m,css as f,html as o,unsafeCSS as t}from"lit";import{property as d,state as $}from"lit/decorators.js";import{repeat as v}from"lit/directives/repeat.js";var a=class extends m{constructor(){super();this.containStyling=()=>this.contain?o`<style>
2
2
  :host {
3
3
  height: 500px;
4
4
  position: static;
@@ -6,7 +6,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
6
6
  .backdrop {
7
7
  position: absolute;
8
8
  }
9
- </style>`:i`<style>
9
+ </style>`:o`<style>
10
10
  :host {
11
11
  position: fixed;
12
12
  }
@@ -14,7 +14,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
14
14
  .backdrop {
15
15
  position: absolute;
16
16
  }
17
- </style>`;this.scrollStyling=()=>this.scrollMode==="inside"?i`<style>
17
+ </style>`;this.scrollStyling=()=>this.scrollMode==="inside"?o`<style>
18
18
  .container {
19
19
  align-items: center;
20
20
  }
@@ -25,19 +25,23 @@ 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(n.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;
34
38
  }
35
39
 
36
40
  .footer {
37
- border-top: ${t(r.widthXs)} solid ${t(a.gray200)};
38
- padding: ${t(e.spacing24)} ${t(e.spacing32)};
41
+ border-top: ${t(r.widthXs)} solid ${t(n.gray200)};
42
+ padding: ${t(e.spacing24)};
39
43
  }
40
- </style>`:i`<style>
44
+ </style>`:o`<style>
41
45
  .container {
42
46
  overflow-x: hidden;
43
47
  overflow-y: overlay;
@@ -51,34 +55,33 @@ 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
- </style>`;this.subHeaderStyling=()=>{if(this.hasSubHeader)return i`<style>
60
+ </style>`;this.subHeaderStyling=()=>{if(this.hasSubHeader)return o`<style>
58
61
  div.sub-header {
59
62
  display: block;
60
63
  }
61
- </style>`};this.closeButton=()=>this.required?"":i`<telia-button
64
+ </style>`};this.closeButton=()=>this.required?"":o`<telia-button
62
65
  size="sm"
63
66
  variant="text"
64
67
  data-testid="close-modal-button"
65
68
  @click=${this.onCloseClick}
66
69
  ><telia-icon size="md" svg="${y.svg}"
67
- /></telia-button>`;this.footer=()=>this.actions.length?i`
68
- <div class="footer">
69
- ${v(this.actions,({disabled:s,variant:c,action:h,label:b})=>i`
70
+ /></telia-button>`;this.footer=()=>this.actions.length?o`
71
+ <div class="footer" data-testid="modal-footer">
72
+ ${v(this.actions,({disabled:i,variant:c,action:h,label:g})=>o`
70
73
  <telia-button
71
- disabled="${s?"true":"false"}"
74
+ disabled="${i?"true":"false"}"
72
75
  variant="${c||"primary"}"
73
76
  size="sm"
74
77
  @click=${()=>this.action(h)}
75
78
  data-testid="${h}-action-button"
76
79
  >
77
- ${b}
80
+ ${g}
78
81
  </telia-button>
79
82
  `)}
80
83
  </div>
81
- `:"";this.onBackdropClick=()=>{if(!this.required)return this.action("close")};this.onCloseClick=()=>{if(!this.required)return this.action("close")};this.onKeyDown=s=>{s.defaultPrevented||!this.required&&s.key==="Escape"&&this.action("close")};this.onSubHeaderSlotChange=()=>{this.hasSubHeader=!0};this.action=s=>{let c=new CustomEvent("action",{bubbles:!0,composed:!0,detail:{action:s},cancelable:!0});return this.dispatchEvent(c)};this.header="",this.actions=[],this.required=!1,this.scrollMode="outside",this.hasSubHeader=!1}static{this.styles=$`
84
+ `:"";this.onBackdropClick=()=>{if(!this.required)return this.action("close")};this.onCloseClick=()=>{if(!this.required)return this.action("close")};this.onKeyDown=i=>{i.defaultPrevented||!this.required&&i.key==="Escape"&&this.action("close")};this.onSubHeaderSlotChange=()=>{this.hasSubHeader=!0};this.action=i=>{let c=new CustomEvent("action",{bubbles:!0,composed:!0,detail:{action:i},cancelable:!0});return this.dispatchEvent(c)};this.header="",this.actions=[],this.required=!1,this.scrollMode="outside",this.hasSubHeader=!1}static{this.styles=f`
82
85
  :host {
83
86
  display: block;
84
87
  inset: 0;
@@ -88,7 +91,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
88
91
  .backdrop {
89
92
  inset: 0;
90
93
  z-index: ${t(Number.parseInt(l.modal)-1)};
91
- background-color: ${t(a.black)};
94
+ background-color: ${t(n.black)};
92
95
  opacity: 0.3;
93
96
  }
94
97
 
@@ -101,22 +104,22 @@ 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
101
104
  }
102
105
 
103
106
  dialog {
104
- background-color: ${t(a.white)};
107
+ background-color: ${t(n.white)};
105
108
  border-radius: ${t(r.radiusLg)};
106
- box-shadow: ${t(g.md)};
109
+ box-shadow: ${t(b.md)};
107
110
  z-index: ${t(Number.parseInt(l.modal))};
108
- max-width: ${t(p.breakpointLg)};
111
+ max-width: ${t(u.breakpointLg)};
109
112
  position: static;
110
113
  padding: 0;
111
114
  border: none;
112
115
  }
113
116
 
114
117
  dialog:focus-visible {
115
- outline: solid ${t(u.focusBorderWidth)} ${t(u.focusColor)};
118
+ outline: solid ${t(p.focusBorderWidth)} ${t(p.focusColor)};
116
119
  outline-offset: ${t(e.spacing4)};
117
120
  }
118
121
 
119
- @media only screen and (min-width: ${t(p.breakpointLg)}) {
122
+ @media only screen and (min-width: ${t(u.breakpointLg)}) {
120
123
  dialog {
121
124
  min-width: calc(${t(e.spacing128)} * 3.5);
122
125
  }
@@ -126,20 +129,19 @@ 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)};
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 {
141
143
  padding: ${t(e.spacing24)} ${t(e.spacing32)};
142
- border-bottom: ${t(r.widthXs)} solid ${t(a.gray200)};
144
+ border-bottom: ${t(r.widthXs)} solid ${t(n.gray200)};
143
145
  display: none;
144
146
  }
145
147
 
@@ -152,22 +154,24 @@ 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
152
154
  justify-content: flex-end;
153
155
  gap: ${t(e.spacing16)};
154
156
  }
155
- `}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){window.removeEventListener("keydown",this.onKeyDown),super.disconnectedCallback()}render(){return i`
157
+ `}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.onKeyDown);let i=this.shadowRoot?.querySelector("dialog");i&&i.showModal()}disconnectedCallback(){window.removeEventListener("keydown",this.onKeyDown),super.disconnectedCallback()}render(){return o`
156
158
  ${this.containStyling()} ${this.scrollStyling()} ${this.subHeaderStyling()}
157
159
  <div class="backdrop" @click=${this.onBackdropClick}></div>
158
160
  <div class="container">
159
- <dialog open autofocus>
160
- <div class="header">
161
- <telia-heading tag="h3" variant="title-100">${this.header}</telia-heading>
161
+ <dialog autofocus>
162
+ <div class="header" data-testid="modal-heading">
163
+ <telia-heading tag="h3" variant="title-100">
164
+ ${this.header}
165
+ </telia-heading>
162
166
  ${this.closeButton()}
163
167
  </div>
164
- <div class="sub-header">
168
+ <div class="sub-header" data-testid="modal-sub-header">
165
169
  <slot name="sub-header" @slotchange=${this.onSubHeaderSlotChange}></slot>
166
170
  </div>
167
- <div class="body">
171
+ <div class="body" data-testid="modal-body">
168
172
  <slot></slot>
169
173
  </div>
170
174
  ${this.footer()}
171
175
  </dialog>
172
176
  </div>
173
- `}};n([d({type:String,attribute:"header"})],o.prototype,"header",2),n([d({type:Array})],o.prototype,"actions",2),n([d({type:Boolean,attribute:"required"})],o.prototype,"required",2),n([d({type:String,attribute:"scroll-mode"})],o.prototype,"scrollMode",2),n([f()],o.prototype,"hasSubHeader",2),n([d({type:Boolean,attribute:"contain"})],o.prototype,"contain",2);export{o as a};
177
+ `}};s([d({type:String,attribute:"header"})],a.prototype,"header",2),s([d({type:Array})],a.prototype,"actions",2),s([d({type:Boolean,attribute:"required"})],a.prototype,"required",2),s([d({type:String,attribute:"scroll-mode"})],a.prototype,"scrollMode",2),s([$()],a.prototype,"hasSubHeader",2),s([d({type:Boolean,attribute:"contain"})],a.prototype,"contain",2);export{a};
@@ -41,7 +41,7 @@ import{a as n,c as e,f as l,h as o,j as i}from"./chunk-CNFJFZ6D.js";import{a as
41
41
  :host(:hover),
42
42
  :host(:focus-visible),
43
43
  :host(:focus) {
44
- background-color: ${t(e.gray200)};
44
+ background-color: ${t(e.gray50)};
45
45
  }
46
46
 
47
47
  :host(:active) {
@@ -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-BJWFPFCA.js";import"../../chunk-DCXN3PRQ.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-HJAUL47Q.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-LZEZ2U5O.js";import"../../chunk-H7ZWVNSK.js";import"../../chunk-CNFJFZ6D.js";import"../../chunk-JFKSI6I7.js";export{a as Table,b as TableBody,c as TableData,d as TableHead,e as TableRow};
1
+ import{a,b,c,d,e}from"../../chunk-WI5TQSZT.js";import"../../chunk-H7ZWVNSK.js";import"../../chunk-CNFJFZ6D.js";import"../../chunk-JFKSI6I7.js";export{a as Table,b as TableBody,c as TableData,d as TableHead,e as TableRow};
@@ -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-ALNVSJXY.js";import"../../chunk-DCXN3PRQ.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-WI5TQSZT.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-ALNVSJXY.js";import{a as t}from"../chunk-BJWFPFCA.js";import"../chunk-DCXN3PRQ.js";import{a as e}from"../chunk-HJAUL47Q.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": "4.0.0-next.10",
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.6.13",
28
+ "@floating-ui/dom": "^1.7.1",
29
29
  "@teliads/components": "^22.1.1",
30
- "lit": "^3.2.1"
30
+ "lit": "^3.3.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@telia-ace/alliance-internal-client-utilities": "^2.0.1-next.0"
33
+ "@telia-ace/alliance-internal-client-utilities": "^4.0.0-next.10"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
@@ -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};