@proximus/lavender-timeline 1.4.20-alpha.9 → 1.4.20-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/timeline.css?inline
1
+ // src/timeline.css?inline
2
2
  var e = ".timeline{margin:0;padding:0;list-style:none}", t = {
3
3
  BASE_URL: "/",
4
4
  DEV: !0,
@@ -15,27 +15,16 @@ function i(e) {
15
15
  r() && console.error(e);
16
16
  }
17
17
  typeof window < "u" && (window.isComponentDebug = r);
18
- //#endregion
19
- //#region ../common/src/common.css?inline
18
+ // ../common/src/common.css?inline
20
19
  var a = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
21
- //#endregion
22
- //#region ../common/src/attributeSetters.ts
20
+ // ../common/src/attributeSetters.ts
23
21
  function o(e, t, n) {
24
- if (n == null || n === "") {
25
- e.removeAttribute(t);
26
- return;
27
- }
28
- e.setAttribute(t, n.toString());
22
+ n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
29
23
  }
30
24
  function s(e, t, n) {
31
- if (!n) {
32
- e.removeAttribute(t);
33
- return;
34
- }
35
- e.setAttribute(t, "");
25
+ n ? e.setAttribute(t, "") : e.removeAttribute(t);
36
26
  }
37
- //#endregion
38
- //#region ../common/src/values.ts
27
+ // ../common/src/values.ts
39
28
  var c = [
40
29
  "",
41
30
  "default",
@@ -99,8 +88,7 @@ var c = [
99
88
  "L",
100
89
  "Xl"
101
90
  ].map((e) => e.toLowerCase())];
102
- //#endregion
103
- //#region ../common/src/WithExtraAttributes.ts
91
+ // ../common/src/WithExtraAttributes.ts
104
92
  var p = new CSSStyleSheet();
105
93
  p.replaceSync(a);
106
94
  var m = class e extends HTMLElement {
@@ -182,11 +170,8 @@ var m = class e extends HTMLElement {
182
170
  let e = this.parentElement;
183
171
  for (; e;) {
184
172
  if (e.localName === "px-grid" || e.localName === "px-stack" && e?.getAttribute("direction") === "row") return !0;
185
- if (window.getComputedStyle(e).display === "contents") {
186
- e = e.parentElement;
187
- continue;
188
- }
189
- break;
173
+ if (window.getComputedStyle(e).display === "contents") e = e.parentElement;
174
+ else break;
190
175
  }
191
176
  return !1;
192
177
  }
@@ -565,8 +550,7 @@ var m = class e extends HTMLElement {
565
550
  s(this, e, t);
566
551
  }
567
552
  });
