@davidsouther/jiffies 1.0.0-beta.1
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/README.md +60 -0
- package/build/assert.d.ts +23 -0
- package/build/assert.js +33 -0
- package/build/case.d.ts +1 -0
- package/build/case.js +5 -0
- package/build/components/button_bar.d.ts +8 -0
- package/build/components/button_bar.js +16 -0
- package/build/components/index.d.ts +1 -0
- package/build/components/index.js +1 -0
- package/build/components/inline_edit.d.ts +12 -0
- package/build/components/inline_edit.js +48 -0
- package/build/components/logger.d.ts +7 -0
- package/build/components/logger.js +22 -0
- package/build/components/select.d.ts +13 -0
- package/build/components/select.js +3 -0
- package/build/components/test.d.ts +1 -0
- package/build/components/test.js +2 -0
- package/build/components/virtual_scroll.d.ts +41 -0
- package/build/components/virtual_scroll.js +94 -0
- package/build/components/virtual_scroll.test.d.ts +1 -0
- package/build/components/virtual_scroll.test.js +21 -0
- package/build/context.d.ts +15 -0
- package/build/context.js +43 -0
- package/build/context.test.d.ts +1 -0
- package/build/context.test.js +46 -0
- package/build/debounce.d.ts +1 -0
- package/build/debounce.js +7 -0
- package/build/display.d.ts +5 -0
- package/build/display.js +3 -0
- package/build/dom/css/border.d.ts +11 -0
- package/build/dom/css/border.js +27 -0
- package/build/dom/css/constants.d.ts +31 -0
- package/build/dom/css/constants.js +28 -0
- package/build/dom/css/core.d.ts +5 -0
- package/build/dom/css/core.js +24 -0
- package/build/dom/css/fstyle.d.ts +5 -0
- package/build/dom/css/fstyle.js +32 -0
- package/build/dom/css/sizing.d.ts +5 -0
- package/build/dom/css/sizing.js +10 -0
- package/build/dom/dom.d.ts +27 -0
- package/build/dom/dom.js +94 -0
- package/build/dom/fc.d.ts +14 -0
- package/build/dom/fc.js +35 -0
- package/build/dom/fc.test.d.ts +1 -0
- package/build/dom/fc.test.js +21 -0
- package/build/dom/form/form.app.d.ts +1 -0
- package/build/dom/form/form.app.js +23 -0
- package/build/dom/form/form.d.ts +25 -0
- package/build/dom/form/form.js +25 -0
- package/build/dom/form/form.test.d.ts +0 -0
- package/build/dom/form/form.test.js +1 -0
- package/build/dom/html.d.ts +117 -0
- package/build/dom/html.js +114 -0
- package/build/dom/html.test.d.ts +1 -0
- package/build/dom/html.test.js +58 -0
- package/build/dom/router/link.d.ts +6 -0
- package/build/dom/router/link.js +3 -0
- package/build/dom/router/router.d.ts +12 -0
- package/build/dom/router/router.js +49 -0
- package/build/dom/svg.d.ts +64 -0
- package/build/dom/svg.js +65 -0
- package/build/dom/test.d.ts +1 -0
- package/build/dom/test.js +2 -0
- package/build/dom/types/css.d.ts +6612 -0
- package/build/dom/types/css.js +23 -0
- package/build/dom/types/dom.d.ts +0 -0
- package/build/dom/types/dom.js +1 -0
- package/build/dom/types/html.d.ts +616 -0
- package/build/dom/types/html.js +1 -0
- package/build/dom/xml.d.ts +1 -0
- package/build/dom/xml.js +5 -0
- package/build/equal.d.ts +4 -0
- package/build/equal.js +22 -0
- package/build/equal.test.d.ts +1 -0
- package/build/equal.test.js +20 -0
- package/build/flags.d.ts +7 -0
- package/build/flags.js +48 -0
- package/build/flags.test.d.ts +1 -0
- package/build/flags.test.js +35 -0
- package/build/generator.d.ts +1 -0
- package/build/generator.js +10 -0
- package/build/generator.test.d.ts +1 -0
- package/build/generator.test.js +24 -0
- package/build/index.d.ts +13 -0
- package/build/index.js +13 -0
- package/build/is_browser.d.ts +1 -0
- package/build/is_browser.js +1 -0
- package/build/loader.d.mts +22 -0
- package/build/loader.mjs +35 -0
- package/build/lock.d.ts +1 -0
- package/build/lock.js +23 -0
- package/build/lock.test.d.ts +1 -0
- package/build/lock.test.js +16 -0
- package/build/log.d.ts +26 -0
- package/build/log.js +34 -0
- package/build/parcel_resolver.d.ts +3 -0
- package/build/parcel_resolver.js +19 -0
- package/build/range.d.ts +1 -0
- package/build/range.js +7 -0
- package/build/result.d.ts +31 -0
- package/build/result.js +65 -0
- package/build/result.test.d.ts +1 -0
- package/build/result.test.js +71 -0
- package/build/safe.d.ts +1 -0
- package/build/safe.js +10 -0
- package/build/scope/describe.d.ts +14 -0
- package/build/scope/describe.js +52 -0
- package/build/scope/display/console.d.ts +2 -0
- package/build/scope/display/console.js +21 -0
- package/build/scope/display/dom.d.ts +3 -0
- package/build/scope/display/dom.js +26 -0
- package/build/scope/display/junit.d.ts +2 -0
- package/build/scope/display/junit.js +17 -0
- package/build/scope/execute.d.ts +12 -0
- package/build/scope/execute.js +85 -0
- package/build/scope/expect.d.ts +23 -0
- package/build/scope/expect.js +107 -0
- package/build/scope/fix.d.ts +4 -0
- package/build/scope/fix.js +22 -0
- package/build/scope/index.d.ts +3 -0
- package/build/scope/index.js +3 -0
- package/build/scope/scope.d.ts +17 -0
- package/build/scope/scope.js +1 -0
- package/build/server/http/apps.d.ts +5 -0
- package/build/server/http/apps.js +23 -0
- package/build/server/http/index.d.ts +21 -0
- package/build/server/http/index.js +71 -0
- package/build/server/http/response.d.ts +4 -0
- package/build/server/http/response.js +37 -0
- package/build/server/http/sitemap.d.ts +2 -0
- package/build/server/http/sitemap.js +42 -0
- package/build/server/http/static.d.ts +2 -0
- package/build/server/http/static.js +21 -0
- package/build/server/http/typescript.d.ts +5 -0
- package/build/server/http/typescript.js +40 -0
- package/build/server/main.d.ts +2 -0
- package/build/server/main.js +9 -0
- package/build/test.d.mts +2 -0
- package/build/test.mjs +23 -0
- package/build/test_all.d.ts +1 -0
- package/build/test_all.js +19 -0
- package/build/transpile.d.mts +3 -0
- package/build/transpile.mjs +18 -0
- package/package.json +36 -0
- package/src/404.html +14 -0
- package/src/assert.ts +50 -0
- package/src/case.ts +5 -0
- package/src/components/_notes +33 -0
- package/src/components/button_bar.ts +38 -0
- package/src/components/inline_edit.ts +77 -0
- package/src/components/logger.ts +36 -0
- package/src/components/select.ts +22 -0
- package/src/components/test.js +2 -0
- package/src/components/virtual_scroll.test.ts +27 -0
- package/src/components/virtual_scroll.ts +194 -0
- package/src/context.test.ts +58 -0
- package/src/context.ts +62 -0
- package/src/debounce.ts +7 -0
- package/src/display.ts +12 -0
- package/src/dom/README.md +102 -0
- package/src/dom/css/border.ts +47 -0
- package/src/dom/css/constants.ts +34 -0
- package/src/dom/css/core.ts +28 -0
- package/src/dom/css/fstyle.ts +42 -0
- package/src/dom/css/sizing.ts +11 -0
- package/src/dom/dom.ts +153 -0
- package/src/dom/fc.test.ts +43 -0
- package/src/dom/fc.ts +79 -0
- package/src/dom/form/form.app.ts +50 -0
- package/src/dom/form/form.test.ts +0 -0
- package/src/dom/form/form.ts +53 -0
- package/src/dom/form/index.html +14 -0
- package/src/dom/html.test.ts +72 -0
- package/src/dom/html.ts +129 -0
- package/src/dom/router/link.ts +14 -0
- package/src/dom/router/router.ts +69 -0
- package/src/dom/svg.ts +77 -0
- package/src/dom/test.ts +2 -0
- package/src/dom/types/css.ts +10106 -0
- package/src/dom/types/dom.ts +0 -0
- package/src/dom/types/html.ts +631 -0
- package/src/dom/xml.ts +12 -0
- package/src/equal.test.ts +23 -0
- package/src/equal.ts +32 -0
- package/src/favicon.ico +0 -0
- package/src/flags.test.ts +43 -0
- package/src/flags.ts +53 -0
- package/src/generator.test.ts +26 -0
- package/src/generator.ts +12 -0
- package/src/hooks/_notes +3 -0
- package/src/index.html +79 -0
- package/src/is_browser.js +1 -0
- package/src/loader.mjs +45 -0
- package/src/lock.test.ts +17 -0
- package/src/lock.ts +22 -0
- package/src/log.ts +61 -0
- package/src/observable/_notes +13 -0
- package/src/observable/observable._js +175 -0
- package/src/range.ts +7 -0
- package/src/result.test.ts +98 -0
- package/src/result.ts +107 -0
- package/src/safe.ts +12 -0
- package/src/scope/describe.ts +70 -0
- package/src/scope/display/console.ts +26 -0
- package/src/scope/display/dom.ts +36 -0
- package/src/scope/display/junit.ts +67 -0
- package/src/scope/execute.ts +108 -0
- package/src/scope/expect.ts +170 -0
- package/src/scope/fix.ts +29 -0
- package/src/scope/index.ts +11 -0
- package/src/scope/scope.ts +21 -0
- package/src/server/http/apps.ts +26 -0
- package/src/server/http/index.ts +119 -0
- package/src/server/http/response.ts +47 -0
- package/src/server/http/sitemap.ts +48 -0
- package/src/server/http/static.ts +27 -0
- package/src/server/http/typescript.ts +46 -0
- package/src/server/main.ts +13 -0
- package/src/test.mjs +29 -0
- package/src/test_all.ts +22 -0
- package/src/transpile.mjs +29 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { up } from "./dom.js";
|
|
2
|
+
const makeHTMLElement = (name) => (attrs, ...children) => up(document.createElement(name), attrs, ...children);
|
|
3
|
+
export const a = makeHTMLElement("a");
|
|
4
|
+
export const abbr = makeHTMLElement("abbr");
|
|
5
|
+
export const address = makeHTMLElement("address");
|
|
6
|
+
export const area = makeHTMLElement("area");
|
|
7
|
+
export const article = makeHTMLElement("article");
|
|
8
|
+
export const aside = makeHTMLElement("aside");
|
|
9
|
+
export const audio = makeHTMLElement("audio");
|
|
10
|
+
export const b = makeHTMLElement("b");
|
|
11
|
+
export const base = makeHTMLElement("base");
|
|
12
|
+
export const bdi = makeHTMLElement("bdi");
|
|
13
|
+
export const bdo = makeHTMLElement("bdo");
|
|
14
|
+
export const blockquote = makeHTMLElement("blockquote");
|
|
15
|
+
export const body = makeHTMLElement("body");
|
|
16
|
+
export const br = makeHTMLElement("br");
|
|
17
|
+
export const button = makeHTMLElement("button");
|
|
18
|
+
export const canvas = makeHTMLElement("canvas");
|
|
19
|
+
export const caption = makeHTMLElement("caption");
|
|
20
|
+
export const cite = makeHTMLElement("cite");
|
|
21
|
+
export const code = makeHTMLElement("code");
|
|
22
|
+
export const col = makeHTMLElement("col");
|
|
23
|
+
export const colgroup = makeHTMLElement("colgroup");
|
|
24
|
+
export const data = makeHTMLElement("data");
|
|
25
|
+
export const datalist = makeHTMLElement("datalist");
|
|
26
|
+
export const dd = makeHTMLElement("dd");
|
|
27
|
+
export const del = makeHTMLElement("del");
|
|
28
|
+
export const details = makeHTMLElement("details");
|
|
29
|
+
export const dfn = makeHTMLElement("dfn");
|
|
30
|
+
export const dialog = makeHTMLElement("dialog");
|
|
31
|
+
export const div = makeHTMLElement("div");
|
|
32
|
+
export const dl = makeHTMLElement("dl");
|
|
33
|
+
export const dt = makeHTMLElement("dt");
|
|
34
|
+
export const em = makeHTMLElement("em");
|
|
35
|
+
export const embed = makeHTMLElement("embed");
|
|
36
|
+
export const fieldset = makeHTMLElement("fieldset");
|
|
37
|
+
export const figcaption = makeHTMLElement("figcaption");
|
|
38
|
+
export const figure = makeHTMLElement("figure");
|
|
39
|
+
export const footer = makeHTMLElement("footer");
|
|
40
|
+
export const form = makeHTMLElement("form");
|
|
41
|
+
export const h1 = makeHTMLElement("h1");
|
|
42
|
+
export const h2 = makeHTMLElement("h2");
|
|
43
|
+
export const h3 = makeHTMLElement("h3");
|
|
44
|
+
export const h4 = makeHTMLElement("h4");
|
|
45
|
+
export const h5 = makeHTMLElement("h5");
|
|
46
|
+
export const h6 = makeHTMLElement("h6");
|
|
47
|
+
export const head = makeHTMLElement("head");
|
|
48
|
+
export const header = makeHTMLElement("header");
|
|
49
|
+
export const hgroup = makeHTMLElement("hgroup");
|
|
50
|
+
export const hr = makeHTMLElement("hr");
|
|
51
|
+
export const html = makeHTMLElement("html");
|
|
52
|
+
export const i = makeHTMLElement("i");
|
|
53
|
+
export const iframe = makeHTMLElement("iframe");
|
|
54
|
+
export const img = makeHTMLElement("img");
|
|
55
|
+
export const input = makeHTMLElement("input");
|
|
56
|
+
export const ins = makeHTMLElement("ins");
|
|
57
|
+
export const kbd = makeHTMLElement("kbd");
|
|
58
|
+
export const label = makeHTMLElement("label");
|
|
59
|
+
export const legend = makeHTMLElement("legend");
|
|
60
|
+
export const li = makeHTMLElement("li");
|
|
61
|
+
export const link = makeHTMLElement("link");
|
|
62
|
+
export const main = makeHTMLElement("main");
|
|
63
|
+
export const map = makeHTMLElement("map");
|
|
64
|
+
export const mark = makeHTMLElement("mark");
|
|
65
|
+
export const menu = makeHTMLElement("menu");
|
|
66
|
+
export const meta = makeHTMLElement("meta");
|
|
67
|
+
export const meter = makeHTMLElement("meter");
|
|
68
|
+
export const nav = makeHTMLElement("nav");
|
|
69
|
+
export const noscript = makeHTMLElement("noscript");
|
|
70
|
+
export const object = makeHTMLElement("object");
|
|
71
|
+
export const ol = makeHTMLElement("ol");
|
|
72
|
+
export const optgroup = makeHTMLElement("optgroup");
|
|
73
|
+
export const option = makeHTMLElement("option");
|
|
74
|
+
export const output = makeHTMLElement("output");
|
|
75
|
+
export const p = makeHTMLElement("p");
|
|
76
|
+
export const param = makeHTMLElement("param");
|
|
77
|
+
export const picture = makeHTMLElement("picture");
|
|
78
|
+
export const pre = makeHTMLElement("pre");
|
|
79
|
+
export const progress = makeHTMLElement("progress");
|
|
80
|
+
export const q = makeHTMLElement("q");
|
|
81
|
+
export const rp = makeHTMLElement("rp");
|
|
82
|
+
export const rt = makeHTMLElement("rt");
|
|
83
|
+
export const ruby = makeHTMLElement("ruby");
|
|
84
|
+
export const s = makeHTMLElement("s");
|
|
85
|
+
export const samp = makeHTMLElement("samp");
|
|
86
|
+
export const script = makeHTMLElement("script");
|
|
87
|
+
export const section = makeHTMLElement("section");
|
|
88
|
+
export const select = makeHTMLElement("select");
|
|
89
|
+
export const slot = makeHTMLElement("slot");
|
|
90
|
+
export const small = makeHTMLElement("small");
|
|
91
|
+
export const source = makeHTMLElement("source");
|
|
92
|
+
export const span = makeHTMLElement("span");
|
|
93
|
+
export const strong = makeHTMLElement("strong");
|
|
94
|
+
export const style = makeHTMLElement("style");
|
|
95
|
+
export const sub = makeHTMLElement("sub");
|
|
96
|
+
export const summary = makeHTMLElement("summary");
|
|
97
|
+
export const sup = makeHTMLElement("sup");
|
|
98
|
+
export const table = makeHTMLElement("table");
|
|
99
|
+
export const tbody = makeHTMLElement("tbody");
|
|
100
|
+
export const td = makeHTMLElement("td");
|
|
101
|
+
export const template = makeHTMLElement("template");
|
|
102
|
+
export const textarea = makeHTMLElement("textarea");
|
|
103
|
+
export const tfoot = makeHTMLElement("tfoot");
|
|
104
|
+
export const th = makeHTMLElement("th");
|
|
105
|
+
export const thead = makeHTMLElement("thead");
|
|
106
|
+
export const time = makeHTMLElement("time");
|
|
107
|
+
export const title = makeHTMLElement("title");
|
|
108
|
+
export const tr = makeHTMLElement("tr");
|
|
109
|
+
export const track = makeHTMLElement("track");
|
|
110
|
+
export const u = makeHTMLElement("u");
|
|
111
|
+
export const ul = makeHTMLElement("ul");
|
|
112
|
+
export const htmlvar = makeHTMLElement("var"); // var is reserved, export as variable
|
|
113
|
+
export const video = makeHTMLElement("video");
|
|
114
|
+
export const wbr = makeHTMLElement("wbr");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { describe, it } from "../scope/describe.js";
|
|
2
|
+
import { expect } from "../scope/expect.js";
|
|
3
|
+
import { table, tbody, td, th, thead, tr, button } from "./html.js";
|
|
4
|
+
describe("html", () => {
|
|
5
|
+
it("creates HTML Elements", () => {
|
|
6
|
+
let tableBody;
|
|
7
|
+
const myTable = table(thead(tr(th("Col A"), th("Col B"))), (tableBody = tbody()));
|
|
8
|
+
for (let x = 1; x <= 3; x++) {
|
|
9
|
+
tableBody.appendChild(tr(td(`${x}`), td(`${x * 2}`)));
|
|
10
|
+
}
|
|
11
|
+
expect(myTable.textContent).toEqual("Col ACol B122436");
|
|
12
|
+
});
|
|
13
|
+
it("attaches event handlers", () => {
|
|
14
|
+
let clicked = false;
|
|
15
|
+
const btn = button({
|
|
16
|
+
events: {
|
|
17
|
+
click: () => {
|
|
18
|
+
clicked = true;
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
btn.dispatchEvent(new Event("click"));
|
|
23
|
+
expect(clicked).toBe(true);
|
|
24
|
+
});
|
|
25
|
+
it("removes event handlers", () => {
|
|
26
|
+
let clicked = 0;
|
|
27
|
+
const btn = button({
|
|
28
|
+
events: {
|
|
29
|
+
click: () => {
|
|
30
|
+
clicked += 1;
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
btn.dispatchEvent(new Event("click"));
|
|
35
|
+
expect(clicked).toBe(1);
|
|
36
|
+
btn.update({ events: { click: undefined } });
|
|
37
|
+
btn.dispatchEvent(new Event("click"));
|
|
38
|
+
expect(clicked).toBe(1);
|
|
39
|
+
});
|
|
40
|
+
it("sets style properties", () => {
|
|
41
|
+
const btn = button({
|
|
42
|
+
style: { flexDirection: "column" },
|
|
43
|
+
});
|
|
44
|
+
expect(btn.style.flexDirection).toBe("column");
|
|
45
|
+
});
|
|
46
|
+
it("sets style, attributes, and events together", () => {
|
|
47
|
+
let clicked = false;
|
|
48
|
+
const btn = button({
|
|
49
|
+
class: "test-class",
|
|
50
|
+
style: { flexDirection: "column" },
|
|
51
|
+
events: { click: () => (clicked = true) },
|
|
52
|
+
});
|
|
53
|
+
btn.dispatchEvent(new Event("click"));
|
|
54
|
+
expect(btn.classList.contains("test-class")).toBe(true);
|
|
55
|
+
expect(btn.style.flexDirection).toBe("column");
|
|
56
|
+
expect(clicked).toBe(true);
|
|
57
|
+
});
|
|
58
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DOMElement, Updatable } from "../dom";
|
|
2
|
+
import { Link } from "./link";
|
|
3
|
+
export interface Router {
|
|
4
|
+
current?: string;
|
|
5
|
+
navigate: (url: string) => (event: Event) => void;
|
|
6
|
+
(target: Updatable<DOMElement>): Updatable<DOMElement>;
|
|
7
|
+
}
|
|
8
|
+
export declare const Router: {
|
|
9
|
+
for(links: Link[], index: string, setGlobalRouter?: boolean): Router;
|
|
10
|
+
href(link: string): string;
|
|
11
|
+
navigate(href: string): (event: Event) => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
let baseURI = `${document.baseURI}`;
|
|
2
|
+
const normalizeHref = () => {
|
|
3
|
+
return location.href + "/" === baseURI ? baseURI : location.href;
|
|
4
|
+
};
|
|
5
|
+
let globalRouter;
|
|
6
|
+
export const Router = {
|
|
7
|
+
for(links, index, setGlobalRouter = true) {
|
|
8
|
+
let target;
|
|
9
|
+
const partialRouter = (t) => {
|
|
10
|
+
target = t;
|
|
11
|
+
const href = normalizeHref();
|
|
12
|
+
const route = href === baseURI ? baseURI + index : href;
|
|
13
|
+
doNavigate(route);
|
|
14
|
+
window.addEventListener("popstate", () => {
|
|
15
|
+
doNavigate(location.href);
|
|
16
|
+
});
|
|
17
|
+
return target;
|
|
18
|
+
};
|
|
19
|
+
const doNavigate = (link) => {
|
|
20
|
+
link = link.replace(baseURI, "") || index;
|
|
21
|
+
if (link === partialRouter.current) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
partialRouter.current = link;
|
|
25
|
+
target.update((links.find(({ href }) => link.endsWith(href))?.target ??
|
|
26
|
+
(() => undefined))());
|
|
27
|
+
return true;
|
|
28
|
+
};
|
|
29
|
+
const navigate = (url) => {
|
|
30
|
+
return (event) => {
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
if (doNavigate(url || index)) {
|
|
33
|
+
history.pushState(null, "", url);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
partialRouter.navigate = navigate;
|
|
38
|
+
if (setGlobalRouter) {
|
|
39
|
+
globalRouter = partialRouter;
|
|
40
|
+
}
|
|
41
|
+
return partialRouter;
|
|
42
|
+
},
|
|
43
|
+
href(link) {
|
|
44
|
+
return `${baseURI}${link.replace(/^\//, "")}`;
|
|
45
|
+
},
|
|
46
|
+
navigate(href) {
|
|
47
|
+
return globalRouter?.navigate(href);
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DenormAttrs, DenormChildren } from "./dom.js";
|
|
2
|
+
export declare const a: (attrs?: DenormAttrs<SVGAElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGAElement>;
|
|
3
|
+
export declare const animate: (attrs?: DenormAttrs<SVGAnimateElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGAnimateElement>;
|
|
4
|
+
export declare const animateMotion: (attrs?: DenormAttrs<SVGAnimateMotionElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGAnimateMotionElement>;
|
|
5
|
+
export declare const animateTransform: (attrs?: DenormAttrs<SVGAnimateTransformElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGAnimateTransformElement>;
|
|
6
|
+
export declare const circle: (attrs?: DenormAttrs<SVGCircleElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGCircleElement>;
|
|
7
|
+
export declare const clipPath: (attrs?: DenormAttrs<SVGClipPathElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGClipPathElement>;
|
|
8
|
+
export declare const defs: (attrs?: DenormAttrs<SVGDefsElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGDefsElement>;
|
|
9
|
+
export declare const desc: (attrs?: DenormAttrs<SVGDescElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGDescElement>;
|
|
10
|
+
export declare const ellipse: (attrs?: DenormAttrs<SVGEllipseElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGEllipseElement>;
|
|
11
|
+
export declare const feBlend: (attrs?: DenormAttrs<SVGFEBlendElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEBlendElement>;
|
|
12
|
+
export declare const feColorMatrix: (attrs?: DenormAttrs<SVGFEColorMatrixElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEColorMatrixElement>;
|
|
13
|
+
export declare const feComponentTransfer: (attrs?: DenormAttrs<SVGFEComponentTransferElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEComponentTransferElement>;
|
|
14
|
+
export declare const feComposite: (attrs?: DenormAttrs<SVGFECompositeElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFECompositeElement>;
|
|
15
|
+
export declare const feConvolveMatrix: (attrs?: DenormAttrs<SVGFEConvolveMatrixElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEConvolveMatrixElement>;
|
|
16
|
+
export declare const feDiffuseLighting: (attrs?: DenormAttrs<SVGFEDiffuseLightingElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEDiffuseLightingElement>;
|
|
17
|
+
export declare const feDisplacementMap: (attrs?: DenormAttrs<SVGFEDisplacementMapElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEDisplacementMapElement>;
|
|
18
|
+
export declare const feDistantLight: (attrs?: DenormAttrs<SVGFEDistantLightElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEDistantLightElement>;
|
|
19
|
+
export declare const feDropShadow: (attrs?: DenormAttrs<SVGFEDropShadowElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEDropShadowElement>;
|
|
20
|
+
export declare const feFlood: (attrs?: DenormAttrs<SVGFEFloodElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEFloodElement>;
|
|
21
|
+
export declare const feFuncA: (attrs?: DenormAttrs<SVGFEFuncAElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEFuncAElement>;
|
|
22
|
+
export declare const feFuncB: (attrs?: DenormAttrs<SVGFEFuncBElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEFuncBElement>;
|
|
23
|
+
export declare const feFuncG: (attrs?: DenormAttrs<SVGFEFuncGElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEFuncGElement>;
|
|
24
|
+
export declare const feFuncR: (attrs?: DenormAttrs<SVGFEFuncRElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEFuncRElement>;
|
|
25
|
+
export declare const feGaussianBlur: (attrs?: DenormAttrs<SVGFEGaussianBlurElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEGaussianBlurElement>;
|
|
26
|
+
export declare const feImage: (attrs?: DenormAttrs<SVGFEImageElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEImageElement>;
|
|
27
|
+
export declare const feMerge: (attrs?: DenormAttrs<SVGFEMergeElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEMergeElement>;
|
|
28
|
+
export declare const feMergeNode: (attrs?: DenormAttrs<SVGFEMergeNodeElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEMergeNodeElement>;
|
|
29
|
+
export declare const feMorphology: (attrs?: DenormAttrs<SVGFEMorphologyElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEMorphologyElement>;
|
|
30
|
+
export declare const feOffset: (attrs?: DenormAttrs<SVGFEOffsetElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEOffsetElement>;
|
|
31
|
+
export declare const fePointLight: (attrs?: DenormAttrs<SVGFEPointLightElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFEPointLightElement>;
|
|
32
|
+
export declare const feSpecularLighting: (attrs?: DenormAttrs<SVGFESpecularLightingElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFESpecularLightingElement>;
|
|
33
|
+
export declare const feSpotLight: (attrs?: DenormAttrs<SVGFESpotLightElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFESpotLightElement>;
|
|
34
|
+
export declare const feTile: (attrs?: DenormAttrs<SVGFETileElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFETileElement>;
|
|
35
|
+
export declare const feTurbulence: (attrs?: DenormAttrs<SVGFETurbulenceElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFETurbulenceElement>;
|
|
36
|
+
export declare const filter: (attrs?: DenormAttrs<SVGFilterElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGFilterElement>;
|
|
37
|
+
export declare const foreignObject: (attrs?: DenormAttrs<SVGForeignObjectElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGForeignObjectElement>;
|
|
38
|
+
export declare const g: (attrs?: DenormAttrs<SVGGElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGGElement>;
|
|
39
|
+
export declare const image: (attrs?: DenormAttrs<SVGImageElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGImageElement>;
|
|
40
|
+
export declare const line: (attrs?: DenormAttrs<SVGLineElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGLineElement>;
|
|
41
|
+
export declare const linearGradient: (attrs?: DenormAttrs<SVGLinearGradientElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGLinearGradientElement>;
|
|
42
|
+
export declare const marker: (attrs?: DenormAttrs<SVGMarkerElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGMarkerElement>;
|
|
43
|
+
export declare const mask: (attrs?: DenormAttrs<SVGMaskElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGMaskElement>;
|
|
44
|
+
export declare const metadata: (attrs?: DenormAttrs<SVGMetadataElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGMetadataElement>;
|
|
45
|
+
export declare const mpath: (attrs?: DenormAttrs<SVGMPathElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGMPathElement>;
|
|
46
|
+
export declare const path: (attrs?: DenormAttrs<SVGPathElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGPathElement>;
|
|
47
|
+
export declare const pattern: (attrs?: DenormAttrs<SVGPatternElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGPatternElement>;
|
|
48
|
+
export declare const polygon: (attrs?: DenormAttrs<SVGPolygonElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGPolygonElement>;
|
|
49
|
+
export declare const polyline: (attrs?: DenormAttrs<SVGPolylineElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGPolylineElement>;
|
|
50
|
+
export declare const radialGradient: (attrs?: DenormAttrs<SVGRadialGradientElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGRadialGradientElement>;
|
|
51
|
+
export declare const rect: (attrs?: DenormAttrs<SVGRectElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGRectElement>;
|
|
52
|
+
export declare const script: (attrs?: DenormAttrs<SVGScriptElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGScriptElement>;
|
|
53
|
+
export declare const set: (attrs?: DenormAttrs<SVGSetElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGSetElement>;
|
|
54
|
+
export declare const stop: (attrs?: DenormAttrs<SVGStopElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGStopElement>;
|
|
55
|
+
export declare const style: (attrs?: DenormAttrs<SVGStyleElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGStyleElement>;
|
|
56
|
+
export declare const svg: (attrs?: DenormAttrs<SVGSVGElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGSVGElement>;
|
|
57
|
+
export declare const svgswitch: (attrs?: DenormAttrs<SVGSwitchElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGSwitchElement>;
|
|
58
|
+
export declare const symbol: (attrs?: DenormAttrs<SVGSymbolElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGSymbolElement>;
|
|
59
|
+
export declare const text: (attrs?: DenormAttrs<SVGTextElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGTextElement>;
|
|
60
|
+
export declare const textPath: (attrs?: DenormAttrs<SVGTextPathElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGTextPathElement>;
|
|
61
|
+
export declare const title: (attrs?: DenormAttrs<SVGTitleElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGTitleElement>;
|
|
62
|
+
export declare const tspan: (attrs?: DenormAttrs<SVGTSpanElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGTSpanElement>;
|
|
63
|
+
export declare const use: (attrs?: DenormAttrs<SVGUseElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGUseElement>;
|
|
64
|
+
export declare const view: (attrs?: DenormAttrs<SVGViewElement, {}> | undefined, ...children: DenormChildren[]) => import("./dom.js").Updatable<SVGViewElement>;
|
package/build/dom/svg.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { up } from "./dom.js";
|
|
2
|
+
const makeSVGElement = (name) => (attrs, ...children) => up(document.createElementNS("http://www.w3.org/2000/svg", name), attrs, ...children);
|
|
3
|
+
export const a = makeSVGElement("a");
|
|
4
|
+
export const animate = makeSVGElement("animate");
|
|
5
|
+
export const animateMotion = makeSVGElement("animateMotion");
|
|
6
|
+
export const animateTransform = makeSVGElement("animateTransform");
|
|
7
|
+
export const circle = makeSVGElement("circle");
|
|
8
|
+
export const clipPath = makeSVGElement("clipPath");
|
|
9
|
+
export const defs = makeSVGElement("defs");
|
|
10
|
+
export const desc = makeSVGElement("desc");
|
|
11
|
+
export const ellipse = makeSVGElement("ellipse");
|
|
12
|
+
export const feBlend = makeSVGElement("feBlend");
|
|
13
|
+
export const feColorMatrix = makeSVGElement("feColorMatrix");
|
|
14
|
+
export const feComponentTransfer = makeSVGElement("feComponentTransfer");
|
|
15
|
+
export const feComposite = makeSVGElement("feComposite");
|
|
16
|
+
export const feConvolveMatrix = makeSVGElement("feConvolveMatrix");
|
|
17
|
+
export const feDiffuseLighting = makeSVGElement("feDiffuseLighting");
|
|
18
|
+
export const feDisplacementMap = makeSVGElement("feDisplacementMap");
|
|
19
|
+
export const feDistantLight = makeSVGElement("feDistantLight");
|
|
20
|
+
export const feDropShadow = makeSVGElement("feDropShadow");
|
|
21
|
+
export const feFlood = makeSVGElement("feFlood");
|
|
22
|
+
export const feFuncA = makeSVGElement("feFuncA");
|
|
23
|
+
export const feFuncB = makeSVGElement("feFuncB");
|
|
24
|
+
export const feFuncG = makeSVGElement("feFuncG");
|
|
25
|
+
export const feFuncR = makeSVGElement("feFuncR");
|
|
26
|
+
export const feGaussianBlur = makeSVGElement("feGaussianBlur");
|
|
27
|
+
export const feImage = makeSVGElement("feImage");
|
|
28
|
+
export const feMerge = makeSVGElement("feMerge");
|
|
29
|
+
export const feMergeNode = makeSVGElement("feMergeNode");
|
|
30
|
+
export const feMorphology = makeSVGElement("feMorphology");
|
|
31
|
+
export const feOffset = makeSVGElement("feOffset");
|
|
32
|
+
export const fePointLight = makeSVGElement("fePointLight");
|
|
33
|
+
export const feSpecularLighting = makeSVGElement("feSpecularLighting");
|
|
34
|
+
export const feSpotLight = makeSVGElement("feSpotLight");
|
|
35
|
+
export const feTile = makeSVGElement("feTile");
|
|
36
|
+
export const feTurbulence = makeSVGElement("feTurbulence");
|
|
37
|
+
export const filter = makeSVGElement("filter");
|
|
38
|
+
export const foreignObject = makeSVGElement("foreignObject");
|
|
39
|
+
export const g = makeSVGElement("g");
|
|
40
|
+
export const image = makeSVGElement("image");
|
|
41
|
+
export const line = makeSVGElement("line");
|
|
42
|
+
export const linearGradient = makeSVGElement("linearGradient");
|
|
43
|
+
export const marker = makeSVGElement("marker");
|
|
44
|
+
export const mask = makeSVGElement("mask");
|
|
45
|
+
export const metadata = makeSVGElement("metadata");
|
|
46
|
+
export const mpath = makeSVGElement("mpath");
|
|
47
|
+
export const path = makeSVGElement("path");
|
|
48
|
+
export const pattern = makeSVGElement("pattern");
|
|
49
|
+
export const polygon = makeSVGElement("polygon");
|
|
50
|
+
export const polyline = makeSVGElement("polyline");
|
|
51
|
+
export const radialGradient = makeSVGElement("radialGradient");
|
|
52
|
+
export const rect = makeSVGElement("rect");
|
|
53
|
+
export const script = makeSVGElement("script");
|
|
54
|
+
export const set = makeSVGElement("set");
|
|
55
|
+
export const stop = makeSVGElement("stop");
|
|
56
|
+
export const style = makeSVGElement("style");
|
|
57
|
+
export const svg = makeSVGElement("svg");
|
|
58
|
+
export const svgswitch = makeSVGElement("switch");
|
|
59
|
+
export const symbol = makeSVGElement("symbol");
|
|
60
|
+
export const text = makeSVGElement("text");
|
|
61
|
+
export const textPath = makeSVGElement("textPath");
|
|
62
|
+
export const title = makeSVGElement("title");
|
|
63
|
+
export const tspan = makeSVGElement("tspan");
|
|
64
|
+
export const use = makeSVGElement("use");
|
|
65
|
+
export const view = makeSVGElement("view");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|