@proximus/lavender-phone-number 1.4.19-beta.2 → 1.4.19-beta.4
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/PhoneNumber.d.ts +2 -3
- package/dist/custom-elements.json +1 -10
- package/dist/index.es.js +9 -12
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/PhoneNumber.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WithExtraAttributes } from '@proximus/lavender-common';
|
|
2
2
|
import '@proximus/lavender-layout';
|
|
3
3
|
import '@proximus/lavender-fieldset';
|
|
4
|
-
export declare class PhoneNumber extends
|
|
4
|
+
export declare class PhoneNumber extends WithExtraAttributes {
|
|
5
5
|
protected static readonly template: HTMLTemplateElement;
|
|
6
|
-
static nativeName: string;
|
|
7
6
|
private fieldStateObserver?;
|
|
8
7
|
constructor();
|
|
9
8
|
connectedCallback(): void;
|
|
@@ -18,15 +18,6 @@
|
|
|
18
18
|
"static": true,
|
|
19
19
|
"readonly": true
|
|
20
20
|
},
|
|
21
|
-
{
|
|
22
|
-
"kind": "field",
|
|
23
|
-
"name": "nativeName",
|
|
24
|
-
"type": {
|
|
25
|
-
"text": "string"
|
|
26
|
-
},
|
|
27
|
-
"static": true,
|
|
28
|
-
"default": "'div'"
|
|
29
|
-
},
|
|
30
21
|
{
|
|
31
22
|
"kind": "field",
|
|
32
23
|
"name": "fieldStateObserver",
|
|
@@ -138,7 +129,7 @@
|
|
|
138
129
|
}
|
|
139
130
|
],
|
|
140
131
|
"superclass": {
|
|
141
|
-
"name": "
|
|
132
|
+
"name": "WithExtraAttributes",
|
|
142
133
|
"package": "@proximus/lavender-common"
|
|
143
134
|
},
|
|
144
135
|
"tagName": "px-phone-number",
|
package/dist/index.es.js
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WithExtraAttributes as e, createTemplate as t, log as n, propertyToAttributeSetter as r, renderTemplate as i } from "@proximus/lavender-common";
|
|
2
2
|
import "@proximus/lavender-layout";
|
|
3
3
|
import "@proximus/lavender-fieldset";
|
|
4
4
|
// src/phone-number.css?inline
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var
|
|
5
|
+
var a = ":host{display:block}:host *{box-sizing:border-box}::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);text-align:left;color:var(--px-color-text-neutral-default);margin-bottom:var(--px-spacing-2xs-mobile);display:block}@media screen and (width>=48rem){::slotted([slot=label]){font-size:var(--px-text-size-label-m-tablet);margin-bottom:var(--px-spacing-2xs-tablet)}}@media screen and (width>=64.0625rem){::slotted([slot=label]){font-size:var(--px-text-size-label-m-laptop);margin-bottom:var(--px-spacing-2xs-laptop)}}@media screen and (width>=90.0625rem){::slotted([slot=label]){font-size:var(--px-text-size-label-m-desktop);margin-bottom:var(--px-spacing-2xs-desktop)}}", o = new CSSStyleSheet();
|
|
6
|
+
o.replaceSync(a);
|
|
7
|
+
var s = class a extends e {
|
|
8
8
|
static {
|
|
9
9
|
this.template = t("<px-fieldset><slot name=\"label\" slot=\"legend\"></slot><slot name=\"helper\" slot=\"helper\"></slot><slot name=\"state-text\" slot=\"error-text\"></slot><px-hstack gap=\"xs\"><slot name=\"select\"></slot><slot name=\"input\"></slot></px-hstack></px-fieldset>");
|
|
10
10
|
}
|
|
11
|
-
static {
|
|
12
|
-
this.nativeName = "div";
|
|
13
|
-
}
|
|
14
11
|
constructor() {
|
|
15
|
-
super(
|
|
12
|
+
super(o), i(this.shadowRoot, a.template);
|
|
16
13
|
}
|
|
17
14
|
connectedCallback() {
|
|
18
15
|
this.$slotSelect?.addEventListener("slotchange", () => this.setupErrorState()), this.$slotInput?.addEventListener("slotchange", () => this.setupErrorState()), this.$slotHelper?.addEventListener("slotchange", () => this.setupErrorState()), this.fieldStateObserver = new MutationObserver(() => this.setupErrorState()), this.fieldStateObserver.observe(this, {
|
|
@@ -88,14 +85,14 @@ var o = class i extends e {
|
|
|
88
85
|
return this.getAttribute("state") || "";
|
|
89
86
|
}
|
|
90
87
|
set state(e) {
|
|
91
|
-
|
|
88
|
+
r(this, "state", e);
|
|
92
89
|
}
|
|
93
90
|
get inverted() {
|
|
94
91
|
return this.hasAttribute("inverted");
|
|
95
92
|
}
|
|
96
93
|
set inverted(e) {
|
|
97
|
-
|
|
94
|
+
r(this, "inverted", e);
|
|
98
95
|
}
|
|
99
96
|
};
|
|
100
|
-
customElements.get("px-phone-number") || customElements.define("px-phone-number",
|
|
101
|
-
export {
|
|
97
|
+
customElements.get("px-phone-number") || customElements.define("px-phone-number", s);
|
|
98
|
+
export { s as PhoneNumber };
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@proximus/lavender-phone-number",
|
|
4
|
-
"version": "1.4.19-beta.
|
|
4
|
+
"version": "1.4.19-beta.4",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|