@proximus/lavender-common 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/breakpoints.d.ts +1 -1
- package/dist/common.d.ts +102 -83
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +741 -924
- package/dist/template.d.ts +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Declares a static template. Call it once, at module level, with a plain
|
|
3
|
+
* template literal: the build (scripts/vite-plugin-minify-templates.js)
|
|
4
|
+
* strips the whitespace between tags so clones contain no empty text nodes.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createTemplate(html: string): HTMLTemplateElement;
|
|
7
|
+
export declare function getTemplate(html: string): HTMLTemplateElement;
|
|
8
|
+
/**
|
|
9
|
+
* Drop-in replacement for `root.innerHTML = html`: replaces the children of
|
|
10
|
+
* `root` with a clone of the parsed template.
|
|
11
|
+
* `importNode` creates the nodes in the current document, so nested custom
|
|
12
|
+
* elements are upgraded synchronously, exactly like with `innerHTML`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function renderTemplate(root: ShadowRoot | Element | DocumentFragment, template: HTMLTemplateElement | string): void;
|