@telia-ace/alliance-ui 4.0.0-next.7 → 4.0.0-next.8
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 r,b as p,c as
|
|
1
|
+
import{a as r,b as p,c as n,e as l,g as b,h as e,j as u}from"./chunk-CNFJFZ6D.js";import{a}from"./chunk-JFKSI6I7.js";import{close as y}from"@teliads/components/icons";import{LitElement as m,css as f,html as i,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 o=class extends m{constructor(){super();this.containStyling=()=>this.contain?i`<style>
|
|
2
2
|
:host {
|
|
3
3
|
height: 500px;
|
|
4
4
|
position: static;
|
|
@@ -26,7 +26,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
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.header {
|
|
29
|
-
border-bottom: ${t(r.widthXs)} solid ${t(
|
|
29
|
+
border-bottom: ${t(r.widthXs)} solid ${t(n.gray200)};
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.body {
|
|
@@ -38,7 +38,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
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.footer {
|
|
41
|
-
border-top: ${t(r.widthXs)} solid ${t(
|
|
41
|
+
border-top: ${t(r.widthXs)} solid ${t(n.gray200)};
|
|
42
42
|
padding: ${t(e.spacing24)};
|
|
43
43
|
}
|
|
44
44
|
</style>`:i`<style>
|
|
@@ -68,8 +68,8 @@ 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
|
|
|
68
68
|
@click=${this.onCloseClick}
|
|
69
69
|
><telia-icon size="md" svg="${y.svg}"
|
|
70
70
|
/></telia-button>`;this.footer=()=>this.actions.length?i`
|
|
71
|
-
<div class="footer">
|
|
72
|
-
${v(this.actions,({disabled:s,variant:c,action:h,label:
|
|
71
|
+
<div class="footer" data-testid="modal-footer">
|
|
72
|
+
${v(this.actions,({disabled:s,variant:c,action:h,label:g})=>i`
|
|
73
73
|
<telia-button
|
|
74
74
|
disabled="${s?"true":"false"}"
|
|
75
75
|
variant="${c||"primary"}"
|
|
@@ -77,11 +77,11 @@ 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
|
|
|
77
77
|
@click=${()=>this.action(h)}
|
|
78
78
|
data-testid="${h}-action-button"
|
|
79
79
|
>
|
|
80
|
-
${
|
|
80
|
+
${g}
|
|
81
81
|
</telia-button>
|
|
82
82
|
`)}
|
|
83
83
|
</div>
|
|
84
|
-
`:"";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=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=f`
|
|
85
85
|
:host {
|
|
86
86
|
display: block;
|
|
87
87
|
inset: 0;
|
|
@@ -91,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
|
|
|
91
91
|
.backdrop {
|
|
92
92
|
inset: 0;
|
|
93
93
|
z-index: ${t(Number.parseInt(l.modal)-1)};
|
|
94
|
-
background-color: ${t(
|
|
94
|
+
background-color: ${t(n.black)};
|
|
95
95
|
opacity: 0.3;
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -104,9 +104,9 @@ 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
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
dialog {
|
|
107
|
-
background-color: ${t(
|
|
107
|
+
background-color: ${t(n.white)};
|
|
108
108
|
border-radius: ${t(r.radiusLg)};
|
|
109
|
-
box-shadow: ${t(
|
|
109
|
+
box-shadow: ${t(b.md)};
|
|
110
110
|
z-index: ${t(Number.parseInt(l.modal))};
|
|
111
111
|
max-width: ${t(p.breakpointLg)};
|
|
112
112
|
position: static;
|
|
@@ -141,7 +141,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
|
|
|
141
141
|
|
|
142
142
|
.sub-header {
|
|
143
143
|
padding: ${t(e.spacing24)} ${t(e.spacing32)};
|
|
144
|
-
border-bottom: ${t(r.widthXs)} solid ${t(
|
|
144
|
+
border-bottom: ${t(r.widthXs)} solid ${t(n.gray200)};
|
|
145
145
|
display: none;
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -159,17 +159,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
|
|
|
159
159
|
<div class="backdrop" @click=${this.onBackdropClick}></div>
|
|
160
160
|
<div class="container">
|
|
161
161
|
<dialog open autofocus>
|
|
162
|
-
<div class="header">
|
|
163
|
-
<telia-heading tag="h3" variant="title-100"
|
|
162
|
+
<div class="header" data-testid="modal-heading">
|
|
163
|
+
<telia-heading tag="h3" variant="title-100">
|
|
164
|
+
${this.header}
|
|
165
|
+
</telia-heading>
|
|
164
166
|
${this.closeButton()}
|
|
165
167
|
</div>
|
|
166
|
-
<div class="sub-header">
|
|
168
|
+
<div class="sub-header" data-testid="modal-sub-header">
|
|
167
169
|
<slot name="sub-header" @slotchange=${this.onSubHeaderSlotChange}></slot>
|
|
168
170
|
</div>
|
|
169
|
-
<div class="body">
|
|
171
|
+
<div class="body" data-testid="modal-body">
|
|
170
172
|
<slot></slot>
|
|
171
173
|
</div>
|
|
172
174
|
${this.footer()}
|
|
173
175
|
</dialog>
|
|
174
176
|
</div>
|
|
175
|
-
`}};
|
|
177
|
+
`}};a([d({type:String,attribute:"header"})],o.prototype,"header",2),a([d({type:Array})],o.prototype,"actions",2),a([d({type:Boolean,attribute:"required"})],o.prototype,"required",2),a([d({type:String,attribute:"scroll-mode"})],o.prototype,"scrollMode",2),a([$()],o.prototype,"hasSubHeader",2),a([d({type:Boolean,attribute:"contain"})],o.prototype,"contain",2);export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-7XXQGMWO.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-
|
|
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};
|
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-
|
|
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-7XXQGMWO.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.8",
|
|
4
4
|
"description": "UI components used by ACE Alliance apps.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
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.8"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|