ziko 0.38.1 → 0.39.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/dist/ziko.cjs +108 -673
- package/dist/ziko.js +108 -673
- package/dist/ziko.min.js +2 -2
- package/dist/ziko.mjs +107 -670
- package/package.json +1 -1
- package/src/events/types/clipboard.d.ts +2 -2
- package/src/events/types/focus.d.ts +2 -2
- package/src/events/types/pointer.d.ts +2 -2
- package/src/reactivity/hooks/UI/index.js +1 -1
- package/src/ui/__methods__/attrs.js +46 -0
- package/src/ui/__methods__/index.js +2 -1
- package/src/ui/__methods__/style.js +14 -0
- package/src/ui/__utils__/index.js +2 -2
- package/src/ui/constructors/{ZikoUIElement.js → UIElement.js} +23 -64
- package/src/ui/constructors/{ZikoUINode.js → UINode.js} +2 -2
- package/src/ui/flex/index.js +8 -8
- package/src/ui/graphics/canvas.js +2 -2
- package/src/ui/graphics/svg.js +2 -2
- package/src/ui/grid/index.js +4 -4
- package/src/ui/index.js +2 -2
- package/src/ui/suspense/index.js +3 -3
- package/src/ui/tags/index.d.ts.txt +125 -125
- package/src/ui/tags/index.js +10 -10
- package/src/ui/text/index.js +2 -2
- package/src/ui/wrapper/index.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ziko",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "A versatile JavaScript library offering a rich set of Hyperscript Based UI components, advanced mathematical utilities, interactivity ,animations, client side routing and more ...",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"front-end",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
2
|
import type { Callback, ClipboardEventKeys } from './__Shared__.js';
|
|
3
|
-
import {
|
|
3
|
+
import { UIElement } from "../../ui/index.js";
|
|
4
4
|
|
|
5
5
|
declare class ZikoEventClipboard extends __ZikoEvent__ {
|
|
6
6
|
constructor(target: any, customizer?: Function);
|
|
@@ -12,7 +12,7 @@ declare class ZikoEventClipboard extends __ZikoEvent__ {
|
|
|
12
12
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
declare const bindClipboardEvent: (target:
|
|
15
|
+
declare const bindClipboardEvent: (target: UIElement, customizer?: Function) => ZikoEventClipboard;
|
|
16
16
|
|
|
17
17
|
export {
|
|
18
18
|
ZikoEventClipboard,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
2
|
import type { Callback } from './__Shared__.js';
|
|
3
|
-
import {
|
|
3
|
+
import { UIElement } from "../../ui/index.js";
|
|
4
4
|
|
|
5
5
|
declare class ZikoEventFocus extends __ZikoEvent__ {
|
|
6
6
|
constructor(target: any, customizer?: Function);
|
|
@@ -11,7 +11,7 @@ declare class ZikoEventFocus extends __ZikoEvent__ {
|
|
|
11
11
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
declare const bindFocusEvent: (target:
|
|
14
|
+
declare const bindFocusEvent: (target: UIElement, customizer?: Function) => ZikoEventFocus;
|
|
15
15
|
|
|
16
16
|
export {
|
|
17
17
|
ZikoEventFocus,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
2
|
import type { EventMethodesBinder, Callback, PointerEventKeys } from './__Shared__.js';
|
|
3
|
-
import {
|
|
3
|
+
import { UIElement } from "../../ui/index.js";
|
|
4
4
|
|
|
5
5
|
type PointerEventMethodesBinder = EventMethodesBinder<PointerEventKeys, ZikoEventPointer>;
|
|
6
6
|
|
|
@@ -37,7 +37,7 @@ declare class ZikoEventPointer extends __ZikoEvent__ implements PointerEventMeth
|
|
|
37
37
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
declare const bindPointerEvent: (target:
|
|
40
|
+
declare const bindPointerEvent: (target: UIElement, customizer?: Function) => ZikoEventPointer;
|
|
41
41
|
|
|
42
42
|
export {
|
|
43
43
|
ZikoEventPointer,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Str } from "../../data";
|
|
2
|
+
import { isStateGetter } from "../../hooks/use-state.js";
|
|
3
|
+
|
|
4
|
+
// To Do add getter, watchAttr
|
|
5
|
+
export const AttrsMethods = {
|
|
6
|
+
setAttr(name, value) {
|
|
7
|
+
if(name instanceof Object){
|
|
8
|
+
const [names,values]=[Object.keys(name),Object.values(name)];
|
|
9
|
+
for(let i=0;i<names.length;i++){
|
|
10
|
+
if(values[i] instanceof Array)value[i] = values[i].join(" ");
|
|
11
|
+
_set_attrs_.call(this, names[i], values[i])
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
else{
|
|
15
|
+
if(value instanceof Array) value = value.join(" ");
|
|
16
|
+
_set_attrs_.call(this, name, value)
|
|
17
|
+
}
|
|
18
|
+
return this;
|
|
19
|
+
},
|
|
20
|
+
removeAttr(...names) {
|
|
21
|
+
for(let i=0;i<names.length;i++)this.element?.removeAttribute(names[i]);
|
|
22
|
+
return this;
|
|
23
|
+
},
|
|
24
|
+
getAttr(name){
|
|
25
|
+
name = Str.isCamelCase(name) ? Str.camel2hyphencase(name) : name;
|
|
26
|
+
return this.element.attributes[name].value;
|
|
27
|
+
},
|
|
28
|
+
setContentEditable(bool = true) {
|
|
29
|
+
this.setAttr("contenteditable", bool);
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
function _set_attrs_(name, value){
|
|
35
|
+
if(this.element?.tagName !== "svg") name = Str.isCamelCase(name) ? Str.camel2hyphencase(name) : name;
|
|
36
|
+
if(this?.attr[name] && this?.attr[name]===value) return;
|
|
37
|
+
if(isStateGetter(value)){
|
|
38
|
+
const getter = value()
|
|
39
|
+
getter._subscribe(
|
|
40
|
+
(newValue) => this.element?.setAttribute(name, newValue),
|
|
41
|
+
this
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
else this.element?.setAttribute(name, value)
|
|
45
|
+
Object.assign(this.cache.attributes, {[name]:value});
|
|
46
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Process width and height
|
|
2
|
+
export const StyleMethods = {
|
|
3
|
+
style(styles){
|
|
4
|
+
Object.assign(this.element.style, styles)
|
|
5
|
+
return this;
|
|
6
|
+
},
|
|
7
|
+
size(width, height){
|
|
8
|
+
return this.style({width, height})
|
|
9
|
+
},
|
|
10
|
+
animate(keyframe, {duration=1000, iterations=1, easing="ease"}={}){
|
|
11
|
+
this.element?.animate(keyframe,{duration, iterations, easing});
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import UIElement from "../constructors/UIElement.js";
|
|
2
2
|
const Id = (a) => document.getElementById(a);
|
|
3
3
|
const Class = (a) => [...document.getElementsByClassName(a)];
|
|
4
4
|
const $=(...selector)=>{
|
|
5
5
|
var ele=[]
|
|
6
6
|
for(let i=0;i<selector.length;i++){
|
|
7
7
|
if(typeof selector[i]=="string")ele.push(...document.querySelectorAll(selector[i]));
|
|
8
|
-
if(selector[i] instanceof
|
|
8
|
+
if(selector[i] instanceof UIElement)ele.push(selector[i].element)
|
|
9
9
|
}
|
|
10
10
|
return ele.length===1?ele[0]:ele;
|
|
11
11
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import UINode from "./UINode.js";
|
|
2
2
|
import { register } from "../../__helpers__/register/index.js";
|
|
3
3
|
import {
|
|
4
|
+
AttrsMethods,
|
|
4
5
|
DomMethods,
|
|
5
6
|
IndexingMethods,
|
|
6
|
-
EventsMethodes
|
|
7
|
+
EventsMethodes,
|
|
8
|
+
StyleMethods
|
|
7
9
|
} from "../__methods__/index.js";
|
|
8
|
-
import { ZikoUseStyle } from "../../reactivity/hooks/UI/useStyle.js";
|
|
9
|
-
import { ZikoUIElementStyle } from "./style/index.js";
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
12
|
useCustomEvent,
|
|
@@ -17,11 +17,10 @@ import {
|
|
|
17
17
|
watchChildren
|
|
18
18
|
} from "../../reactivity/index.js"
|
|
19
19
|
import { Random } from "../../math/index.js";
|
|
20
|
-
import { Str } from "../../data/index.js";
|
|
21
20
|
import {__init__global__} from '../../__ziko__/index.js';
|
|
22
21
|
__init__global__()
|
|
23
|
-
class
|
|
24
|
-
constructor(element, name=
|
|
22
|
+
class UIElement extends UINode{
|
|
23
|
+
constructor({element, name ='', type="html", useDefaultStyle=false}={}){
|
|
25
24
|
super()
|
|
26
25
|
this.target = globalThis.__Ziko__.__Config__.default.target||globalThis?.document?.body;
|
|
27
26
|
if(typeof element === "string") {
|
|
@@ -32,9 +31,16 @@ class ZikoUIElement extends ZikoUINode{
|
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
else{
|
|
35
|
-
this.target = element
|
|
34
|
+
this.target = element?.parentElement;
|
|
36
35
|
}
|
|
37
|
-
register(
|
|
36
|
+
register(
|
|
37
|
+
this,
|
|
38
|
+
AttrsMethods,
|
|
39
|
+
DomMethods,
|
|
40
|
+
StyleMethods,
|
|
41
|
+
IndexingMethods,
|
|
42
|
+
EventsMethodes
|
|
43
|
+
);
|
|
38
44
|
Object.assign(this.cache, {
|
|
39
45
|
name,
|
|
40
46
|
isInteractive : [true, false][Math.floor(2*Math.random())],
|
|
@@ -44,7 +50,6 @@ class ZikoUIElement extends ZikoUINode{
|
|
|
44
50
|
isHidden: false,
|
|
45
51
|
isFrozzen:false,
|
|
46
52
|
legacyParent : null,
|
|
47
|
-
style: new ZikoUIElementStyle({}),
|
|
48
53
|
attributes: {},
|
|
49
54
|
filters: {},
|
|
50
55
|
temp:{}
|
|
@@ -69,7 +74,6 @@ class ZikoUIElement extends ZikoUINode{
|
|
|
69
74
|
if(element)Object.assign(this.cache,{element});
|
|
70
75
|
this.uuid = `${this.cache.name}-${Random.string(16)}`
|
|
71
76
|
this.ui_index = globalThis.__Ziko__.__CACHE__.get_ui_index();
|
|
72
|
-
this.cache.style.linkTo(this);
|
|
73
77
|
useDefaultStyle && this.style({
|
|
74
78
|
position: "relative",
|
|
75
79
|
boxSizing:"border-box",
|
|
@@ -151,25 +155,17 @@ class ZikoUIElement extends ZikoUINode{
|
|
|
151
155
|
else UI.element=this.element.cloneNode(true);
|
|
152
156
|
return UI.render(render);
|
|
153
157
|
}
|
|
154
|
-
style(styles){
|
|
155
|
-
styles instanceof ZikoUseStyle ? this.st.style(styles.current): this.st.style(styles);
|
|
156
|
-
return this;
|
|
157
|
-
}
|
|
158
|
-
size(width,height){
|
|
159
|
-
this.st.size(width,height);
|
|
160
|
-
return this;
|
|
161
|
-
}
|
|
162
158
|
[Symbol.iterator]() {
|
|
163
159
|
return this.items[Symbol.iterator]();
|
|
164
160
|
}
|
|
165
161
|
maintain() {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
162
|
+
for (let i = 0; i < this.items.length; i++) {
|
|
163
|
+
Object.defineProperty(this, i, {
|
|
164
|
+
value: this.items[i],
|
|
165
|
+
writable: true,
|
|
166
|
+
configurable: true,
|
|
167
|
+
enumerable: false
|
|
168
|
+
});
|
|
173
169
|
}
|
|
174
170
|
}
|
|
175
171
|
freeze(freeze){
|
|
@@ -187,43 +183,6 @@ class ZikoUIElement extends ZikoUINode{
|
|
|
187
183
|
describe(label){
|
|
188
184
|
if(label)this.setAttr("aria-label",label)
|
|
189
185
|
}
|
|
190
|
-
animate(keyframe, {duration=1000, iterations=1, easing="ease"}={}){
|
|
191
|
-
this.element?.animate(keyframe,{duration, iterations, easing});
|
|
192
|
-
return this;
|
|
193
|
-
}
|
|
194
|
-
// Attributes
|
|
195
|
-
#setAttr(name, value){
|
|
196
|
-
if(this.element?.tagName !== "svg") name = Str.isCamelCase(name) ? Str.camel2hyphencase(name) : name;
|
|
197
|
-
if(this?.attr[name] && this?.attr[name]===value) return;
|
|
198
|
-
this.element?.setAttribute(name, value)
|
|
199
|
-
Object.assign(this.cache.attributes, {[name]:value});
|
|
200
|
-
}
|
|
201
|
-
setAttr(name, value) {
|
|
202
|
-
if(name instanceof Object){
|
|
203
|
-
const [names,values]=[Object.keys(name),Object.values(name)];
|
|
204
|
-
for(let i=0;i<names.length;i++){
|
|
205
|
-
if(values[i] instanceof Array)value[i] = values[i].join(" ");
|
|
206
|
-
this.#setAttr(names[i], values[i])
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
else{
|
|
210
|
-
if(value instanceof Array)value = value.join(" ");
|
|
211
|
-
this.#setAttr(name, value)
|
|
212
|
-
}
|
|
213
|
-
return this;
|
|
214
|
-
}
|
|
215
|
-
removeAttr(...names) {
|
|
216
|
-
for(let i=0;i<names.length;i++)this.element?.removeAttribute(names[i]);
|
|
217
|
-
return this;
|
|
218
|
-
}
|
|
219
|
-
getAttr(name){
|
|
220
|
-
name = Str.isCamelCase(name) ? Str.camel2hyphencase(name) : name;
|
|
221
|
-
return this.element.attributes[name].value;
|
|
222
|
-
}
|
|
223
|
-
setContentEditable(bool = true) {
|
|
224
|
-
this.setAttr("contenteditable", bool);
|
|
225
|
-
return this;
|
|
226
|
-
}
|
|
227
186
|
get children() {
|
|
228
187
|
return [...this.element.children];
|
|
229
188
|
}
|
|
@@ -295,4 +254,4 @@ class ZikoUIElement extends ZikoUINode{
|
|
|
295
254
|
}
|
|
296
255
|
|
|
297
256
|
}
|
|
298
|
-
export default
|
|
257
|
+
export default UIElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default class
|
|
1
|
+
export default class UINode {
|
|
2
2
|
constructor(node){
|
|
3
3
|
this.cache = {
|
|
4
4
|
node
|
|
@@ -12,4 +12,4 @@ export default class ZikoUINode {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
globalThis.node = (node) => new
|
|
15
|
+
globalThis.node = (node) => new UINode(node);
|
package/src/ui/flex/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
class ZikoUIFlex extends
|
|
1
|
+
import UIElement from "../constructors/UIElement.js";
|
|
2
|
+
class ZikoUIFlex extends UIElement {
|
|
3
3
|
constructor(tag = "div", w = "100%", h = "100%") {
|
|
4
|
-
super(tag ,"Flex");
|
|
4
|
+
super({element : tag , name : "Flex"});
|
|
5
5
|
this.direction = "cols";
|
|
6
6
|
if (typeof w == "number") w += "%";
|
|
7
7
|
if (typeof h == "number") h += "%";
|
|
@@ -69,13 +69,13 @@ class ZikoUIFlex extends ZikoUIElement {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
const Flex = (...
|
|
72
|
+
const Flex = (...UIElement) =>{
|
|
73
73
|
let tag="div";
|
|
74
|
-
if(typeof
|
|
75
|
-
tag=
|
|
76
|
-
|
|
74
|
+
if(typeof UIElement[0]==="string"){
|
|
75
|
+
tag=UIElement[0];
|
|
76
|
+
UIElement.pop();
|
|
77
77
|
}
|
|
78
|
-
return new ZikoUIFlex(tag).append(...
|
|
78
|
+
return new ZikoUIFlex(tag).append(...UIElement);
|
|
79
79
|
}
|
|
80
80
|
function set_vertical(direction){
|
|
81
81
|
direction == 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import UIElement from "../constructors/UIElement.js";
|
|
2
2
|
import {Matrix} from "../../math/matrix/Matrix.js"
|
|
3
|
-
class ZikoUICanvas extends
|
|
3
|
+
class ZikoUICanvas extends UIElement{
|
|
4
4
|
constructor(w,h){
|
|
5
5
|
super("canvas","canvas");
|
|
6
6
|
this.ctx = this.element?.getContext("2d");
|
package/src/ui/graphics/svg.js
CHANGED
package/src/ui/grid/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
class ZikoUIGrid extends
|
|
1
|
+
import UIElement from "../constructors/UIElement.js"
|
|
2
|
+
class ZikoUIGrid extends UIElement {
|
|
3
3
|
constructor(tag ="div", w = "50vw", h = "50vh") {
|
|
4
|
-
super(tag,"Grid");
|
|
4
|
+
super({element : tag, name : "Grid"});
|
|
5
5
|
this.direction = "cols";
|
|
6
6
|
if (typeof w == "number") w += "%";
|
|
7
7
|
if (typeof h == "number") h += "%";
|
|
@@ -29,5 +29,5 @@ class ZikoUIGrid extends ZikoUIElement {
|
|
|
29
29
|
return this;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
const Grid = (...
|
|
32
|
+
const Grid = (...UIElement) => new ZikoUIGrid("div").append(...UIElement);
|
|
33
33
|
export {Grid,ZikoUIGrid};
|
package/src/ui/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as
|
|
1
|
+
export { default as UIElement } from "./constructors/UIElement.js"
|
|
2
|
+
export { default as UINode } from "./constructors/UINode.js"
|
|
3
3
|
export * from './tags/index.js';
|
|
4
4
|
export * from './text/index.js';
|
|
5
5
|
export * from './flex/index.js';
|
package/src/ui/suspense/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
class ZikoUISuspense extends
|
|
1
|
+
import UIElement from "../constructors/UIElement";
|
|
2
|
+
class ZikoUISuspense extends UIElement{
|
|
3
3
|
constructor(fallback_ui, callback){
|
|
4
|
-
super("div", "suspense")
|
|
4
|
+
super({element : "div", name : "suspense"})
|
|
5
5
|
this.setAttr({
|
|
6
6
|
dataTemp : "suspense"
|
|
7
7
|
})
|
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
import
|
|
1
|
+
import UIElement from "../elements/UIElement.js";
|
|
2
2
|
interface HtmlTags {
|
|
3
|
-
a:
|
|
4
|
-
abbr:
|
|
5
|
-
address:
|
|
6
|
-
area:
|
|
7
|
-
article:
|
|
8
|
-
aside:
|
|
9
|
-
audio:
|
|
10
|
-
b:
|
|
11
|
-
base:
|
|
12
|
-
bdi:
|
|
13
|
-
bdo:
|
|
14
|
-
blockquote:
|
|
15
|
-
body:
|
|
16
|
-
br:
|
|
17
|
-
button:
|
|
18
|
-
canvas:
|
|
19
|
-
caption:
|
|
20
|
-
cite:
|
|
21
|
-
code:
|
|
22
|
-
col:
|
|
23
|
-
colgroup:
|
|
24
|
-
data:
|
|
25
|
-
datalist:
|
|
26
|
-
dd:
|
|
27
|
-
del:
|
|
28
|
-
details:
|
|
29
|
-
dfn:
|
|
30
|
-
dialog:
|
|
31
|
-
div:
|
|
32
|
-
dl:
|
|
33
|
-
dt:
|
|
34
|
-
em:
|
|
35
|
-
embed:
|
|
36
|
-
fieldset:
|
|
37
|
-
figcaption:
|
|
38
|
-
figure:
|
|
39
|
-
footer:
|
|
40
|
-
form:
|
|
41
|
-
h1:
|
|
42
|
-
h2:
|
|
43
|
-
h3:
|
|
44
|
-
h4:
|
|
45
|
-
h5:
|
|
46
|
-
h6:
|
|
47
|
-
head:
|
|
48
|
-
header:
|
|
49
|
-
hgroup:
|
|
50
|
-
hr:
|
|
51
|
-
html:
|
|
52
|
-
i:
|
|
53
|
-
iframe:
|
|
54
|
-
img:
|
|
55
|
-
input:
|
|
56
|
-
ins:
|
|
57
|
-
kbd:
|
|
58
|
-
label:
|
|
59
|
-
legend:
|
|
60
|
-
li:
|
|
61
|
-
link:
|
|
62
|
-
main:
|
|
63
|
-
map:
|
|
64
|
-
mark:
|
|
65
|
-
meta:
|
|
66
|
-
meter:
|
|
67
|
-
nav:
|
|
68
|
-
noscript:
|
|
69
|
-
object:
|
|
70
|
-
ol:
|
|
71
|
-
optgroup:
|
|
72
|
-
option:
|
|
73
|
-
output:
|
|
74
|
-
p:
|
|
75
|
-
param:
|
|
76
|
-
picture:
|
|
77
|
-
pre:
|
|
78
|
-
progress:
|
|
79
|
-
q:
|
|
80
|
-
rp:
|
|
81
|
-
rt:
|
|
82
|
-
ruby:
|
|
83
|
-
s:
|
|
84
|
-
samp:
|
|
85
|
-
script:
|
|
86
|
-
section:
|
|
87
|
-
select:
|
|
88
|
-
small:
|
|
89
|
-
source:
|
|
90
|
-
span:
|
|
91
|
-
strong:
|
|
92
|
-
style:
|
|
93
|
-
sub:
|
|
94
|
-
summary:
|
|
95
|
-
sup:
|
|
96
|
-
table:
|
|
97
|
-
tbody:
|
|
98
|
-
td:
|
|
99
|
-
template:
|
|
100
|
-
textarea:
|
|
101
|
-
tfoot:
|
|
102
|
-
th:
|
|
103
|
-
thead:
|
|
104
|
-
time:
|
|
105
|
-
title:
|
|
106
|
-
tr:
|
|
107
|
-
track:
|
|
108
|
-
u:
|
|
109
|
-
ul:
|
|
110
|
-
var:
|
|
111
|
-
video:
|
|
112
|
-
wbr:
|
|
3
|
+
a: UIElement;
|
|
4
|
+
abbr: UIElement;
|
|
5
|
+
address: UIElement;
|
|
6
|
+
area: UIElement;
|
|
7
|
+
article: UIElement;
|
|
8
|
+
aside: UIElement;
|
|
9
|
+
audio: UIElement;
|
|
10
|
+
b: UIElement;
|
|
11
|
+
base: UIElement;
|
|
12
|
+
bdi: UIElement;
|
|
13
|
+
bdo: UIElement;
|
|
14
|
+
blockquote: UIElement;
|
|
15
|
+
body: UIElement;
|
|
16
|
+
br: UIElement;
|
|
17
|
+
button: UIElement;
|
|
18
|
+
canvas: UIElement;
|
|
19
|
+
caption: UIElement;
|
|
20
|
+
cite: UIElement;
|
|
21
|
+
code: UIElement;
|
|
22
|
+
col: UIElement;
|
|
23
|
+
colgroup: UIElement;
|
|
24
|
+
data: UIElement;
|
|
25
|
+
datalist: UIElement;
|
|
26
|
+
dd: UIElement;
|
|
27
|
+
del: UIElement;
|
|
28
|
+
details: UIElement;
|
|
29
|
+
dfn: UIElement;
|
|
30
|
+
dialog: UIElement;
|
|
31
|
+
div: UIElement;
|
|
32
|
+
dl: UIElement;
|
|
33
|
+
dt: UIElement;
|
|
34
|
+
em: UIElement;
|
|
35
|
+
embed: UIElement;
|
|
36
|
+
fieldset: UIElement;
|
|
37
|
+
figcaption: UIElement;
|
|
38
|
+
figure: UIElement;
|
|
39
|
+
footer: UIElement;
|
|
40
|
+
form: UIElement;
|
|
41
|
+
h1: UIElement;
|
|
42
|
+
h2: UIElement;
|
|
43
|
+
h3: UIElement;
|
|
44
|
+
h4: UIElement;
|
|
45
|
+
h5: UIElement;
|
|
46
|
+
h6: UIElement;
|
|
47
|
+
head: UIElement;
|
|
48
|
+
header: UIElement;
|
|
49
|
+
hgroup: UIElement;
|
|
50
|
+
hr: UIElement;
|
|
51
|
+
html: UIElement;
|
|
52
|
+
i: UIElement;
|
|
53
|
+
iframe: UIElement;
|
|
54
|
+
img: UIElement;
|
|
55
|
+
input: UIElement;
|
|
56
|
+
ins: UIElement;
|
|
57
|
+
kbd: UIElement;
|
|
58
|
+
label: UIElement;
|
|
59
|
+
legend: UIElement;
|
|
60
|
+
li: UIElement;
|
|
61
|
+
link: UIElement;
|
|
62
|
+
main: UIElement;
|
|
63
|
+
map: UIElement;
|
|
64
|
+
mark: UIElement;
|
|
65
|
+
meta: UIElement;
|
|
66
|
+
meter: UIElement;
|
|
67
|
+
nav: UIElement;
|
|
68
|
+
noscript: UIElement;
|
|
69
|
+
object: UIElement;
|
|
70
|
+
ol: UIElement;
|
|
71
|
+
optgroup: UIElement;
|
|
72
|
+
option: UIElement;
|
|
73
|
+
output: UIElement;
|
|
74
|
+
p: UIElement;
|
|
75
|
+
param: UIElement;
|
|
76
|
+
picture: UIElement;
|
|
77
|
+
pre: UIElement;
|
|
78
|
+
progress: UIElement;
|
|
79
|
+
q: UIElement;
|
|
80
|
+
rp: UIElement;
|
|
81
|
+
rt: UIElement;
|
|
82
|
+
ruby: UIElement;
|
|
83
|
+
s: UIElement;
|
|
84
|
+
samp: UIElement;
|
|
85
|
+
script: UIElement;
|
|
86
|
+
section: UIElement;
|
|
87
|
+
select: UIElement;
|
|
88
|
+
small: UIElement;
|
|
89
|
+
source: UIElement;
|
|
90
|
+
span: UIElement;
|
|
91
|
+
strong: UIElement;
|
|
92
|
+
style: UIElement;
|
|
93
|
+
sub: UIElement;
|
|
94
|
+
summary: UIElement;
|
|
95
|
+
sup: UIElement;
|
|
96
|
+
table: UIElement;
|
|
97
|
+
tbody: UIElement;
|
|
98
|
+
td: UIElement;
|
|
99
|
+
template: UIElement;
|
|
100
|
+
textarea: UIElement;
|
|
101
|
+
tfoot: UIElement;
|
|
102
|
+
th: UIElement;
|
|
103
|
+
thead: UIElement;
|
|
104
|
+
time: UIElement;
|
|
105
|
+
title: UIElement;
|
|
106
|
+
tr: UIElement;
|
|
107
|
+
track: UIElement;
|
|
108
|
+
u: UIElement;
|
|
109
|
+
ul: UIElement;
|
|
110
|
+
var: UIElement;
|
|
111
|
+
video: UIElement;
|
|
112
|
+
wbr: UIElement;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
interface SvgTags {
|
|
116
|
-
svg:
|
|
117
|
-
circle:
|
|
118
|
-
rect:
|
|
119
|
-
line:
|
|
120
|
-
path:
|
|
121
|
-
g:
|
|
122
|
-
text:
|
|
116
|
+
svg: UIElement;
|
|
117
|
+
circle: UIElement;
|
|
118
|
+
rect: UIElement;
|
|
119
|
+
line: UIElement;
|
|
120
|
+
path: UIElement;
|
|
121
|
+
g: UIElement;
|
|
122
|
+
text: UIElement;
|
|
123
123
|
//...
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
interface MathTags {
|
|
127
|
-
math:
|
|
128
|
-
mrow:
|
|
129
|
-
mi:
|
|
130
|
-
mo:
|
|
131
|
-
mn:
|
|
132
|
-
ms:
|
|
127
|
+
math: UIElement;
|
|
128
|
+
mrow: UIElement;
|
|
129
|
+
mi: UIElement;
|
|
130
|
+
mo: UIElement;
|
|
131
|
+
mn: UIElement;
|
|
132
|
+
ms: UIElement;
|
|
133
133
|
//...
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
export type Tags = HtmlTags & SvgTags & MathTags & {
|
|
137
|
-
[key: string]:
|
|
137
|
+
[key: string]: UIElement;
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
declare const tags: Tags;
|