@proximus/lavender-status 2.0.0-alpha.21 → 2.0.0-alpha.210

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/Status.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { Icon } from '@proximus/lavender-icon';
1
+ import { type Icon } from '@proximus/lavender-icon';
2
2
  import { PxElement } from '@proximus/lavender-common';
3
+ import '@proximus/lavender-layout';
3
4
  export declare const statusStateValues: string[];
4
5
  export declare class Status extends PxElement<HTMLDivElement> {
6
+ protected static readonly template: HTMLTemplateElement;
5
7
  static nativeName: string;
6
- private template;
7
8
  constructor();
8
9
  static get observedAttributes(): string[];
9
10
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
@@ -12,10 +13,10 @@ export declare class Status extends PxElement<HTMLDivElement> {
12
13
  get $label(): HTMLSpanElement;
13
14
  get $statusIcon(): Icon;
14
15
  get $children(): NodeListOf<Element>;
15
- get state(): string;
16
- set state(value: string);
17
- get iconAriaLabel(): string;
18
- set iconAriaLabel(value: string);
16
+ get state(): string | null;
17
+ set state(value: string | null);
18
+ get iconAriaLabel(): string | null;
19
+ set iconAriaLabel(value: string | null);
19
20
  get iconOnly(): boolean;
20
21
  set iconOnly(value: boolean);
21
22
  get iconOnlyMobile(): boolean;
@@ -0,0 +1,193 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/Status.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "variable",
11
+ "name": "statusStateValues",
12
+ "type": {
13
+ "text": "array"
14
+ },
15
+ "default": "[ '', 'info', 'success', 'warning', 'error', 'ongoing', 'unlimited', ]"
16
+ },
17
+ {
18
+ "kind": "class",
19
+ "description": "",
20
+ "name": "Status",
21
+ "members": [
22
+ {
23
+ "kind": "field",
24
+ "name": "template",
25
+ "privacy": "protected",
26
+ "static": true,
27
+ "readonly": true
28
+ },
29
+ {
30
+ "kind": "field",
31
+ "name": "nativeName",
32
+ "type": {
33
+ "text": "string"
34
+ },
35
+ "static": true,
36
+ "default": "'div'"
37
+ },
38
+ {
39
+ "kind": "method",
40
+ "name": "updateState",
41
+ "parameters": [
42
+ {
43
+ "name": "state",
44
+ "type": {
45
+ "text": "string"
46
+ }
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "kind": "method",
52
+ "name": "updateIconOnly",
53
+ "parameters": [
54
+ {
55
+ "name": "breakpoint",
56
+ "type": {
57
+ "text": "string | null"
58
+ }
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "kind": "field",
64
+ "name": "$label",
65
+ "readonly": true
66
+ },
67
+ {
68
+ "kind": "field",
69
+ "name": "$statusIcon",
70
+ "readonly": true
71
+ },
72
+ {
73
+ "kind": "field",
74
+ "name": "$children",
75
+ "readonly": true
76
+ },
77
+ {
78
+ "kind": "field",
79
+ "name": "state"
80
+ },
81
+ {
82
+ "kind": "field",
83
+ "name": "iconAriaLabel"
84
+ },
85
+ {
86
+ "kind": "field",
87
+ "name": "iconOnly"
88
+ },
89
+ {
90
+ "kind": "field",
91
+ "name": "iconOnlyMobile"
92
+ },
93
+ {
94
+ "kind": "field",
95
+ "name": "iconOnlyTablet"
96
+ },
97
+ {
98
+ "kind": "field",
99
+ "name": "iconOnlyLaptop"
100
+ },
101
+ {
102
+ "kind": "field",
103
+ "name": "disabled"
104
+ },
105
+ {
106
+ "kind": "field",
107
+ "name": "inverted"
108
+ }
109
+ ],
110
+ "attributes": [
111
+ {
112
+ "name": "state"
113
+ },
114
+ {
115
+ "name": "icon-only"
116
+ },
117
+ {
118
+ "name": "icon-only--mobile"
119
+ },
120
+ {
121
+ "name": "icon-only--tablet"
122
+ },
123
+ {
124
+ "name": "icon-only--laptop"
125
+ },
126
+ {
127
+ "name": "disabled"
128
+ },
129
+ {
130
+ "name": "inverted"
131
+ },
132
+ {
133
+ "name": "icon-aria-label"
134
+ }
135
+ ],
136
+ "superclass": {
137
+ "name": "PxElement",
138
+ "package": "@proximus/lavender-common"
139
+ },
140
+ "tagName": "px-status",
141
+ "customElement": true
142
+ }
143
+ ],
144
+ "exports": [
145
+ {
146
+ "kind": "js",
147
+ "name": "statusStateValues",
148
+ "declaration": {
149
+ "name": "statusStateValues",
150
+ "module": "src/Status.ts"
151
+ }
152
+ },
153
+ {
154
+ "kind": "js",
155
+ "name": "Status",
156
+ "declaration": {
157
+ "name": "Status",
158
+ "module": "src/Status.ts"
159
+ }
160
+ },
161
+ {
162
+ "kind": "custom-element-definition",
163
+ "name": "px-status",
164
+ "declaration": {
165
+ "name": "Status",
166
+ "module": "src/Status.ts"
167
+ }
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "kind": "javascript-module",
173
+ "path": "src/index.ts",
174
+ "declarations": [],
175
+ "exports": [
176
+ {
177
+ "kind": "js",
178
+ "name": "*",
179
+ "declaration": {
180
+ "name": "*",
181
+ "module": "src/Status"
182
+ }
183
+ }
184
+ ]
185
+ },
186
+ {
187
+ "kind": "javascript-module",
188
+ "path": "src/status.css",
189
+ "declarations": [],
190
+ "exports": []
191
+ }
192
+ ]
193
+ }
package/dist/index.es.js CHANGED
@@ -1,157 +1,768 @@
1
- import { PxElement as n, log as a } from "@proximus/lavender-common";
2
- const c = ':host,:host>*{display:block;box-sizing:border-box}.status{color:var(--px-color-text-brand-default)}.status ::slotted([slot="label"]){font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l)}.status.success{color:var(--px-color-text-purpose-success-default)}.status.warning,.status.ongoing{color:var(--px-color-text-purpose-warning-default)}.status.error{color:var(--px-color-text-purpose-error-default)}.status.unlimited{color:var(--px-color-text-purpose-unlimited-default)}.status[disabled]{color:var(--px-color-text-state-disabled-default)}:host([inverted]) .status{color:var(--px-color-text-brand-inverted)}:host([inverted]) .status.success{color:var(--px-color-text-purpose-success-inverted)}:host([inverted]) .status.warning,:host([inverted]) .status.ongoing{color:var(--px-color-text-purpose-warning-inverted)}:host([inverted]) .status.error{color:var(--px-color-text-purpose-error-inverted)}:host([inverted]) .status.unlimited{color:var(--px-color-text-purpose-unlimited-inverted)}:host([inverted]) .status[disabled]{color:var(--px-color-text-state-disabled-inverted)}@media only screen and (min-width: 768px){.status ::slotted([slot="label"]){font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1025px){.status ::slotted([slot="label"]){font-size:var(--px-text-size-label-m-desktop)}}', r = new CSSStyleSheet();
3
- r.replaceSync(c);
4
- const u = [
5
- "",
6
- "info",
7
- "success",
8
- "warning",
9
- "error",
10
- "ongoing",
11
- "unlimited"
12
- ], l = class l extends n {
13
- constructor() {
14
- super(r), this.template = () => `
15
- <div class="status">
16
- <px-hstack gap="2xs" align-items="flex-start">
17
- <px-icon name="information_fill" from="lavender" size="s" color="brand"></px-icon>
18
- <slot name="label"></slot>
19
- </px-hstack>
20
- </div>`, this.shadowRoot.innerHTML = this.template();
21
- }
22
- static get observedAttributes() {
23
- return [
24
- "state",
25
- "icon-only",
26
- "icon-only--mobile",
27
- "icon-only--tablet",
28
- "icon-only--laptop",
29
- "disabled",
30
- "inverted",
31
- "icon-aria-label"
32
- ];
33
- }
34
- attributeChangedCallback(t, s, e) {
35
- if (s !== e)
36
- switch (t) {
37
- case "state":
38
- this.updateState(e), this.$el.classList.toggle(`${e}`);
39
- break;
40
- case "icon-aria-label":
41
- this.$statusIcon.setAttribute("aria-label", e);
42
- break;
43
- case "icon-only":
44
- this.updateIconOnly(null);
45
- break;
46
- case "icon-only--mobile":
47
- this.updateIconOnly("mobile");
48
- break;
49
- case "icon-only--tablet":
50
- this.updateIconOnly("tablet");
51
- break;
52
- case "icon-only--laptop":
53
- this.updateIconOnly("laptop");
54
- break;
55
- case "disabled":
56
- this.$el.toggleAttribute("disabled", e !== null), this.$statusIcon.color = "state-disabled";
57
- break;
58
- case "inverted":
59
- for (let i = 0; i < this.$children.length; i++)
60
- this.$children[i].hasAttribute("inverted") || this.$children[i].toggleAttribute("inverted");
61
- this.$el.toggleAttribute("inverted", e !== null), this.$statusIcon.toggleAttribute("inverted", e !== null);
62
- break;
63
- default:
64
- super.attributeChangedCallback(t, s, e);
65
- break;
66
- }
67
- }
68
- updateState(t) {
69
- if (!this.checkName(u, t)) {
70
- a(
71
- `${t} is not an allowed state value for ${this.tagName.toLowerCase()}`
72
- );
73
- return;
74
- }
75
- const s = {
76
- info: { name: "information_fill", color: "brand" },
77
- success: { name: "checkmark_fill", color: "purpose-success" },
78
- warning: { name: "exclamation_mark_fill", color: "purpose-warning" },
79
- error: { name: "minus_fill", color: "purpose-error" },
80
- ongoing: { name: "clock_fill", color: "purpose-warning" },
81
- unlimited: { name: "infinity_fill", color: "purpose-unlimited" }
82
- }, { name: e, color: i } = s[t] || s.info;
83
- this.$statusIcon.name = e, this.$statusIcon.color = i;
84
- }
85
- updateIconOnly(t) {
86
- var e;
87
- const s = t ? `--${t}` : "";
88
- this.$label.setAttribute(`shown--sr${s}`, ""), (t === "laptop" || t === null) && this.$statusIcon.setAttribute(
89
- "title",
90
- ((e = this.$label.textContent) == null ? void 0 : e.trim()) || ""
91
- );
92
- }
93
- get $label() {
94
- return this.querySelector('[slot="label"]');
95
- }
96
- get $statusIcon() {
97
- return this.shadowRoot.querySelector("px-icon");
98
- }
99
- get $children() {
100
- return this.querySelectorAll("px-status > *");
101
- }
102
- get state() {
103
- return this.getAttribute("state");
104
- }
105
- set state(t) {
106
- this.setAttribute("state", t);
107
- }
108
- get iconAriaLabel() {
109
- return this.getAttribute("icon-aria-label");
110
- }
111
- set iconAriaLabel(t) {
112
- this.setAttribute("icon-aria-label", t);
113
- }
114
- get iconOnly() {
115
- return this.hasAttribute("icon-only");
116
- }
117
- set iconOnly(t) {
118
- t ? this.setAttribute("icon-only", "") : this.removeAttribute("icon-only");
119
- }
120
- get iconOnlyMobile() {
121
- return this.hasAttribute("icon-only--mobile");
122
- }
123
- set iconOnlyMobile(t) {
124
- t ? this.setAttribute("icon-only--mobile", "") : this.removeAttribute("icon-only--mobile");
125
- }
126
- get iconOnlyTablet() {
127
- return this.hasAttribute("icon-only--tablet");
128
- }
129
- set iconOnlyTablet(t) {
130
- t ? this.setAttribute("icon-only--tablet", "") : this.removeAttribute("icon-only--tablet");
131
- }
132
- get iconOnlyLaptop() {
133
- return this.hasAttribute("icon-only--laptop");
134
- }
135
- set iconOnlyLaptop(t) {
136
- t ? this.setAttribute("icon-only--laptop", "") : this.removeAttribute("icon-only--laptop");
137
- }
138
- get disabled() {
139
- return this.hasAttribute("disabled");
140
- }
141
- set disabled(t) {
142
- t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
143
- }
144
- get inverted() {
145
- return this.hasAttribute("inverted");
146
- }
147
- set inverted(t) {
148
- t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
149
- }
1
+ import { AttributeBreakpointHandlerDelegate as e, PxElement as t, WithExtraAttributes as n, backgroundColorValues as r, checkName as i, createTemplate as a, gapValues as o, log as s, propertyToAttributeSetter as c, renderTemplate as l } from "@proximus/lavender-common";
2
+ //#region src/status.css?inline
3
+ var u = ":host,:host>*{box-sizing:border-box;display:block}.status{color:var(--px-color-text-brand-default)}.status ::slotted([slot=label]){font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-s)}.status.success{color:var(--px-color-text-purpose-success-default)}.status.warning,.status.ongoing{color:var(--px-color-text-purpose-warning-default)}.status.error{color:var(--px-color-text-purpose-error-default)}.status.unlimited{color:var(--px-color-text-purpose-unlimited-default)}.status[disabled]{color:var(--px-color-text-state-disabled-default)}:host([inverted]) .status{color:var(--px-color-text-brand-inverted)}:host([inverted]) .status.success{color:var(--px-color-text-purpose-success-inverted)}:host([inverted]) .status.warning,:host([inverted]) .status.ongoing{color:var(--px-color-text-purpose-warning-inverted)}:host([inverted]) .status.error{color:var(--px-color-text-purpose-error-inverted)}:host([inverted]) .status.unlimited{color:var(--px-color-text-purpose-unlimited-inverted)}:host([inverted]) .status[disabled]{color:var(--px-color-text-state-disabled-inverted)}@media screen and (width>=48rem){.status ::slotted([slot=label]){font-size:var(--px-text-size-label-m-desktop)}}@media screen and (width>=64.0625rem){.status ::slotted([slot=label]){font-size:var(--px-text-size-label-m-desktop)}}", d = ":host{--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", f = new CSSStyleSheet();
4
+ f.replaceSync(d);
5
+ var p = document.createElement("template");
6
+ p.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
7
+ var m = [
8
+ "",
9
+ "default",
10
+ "row",
11
+ "row-reverse",
12
+ "column",
13
+ "column-reverse"
14
+ ], h = [
15
+ "",
16
+ "default",
17
+ "stretch",
18
+ "flex-start",
19
+ "start",
20
+ "flex-end",
21
+ "end",
22
+ "center",
23
+ "baseline"
24
+ ], g = [
25
+ "",
26
+ "default",
27
+ "flex-start",
28
+ "start",
29
+ "flex-end",
30
+ "end",
31
+ "center",
32
+ "space-between",
33
+ "space-around",
34
+ "space-evenly"
35
+ ], _ = [
36
+ "",
37
+ "default",
38
+ "nowrap",
39
+ "wrap",
40
+ "wrap-reverse"
41
+ ], v = [
42
+ "",
43
+ "visible",
44
+ "hidden",
45
+ "scroll",
46
+ "auto"
47
+ ], y = class t extends n {
48
+ constructor() {
49
+ super(f), this.overflowXAttributeDelegate = new e(this, "overflow-x", (e) => e, "--overflow-x"), this.shadowRoot.firstChild || this.shadowRoot.appendChild(document.importNode(p.content, !0));
50
+ }
51
+ connectedCallback() {}
52
+ static get observedAttributes() {
53
+ return [
54
+ ...super.observedAttributes,
55
+ "direction",
56
+ "direction--mobile",
57
+ "direction--tablet",
58
+ "direction--laptop",
59
+ "direction--desktop",
60
+ "gap",
61
+ "gap--mobile",
62
+ "gap--tablet",
63
+ "gap--laptop",
64
+ "gap--desktop",
65
+ "justify-content",
66
+ "justify-content--mobile",
67
+ "justify-content--tablet",
68
+ "justify-content--laptop",
69
+ "justify-content--desktop",
70
+ "align-items",
71
+ "align-items--mobile",
72
+ "align-items--tablet",
73
+ "align-items--laptop",
74
+ "align-items--desktop",
75
+ "wrap",
76
+ "wrap--mobile",
77
+ "wrap--tablet",
78
+ "wrap--laptop",
79
+ "wrap--desktop",
80
+ "overflow-x",
81
+ "overflow-x--mobile",
82
+ "overflow-x--tablet",
83
+ "overflow-x--laptop",
84
+ "overflow-x--desktop"
85
+ ];
86
+ }
87
+ attributeChangedCallback(e, t, n) {
88
+ switch (e) {
89
+ case "gap":
90
+ case "gap--mobile":
91
+ case "gap--tablet":
92
+ case "gap--laptop":
93
+ case "gap--desktop":
94
+ this.updateFlexProperties(e, t, n, o);
95
+ break;
96
+ case "justify-content":
97
+ case "justify-content--mobile":
98
+ case "justify-content--tablet":
99
+ case "justify-content--laptop":
100
+ case "justify-content--desktop":
101
+ this.updateFlexProperties(e, t, n, g);
102
+ break;
103
+ case "align-items":
104
+ case "align-items--mobile":
105
+ case "align-items--tablet":
106
+ case "align-items--laptop":
107
+ case "align-items--desktop":
108
+ this.updateFlexProperties(e, t, n, h);
109
+ break;
110
+ case "wrap":
111
+ case "wrap--mobile":
112
+ case "wrap--tablet":
113
+ case "wrap--laptop":
114
+ case "wrap--desktop":
115
+ this.updateFlexProperties(e, t, n, _);
116
+ break;
117
+ case "direction":
118
+ case "direction--mobile":
119
+ case "direction--tablet":
120
+ case "direction--laptop":
121
+ case "direction--desktop":
122
+ this.updateFlexProperties(e, t, n, m);
123
+ break;
124
+ case "overflow-x":
125
+ case "overflow-x--mobile":
126
+ case "overflow-x--tablet":
127
+ case "overflow-x--laptop":
128
+ case "overflow-x--desktop":
129
+ this.updateOverflowX(e, t, n, v);
130
+ break;
131
+ default: super.attributeChangedCallback(e, t, n);
132
+ }
133
+ }
134
+ updateOverflowX(e, t, n, r) {
135
+ i(r, n) ? this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n) : s(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
136
+ }
137
+ updateFlexProperties(e, n, r, i) {
138
+ r !== null && !this.checkName(i, r) && s(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
139
+ let a = e.indexOf("--");
140
+ if (a === -1) for (let n of t.breakpoints) this.getAttribute(`${e}--${n}`) || this.updateStyle(e, n, r, i);
141
+ else {
142
+ let t = e.slice(0, a), n = e.slice(a + 2);
143
+ this.updateStyle(t, n, r || this.getAttribute(t), i);
144
+ }
145
+ }
146
+ updateStyle(e, t, n, r) {
147
+ let i = `--flex-${e}--${t}-value`, a = e === "gap";
148
+ if (!n) this.$el.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
149
+ else if (a && r && r.includes(n)) {
150
+ let e = `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`;
151
+ this.$el.style.setProperty(i, e), this.style.setProperty(`--host-gap--${t}`, e);
152
+ } else this.$el.style.setProperty(i, n);
153
+ }
154
+ static {
155
+ this.breakpoints = [
156
+ "mobile",
157
+ "tablet",
158
+ "laptop",
159
+ "desktop"
160
+ ];
161
+ }
162
+ get direction() {
163
+ return this.getAttribute("direction") ?? "row";
164
+ }
165
+ set direction(e) {
166
+ c(this, "direction", e);
167
+ }
168
+ get directionMobile() {
169
+ return this.getAttribute("direction--mobile");
170
+ }
171
+ set directionMobile(e) {
172
+ c(this, "direction--mobile", e);
173
+ }
174
+ get directionTablet() {
175
+ return this.getAttribute("direction--tablet");
176
+ }
177
+ set directionTablet(e) {
178
+ c(this, "direction--tablet", e);
179
+ }
180
+ get directionLaptop() {
181
+ return this.getAttribute("direction--laptop");
182
+ }
183
+ set directionLaptop(e) {
184
+ c(this, "direction--laptop", e);
185
+ }
186
+ get directionDesktop() {
187
+ return this.getAttribute("direction--desktop");
188
+ }
189
+ set directionDesktop(e) {
190
+ c(this, "direction--desktop", e);
191
+ }
192
+ get gap() {
193
+ return this.getAttribute("gap") ?? "none";
194
+ }
195
+ set gap(e) {
196
+ c(this, "gap", e);
197
+ }
198
+ get gapMobile() {
199
+ return this.getAttribute("gap--mobile");
200
+ }
201
+ set gapMobile(e) {
202
+ c(this, "gap--mobile", e);
203
+ }
204
+ get gapTablet() {
205
+ return this.getAttribute("gap--tablet");
206
+ }
207
+ set gapTablet(e) {
208
+ c(this, "gap--tablet", e);
209
+ }
210
+ get gapLaptop() {
211
+ return this.getAttribute("gap--laptop");
212
+ }
213
+ set gapLaptop(e) {
214
+ c(this, "gap--laptop", e);
215
+ }
216
+ get gapDesktop() {
217
+ return this.getAttribute("gap--desktop");
218
+ }
219
+ set gapDesktop(e) {
220
+ c(this, "gap--desktop", e);
221
+ }
222
+ get justifyContent() {
223
+ return this.getAttribute("justify-content") ?? "flex-start";
224
+ }
225
+ set justifyContent(e) {
226
+ c(this, "justify-content", e);
227
+ }
228
+ get justifyContentMobile() {
229
+ return this.getAttribute("justify-content--mobile");
230
+ }
231
+ set justifyContentMobile(e) {
232
+ c(this, "justify-content--mobile", e);
233
+ }
234
+ get justifyContentTablet() {
235
+ return this.getAttribute("justify-content--tablet");
236
+ }
237
+ set justifyContentTablet(e) {
238
+ c(this, "justify-content--tablet", e);
239
+ }
240
+ get justifyContentLaptop() {
241
+ return this.getAttribute("justify-content--laptop");
242
+ }
243
+ set justifyContentLaptop(e) {
244
+ c(this, "justify-content--laptop", e);
245
+ }
246
+ get justifyContentDesktop() {
247
+ return this.getAttribute("justify-content--desktop");
248
+ }
249
+ set justifyContentDesktop(e) {
250
+ c(this, "justify-content--desktop", e);
251
+ }
252
+ get alignItems() {
253
+ return this.getAttribute("align-items") ?? "stretch";
254
+ }
255
+ set alignItems(e) {
256
+ c(this, "align-items", e);
257
+ }
258
+ get alignItemsMobile() {
259
+ return this.getAttribute("align-items--mobile");
260
+ }
261
+ set alignItemsMobile(e) {
262
+ c(this, "align-items--mobile", e);
263
+ }
264
+ get alignItemsTablet() {
265
+ return this.getAttribute("align-items--tablet");
266
+ }
267
+ set alignItemsTablet(e) {
268
+ c(this, "align-items--tablet", e);
269
+ }
270
+ get alignItemsLaptop() {
271
+ return this.getAttribute("align-items--laptop");
272
+ }
273
+ set alignItemsLaptop(e) {
274
+ c(this, "align-items--laptop", e);
275
+ }
276
+ get alignItemsDesktop() {
277
+ return this.getAttribute("align-items--desktop");
278
+ }
279
+ set alignItemsDesktop(e) {
280
+ c(this, "align-items--desktop", e);
281
+ }
282
+ get wrap() {
283
+ return this.getAttribute("wrap") ?? "nowrap";
284
+ }
285
+ set wrap(e) {
286
+ c(this, "wrap", e);
287
+ }
288
+ get wrapMobile() {
289
+ return this.getAttribute("wrap--mobile");
290
+ }
291
+ set wrapMobile(e) {
292
+ c(this, "wrap--mobile", e);
293
+ }
294
+ get wrapTablet() {
295
+ return this.getAttribute("wrap--tablet");
296
+ }
297
+ set wrapTablet(e) {
298
+ c(this, "wrap--tablet", e);
299
+ }
300
+ get wrapLaptop() {
301
+ return this.getAttribute("wrap--laptop");
302
+ }
303
+ set wrapLaptop(e) {
304
+ c(this, "wrap--laptop", e);
305
+ }
306
+ get wrapDesktop() {
307
+ return this.getAttribute("wrap--desktop");
308
+ }
309
+ set wrapDesktop(e) {
310
+ c(this, "wrap--desktop", e);
311
+ }
312
+ get overflowX() {
313
+ return this.getAttribute("overflow-x") ?? "visible";
314
+ }
315
+ set overflowX(e) {
316
+ c(this, "overflow-x", e);
317
+ }
318
+ get overflowXMobile() {
319
+ return this.getAttribute("overflow-x--mobile");
320
+ }
321
+ set overflowXMobile(e) {
322
+ c(this, "overflow-x--mobile", e);
323
+ }
324
+ get overflowXTablet() {
325
+ return this.getAttribute("overflow-x--tablet");
326
+ }
327
+ set overflowXTablet(e) {
328
+ c(this, "overflow-x--tablet", e);
329
+ }
330
+ get overflowXLaptop() {
331
+ return this.getAttribute("overflow-x--laptop");
332
+ }
333
+ set overflowXLaptop(e) {
334
+ c(this, "overflow-x--laptop", e);
335
+ }
336
+ get overflowXDesktop() {
337
+ return this.getAttribute("overflow-x--desktop");
338
+ }
339
+ set overflowXDesktop(e) {
340
+ c(this, "overflow-x--desktop", e);
341
+ }
342
+ get $el() {
343
+ return this.shadowRoot.firstElementChild;
344
+ }
150
345
  };
151
- l.nativeName = "div";
152
- let o = l;
153
- customElements.get("px-status") || customElements.define("px-status", o);
154
- export {
155
- o as Status,
156
- u as statusStateValues
346
+ customElements.get("px-stack") || customElements.define("px-stack", y);
347
+ var b = (e) => e === "direction" || e.startsWith("direction--"), x = class extends y {
348
+ get direction() {
349
+ return "column";
350
+ }
351
+ set direction(e) {
352
+ c(this, "direction", e);
353
+ }
354
+ attributeChangedCallback(e, t, n) {
355
+ b(e) || super.attributeChangedCallback(e, t, n);
356
+ }
157
357
  };
358
+ customElements.get("px-vstack") || customElements.define("px-vstack", x);
359
+ var S = class extends y {
360
+ get direction() {
361
+ return "row";
362
+ }
363
+ set direction(e) {
364
+ c(this, "direction", e);
365
+ }
366
+ attributeChangedCallback(e, t, n) {
367
+ b(e) || super.attributeChangedCallback(e, t, n);
368
+ }
369
+ };
370
+ customElements.get("px-hstack") || customElements.define("px-hstack", S);
371
+ //#endregion
372
+ //#region ../Layout/src/Spacer.ts
373
+ var C = class extends HTMLElement {
374
+ constructor() {
375
+ super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
376
+ }
377
+ static get observedAttributes() {
378
+ return ["grow", "nogap"];
379
+ }
380
+ attributeChangedCallback(e, t, n) {
381
+ e === "grow" && (this.growValue = n || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
382
+ }
383
+ connectedCallback() {
384
+ this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && this.parentElement && (this.resizeObserver = new ResizeObserver(() => {
385
+ this.handleSizeChange();
386
+ }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
387
+ }
388
+ disconnectedCallback() {
389
+ this.resizeObserver?.disconnect(), this.recheckHandle &&= (cancelAnimationFrame(this.recheckHandle), void 0);
390
+ }
391
+ get grow() {
392
+ return this.getAttribute("grow");
393
+ }
394
+ set grow(e) {
395
+ this.setAttribute("grow", `${e}`);
396
+ }
397
+ scheduleRecheck() {
398
+ this.recheckHandle && cancelAnimationFrame(this.recheckHandle), this.recheckHandle = requestAnimationFrame(() => {
399
+ this.recheckHandle = void 0, this.recalculateVisibility();
400
+ });
401
+ }
402
+ recalculateVisibility() {
403
+ this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
404
+ }
405
+ handleSizeChange() {
406
+ let e = this.getBoundingClientRect(), t = e.width === 0 && !this.isVertical || e.height === 0 && this.isVertical;
407
+ this.isZeroSized !== t && (this.isZeroSized = t, this.updateParticipation());
408
+ }
409
+ updateParticipation() {
410
+ this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
411
+ }
412
+ get nogap() {
413
+ return this.hasAttribute("nogap");
414
+ }
415
+ set nogap(e) {
416
+ e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
417
+ }
418
+ };
419
+ customElements.get("px-spacer") || customElements.define("px-spacer", C);
420
+ //#endregion
421
+ //#region ../Layout/src/Page.css?inline
422
+ var w = ":host{box-sizing:border-box;display:block}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", T = new CSSStyleSheet();
423
+ T.replaceSync(w);
424
+ var E = class extends n {
425
+ constructor() {
426
+ super(T), this.template = () => `
427
+ <px-container border-radius="none" padding="none">
428
+ <px-vstack>
429
+ <px-container id="header-container" border-radius="none">
430
+ <px-hstack>
431
+ <px-spacer></px-spacer>
432
+ <px-vstack
433
+ id="header-vstack-container"
434
+ gap="s"
435
+ grow="${this.grow}"
436
+ basis="${this.basis}"
437
+ >
438
+ <slot name="header-container"></slot>
439
+ </px-vstack>
440
+ <px-spacer></px-spacer>
441
+ </px-hstack>
442
+ </px-container>
443
+ <px-container
444
+ id="image-container"
445
+ border-radius="none"
446
+ padding="none"
447
+ padding-top="xl"
448
+ id="image-box"
449
+ background-size="cover"
450
+ background-position="top center"
451
+ padding-bottom="xl"
452
+ border-radius="none"
453
+ bgimg="${this.backgroundImage}"
454
+ >
455
+ <px-hstack>
456
+ <px-spacer></px-spacer>
457
+ <px-vstack grow="${this.grow}" basis="${this.basis}">
458
+ <slot name="image-container"></slot>
459
+ </px-vstack>
460
+ <px-spacer></px-spacer>
461
+ </px-hstack>
462
+ </px-container>
463
+ <px-container
464
+ id="body-container"
465
+ id="main"
466
+ background-color="${this.backgroundColor}"
467
+ padding="none"
468
+ padding-top="xl"
469
+ padding-bottom="xl"
470
+ >
471
+ <px-hstack>
472
+ <px-spacer></px-spacer>
473
+ <px-vstack
474
+ id="body-vstack-container"
475
+ gap="l"
476
+ grow="${this.grow}"
477
+ basis="${this.basis}"
478
+ >
479
+ <slot name="body-container"></slot>
480
+ </px-vstack>
481
+ <px-spacer></px-spacer>
482
+ </px-hstack>
483
+ </px-container>
484
+ <px-container
485
+ id="contact-container"
486
+ border-radius="none"
487
+ id="main"
488
+ background-color="surface-default"
489
+ padding="none"
490
+ padding-top="xl"
491
+ padding-bottom="xl"
492
+ >
493
+ <px-hstack>
494
+ <px-spacer></px-spacer>
495
+ <px-vstack gap="l" grow="${this.grow}" basis="${this.basis}">
496
+ <slot name="contact-container"></slot>
497
+ </px-vstack>
498
+ <px-spacer></px-spacer>
499
+ </px-hstack>
500
+ </px-container>
501
+ <px-container
502
+ id="footer-container"
503
+ background-color="none"
504
+ border-radius="none"
505
+ style="background-color: rgb(108, 66, 156)"
506
+ padding-top="xl"
507
+ padding-bottom="xl"
508
+ >
509
+ <px-hstack>
510
+ <px-spacer></px-spacer>
511
+ <px-vstack gap="l" grow="${this.grow}" basis="${this.basis}">
512
+ <slot name="footer-container"></slot>
513
+ </px-vstack>
514
+ <px-spacer></px-spacer>
515
+ </px-hstack>
516
+ </px-container>
517
+ </px-vstack>
518
+ </px-container>
519
+ `, l(this.shadowRoot, this.template());
520
+ }
521
+ static get observedAttributes() {
522
+ return [
523
+ ...super.observedAttributes,
524
+ "background-image",
525
+ "gap",
526
+ "background-color",
527
+ "padding-vertical",
528
+ "padding-horizontal"
529
+ ];
530
+ }
531
+ get $wideImage() {
532
+ return this.shadowRoot.querySelector("#image-box");
533
+ }
534
+ get $bodyVStackContainer() {
535
+ return this.shadowRoot.querySelector("#header-vstack-container");
536
+ }
537
+ get $bodyContainer() {
538
+ return this.shadowRoot.querySelector("#body-container");
539
+ }
540
+ get $contactContainer() {
541
+ return this.shadowRoot.querySelector("#contact-container");
542
+ }
543
+ get $footerContainer() {
544
+ return this.shadowRoot.querySelector("#footer-container");
545
+ }
546
+ get $headerContainer() {
547
+ return this.shadowRoot.querySelector("#header-container");
548
+ }
549
+ get $imageContainer() {
550
+ return this.shadowRoot.querySelector("#image-container");
551
+ }
552
+ get backgroundImage() {
553
+ return this.getAttribute("background-image");
554
+ }
555
+ get $main() {
556
+ return this.shadowRoot.querySelector("#main");
557
+ }
558
+ get backgroundColor() {
559
+ return this.getAttribute("background-color") || "none";
560
+ }
561
+ get paddingVertical() {
562
+ return this.getAttribute("padding-vertical");
563
+ }
564
+ get paddingHorizontal() {
565
+ return this.getAttribute("padding-horizontal");
566
+ }
567
+ set paddingVertical(e) {
568
+ this.setAttribute("padding-vertical", `${e}`);
569
+ }
570
+ set paddingHorizontal(e) {
571
+ this.setAttribute("padding-horizontal", `${e}`);
572
+ }
573
+ get gap() {
574
+ return this.getAttribute("gap");
575
+ }
576
+ connectedCallback() {
577
+ this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
578
+ }
579
+ attributeChangedCallback(e, t, n) {
580
+ if (t !== n) switch (e) {
581
+ case "background-image":
582
+ this.$imageContainer.setAttribute("background-image", n);
583
+ break;
584
+ case "gap":
585
+ this.$bodyVStackContainer.setAttribute("gap", n);
586
+ break;
587
+ case "background-color":
588
+ this.$bodyContainer.setAttribute("background-color", r.indexOf(n) > 0 ? n : "none");
589
+ break;
590
+ case "padding-vertical":
591
+ this.handlePaddingVerticalChange(n);
592
+ break;
593
+ case "padding-horizontal":
594
+ this.handlePaddingHorizontalChange(n);
595
+ break;
596
+ default: super.attributeChangedCallback(e, t, n);
597
+ }
598
+ }
599
+ handlePaddingVerticalChange(e) {
600
+ this.$bodyContainer.paddingTop = e, this.$bodyContainer.paddingBottom = e;
601
+ }
602
+ handlePaddingHorizontalChange(e) {
603
+ this.$headerContainer.paddingLeft = e, this.$headerContainer.paddingRight = e, this.$bodyContainer.paddingLeft = e, this.$bodyContainer.paddingRight = e, this.$contactContainer.paddingLeft = e, this.$contactContainer.paddingRight = e, this.$footerContainer.paddingLeft = e, this.$footerContainer.paddingRight = e, this.$imageContainer.paddingLeft = e, this.$imageContainer.paddingRight = e;
604
+ }
605
+ };
606
+ customElements.get("px-page") === void 0 && customElements.define("px-page", E);
607
+ //#endregion
608
+ //#region src/Status.ts
609
+ var D = new CSSStyleSheet();
610
+ D.replaceSync(u);
611
+ var O = [
612
+ "",
613
+ "info",
614
+ "success",
615
+ "warning",
616
+ "error",
617
+ "ongoing",
618
+ "unlimited"
619
+ ], k = class e extends t {
620
+ static {
621
+ this.template = a("<div class=\"status\"><px-hstack gap=\"2xs\" align-items=\"flex-start\"><px-icon name=\"information_fill\" from=\"lavender\" size=\"s\" color=\"brand\"></px-icon><slot name=\"label\"></slot></px-hstack></div>");
622
+ }
623
+ static {
624
+ this.nativeName = "div";
625
+ }
626
+ constructor() {
627
+ super(D), l(this.shadowRoot, e.template);
628
+ }
629
+ static get observedAttributes() {
630
+ return [
631
+ "state",
632
+ "icon-only",
633
+ "icon-only--mobile",
634
+ "icon-only--tablet",
635
+ "icon-only--laptop",
636
+ "disabled",
637
+ "inverted",
638
+ "icon-aria-label"
639
+ ];
640
+ }
641
+ attributeChangedCallback(e, t, n) {
642
+ if (t !== n) switch (e) {
643
+ case "state":
644
+ this.updateState(n), this.$el.classList.toggle(`${n}`);
645
+ break;
646
+ case "icon-aria-label":
647
+ this.$statusIcon.setAttribute("aria-label", n);
648
+ break;
649
+ case "icon-only":
650
+ this.updateIconOnly(null);
651
+ break;
652
+ case "icon-only--mobile":
653
+ this.updateIconOnly("mobile");
654
+ break;
655
+ case "icon-only--tablet":
656
+ this.updateIconOnly("tablet");
657
+ break;
658
+ case "icon-only--laptop":
659
+ this.updateIconOnly("laptop");
660
+ break;
661
+ case "disabled":
662
+ this.$el.toggleAttribute("disabled", n !== null), this.$statusIcon.color = "state-disabled";
663
+ break;
664
+ case "inverted":
665
+ for (let e = 0; e < this.$children.length; e++) this.$children[e].hasAttribute("inverted") || this.$children[e].toggleAttribute("inverted");
666
+ this.$el.toggleAttribute("inverted", n !== null), this.$statusIcon.toggleAttribute("inverted", n !== null);
667
+ break;
668
+ default: super.attributeChangedCallback(e, t, n);
669
+ }
670
+ }
671
+ updateState(e) {
672
+ if (!this.checkName(O, e)) {
673
+ s(`"${e}" is not a valid state value for ${this.tagName.toLowerCase()}. Allowed values are: "${O.join("\", \"")}".`);
674
+ return;
675
+ }
676
+ let t = {
677
+ info: {
678
+ name: "information_fill",
679
+ color: "brand"
680
+ },
681
+ success: {
682
+ name: "checkmark_fill",
683
+ color: "purpose-success"
684
+ },
685
+ warning: {
686
+ name: "exclamation_mark_fill",
687
+ color: "purpose-warning"
688
+ },
689
+ error: {
690
+ name: "minus_fill",
691
+ color: "purpose-error"
692
+ },
693
+ ongoing: {
694
+ name: "clock_fill",
695
+ color: "purpose-warning"
696
+ },
697
+ unlimited: {
698
+ name: "infinity_fill",
699
+ color: "purpose-unlimited"
700
+ }
701
+ }, { name: n, color: r } = t[e] || t.info;
702
+ this.$statusIcon.name = n, this.$statusIcon.color = r;
703
+ }
704
+ updateIconOnly(e) {
705
+ let t = e ? `--${e}` : "";
706
+ this.$label.setAttribute(`shown--sr${t}`, ""), (e === "laptop" || e === null) && this.$statusIcon.setAttribute("title", this.$label.textContent?.trim() || "");
707
+ }
708
+ get $label() {
709
+ return this.querySelector("[slot=\"label\"]");
710
+ }
711
+ get $statusIcon() {
712
+ return this.shadowRoot.querySelector("px-icon");
713
+ }
714
+ get $children() {
715
+ return this.querySelectorAll("px-status > *");
716
+ }
717
+ get state() {
718
+ return this.getAttribute("state");
719
+ }
720
+ set state(e) {
721
+ this._updateAttribute("state", e);
722
+ }
723
+ get iconAriaLabel() {
724
+ return this.getAttribute("icon-aria-label");
725
+ }
726
+ set iconAriaLabel(e) {
727
+ this._updateAttribute("icon-aria-label", e);
728
+ }
729
+ get iconOnly() {
730
+ return this.hasAttribute("icon-only");
731
+ }
732
+ set iconOnly(e) {
733
+ this._updateBooleanAttribute("icon-only", e);
734
+ }
735
+ get iconOnlyMobile() {
736
+ return this.hasAttribute("icon-only--mobile");
737
+ }
738
+ set iconOnlyMobile(e) {
739
+ this._updateBooleanAttribute("icon-only--mobile", e);
740
+ }
741
+ get iconOnlyTablet() {
742
+ return this.hasAttribute("icon-only--tablet");
743
+ }
744
+ set iconOnlyTablet(e) {
745
+ this._updateBooleanAttribute("icon-only--tablet", e);
746
+ }
747
+ get iconOnlyLaptop() {
748
+ return this.hasAttribute("icon-only--laptop");
749
+ }
750
+ set iconOnlyLaptop(e) {
751
+ this._updateBooleanAttribute("icon-only--laptop", e);
752
+ }
753
+ get disabled() {
754
+ return this.hasAttribute("disabled");
755
+ }
756
+ set disabled(e) {
757
+ this._updateBooleanAttribute("disabled", e);
758
+ }
759
+ get inverted() {
760
+ return this.hasAttribute("inverted");
761
+ }
762
+ set inverted(e) {
763
+ this._updateBooleanAttribute("inverted", e);
764
+ }
765
+ };
766
+ customElements.get("px-status") || customElements.define("px-status", k);
767
+ //#endregion
768
+ export { k as Status, O as statusStateValues };
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "properties": [],
5
+ "pseudoElements": []
6
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "tags": [
5
+ {
6
+ "name": "px-status",
7
+ "description": "\n---\n",
8
+ "attributes": [
9
+ { "name": "state", "values": [] },
10
+ { "name": "icon-only", "values": [] },
11
+ { "name": "icon-only--mobile", "values": [] },
12
+ { "name": "icon-only--tablet", "values": [] },
13
+ { "name": "icon-only--laptop", "values": [] },
14
+ { "name": "disabled", "values": [] },
15
+ { "name": "inverted", "values": [] },
16
+ { "name": "icon-aria-label", "values": [] }
17
+ ],
18
+ "references": []
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
+ "name": "@proximus/lavender-status",
4
+ "version": "2.0.0-alpha.210",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "px-status",
11
+ "description": "\n\n---\n",
12
+ "doc-url": "",
13
+ "attributes": [
14
+ { "name": "state", "value": { "type": "string" } },
15
+ { "name": "icon-only", "value": { "type": "string" } },
16
+ { "name": "icon-only--mobile", "value": { "type": "string" } },
17
+ { "name": "icon-only--tablet", "value": { "type": "string" } },
18
+ { "name": "icon-only--laptop", "value": { "type": "string" } },
19
+ { "name": "disabled", "value": { "type": "string" } },
20
+ { "name": "inverted", "value": { "type": "string" } },
21
+ { "name": "icon-aria-label", "value": { "type": "string" } }
22
+ ],
23
+ "events": [],
24
+ "js": {
25
+ "properties": [
26
+ { "name": "$label" },
27
+ { "name": "$statusIcon" },
28
+ { "name": "$children" },
29
+ { "name": "state" },
30
+ { "name": "iconAriaLabel" },
31
+ { "name": "iconOnly" },
32
+ { "name": "iconOnlyMobile" },
33
+ { "name": "iconOnlyTablet" },
34
+ { "name": "iconOnlyLaptop" },
35
+ { "name": "disabled" },
36
+ { "name": "inverted" }
37
+ ],
38
+ "events": []
39
+ }
40
+ }
41
+ ]
42
+ },
43
+ "css": {
44
+ "properties": [],
45
+ "pseudo-elements": []
46
+ }
47
+ }
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-status",
3
- "version": "2.0.0-alpha.21",
3
+ "version": "2.0.0-alpha.210",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "clean": "rm -rf dist",
14
14
  "build": "npm run clean && NODE_ENV=development vite build && tsc && npm run transform-package-json && npm run wc-manifest",
15
15
  "test": "vitest run --coverage",
16
- "wc-manifest": "cem analyze --globs \"src/*\" --config ../custom-elements-manifest.config.js --outdir dist"
16
+ "wc-manifest": "cem analyze --globs \"src/*\" --config ../../custom-elements-manifest.config.js --outdir dist"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"