568
- //#endregion
569
- //#region ../common/src/nativeProperties.ts
553
+ // ../common/src/nativeProperties.ts
570
554
  var h = {
571
555
  validity: "readonly",
572
556
  validationMessage: "readonly",
@@ -577,8 +561,7 @@ var h = {
577
561
  "setCustomValidity"
578
562
  ];
579
563
  ({ ...h }), [...g], { ...h }, [...g], { ...h }, [...g], { ...h }, [...g], { ...h }, [...g];
580
- //#endregion
581
- //#region ../common/src/template.ts
564
+ // ../common/src/template.ts
582
565
  var _ = /* @__PURE__ */ new Map(), v = 500;
583
566
  function y(e) {
584
567
  let t = document.createElement("template");
@@ -595,8 +578,7 @@ function S(e, t) {
595
578
  let n = typeof t == "string" ? x(t) : t;
596
579
  e.replaceChildren(document.importNode(n.content, !0));
597
580
  }
598
- //#endregion
599
- //#region src/timelineitem.css?inline
581
+ // src/timelineitem.css?inline
600
582
  var C = ".timeline-item{gap:var(--px-spacing-default-mobile);font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l);display:flex}.indicator-area{position:relative}.indicator-area:before{content:\"\";width:var(--px-size-border-m);background:var(--px-color-border-main-default);height:calc(100% - 26px);display:block;position:absolute;top:26px;left:12px}.indicator-area .indicator{text-align:center;width:26px;height:26px;font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);color:var(--px-color-text-neutral-default);border-radius:var(--px-radius-pill);background:var(--px-color-background-container-default-default);justify-content:center;align-items:center;display:flex}.content-area{margin-bottom:var(--px-padding-m-mobile);gap:var(--px-spacing-xs-mobile);flex-direction:column;display:flex}.content-area ::slotted([slot=title]){font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-l-mobile);color:var(--px-color-text-neutral-default)}.content-area ::slotted([slot=content]){font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-body-m-mobile);color:var(--px-color-text-dimmed-default)}:host([lastchild]) .indicator-area:before{display:none}:host([lastchild]) .content-area{margin-bottom:0}:host([inverted]) .indicator-area:before{background:var(--px-color-border-main-inverted)}:host([inverted]) .indicator{color:var(--px-color-text-neutral-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .content-area ::slotted([slot=title]){color:var(--px-color-text-neutral-inverted)}:host([inverted]) .content-area ::slotted([slot=content]){color:var(--px-color-text-dimmed-inverted)}@media screen and (width>=48rem){.timeline-item{gap:var(--px-spacing-default-tablet)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-tablet)}.content-area{margin-bottom:var(--px-padding-m-tablet);gap:var(--px-spacing-xs-tablet)}.content-area ::slotted([slot=title]){font-size:var(--px-text-size-label-l-tablet)}.content-area ::slotted([slot=content]){font-size:var(--px-text-size-body-m-tablet)}}@media screen and (width>=64.0625rem){.timeline-item{gap:var(--px-spacing-default-laptop)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-laptop)}.content-area{margin-bottom:var(--px-padding-m-laptop)}.content-area ::slotted([slot=title]){font-size:var(--px-text-size-label-l-laptop)}.content-area ::slotted([slot=content]){font-size:var(--px-text-size-body-m-laptop)}}@media screen and (width>=90.0625rem){.timeline-item{gap:var(--px-spacing-default-desktop)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-desktop)}.content-area{margin-bottom:var(--px-padding-m-desktop)}.content-area ::slotted([slot=title]){font-size:var(--px-text-size-label-l-desktop)}.content-area ::slotted([slot=content]){font-size:var(--px-text-size-body-m-desktop)}}", w = new CSSStyleSheet();
601
583
  w.replaceSync(C);
602
584
  var T = "px-timeline-item-connected", E = "1", D = class e extends HTMLElement {
@@ -654,8 +636,7 @@ var T = "px-timeline-item-connected", E = "1", D = class e extends HTMLElement {
654
636
  }
655
637
  };
656
638
  customElements.get("px-timeline-item") || customElements.define("px-timeline-item", D);
657
- //#endregion
658
- //#region src/Timeline.ts
639
+ // src/Timeline.ts
659
640
  var O = new CSSStyleSheet();
660
641
  O.replaceSync(e);
661
642
  var k = class e extends HTMLElement {
@@ -701,5 +682,4 @@ var k = class e extends HTMLElement {
701
682
  }
702
683
  };
703
684
  customElements.get("px-timeline") || customElements.define("px-timeline", k);
704
- //#endregion
705
685
  export { T as TIMELINE_ITEM_CONNECTED_EVENT, k as Timeline, D as TimelineItem };
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@proximus/lavender-timeline",
4
- "version": "1.4.20-alpha.9",
4
+ "version": "1.4.20-beta.1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "px-timeline",
11
- "description": "\n\n---\n",
11
+ "description": "\n---\n",
12
12
  "doc-url": "",
13
13
  "attributes": [{ "name": "inverted", "value": { "type": "string" } }],
14
14
  "events": [],
@@ -24,7 +24,7 @@
24
24
  },
25
25
  {
26
26
  "name": "px-timeline-item",
27
- "description": "\n\n---\n\n\n### **Events:**\n - **TIMELINE_ITEM_CONNECTED_EVENT**",
27
+ "description": "\n---\n\n\n### **Events:**\n - **TIMELINE_ITEM_CONNECTED_EVENT**",
28
28
  "doc-url": "",
29
29
  "attributes": [
30
30
  { "name": "inverted", "value": { "type": "string" } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-timeline",
3
- "version": "1.4.20-alpha.9",
3
+ "version": "1.4.20-beta.1",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",