UNPKG

@utrecht/web-component-library-stencil

Version:

Stencil component library bundle for the Municipality of Utrecht based on the NL Design System architecture

67 lines (66 loc) 2.06 kB
/** * @license EUPL-1.2 * Copyright (c) 2020-2024 Frameless B.V. * Copyright (c) 2021-2024 Gemeente Utrecht */ import { h, Host } from "@stencil/core"; export class PreserveData { constructor() { this.dateTime = undefined; this.value = undefined; } render() { const { dateTime, value } = this; return (h(Host, { key: '0af80ca8f8d5649a10e1ad32f93e55f8b826f251', translate: "no" }, typeof dateTime !== 'undefined' ? (h("time", { dateTime: dateTime }, h("slot", null))) : typeof value !== 'undefined' ? (h("data", { value: value }, h("slot", null))) : (h("slot", null)))); } static get is() { return "utrecht-preserve-data"; } static get originalStyleUrls() { return { "$": ["preserve-data.scss"] }; } static get styleUrls() { return { "$": ["preserve-data.css"] }; } static get properties() { return { "dateTime": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": true, "docs": { "tags": [], "text": "" }, "attribute": "datetime", "reflect": true }, "value": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": true, "docs": { "tags": [], "text": "" }, "attribute": "value", "reflect": false } }; } } //# sourceMappingURL=preserve-data.js.map