@digital-realty/ix-widget 2.1.69 → 2.1.71

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/dist/IxWidget.js CHANGED
@@ -26,14 +26,8 @@ IxWidget.styles = css `
26
26
  --ix-widget-padding: 1rem;
27
27
  }
28
28
 
29
- @media (min-width: 1350px) {
30
- [type='status-counter'].card {
31
- --ix-widget-padding: 33px 20px 33px 24px;
32
- }
33
- }
34
-
35
29
  [type='status-counter-group'].card {
36
- --ix-widget-padding: 0;
30
+ --ix-widget-padding: 1rem;
37
31
  --ix-widget-background: transparent;
38
32
  }
39
33
 
@@ -41,16 +35,6 @@ IxWidget.styles = css `
41
35
  --ix-widget-padding: 0 11px 16px 24px;
42
36
  }
43
37
 
44
- @media (max-width: 1349px) {
45
- [type='status-counter-group'].card {
46
- --ix-widget-padding: 1rem;
47
- --ix-widget-background: white;
48
- box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,
49
- rgba(0, 0, 0, 0.14) 0px 1px 1px 0px,
50
- rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;
51
- }
52
- }
53
-
54
38
  [type='info-card'].card {
55
39
  display: block;
56
40
  max-width: 348px;
@@ -83,6 +67,16 @@ IxWidget.styles = css `
83
67
  padding-bottom: 11px;
84
68
  }
85
69
 
70
+ @media (min-width: 600px) {
71
+ [type='status-counter'].card {
72
+ --ix-widget-padding: 33px 20px 33px 24px;
73
+ }
74
+
75
+ [type='status-counter-group'].card {
76
+ padding: 0;
77
+ }
78
+ }
79
+
86
80
  @media (max-width: 600px) {
87
81
  [type='status-counter-group'].card {
88
82
  background: #c8dffa;
@@ -1 +1 @@
1
- {"version":3,"file":"IxWidget.js","sourceRoot":"","sources":["../src/IxWidget.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,UAAU;IAAxC;;QAsF8B,SAAI,GAAG,SAAS,CAAC;IAO/C,CAAC;IALoB,MAAM;QACvB,OAAO,IAAI,CAAA,0BAA0B,IAAI,CAAC,IAAI;;WAEvC,CAAC;IACV,CAAC;;AA3FM,eAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFlB,AAnFY,CAmFX;AAE0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sCAAkB","sourcesContent":["import { html, LitElement, css } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nexport class IxWidget extends LitElement {\n static styles = css`\n .card {\n border-radius: 0.75rem;\n background: var(--ix-widget-background, white);\n padding: var(--ix-widget-padding, 16px 24px 32px);\n border: var(--ix-widget-border, none);\n }\n\n [type='status-counter'].card {\n margin-bottom: 0;\n --ix-widget-padding: 0;\n --ix-widget-padding: 1rem;\n }\n\n @media (min-width: 1350px) {\n [type='status-counter'].card {\n --ix-widget-padding: 33px 20px 33px 24px;\n }\n }\n\n [type='status-counter-group'].card {\n --ix-widget-padding: 0;\n --ix-widget-background: transparent;\n }\n\n [type='action-list'].card {\n --ix-widget-padding: 0 11px 16px 24px;\n }\n\n @media (max-width: 1349px) {\n [type='status-counter-group'].card {\n --ix-widget-padding: 1rem;\n --ix-widget-background: white;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px,\n rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n }\n }\n\n [type='info-card'].card {\n display: block;\n max-width: 348px;\n border-radius: 0.5rem;\n border: 1px solid #e0e0e0;\n position: relative;\n overflow: auto;\n aspect-ratio: 1 / 1.47;\n }\n [type='info-card-resources'].card {\n display: block;\n max-width: 348px;\n border-radius: 0.5rem;\n border: 1px solid #e0e0e0;\n position: relative;\n overflow: hidden;\n aspect-ratio: 1 / 0.85;\n }\n [type='action-list'].card {\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n }\n [type='news-feed'].card {\n display: flex;\n flex-direction: column;\n background: rgb(255, 255, 255);\n box-shadow: rgba(0, 0, 0, 0.12) 0px 12px 20px -12px,\n rgb(225, 228, 232) 0px 0px 0px 1px inset;\n border-radius: 12px;\n padding-bottom: 11px;\n }\n\n @media (max-width: 600px) {\n [type='status-counter-group'].card {\n background: #c8dffa;\n padding-left: 0;\n padding-right: 0;\n }\n [type='status-counter'].card {\n --ix-widget-padding: 0;\n background: transparent;\n border-radius: 0;\n }\n }\n `;\n\n @property({ type: String }) type = 'default';\n\n protected override render() {\n return html`<div class=\"card\" type=${this.type}>\n <slot></slot>\n </div>`;\n }\n}\n"]}
1
+ {"version":3,"file":"IxWidget.js","sourceRoot":"","sources":["../src/IxWidget.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,UAAU;IAAxC;;QAgF8B,SAAI,GAAG,SAAS,CAAC;IAO/C,CAAC;IALoB,MAAM;QACvB,OAAO,IAAI,CAAA,0BAA0B,IAAI,CAAC,IAAI;;WAEvC,CAAC;IACV,CAAC;;AArFM,eAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6ElB,AA7EY,CA6EX;AAE0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sCAAkB","sourcesContent":["import { html, LitElement, css } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nexport class IxWidget extends LitElement {\n static styles = css`\n .card {\n border-radius: 0.75rem;\n background: var(--ix-widget-background, white);\n padding: var(--ix-widget-padding, 16px 24px 32px);\n border: var(--ix-widget-border, none);\n }\n\n [type='status-counter'].card {\n margin-bottom: 0;\n --ix-widget-padding: 0;\n --ix-widget-padding: 1rem;\n }\n\n [type='status-counter-group'].card {\n --ix-widget-padding: 1rem;\n --ix-widget-background: transparent;\n }\n\n [type='action-list'].card {\n --ix-widget-padding: 0 11px 16px 24px;\n }\n\n [type='info-card'].card {\n display: block;\n max-width: 348px;\n border-radius: 0.5rem;\n border: 1px solid #e0e0e0;\n position: relative;\n overflow: auto;\n aspect-ratio: 1 / 1.47;\n }\n [type='info-card-resources'].card {\n display: block;\n max-width: 348px;\n border-radius: 0.5rem;\n border: 1px solid #e0e0e0;\n position: relative;\n overflow: hidden;\n aspect-ratio: 1 / 0.85;\n }\n [type='action-list'].card {\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n }\n [type='news-feed'].card {\n display: flex;\n flex-direction: column;\n background: rgb(255, 255, 255);\n box-shadow: rgba(0, 0, 0, 0.12) 0px 12px 20px -12px,\n rgb(225, 228, 232) 0px 0px 0px 1px inset;\n border-radius: 12px;\n padding-bottom: 11px;\n }\n\n @media (min-width: 600px) {\n [type='status-counter'].card {\n --ix-widget-padding: 33px 20px 33px 24px;\n }\n\n [type='status-counter-group'].card {\n padding: 0;\n }\n }\n\n @media (max-width: 600px) {\n [type='status-counter-group'].card {\n background: #c8dffa;\n padding-left: 0;\n padding-right: 0;\n }\n [type='status-counter'].card {\n --ix-widget-padding: 0;\n background: transparent;\n border-radius: 0;\n }\n }\n `;\n\n @property({ type: String }) type = 'default';\n\n protected override render() {\n return html`<div class=\"card\" type=${this.type}>\n <slot></slot>\n </div>`;\n }\n}\n"]}
@@ -247,7 +247,7 @@ IxNewsFeed.styles = css `
247
247
  display: block;
248
248
  }
249
249
 
250
- @media only screen and (max-width: 600px) {
250
+ @media only screen and (max-width: 1200px) {
251
251
  ix-accordion {
252
252
  display: block;
253
253
  --md-icon-button-icon-color: var(--clr-on-surface-primary);
@@ -1 +1 @@
1
- {"version":3,"file":"ix-news-feed.js","sourceRoot":"","sources":["../src/ix-news-feed.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,oCAAoC,CAAC;AAC5C,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGtC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAAnC;;QAgNuB,WAAM,GAAG,OAAO,CAAC;QAElB,SAAI,GAAU,EAAE,CAAC;QAEhB,SAAI,GAAG,GAAG,CAAC;QAE9B,SAAI,GAAG,KAAK,CAAC;IA+DxB,CAAC;IA7DC,aAAa;;QACX,OAAO,IAAI,CAAA,GAAG,MAAA,IAAI,CAAC,IAAI,0CAAE,GAAG,CAAC,CAAC,IAAS,EAAE,EAAU,EAAE,EAAE;YACrD,MAAM,EACJ,KAAK,GAAG,MAAM,EACd,QAAQ,GAAG,KAAK,EAChB,GAAG,GAAG,GAAG,EACT,SAAS,GAAG,EAAE,GACf,GAAG,IAAI,CAAC;YACT,MAAM,UAAU,GAAG,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE,EA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it';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport '@digital-realty/ix-icon/ix-icon.js';\nimport './IxWidget.js';\n\nimport { formatDistance } from 'date-fns/formatDistance.js';\nimport { parseISO } from 'date-fns/parseISO.js';\nimport { startOfToday } from 'date-fns/startOfToday.js';\nimport { ticket } from './assets/iconset.js';\n\n@customElement('ix-news-feed')\nexport class IxNewsFeed extends LitElement {\n static styles = css`\n :host {\n --ix-widget-padding: 0;\n }\n .header {\n display: flex;\n -webkit-box-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n align-items: center;\n padding: 16px 11px 16px 24px;\n }\n h6 {\n margin: 0px;\n font-family: var(--text-heading-font, sans-serif);\n font-size: var(--text-heading-size, 1.25rem);\n letter-spacing: var(--text-heading-letter-spacing, 0.0075em);\n line-height: var(--text-heading-line-height, 1.2em);\n font-weight: var(--text-heading-weight, bold);\n }\n li {\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n outline: 0px;\n border: 0px;\n margin: 0px;\n border-radius: 0px;\n cursor: pointer;\n user-select: none;\n vertical-align: middle;\n appearance: none;\n color: inherit;\n display: flex;\n -webkit-box-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n align-items: center;\n position: relative;\n text-decoration: none;\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n padding: 0px;\n }\n li:hover {\n text-decoration: none;\n background-color: rgba(0, 0, 0, 0.04);\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n outline: 0px;\n border: 0px;\n margin: 0px;\n border-radius: 0px;\n cursor: pointer;\n user-select: none;\n vertical-align: middle;\n appearance: none;\n color: inherit;\n display: flex;\n -webkit-box-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n align-items: center;\n position: relative;\n text-decoration: none;\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n padding: 0px;\n text-decoration: none;\n background-color: rgba(0, 0, 0, 0.04);\n }\n a {\n display: grid;\n grid-template-columns: auto 1fr auto;\n padding: 12px 24px 12px 20px;\n -webkit-box-align: center;\n\n -webkit-box-pack: center;\n justify-content: center;\n position: relative;\n box-sizing: border-box;\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n outline: 0px;\n border: 0px;\n margin: 0px;\n border-radius: 0px;\n cursor: pointer;\n user-select: none;\n appearance: none;\n text-decoration: none;\n color: inherit;\n -webkit-box-flex: 1;\n flex-grow: 1;\n align-items: center;\n gap: 20px;\n text-align: start;\n }\n\n .icon {\n flex-shrink: 0;\n display: inline-flex;\n -webkit-box-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n min-width: 48px;\n width: 48px;\n height: 48px;\n font-size: 20px;\n border-radius: 8px;\n color: var(--clr-on-primary, #fff);\n background-color: var(--clr-primary, #1456e0);\n }\n svg {\n user-select: none;\n width: 1em;\n height: 1em;\n display: inline-block;\n fill: currentcolor;\n flex-shrink: 0;\n transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n font-size: 1.5rem;\n }\n .details {\n gap: 0;\n min-width: 0px;\n display: flex;\n flex-direction: column;\n }\n .title {\n margin: 0;\n }\n .description {\n overflow-wrap: break-word;\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis;\n margin: 0;\n font-size: var(--text-small-size, 0.875rem);\n letter-spacing: var(--text-small-letter-spacing, 0.0275em);\n line-height: var(--text-small-line-height, 1.42857143em);\n font-weight: var(--text-small-weight, normal);\n font-family: var(--root-primary-font, sans-serif);\n text-decoration: var(--text-small-decoration, none);\n text-transform: var(--text-small-transform, none);\n }\n .caption {\n margin: 0px;\n font-family: var(--text-caption-font, sans-serif);\n font-size: var(--text-caption-size, 0.75rem);\n letter-spacing: var(--text-caption-letter-spacing, 0.03333333em);\n line-height: var(--text-caption-line-height, 1.33333333em);\n font-weight: var(--text-caption-weight, normal);\n text-transform: var(--text-caption-transform, none);\n text-decoration: var(--text-caption-decoration, none);\n color: rgba(9, 34, 65, 0.7);\n }\n .ripple {\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n z-index: 0;\n inset: 0px;\n border-radius: inherit;\n }\n ix-accordion {\n display: none;\n }\n ix-widget {\n display: block;\n }\n\n @media only screen and (max-width: 600px) {\n ix-accordion {\n display: block;\n --md-icon-button-icon-color: var(--clr-on-surface-primary);\n --md-icon-button-hover-icon-color: var(--clr-on-surface-primary);\n --md-icon-button-focus-icon-color: var(--clr-on-surface-primary);\n --md-icon-button-icon-size: 2rem;\n --ix-accordion-padding: 8px 12px 8px 20px;\n --ix-accordion-border-radius: 0.75rem;\n }\n ix-widget,\n a > .caption {\n display: none;\n }\n .description {\n margin-bottom: 0.5rem;\n }\n ix-button {\n display: inline-block;\n }\n .footer {\n margin-top: 1rem;\n padding-top: 1rem;\n border-top: 1px solid var(--cp-neutral-blue-12p, #0922411f);\n }\n a {\n padding: 1rem 0.5rem 0 0;\n }\n }\n `;\n\n @property({ type: String }) header = 'title';\n\n @property({ type: Array }) data: any[] = [];\n\n @property({ type: String }) href = '#';\n\n @state() open = false;\n\n renderStories() {\n return html`${this.data?.map((item: any, id: number) => {\n const {\n title = 'date',\n abstract = '...',\n uid = '#',\n dateAdded = '',\n } = item;\n const dateOffset = formatDistance(parseISO(dateAdded), startOfToday(), {\n addSuffix: true,\n });\n return html`<li>\n <a href=${uid} tabindex=${id}>\n <div class=\"icon\">${ticket}</div>\n <div class=\"details\">\n <p class=\"title\">${title}</p>\n <p class=\"description\">${abstract}</p>\n <span class=\"caption\">${dateOffset}</span>\n </div>\n <span class=\"caption\">${dateOffset}</span>\n <span class=\"ripple\"></span>\n </a>\n <span class=\"ripple\"></span>\n </li>`;\n })}`;\n }\n\n renderViewAll() {\n return html` <ix-button\n slot=\"cta\"\n type=\"button\"\n has-icon\n trailing-icon\n appearance=\"text\"\n href=${this.href}\n >\n <ix-icon slot=\"icon\">chevron_right</ix-icon>\n View All\n </ix-button>`;\n }\n\n protected override render() {\n return html` <ix-accordion\n ?isOpen=${this.open}\n .accordionId=${'f.label'}\n chevronRight\n iconOpen=\"keyboard_arrow_down\"\n iconClose=\"keyboard_arrow_up\"\n >\n <h6 slot=\"title\">${this.header}</h6>\n ${this.renderStories()}\n <div class=\"footer\">${this.renderViewAll()}</div>\n </ix-accordion>\n <ix-widget type=\"news-feed\">\n <div class=\"header\">\n <h6>${this.header}</h6>\n ${this.renderViewAll()}\n </div>\n ${this.renderStories()}\n </ix-widget>`;\n }\n}\n"]}
1
+ {"version":3,"file":"ix-news-feed.js","sourceRoot":"","sources":["../src/ix-news-feed.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,oCAAoC,CAAC;AAC5C,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGtC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAAnC;;QAgNuB,WAAM,GAAG,OAAO,CAAC;QAElB,SAAI,GAAU,EAAE,CAAC;QAEhB,SAAI,GAAG,GAAG,CAAC;QAE9B,SAAI,GAAG,KAAK,CAAC;IA+DxB,CAAC;IA7DC,aAAa;;QACX,OAAO,IAAI,CAAA,GAAG,MAAA,IAAI,CAAC,IAAI,0CAAE,GAAG,CAAC,CAAC,IAAS,EAAE,EAAU,EAAE,EAAE;YACrD,MAAM,EACJ,KAAK,GAAG,MAAM,EACd,QAAQ,GAAG,KAAK,EAChB,GAAG,GAAG,GAAG,EAC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AAE9B;IAAR,KAAK,EAAE;wCAAc;AAtNX,UAAU;IADtB,aAAa,CAAC,cAAc,CAAC;GACjB,UAAU,CAqRtB","sourcesContent":["import { html, LitElement, css } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport '@digital-realty/ix-icon/ix-icon.js';\nimport './IxWidget.js';\n\nimport { formatDistance } from 'date-fns/formatDistance.js';\nimport { parseISO } from 'date-fns/parseISO.js';\nimport { startOfToday } from 'date-fns/startOfToday.js';\nimport { ticket } from './assets/iconset.js';\n\n@customElement('ix-news-feed')\nexport class IxNewsFeed extends LitElement {\n static styles = css`\n :host {\n --ix-widget-padding: 0;\n }\n .header {\n display: flex;\n -webkit-box-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n align-items: center;\n padding: 16px 11px 16px 24px;\n }\n h6 {\n margin: 0px;\n font-family: var(--text-heading-font, sans-serif);\n font-size: var(--text-heading-size, 1.25rem);\n letter-spacing: var(--text-heading-letter-spacing, 0.0075em);\n line-height: var(--text-heading-line-height, 1.2em);\n font-weight: var(--text-heading-weight, bold);\n }\n li {\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n outline: 0px;\n border: 0px;\n margin: 0px;\n border-radius: 0px;\n cursor: pointer;\n user-select: none;\n vertical-align: middle;\n appearance: none;\n color: inherit;\n display: flex;\n -webkit-box-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n align-items: center;\n position: relative;\n text-decoration: none;\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n padding: 0px;\n }\n li:hover {\n text-decoration: none;\n background-color: rgba(0, 0, 0, 0.04);\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n outline: 0px;\n border: 0px;\n margin: 0px;\n border-radius: 0px;\n cursor: pointer;\n user-select: none;\n vertical-align: middle;\n appearance: none;\n color: inherit;\n display: flex;\n -webkit-box-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n align-items: center;\n position: relative;\n text-decoration: none;\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n padding: 0px;\n text-decoration: none;\n background-color: rgba(0, 0, 0, 0.04);\n }\n a {\n display: grid;\n grid-template-columns: auto 1fr auto;\n padding: 12px 24px 12px 20px;\n -webkit-box-align: center;\n\n -webkit-box-pack: center;\n justify-content: center;\n position: relative;\n box-sizing: border-box;\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n outline: 0px;\n border: 0px;\n margin: 0px;\n border-radius: 0px;\n cursor: pointer;\n user-select: none;\n appearance: none;\n text-decoration: none;\n color: inherit;\n -webkit-box-flex: 1;\n flex-grow: 1;\n align-items: center;\n gap: 20px;\n text-align: start;\n }\n\n .icon {\n flex-shrink: 0;\n display: inline-flex;\n -webkit-box-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n min-width: 48px;\n width: 48px;\n height: 48px;\n font-size: 20px;\n border-radius: 8px;\n color: var(--clr-on-primary, #fff);\n background-color: var(--clr-primary, #1456e0);\n }\n svg {\n user-select: none;\n width: 1em;\n height: 1em;\n display: inline-block;\n fill: currentcolor;\n flex-shrink: 0;\n transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n font-size: 1.5rem;\n }\n .details {\n gap: 0;\n min-width: 0px;\n display: flex;\n flex-direction: column;\n }\n .title {\n margin: 0;\n }\n .description {\n overflow-wrap: break-word;\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis;\n margin: 0;\n font-size: var(--text-small-size, 0.875rem);\n letter-spacing: var(--text-small-letter-spacing, 0.0275em);\n line-height: var(--text-small-line-height, 1.42857143em);\n font-weight: var(--text-small-weight, normal);\n font-family: var(--root-primary-font, sans-serif);\n text-decoration: var(--text-small-decoration, none);\n text-transform: var(--text-small-transform, none);\n }\n .caption {\n margin: 0px;\n font-family: var(--text-caption-font, sans-serif);\n font-size: var(--text-caption-size, 0.75rem);\n letter-spacing: var(--text-caption-letter-spacing, 0.03333333em);\n line-height: var(--text-caption-line-height, 1.33333333em);\n font-weight: var(--text-caption-weight, normal);\n text-transform: var(--text-caption-transform, none);\n text-decoration: var(--text-caption-decoration, none);\n color: rgba(9, 34, 65, 0.7);\n }\n .ripple {\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n z-index: 0;\n inset: 0px;\n border-radius: inherit;\n }\n ix-accordion {\n display: none;\n }\n ix-widget {\n display: block;\n }\n\n @media only screen and (max-width: 1200px) {\n ix-accordion {\n display: block;\n --md-icon-button-icon-color: var(--clr-on-surface-primary);\n --md-icon-button-hover-icon-color: var(--clr-on-surface-primary);\n --md-icon-button-focus-icon-color: var(--clr-on-surface-primary);\n --md-icon-button-icon-size: 2rem;\n --ix-accordion-padding: 8px 12px 8px 20px;\n --ix-accordion-border-radius: 0.75rem;\n }\n ix-widget,\n a > .caption {\n display: none;\n }\n .description {\n margin-bottom: 0.5rem;\n }\n ix-button {\n display: inline-block;\n }\n .footer {\n margin-top: 1rem;\n padding-top: 1rem;\n border-top: 1px solid var(--cp-neutral-blue-12p, #0922411f);\n }\n a {\n padding: 1rem 0.5rem 0 0;\n }\n }\n `;\n\n @property({ type: String }) header = 'title';\n\n @property({ type: Array }) data: any[] = [];\n\n @property({ type: String }) href = '#';\n\n @state() open = false;\n\n renderStories() {\n return html`${this.data?.map((item: any, id: number) => {\n const {\n title = 'date',\n abstract = '...',\n uid = '#',\n dateAdded = '',\n } = item;\n const dateOffset = formatDistance(parseISO(dateAdded), startOfToday(), {\n addSuffix: true,\n });\n return html`<li>\n <a href=${uid} tabindex=${id}>\n <div class=\"icon\">${ticket}</div>\n <div class=\"details\">\n <p class=\"title\">${title}</p>\n <p class=\"description\">${abstract}</p>\n <span class=\"caption\">${dateOffset}</span>\n </div>\n <span class=\"caption\">${dateOffset}</span>\n <span class=\"ripple\"></span>\n </a>\n <span class=\"ripple\"></span>\n </li>`;\n })}`;\n }\n\n renderViewAll() {\n return html` <ix-button\n slot=\"cta\"\n type=\"button\"\n has-icon\n trailing-icon\n appearance=\"text\"\n href=${this.href}\n >\n <ix-icon slot=\"icon\">chevron_right</ix-icon>\n View All\n </ix-button>`;\n }\n\n protected override render() {\n return html` <ix-accordion\n ?isOpen=${this.open}\n .accordionId=${'f.label'}\n chevronRight\n iconOpen=\"keyboard_arrow_down\"\n iconClose=\"keyboard_arrow_up\"\n >\n <h6 slot=\"title\">${this.header}</h6>\n ${this.renderStories()}\n <div class=\"footer\">${this.renderViewAll()}</div>\n </ix-accordion>\n <ix-widget type=\"news-feed\">\n <div class=\"header\">\n <h6>${this.header}</h6>\n ${this.renderViewAll()}\n </div>\n ${this.renderStories()}\n </ix-widget>`;\n }\n}\n"]}
@@ -19,7 +19,8 @@ let IxStatusCounterGroup = class IxStatusCounterGroup extends LitElement {
19
19
  }
20
20
  render() {
21
21
  var _a;
22
- if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.length)) {
22
+ const dataLength = (_a = this.data) === null || _a === void 0 ? void 0 : _a.length;
23
+ if (!dataLength) {
23
24
  return html ``;
24
25
  }
25
26
  return html `<ix-widget type="status-counter-group">
@@ -28,7 +29,7 @@ let IxStatusCounterGroup = class IxStatusCounterGroup extends LitElement {
28
29
  ${this.data.map((item, index) => {
29
30
  const { value, header, icon, target } = item;
30
31
  return html `<ix-status-counter
31
- class="b${index + 1}"
32
+ class="block b${index + 1} l${dataLength} l5"
32
33
  .value=${value}
33
34
  .header=${header}
34
35
  .icon=${iconMap[icon]}
@@ -45,123 +46,35 @@ let IxStatusCounterGroup = class IxStatusCounterGroup extends LitElement {
45
46
  IxStatusCounterGroup.styles = css `
46
47
  .layout {
47
48
  display: grid;
48
- grid-template-columns: repeat(2, minmax(0, 1fr));
49
+ grid-template-columns: repeat(6, minmax(0, 1fr));
49
50
  }
50
- @media (min-width: 1350px) {
51
+ .block {
52
+ grid-column: span 3 / span 3;
53
+ }
54
+ @media (min-width: 600px) {
51
55
  .layout {
52
- grid-gap: 44px 32px;
53
- }
54
- .layout .b1 {
55
- grid-column-start: 1;
56
- grid-column-end: 2;
57
- }
58
- .layout .b2 {
59
- grid-column-start: 2;
60
- grid-column-end: 4;
56
+ grid-gap: 16px 32px;
61
57
  }
62
- .layout .b3 {
63
- grid-column-start: 1;
64
- grid-column-end: 2;
65
- }
66
- .layout .b4 {
67
- grid-column-start: 2;
68
- grid-column-end: 4;
58
+
59
+ .b5 {
60
+ grid-column: span 6 / span 6;
69
61
  }
70
62
 
71
63
  ix-status-counter {
72
64
  --ix-widget-padding: 1rem;
73
65
  }
74
-
75
- .layout.x5 {
76
- grid-gap: 44px 32px;
77
- }
78
- .layout.x5 .b1 {
79
- grid-column-start: 1;
80
- grid-column-end: 2;
81
- }
82
- .layout.x5 .b2 {
83
- grid-column-start: 2;
84
- grid-column-end: 4;
85
- }
86
- .layout.x5 .b3 {
87
- grid-column-start: 4;
88
- grid-column-end: 6;
89
- }
90
- .layout.x5 .b4 {
91
- grid-column-start: 1;
92
- grid-column-end: 3;
93
- }
94
- .layout.x5 .b5 {
95
- grid-column-start: 3;
96
- grid-column-end: 6;
97
- }
98
66
  }
99
-
100
- @media (max-width: 1349px) {
101
- .layout {
102
- grid-gap: 0 24px;
103
- grid-template-columns: repeat(2, minmax(0, 1fr));
104
- background: linear-gradient(
105
- 90deg,
106
- rgba(0, 0, 0, 0) calc(50% - 1px),
107
- rgba(9, 34, 65, 0.12) calc(50%),
108
- rgba(0, 0, 0, 0) calc(50% + 1px)
109
- );
110
- }
111
- .layout .b1 {
112
- grid-column-start: 1;
113
- grid-column-end: 2;
114
- grid-row-start: 1;
115
- }
116
- .layout .b2 {
117
- grid-column-start: 1;
118
- grid-column-end: 2;
119
- grid-row-start: 2;
120
- }
121
- .layout .b3 {
122
- grid-column-start: 2;
123
- grid-column-end: 3;
124
- grid-row-start: 1;
125
- }
126
- .layout .b4 {
127
- grid-column-start: 2;
128
- grid-column-end: 3;
129
- grid-row-start: 2;
67
+ @media (min-width: 1024px) {
68
+ .block {
69
+ grid-column: span 2 / span 2;
130
70
  }
131
71
 
132
- .layout.x5 {
133
- grid-gap: 0 24px;
134
- background: linear-gradient(
135
- 90deg,
136
- rgba(0, 0, 0, 0) calc(50% - 1px),
137
- rgba(9, 34, 65, 0.12) calc(50%),
138
- rgba(0, 0, 0, 0) calc(50% + 1px)
139
- );
72
+ .b4.l5 {
73
+ grid-column: span 3 / span 3;
140
74
  }
141
- .layout.x5 .b1 {
142
- grid-column-start: 1;
143
- grid-column-end: 2;
144
- grid-row-start: 1;
145
- }
146
- .layout.x5 .b2 {
147
- grid-column-start: 1;
148
- grid-column-end: 2;
149
- grid-row-start: 2;
150
- }
151
- .layout.x5 .b3 {
152
- grid-column-start: 1;
153
- grid-column-end: 2;
154
- grid-row-start: 3;
155
- }
156
- .layout.x5 .b4 {
157
- grid-column-start: 2;
158
- grid-column-end: 3;
159
- grid-row-start: 1;
160
- }
161
- .layout.x5 .b5 {
162
- grid-column-start: 2;
163
- grid-column-end: 3;
164
- grid-row-start: 2;
75
+
76
+ .b5.l5 {
77
+ grid-column: span 3 / span 3;
165
78
  }
166
79
  }
167
80
  @media (max-width: 600px) {
@@ -1 +1 @@
1
- {"version":3,"file":"ix-status-counter-group.js","sourceRoot":"","sources":["../src/ix-status-counter-group.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,eAAe,CAAC;AACvB,OAAO,wBAAwB,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,MAAM,OAAO,GAAG;IACd,MAAM;IACN,KAAK;IACL,OAAO;IACP,IAAI;IACJ,SAAS;CACV,CAAC;AAGK,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,UAAU;IAA7C;;QA8IsB,SAAI,GAAG,EAAE,CAAC;IAyBvC,CAAC;IAvBoB,MAAM;;QACvB,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,MAAM,CAAA,EAAE,CAAC;YACvB,OAAO,IAAI,CAAA,EAAE,CAAC;QAChB,CAAC;QACD,OAAO,IAAI,CAAA;;;YAGH,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAC9B,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YAC7C,OAAO,IAAI,CAAA;wBACC,KAAK,GAAG,CAAC;uBACV,KAAK;wBACJ,MAAM;sBACR,OAAO,CAAC,IAAI,CAAC;wBACX,MAAM;gCACE,eAAe,CAAC,MAAM,CAAC;;iCAEtB,CAAC;QACxB,CAAC,CAAC;;;iBAGK,CAAC;IAChB,CAAC;;AArKM,2BAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2IlB,AA3IY,CA2IX;AAEyB;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;kDAAW;AA9I1B,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAuKhC","sourcesContent":["import { html, LitElement, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport './IxWidget.js';\nimport './ix-status-counter.js';\nimport { laptop, users, mySites, dcim, locations } from './assets/iconset.js';\nimport { testIdTransform } from './utils/testIdTransform.js';\n\nconst iconMap = {\n laptop,\n users,\n mySites,\n dcim,\n locations,\n};\n\n@customElement('ix-status-counter-group')\nexport class IxStatusCounterGroup extends LitElement {\n static styles = css`\n .layout {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n @media (min-width: 1350px) {\n .layout {\n grid-gap: 44px 32px;\n }\n .layout .b1 {\n grid-column-start: 1;\n grid-column-end: 2;\n }\n .layout .b2 {\n grid-column-start: 2;\n grid-column-end: 4;\n }\n .layout .b3 {\n grid-column-start: 1;\n grid-column-end: 2;\n }\n .layout .b4 {\n grid-column-start: 2;\n grid-column-end: 4;\n }\n\n ix-status-counter {\n --ix-widget-padding: 1rem;\n }\n\n .layout.x5 {\n grid-gap: 44px 32px;\n }\n .layout.x5 .b1 {\n grid-column-start: 1;\n grid-column-end: 2;\n }\n .layout.x5 .b2 {\n grid-column-start: 2;\n grid-column-end: 4;\n }\n .layout.x5 .b3 {\n grid-column-start: 4;\n grid-column-end: 6;\n }\n .layout.x5 .b4 {\n grid-column-start: 1;\n grid-column-end: 3;\n }\n .layout.x5 .b5 {\n grid-column-start: 3;\n grid-column-end: 6;\n }\n }\n\n @media (max-width: 1349px) {\n .layout {\n grid-gap: 0 24px;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n background: linear-gradient(\n 90deg,\n rgba(0, 0, 0, 0) calc(50% - 1px),\n rgba(9, 34, 65, 0.12) calc(50%),\n rgba(0, 0, 0, 0) calc(50% + 1px)\n );\n }\n .layout .b1 {\n grid-column-start: 1;\n grid-column-end: 2;\n grid-row-start: 1;\n }\n .layout .b2 {\n grid-column-start: 1;\n grid-column-end: 2;\n grid-row-start: 2;\n }\n .layout .b3 {\n grid-column-start: 2;\n grid-column-end: 3;\n grid-row-start: 1;\n }\n .layout .b4 {\n grid-column-start: 2;\n grid-column-end: 3;\n grid-row-start: 2;\n }\n\n .layout.x5 {\n grid-gap: 0 24px;\n background: linear-gradient(\n 90deg,\n rgba(0, 0, 0, 0) calc(50% - 1px),\n rgba(9, 34, 65, 0.12) calc(50%),\n rgba(0, 0, 0, 0) calc(50% + 1px)\n );\n }\n .layout.x5 .b1 {\n grid-column-start: 1;\n grid-column-end: 2;\n grid-row-start: 1;\n }\n .layout.x5 .b2 {\n grid-column-start: 1;\n grid-column-end: 2;\n grid-row-start: 2;\n }\n .layout.x5 .b3 {\n grid-column-start: 1;\n grid-column-end: 2;\n grid-row-start: 3;\n }\n .layout.x5 .b4 {\n grid-column-start: 2;\n grid-column-end: 3;\n grid-row-start: 1;\n }\n .layout.x5 .b5 {\n grid-column-start: 2;\n grid-column-end: 3;\n grid-row-start: 2;\n }\n }\n @media (max-width: 600px) {\n .layout {\n display: block;\n background: none;\n }\n ix-status-counter {\n display: block;\n border-bottom: 1px solid #b1c6f5;\n }\n ix-status-counter:first-child {\n margin-top: -0.5rem;\n }\n ix-status-counter:last-child {\n border-bottom: none;\n margin-bottom: -0.5rem;\n }\n }\n `;\n\n @property({ type: Array }) data = [];\n\n protected override render() {\n if (!this.data?.length) {\n return html``;\n }\n return html`<ix-widget type=\"status-counter-group\">\n <div class=\"content\">\n <div class=\"layout\">\n ${this.data.map((item, index) => {\n const { value, header, icon, target } = item;\n return html`<ix-status-counter\n class=\"b${index + 1}\"\n .value=${value}\n .header=${header}\n .icon=${iconMap[icon]}\n .target=${target}\n data-testid=\"lp-${testIdTransform(header)}\"\n >\n </ix-status-counter>`;\n })}\n </div>\n </div>\n </ix-widget>`;\n }\n}\n"]}
1
+ {"version":3,"file":"ix-status-counter-group.js","sourceRoot":"","sources":["../src/ix-status-counter-group.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,eAAe,CAAC;AACvB,OAAO,wBAAwB,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,MAAM,OAAO,GAAG;IACd,MAAM;IACN,KAAK;IACL,OAAO;IACP,IAAI;IACJ,SAAS;CACV,CAAC;AAGK,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,UAAU;IAA7C;;QAsDsB,SAAI,GAAG,EAAE,CAAC;IA2BvC,CAAC;IAzBoB,MAAM;;QACvB,MAAM,UAAU,GAAG,MAAA,IAAI,CAAC,IAAI,0CAAE,MAAM,CAAC;QAErC,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,IAAI,CAAA,EAAE,CAAC;QAChB,CAAC;QACD,OAAO,IAAI,CAAA;;;YAGH,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAC9B,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YAC7C,OAAO,IAAI,CAAA;8BACO,KAAK,GAAG,CAAC,MAAM,UAAU;uBAChC,KAAK;wBACJ,MAAM;sBACR,OAAO,CAAC,IAAI,CAAC;wBACX,MAAM;gCACE,eAAe,CAAC,MAAM,CAAC;;iCAEtB,CAAC;QACxB,CAAC,CAAC;;;iBAGK,CAAC;IAChB,CAAC;;AA/EM,2BAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDlB,AAnDY,CAmDX;AAEyB;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;kDAAW;AAtD1B,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAiFhC","sourcesContent":["import { html, LitElement, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport './IxWidget.js';\nimport './ix-status-counter.js';\nimport { laptop, users, mySites, dcim, locations } from './assets/iconset.js';\nimport { testIdTransform } from './utils/testIdTransform.js';\n\nconst iconMap = {\n laptop,\n users,\n mySites,\n dcim,\n locations,\n};\n\n@customElement('ix-status-counter-group')\nexport class IxStatusCounterGroup extends LitElement {\n static styles = css`\n .layout {\n display: grid;\n grid-template-columns: repeat(6, minmax(0, 1fr));\n }\n .block {\n grid-column: span 3 / span 3;\n }\n @media (min-width: 600px) {\n .layout {\n grid-gap: 16px 32px;\n }\n\n .b5 {\n grid-column: span 6 / span 6;\n }\n\n ix-status-counter {\n --ix-widget-padding: 1rem;\n }\n }\n @media (min-width: 1024px) {\n .block {\n grid-column: span 2 / span 2;\n }\n\n .b4.l5 {\n grid-column: span 3 / span 3;\n }\n\n .b5.l5 {\n grid-column: span 3 / span 3;\n }\n }\n @media (max-width: 600px) {\n .layout {\n display: block;\n background: none;\n }\n ix-status-counter {\n display: block;\n border-bottom: 1px solid #b1c6f5;\n }\n ix-status-counter:first-child {\n margin-top: -0.5rem;\n }\n ix-status-counter:last-child {\n border-bottom: none;\n margin-bottom: -0.5rem;\n }\n }\n `;\n\n @property({ type: Array }) data = [];\n\n protected override render() {\n const dataLength = this.data?.length;\n\n if (!dataLength) {\n return html``;\n }\n return html`<ix-widget type=\"status-counter-group\">\n <div class=\"content\">\n <div class=\"layout\">\n ${this.data.map((item, index) => {\n const { value, header, icon, target } = item;\n return html`<ix-status-counter\n class=\"block b${index + 1} l${dataLength} l5\"\n .value=${value}\n .header=${header}\n .icon=${iconMap[icon]}\n .target=${target}\n data-testid=\"lp-${testIdTransform(header)}\"\n >\n </ix-status-counter>`;\n })}\n </div>\n </div>\n </ix-widget>`;\n }\n}\n"]}
@@ -132,52 +132,6 @@ IxStatusCounter.styles = css `
132
132
  }
133
133
  }
134
134
 
135
- @media (max-width: 1349px) {
136
- .content {
137
- display: flex;
138
- flex-direction: row-reverse;
139
- -webkit-box-align: center;
140
- align-items: center;
141
- justify-content: left;
142
- }
143
- ix-icon {
144
- width: 24px;
145
- height: 24px;
146
- }
147
-
148
- ix-widget {
149
- --ix-widget-background: white;
150
- }
151
- .info {
152
- display: flex;
153
- align-items: center;
154
- justify-content: space-between;
155
- width: 100%;
156
- flex-direction: row-reverse;
157
- }
158
- h2 {
159
- margin: 0px;
160
- font-family: var(--text-default-font, sans-serif);
161
- font-size: var(--text-default-size, 16px);
162
- letter-spacing: var(--text-default-letter-spacing, 0.0275em);
163
- line-height: var(--text-default-line-height, 1.75em);
164
- font-weight: var(--text-default-weight, normal);
165
- text-transform: var(--text-default-decoration, none);
166
- text-decoration: var(--text-default-transform, none);
167
- padding-left: 8px;
168
- }
169
- h3 {
170
- margin: 0px;
171
- font-family: var(--root-primary-font, sans-serif);
172
- font-size: var(--text-small-size, 0.875rem);
173
- letter-spacing: var(--text-small-letter-spacing, 0.0275em);
174
- line-height: var(--text-small-line-height, 1.42857143em);
175
- font-weight: bold;
176
- text-decoration: var(--text-small-decoration, none);
177
- text-transform: var(--text-small-transform, none);
178
- }
179
- }
180
-
181
135
  @media (max-width: 600px) {
182
136
  .info {
183
137
  flex-direction: row;
@@ -1 +1 @@
1
- {"version":3,"file":"ix-status-counter.js","sourceRoot":"","sources":["../src/ix-status-counter.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,oCAAoC,CAAC;AAC5C,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG9C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAAxC;;QA8JuB,UAAK,GAAgC,SAAS,CAAC;QAE/C,WAAM,GAAG,QAAQ,CAAC;QAElB,SAAI,GAAG,MAAM,CAAC;QAEd,WAAM,GAAG,GAAG,CAAC;QAEzC,aAAQ,GAAG,GAAG,EAAE;YACd,IAAI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,MAAM,EAAE,CAAC;+CAAmB;AAElB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAe;AAEd;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAAc;AApK9B,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CA0M3B","sourcesContent":["import { html, LitElement, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport '@digital-realty/ix-icon/ix-icon.js';\nimport './IxWidget.js';\nimport { laptop, loader } from './assets/iconset.js';\n\n@customElement('ix-status-counter')\nexport class IxStatusCounter extends LitElement {\n static styles = css`\n ix-widget {\n --ix-widget-background: rgb(200, 223, 250);\n --ix-widget-padding: 36.5px 20px 36.5px 24px;\n --ix-icon-font-size: 5rem;\n --ix-icon-line-height: 1;\n cursor: pointer;\n }\n h2 {\n margin: 0px;\n font-family: var(--text-default-font, sans-serif);\n font-size: var(--text-default-size, 16px);\n letter-spacing: var(--text-default-letter-spacing, 0.0275em);\n line-height: var(--text-default-line-height, 1.75em);\n font-weight: var(--text-default-weight, normal);\n text-transform: var(--text-default-decoration, none);\n text-decoration: var(--text-default-transform, none);\n }\n h3 {\n margin: 0px;\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 .content {\n display: flex;\n -webkit-box-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n align-items: center;\n cursor: pointer;\n }\n ix-icon {\n background-color: rgb(255, 255, 255);\n border-radius: 50%;\n display: flex;\n -webkit-box-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n width: 60px;\n height: 60px;\n font-size: 36px;\n }\n .loader {\n width: 24px;\n height: 24px;\n }\n .info svg {\n stroke: var(--clr-primary, #1456e0);\n width: 24px;\n height: 24px;\n animation-name: loading;\n animation-duration: 1000ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n }\n @keyframes loading {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n\n svg {\n width: 24px;\n margin: auto;\n }\n\n @media (min-width: 1200px) {\n svg {\n width: 36px;\n margin: auto;\n }\n .info svg {\n width: 36px;\n height: 36px;\n }\n }\n\n @media (max-width: 1349px) {\n .content {\n display: flex;\n flex-direction: row-reverse;\n -webkit-box-align: center;\n align-items: center;\n justify-content: left;\n }\n ix-icon {\n width: 24px;\n height: 24px;\n }\n\n ix-widget {\n --ix-widget-background: white;\n }\n .info {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n flex-direction: row-reverse;\n }\n h2 {\n margin: 0px;\n font-family: var(--text-default-font, sans-serif);\n font-size: var(--text-default-size, 16px);\n letter-spacing: var(--text-default-letter-spacing, 0.0275em);\n line-height: var(--text-default-line-height, 1.75em);\n font-weight: var(--text-default-weight, normal);\n text-transform: var(--text-default-decoration, none);\n text-decoration: var(--text-default-transform, none);\n padding-left: 8px;\n }\n h3 {\n margin: 0px;\n font-family: var(--root-primary-font, sans-serif);\n font-size: var(--text-small-size, 0.875rem);\n letter-spacing: var(--text-small-letter-spacing, 0.0275em);\n line-height: var(--text-small-line-height, 1.42857143em);\n font-weight: bold;\n text-decoration: var(--text-small-decoration, none);\n text-transform: var(--text-small-transform, none);\n }\n }\n\n @media (max-width: 600px) {\n .info {\n flex-direction: row;\n justify-content: start;\n }\n .content {\n flex-direction: row;\n padding: 0.5rem 1.5rem;\n }\n .content.last-item {\n border-bottom: none;\n }\n .content h2 {\n font-size: 16px;\n }\n .content h3 {\n font-size: 20px;\n }\n ix-icon {\n width: 42px;\n height: 42px;\n }\n }\n `;\n\n @property({ type: String }) value: number | undefined | string = undefined;\n\n @property({ type: String }) header = 'status';\n\n @property({ type: Object }) icon = laptop;\n\n @property({ type: String }) target = '/';\n\n navigate = () => {\n this.dispatchEvent(\n new CustomEvent('route', {\n detail: { route: this.target },\n bubbles: true,\n composed: true,\n })\n );\n };\n\n protected override render() {\n return html`<ix-widget\n @click=${this.navigate}\n @keydown=${(e: KeyboardEvent) => {\n const selectionKeys = [' ', 'Enter'];\n if (selectionKeys.includes(e.key)) {\n this.navigate();\n }\n }}\n type=\"status-counter\"\n >\n <div class=\"content\">\n <div class=\"info\">\n ${this.value || this.value === 0\n ? html`<h3>\n ${typeof this.value === 'number'\n ? this.value.toLocaleString()\n : this.value}\n </h3>`\n : html`<span class=\"loader\">${loader}</span>`}\n <h2>${this.header}</h2>\n </div>\n <ix-icon>${this.icon}</ix-icon>\n </div>\n </ix-widget>`;\n }\n}\n"]}
1
+ {"version":3,"file":"ix-status-counter.js","sourceRoot":"","sources":["../src/ix-status-counter.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,oCAAoC,CAAC;AAC5C,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG9C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAAxC;;QAgHuB,UAAK,GAAgC,SAAS,CAAC;QAE/C,WAAM,GAAG,QAAQ,CAAC;QAElB,SAAI,GAAG,MAAM,CAAC;QAEd,WAAM,GAAG,GAAG,CAAC;QAEzC,aAAQ,GAAG,GAAG,EAAE;YACd,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,OAAO,EAAE;gBACvB,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;gBAC9B,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,IAAI;aACf,CAAC,CAC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J3B","sourcesContent":["import { html, LitElement, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport '@digital-realty/ix-icon/ix-icon.js';\nimport './IxWidget.js';\nimport { laptop, loader } from './assets/iconset.js';\n\n@customElement('ix-status-counter')\nexport class IxStatusCounter extends LitElement {\n static styles = css`\n ix-widget {\n --ix-widget-background: rgb(200, 223, 250);\n --ix-widget-padding: 36.5px 20px 36.5px 24px;\n --ix-icon-font-size: 5rem;\n --ix-icon-line-height: 1;\n cursor: pointer;\n }\n h2 {\n margin: 0px;\n font-family: var(--text-default-font, sans-serif);\n font-size: var(--text-default-size, 16px);\n letter-spacing: var(--text-default-letter-spacing, 0.0275em);\n line-height: var(--text-default-line-height, 1.75em);\n font-weight: var(--text-default-weight, normal);\n text-transform: var(--text-default-decoration, none);\n text-decoration: var(--text-default-transform, none);\n }\n h3 {\n margin: 0px;\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 .content {\n display: flex;\n -webkit-box-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n align-items: center;\n cursor: pointer;\n }\n ix-icon {\n background-color: rgb(255, 255, 255);\n border-radius: 50%;\n display: flex;\n -webkit-box-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n width: 60px;\n height: 60px;\n font-size: 36px;\n }\n .loader {\n width: 24px;\n height: 24px;\n }\n .info svg {\n stroke: var(--clr-primary, #1456e0);\n width: 24px;\n height: 24px;\n animation-name: loading;\n animation-duration: 1000ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n }\n @keyframes loading {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n\n svg {\n width: 24px;\n margin: auto;\n }\n\n @media (min-width: 1200px) {\n svg {\n width: 36px;\n margin: auto;\n }\n .info svg {\n width: 36px;\n height: 36px;\n }\n }\n\n @media (max-width: 600px) {\n .info {\n flex-direction: row;\n justify-content: start;\n }\n .content {\n flex-direction: row;\n padding: 0.5rem 1.5rem;\n }\n .content.last-item {\n border-bottom: none;\n }\n .content h2 {\n font-size: 16px;\n }\n .content h3 {\n font-size: 20px;\n }\n ix-icon {\n width: 42px;\n height: 42px;\n }\n }\n `;\n\n @property({ type: String }) value: number | undefined | string = undefined;\n\n @property({ type: String }) header = 'status';\n\n @property({ type: Object }) icon = laptop;\n\n @property({ type: String }) target = '/';\n\n navigate = () => {\n this.dispatchEvent(\n new CustomEvent('route', {\n detail: { route: this.target },\n bubbles: true,\n composed: true,\n })\n );\n };\n\n protected override render() {\n return html`<ix-widget\n @click=${this.navigate}\n @keydown=${(e: KeyboardEvent) => {\n const selectionKeys = [' ', 'Enter'];\n if (selectionKeys.includes(e.key)) {\n this.navigate();\n }\n }}\n type=\"status-counter\"\n >\n <div class=\"content\">\n <div class=\"info\">\n ${this.value || this.value === 0\n ? html`<h3>\n ${typeof this.value === 'number'\n ? this.value.toLocaleString()\n : this.value}\n </h3>`\n : html`<span class=\"loader\">${loader}</span>`}\n <h2>${this.header}</h2>\n </div>\n <ix-icon>${this.icon}</ix-icon>\n </div>\n </ix-widget>`;\n }\n}\n"]}
@@ -1 +1 @@
1
- import{__decorate}from"tslib";import{css,LitElement,html}from"lit";import{property}from"lit/decorators.js";class IxWidget extends LitElement{constructor(){super(...arguments),this.type="default"}render(){return html`<div class="card" type="${this.type}"><slot></slot></div>`}}IxWidget.styles=css`.card{border-radius:.75rem;background:var(--ix-widget-background,#fff);padding:var(--ix-widget-padding,16px 24px 32px);border:var(--ix-widget-border,none)}[type=status-counter].card{margin-bottom:0;--ix-widget-padding:0;--ix-widget-padding:1rem}@media (min-width:1350px){[type=status-counter].card{--ix-widget-padding:33px 20px 33px 24px}}[type=status-counter-group].card{--ix-widget-padding:0;--ix-widget-background:transparent}[type=action-list].card{--ix-widget-padding:0 11px 16px 24px}@media (max-width:1349px){[type=status-counter-group].card{--ix-widget-padding:1rem;--ix-widget-background:white;box-shadow:rgba(0,0,0,.2) 0 2px 1px -1px,rgba(0,0,0,.14) 0 1px 1px 0,rgba(0,0,0,.12) 0 1px 3px 0}}[type=info-card].card{display:block;max-width:348px;border-radius:.5rem;border:1px solid #e0e0e0;position:relative;overflow:auto;aspect-ratio:1/1.47}[type=info-card-resources].card{display:block;max-width:348px;border-radius:.5rem;border:1px solid #e0e0e0;position:relative;overflow:hidden;aspect-ratio:1/.85}[type=action-list].card{box-shadow:rgba(0,0,0,.2) 0 2px 1px -1px,rgba(0,0,0,.14) 0 1px 1px 0,rgba(0,0,0,.12) 0 1px 3px 0}[type=news-feed].card{display:flex;flex-direction:column;background:#fff;box-shadow:rgba(0,0,0,.12) 0 12px 20px -12px,#e1e4e8 0 0 0 1px inset;border-radius:12px;padding-bottom:11px}@media (max-width:600px){[type=status-counter-group].card{background:#c8dffa;padding-left:0;padding-right:0}[type=status-counter].card{--ix-widget-padding:0;background:0 0;border-radius:0}}`,__decorate([property({type:String})],IxWidget.prototype,"type",void 0),window.customElements.define("ix-widget",IxWidget);
1
+ import{__decorate}from"tslib";import{css,LitElement,html}from"lit";import{property}from"lit/decorators.js";class IxWidget extends LitElement{constructor(){super(...arguments),this.type="default"}render(){return html`<div class="card" type="${this.type}"><slot></slot></div>`}}IxWidget.styles=css`.card{border-radius:.75rem;background:var(--ix-widget-background,#fff);padding:var(--ix-widget-padding,16px 24px 32px);border:var(--ix-widget-border,none)}[type=status-counter].card{margin-bottom:0;--ix-widget-padding:0;--ix-widget-padding:1rem}[type=status-counter-group].card{--ix-widget-padding:1rem;--ix-widget-background:transparent}[type=action-list].card{--ix-widget-padding:0 11px 16px 24px}[type=info-card].card{display:block;max-width:348px;border-radius:.5rem;border:1px solid #e0e0e0;position:relative;overflow:auto;aspect-ratio:1/1.47}[type=info-card-resources].card{display:block;max-width:348px;border-radius:.5rem;border:1px solid #e0e0e0;position:relative;overflow:hidden;aspect-ratio:1/.85}[type=action-list].card{box-shadow:rgba(0,0,0,.2) 0 2px 1px -1px,rgba(0,0,0,.14) 0 1px 1px 0,rgba(0,0,0,.12) 0 1px 3px 0}[type=news-feed].card{display:flex;flex-direction:column;background:#fff;box-shadow:rgba(0,0,0,.12) 0 12px 20px -12px,#e1e4e8 0 0 0 1px inset;border-radius:12px;padding-bottom:11px}@media (min-width:600px){[type=status-counter].card{--ix-widget-padding:33px 20px 33px 24px}[type=status-counter-group].card{padding:0}}@media (max-width:600px){[type=status-counter-group].card{background:#c8dffa;padding-left:0;padding-right:0}[type=status-counter].card{--ix-widget-padding:0;background:0 0;border-radius:0}}`,__decorate([property({type:String})],IxWidget.prototype,"type",void 0),window.customElements.define("ix-widget",IxWidget);
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.69",
6
+ "version": "2.1.71",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@adobe/lit-mobx": "^2.2.2",
41
- "@digital-realty/ix-accordion": "^1.1.8",
42
- "@digital-realty/ix-button": "^3.3.7",
43
- "@digital-realty/ix-dialog": "^1.1.19",
44
- "@digital-realty/ix-grid": "^1.2.37",
45
- "@digital-realty/ix-icon": "^1.1.7",
46
- "@digital-realty/ix-list": "^1.1.6",
41
+ "@digital-realty/ix-accordion": "^1.1.9",
42
+ "@digital-realty/ix-button": "^3.3.8",
43
+ "@digital-realty/ix-dialog": "^1.1.20",
44
+ "@digital-realty/ix-grid": "^1.2.39",
45
+ "@digital-realty/ix-icon": "^1.1.8",
46
+ "@digital-realty/ix-list": "^1.1.7",
47
47
  "@lit/react": "^1.0.2",
48
48
  "@material/web": "1.2.0",
49
49
  "date-fns": "^4.1.0",
@@ -60,9 +60,9 @@
60
60
  "@types/react": "^18.2.22",
61
61
  "@typescript-eslint/eslint-plugin": "^5.48.0",
62
62
  "@typescript-eslint/parser": "^5.48.0",
63
- "@web/dev-server": "^0.1.34",
63
+ "@web/dev-server": "^0.4.6",
64
64
  "@web/dev-server-import-maps": "^0.2.1",
65
- "@web/test-runner": "^0.14.0",
65
+ "@web/test-runner": "^0.20.2",
66
66
  "@web/test-runner-commands": "^0.9.0",
67
67
  "concurrently": "^9.1.0",
68
68
  "eslint": "^8.31.0",
@@ -130,5 +130,5 @@
130
130
  "README.md",
131
131
  "LICENSE"
132
132
  ],
133
- "gitHead": "982f9d825797aa893457b96a388708758ca43abb"
133
+ "gitHead": "efb86e89e9bfdb5a9a797dd223331ad6455b692c"
134
134
  }
@@ -1,68 +0,0 @@
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
- }
@@ -1,294 +0,0 @@
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 &amp; 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 };
294
- //# sourceMappingURL=ix-launchpad.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ix-launchpad.js","sourceRoot":"","sources":["../src/ix-launchpad.ts"],"names":[],"mappings":";AAAA,OAA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B,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 &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 +0,0 @@
1
- export declare const IxLaunchpadStyles: import("lit").CSSResult;
@@ -1,229 +0,0 @@
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
@@ -1 +0,0 @@
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"]}