@telia-ace/alliance-ui 2.0.0-dev.0 → 2.0.0

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.
@@ -0,0 +1,39 @@
1
+ import{h as t}from"./chunk-CNFJFZ6D.js";import{a as r}from"./chunk-JFKSI6I7.js";import{LitElement as a,css as n,html as c,unsafeCSS as i}from"lit";import{property as s}from"lit/decorators.js";var e=class extends a{constructor(){super(),this.errorHeader="Access Denied",this.errorMessage="You do not have access to this application.",this.errorInstructions="Please contact an Access Control Administrator to request the necessary permissions."}static{this.styles=n`
2
+ :host {
3
+ min-height: calc(100vh - calc(${i(t.spacing32)} * 2));
4
+ display: flex;
5
+ flex-direction: column;
6
+ }
7
+ .header {
8
+ padding: ${i(t.spacing24)};
9
+ display: flex;
10
+ justify-content: space-between;
11
+ }
12
+
13
+ .inner {
14
+ flex: 1;
15
+ display: flex;
16
+ flex-direction: column;
17
+ justify-content: center;
18
+ align-items: center;
19
+ padding: ${i(t.spacing24)};
20
+ }
21
+
22
+ .inner telia-heading {
23
+ margin: 0 0 ${i(t.spacing24)};
24
+ }
25
+
26
+ .inner telia-p {
27
+ margin: 0;
28
+ }
29
+ `}render(){return c`
30
+ <div class="header">
31
+ <telia-heading tag="h1" variant="title-200">${this.header}</telia-heading>
32
+ </div>
33
+ <telia-divider> </telia-divider>
34
+ <div class="inner">
35
+ <telia-heading tag="h1" variant="title-300"> ${this.errorHeader} </telia-heading>
36
+ <telia-p> ${this.errorMessage} </telia-p>
37
+ <telia-p> ${this.errorInstructions} </telia-p>
38
+ </div>
39
+ `}};r([s({type:String})],e.prototype,"header",2),r([s({type:String,attribute:"error-header"})],e.prototype,"errorHeader",2),r([s({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),r([s({type:String,attribute:"error-instructions"})],e.prototype,"errorInstructions",2);export{e as a};
@@ -0,0 +1,14 @@
1
+ import * as lit from 'lit';
2
+ import { LitElement } from 'lit';
3
+
4
+ declare class Unauthorized extends LitElement {
5
+ constructor();
6
+ static styles: lit.CSSResult;
7
+ header: string;
8
+ errorHeader: string;
9
+ errorMessage: string;
10
+ errorInstructions: string;
11
+ render(): lit.TemplateResult<1>;
12
+ }
13
+
14
+ export { Unauthorized };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-3Y6W4IDL.js";import"../../chunk-CNFJFZ6D.js";import"../../chunk-JFKSI6I7.js";export{a as Unauthorized};
@@ -3,6 +3,7 @@ export { Action, ActionEvent, Modal } from './alliance-modal/index.js';
3
3
  export { ChangePageEvent, PageSelect, Paginator, PaginatorButton, SelectPageEvent } from './alliance-paginator/index.js';
4
4
  export { PopOver } from './alliance-pop-over/index.js';
5
5
  export { Table, TableBody, TableData, TableHead, TableRow } from './alliance-table/index.js';
6
+ export { Unauthorized } from './alliance-unauthorized/index.js';
6
7
  export { IViewElement, ViewElementType, ViewInitProps, registerViewElement, viewElementPrefix, viewElementSelector, viewElementTag } from './alliance-view/index.js';
7
8
  import 'lit';
8
9
  import '@telia-ace/alliance-internal-client-utilities';
@@ -1 +1 @@
1
- import{a as t}from"../chunk-PLZJ2UJT.js";import{a as e}from"../chunk-6JFKVQEE.js";import{a,b as r,c as l}from"../chunk-V65IZH4Y.js";import"../chunk-AZ6GENL6.js";import"../chunk-BDQXACZ6.js";import"../chunk-JZJUYJ7F.js";import{a as n}from"../chunk-NLDZVSFD.js";import"../chunk-QLXKAVKR.js";import{a as p,b as m,c as i,d as c,e as f}from"../chunk-LZEZ2U5O.js";import"../chunk-H7ZWVNSK.js";import"../chunk-CNFJFZ6D.js";import{a as d,b as x,c as u,d as y,e as P}from"../chunk-A67SKVV4.js";import"../chunk-K55JD2QD.js";import"../chunk-JFKSI6I7.js";var b=[["link",t],["modal",e],["page-selector",a],["paginator-button",l],["paginator",r],["pop-over",n],["table",p],["tb",m],["td",i],["th",c],["tr",f]];for(let[s,g]of b){let o=`alliance-${s}`;customElements.get(o)||customElements.define(o,g)}export{u as ViewElementType,P as registerViewElement,d as viewElementPrefix,x as viewElementSelector,y as viewElementTag};
1
+ import{a as t}from"../chunk-PLZJ2UJT.js";import{a as e}from"../chunk-6JFKVQEE.js";import{a as r,b as a,c as n}from"../chunk-V65IZH4Y.js";import"../chunk-AZ6GENL6.js";import"../chunk-BDQXACZ6.js";import"../chunk-JZJUYJ7F.js";import{a as l}from"../chunk-NLDZVSFD.js";import"../chunk-QLXKAVKR.js";import{a as p,b as i,c as m,d as f,e as c}from"../chunk-LZEZ2U5O.js";import"../chunk-H7ZWVNSK.js";import{a as s}from"../chunk-3Y6W4IDL.js";import"../chunk-CNFJFZ6D.js";import{a as b,b as x,c as y,d as h,e as P}from"../chunk-A67SKVV4.js";import"../chunk-K55JD2QD.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.0-dev.0",
3
+ "version": "2.0.0",
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.2.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@telia-ace/alliance-internal-client-utilities": "^2.0.0-dev.0"
33
+ "@telia-ace/alliance-internal-client-utilities": "^2.0.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"