UNPKG

1.35 kBTypeScriptView Raw
1/**
2 * DO NOT EDIT
3 *
4 * This file was automatically generated by
5 * https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations
6 *
7 * To modify these typings, edit the source file(s):
8 * url-bar.js
9 */
10
11import {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';
12
13import {html} from '@polymer/polymer/lib/utils/html-tag.js';
14
15import {LegacyElementMixin} from '@polymer/polymer/lib/legacy/legacy-element-mixin.js';
16
17/**
18 * `url-bar` is a helper element that displays a simple read-only URL bar if
19 * and only if the page is in an iframe. In this way we can demo elements that
20 * deal with the URL in our iframe-based demo environments.
21 *
22 * If the page is not in an iframe, the url-bar element is not displayed.
23 *
24 * ### Styling
25 *
26 * The following custom properties and mixins are available for styling:
27 *
28 * Custom property | Description | Default
29 * ----------------|-------------|----------
30 * `--url-bar` | Mixin applied to the entire element | `{}`
31 */
32interface UrlBarElement extends LegacyElementMixin, HTMLElement {
33 readonly url: string|null|undefined;
34 inIframe: boolean|null|undefined;
35 path: string|null|undefined;
36 query: string|null|undefined;
37 hash: string|null|undefined;
38}
39
40export {UrlBarElement};
41
42declare global {
43
44 interface HTMLElementTagNameMap {
45 "url-bar": UrlBarElement;
46 }
47}