@davidsouther/jiffies 1.1.0 → 2.0.0
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/{build → lib/cjs}/assert.d.ts +23 -23
- package/lib/cjs/assert.js +40 -0
- package/{build → lib/cjs}/case.d.ts +1 -1
- package/lib/cjs/case.js +9 -0
- package/{build → lib/cjs}/components/button_bar.d.ts +8 -8
- package/lib/cjs/components/button_bar.js +29 -0
- package/{build → lib/cjs}/components/inline_edit.d.ts +12 -12
- package/lib/cjs/components/inline_edit.js +51 -0
- package/{build → lib/cjs}/components/logger.d.ts +6 -6
- package/lib/cjs/components/logger.js +27 -0
- package/lib/cjs/components/select.d.ts +10 -0
- package/lib/cjs/components/select.js +6 -0
- package/lib/cjs/components/test.d.ts +1 -0
- package/lib/cjs/components/test.js +7 -0
- package/{build → lib/cjs}/components/virtual_scroll.d.ts +40 -40
- package/lib/cjs/components/virtual_scroll.js +102 -0
- package/{build → lib/cjs}/components/virtual_scroll.test.d.ts +1 -1
- package/lib/cjs/components/virtual_scroll.test.js +22 -0
- package/{build → lib/cjs}/context.d.ts +15 -15
- package/lib/cjs/context.js +48 -0
- package/{build → lib/cjs}/context.test.d.ts +1 -1
- package/lib/cjs/context.test.js +48 -0
- package/{build → lib/cjs}/debounce.d.ts +1 -1
- package/lib/cjs/debounce.js +11 -0
- package/lib/cjs/diff.d.ts +15 -0
- package/lib/cjs/diff.js +58 -0
- package/{build/components/test.d.ts → lib/cjs/diff.test.d.ts} +1 -1
- package/lib/cjs/diff.test.js +41 -0
- package/{build → lib/cjs}/display.d.ts +5 -5
- package/lib/cjs/display.js +16 -0
- package/{build → lib/cjs}/dom/css/border.d.ts +11 -11
- package/lib/cjs/dom/css/border.js +33 -0
- package/{build → lib/cjs}/dom/css/constants.d.ts +31 -31
- package/lib/cjs/dom/css/constants.js +31 -0
- package/{build → lib/cjs}/dom/css/core.d.ts +5 -5
- package/lib/cjs/dom/css/core.js +31 -0
- package/{build → lib/cjs}/dom/css/fstyle.d.ts +5 -5
- package/lib/cjs/dom/css/fstyle.js +36 -0
- package/{build → lib/cjs}/dom/css/sizing.d.ts +5 -5
- package/lib/cjs/dom/css/sizing.js +14 -0
- package/{build → lib/cjs}/dom/dom.d.ts +27 -26
- package/lib/cjs/dom/dom.js +110 -0
- package/{build → lib/cjs}/dom/fc.d.ts +14 -14
- package/lib/cjs/dom/fc.js +39 -0
- package/{build → lib/cjs}/dom/fc.test.d.ts +1 -1
- package/lib/cjs/dom/fc.test.js +23 -0
- package/{build → lib/cjs}/dom/form/form.app.d.ts +1 -1
- package/lib/cjs/dom/form/form.app.js +27 -0
- package/{build → lib/cjs}/dom/form/form.d.ts +26 -26
- package/lib/cjs/dom/form/form.js +49 -0
- package/{build → lib/cjs}/dom/form/form.test.d.ts +0 -0
- package/{build → lib/cjs}/dom/form/form.test.js +1 -1
- package/{build → lib/cjs}/dom/html.d.ts +113 -113
- package/lib/cjs/dom/html.js +119 -0
- package/{build → lib/cjs}/dom/html.test.d.ts +1 -1
- package/lib/cjs/dom/html.test.js +60 -0
- package/lib/cjs/dom/observable.d.ts +2 -0
- package/lib/cjs/dom/observable.js +10 -0
- package/{build/observable → lib/cjs/dom}/observable.test.d.ts +1 -1
- package/lib/cjs/dom/observable.test.js +35 -0
- package/{build → lib/cjs}/dom/provide.d.ts +3 -3
- package/lib/cjs/dom/provide.js +12 -0
- package/{build → lib/cjs}/dom/router/link.d.ts +6 -6
- package/lib/cjs/dom/router/link.js +7 -0
- package/{build → lib/cjs}/dom/router/router.d.ts +12 -12
- package/lib/cjs/dom/router/router.js +52 -0
- package/{build → lib/cjs}/dom/svg.d.ts +64 -64
- package/lib/cjs/dom/svg.js +69 -0
- package/lib/cjs/dom/test.d.ts +1 -0
- package/lib/cjs/dom/test.js +13 -0
- package/{build → lib/cjs}/dom/types/css.d.ts +6612 -6612
- package/lib/cjs/dom/types/css.js +24 -0
- package/{build → lib/cjs}/dom/types/dom.d.ts +0 -0
- package/{build → lib/cjs}/dom/types/dom.js +1 -1
- package/{build → lib/cjs}/dom/types/html.d.ts +616 -616
- package/lib/cjs/dom/types/html.js +2 -0
- package/{build → lib/cjs}/dom/xml.d.ts +1 -1
- package/lib/cjs/dom/xml.js +8 -0
- package/{build → lib/cjs}/equal.d.ts +5 -5
- package/lib/cjs/equal.js +43 -0
- package/{build → lib/cjs}/equal.test.d.ts +1 -1
- package/lib/cjs/equal.test.js +22 -0
- package/{build → lib/cjs}/flags.d.ts +7 -7
- package/lib/cjs/flags.js +52 -0
- package/{build → lib/cjs}/flags.test.d.ts +1 -1
- package/lib/cjs/flags.test.js +37 -0
- package/{build → lib/cjs}/fs.d.ts +48 -48
- package/lib/cjs/fs.js +151 -0
- package/{build → lib/cjs}/fs.test.d.ts +1 -1
- package/lib/cjs/fs.test.js +45 -0
- package/{build → lib/cjs}/generator.d.ts +1 -1
- package/lib/cjs/generator.js +14 -0
- package/{build → lib/cjs}/generator.test.d.ts +1 -1
- package/lib/cjs/generator.test.js +26 -0
- package/{build → lib/cjs}/is_browser.d.ts +1 -1
- package/lib/cjs/is_browser.js +4 -0
- package/{build → lib/cjs}/loader.d.mts +22 -22
- package/lib/cjs/loader.mjs +40 -0
- package/{build → lib/cjs}/lock.d.ts +1 -1
- package/lib/cjs/lock.js +27 -0
- package/{build → lib/cjs}/lock.test.d.ts +1 -1
- package/lib/cjs/lock.test.js +18 -0
- package/{build → lib/cjs}/log.d.ts +26 -26
- package/lib/cjs/log.js +54 -0
- package/lib/cjs/observable/event.d.ts +35 -0
- package/lib/cjs/observable/event.js +61 -0
- package/lib/cjs/observable/observable.d.ts +132 -0
- package/lib/cjs/observable/observable.js +363 -0
- package/lib/cjs/observable/observable.test.d.ts +1 -0
- package/lib/cjs/observable/observable.test.js +65 -0
- package/{build → lib/cjs}/range.d.ts +1 -1
- package/lib/cjs/range.js +11 -0
- package/{build → lib/cjs}/result.d.ts +31 -31
- package/lib/cjs/result.js +80 -0
- package/{build → lib/cjs}/result.test.d.ts +1 -1
- package/lib/cjs/result.test.js +73 -0
- package/{build → lib/cjs}/safe.d.ts +1 -1
- package/lib/cjs/safe.js +14 -0
- package/{build → lib/cjs}/scope/describe.d.ts +18 -18
- package/lib/cjs/scope/describe.js +73 -0
- package/{build → lib/cjs}/scope/display/console.d.ts +2 -2
- package/lib/cjs/scope/display/console.js +25 -0
- package/{build → lib/cjs}/scope/display/dom.d.ts +3 -3
- package/lib/cjs/scope/display/dom.js +30 -0
- package/{build → lib/cjs}/scope/display/junit.d.ts +2 -2
- package/lib/cjs/scope/display/junit.js +21 -0
- package/{build → lib/cjs}/scope/execute.d.ts +12 -12
- package/lib/cjs/scope/execute.js +91 -0
- package/{build → lib/cjs}/scope/expect.d.ts +23 -23
- package/lib/cjs/scope/expect.js +114 -0
- package/{build → lib/cjs}/scope/fix.d.ts +4 -4
- package/lib/cjs/scope/fix.js +26 -0
- package/{build → lib/cjs}/scope/index.d.ts +3 -3
- package/lib/cjs/scope/index.js +15 -0
- package/{build → lib/cjs}/scope/scope.d.ts +17 -17
- package/lib/cjs/scope/scope.js +2 -0
- package/lib/cjs/scope/state.d.ts +1 -0
- package/lib/cjs/scope/state.js +11 -0
- package/{build → lib/cjs}/server/http/apps.d.ts +5 -5
- package/lib/cjs/server/http/apps.js +27 -0
- package/{build → lib/cjs}/server/http/css.d.ts +5 -5
- package/lib/cjs/server/http/css.js +54 -0
- package/{build → lib/cjs}/server/http/index.d.ts +21 -21
- package/lib/cjs/server/http/index.js +77 -0
- package/{build → lib/cjs}/server/http/response.d.ts +4 -4
- package/lib/cjs/server/http/response.js +45 -0
- package/{build → lib/cjs}/server/http/sitemap.d.ts +2 -2
- package/lib/cjs/server/http/sitemap.js +46 -0
- package/{build → lib/cjs}/server/http/static.d.ts +2 -2
- package/lib/cjs/server/http/static.js +25 -0
- package/{build → lib/cjs}/server/http/typescript.d.ts +5 -5
- package/lib/cjs/server/http/typescript.js +44 -0
- package/{build → lib/cjs}/server/main.d.ts +2 -2
- package/lib/cjs/server/main.js +14 -0
- package/{build → lib/cjs}/test.d.mts +2 -2
- package/lib/cjs/test.mjs +28 -0
- package/{build → lib/cjs}/test_all.d.ts +9 -7
- package/lib/cjs/test_all.js +30 -0
- package/{build → lib/cjs}/transpile.d.mts +3 -3
- package/lib/cjs/transpile.mjs +22 -0
- package/lib/cjs/tsconfig.tsbuildinfo +1 -0
- package/lib/esm/assert.d.ts +23 -0
- package/{build → lib/esm}/assert.js +33 -33
- package/lib/esm/case.d.ts +1 -0
- package/{build → lib/esm}/case.js +5 -5
- package/lib/esm/components/button_bar.d.ts +8 -0
- package/{build → lib/esm}/components/button_bar.js +27 -27
- package/lib/esm/components/inline_edit.d.ts +12 -0
- package/{build → lib/esm}/components/inline_edit.js +48 -48
- package/lib/esm/components/logger.d.ts +6 -0
- package/{build → lib/esm}/components/logger.js +22 -22
- package/lib/esm/components/select.d.ts +10 -0
- package/{build → lib/esm}/components/select.js +3 -3
- package/lib/esm/components/test.d.ts +1 -0
- package/lib/esm/components/test.js +3 -0
- package/lib/esm/components/virtual_scroll.d.ts +40 -0
- package/{build → lib/esm}/components/virtual_scroll.js +94 -94
- package/lib/esm/components/virtual_scroll.test.d.ts +1 -0
- package/{build → lib/esm}/components/virtual_scroll.test.js +20 -21
- package/lib/esm/context.d.ts +15 -0
- package/{build → lib/esm}/context.js +43 -43
- package/lib/esm/context.test.d.ts +1 -0
- package/{build → lib/esm}/context.test.js +46 -46
- package/lib/esm/debounce.d.ts +1 -0
- package/{build → lib/esm}/debounce.js +7 -7
- package/lib/esm/diff.d.ts +15 -0
- package/lib/esm/diff.js +54 -0
- package/lib/esm/diff.test.d.ts +1 -0
- package/lib/esm/diff.test.js +39 -0
- package/lib/esm/display.d.ts +5 -0
- package/{build → lib/esm}/display.js +11 -11
- package/lib/esm/dom/css/border.d.ts +11 -0
- package/{build → lib/esm}/dom/css/border.js +27 -27
- package/lib/esm/dom/css/constants.d.ts +31 -0
- package/{build → lib/esm}/dom/css/constants.js +28 -28
- package/lib/esm/dom/css/core.d.ts +5 -0
- package/{build → lib/esm}/dom/css/core.js +24 -24
- package/lib/esm/dom/css/fstyle.d.ts +5 -0
- package/{build → lib/esm}/dom/css/fstyle.js +32 -32
- package/lib/esm/dom/css/sizing.d.ts +5 -0
- package/{build → lib/esm}/dom/css/sizing.js +10 -10
- package/lib/esm/dom/dom.d.ts +27 -0
- package/{build → lib/esm}/dom/dom.js +104 -95
- package/lib/esm/dom/fc.d.ts +14 -0
- package/{build → lib/esm}/dom/fc.js +35 -36
- package/lib/esm/dom/fc.test.d.ts +1 -0
- package/{build → lib/esm}/dom/fc.test.js +21 -21
- package/lib/esm/dom/form/form.app.d.ts +1 -0
- package/{build → lib/esm}/dom/form/form.app.js +23 -23
- package/lib/esm/dom/form/form.d.ts +26 -0
- package/{build → lib/esm}/dom/form/form.js +34 -34
- package/lib/esm/dom/form/form.test.d.ts +0 -0
- package/lib/esm/dom/form/form.test.js +1 -0
- package/lib/esm/dom/html.d.ts +113 -0
- package/{build → lib/esm}/dom/html.js +114 -114
- package/lib/esm/dom/html.test.d.ts +1 -0
- package/{build → lib/esm}/dom/html.test.js +58 -58
- package/lib/esm/dom/observable.d.ts +2 -0
- package/lib/esm/dom/observable.js +6 -0
- package/lib/esm/dom/observable.test.d.ts +1 -0
- package/lib/esm/dom/observable.test.js +33 -0
- package/lib/esm/dom/provide.d.ts +3 -0
- package/{build → lib/esm}/dom/provide.js +7 -7
- package/lib/esm/dom/router/link.d.ts +6 -0
- package/{build → lib/esm}/dom/router/link.js +3 -3
- package/lib/esm/dom/router/router.d.ts +12 -0
- package/{build → lib/esm}/dom/router/router.js +49 -49
- package/lib/esm/dom/svg.d.ts +64 -0
- package/{build → lib/esm}/dom/svg.js +65 -65
- package/lib/esm/dom/test.d.ts +1 -0
- package/lib/esm/dom/test.js +9 -0
- package/lib/esm/dom/types/css.d.ts +6612 -0
- package/{build → lib/esm}/dom/types/css.js +23 -23
- package/lib/esm/dom/types/dom.d.ts +0 -0
- package/lib/esm/dom/types/dom.js +1 -0
- package/lib/esm/dom/types/html.d.ts +616 -0
- package/{build → lib/esm}/dom/types/html.js +1 -1
- package/lib/esm/dom/xml.d.ts +1 -0
- package/{build → lib/esm}/dom/xml.js +4 -4
- package/lib/esm/equal.d.ts +5 -0
- package/{build → lib/esm}/equal.js +37 -37
- package/lib/esm/equal.test.d.ts +1 -0
- package/{build → lib/esm}/equal.test.js +20 -20
- package/lib/esm/flags.d.ts +7 -0
- package/{build → lib/esm}/flags.js +48 -48
- package/lib/esm/flags.test.d.ts +1 -0
- package/{build → lib/esm}/flags.test.js +35 -35
- package/lib/esm/fs.d.ts +48 -0
- package/{build → lib/esm}/fs.js +144 -144
- package/lib/esm/fs.test.d.ts +1 -0
- package/{build → lib/esm}/fs.test.js +43 -43
- package/lib/esm/generator.d.ts +1 -0
- package/{build → lib/esm}/generator.js +10 -10
- package/lib/esm/generator.test.d.ts +1 -0
- package/{build → lib/esm}/generator.test.js +24 -24
- package/lib/esm/is_browser.d.ts +1 -0
- package/{build → lib/esm}/is_browser.js +1 -1
- package/lib/esm/loader.d.mts +22 -0
- package/{build → lib/esm}/loader.mjs +35 -35
- package/lib/esm/lock.d.ts +1 -0
- package/{build → lib/esm}/lock.js +23 -23
- package/lib/esm/lock.test.d.ts +1 -0
- package/{build → lib/esm}/lock.test.js +16 -16
- package/lib/esm/log.d.ts +26 -0
- package/{build → lib/esm}/log.js +46 -46
- package/lib/esm/observable/event.d.ts +35 -0
- package/lib/esm/observable/event.js +46 -0
- package/lib/esm/observable/observable.d.ts +132 -0
- package/lib/esm/observable/observable.js +343 -0
- package/lib/esm/observable/observable.test.d.ts +1 -0
- package/lib/esm/observable/observable.test.js +63 -0
- package/lib/esm/range.d.ts +1 -0
- package/{build → lib/esm}/range.js +7 -7
- package/lib/esm/result.d.ts +31 -0
- package/{build → lib/esm}/result.js +65 -65
- package/lib/esm/result.test.d.ts +1 -0
- package/{build → lib/esm}/result.test.js +71 -71
- package/lib/esm/safe.d.ts +1 -0
- package/{build → lib/esm}/safe.js +10 -10
- package/lib/esm/scope/describe.d.ts +18 -0
- package/{build → lib/esm}/scope/describe.js +60 -61
- package/lib/esm/scope/display/console.d.ts +2 -0
- package/{build → lib/esm}/scope/display/console.js +21 -21
- package/lib/esm/scope/display/dom.d.ts +3 -0
- package/{build → lib/esm}/scope/display/dom.js +26 -26
- package/lib/esm/scope/display/junit.d.ts +2 -0
- package/{build → lib/esm}/scope/display/junit.js +17 -17
- package/lib/esm/scope/execute.d.ts +12 -0
- package/{build → lib/esm}/scope/execute.js +85 -85
- package/lib/esm/scope/expect.d.ts +23 -0
- package/{build → lib/esm}/scope/expect.js +108 -108
- package/lib/esm/scope/fix.d.ts +4 -0
- package/{build → lib/esm}/scope/fix.js +22 -22
- package/lib/esm/scope/index.d.ts +3 -0
- package/{build → lib/esm}/scope/index.js +3 -3
- package/lib/esm/scope/scope.d.ts +17 -0
- package/{build → lib/esm}/scope/scope.js +1 -1
- package/lib/esm/scope/state.d.ts +1 -0
- package/lib/esm/scope/state.js +7 -0
- package/lib/esm/server/http/apps.d.ts +5 -0
- package/{build → lib/esm}/server/http/apps.js +23 -23
- package/lib/esm/server/http/css.d.ts +5 -0
- package/{build → lib/esm}/server/http/css.js +50 -50
- package/lib/esm/server/http/index.d.ts +21 -0
- package/{build → lib/esm}/server/http/index.js +73 -73
- package/lib/esm/server/http/response.d.ts +4 -0
- package/{build → lib/esm}/server/http/response.js +40 -40
- package/lib/esm/server/http/sitemap.d.ts +2 -0
- package/{build → lib/esm}/server/http/sitemap.js +42 -42
- package/lib/esm/server/http/static.d.ts +2 -0
- package/{build → lib/esm}/server/http/static.js +21 -21
- package/lib/esm/server/http/typescript.d.ts +5 -0
- package/{build → lib/esm}/server/http/typescript.js +40 -40
- package/lib/esm/server/main.d.ts +2 -0
- package/{build → lib/esm}/server/main.js +12 -9
- package/lib/esm/test.d.mts +2 -0
- package/lib/esm/test.mjs +26 -0
- package/lib/esm/test_all.d.ts +9 -0
- package/{build → lib/esm}/test_all.js +28 -18
- package/lib/esm/transpile.d.mts +3 -0
- package/{build → lib/esm}/transpile.mjs +18 -18
- package/lib/esm/tsconfig.tsbuildinfo +1 -0
- package/package.json +13 -14
- package/src/assert.ts +1 -1
- package/src/components/button_bar.ts +3 -3
- package/src/components/inline_edit.ts +3 -3
- package/src/components/logger.ts +3 -3
- package/src/components/select.ts +3 -3
- package/src/components/test.js +3 -2
- package/src/context.ts +3 -3
- package/src/diff.ts +2 -2
- package/src/dom/css/border.ts +3 -3
- package/src/dom/css/core.ts +1 -1
- package/src/dom/css/fstyle.ts +2 -2
- package/src/dom/css/sizing.ts +1 -1
- package/src/dom/dom.ts +1 -1
- package/src/dom/fc.test.ts +3 -3
- package/src/dom/fc.ts +1 -1
- package/src/dom/form/form.app.ts +2 -2
- package/src/dom/form/form.ts +3 -3
- package/src/dom/html.test.ts +3 -3
- package/src/dom/html.ts +1 -1
- package/src/dom/observable.test.ts +6 -6
- package/src/dom/observable.ts +1 -1
- package/src/dom/provide.ts +1 -1
- package/src/dom/router/link.ts +2 -2
- package/src/dom/router/router.ts +2 -2
- package/src/dom/svg.ts +1 -1
- package/src/dom/test.ts +8 -6
- package/src/dom/types/html.ts +1 -1
- package/src/equal.ts +1 -1
- package/src/flags.ts +1 -1
- package/src/fs.ts +4 -4
- package/src/index.html +6 -6
- package/src/observable/event.ts +2 -2
- package/src/observable/observable.test.ts +2 -2
- package/src/observable/observable.ts +72 -12
- package/src/pico/_variables.scss +1 -1
- package/src/pico/layout/_sectioning.scss +2 -0
- package/src/result.ts +1 -1
- package/src/scope/describe.ts +2 -5
- package/src/scope/display/console.ts +4 -4
- package/src/scope/display/dom.ts +6 -6
- package/src/scope/display/junit.ts +3 -3
- package/src/scope/execute.ts +2 -2
- package/src/scope/expect.ts +3 -3
- package/src/scope/state.ts +10 -0
- package/src/server/http/sitemap.ts +1 -1
- package/src/server/main.ts +9 -2
- package/src/test.mjs +22 -18
- package/src/test_all.ts +10 -0
- package/build/components/select.d.ts +0 -13
- package/build/components/test.js +0 -2
- package/build/dom/test.d.ts +0 -1
- package/build/dom/test.js +0 -2
- package/build/observable/observable.d.ts +0 -83
- package/build/observable/observable.js +0 -148
- package/build/observable/observable.test.js +0 -21
- package/build/test.mjs +0 -23
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { DenormAttrs, DenormChildren } from "./dom.js";
|
|
2
|
+
export declare const a: (attrs?: DenormAttrs<HTMLAnchorElement, {}> | undefined, ...children: DenormChildren[]) => HTMLAnchorElement;
|
|
3
|
+
export declare const abbr: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
4
|
+
export declare const address: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
5
|
+
export declare const area: (attrs?: DenormAttrs<HTMLAreaElement, {}> | undefined, ...children: DenormChildren[]) => HTMLAreaElement;
|
|
6
|
+
export declare const article: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
7
|
+
export declare const aside: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
8
|
+
export declare const audio: (attrs?: DenormAttrs<HTMLAudioElement, {}> | undefined, ...children: DenormChildren[]) => HTMLAudioElement;
|
|
9
|
+
export declare const b: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
10
|
+
export declare const base: (attrs?: DenormAttrs<HTMLBaseElement, {}> | undefined, ...children: DenormChildren[]) => HTMLBaseElement;
|
|
11
|
+
export declare const bdi: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
12
|
+
export declare const bdo: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
13
|
+
export declare const blockquote: (attrs?: DenormAttrs<HTMLQuoteElement, {}> | undefined, ...children: DenormChildren[]) => HTMLQuoteElement;
|
|
14
|
+
export declare const body: (attrs?: DenormAttrs<HTMLBodyElement, {}> | undefined, ...children: DenormChildren[]) => HTMLBodyElement;
|
|
15
|
+
export declare const br: (attrs?: DenormAttrs<HTMLBRElement, {}> | undefined, ...children: DenormChildren[]) => HTMLBRElement;
|
|
16
|
+
export declare const button: (attrs?: DenormAttrs<HTMLButtonElement, {}> | undefined, ...children: DenormChildren[]) => HTMLButtonElement;
|
|
17
|
+
export declare const canvas: (attrs?: DenormAttrs<HTMLCanvasElement, {}> | undefined, ...children: DenormChildren[]) => HTMLCanvasElement;
|
|
18
|
+
export declare const caption: (attrs?: DenormAttrs<HTMLTableCaptionElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTableCaptionElement;
|
|
19
|
+
export declare const cite: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
20
|
+
export declare const code: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
21
|
+
export declare const col: (attrs?: DenormAttrs<HTMLTableColElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTableColElement;
|
|
22
|
+
export declare const colgroup: (attrs?: DenormAttrs<HTMLTableColElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTableColElement;
|
|
23
|
+
export declare const data: (attrs?: DenormAttrs<HTMLDataElement, {}> | undefined, ...children: DenormChildren[]) => HTMLDataElement;
|
|
24
|
+
export declare const datalist: (attrs?: DenormAttrs<HTMLDataListElement, {}> | undefined, ...children: DenormChildren[]) => HTMLDataListElement;
|
|
25
|
+
export declare const dd: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
26
|
+
export declare const del: (attrs?: DenormAttrs<HTMLModElement, {}> | undefined, ...children: DenormChildren[]) => HTMLModElement;
|
|
27
|
+
export declare const details: (attrs?: DenormAttrs<HTMLDetailsElement, {}> | undefined, ...children: DenormChildren[]) => HTMLDetailsElement;
|
|
28
|
+
export declare const dfn: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
29
|
+
export declare const dialog: (attrs?: DenormAttrs<HTMLDialogElement, {}> | undefined, ...children: DenormChildren[]) => HTMLDialogElement;
|
|
30
|
+
export declare const div: (attrs?: DenormAttrs<HTMLDivElement, {}> | undefined, ...children: DenormChildren[]) => HTMLDivElement;
|
|
31
|
+
export declare const dl: (attrs?: DenormAttrs<HTMLDListElement, {}> | undefined, ...children: DenormChildren[]) => HTMLDListElement;
|
|
32
|
+
export declare const dt: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
33
|
+
export declare const em: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
34
|
+
export declare const embed: (attrs?: DenormAttrs<HTMLEmbedElement, {}> | undefined, ...children: DenormChildren[]) => HTMLEmbedElement;
|
|
35
|
+
export declare const fieldset: (attrs?: DenormAttrs<HTMLFieldSetElement, {}> | undefined, ...children: DenormChildren[]) => HTMLFieldSetElement;
|
|
36
|
+
export declare const figcaption: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
37
|
+
export declare const figure: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
38
|
+
export declare const footer: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
39
|
+
export declare const form: (attrs?: DenormAttrs<HTMLFormElement, {}> | undefined, ...children: DenormChildren[]) => HTMLFormElement;
|
|
40
|
+
export declare const h1: (attrs?: DenormAttrs<HTMLHeadingElement, {}> | undefined, ...children: DenormChildren[]) => HTMLHeadingElement;
|
|
41
|
+
export declare const h2: (attrs?: DenormAttrs<HTMLHeadingElement, {}> | undefined, ...children: DenormChildren[]) => HTMLHeadingElement;
|
|
42
|
+
export declare const h3: (attrs?: DenormAttrs<HTMLHeadingElement, {}> | undefined, ...children: DenormChildren[]) => HTMLHeadingElement;
|
|
43
|
+
export declare const h4: (attrs?: DenormAttrs<HTMLHeadingElement, {}> | undefined, ...children: DenormChildren[]) => HTMLHeadingElement;
|
|
44
|
+
export declare const h5: (attrs?: DenormAttrs<HTMLHeadingElement, {}> | undefined, ...children: DenormChildren[]) => HTMLHeadingElement;
|
|
45
|
+
export declare const h6: (attrs?: DenormAttrs<HTMLHeadingElement, {}> | undefined, ...children: DenormChildren[]) => HTMLHeadingElement;
|
|
46
|
+
export declare const head: (attrs?: DenormAttrs<HTMLHeadElement, {}> | undefined, ...children: DenormChildren[]) => HTMLHeadElement;
|
|
47
|
+
export declare const header: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
48
|
+
export declare const hgroup: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
49
|
+
export declare const hr: (attrs?: DenormAttrs<HTMLHRElement, {}> | undefined, ...children: DenormChildren[]) => HTMLHRElement;
|
|
50
|
+
export declare const html: (attrs?: DenormAttrs<HTMLHtmlElement, {}> | undefined, ...children: DenormChildren[]) => HTMLHtmlElement;
|
|
51
|
+
export declare const i: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
52
|
+
export declare const iframe: (attrs?: DenormAttrs<HTMLIFrameElement, {}> | undefined, ...children: DenormChildren[]) => HTMLIFrameElement;
|
|
53
|
+
export declare const img: (attrs?: DenormAttrs<HTMLImageElement, {}> | undefined, ...children: DenormChildren[]) => HTMLImageElement;
|
|
54
|
+
export declare const input: (attrs?: DenormAttrs<HTMLInputElement, {}> | undefined, ...children: DenormChildren[]) => HTMLInputElement;
|
|
55
|
+
export declare const ins: (attrs?: DenormAttrs<HTMLModElement, {}> | undefined, ...children: DenormChildren[]) => HTMLModElement;
|
|
56
|
+
export declare const kbd: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
57
|
+
export declare const label: (attrs?: DenormAttrs<HTMLLabelElement, {}> | undefined, ...children: DenormChildren[]) => HTMLLabelElement;
|
|
58
|
+
export declare const legend: (attrs?: DenormAttrs<HTMLLegendElement, {}> | undefined, ...children: DenormChildren[]) => HTMLLegendElement;
|
|
59
|
+
export declare const li: (attrs?: DenormAttrs<HTMLLIElement, {}> | undefined, ...children: DenormChildren[]) => HTMLLIElement;
|
|
60
|
+
export declare const link: (attrs?: DenormAttrs<HTMLLinkElement, {}> | undefined, ...children: DenormChildren[]) => HTMLLinkElement;
|
|
61
|
+
export declare const main: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
62
|
+
export declare const map: (attrs?: DenormAttrs<HTMLMapElement, {}> | undefined, ...children: DenormChildren[]) => HTMLMapElement;
|
|
63
|
+
export declare const mark: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
64
|
+
export declare const menu: (attrs?: DenormAttrs<HTMLMenuElement, {}> | undefined, ...children: DenormChildren[]) => HTMLMenuElement;
|
|
65
|
+
export declare const meta: (attrs?: DenormAttrs<HTMLMetaElement, {}> | undefined, ...children: DenormChildren[]) => HTMLMetaElement;
|
|
66
|
+
export declare const meter: (attrs?: DenormAttrs<HTMLMeterElement, {}> | undefined, ...children: DenormChildren[]) => HTMLMeterElement;
|
|
67
|
+
export declare const nav: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
68
|
+
export declare const noscript: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
69
|
+
export declare const object: (attrs?: DenormAttrs<HTMLObjectElement, {}> | undefined, ...children: DenormChildren[]) => HTMLObjectElement;
|
|
70
|
+
export declare const ol: (attrs?: DenormAttrs<HTMLOListElement, {}> | undefined, ...children: DenormChildren[]) => HTMLOListElement;
|
|
71
|
+
export declare const optgroup: (attrs?: DenormAttrs<HTMLOptGroupElement, {}> | undefined, ...children: DenormChildren[]) => HTMLOptGroupElement;
|
|
72
|
+
export declare const option: (attrs?: DenormAttrs<HTMLOptionElement, {}> | undefined, ...children: DenormChildren[]) => HTMLOptionElement;
|
|
73
|
+
export declare const output: (attrs?: DenormAttrs<HTMLOutputElement, {}> | undefined, ...children: DenormChildren[]) => HTMLOutputElement;
|
|
74
|
+
export declare const p: (attrs?: DenormAttrs<HTMLParagraphElement, {}> | undefined, ...children: DenormChildren[]) => HTMLParagraphElement;
|
|
75
|
+
export declare const param: (attrs?: DenormAttrs<HTMLParamElement, {}> | undefined, ...children: DenormChildren[]) => HTMLParamElement;
|
|
76
|
+
export declare const picture: (attrs?: DenormAttrs<HTMLPictureElement, {}> | undefined, ...children: DenormChildren[]) => HTMLPictureElement;
|
|
77
|
+
export declare const pre: (attrs?: DenormAttrs<HTMLPreElement, {}> | undefined, ...children: DenormChildren[]) => HTMLPreElement;
|
|
78
|
+
export declare const progress: (attrs?: DenormAttrs<HTMLProgressElement, {}> | undefined, ...children: DenormChildren[]) => HTMLProgressElement;
|
|
79
|
+
export declare const q: (attrs?: DenormAttrs<HTMLQuoteElement, {}> | undefined, ...children: DenormChildren[]) => HTMLQuoteElement;
|
|
80
|
+
export declare const rp: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
81
|
+
export declare const rt: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
82
|
+
export declare const ruby: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
83
|
+
export declare const s: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
84
|
+
export declare const samp: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
85
|
+
export declare const script: (attrs?: DenormAttrs<HTMLScriptElement, {}> | undefined, ...children: DenormChildren[]) => HTMLScriptElement;
|
|
86
|
+
export declare const section: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
87
|
+
export declare const select: (attrs?: DenormAttrs<HTMLSelectElement, {}> | undefined, ...children: DenormChildren[]) => HTMLSelectElement;
|
|
88
|
+
export declare const slot: (attrs?: DenormAttrs<HTMLSlotElement, {}> | undefined, ...children: DenormChildren[]) => HTMLSlotElement;
|
|
89
|
+
export declare const small: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
90
|
+
export declare const source: (attrs?: DenormAttrs<HTMLSourceElement, {}> | undefined, ...children: DenormChildren[]) => HTMLSourceElement;
|
|
91
|
+
export declare const span: (attrs?: DenormAttrs<HTMLSpanElement, {}> | undefined, ...children: DenormChildren[]) => HTMLSpanElement;
|
|
92
|
+
export declare const strong: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
93
|
+
export declare const style: (attrs?: DenormAttrs<HTMLStyleElement, {}> | undefined, ...children: DenormChildren[]) => HTMLStyleElement;
|
|
94
|
+
export declare const sub: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
95
|
+
export declare const summary: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
96
|
+
export declare const sup: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
97
|
+
export declare const table: (attrs?: DenormAttrs<HTMLTableElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTableElement;
|
|
98
|
+
export declare const tbody: (attrs?: DenormAttrs<HTMLTableSectionElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTableSectionElement;
|
|
99
|
+
export declare const td: (attrs?: DenormAttrs<HTMLTableCellElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTableCellElement;
|
|
100
|
+
export declare const template: (attrs?: DenormAttrs<HTMLTemplateElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTemplateElement;
|
|
101
|
+
export declare const textarea: (attrs?: DenormAttrs<HTMLTextAreaElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTextAreaElement;
|
|
102
|
+
export declare const tfoot: (attrs?: DenormAttrs<HTMLTableSectionElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTableSectionElement;
|
|
103
|
+
export declare const th: (attrs?: DenormAttrs<HTMLTableCellElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTableCellElement;
|
|
104
|
+
export declare const thead: (attrs?: DenormAttrs<HTMLTableSectionElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTableSectionElement;
|
|
105
|
+
export declare const time: (attrs?: DenormAttrs<HTMLTimeElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTimeElement;
|
|
106
|
+
export declare const title: (attrs?: DenormAttrs<HTMLTitleElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTitleElement;
|
|
107
|
+
export declare const tr: (attrs?: DenormAttrs<HTMLTableRowElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTableRowElement;
|
|
108
|
+
export declare const track: (attrs?: DenormAttrs<HTMLTrackElement, {}> | undefined, ...children: DenormChildren[]) => HTMLTrackElement;
|
|
109
|
+
export declare const u: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
110
|
+
export declare const ul: (attrs?: DenormAttrs<HTMLUListElement, {}> | undefined, ...children: DenormChildren[]) => HTMLUListElement;
|
|
111
|
+
export declare const htmlvar: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
112
|
+
export declare const video: (attrs?: DenormAttrs<HTMLVideoElement, {}> | undefined, ...children: DenormChildren[]) => HTMLVideoElement;
|
|
113
|
+
export declare const wbr: (attrs?: DenormAttrs<HTMLElement, {}> | undefined, ...children: DenormChildren[]) => HTMLElement;
|
|
@@ -1,114 +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");
|
|
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 {};
|
|
@@ -1,58 +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 =
|
|
15
|
-
const btn = button({
|
|
16
|
-
events: {
|
|
17
|
-
click: () => {
|
|
18
|
-
clicked
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
btn.dispatchEvent(new Event("click"));
|
|
23
|
-
expect(clicked).toBe(
|
|
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:
|
|
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
|
-
});
|
|
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 = 0;
|
|
15
|
+
const btn = button({
|
|
16
|
+
events: {
|
|
17
|
+
click: () => {
|
|
18
|
+
clicked += 1;
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
btn.dispatchEvent(new Event("click"));
|
|
23
|
+
expect(clicked).toBe(1);
|
|
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: null } });
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { O } from "./observable.js";
|
|
2
|
+
import { Subject, map } from "../observable/observable.js";
|
|
3
|
+
import { describe, it } from "../scope/describe.js";
|
|
4
|
+
import { expect } from "../scope/expect.js";
|
|
5
|
+
import { div, span } from "./html.js";
|
|
6
|
+
describe("DOM Observable", () => {
|
|
7
|
+
it("updates a dom node with observable results", async () => {
|
|
8
|
+
const subject = new Subject();
|
|
9
|
+
const observable = subject.pipe(map((s) => [s]));
|
|
10
|
+
const element = O(div(), observable);
|
|
11
|
+
expect(element.innerText).toEqual("");
|
|
12
|
+
await subject.next("H");
|
|
13
|
+
expect(element.innerText).toEqual("H");
|
|
14
|
+
await subject.next("He");
|
|
15
|
+
expect(element.innerText).toEqual("He");
|
|
16
|
+
});
|
|
17
|
+
it("updates a dom node's attributes", async () => {
|
|
18
|
+
const classes = new Subject();
|
|
19
|
+
const observable = classes.map((c) => [{ class: c.join(" ") }]);
|
|
20
|
+
const element = O(span(), observable);
|
|
21
|
+
expect(element.classList.contains("warning")).toBe(false);
|
|
22
|
+
expect(element.classList.contains("error")).toBe(false);
|
|
23
|
+
await classes.next(["warning"]);
|
|
24
|
+
expect(element.classList.contains("warning")).toBe(true);
|
|
25
|
+
expect(element.classList.contains("error")).toBe(false);
|
|
26
|
+
await classes.next(["error"]);
|
|
27
|
+
expect(element.classList.contains("warning")).toBe(true);
|
|
28
|
+
expect(element.classList.contains("error")).toBe(true);
|
|
29
|
+
await classes.next(["!warning", "!error"]);
|
|
30
|
+
expect(element.classList.contains("warning")).toBe(false);
|
|
31
|
+
expect(element.classList.contains("error")).toBe(false);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
let registry = {};
|
|
2
|
-
export function provide(items) {
|
|
3
|
-
registry = { ...registry, ...items };
|
|
4
|
-
}
|
|
5
|
-
export function retrieve(key) {
|
|
6
|
-
return registry[key];
|
|
7
|
-
}
|
|
1
|
+
let registry = {};
|
|
2
|
+
export function provide(items) {
|
|
3
|
+
registry = { ...registry, ...items };
|
|
4
|
+
}
|
|
5
|
+
export function retrieve(key) {
|
|
6
|
+
return registry[key];
|
|
7
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a } from "../html.js";
|
|
2
|
-
import { Router } from "./router.js";
|
|
3
|
-
export const link = ({ href, link }) => a({ href: Router.href(href), events: { click: Router.navigate(href) } }, link);
|
|
1
|
+
import { a } from "../html.js";
|
|
2
|
+
import { Router } from "./router.js";
|
|
3
|
+
export const link = ({ href, link }) => a({ href: Router.href(href), events: { click: Router.navigate(href) } }, link);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DOMElement } from "../dom.js";
|
|
2
|
+
import { Link } from "./link.js";
|
|
3
|
+
export interface Router {
|
|
4
|
+
current?: string;
|
|
5
|
+
navigate: (url: string) => (event: Event) => void;
|
|
6
|
+
(target: DOMElement): 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
|
+
};
|