@telia-ace/alliance-ui 1.0.6-next.4 → 1.0.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/CHANGELOG.md +80 -0
- package/chunks/alliance-modal-f2ab100c.js +154 -0
- package/chunks/alliance-modal-f2ab100c.js.map +1 -0
- package/chunks/alliance-paginator-button-83c050bc.js +181 -0
- package/chunks/alliance-paginator-button-83c050bc.js.map +1 -0
- package/chunks/alliance-table-row-67a6becb.js +142 -0
- package/chunks/alliance-table-row-67a6becb.js.map +1 -0
- package/chunks/{close-cf3fd2c4.js → chevron-right-788ce8a9.js} +4 -5
- package/chunks/chevron-right-788ce8a9.js.map +1 -0
- package/chunks/close-7d423291.js +5 -0
- package/chunks/close-7d423291.js.map +1 -0
- package/chunks/{variables-07547793.js → index-57f6bd40.js} +25 -30
- package/chunks/index-57f6bd40.js.map +1 -0
- package/chunks/query-assigned-elements-4285356d.js +605 -0
- package/chunks/query-assigned-elements-4285356d.js.map +1 -0
- package/chunks/repeat-bf84f01f.js +134 -0
- package/chunks/repeat-bf84f01f.js.map +1 -0
- package/chunks/variables-ecb680f0.js +8 -0
- package/chunks/variables-ecb680f0.js.map +1 -0
- package/components/alliance-modal/alliance-modal.d.ts +4 -2
- package/components/alliance-modal.js +12 -0
- package/components/alliance-modal.js.map +1 -0
- package/components/alliance-paginator/alliance-paginator.d.ts +5 -2
- package/components/alliance-paginator.js +12 -0
- package/components/alliance-paginator.js.map +1 -0
- package/components/alliance-table.js +8 -0
- package/components/alliance-table.js.map +1 -0
- package/components/index.d.ts +2 -0
- package/components/index.js +13 -1185
- package/components/index.js.map +1 -1
- package/package.json +7 -3
- package/voca/foundations/index.js +4 -3
- package/voca/foundations/index.js.map +1 -1
- package/voca/icons/index.js +3 -2
- package/voca/icons/index.js.map +1 -1
- package/chunks/close-cf3fd2c4.js.map +0 -1
- package/chunks/variables-07547793.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,85 @@
|
|
|
1
1
|
# @telia-ace/alliance-ui
|
|
2
2
|
|
|
3
|
+
## 1.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fea9df3: Remove `<telia-button-text>` after it was removed in `@teliads/components@19`.
|
|
8
|
+
- cc604b0: Improvements to `<alliance-modal>`.
|
|
9
|
+
|
|
10
|
+
- Sets `max-width` to same width as [Voca Large breakpoint](https://docs.voca.teliacompany.com/?path=/story/foundations-breakpoints-showcase--showcase) (`1024px` / `64em`).
|
|
11
|
+
- Adds scrolling support.
|
|
12
|
+

|
|
13
|
+
- Uses `<dialog>` instead of `<div>` for modal window.
|
|
14
|
+
- Adds support for `disabled` actions.
|
|
15
|
+
|
|
16
|
+
- 508cbdc: Fix exports of types.
|
|
17
|
+
- f196975: Add comment to custom event types. Export ActionEvent from modal.
|
|
18
|
+
- cc604b0: Relative path support in CSS import vite plugin.
|
|
19
|
+
- fea9df3: Update dependencies to latest.
|
|
20
|
+
- 1740edd: Fix `<alliance-modal>` having incorrect `z-index`.
|
|
21
|
+
- f196975: Dispatch `'close'` action when pressing Escape in modal.
|
|
22
|
+
- 50e1c70: Add `<alliance-modal>` component, see the documentation for more information.
|
|
23
|
+
- c3765fc: BREAKING: Always use objects as detail type for events (https://github.com/telia-company/ace-alliance-sdk/issues/190).
|
|
24
|
+
|
|
25
|
+
### Migration guide for existing apps
|
|
26
|
+
|
|
27
|
+
#### Paginator `change-page` event
|
|
28
|
+
|
|
29
|
+
```diff
|
|
30
|
+
import type { ChangePageEvent } from '@telia-ace/alliance-ui/components/alliance-paginator';
|
|
31
|
+
let currentPage = 1;
|
|
32
|
+
function onChangePage (event: ChangePageEvent) {
|
|
33
|
+
- currentPage = event.detail;
|
|
34
|
+
+ currentPage = event.detail.nextPage;
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### Modal `action` event
|
|
39
|
+
|
|
40
|
+
```diff
|
|
41
|
+
import type { ActionEvent } from '@telia-ace/alliance-ui/components/alliance-modal';
|
|
42
|
+
let modalOpen = true;
|
|
43
|
+
function onModalAction (event: ActionEvent) {
|
|
44
|
+
- modalOpen = event.detail === 'close';
|
|
45
|
+
+ modalOpen = event.detail.action === 'close';
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
- f196975: Prefix all environment variables defined by the CLI with `ALLIANCE_` to avoid conflicting with third party packages.
|
|
50
|
+
- f196975: Correct link to Alliance documentation in README.
|
|
51
|
+
|
|
52
|
+
## 1.0.6-next.5
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- 508cbdc: Fix exports of types.
|
|
57
|
+
- c3765fc: BREAKING: Always use objects as detail type for events (https://github.com/telia-company/ace-alliance-sdk/issues/190).
|
|
58
|
+
|
|
59
|
+
### Migration guide for existing apps
|
|
60
|
+
|
|
61
|
+
#### Paginator `change-page` event
|
|
62
|
+
|
|
63
|
+
```diff
|
|
64
|
+
import type { ChangePageEvent } from '@telia-ace/alliance-ui/components/alliance-paginator';
|
|
65
|
+
let currentPage = 1;
|
|
66
|
+
function onChangePage (event: ChangePageEvent) {
|
|
67
|
+
- currentPage = event.detail;
|
|
68
|
+
+ currentPage = event.detail.nextPage;
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
#### Modal `action` event
|
|
73
|
+
|
|
74
|
+
```diff
|
|
75
|
+
import type { ActionEvent } from '@telia-ace/alliance-ui/components/alliance-modal';
|
|
76
|
+
let modalOpen = true;
|
|
77
|
+
function onModalAction (event: ActionEvent) {
|
|
78
|
+
- modalOpen = event.detail === 'close';
|
|
79
|
+
+ modalOpen = event.detail.action === 'close';
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
3
83
|
## 1.0.6-next.4
|
|
4
84
|
|
|
5
85
|
### Patch Changes
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { i as m, r as t, e as g, s as $, y as r, a as v } from "./query-assigned-elements-4285356d.js";
|
|
2
|
+
import { c as y } from "./repeat-bf84f01f.js";
|
|
3
|
+
import "./telia-button2-d25eddda.js";
|
|
4
|
+
import "./telia-heading2-9d3ab48b.js";
|
|
5
|
+
import "./telia-icon2-34bf5aef.js";
|
|
6
|
+
import { l as h, c as b, b as u, s as f, a as w, d as e } from "./index-57f6bd40.js";
|
|
7
|
+
import { c as k } from "./close-7d423291.js";
|
|
8
|
+
var x = Object.defineProperty, C = Object.getOwnPropertyDescriptor, c = (i, a, d, n) => {
|
|
9
|
+
for (var o = n > 1 ? void 0 : n ? C(a, d) : a, l = i.length - 1, p; l >= 0; l--)
|
|
10
|
+
(p = i[l]) && (o = (n ? p(a, d, o) : p(o)) || o);
|
|
11
|
+
return n && o && x(a, d, o), o;
|
|
12
|
+
};
|
|
13
|
+
let s = class extends $ {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.header = "", this.actions = [], this.onBackdropClick = () => this.action("close"), this.onCloseClick = () => this.action("close"), this.onKeyDown = (i) => {
|
|
16
|
+
i.defaultPrevented || i.key === "Escape" && this.action("close");
|
|
17
|
+
}, this.action = (i) => {
|
|
18
|
+
const a = new CustomEvent("action", {
|
|
19
|
+
bubbles: !0,
|
|
20
|
+
composed: !0,
|
|
21
|
+
detail: { action: i },
|
|
22
|
+
cancelable: !0
|
|
23
|
+
});
|
|
24
|
+
return this.dispatchEvent(a);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
connectedCallback() {
|
|
28
|
+
super.connectedCallback(), window.addEventListener("keydown", this.onKeyDown);
|
|
29
|
+
}
|
|
30
|
+
disconnectedCallback() {
|
|
31
|
+
window.removeEventListener("keydown", this.onKeyDown), super.disconnectedCallback();
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return r`
|
|
35
|
+
${this.contain && r`<style>
|
|
36
|
+
:host {
|
|
37
|
+
position: static !important;
|
|
38
|
+
}
|
|
39
|
+
.backdrop {
|
|
40
|
+
position: absolute !important;
|
|
41
|
+
}
|
|
42
|
+
</style>`}
|
|
43
|
+
<div class="backdrop" @keydown=${console.log} @click=${this.onBackdropClick}></div>
|
|
44
|
+
<div class="container">
|
|
45
|
+
<dialog open>
|
|
46
|
+
<div class="header">
|
|
47
|
+
<telia-heading tag="h3" variant="title-100">${this.header}</telia-heading>
|
|
48
|
+
<telia-button size="sm" variant="text" @click=${this.onCloseClick}
|
|
49
|
+
><telia-icon size="md" svg="${k.svg}"
|
|
50
|
+
/></telia-button>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="body">
|
|
53
|
+
<slot></slot>
|
|
54
|
+
</div>
|
|
55
|
+
${this.actions.length ? r`
|
|
56
|
+
<div class="footer">
|
|
57
|
+
${y(
|
|
58
|
+
this.actions,
|
|
59
|
+
(i) => r`
|
|
60
|
+
<telia-button
|
|
61
|
+
disabled="${i.disabled ? "true" : "false"}"
|
|
62
|
+
variant="${i.variant || "primary"}"
|
|
63
|
+
size="md"
|
|
64
|
+
@click=${() => this.action(i.action)}
|
|
65
|
+
>
|
|
66
|
+
${i.label}
|
|
67
|
+
</telia-button>
|
|
68
|
+
`
|
|
69
|
+
)}
|
|
70
|
+
</div>
|
|
71
|
+
` : ""}
|
|
72
|
+
</dialog>
|
|
73
|
+
</div>
|
|
74
|
+
`;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
s.styles = m`
|
|
78
|
+
:host {
|
|
79
|
+
inset: 0;
|
|
80
|
+
position: fixed;
|
|
81
|
+
z-index: ${t(parseInt(h.modal))};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.backdrop {
|
|
85
|
+
inset: 0;
|
|
86
|
+
position: absolute;
|
|
87
|
+
z-index: ${t(parseInt(h.modal) - 1)};
|
|
88
|
+
background-color: ${t(b.black)};
|
|
89
|
+
opacity: 0.3;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.container {
|
|
93
|
+
margin: 0 auto;
|
|
94
|
+
display: flex;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
align-items: flex-start;
|
|
97
|
+
overflow-x: hidden;
|
|
98
|
+
overflow-y: overlay;
|
|
99
|
+
height: 100%;
|
|
100
|
+
width: 100%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
dialog {
|
|
104
|
+
background-color: ${t(b.white)};
|
|
105
|
+
border-radius: ${t(u.radiusLg)};
|
|
106
|
+
box-shadow: ${t(f.md)};
|
|
107
|
+
z-index: ${t(parseInt(h.modal) + 2)};
|
|
108
|
+
max-width: ${t(w.breakpointLg)};
|
|
109
|
+
margin: ${t(e.spacing128)} ${t(e.spacing24)};
|
|
110
|
+
display: block;
|
|
111
|
+
position: static;
|
|
112
|
+
padding: 0;
|
|
113
|
+
border: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.header {
|
|
117
|
+
position: relative;
|
|
118
|
+
padding: ${t(e.spacing32)};
|
|
119
|
+
border-bottom: ${t(u.widthXs)} solid ${t(b.gray200)};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.header telia-button {
|
|
123
|
+
position: absolute;
|
|
124
|
+
top: ${t(e.spacing20)};
|
|
125
|
+
right: ${t(e.spacing20)};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.body {
|
|
129
|
+
padding: 0 ${t(e.spacing32)};
|
|
130
|
+
margin: ${t(e.spacing24)} 0;
|
|
131
|
+
min-width: calc(${t(e.spacing128)} * 2);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.footer {
|
|
135
|
+
display: flex;
|
|
136
|
+
justify-content: flex-end;
|
|
137
|
+
gap: ${t(e.spacing24)};
|
|
138
|
+
padding: 0 ${t(e.spacing32)};
|
|
139
|
+
margin: ${t(e.spacing24)} 0;
|
|
140
|
+
}
|
|
141
|
+
`;
|
|
142
|
+
c([
|
|
143
|
+
g({ type: String, attribute: "header" })
|
|
144
|
+
], s.prototype, "header", 2);
|
|
145
|
+
c([
|
|
146
|
+
g({ type: Array })
|
|
147
|
+
], s.prototype, "actions", 2);
|
|
148
|
+
c([
|
|
149
|
+
g({ type: Boolean, attribute: "contain" })
|
|
150
|
+
], s.prototype, "contain", 2);
|
|
151
|
+
s = c([
|
|
152
|
+
v("alliance-modal")
|
|
153
|
+
], s);
|
|
154
|
+
//# sourceMappingURL=alliance-modal-f2ab100c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alliance-modal-f2ab100c.js","sources":["../src/components/alliance-modal/alliance-modal.ts"],"sourcesContent":["import type { ButtonVariantType } from '@teliads/components/dist/types/types/ButtonVariant';\nimport { css, html, LitElement, unsafeCSS } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { repeat } from 'lit/directives/repeat.js';\n\nimport '@/voca/components/telia-button';\nimport '@/voca/components/telia-heading';\nimport '@/voca/components/telia-icon';\nimport { borders, breakpoints, colors, layers, shadows, spacing } from '@/voca/foundations';\nimport { close } from '@/voca/icons';\n\nexport type Action = {\n variant: ButtonVariantType;\n label: string;\n action: string;\n disabled?: boolean;\n};\n\n/**\n * Event dispatched when clicking the close button, the backdrop, an action button or pressing escape.\n *\n * Event: `action`\n *\n * Detail: Object containing the property `action`.\n */\nexport type ActionEvent = CustomEvent<{ action: string }>;\n\n@customElement('alliance-modal')\nexport class Modal extends LitElement {\n static styles = css`\n :host {\n inset: 0;\n position: fixed;\n z-index: ${unsafeCSS(parseInt(layers.modal))};\n }\n\n .backdrop {\n inset: 0;\n position: absolute;\n z-index: ${unsafeCSS(parseInt(layers.modal) - 1)};\n background-color: ${unsafeCSS(colors.black)};\n opacity: 0.3;\n }\n\n .container {\n margin: 0 auto;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n overflow-x: hidden;\n overflow-y: overlay;\n height: 100%;\n width: 100%;\n }\n\n dialog {\n background-color: ${unsafeCSS(colors.white)};\n border-radius: ${unsafeCSS(borders.radiusLg)};\n box-shadow: ${unsafeCSS(shadows.md)};\n z-index: ${unsafeCSS(parseInt(layers.modal) + 2)};\n max-width: ${unsafeCSS(breakpoints.breakpointLg)};\n margin: ${unsafeCSS(spacing.spacing128)} ${unsafeCSS(spacing.spacing24)};\n display: block;\n position: static;\n padding: 0;\n border: none;\n }\n\n .header {\n position: relative;\n padding: ${unsafeCSS(spacing.spacing32)};\n border-bottom: ${unsafeCSS(borders.widthXs)} solid ${unsafeCSS(colors.gray200)};\n }\n\n .header telia-button {\n position: absolute;\n top: ${unsafeCSS(spacing.spacing20)};\n right: ${unsafeCSS(spacing.spacing20)};\n }\n\n .body {\n padding: 0 ${unsafeCSS(spacing.spacing32)};\n margin: ${unsafeCSS(spacing.spacing24)} 0;\n min-width: calc(${unsafeCSS(spacing.spacing128)} * 2);\n }\n\n .footer {\n display: flex;\n justify-content: flex-end;\n gap: ${unsafeCSS(spacing.spacing24)};\n padding: 0 ${unsafeCSS(spacing.spacing32)};\n margin: ${unsafeCSS(spacing.spacing24)} 0;\n }\n `;\n\n @property({ type: String, attribute: 'header' })\n header: string = '';\n\n @property({ type: Array })\n actions: Action[] = [];\n\n // Internal usage only\n // Used in Storybook to contain modal in story\n @property({ type: Boolean, attribute: 'contain' })\n contain?: boolean;\n\n onBackdropClick = () => {\n return this.action('close');\n };\n\n onCloseClick = () => {\n return this.action('close');\n };\n\n onKeyDown = (event: KeyboardEvent) => {\n if (event.defaultPrevented) {\n return;\n }\n\n if (event.key === 'Escape') {\n this.action('close');\n }\n };\n\n connectedCallback() {\n super.connectedCallback();\n window.addEventListener('keydown', this.onKeyDown);\n }\n disconnectedCallback() {\n window.removeEventListener('keydown', this.onKeyDown);\n super.disconnectedCallback();\n }\n\n action = (action: string) => {\n const event: ActionEvent = new CustomEvent('action', {\n bubbles: true,\n composed: true,\n detail: { action },\n cancelable: true,\n });\n return this.dispatchEvent(event);\n };\n\n render() {\n return html`\n ${this.contain &&\n html`<style>\n :host {\n position: static !important;\n }\n .backdrop {\n position: absolute !important;\n }\n </style>`}\n <div class=\"backdrop\" @keydown=${console.log} @click=${this.onBackdropClick}></div>\n <div class=\"container\">\n <dialog open>\n <div class=\"header\">\n <telia-heading tag=\"h3\" variant=\"title-100\">${this.header}</telia-heading>\n <telia-button size=\"sm\" variant=\"text\" @click=${this.onCloseClick}\n ><telia-icon size=\"md\" svg=\"${close.svg}\"\n /></telia-button>\n </div>\n <div class=\"body\">\n <slot></slot>\n </div>\n ${this.actions.length\n ? html`\n <div class=\"footer\">\n ${repeat(\n this.actions,\n (action) => html`\n <telia-button\n disabled=\"${action.disabled ? 'true' : 'false'}\"\n variant=\"${action.variant || 'primary'}\"\n size=\"md\"\n @click=${() => this.action(action.action)}\n >\n ${action.label}\n </telia-button>\n `\n )}\n </div>\n `\n : ''}\n </dialog>\n </div>\n `;\n }\n}\n"],"names":["Modal","LitElement","event","action","html","close","repeat","css","unsafeCSS","layers","colors","borders","shadows","breakpoints","spacing","__decorateClass","property","customElement"],"mappings":";;;;;;;;;;;;AA4Ba,IAAAA,IAAN,cAAoBC,EAAW;AAAA,EAA/B,cAAA;AAAA,UAAA,GAAA,SAAA,GAoEc,KAAA,SAAA,IAGjB,KAAA,UAAoB,IAOpB,KAAA,kBAAkB,MACP,KAAK,OAAO,OAAO,GAG9B,KAAA,eAAe,MACJ,KAAK,OAAO,OAAO,GAG9B,KAAA,YAAY,CAACC,MAAyB;AAClC,MAAIA,EAAM,oBAINA,EAAM,QAAQ,YACd,KAAK,OAAO,OAAO;AAAA,IACvB,GAYJ,KAAA,SAAS,CAACC,MAAmB;AACnB,YAAAD,IAAqB,IAAI,YAAY,UAAU;AAAA,QACjD,SAAS;AAAA,QACT,UAAU;AAAA,QACV,QAAQ,EAAE,QAAAC,EAAO;AAAA,QACjB,YAAY;AAAA,MAAA,CACf;AACM,aAAA,KAAK,cAAcD,CAAK;AAAA,IAAA;AAAA,EACnC;AAAA,EAjBA,oBAAoB;AAChB,UAAM,kBAAkB,GACjB,OAAA,iBAAiB,WAAW,KAAK,SAAS;AAAA,EACrD;AAAA,EACA,uBAAuB;AACZ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;AAAA;AAAA,uBAS3DN,EAAUM,EAAQ,SAAS;AAAA,6BACrBN,EAAUG,EAAQ,OAAO,WAAWH,EAAUE,EAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,mBAKtEF,EAAUM,EAAQ,SAAS;AAAA,qBACzBN,EAAUM,EAAQ,SAAS;AAAA;AAAA;AAAA;AAAA,yBAIvBN,EAAUM,EAAQ,SAAS;AAAA,sBAC9BN,EAAUM,EAAQ,SAAS;AAAA,8BACnBN,EAAUM,EAAQ,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAMvCN,EAAUM,EAAQ,SAAS;AAAA,yBACrBN,EAAUM,EAAQ,SAAS;AAAA,sBAC9BN,EAAUM,EAAQ,SAAS;AAAA;AAAA;AAK7CC,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,WAAW,UAAU;AAAA,GAnEtChB,EAoET,WAAA,UAAA,CAAA;AAGAe,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,OAAO;AAAA,GAtEhBhB,EAuET,WAAA,WAAA,CAAA;AAKAe,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,WAAW,WAAW;AAAA,GA3ExChB,EA4ET,WAAA,WAAA,CAAA;AA5ESA,IAANe,EAAA;AAAA,EADNE,EAAc,gBAAgB;AAAA,GAClBjB,CAAA;"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import "./telia-button2-d25eddda.js";
|
|
2
|
+
import "./telia-label2-4d674e5e.js";
|
|
3
|
+
import { d as x, c as D } from "./index-57f6bd40.js";
|
|
4
|
+
import { e as s, i as R, r as $, s as S, y as g, a as _ } from "./query-assigned-elements-4285356d.js";
|
|
5
|
+
import { c as I } from "./repeat-bf84f01f.js";
|
|
6
|
+
import "./telia-icon2-34bf5aef.js";
|
|
7
|
+
import { c as N, a as j } from "./chevron-right-788ce8a9.js";
|
|
8
|
+
/**
|
|
9
|
+
* @license
|
|
10
|
+
* Copyright 2017 Google LLC
|
|
11
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
+
*/
|
|
13
|
+
function z(t) {
|
|
14
|
+
return s({ ...t, state: !0 });
|
|
15
|
+
}
|
|
16
|
+
const b = "...", f = (t, a) => {
|
|
17
|
+
let i = a - t + 1;
|
|
18
|
+
return Array.from({ length: i }, (r, e) => e + t);
|
|
19
|
+
}, m = ({ itemCount: t, pageSize: a, siblingCount: i, currentPage: r }) => {
|
|
20
|
+
const e = Math.ceil(t / a);
|
|
21
|
+
if (i + 5 >= e)
|
|
22
|
+
return f(1, e);
|
|
23
|
+
const n = Math.max(r - i, 1), v = Math.min(r + i, e), d = n > 2, P = v < e - 2, y = 1, w = e;
|
|
24
|
+
if (!d && P) {
|
|
25
|
+
let h = 3 + 2 * i;
|
|
26
|
+
return [...f(1, h), b, e];
|
|
27
|
+
}
|
|
28
|
+
if (d && !P) {
|
|
29
|
+
let h = 3 + 2 * i, C = f(e - h + 1, e);
|
|
30
|
+
return [y, b, ...C];
|
|
31
|
+
}
|
|
32
|
+
if (d && P) {
|
|
33
|
+
let h = f(n, v);
|
|
34
|
+
return [y, b, ...h, b, w];
|
|
35
|
+
}
|
|
36
|
+
return [];
|
|
37
|
+
};
|
|
38
|
+
var B = Object.defineProperty, L = Object.getOwnPropertyDescriptor, p = (t, a, i, r) => {
|
|
39
|
+
for (var e = r > 1 ? void 0 : r ? L(a, i) : a, l = t.length - 1, n; l >= 0; l--)
|
|
40
|
+
(n = t[l]) && (e = (r ? n(a, i, e) : n(e)) || e);
|
|
41
|
+
return r && e && B(a, i, e), e;
|
|
42
|
+
};
|
|
43
|
+
let o = class extends S {
|
|
44
|
+
constructor() {
|
|
45
|
+
super(...arguments), this.itemCount = 0, this.pageSize = 50, this.initialPage = 1, this.siblingCount = 2, this.currentPage = this.initialPage, this.pages = [], this.changePage = (t) => {
|
|
46
|
+
if (t === this.currentPage || // Next page is the same
|
|
47
|
+
t < 1 || // Next page is 0
|
|
48
|
+
t > this.pages[this.pages.length - 1])
|
|
49
|
+
return;
|
|
50
|
+
const a = new CustomEvent("change-page", {
|
|
51
|
+
bubbles: !0,
|
|
52
|
+
composed: !0,
|
|
53
|
+
detail: { nextPage: t, previousPage: this.currentPage },
|
|
54
|
+
cancelable: !0
|
|
55
|
+
});
|
|
56
|
+
this.dispatchEvent(a) && (this.currentPage = t, this.pages = m({
|
|
57
|
+
itemCount: this.itemCount,
|
|
58
|
+
pageSize: this.pageSize,
|
|
59
|
+
siblingCount: this.siblingCount,
|
|
60
|
+
currentPage: this.currentPage
|
|
61
|
+
}));
|
|
62
|
+
}, this.next = () => {
|
|
63
|
+
this.changePage(this.currentPage + 1);
|
|
64
|
+
}, this.previous = () => {
|
|
65
|
+
this.changePage(this.currentPage - 1);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
connectedCallback() {
|
|
69
|
+
super.connectedCallback(), this.currentPage = this.initialPage, this.pages = m({
|
|
70
|
+
itemCount: this.itemCount,
|
|
71
|
+
pageSize: this.pageSize,
|
|
72
|
+
siblingCount: this.siblingCount,
|
|
73
|
+
currentPage: this.currentPage
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
attributeChangedCallback(t, a, i) {
|
|
77
|
+
super.attributeChangedCallback(t, a, i), t === "initial-page" && (this.currentPage = this.initialPage), this.pages = m({
|
|
78
|
+
itemCount: this.itemCount,
|
|
79
|
+
pageSize: this.pageSize,
|
|
80
|
+
siblingCount: this.siblingCount,
|
|
81
|
+
currentPage: this.currentPage,
|
|
82
|
+
[t]: i
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
return g`
|
|
87
|
+
<alliance-paginator-button
|
|
88
|
+
@click=${this.previous}
|
|
89
|
+
?disabled=${this.currentPage === 1}
|
|
90
|
+
icon="left"
|
|
91
|
+
></alliance-paginator-button>
|
|
92
|
+
|
|
93
|
+
${I(
|
|
94
|
+
this.pages,
|
|
95
|
+
(t) => t === "..." ? g`<telia-label>...</telia-label>` : g`<alliance-paginator-button
|
|
96
|
+
page=${t}
|
|
97
|
+
@click=${() => this.changePage(t)}
|
|
98
|
+
?selected=${this.currentPage === t}
|
|
99
|
+
></alliance-paginator-button>`
|
|
100
|
+
)}
|
|
101
|
+
|
|
102
|
+
<alliance-paginator-button
|
|
103
|
+
@click=${this.next}
|
|
104
|
+
?disabled=${this.currentPage === this.pages[this.pages.length - 1]}
|
|
105
|
+
icon="right"
|
|
106
|
+
></alliance-paginator-button>
|
|
107
|
+
`;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
o.styles = R`
|
|
111
|
+
:host {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: row;
|
|
114
|
+
place-items: center;
|
|
115
|
+
gap: ${$(x.spacing8)};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:host .telia-label {
|
|
119
|
+
color: ${$(D.purple700)};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
span {
|
|
123
|
+
display: block;
|
|
124
|
+
}
|
|
125
|
+
`;
|
|
126
|
+
p([
|
|
127
|
+
s({ type: Number, attribute: "item-count" })
|
|
128
|
+
], o.prototype, "itemCount", 2);
|
|
129
|
+
p([
|
|
130
|
+
s({ type: Number, attribute: "page-size" })
|
|
131
|
+
], o.prototype, "pageSize", 2);
|
|
132
|
+
p([
|
|
133
|
+
s({ type: Number, attribute: "initial-page" })
|
|
134
|
+
], o.prototype, "initialPage", 2);
|
|
135
|
+
p([
|
|
136
|
+
s({ type: Number, attribute: "sibling-count" })
|
|
137
|
+
], o.prototype, "siblingCount", 2);
|
|
138
|
+
p([
|
|
139
|
+
z()
|
|
140
|
+
], o.prototype, "currentPage", 2);
|
|
141
|
+
p([
|
|
142
|
+
z()
|
|
143
|
+
], o.prototype, "pages", 2);
|
|
144
|
+
o = p([
|
|
145
|
+
_("alliance-paginator")
|
|
146
|
+
], o);
|
|
147
|
+
var M = Object.defineProperty, E = Object.getOwnPropertyDescriptor, u = (t, a, i, r) => {
|
|
148
|
+
for (var e = r > 1 ? void 0 : r ? E(a, i) : a, l = t.length - 1, n; l >= 0; l--)
|
|
149
|
+
(n = t[l]) && (e = (r ? n(a, i, e) : n(e)) || e);
|
|
150
|
+
return r && e && M(a, i, e), e;
|
|
151
|
+
}, O = /* @__PURE__ */ ((t) => (t.Left = "left", t.Right = "right", t))(O || {});
|
|
152
|
+
let c = class extends S {
|
|
153
|
+
constructor() {
|
|
154
|
+
super(...arguments), this.selected = !1, this.disabled = !1, this.clickable = !0;
|
|
155
|
+
}
|
|
156
|
+
renderContent() {
|
|
157
|
+
return this.icon === "left" ? g`<telia-icon size="sm" svg="${N.svg}" />` : this.icon === "right" ? g`<telia-icon size="sm" svg="${j.svg}" />` : g`<span>${this.page}</span>`;
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
return g`<telia-button ?disabled=${this.disabled} variant=${this.selected ? "primary" : "tertiary-purple"}>${this.renderContent()}</telia-button> `;
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
u([
|
|
164
|
+
s({ type: O })
|
|
165
|
+
], c.prototype, "icon", 2);
|
|
166
|
+
u([
|
|
167
|
+
s({ type: String })
|
|
168
|
+
], c.prototype, "page", 2);
|
|
169
|
+
u([
|
|
170
|
+
s({ type: Boolean })
|
|
171
|
+
], c.prototype, "selected", 2);
|
|
172
|
+
u([
|
|
173
|
+
s({ type: Boolean })
|
|
174
|
+
], c.prototype, "disabled", 2);
|
|
175
|
+
u([
|
|
176
|
+
s({ type: Boolean })
|
|
177
|
+
], c.prototype, "clickable", 2);
|
|
178
|
+
c = u([
|
|
179
|
+
_("alliance-paginator-button")
|
|
180
|
+
], c);
|
|
181
|
+
//# sourceMappingURL=alliance-paginator-button-83c050bc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alliance-paginator-button-83c050bc.js","sources":["../../../node_modules/.pnpm/@lit+reactive-element@1.6.1/node_modules/@lit/reactive-element/decorators/state.js","../src/components/alliance-paginator/get-pagination.ts","../src/components/alliance-paginator/alliance-paginator.ts","../src/components/alliance-paginator/alliance-paginator-button.ts"],"sourcesContent":["import{property as r}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function t(t){return r({...t,state:!0})}export{t as state};\n//# sourceMappingURL=state.js.map\n","/* \n Pagination logic taken from https://www.freecodecamp.org/news/build-a-custom-pagination-component-in-react/\n*/\nconst DOTS = '...';\n\nconst range = (start: number, end: number) => {\n let length = end - start + 1;\n /*\n Create an array of certain length and set the elements within it from\n start value to end value.\n */\n return Array.from({ length }, (_, idx) => idx + start);\n};\n\ntype Args = {\n itemCount: number;\n pageSize: number;\n siblingCount: number;\n currentPage: number;\n};\n\nexport default ({ itemCount, pageSize, siblingCount, currentPage }: Args): (number | '...')[] => {\n const totalPageCount = Math.ceil(itemCount / pageSize);\n\n // Pages count is determined as siblingCount + firstPage + lastPage + currentPage + 2*DOTS\n const totalPageNumbers = siblingCount + 5;\n\n /*\n Case 1:\n If the number of pages is less than the page numbers we want to show in our\n paginationComponent, we return the range [1..totalPageCount]\n */\n if (totalPageNumbers >= totalPageCount) {\n return range(1, totalPageCount);\n }\n\n /*\n Calculate left and right sibling index and make sure they are within range 1 and totalPageCount\n */\n const leftSiblingIndex = Math.max(currentPage - siblingCount, 1);\n const rightSiblingIndex = Math.min(currentPage + siblingCount, totalPageCount);\n\n /*\n We do not show dots just when there is just one page number to be inserted between the extremes of sibling and the page limits i.e 1 and totalPageCount. Hence we are using leftSiblingIndex > 2 and rightSiblingIndex < totalPageCount - 2\n */\n const shouldShowLeftDots = leftSiblingIndex > 2;\n const shouldShowRightDots = rightSiblingIndex < totalPageCount - 2;\n\n const firstPageIndex = 1;\n const lastPageIndex = totalPageCount;\n\n /*\n Case 2: No left dots to show, but rights dots to be shown\n */\n if (!shouldShowLeftDots && shouldShowRightDots) {\n let leftItemCount = 3 + 2 * siblingCount;\n let leftRange = range(1, leftItemCount);\n\n return [...leftRange, DOTS, totalPageCount];\n }\n\n /*\n Case 3: No right dots to show, but left dots to be shown\n */\n if (shouldShowLeftDots && !shouldShowRightDots) {\n let rightItemCount = 3 + 2 * siblingCount;\n let rightRange = range(totalPageCount - rightItemCount + 1, totalPageCount);\n return [firstPageIndex, DOTS, ...rightRange];\n }\n\n /*\n Case 4: Both left and right dots to be shown\n */\n if (shouldShowLeftDots && shouldShowRightDots) {\n let middleRange = range(leftSiblingIndex, rightSiblingIndex);\n return [firstPageIndex, DOTS, ...middleRange, DOTS, lastPageIndex];\n }\n\n return [];\n};\n","import '@/voca/components/telia-button';\nimport '@/voca/components/telia-label';\nimport { colors, spacing } from '@/voca/foundations';\nimport { css, html, LitElement, unsafeCSS } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { repeat } from 'lit/directives/repeat.js';\nimport getPagination from './get-pagination';\n\n/**\n * Event dispatched when pressing a page button.\n *\n * Event: `change-page`\n *\n * Detail: Object containing the properties `nextPage` and `previousPage`.\n */\nexport type ChangePageEvent = CustomEvent<{ nextPage: number; previousPage: number }>;\n\n@customElement('alliance-paginator')\nexport class Paginator extends LitElement {\n static styles = css`\n :host {\n display: flex;\n flex-direction: row;\n place-items: center;\n gap: ${unsafeCSS(spacing.spacing8)};\n }\n\n :host .telia-label {\n color: ${unsafeCSS(colors.purple700)};\n }\n\n span {\n display: block;\n }\n `;\n\n connectedCallback() {\n super.connectedCallback();\n\n this.currentPage = this.initialPage;\n this.pages = getPagination({\n itemCount: this.itemCount,\n pageSize: this.pageSize,\n siblingCount: this.siblingCount,\n currentPage: this.currentPage,\n });\n }\n\n attributeChangedCallback(name: string, _: string | null, value: string | null) {\n super.attributeChangedCallback(name, _, value);\n\n if (name === 'initial-page') {\n this.currentPage = this.initialPage;\n }\n\n this.pages = getPagination({\n itemCount: this.itemCount,\n pageSize: this.pageSize,\n siblingCount: this.siblingCount,\n currentPage: this.currentPage,\n [name]: value,\n });\n }\n\n @property({ type: Number, attribute: 'item-count' })\n itemCount: number = 0;\n\n @property({ type: Number, attribute: 'page-size' })\n pageSize: number = 50;\n\n @property({ type: Number, attribute: 'initial-page' })\n initialPage: number = 1;\n\n @property({ type: Number, attribute: 'sibling-count' })\n siblingCount: number = 2;\n\n @state()\n currentPage: number = this.initialPage;\n\n @state()\n pages: (number | '...')[] = [];\n\n changePage = (nextPage: number) => {\n if (\n nextPage === this.currentPage || // Next page is the same\n nextPage < 1 || // Next page is 0\n nextPage > this.pages[this.pages.length - 1] // Next page is outside of available pages\n ) {\n return;\n }\n\n const event: ChangePageEvent = new CustomEvent('change-page', {\n bubbles: true,\n composed: true,\n detail: { nextPage, previousPage: this.currentPage },\n cancelable: true,\n });\n const defaultNotPrevented = this.dispatchEvent(event);\n\n if (defaultNotPrevented) {\n this.currentPage = nextPage;\n\n this.pages = getPagination({\n itemCount: this.itemCount,\n pageSize: this.pageSize,\n siblingCount: this.siblingCount,\n currentPage: this.currentPage,\n });\n }\n };\n\n next = () => {\n this.changePage(this.currentPage + 1);\n };\n\n previous = () => {\n this.changePage(this.currentPage - 1);\n };\n\n render() {\n return html`\n <alliance-paginator-button\n @click=${this.previous}\n ?disabled=${this.currentPage === 1}\n icon=\"left\"\n ></alliance-paginator-button>\n\n ${repeat(this.pages, (pageNumber) =>\n pageNumber === '...'\n ? html`<telia-label>...</telia-label>`\n : html`<alliance-paginator-button\n page=${pageNumber}\n @click=${() => this.changePage(pageNumber)}\n ?selected=${this.currentPage === pageNumber}\n ></alliance-paginator-button>`\n )}\n\n <alliance-paginator-button\n @click=${this.next}\n ?disabled=${this.currentPage === this.pages[this.pages.length - 1]}\n icon=\"right\"\n ></alliance-paginator-button>\n `;\n }\n}\n","import '@/voca/components/telia-button';\nimport '@/voca/components/telia-icon';\nimport { chevronLeft, chevronRight } from '@/voca/icons';\nimport { html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nenum Icon {\n Left = 'left',\n Right = 'right',\n}\n\n@customElement('alliance-paginator-button')\nexport class PaginatorButton extends LitElement {\n @property({ type: Icon })\n icon?: Icon;\n\n @property({ type: String })\n page?: string;\n\n @property({ type: Boolean })\n selected: boolean = false;\n\n @property({ type: Boolean })\n disabled: boolean = false;\n\n @property({ type: Boolean })\n clickable: boolean = true;\n\n private renderContent() {\n if (this.icon === Icon.Left) {\n return html`<telia-icon size=\"sm\" svg=\"${chevronLeft.svg}\" />`;\n }\n\n if (this.icon === Icon.Right) {\n return html`<telia-icon size=\"sm\" svg=\"${chevronRight.svg}\" />`;\n }\n\n return html`<span>${this.page}</span>`;\n }\n\n render() {\n /*\n Ignore prettier on next line because Voca \n uses textContent on the telia-button element\n to detect whether or not it only contains an\n icon - which does not take account for white space...\n https://github.com/telia-company/design-system/issues/813\n */\n // prettier-ignore\n return html`<telia-button ?disabled=${this.disabled} variant=${this.selected ? 'primary' : 'tertiary-purple'}>${this.renderContent()}</telia-button> `;\n }\n}\n"],"names":["t","r","DOTS","range","start","end","length","_","idx","getPagination","itemCount","pageSize","siblingCount","currentPage","totalPageCount","leftSiblingIndex","rightSiblingIndex","shouldShowLeftDots","shouldShowRightDots","firstPageIndex","lastPageIndex","leftItemCount","rightItemCount","rightRange","middleRange","Paginator","LitElement","nextPage","event","name","value","html","repeat","pageNumber","css","unsafeCSS","spacing","colors","__decorateClass","property","state","customElement","Icon","PaginatorButton","chevronLeft","chevronRight"],"mappings":";;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAIG,SAASA,EAAE,GAAE;AAAC,SAAOC,EAAE,EAAC,GAAG,GAAE,OAAM,GAAE,CAAC;AAAC;ACF1C,MAAMC,IAAO,OAEPC,IAAQ,CAACC,GAAeC,MAAgB;AACtC,MAAAC,IAASD,IAAMD,IAAQ;AAKpB,SAAA,MAAM,KAAK,EAAE,QAAAE,KAAU,CAACC,GAAGC,MAAQA,IAAMJ,CAAK;AACzD,GASeK,IAAA,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,cAAAC,GAAc,aAAAC,QAA4C;AAC7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S,SACPK,+BAAkCa,EAAY,YAGrD,KAAK,SAAS,UACPb,+BAAkCc,EAAa,YAGnDd,UAAa,KAAK;AAAA,EAC7B;AAAA,EAEA,SAAS;AASE,WAAAA,4BAA+B,KAAK,oBAAoB,KAAK,WAAW,YAAY,qBAAqB,KAAK,cAAc;AAAA,EACvI;AACJ;AArCIO,EAAA;AAAA,EADCC,EAAS,EAAE,MAAMG,GAAM;AAAA,GADfC,EAET,WAAA,QAAA,CAAA;AAGAL,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ;AAAA,GAJjBI,EAKT,WAAA,QAAA,CAAA;AAGAL,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS;AAAA,GAPlBI,EAQT,WAAA,YAAA,CAAA;AAGAL,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS;AAAA,GAVlBI,EAWT,WAAA,YAAA,CAAA;AAGAL,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS;AAAA,GAblBI,EAcT,WAAA,aAAA,CAAA;AAdSA,IAANL,EAAA;AAAA,EADNG,EAAc,2BAA2B;AAAA,GAC7BE,CAAA;"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { i as c, s as p, y as i, a as b, r as n, e as O } from "./query-assigned-elements-4285356d.js";
|
|
2
|
+
import { d as $, b as m, c as u, m as g } from "./index-57f6bd40.js";
|
|
3
|
+
import "./telia-heading2-9d3ab48b.js";
|
|
4
|
+
import { f as y } from "./variables-ecb680f0.js";
|
|
5
|
+
var D = Object.defineProperty, j = Object.getOwnPropertyDescriptor, C = (a, r, s, l) => {
|
|
6
|
+
for (var e = l > 1 ? void 0 : l ? j(r, s) : r, t = a.length - 1, o; t >= 0; t--)
|
|
7
|
+
(o = a[t]) && (e = (l ? o(r, s, e) : o(e)) || e);
|
|
8
|
+
return l && e && D(r, s, e), e;
|
|
9
|
+
};
|
|
10
|
+
let d = class extends p {
|
|
11
|
+
render() {
|
|
12
|
+
return i` <alliance-tb>
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</alliance-tb>`;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
d.styles = c`
|
|
18
|
+
:host {
|
|
19
|
+
display: table;
|
|
20
|
+
border-collapse: collapse;
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
d = C([
|
|
25
|
+
b("alliance-table")
|
|
26
|
+
], d);
|
|
27
|
+
var x = Object.defineProperty, T = Object.getOwnPropertyDescriptor, B = (a, r, s, l) => {
|
|
28
|
+
for (var e = l > 1 ? void 0 : l ? T(r, s) : r, t = a.length - 1, o; t >= 0; t--)
|
|
29
|
+
(o = a[t]) && (e = (l ? o(r, s, e) : o(e)) || e);
|
|
30
|
+
return l && e && x(r, s, e), e;
|
|
31
|
+
};
|
|
32
|
+
let h = class extends p {
|
|
33
|
+
render() {
|
|
34
|
+
return i`<slot></slot>`;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
h.styles = c`
|
|
38
|
+
:host {
|
|
39
|
+
display: table-row-group;
|
|
40
|
+
vertical-align: middle;
|
|
41
|
+
border-color: inherit;
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
h = B([
|
|
45
|
+
b("alliance-tb")
|
|
46
|
+
], h);
|
|
47
|
+
var S = Object.defineProperty, H = Object.getOwnPropertyDescriptor, I = (a, r, s, l) => {
|
|
48
|
+
for (var e = l > 1 ? void 0 : l ? H(r, s) : r, t = a.length - 1, o; t >= 0; t--)
|
|
49
|
+
(o = a[t]) && (e = (l ? o(r, s, e) : o(e)) || e);
|
|
50
|
+
return l && e && S(r, s, e), e;
|
|
51
|
+
};
|
|
52
|
+
let _ = class extends p {
|
|
53
|
+
render() {
|
|
54
|
+
return i` <slot></slot> `;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
_.styles = c`
|
|
58
|
+
:host {
|
|
59
|
+
display: table-cell;
|
|
60
|
+
vertical-align: inherit;
|
|
61
|
+
padding: ${n($.spacing24)};
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
_ = I([
|
|
65
|
+
b("alliance-td")
|
|
66
|
+
], _);
|
|
67
|
+
var R = Object.defineProperty, W = Object.getOwnPropertyDescriptor, P = (a, r, s, l) => {
|
|
68
|
+
for (var e = l > 1 ? void 0 : l ? W(r, s) : r, t = a.length - 1, o; t >= 0; t--)
|
|
69
|
+
(o = a[t]) && (e = (l ? o(r, s, e) : o(e)) || e);
|
|
70
|
+
return l && e && R(r, s, e), e;
|
|
71
|
+
};
|
|
72
|
+
let f = class extends p {
|
|
73
|
+
constructor() {
|
|
74
|
+
super(...arguments), this.label = "";
|
|
75
|
+
}
|
|
76
|
+
render() {
|
|
77
|
+
return i`<telia-heading tag="h4" variant="title-100">${this.label}</telia-heading>`;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
f.styles = c`
|
|
81
|
+
:host {
|
|
82
|
+
display: table-cell;
|
|
83
|
+
padding: ${n($.spacing24)};
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
P([
|
|
87
|
+
O({ type: String })
|
|
88
|
+
], f.prototype, "label", 2);
|
|
89
|
+
f = P([
|
|
90
|
+
b("alliance-th")
|
|
91
|
+
], f);
|
|
92
|
+
var X = Object.defineProperty, q = Object.getOwnPropertyDescriptor, w = (a, r, s, l) => {
|
|
93
|
+
for (var e = l > 1 ? void 0 : l ? q(r, s) : r, t = a.length - 1, o; t >= 0; t--)
|
|
94
|
+
(o = a[t]) && (e = (l ? o(r, s, e) : o(e)) || e);
|
|
95
|
+
return l && e && X(r, s, e), e;
|
|
96
|
+
};
|
|
97
|
+
let v = class extends p {
|
|
98
|
+
constructor() {
|
|
99
|
+
super(...arguments), this.clickable = !1;
|
|
100
|
+
}
|
|
101
|
+
render() {
|
|
102
|
+
return i`
|
|
103
|
+
${this.clickable ? z : ""}
|
|
104
|
+
<slot></slot>
|
|
105
|
+
`;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
v.styles = c`
|
|
109
|
+
:host {
|
|
110
|
+
display: table-row;
|
|
111
|
+
border-bottom: ${n(m.widthXs)} solid ${n(u.gray200)};
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
w([
|
|
115
|
+
O({ type: Boolean })
|
|
116
|
+
], v.prototype, "clickable", 2);
|
|
117
|
+
v = w([
|
|
118
|
+
b("alliance-tr")
|
|
119
|
+
], v);
|
|
120
|
+
const z = i`<style>
|
|
121
|
+
:host {
|
|
122
|
+
background-color: transparent;
|
|
123
|
+
transition: background-color ${n(g.duration150)} ${n(g.easeIn)};
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host(:hover),
|
|
128
|
+
:host(:focus-visible),
|
|
129
|
+
:host(:focus) {
|
|
130
|
+
background-color: ${n(u.gray200)};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:host(:active) {
|
|
134
|
+
background-color: ${n(u.gray300)};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host(:focus-visible) {
|
|
138
|
+
outline: solid ${n(y.focusBorderWidth)} ${n(y.focusColor)};
|
|
139
|
+
outline-offset: ${n($.spacing4)};
|
|
140
|
+
}
|
|
141
|
+
</style>`;
|
|
142
|
+
//# sourceMappingURL=alliance-table-row-67a6becb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alliance-table-row-67a6becb.js","sources":["../src/components/alliance-table/alliance-table.ts","../src/components/alliance-table/alliance-table-body.ts","../src/components/alliance-table/alliance-table-data.ts","../src/components/alliance-table/alliance-table-head.ts","../src/components/alliance-table/alliance-table-row.ts"],"sourcesContent":["import { css, html, LitElement } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\n@customElement('alliance-table')\nexport class Table extends LitElement {\n static styles = css`\n :host {\n display: table;\n border-collapse: collapse;\n width: 100%;\n }\n `;\n\n render() {\n return html` <alliance-tb>\n <slot></slot>\n </alliance-tb>`;\n }\n}\n","import { css, html, LitElement } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\n@customElement('alliance-tb')\nexport class TableBody extends LitElement {\n static styles = css`\n :host {\n display: table-row-group;\n vertical-align: middle;\n border-color: inherit;\n }\n `;\n\n render() {\n return html`<slot></slot>`;\n }\n}\n","import { spacing } from '@/voca/foundations';\nimport { css, html, LitElement, unsafeCSS } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\n@customElement('alliance-td')\nexport class TableData extends LitElement {\n static styles = css`\n :host {\n display: table-cell;\n vertical-align: inherit;\n padding: ${unsafeCSS(spacing.spacing24)};\n }\n `;\n\n render() {\n return html` <slot></slot> `;\n }\n}\n","import '@/voca/components/telia-heading';\nimport { spacing } from '@/voca/foundations';\nimport { css, html, LitElement, unsafeCSS } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\n@customElement('alliance-th')\nexport class TableHead extends LitElement {\n static styles = css`\n :host {\n display: table-cell;\n padding: ${unsafeCSS(spacing.spacing24)};\n }\n `;\n\n @property({ type: String })\n label: string = '';\n\n render() {\n return html`<telia-heading tag=\"h4\" variant=\"title-100\">${this.label}</telia-heading>`;\n }\n}\n","import { borders, colors, focus, motion, spacing } from '@/voca/foundations';\nimport { css, html, LitElement, unsafeCSS } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\n@customElement('alliance-tr')\nexport class TableRow extends LitElement {\n static styles = css`\n :host {\n display: table-row;\n border-bottom: ${unsafeCSS(borders.widthXs)} solid ${unsafeCSS(colors.gray200)};\n }\n `;\n\n @property({ type: Boolean })\n clickable: boolean = false;\n\n render() {\n return html`\n ${this.clickable ? clickableStyling : ''}\n <slot></slot>\n `;\n }\n}\n\nconst clickableStyling = html`<style>\n :host {\n background-color: transparent;\n transition: background-color ${unsafeCSS(motion.duration150)} ${unsafeCSS(motion.easeIn)};\n cursor: pointer;\n }\n\n :host(:hover),\n :host(:focus-visible),\n :host(:focus) {\n background-color: ${unsafeCSS(colors.gray200)};\n }\n\n :host(:active) {\n background-color: ${unsafeCSS(colors.gray300)};\n }\n\n :host(:focus-visible) {\n outline: solid ${unsafeCSS(focus.focusBorderWidth)} ${unsafeCSS(focus.focusColor)};\n outline-offset: ${unsafeCSS(spacing.spacing4)};\n }\n</style>`;\n"],"names":["Table","LitElement","html","css","__decorateClass","customElement","TableBody","TableData","unsafeCSS","spacing","TableHead","property","TableRow","clickableStyling","borders","colors","motion","focus"],"mappings":";;;;;;;;;AAIa,IAAAA,IAAN,cAAoBC,EAAW;AAAA,EASlC,SAAS;AACE,WAAAC;AAAAA;AAAAA;AAAAA,EAGX;AACJ;AAdaF,EACF,SAASG;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AADPH,IAANI,EAAA;AAAA,EADNC,EAAc,gBAAgB;AAAA,GAClBL,CAAA;;;;;;ACAA,IAAAM,IAAN,cAAwBL,EAAW;AAAA,EAStC,SAAS;AACE,WAAAC;AAAAA,EACX;AACJ;AAZaI,EACF,SAASH;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AADPG,IAANF,EAAA;AAAA,EADNC,EAAc,aAAa;AAAA,GACfC,CAAA;;;;;;ACCA,IAAAC,IAAN,cAAwBN,EAAW;AAAA,EAStC,SAAS;AACE,WAAAC;AAAAA,EACX;AACJ;AAZaK,EACF,SAASJ;AAAAA;AAAAA;AAAAA;AAAAA,uBAIGK,EAAUC,EAAQ,SAAS;AAAA;AAAA;AALrCF,IAANH,EAAA;AAAA,EADNC,EAAc,aAAa;AAAA,GACfE,CAAA;;;;;;ACCA,IAAAG,IAAN,cAAwBT,EAAW;AAAA,EAAnC,cAAA;AAAA,UAAA,GAAA,SAAA,GASa,KAAA,QAAA;AAAA,EAAA;AAAA,EAEhB,SAAS;AACL,WAAOC,gDAAmD,KAAK;AAAA,EACnE;AACJ;AAdaQ,EACF,SAASP;AAAAA;AAAAA;AAAAA,uBAGGK,EAAUC,EAAQ,SAAS;AAAA;AAAA;AAK9CL,EAAA;AAAA,EADCO,EAAS,EAAE,MAAM,QAAQ;AAAA,GARjBD,EAST,WAAA,SAAA,CAAA;AATSA,IAANN,EAAA;AAAA,EADNC,EAAc,aAAa;AAAA,GACfK,CAAA;;;;;;ACDA,IAAAE,IAAN,cAAuBX,EAAW;AAAA,EAAlC,cAAA;AAAA,UAAA,GAAA,SAAA,GASkB,KAAA,YAAA;AAAA,EAAA;AAAA,EAErB,SAAS;AACE,WAAAC;AAAAA,cACD,KAAK,YAAYW,IAAmB;AAAA;AAAA;AAAA,EAG9C;AACJ;AAjBaD,EACF,SAAST;AAAAA;AAAAA;AAAAA,6BAGSK,EAAUM,EAAQ,OAAO,WAAWN,EAAUO,EAAO,OAAO;AAAA;AAAA;AAKrFX,EAAA;AAAA,EADCO,EAAS,EAAE,MAAM,SAAS;AAAA,GARlBC,EAST,WAAA,aAAA,CAAA;AATSA,IAANR,EAAA;AAAA,EADNC,EAAc,aAAa;AAAA,GACfO,CAAA;AAmBb,MAAMC,IAAmBX;AAAAA;AAAAA;AAAAA,uCAGcM,EAAUQ,EAAO,WAAW,KAAKR,EAAUQ,EAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAOnER,EAAUO,EAAO,OAAO;AAAA;AAAA;AAAA;AAAA,4BAIxBP,EAAUO,EAAO,OAAO;AAAA;AAAA;AAAA;AAAA,yBAI3BP,EAAUS,EAAM,gBAAgB,KAAKT,EAAUS,EAAM,UAAU;AAAA,0BAC9DT,EAAUC,EAAQ,QAAQ;AAAA;AAAA;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
const e = { name: "chevron-left", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M42.1162 49.8902C42.6915 50.4081 42.9468 51.1934 42.786 51.9505C42.6252 52.7076 42.0727 53.3214 41.3366 53.5607C40.6005 53.8 39.7927 53.6284 39.2174 53.1106L17.5508 33.6106C17.0942 33.1999 16.8335 32.6146 16.8335 32.0004C16.8335 31.3863 17.0942 30.801 17.5508 30.3902L39.2174 10.8902C40.1067 10.0898 41.4766 10.1618 42.277 11.0511C43.0775 11.9403 43.0055 13.3102 42.1162 14.1106L22.2385 32.0004L42.1162 49.8902Z"/></svg>' }, l = { name: "chevron-right", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M47.1663 32.0005C47.1667 32.6147 46.9059 33.2001 46.449 33.6106L24.7824 53.1106C23.8931 53.9111 22.5233 53.8391 21.7228 52.9498C20.9223 52.0606 20.9943 50.6907 21.8836 49.8903L41.7613 32.0005L21.8836 14.1106C21.3083 13.5928 21.053 12.8075 21.2138 12.0503C21.3746 11.2932 21.9271 10.6794 22.6632 10.4402C23.3993 10.2009 24.2071 10.3724 24.7824 10.8903L46.449 30.3903C46.9059 30.8008 47.1667 31.3862 47.1663 32.0005Z"/></svg>' }
|
|
1
|
+
const e = { name: "chevron-left", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M42.1162 49.8902C42.6915 50.4081 42.9468 51.1934 42.786 51.9505C42.6252 52.7076 42.0727 53.3214 41.3366 53.5607C40.6005 53.8 39.7927 53.6284 39.2174 53.1106L17.5508 33.6106C17.0942 33.1999 16.8335 32.6146 16.8335 32.0004C16.8335 31.3863 17.0942 30.801 17.5508 30.3902L39.2174 10.8902C40.1067 10.0898 41.4766 10.1618 42.277 11.0511C43.0775 11.9403 43.0055 13.3102 42.1162 14.1106L22.2385 32.0004L42.1162 49.8902Z"/></svg>' }, l = { name: "chevron-right", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M47.1663 32.0005C47.1667 32.6147 46.9059 33.2001 46.449 33.6106L24.7824 53.1106C23.8931 53.9111 22.5233 53.8391 21.7228 52.9498C20.9223 52.0606 20.9943 50.6907 21.8836 49.8903L41.7613 32.0005L21.8836 14.1106C21.3083 13.5928 21.053 12.8075 21.2138 12.0503C21.3746 11.2932 21.9271 10.6794 22.6632 10.4402C23.3993 10.2009 24.2071 10.3724 24.7824 10.8903L46.449 30.3903C46.9059 30.8008 47.1667 31.3862 47.1663 32.0005Z"/></svg>' };
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
o as c
|
|
3
|
+
l as a,
|
|
4
|
+
e as c
|
|
6
5
|
};
|
|
7
|
-
//# sourceMappingURL=
|
|
6
|
+
//# sourceMappingURL=chevron-right-788ce8a9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chevron-right-788ce8a9.js","sources":["../../../node_modules/.pnpm/@teliads+components@19.0.0/node_modules/@teliads/components/icons/main/assets/chevron-left.js","../../../node_modules/.pnpm/@teliads+components@19.0.0/node_modules/@teliads/components/icons/main/assets/chevron-right.js"],"sourcesContent":["export default { \"name\": \"chevron-left\", \"svg\": \"<svg viewBox=\\\"0 0 64 64\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"currentColor\\\"><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M42.1162 49.8902C42.6915 50.4081 42.9468 51.1934 42.786 51.9505C42.6252 52.7076 42.0727 53.3214 41.3366 53.5607C40.6005 53.8 39.7927 53.6284 39.2174 53.1106L17.5508 33.6106C17.0942 33.1999 16.8335 32.6146 16.8335 32.0004C16.8335 31.3863 17.0942 30.801 17.5508 30.3902L39.2174 10.8902C40.1067 10.0898 41.4766 10.1618 42.277 11.0511C43.0775 11.9403 43.0055 13.3102 42.1162 14.1106L22.2385 32.0004L42.1162 49.8902Z\\\"/></svg>\" };\n","export default { \"name\": \"chevron-right\", \"svg\": \"<svg viewBox=\\\"0 0 64 64\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"currentColor\\\"><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M47.1663 32.0005C47.1667 32.6147 46.9059 33.2001 46.449 33.6106L24.7824 53.1106C23.8931 53.9111 22.5233 53.8391 21.7228 52.9498C20.9223 52.0606 20.9943 50.6907 21.8836 49.8903L41.7613 32.0005L21.8836 14.1106C21.3083 13.5928 21.053 12.8075 21.2138 12.0503C21.3746 11.2932 21.9271 10.6794 22.6632 10.4402C23.3993 10.2009 24.2071 10.3724 24.7824 10.8903L46.449 30.3903C46.9059 30.8008 47.1667 31.3862 47.1663 32.0005Z\\\"/></svg>\" };\n"],"names":["chevronLeft","chevronRight"],"mappings":"AAAA,MAAeA,IAAA,EAAE,MAAQ,gBAAgB,KAAO,wiBAAqjB,GCAtlBC,IAAA,EAAE,MAAQ,iBAAiB,KAAO,2iBAAwjB;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const e = { name: "close", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.365 48.3012C51.9123 48.8485 52.1261 49.6462 51.9258 50.3939C51.7254 51.1415 51.1415 51.7254 50.3939 51.9258C49.6462 52.1261 48.8485 51.9123 48.3012 51.365L32.4998 35.5636L16.6984 51.365C16.1511 51.9123 15.3534 52.1261 14.6058 51.9258C13.8581 51.7254 13.2742 51.1415 13.0739 50.3939C12.8735 49.6462 13.0873 48.8485 13.6346 48.3012L29.436 32.4998L13.6346 16.6984C13.0873 16.1511 12.8735 15.3534 13.0739 14.6058C13.2742 13.8581 13.8581 13.2742 14.6058 13.0739C15.3534 12.8735 16.1511 13.0873 16.6984 13.6346L32.4998 29.436L48.3012 13.6346C49.1473 12.7885 50.519 12.7885 51.365 13.6346C52.2111 14.4806 52.2111 15.8523 51.365 16.6984L35.5636 32.4998L51.365 48.3012Z"/></svg>' };
|
|
2
|
+
export {
|
|
3
|
+
e as c
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=close-7d423291.js.map
|