@utrecht/web-component-library-stencil
Version:
Stencil component library bundle for the Municipality of Utrecht based on the NL Design System architecture
52 lines (51 loc) • 1.47 kB
JavaScript
/**
* @license EUPL-1.2
* Copyright (c) 2020-2024 Frameless B.V.
* Copyright (c) 2021-2024 Gemeente Utrecht
*/
import { h } from "@stencil/core";
export class NumberData {
constructor() {
this.value = undefined;
}
render() {
const { value } = this;
return typeof value === 'number' || typeof value === 'string' ? (
// <data value={String(value)}>
h("data", { "data-value": String(value) }, h("slot", null))) : (h("span", null, h("slot", null)));
}
static get is() { return "utrecht-number-data"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() {
return {
"$": ["number-data.scss"]
};
}
static get styleUrls() {
return {
"$": ["number-data.css"]
};
}
static get properties() {
return {
"value": {
"type": "any",
"mutable": false,
"complexType": {
"original": "number | string",
"resolved": "number | string",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"attribute": "value",
"reflect": false
}
};
}
}
//# sourceMappingURL=number-data.js.map