@digital-realty/ix-widget 2.2.1 → 2.3.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import './ix-status-counter-group.js';
|
|
3
|
+
import './ix-contacts.js';
|
|
4
|
+
import './ix-info-card.js';
|
|
5
|
+
import './ix-news-feed.js';
|
|
6
|
+
import './ix-table-data.js';
|
|
7
|
+
import './ix-nav-item.js';
|
|
8
|
+
import './ix-nav-list.js';
|
|
9
|
+
import '@digital-realty/ix-dialog/ix-dialog.js';
|
|
10
|
+
export interface NavItem {
|
|
11
|
+
icon: string;
|
|
12
|
+
target: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
15
|
+
export interface NavList {
|
|
16
|
+
header: string;
|
|
17
|
+
items: NavItem[];
|
|
18
|
+
}
|
|
19
|
+
export interface Topic {
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
22
|
+
export interface InfoCardItem {
|
|
23
|
+
thumbnail: {
|
|
24
|
+
alternativeText: string;
|
|
25
|
+
url: string;
|
|
26
|
+
};
|
|
27
|
+
topics: Topic[];
|
|
28
|
+
title: string;
|
|
29
|
+
abstract: string;
|
|
30
|
+
uid: string;
|
|
31
|
+
video?: {
|
|
32
|
+
url: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface TableDataItem {
|
|
36
|
+
columns: string[];
|
|
37
|
+
rows?: string[];
|
|
38
|
+
header: string;
|
|
39
|
+
href: string;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
isAuthorizedToView?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export declare class IxLaunchpad extends LitElement {
|
|
44
|
+
static styles: import("lit").CSSResult[];
|
|
45
|
+
data: {};
|
|
46
|
+
status: never[];
|
|
47
|
+
nav: never[];
|
|
48
|
+
news: InfoCardItem[];
|
|
49
|
+
contacts: any;
|
|
50
|
+
resources: InfoCardItem[];
|
|
51
|
+
promotions: InfoCardItem[];
|
|
52
|
+
kbImgBaseUrl: string;
|
|
53
|
+
kbVideoBaseUrl: string;
|
|
54
|
+
kbLinkBaseUrl: string;
|
|
55
|
+
kbNewsViewAllUrl: string;
|
|
56
|
+
knowledgebase: string;
|
|
57
|
+
updates: TableDataItem;
|
|
58
|
+
actions: TableDataItem;
|
|
59
|
+
showVideoModal: boolean;
|
|
60
|
+
videoUrl: string;
|
|
61
|
+
videoTitle: string;
|
|
62
|
+
handleResourceOpen: (videoUrl: string | undefined, videoTitle?: string) => (e: Event) => void;
|
|
63
|
+
handleResourceClosed: () => void;
|
|
64
|
+
renderNavigation: () => import("lit-html").TemplateResult<1>;
|
|
65
|
+
renderTicketUpdatesGrid: () => import("lit-html").TemplateResult<1>;
|
|
66
|
+
renderActionsRequiredGrid: () => import("lit-html").TemplateResult<1>;
|
|
67
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { html, LitElement, nothing } from 'lit';
|
|
3
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
4
|
+
import './ix-status-counter-group.js';
|
|
5
|
+
import './ix-contacts.js';
|
|
6
|
+
import './ix-info-card.js';
|
|
7
|
+
import './ix-news-feed.js';
|
|
8
|
+
import './ix-table-data.js';
|
|
9
|
+
import './ix-nav-item.js';
|
|
10
|
+
import './ix-nav-list.js';
|
|
11
|
+
import { IxLaunchpadStyles } from './styles/launchpad-styles.js';
|
|
12
|
+
import { testIdTransform } from './utils/testIdTransform.js';
|
|
13
|
+
import '@digital-realty/ix-dialog/ix-dialog.js';
|
|
14
|
+
let IxLaunchpad = class IxLaunchpad extends LitElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.data = {};
|
|
18
|
+
this.status = [];
|
|
19
|
+
this.nav = [];
|
|
20
|
+
this.news = [];
|
|
21
|
+
this.contacts = {};
|
|
22
|
+
this.resources = [];
|
|
23
|
+
this.promotions = [];
|
|
24
|
+
this.kbImgBaseUrl = '';
|
|
25
|
+
this.kbVideoBaseUrl = '';
|
|
26
|
+
this.kbLinkBaseUrl = '';
|
|
27
|
+
this.kbNewsViewAllUrl = '/knowledge-base/category/whats-new/';
|
|
28
|
+
this.knowledgebase = '';
|
|
29
|
+
this.updates = {
|
|
30
|
+
columns: [],
|
|
31
|
+
rows: [],
|
|
32
|
+
header: '',
|
|
33
|
+
href: '',
|
|
34
|
+
};
|
|
35
|
+
this.actions = {
|
|
36
|
+
columns: [],
|
|
37
|
+
rows: [],
|
|
38
|
+
header: '',
|
|
39
|
+
href: '',
|
|
40
|
+
disabled: true,
|
|
41
|
+
};
|
|
42
|
+
this.showVideoModal = false;
|
|
43
|
+
this.videoUrl = '';
|
|
44
|
+
this.videoTitle = '';
|
|
45
|
+
this.handleResourceOpen = (videoUrl, videoTitle = '') => (e) => {
|
|
46
|
+
if (!videoUrl)
|
|
47
|
+
return;
|
|
48
|
+
e.preventDefault();
|
|
49
|
+
this.videoUrl = `${this.kbVideoBaseUrl}${encodeURIComponent(videoUrl)}`;
|
|
50
|
+
this.videoTitle = videoTitle;
|
|
51
|
+
this.showVideoModal = true;
|
|
52
|
+
};
|
|
53
|
+
this.handleResourceClosed = () => {
|
|
54
|
+
this.showVideoModal = false;
|
|
55
|
+
};
|
|
56
|
+
this.renderNavigation = () => html `
|
|
57
|
+
${this.nav.map((nav) => html ` <ix-nav-list
|
|
58
|
+
.header="${nav.header}"
|
|
59
|
+
data-testid=${`lp-navigation-${testIdTransform(nav.header)}`}
|
|
60
|
+
>
|
|
61
|
+
${nav.items.map((item) => html `<ix-nav-item .icon=${item === null || item === void 0 ? void 0 : item.icon} .target=${item === null || item === void 0 ? void 0 : item.target}
|
|
62
|
+
>${item.name}</ix-nav-item
|
|
63
|
+
>`)}
|
|
64
|
+
</ix-nav-list>`)}
|
|
65
|
+
`;
|
|
66
|
+
this.renderTicketUpdatesGrid = () => html `<ix-table-data
|
|
67
|
+
.columns=${this.updates.columns}
|
|
68
|
+
.rows=${this.updates.rows}
|
|
69
|
+
.header=${this.updates.header}
|
|
70
|
+
.href=${this.updates.href}
|
|
71
|
+
?disabled=${this.updates.disabled}
|
|
72
|
+
emptyDescription="No Recent Service Ticket Updates"
|
|
73
|
+
showViewAllButtonOnEmpty
|
|
74
|
+
data-testid="lp-ticketUpdates"
|
|
75
|
+
>
|
|
76
|
+
</ix-table-data>`;
|
|
77
|
+
this.renderActionsRequiredGrid = () => html `<ix-table-data
|
|
78
|
+
.columns=${this.actions.columns}
|
|
79
|
+
.rows=${this.actions.rows}
|
|
80
|
+
.header=${this.actions.header}
|
|
81
|
+
.href=${this.actions.href}
|
|
82
|
+
?disabled=${this.actions.disabled}
|
|
83
|
+
emptyDescription="No Pending Actions"
|
|
84
|
+
data-testid="lp-yourActionRequired"
|
|
85
|
+
>
|
|
86
|
+
</ix-table-data>`;
|
|
87
|
+
}
|
|
88
|
+
render() {
|
|
89
|
+
var _a, _b, _c;
|
|
90
|
+
return html `
|
|
91
|
+
${this.showVideoModal
|
|
92
|
+
? html `<ix-dialog open @close=${this.handleResourceClosed}>
|
|
93
|
+
<div id="videoPlayer" class="headline" slot="headline">
|
|
94
|
+
<span class="title">${this.videoTitle}</span>
|
|
95
|
+
<ix-icon-button @click=${this.handleResourceClosed} icon="close">
|
|
96
|
+
</ix-icon-button>
|
|
97
|
+
</div>
|
|
98
|
+
<div slot="content">
|
|
99
|
+
<video
|
|
100
|
+
src=${this.videoUrl}
|
|
101
|
+
controls=""
|
|
102
|
+
autoplay=""
|
|
103
|
+
controlslist="nodownload"
|
|
104
|
+
></video>
|
|
105
|
+
</div>
|
|
106
|
+
</ix-dialog>`
|
|
107
|
+
: nothing}
|
|
108
|
+
<main class="wrapper">
|
|
109
|
+
<section>
|
|
110
|
+
<div class="container">
|
|
111
|
+
<div class="content">
|
|
112
|
+
<ix-status-counter-group
|
|
113
|
+
.data=${this.status}
|
|
114
|
+
></ix-status-counter-group>
|
|
115
|
+
|
|
116
|
+
<nav>${this.renderNavigation()}</nav>
|
|
117
|
+
|
|
118
|
+
${this.actions.isAuthorizedToView
|
|
119
|
+
? this.renderActionsRequiredGrid()
|
|
120
|
+
: nothing}
|
|
121
|
+
${this.updates.isAuthorizedToView
|
|
122
|
+
? this.renderTicketUpdatesGrid()
|
|
123
|
+
: nothing}
|
|
124
|
+
${this.knowledgebase !== ''
|
|
125
|
+
? html ` <iframe
|
|
126
|
+
class="knowledge-base"
|
|
127
|
+
title="knowledge base"
|
|
128
|
+
.src=${this.knowledgebase}
|
|
129
|
+
></iframe>`
|
|
130
|
+
: nothing}
|
|
131
|
+
${((_a = this.news) === null || _a === void 0 ? void 0 : _a.length)
|
|
132
|
+
? html `<ix-news-feed
|
|
133
|
+
header="What's New"
|
|
134
|
+
.data=${this.news.map(item => ({
|
|
135
|
+
...item,
|
|
136
|
+
uid: `${this.kbLinkBaseUrl}${item.uid}`,
|
|
137
|
+
}))}
|
|
138
|
+
.href=${this.kbNewsViewAllUrl}
|
|
139
|
+
data-testid="lp-newsFeed"
|
|
140
|
+
></ix-news-feed>`
|
|
141
|
+
: nothing}
|
|
142
|
+
${((_b = this.resources) === null || _b === void 0 ? void 0 : _b.length)
|
|
143
|
+
? html `<div class="news-info">
|
|
144
|
+
<h2>Resources</h2>
|
|
145
|
+
<div class="resources">
|
|
146
|
+
${this.resources.map(item => {
|
|
147
|
+
var _a, _b, _c, _d;
|
|
148
|
+
return html ` <a
|
|
149
|
+
href=${`${this.kbLinkBaseUrl}${item.uid}`}
|
|
150
|
+
data-testid="lp-resourceItem"
|
|
151
|
+
@click=${this.handleResourceOpen((_a = item.video) === null || _a === void 0 ? void 0 : _a.url, item.title)}
|
|
152
|
+
><ix-info-card type="info-card-resources"
|
|
153
|
+
><img
|
|
154
|
+
slot="image"
|
|
155
|
+
name="image"
|
|
156
|
+
alt=${((_b = item === null || item === void 0 ? void 0 : item.thumbnail) === null || _b === void 0 ? void 0 : _b.alternativeText) || ''}
|
|
157
|
+
src="${`${this.kbImgBaseUrl}${encodeURIComponent(item.thumbnail.url)}&w=3840&q=75`}"
|
|
158
|
+
/>
|
|
159
|
+
${((_d = (_c = item.topics) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.name)
|
|
160
|
+
? html `<div slot="label">
|
|
161
|
+
${item.topics[0].name}
|
|
162
|
+
</div>`
|
|
163
|
+
: nothing}
|
|
164
|
+
<div slot="title">${item.title}</div>
|
|
165
|
+
${item.abstract
|
|
166
|
+
? html `<div
|
|
167
|
+
slot="description"
|
|
168
|
+
class="news-item-description"
|
|
169
|
+
>
|
|
170
|
+
${item.abstract}
|
|
171
|
+
</div>`
|
|
172
|
+
: nothing}
|
|
173
|
+
<ix-button
|
|
174
|
+
slot="cta"
|
|
175
|
+
type="button"
|
|
176
|
+
has-icon
|
|
177
|
+
trailing-icon
|
|
178
|
+
appearance="text"
|
|
179
|
+
>
|
|
180
|
+
<ix-icon slot="icon">chevron_right</ix-icon>
|
|
181
|
+
Learn more
|
|
182
|
+
</ix-button>
|
|
183
|
+
</ix-info-card></a
|
|
184
|
+
>`;
|
|
185
|
+
})}
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
<h2 class="">News & Promotions</h2>
|
|
189
|
+
<div class="newsAndPromotions">
|
|
190
|
+
${this.promotions.map(item => html ` <a
|
|
191
|
+
href=${`${this.kbLinkBaseUrl}${item.uid}`}
|
|
192
|
+
data-testid="lp-newsPromotionsItem"
|
|
193
|
+
><ix-info-card type="info-card">
|
|
194
|
+
<img
|
|
195
|
+
slot="image"
|
|
196
|
+
name="image"
|
|
197
|
+
alt="${item.thumbnail.alternativeText}"
|
|
198
|
+
src="${`${this.kbImgBaseUrl}${encodeURIComponent(item.thumbnail.url)}&w=3840&q=75`}"
|
|
199
|
+
/>
|
|
200
|
+
<div slot="title">${item.title}</div>
|
|
201
|
+
<div slot="description">${item.abstract}</div>
|
|
202
|
+
<ix-button
|
|
203
|
+
slot="cta"
|
|
204
|
+
type="button"
|
|
205
|
+
has-icon
|
|
206
|
+
trailing-icon
|
|
207
|
+
appearance="text"
|
|
208
|
+
>
|
|
209
|
+
<ix-icon slot="icon">chevron_right</ix-icon>
|
|
210
|
+
Learn more
|
|
211
|
+
</ix-button>
|
|
212
|
+
</ix-info-card></a
|
|
213
|
+
>`)}
|
|
214
|
+
</div>
|
|
215
|
+
</div>`
|
|
216
|
+
: nothing}
|
|
217
|
+
${((_c = this.contacts) === null || _c === void 0 ? void 0 : _c.email)
|
|
218
|
+
? html `<ix-contacts
|
|
219
|
+
.contacts=${this.contacts}
|
|
220
|
+
data-testid="lp-contacts"
|
|
221
|
+
></ix-contacts>`
|
|
222
|
+
: nothing}
|
|
223
|
+
</div>
|
|
224
|
+
<nav>
|
|
225
|
+
<div
|
|
226
|
+
class="side-nav"
|
|
227
|
+
style="top:calc(var(--header-height) + var(--intraportal-nav-height, 0px));"
|
|
228
|
+
>
|
|
229
|
+
${this.renderNavigation()}
|
|
230
|
+
</div>
|
|
231
|
+
</nav>
|
|
232
|
+
</div>
|
|
233
|
+
</section>
|
|
234
|
+
</main>
|
|
235
|
+
`;
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
IxLaunchpad.styles = [IxLaunchpadStyles];
|
|
239
|
+
__decorate([
|
|
240
|
+
property({ type: Object })
|
|
241
|
+
], IxLaunchpad.prototype, "data", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
property({ type: Array })
|
|
244
|
+
], IxLaunchpad.prototype, "status", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
property({ type: Array })
|
|
247
|
+
], IxLaunchpad.prototype, "nav", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
property({ type: Array })
|
|
250
|
+
], IxLaunchpad.prototype, "news", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
property({ type: Object })
|
|
253
|
+
], IxLaunchpad.prototype, "contacts", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
property({ type: Array })
|
|
256
|
+
], IxLaunchpad.prototype, "resources", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
property({ type: Array })
|
|
259
|
+
], IxLaunchpad.prototype, "promotions", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
property({ type: String, attribute: 'kb-img-base-url' })
|
|
262
|
+
], IxLaunchpad.prototype, "kbImgBaseUrl", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
property({ type: String, attribute: 'kb-video-base-url' })
|
|
265
|
+
], IxLaunchpad.prototype, "kbVideoBaseUrl", void 0);
|
|
266
|
+
__decorate([
|
|
267
|
+
property({ type: String, attribute: 'kb-link-base-url' })
|
|
268
|
+
], IxLaunchpad.prototype, "kbLinkBaseUrl", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
property({ type: String, attribute: 'kb-news-view-all-url' })
|
|
271
|
+
], IxLaunchpad.prototype, "kbNewsViewAllUrl", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
property({ type: String })
|
|
274
|
+
], IxLaunchpad.prototype, "knowledgebase", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
property({ type: Object })
|
|
277
|
+
], IxLaunchpad.prototype, "updates", void 0);
|
|
278
|
+
__decorate([
|
|
279
|
+
property({ type: Object })
|
|
280
|
+
], IxLaunchpad.prototype, "actions", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
state()
|
|
283
|
+
], IxLaunchpad.prototype, "showVideoModal", void 0);
|
|
284
|
+
__decorate([
|
|
285
|
+
state()
|
|
286
|
+
], IxLaunchpad.prototype, "videoUrl", void 0);
|
|
287
|
+
__decorate([
|
|
288
|
+
state()
|
|
289
|
+
], IxLaunchpad.prototype, "videoTitle", void 0);
|
|
290
|
+
IxLaunchpad = __decorate([
|
|
291
|
+
customElement('ix-launchpad')
|
|
292
|
+
], IxLaunchpad);
|
|
293
|
+
export { IxLaunchpad };
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AM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;kDAAoB;AAG9E;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAAC;qDACL;AAE7B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAoB;AAEnB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAKzB;AAE0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAMzB;AAEO;IAAR,KAAK,EAAE;mDAAwB;AAEvB;IAAR,KAAK,EAAE;6CAAe;AAEd;IAAR,KAAK,EAAE;+CAAiB;AAhDd,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CAmQvB","sourcesContent":["import { html, LitElement, nothing } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport './ix-status-counter-group.js';\nimport './ix-contacts.js';\nimport './ix-info-card.js';\nimport './ix-news-feed.js';\nimport './ix-table-data.js';\nimport './ix-nav-item.js';\nimport './ix-nav-list.js';\nimport { IxLaunchpadStyles } from './styles/launchpad-styles.js';\nimport { testIdTransform } from './utils/testIdTransform.js';\nimport '@digital-realty/ix-dialog/ix-dialog.js';\n\nexport interface NavItem {\n icon: string;\n target: string;\n name: string;\n}\n\nexport interface NavList {\n header: string;\n items: NavItem[];\n}\n\nexport interface Topic {\n name: string;\n}\n\nexport interface InfoCardItem {\n thumbnail: {\n alternativeText: string;\n url: string;\n };\n topics: Topic[];\n title: string;\n abstract: string;\n uid: string;\n video?: {\n url: string;\n };\n}\n\nexport interface TableDataItem {\n columns: string[];\n rows?: string[];\n header: string;\n href: string;\n disabled?: boolean;\n isAuthorizedToView?: boolean;\n}\n\n@customElement('ix-launchpad')\nexport class IxLaunchpad extends LitElement {\n static styles = [IxLaunchpadStyles];\n\n @property({ type: Object }) data = {};\n\n @property({ type: Array }) status = [];\n\n @property({ type: Array }) nav = [];\n\n @property({ type: Array }) news: InfoCardItem[] = [];\n\n @property({ type: Object }) contacts: any = {};\n\n @property({ type: Array }) resources: InfoCardItem[] = [];\n\n @property({ type: Array }) promotions: InfoCardItem[] = [];\n\n @property({ type: String, attribute: 'kb-img-base-url' }) kbImgBaseUrl = '';\n\n @property({ type: String, attribute: 'kb-video-base-url' }) kbVideoBaseUrl =\n '';\n\n @property({ type: String, attribute: 'kb-link-base-url' }) kbLinkBaseUrl = '';\n\n @property({ type: String, attribute: 'kb-news-view-all-url' })\n kbNewsViewAllUrl = '/knowledge-base/category/whats-new/';\n\n @property({ type: String }) knowledgebase = '';\n\n @property({ type: Object }) updates: TableDataItem = {\n columns: [],\n rows: [],\n header: '',\n href: '',\n };\n\n @property({ type: Object }) actions: TableDataItem = {\n columns: [],\n rows: [],\n header: '',\n href: '',\n disabled: true,\n };\n\n @state() showVideoModal = false;\n\n @state() videoUrl = '';\n\n @state() videoTitle = '';\n\n handleResourceOpen =\n (videoUrl: string | undefined, videoTitle: string = '') =>\n (e: Event) => {\n if (!videoUrl) return;\n e.preventDefault();\n this.videoUrl = `${this.kbVideoBaseUrl}${encodeURIComponent(videoUrl)}`;\n this.videoTitle = videoTitle;\n this.showVideoModal = true;\n };\n\n handleResourceClosed = () => {\n this.showVideoModal = false;\n };\n\n renderNavigation = () => html`\n ${this.nav.map(\n (nav: NavList) => html` <ix-nav-list\n .header=\"${nav.header}\"\n data-testid=${`lp-navigation-${testIdTransform(nav.header)}`}\n >\n ${nav.items.map(\n (item: NavItem) =>\n html`<ix-nav-item .icon=${item?.icon} .target=${item?.target}\n >${item.name}</ix-nav-item\n >`\n )}\n </ix-nav-list>`\n )}\n `;\n\n renderTicketUpdatesGrid = () => html`<ix-table-data\n .columns=${this.updates.columns}\n .rows=${this.updates.rows}\n .header=${this.updates.header}\n .href=${this.updates.href}\n ?disabled=${this.updates.disabled}\n emptyDescription=\"No Recent Service Ticket Updates\"\n showViewAllButtonOnEmpty\n data-testid=\"lp-ticketUpdates\"\n >\n </ix-table-data>`;\n\n renderActionsRequiredGrid = () => html`<ix-table-data\n .columns=${this.actions.columns}\n .rows=${this.actions.rows}\n .header=${this.actions.header}\n .href=${this.actions.href}\n ?disabled=${this.actions.disabled}\n emptyDescription=\"No Pending Actions\"\n data-testid=\"lp-yourActionRequired\"\n >\n </ix-table-data>`;\n\n protected override render() {\n return html`\n ${this.showVideoModal\n ? html`<ix-dialog open @close=${this.handleResourceClosed}>\n <div id=\"videoPlayer\" class=\"headline\" slot=\"headline\">\n <span class=\"title\">${this.videoTitle}</span>\n <ix-icon-button @click=${this.handleResourceClosed} icon=\"close\">\n </ix-icon-button>\n </div>\n <div slot=\"content\">\n <video\n src=${this.videoUrl}\n controls=\"\"\n autoplay=\"\"\n controlslist=\"nodownload\"\n ></video>\n </div>\n </ix-dialog>`\n : nothing}\n <main class=\"wrapper\">\n <section>\n <div class=\"container\">\n <div class=\"content\">\n <ix-status-counter-group\n .data=${this.status}\n ></ix-status-counter-group>\n\n <nav>${this.renderNavigation()}</nav>\n\n ${this.actions.isAuthorizedToView\n ? this.renderActionsRequiredGrid()\n : nothing}\n ${this.updates.isAuthorizedToView\n ? this.renderTicketUpdatesGrid()\n : nothing}\n ${this.knowledgebase !== ''\n ? html` <iframe\n class=\"knowledge-base\"\n title=\"knowledge base\"\n .src=${this.knowledgebase}\n ></iframe>`\n : nothing}\n ${this.news?.length\n ? html`<ix-news-feed\n header=\"What's New\"\n .data=${this.news.map(item => ({\n ...item,\n uid: `${this.kbLinkBaseUrl}${item.uid}`,\n }))}\n .href=${this.kbNewsViewAllUrl}\n data-testid=\"lp-newsFeed\"\n ></ix-news-feed>`\n : nothing}\n ${this.resources?.length\n ? html`<div class=\"news-info\">\n <h2>Resources</h2>\n <div class=\"resources\">\n ${this.resources.map(\n item => html` <a\n href=${`${this.kbLinkBaseUrl}${item.uid}`}\n data-testid=\"lp-resourceItem\"\n @click=${this.handleResourceOpen(\n item.video?.url,\n item.title\n )}\n ><ix-info-card type=\"info-card-resources\"\n ><img\n slot=\"image\"\n name=\"image\"\n alt=${item?.thumbnail?.alternativeText || ''}\n src=\"${`${this.kbImgBaseUrl}${encodeURIComponent(\n item.thumbnail.url\n )}&w=3840&q=75`}\"\n />\n ${item.topics?.[0]?.name\n ? html`<div slot=\"label\">\n ${item.topics[0].name}\n </div>`\n : nothing}\n <div slot=\"title\">${item.title}</div>\n ${item.abstract\n ? html`<div\n slot=\"description\"\n class=\"news-item-description\"\n >\n ${item.abstract}\n </div>`\n : nothing}\n <ix-button\n slot=\"cta\"\n type=\"button\"\n has-icon\n trailing-icon\n appearance=\"text\"\n >\n <ix-icon slot=\"icon\">chevron_right</ix-icon>\n Learn more\n </ix-button>\n </ix-info-card></a\n >`\n )}\n </div>\n\n <h2 class=\"\">News & Promotions</h2>\n <div class=\"newsAndPromotions\">\n ${this.promotions.map(\n item => html` <a\n href=${`${this.kbLinkBaseUrl}${item.uid}`}\n data-testid=\"lp-newsPromotionsItem\"\n ><ix-info-card type=\"info-card\">\n <img\n slot=\"image\"\n name=\"image\"\n alt=\"${item.thumbnail.alternativeText}\"\n src=\"${`${this.kbImgBaseUrl}${encodeURIComponent(\n item.thumbnail.url\n )}&w=3840&q=75`}\"\n />\n <div slot=\"title\">${item.title}</div>\n <div slot=\"description\">${item.abstract}</div>\n <ix-button\n slot=\"cta\"\n type=\"button\"\n has-icon\n trailing-icon\n appearance=\"text\"\n >\n <ix-icon slot=\"icon\">chevron_right</ix-icon>\n Learn more\n </ix-button>\n </ix-info-card></a\n >`\n )}\n </div>\n </div>`\n : nothing}\n ${this.contacts?.email\n ? html`<ix-contacts\n .contacts=${this.contacts}\n data-testid=\"lp-contacts\"\n ></ix-contacts>`\n : nothing}\n </div>\n <nav>\n <div\n class=\"side-nav\"\n style=\"top:calc(var(--header-height) + var(--intraportal-nav-height, 0px));\"\n >\n ${this.renderNavigation()}\n </div>\n </nav>\n </div>\n </section>\n </main>\n `;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IxLaunchpadStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const IxLaunchpadStyles = css `
|
|
3
|
+
.wrapper {
|
|
4
|
+
margin-left: 0px;
|
|
5
|
+
transition: margin-left 195ms cubic-bezier(0.4, 0, 0.6, 1) 0ms;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
}
|
|
9
|
+
header {
|
|
10
|
+
min-height: 60px;
|
|
11
|
+
background-color: rgba(245, 247, 255, 0.85);
|
|
12
|
+
backdrop-filter: blur(6px);
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-flow: column-reverse wrap;
|
|
15
|
+
-webkit-box-pack: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
-webkit-box-align: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 20px;
|
|
20
|
+
padding: 16px 24px 16px 7px;
|
|
21
|
+
position: sticky;
|
|
22
|
+
top: 0px;
|
|
23
|
+
right: 0px;
|
|
24
|
+
z-index: 1000;
|
|
25
|
+
}
|
|
26
|
+
header > div {
|
|
27
|
+
margin-right: auto;
|
|
28
|
+
display: flex;
|
|
29
|
+
-webkit-box-pack: start;
|
|
30
|
+
justify-content: start;
|
|
31
|
+
-webkit-box-align: center;
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
header > div > h1 {
|
|
35
|
+
display: block;
|
|
36
|
+
margin-block-start: 0.67em;
|
|
37
|
+
margin-block-end: 0.67em;
|
|
38
|
+
margin-inline-start: 0px;
|
|
39
|
+
margin-inline-end: 0px;
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
font-family: var(--text-page-title-font, sans-serif);
|
|
42
|
+
font-size: var(--text-page-title-size, 2.125rem);
|
|
43
|
+
letter-spacing: var(--text-page-title-letter-spacing, 0.01029412em);
|
|
44
|
+
line-height: var(--text-page-title-line-height, 1.17647059em);
|
|
45
|
+
font-weight: var(--text-page-title-weight, bold);
|
|
46
|
+
text-decoration: var(--text-page-title-decoration, none);
|
|
47
|
+
text-transform: var(--text-page-title-transform, none);
|
|
48
|
+
}
|
|
49
|
+
h2 {
|
|
50
|
+
margin: 0px;
|
|
51
|
+
font-family: var(--text-heading-font, sans-serif);
|
|
52
|
+
font-size: 24px;
|
|
53
|
+
letter-spacing: var(--text-heading-letter-spacing, 0.0075em);
|
|
54
|
+
line-height: var(--text-heading-line-height, 1.2em);
|
|
55
|
+
font-weight: normal;
|
|
56
|
+
text-decoration: var(--text-heading-decoration, none);
|
|
57
|
+
text-transform: var(--text-heading-transform, none);
|
|
58
|
+
margin-bottom: 24px;
|
|
59
|
+
}
|
|
60
|
+
.content {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
gap: 24px;
|
|
64
|
+
}
|
|
65
|
+
nav {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
gap: 24px;
|
|
69
|
+
}
|
|
70
|
+
section {
|
|
71
|
+
flex: 1 1 0%;
|
|
72
|
+
padding-right: 0px;
|
|
73
|
+
padding-left: 0px;
|
|
74
|
+
padding-bottom: 64px;
|
|
75
|
+
}
|
|
76
|
+
.container {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
padding-top: 0px;
|
|
80
|
+
padding-left: 16px;
|
|
81
|
+
padding-right: 16px;
|
|
82
|
+
gap: 32px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.resources {
|
|
86
|
+
margin-bottom: 44px;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.resources ix-button {
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.news-info .newsAndPromotions,
|
|
95
|
+
.news-info .resources {
|
|
96
|
+
display: flex;
|
|
97
|
+
gap: 44px;
|
|
98
|
+
flex-wrap: wrap;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.news-info a {
|
|
102
|
+
text-decoration: none;
|
|
103
|
+
color: inherit;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.news-item-description {
|
|
107
|
+
margin: 10px 0 0;
|
|
108
|
+
font-family: var(--root-primary-font);
|
|
109
|
+
font-style: normal;
|
|
110
|
+
font-weight: 400;
|
|
111
|
+
font-size: 16px;
|
|
112
|
+
line-height: 28px;
|
|
113
|
+
letter-spacing: 0.44px;
|
|
114
|
+
position: relative;
|
|
115
|
+
color: white;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
ix-info-card {
|
|
119
|
+
width: 348px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
#videoPlayer.headline {
|
|
123
|
+
justify-content: space-between;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
video {
|
|
127
|
+
max-width: 100%;
|
|
128
|
+
height: calc(100vh - 10rem);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@media (min-width: 800px) and (max-width: 1349px) {
|
|
132
|
+
nav {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: flex-start;
|
|
135
|
+
gap: 32px;
|
|
136
|
+
}
|
|
137
|
+
nav > * {
|
|
138
|
+
width: 100%;
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@media (min-width: 600px) {
|
|
145
|
+
header {
|
|
146
|
+
min-height: 100px;
|
|
147
|
+
flex-direction: row;
|
|
148
|
+
-webkit-box-align: center;
|
|
149
|
+
align-items: center;
|
|
150
|
+
gap: 21px;
|
|
151
|
+
}
|
|
152
|
+
.container {
|
|
153
|
+
padding: 0px;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
@media (min-width: 900px) {
|
|
157
|
+
.content {
|
|
158
|
+
gap: 32px;
|
|
159
|
+
}
|
|
160
|
+
main {
|
|
161
|
+
margin-left: 0px;
|
|
162
|
+
margin-bottom: 0px;
|
|
163
|
+
}
|
|
164
|
+
header {
|
|
165
|
+
padding-top: 12px;
|
|
166
|
+
min-height: 92px;
|
|
167
|
+
padding-bottom: 8px;
|
|
168
|
+
}
|
|
169
|
+
section {
|
|
170
|
+
padding-right: 32px;
|
|
171
|
+
padding-bottom: 48px;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
@media (min-width: 1200px) {
|
|
175
|
+
header {
|
|
176
|
+
min-height: 100px;
|
|
177
|
+
padding-bottom: 16px;
|
|
178
|
+
padding-top: 27px;
|
|
179
|
+
}
|
|
180
|
+
.container {
|
|
181
|
+
/* background-image: url(/images/buildings-placeholder.png); */
|
|
182
|
+
background-repeat: no-repeat;
|
|
183
|
+
background-position: right bottom;
|
|
184
|
+
}
|
|
185
|
+
section {
|
|
186
|
+
padding-right: 0px;
|
|
187
|
+
padding-bottom: 0px;
|
|
188
|
+
}
|
|
189
|
+
.content {
|
|
190
|
+
gap: 44px;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@media (min-width: 1350px) {
|
|
195
|
+
.side-nav {
|
|
196
|
+
position: sticky;
|
|
197
|
+
top: 0;
|
|
198
|
+
display: flex;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
gap: 2rem;
|
|
201
|
+
}
|
|
202
|
+
.container {
|
|
203
|
+
display: grid;
|
|
204
|
+
grid-template-columns: minmax(760px, 1176px) minmax(310px, 584px);
|
|
205
|
+
}
|
|
206
|
+
.container .content > nav {
|
|
207
|
+
display: none;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@media (max-width: 1349px) {
|
|
212
|
+
.container > nav {
|
|
213
|
+
display: none;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.knowledge-base {
|
|
218
|
+
border: none;
|
|
219
|
+
height: 1700px;
|
|
220
|
+
margin: -2rem;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@media (max-width: 600px) {
|
|
224
|
+
.news-info {
|
|
225
|
+
display: none;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
`;
|
|
229
|
+
//# sourceMappingURL=launchpad-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launchpad-styles.js","sourceRoot":"","sources":["../../src/styles/launchpad-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkOnC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const IxLaunchpadStyles = css`\n .wrapper {\n margin-left: 0px;\n transition: margin-left 195ms cubic-bezier(0.4, 0, 0.6, 1) 0ms;\n display: flex;\n flex-direction: column;\n }\n header {\n min-height: 60px;\n background-color: rgba(245, 247, 255, 0.85);\n backdrop-filter: blur(6px);\n display: flex;\n flex-flow: column-reverse wrap;\n -webkit-box-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n gap: 20px;\n padding: 16px 24px 16px 7px;\n position: sticky;\n top: 0px;\n right: 0px;\n z-index: 1000;\n }\n header > div {\n margin-right: auto;\n display: flex;\n -webkit-box-pack: start;\n justify-content: start;\n -webkit-box-align: center;\n align-items: center;\n }\n header > div > h1 {\n display: block;\n margin-block-start: 0.67em;\n margin-block-end: 0.67em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n font-weight: bold;\n font-family: var(--text-page-title-font, sans-serif);\n font-size: var(--text-page-title-size, 2.125rem);\n letter-spacing: var(--text-page-title-letter-spacing, 0.01029412em);\n line-height: var(--text-page-title-line-height, 1.17647059em);\n font-weight: var(--text-page-title-weight, bold);\n text-decoration: var(--text-page-title-decoration, none);\n text-transform: var(--text-page-title-transform, none);\n }\n h2 {\n margin: 0px;\n font-family: var(--text-heading-font, sans-serif);\n font-size: 24px;\n letter-spacing: var(--text-heading-letter-spacing, 0.0075em);\n line-height: var(--text-heading-line-height, 1.2em);\n font-weight: normal;\n text-decoration: var(--text-heading-decoration, none);\n text-transform: var(--text-heading-transform, none);\n margin-bottom: 24px;\n }\n .content {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n nav {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n section {\n flex: 1 1 0%;\n padding-right: 0px;\n padding-left: 0px;\n padding-bottom: 64px;\n }\n .container {\n display: flex;\n flex-direction: column;\n padding-top: 0px;\n padding-left: 16px;\n padding-right: 16px;\n gap: 32px;\n }\n\n .resources {\n margin-bottom: 44px;\n cursor: pointer;\n }\n\n .resources ix-button {\n pointer-events: none;\n }\n\n .news-info .newsAndPromotions,\n .news-info .resources {\n display: flex;\n gap: 44px;\n flex-wrap: wrap;\n }\n\n .news-info a {\n text-decoration: none;\n color: inherit;\n }\n\n .news-item-description {\n margin: 10px 0 0;\n font-family: var(--root-primary-font);\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n line-height: 28px;\n letter-spacing: 0.44px;\n position: relative;\n color: white;\n }\n\n ix-info-card {\n width: 348px;\n }\n\n #videoPlayer.headline {\n justify-content: space-between;\n }\n\n video {\n max-width: 100%;\n height: calc(100vh - 10rem);\n }\n\n @media (min-width: 800px) and (max-width: 1349px) {\n nav {\n display: flex;\n align-items: flex-start;\n gap: 32px;\n }\n nav > * {\n width: 100%;\n display: flex;\n flex-direction: column;\n }\n }\n\n @media (min-width: 600px) {\n header {\n min-height: 100px;\n flex-direction: row;\n -webkit-box-align: center;\n align-items: center;\n gap: 21px;\n }\n .container {\n padding: 0px;\n }\n }\n @media (min-width: 900px) {\n .content {\n gap: 32px;\n }\n main {\n margin-left: 0px;\n margin-bottom: 0px;\n }\n header {\n padding-top: 12px;\n min-height: 92px;\n padding-bottom: 8px;\n }\n section {\n padding-right: 32px;\n padding-bottom: 48px;\n }\n }\n @media (min-width: 1200px) {\n header {\n min-height: 100px;\n padding-bottom: 16px;\n padding-top: 27px;\n }\n .container {\n /* background-image: url(/images/buildings-placeholder.png); */\n background-repeat: no-repeat;\n background-position: right bottom;\n }\n section {\n padding-right: 0px;\n padding-bottom: 0px;\n }\n .content {\n gap: 44px;\n }\n }\n\n @media (min-width: 1350px) {\n .side-nav {\n position: sticky;\n top: 0;\n display: flex;\n flex-direction: column;\n gap: 2rem;\n }\n .container {\n display: grid;\n grid-template-columns: minmax(760px, 1176px) minmax(310px, 584px);\n }\n .container .content > nav {\n display: none;\n }\n }\n\n @media (max-width: 1349px) {\n .container > nav {\n display: none;\n }\n }\n\n .knowledge-base {\n border: none;\n height: 1700px;\n margin: -2rem;\n }\n\n @media (max-width: 600px) {\n .news-info {\n display: none;\n }\n }\n`;\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent ix-widget following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Digital Realty",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.3.1-alpha.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@digital-realty/ix-accordion": "^1.1.10",
|
|
42
42
|
"@digital-realty/ix-button": "^3.4.1",
|
|
43
43
|
"@digital-realty/ix-dialog": "^1.2.1",
|
|
44
|
-
"@digital-realty/ix-grid": "^1.3.
|
|
44
|
+
"@digital-realty/ix-grid": "^1.3.2",
|
|
45
45
|
"@digital-realty/ix-icon": "^1.2.1",
|
|
46
46
|
"@digital-realty/ix-list": "^1.2.1",
|
|
47
47
|
"@lit/react": "^1.0.2",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"react": "^18.2.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
+
"@digital-realty/ix-app-logic": "1.2.2-alpha.12",
|
|
56
57
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
57
58
|
"@open-wc/eslint-config": "^9.2.1",
|
|
58
59
|
"@open-wc/testing": "^3.1.6",
|
|
@@ -129,6 +130,5 @@
|
|
|
129
130
|
"package.json",
|
|
130
131
|
"README.md",
|
|
131
132
|
"LICENSE"
|
|
132
|
-
]
|
|
133
|
-
"gitHead": "0a87dc6e3da94a1375ec43a7ead2bfdec4913821"
|
|
133
|
+
]
|
|
134
134
|
}
|