@digital-realty/ix-widget 2.1.32 → 2.1.34

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.
@@ -6,6 +6,7 @@ import './ix-news-feed.js';
6
6
  import './ix-table-data.js';
7
7
  import './ix-nav-item.js';
8
8
  import './ix-nav-list.js';
9
+ import '@digital-realty/ix-dialog/ix-dialog.js';
9
10
  export interface NavItem {
10
11
  icon: string;
11
12
  target: string;
@@ -27,6 +28,9 @@ export interface InfoCardItem {
27
28
  title: string;
28
29
  abstract: string;
29
30
  uid: string;
31
+ video?: {
32
+ url: string;
33
+ };
30
34
  }
31
35
  export interface TableDataItem {
32
36
  columns: string[];
@@ -46,11 +50,17 @@ export declare class IxLaunchpad extends LitElement {
46
50
  resources: InfoCardItem[];
47
51
  promotions: InfoCardItem[];
48
52
  kbImgBaseUrl: string;
53
+ kbVideoBaseUrl: string;
49
54
  kbLinkBaseUrl: string;
50
55
  kbNewsViewAllUrl: string;
51
56
  knowledgebase: string;
52
57
  updates: TableDataItem;
53
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;
54
64
  renderNavigation: () => import("lit-html").TemplateResult<1>;
55
65
  renderTicketUpdatesGrid: () => import("lit-html").TemplateResult<1>;
56
66
  renderActionsRequiredGrid: () => import("lit-html").TemplateResult<1>;
@@ -1,6 +1,6 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { html, LitElement, nothing } from 'lit';
3
- import { customElement, property } from 'lit/decorators.js';
3
+ import { customElement, property, state } from 'lit/decorators.js';
4
4
  import './ix-status-counter-group.js';
5
5
  import './ix-contacts.js';
6
6
  import './ix-info-card.js';
@@ -10,6 +10,7 @@ import './ix-nav-item.js';
10
10
  import './ix-nav-list.js';
11
11
  import { IxLaunchpadStyles } from './styles/launchpad-styles.js';
12
12
  import { testIdTransform } from './utils/testIdTransform.js';
13
+ import '@digital-realty/ix-dialog/ix-dialog.js';
13
14
  let IxLaunchpad = class IxLaunchpad extends LitElement {
14
15
  constructor() {
15
16
  super(...arguments);
@@ -21,6 +22,7 @@ let IxLaunchpad = class IxLaunchpad extends LitElement {
21
22
  this.resources = [];
22
23
  this.promotions = [];
23
24
  this.kbImgBaseUrl = '';
25
+ this.kbVideoBaseUrl = '';
24
26
  this.kbLinkBaseUrl = '';
25
27
  this.kbNewsViewAllUrl = '/knowledge-base/category/whats-new/';
26
28
  this.knowledgebase = '';
@@ -37,6 +39,20 @@ let IxLaunchpad = class IxLaunchpad extends LitElement {
37
39
  href: '',
38
40
  disabled: true,
39
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
+ };
40
56
  this.renderNavigation = () => html `
41
57
  ${this.nav.map((nav) => html ` <ix-nav-list
42
58
  .header="${nav.header}"
@@ -72,6 +88,23 @@ let IxLaunchpad = class IxLaunchpad extends LitElement {
72
88
  render() {
73
89
  var _a, _b, _c;
74
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}
75
108
  <main class="wrapper">
76
109
  <section>
77
110
  <div class="container">
@@ -111,18 +144,19 @@ let IxLaunchpad = class IxLaunchpad extends LitElement {
111
144
  <h2>Resources</h2>
112
145
  <div class="resources">
113
146
  ${this.resources.map(item => {
114
- var _a, _b, _c;
147
+ var _a, _b, _c, _d;
115
148
  return html ` <a
116
149
  href=${`${this.kbLinkBaseUrl}${item.uid}`}
117
150
  data-testid="lp-resourceItem"
151
+ @click=${this.handleResourceOpen((_a = item.video) === null || _a === void 0 ? void 0 : _a.url, item.title)}
118
152
  ><ix-info-card type="info-card-resources"
119
153
  ><img
120
154
  slot="image"
121
155
  name="image"
122
- alt=${((_a = item === null || item === void 0 ? void 0 : item.thumbnail) === null || _a === void 0 ? void 0 : _a.alternativeText) || ''}
156
+ alt=${((_b = item === null || item === void 0 ? void 0 : item.thumbnail) === null || _b === void 0 ? void 0 : _b.alternativeText) || ''}
123
157
  src="${`${this.kbImgBaseUrl}${encodeURIComponent(item.thumbnail.url)}&w=3840&q=75`}"
124
158
  />
125
- ${((_c = (_b = item.topics) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.name)
159
+ ${((_d = (_c = item.topics) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.name)
126
160
  ? html `<div slot="label">
127
161
  ${item.topics[0].name}
128
162
  </div>`
@@ -226,6 +260,9 @@ __decorate([
226
260
  __decorate([
227
261
  property({ type: String, attribute: 'kb-img-base-url' })
228
262
  ], IxLaunchpad.prototype, "kbImgBaseUrl", void 0);
263
+ __decorate([
264
+ property({ type: String, attribute: 'kb-video-base-url' })
265
+ ], IxLaunchpad.prototype, "kbVideoBaseUrl", void 0);
229
266
  __decorate([
230
267
  property({ type: String, attribute: 'kb-link-base-url' })
231
268
  ], IxLaunchpad.prototype, "kbLinkBaseUrl", void 0);
@@ -241,6 +278,15 @@ __decorate([
241
278
  __decorate([
242
279
  property({ type: Object })
243
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);
244
290
  IxLaunchpad = __decorate([
245
291
  customElement('ix-launchpad')
246
292
  ], IxLaunchpad);
@@ -1 +1 @@
1
- {"version":3,"file":"ix-launchpad.js","sourceRoot":"","sources":["../src/ix-launchpad.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,8BAA8B,CAAC;AACtC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAsCtD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;QAGuB,SAAI,GAAG,EAAE,CAAC;QAEX,WAAM,GAAG,EAAE,CAAC;QAEZ,QAAG,GAAG,EAAE,CAAC;QAET,SAAI,GAAmB,EAAE,CAAC;QAEzB,aAAQ,GAAQ,EAAE,CAAC;QAEpB,cAAS,GAAmB,EAAE,CAAC;QAE/B,eAAU,GAAmB,EAAE,CAAC;QAED,iBAAY,GAAG,EAAE,CAAC;QAEjB,kBAAa,GAAG,EAAE,CAAC;QAG9E,qBAAgB,GAAG,qCAAqC,CAAC;QAE7B,kBAAa,GAAG,EAAE,CAAC;QAEnB,YAAO,GAAkB;YACnD,OAAO,EAAE,EAA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AK,EAAE,CAAC;yCAA2B;AAEzB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAoB;AAEpB;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;8CAAgC;AAE/B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;+CAAiC;AAED;IAAzD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;iDAAmB;AAEjB;IAA1D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,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;AAvCS,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CAuNvB","sourcesContent":["import { html, LitElement, nothing } from 'lit';\nimport { customElement, property } 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';\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}\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-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 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 <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 ><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 &amp; 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"]}
1
+ {"version":3,"file":"ix-launchpad.js","sourceRoot":"","sources":["../src/ix-launchpad.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,8BAA8B,CAAC;AACtC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,kBAAkB,CAAC;AAC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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 &amp; 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"]}
@@ -119,6 +119,15 @@ export const IxLaunchpadStyles = css `
119
119
  width: 348px;
120
120
  }
121
121
 
122
+ #videoPlayer.headline {
123
+ justify-content: space-between;
124
+ }
125
+
126
+ video {
127
+ max-width: 100%;
128
+ height: calc(100vh - 10rem);
129
+ }
130
+
122
131
  @media (max-width: 1199px) {
123
132
  ix-table-data,
124
133
  ix-action-list,
@@ -1 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2NnC,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 @media (max-width: 1199px) {\n ix-table-data,\n ix-action-list,\n .news-info {\n display: none;\n }\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"]}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoOnC,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 (max-width: 1199px) {\n ix-table-data,\n ix-action-list,\n .news-info {\n display: none;\n }\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"]}
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.1.32",
6
+ "version": "2.1.34",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
@@ -39,7 +39,8 @@
39
39
  "dependencies": {
40
40
  "@adobe/lit-mobx": "^2.2.2",
41
41
  "@digital-realty/ix-button": "^3.3.7",
42
- "@digital-realty/ix-grid": "^1.1.28",
42
+ "@digital-realty/ix-dialog": "^1.1.7",
43
+ "@digital-realty/ix-grid": "^1.1.29",
43
44
  "@digital-realty/ix-icon": "^1.1.6",
44
45
  "@digital-realty/ix-list": "^1.1.6",
45
46
  "@lit/react": "^1.0.2",
@@ -128,5 +129,5 @@
128
129
  "README.md",
129
130
  "LICENSE"
130
131
  ],
131
- "gitHead": "9794306c345a834a782dcd169b3fe68a722f03e4"
132
+ "gitHead": "a46d41b9734fda6cc22bd4719f7f85ca18486938"
132
133
  }