ziko 0.0.21 → 0.0.23
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 +2 -2
- package/dist/ziko.cjs +173 -17
- package/dist/ziko.js +173 -17
- package/dist/ziko.min.js +2 -2
- package/dist/ziko.mjs +170 -18
- package/package.json +1 -2
- package/src/app/globals.js +2 -0
- package/src/index.js +2 -1
- package/src/ui/elements/primitives/ZikoUIElement.js +22 -8
- package/src/ui/elements/primitives/hydrate.js +0 -0
- package/src/ui/elements/primitives/misc/hyperscript.js +140 -7
- package/starter/bin/index.js +0 -11
package/README.md
CHANGED
|
@@ -96,11 +96,11 @@ Currently supported frameworks:
|
|
|
96
96
|
|
|
97
97
|
```md
|
|
98
98
|
---
|
|
99
|
-
module :
|
|
100
|
-
- import InteractiveBlock from "./InteractiveBlock"
|
|
101
99
|
title : Article 1
|
|
102
100
|
---
|
|
103
101
|
|
|
102
|
+
import InteractiveBlock from "./InteractiveBlock";
|
|
103
|
+
|
|
104
104
|
# Hello World this is markdown heading
|
|
105
105
|
|
|
106
106
|
<InteractiveBlock data = "Hello" />
|
package/dist/ziko.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*
|
|
3
3
|
Project: ziko.js
|
|
4
4
|
Author: Zakaria Elalaoui
|
|
5
|
-
Date :
|
|
5
|
+
Date : Sat Jan 04 2025 21:24:21 GMT+0100 (UTC+01:00)
|
|
6
6
|
Git-Repo : https://github.com/zakarialaoui10/ziko.js
|
|
7
7
|
Git-Wiki : https://github.com/zakarialaoui10/ziko.js/wiki
|
|
8
8
|
Released under MIT License
|
|
@@ -4849,13 +4849,19 @@ const Reactivity={
|
|
|
4849
4849
|
};
|
|
4850
4850
|
|
|
4851
4851
|
class ZikoUIElement {
|
|
4852
|
-
constructor(element
|
|
4852
|
+
constructor(element, name="", {el_type="html", useDefaultStyle=false}={}){
|
|
4853
4853
|
this.target = globalThis.__Ziko__.__Config__.default.target||globalThis?.document?.body;
|
|
4854
4854
|
if(typeof element === "string") {
|
|
4855
|
-
|
|
4855
|
+
switch(el_type){
|
|
4856
|
+
case "html" : element = globalThis?.document?.createElement(element); break;
|
|
4857
|
+
case "svg" : element = globalThis?.document?.createElementNS("http://www.w3.org/2000/svg", element);
|
|
4858
|
+
default : throw Error("Not supported")
|
|
4859
|
+
}
|
|
4860
|
+
}
|
|
4861
|
+
else {
|
|
4862
|
+
this.target = element.parentElement;
|
|
4856
4863
|
}
|
|
4857
4864
|
if(element)this.__ele__ = element;
|
|
4858
|
-
this.uuid=this.constructor.name+"-"+Random.string(10);
|
|
4859
4865
|
this.cache = {
|
|
4860
4866
|
name,
|
|
4861
4867
|
parent:null,
|
|
@@ -4886,23 +4892,30 @@ class ZikoUIElement {
|
|
|
4886
4892
|
resize:null,
|
|
4887
4893
|
intersection:null
|
|
4888
4894
|
};
|
|
4895
|
+
this.uuid = `${this.cache.name}-${Random.string(16)}`;
|
|
4889
4896
|
this.cache.style.linkTo(this);
|
|
4890
|
-
this.style({
|
|
4897
|
+
useDefaultStyle && this.style({
|
|
4891
4898
|
position: "relative",
|
|
4892
4899
|
boxSizing:"border-box",
|
|
4893
4900
|
margin:0,
|
|
4894
4901
|
padding:0,
|
|
4902
|
+
width : "auto",
|
|
4903
|
+
height : "auto"
|
|
4895
4904
|
});
|
|
4896
4905
|
this.items = [];
|
|
4897
|
-
this.size("auto", "auto");
|
|
4898
4906
|
globalThis.__Ziko__.__UI__[this.cache.name]?globalThis.__Ziko__.__UI__[this.cache.name]?.push(this):globalThis.__Ziko__.__UI__[this.cache.name]=[this];
|
|
4899
4907
|
element && globalThis.__Ziko__.__Config__.default.render && this.render();
|
|
4908
|
+
this.setAttr("data-ref", this.uuid);
|
|
4909
|
+
globalThis.__Ziko__.__HYDRATION_MAP__.push({
|
|
4910
|
+
ref : this.uuid,
|
|
4911
|
+
comp : ()=>this
|
|
4912
|
+
});
|
|
4900
4913
|
}
|
|
4901
4914
|
get element(){
|
|
4902
|
-
return this.__ele__
|
|
4915
|
+
return this.__ele__;
|
|
4903
4916
|
}
|
|
4904
4917
|
get isZikoUIElement(){
|
|
4905
|
-
return true
|
|
4918
|
+
return true;
|
|
4906
4919
|
}
|
|
4907
4920
|
get st(){
|
|
4908
4921
|
return this.cache.style;
|
|
@@ -4911,7 +4924,7 @@ class ZikoUIElement {
|
|
|
4911
4924
|
return this.cache.attributes;
|
|
4912
4925
|
}
|
|
4913
4926
|
get evt(){
|
|
4914
|
-
return this.
|
|
4927
|
+
return this.events;
|
|
4915
4928
|
}
|
|
4916
4929
|
get html(){
|
|
4917
4930
|
return this.element.innerHTML;
|
|
@@ -4976,7 +4989,7 @@ class ZikoUIElement {
|
|
|
4976
4989
|
return this;
|
|
4977
4990
|
}
|
|
4978
4991
|
for (let i = 0; i < ele.length; i++) {
|
|
4979
|
-
if (["number", "string"].includes(typeof ele[i])) ele[i] = text(ele[i]);
|
|
4992
|
+
if (["number", "string"].includes(typeof ele[i])) ele[i] = text$1(ele[i]);
|
|
4980
4993
|
if (ele[i] instanceof ZikoUIElement) {
|
|
4981
4994
|
ele[i].cache.parent = this;
|
|
4982
4995
|
this.element[adder](ele[i].element);
|
|
@@ -5006,7 +5019,7 @@ class ZikoUIElement {
|
|
|
5006
5019
|
if (index >= this.element.children.length) this.append(...ele);
|
|
5007
5020
|
else
|
|
5008
5021
|
for (let i = 0; i < ele.length; i++) {
|
|
5009
|
-
if (["number", "string"].includes(typeof ele[i])) ele[i] = text(ele[i]);
|
|
5022
|
+
if (["number", "string"].includes(typeof ele[i])) ele[i] = text$1(ele[i]);
|
|
5010
5023
|
this.element?.insertBefore(ele[i].element, this.items[index].element);
|
|
5011
5024
|
this.items.splice(index, 0, ele[i]);
|
|
5012
5025
|
}
|
|
@@ -6250,14 +6263,147 @@ class ZikoUISuspense extends ZikoUIElement{
|
|
|
6250
6263
|
|
|
6251
6264
|
const Suspense = (fallback_ui, callback) => new ZikoUISuspense(fallback_ui, callback);
|
|
6252
6265
|
|
|
6253
|
-
|
|
6254
|
-
const {name, style, ...attrs} = attributes;
|
|
6255
|
-
let element = new ZikoUIElement(tag,name);
|
|
6266
|
+
const _h=(tag, type, attributes, ...children)=>{
|
|
6267
|
+
const { name, style, ...attrs } = attributes;
|
|
6268
|
+
let element = new ZikoUIElement(tag, name, type);
|
|
6256
6269
|
style && element.style(style);
|
|
6257
6270
|
attrs && element.setAttr(attrs);
|
|
6258
6271
|
children && element.append(...children);
|
|
6259
|
-
return element
|
|
6260
|
-
}
|
|
6272
|
+
return element;
|
|
6273
|
+
};
|
|
6274
|
+
const h=(tag, attributes = {}, ...children)=> _h(tag, "html", attributes, ...children);
|
|
6275
|
+
const s=(tag, attributes = {}, ...children)=> _h(tag, "svg", attributes, ...children);
|
|
6276
|
+
|
|
6277
|
+
const HTMLTags = [
|
|
6278
|
+
'a',
|
|
6279
|
+
'abb',
|
|
6280
|
+
'address',
|
|
6281
|
+
'area',
|
|
6282
|
+
'article',
|
|
6283
|
+
'aside',
|
|
6284
|
+
'audio',
|
|
6285
|
+
'b',
|
|
6286
|
+
'base',
|
|
6287
|
+
'bdi',
|
|
6288
|
+
'bdo',
|
|
6289
|
+
'blockquote',
|
|
6290
|
+
'br',
|
|
6291
|
+
'button',
|
|
6292
|
+
'canvas',
|
|
6293
|
+
'caption',
|
|
6294
|
+
'cite',
|
|
6295
|
+
'code',
|
|
6296
|
+
'col',
|
|
6297
|
+
'colgroup',
|
|
6298
|
+
'data',
|
|
6299
|
+
'datalist',
|
|
6300
|
+
'dd',
|
|
6301
|
+
'del',
|
|
6302
|
+
'details',
|
|
6303
|
+
'dfn',
|
|
6304
|
+
'dialog',
|
|
6305
|
+
'div',
|
|
6306
|
+
'dl',
|
|
6307
|
+
'dt',
|
|
6308
|
+
'em',
|
|
6309
|
+
'embed',
|
|
6310
|
+
'fieldset',
|
|
6311
|
+
'figcaption',
|
|
6312
|
+
'figure',
|
|
6313
|
+
'footer',
|
|
6314
|
+
'form',
|
|
6315
|
+
'h1',
|
|
6316
|
+
'h2',
|
|
6317
|
+
'h3',
|
|
6318
|
+
'h4',
|
|
6319
|
+
'h5',
|
|
6320
|
+
'h6',
|
|
6321
|
+
'header',
|
|
6322
|
+
'hgroup',
|
|
6323
|
+
'hr',
|
|
6324
|
+
'i',
|
|
6325
|
+
'iframe',
|
|
6326
|
+
'img',
|
|
6327
|
+
'ipnut',
|
|
6328
|
+
'ins',
|
|
6329
|
+
'kbd',
|
|
6330
|
+
'label',
|
|
6331
|
+
'legend',
|
|
6332
|
+
'li',
|
|
6333
|
+
'main',
|
|
6334
|
+
'map',
|
|
6335
|
+
'mark',
|
|
6336
|
+
'menu',
|
|
6337
|
+
'meter',
|
|
6338
|
+
'nav',
|
|
6339
|
+
'object',
|
|
6340
|
+
'ol',
|
|
6341
|
+
'optgroup',
|
|
6342
|
+
'option',
|
|
6343
|
+
'output',
|
|
6344
|
+
'p',
|
|
6345
|
+
'param',
|
|
6346
|
+
'picture',
|
|
6347
|
+
'pre',
|
|
6348
|
+
'progress',
|
|
6349
|
+
'q',
|
|
6350
|
+
'rp',
|
|
6351
|
+
'rt',
|
|
6352
|
+
'ruby',
|
|
6353
|
+
's',
|
|
6354
|
+
'samp',
|
|
6355
|
+
'search',
|
|
6356
|
+
'section',
|
|
6357
|
+
'select',
|
|
6358
|
+
'small',
|
|
6359
|
+
'source',
|
|
6360
|
+
'span',
|
|
6361
|
+
'strong',
|
|
6362
|
+
'sub',
|
|
6363
|
+
'summary',
|
|
6364
|
+
'sup',
|
|
6365
|
+
'svg',
|
|
6366
|
+
'table',
|
|
6367
|
+
'tbody',
|
|
6368
|
+
'td',
|
|
6369
|
+
'template',
|
|
6370
|
+
'textarea',
|
|
6371
|
+
'tfoot',
|
|
6372
|
+
'th',
|
|
6373
|
+
'thead',
|
|
6374
|
+
'time',
|
|
6375
|
+
'title',
|
|
6376
|
+
'tr',
|
|
6377
|
+
'track',
|
|
6378
|
+
'u',
|
|
6379
|
+
'ul',
|
|
6380
|
+
'var',
|
|
6381
|
+
'video',
|
|
6382
|
+
'wbr'
|
|
6383
|
+
];
|
|
6384
|
+
|
|
6385
|
+
const SVGTags = [
|
|
6386
|
+
"svg", "g", "defs", "symbol", "use", "image", "switch",
|
|
6387
|
+
"rect", "circle", "ellipse", "line", "polyline", "polygon", "path",
|
|
6388
|
+
"text", "tspan", "textPath", "altGlyph", "altGlyphDef", "altGlyphItem", "glyph", "glyphRef",
|
|
6389
|
+
"linearGradient", "radialGradient", "pattern", "solidColor",
|
|
6390
|
+
"filter", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix",
|
|
6391
|
+
"feDiffuseLighting", "feDisplacementMap", "feDropShadow", "feFlood", "feFuncA", "feFuncR", "feFuncG", "feFuncB",
|
|
6392
|
+
"feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "feSpecularLighting",
|
|
6393
|
+
"feTile", "feTurbulence",
|
|
6394
|
+
"animate", "animateMotion", "animateTransform", "set",
|
|
6395
|
+
"script",
|
|
6396
|
+
"desc", "title", "metadata", "foreignObject"
|
|
6397
|
+
];
|
|
6398
|
+
|
|
6399
|
+
const hTags = HTMLTags.reduce((acc, key) => {
|
|
6400
|
+
acc[key] = (attr, ...children) => h(key, attr, ...children);
|
|
6401
|
+
return acc;
|
|
6402
|
+
}, {});
|
|
6403
|
+
const sTags = SVGTags.reduce((acc, key) => {
|
|
6404
|
+
acc[key] = (attr, ...children) => h(key, attr, ...children);
|
|
6405
|
+
return acc;
|
|
6406
|
+
}, {});
|
|
6261
6407
|
|
|
6262
6408
|
class ZikoUIHtmlTag extends ZikoUIContainerElement {
|
|
6263
6409
|
constructor(element) {
|
|
@@ -6362,10 +6508,13 @@ var Misc = /*#__PURE__*/Object.freeze({
|
|
|
6362
6508
|
brs: brs,
|
|
6363
6509
|
btn: btn,
|
|
6364
6510
|
h: h,
|
|
6511
|
+
hTags: hTags,
|
|
6365
6512
|
hr: hr,
|
|
6366
6513
|
hrs: hrs,
|
|
6367
6514
|
html: html,
|
|
6368
|
-
link: link
|
|
6515
|
+
link: link,
|
|
6516
|
+
s: s,
|
|
6517
|
+
sTags: sTags
|
|
6369
6518
|
});
|
|
6370
6519
|
|
|
6371
6520
|
class ZikoUIInputImage extends ZikoUIElement {
|
|
@@ -11590,6 +11739,7 @@ function defineParamsGetter(target ){
|
|
|
11590
11739
|
}
|
|
11591
11740
|
|
|
11592
11741
|
const __UI__={};
|
|
11742
|
+
const __HYDRATION_MAP__ = [];
|
|
11593
11743
|
const __Config__={
|
|
11594
11744
|
default:{
|
|
11595
11745
|
target:null,
|
|
@@ -11609,6 +11759,7 @@ const __Config__={
|
|
|
11609
11759
|
var Global = /*#__PURE__*/Object.freeze({
|
|
11610
11760
|
__proto__: null,
|
|
11611
11761
|
__Config__: __Config__,
|
|
11762
|
+
__HYDRATION_MAP__: __HYDRATION_MAP__,
|
|
11612
11763
|
__UI__: __UI__
|
|
11613
11764
|
});
|
|
11614
11765
|
|
|
@@ -11708,6 +11859,7 @@ if ( globalThis.__Ziko__ ) {
|
|
|
11708
11859
|
globalThis.__Ziko__={
|
|
11709
11860
|
...Ziko,
|
|
11710
11861
|
__UI__,
|
|
11862
|
+
__HYDRATION_MAP__,
|
|
11711
11863
|
__Config__,
|
|
11712
11864
|
ExtractAll,
|
|
11713
11865
|
RemoveAll
|
|
@@ -11877,6 +12029,7 @@ exports.ZikoUIXMLWrapper = ZikoUIXMLWrapper;
|
|
|
11877
12029
|
exports.ZikoUseRoot = ZikoUseRoot;
|
|
11878
12030
|
exports.ZikoUseStyle = ZikoUseStyle;
|
|
11879
12031
|
exports.__Config__ = __Config__;
|
|
12032
|
+
exports.__HYDRATION_MAP__ = __HYDRATION_MAP__;
|
|
11880
12033
|
exports.__UI__ = __UI__;
|
|
11881
12034
|
exports.abbrText = abbrText;
|
|
11882
12035
|
exports.abs = abs;
|
|
@@ -11947,6 +12100,7 @@ exports.h5 = h5;
|
|
|
11947
12100
|
exports.h6 = h6;
|
|
11948
12101
|
exports.hSlider = hSlider;
|
|
11949
12102
|
exports.hSplitter = hSplitter;
|
|
12103
|
+
exports.hTags = hTags;
|
|
11950
12104
|
exports.hr = hr;
|
|
11951
12105
|
exports.hrs = hrs;
|
|
11952
12106
|
exports.html = html;
|
|
@@ -12011,6 +12165,8 @@ exports.rad2deg = rad2deg;
|
|
|
12011
12165
|
exports.radio = radio;
|
|
12012
12166
|
exports.removeExtraSpace = removeExtraSpace;
|
|
12013
12167
|
exports.round = round;
|
|
12168
|
+
exports.s = s;
|
|
12169
|
+
exports.sTags = sTags;
|
|
12014
12170
|
exports.search = search;
|
|
12015
12171
|
exports.sec = sec;
|
|
12016
12172
|
exports.select = select;
|
package/dist/ziko.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*
|
|
3
3
|
Project: ziko.js
|
|
4
4
|
Author: Zakaria Elalaoui
|
|
5
|
-
Date :
|
|
5
|
+
Date : Sat Jan 04 2025 21:24:21 GMT+0100 (UTC+01:00)
|
|
6
6
|
Git-Repo : https://github.com/zakarialaoui10/ziko.js
|
|
7
7
|
Git-Wiki : https://github.com/zakarialaoui10/ziko.js/wiki
|
|
8
8
|
Released under MIT License
|
|
@@ -4851,13 +4851,19 @@
|
|
|
4851
4851
|
};
|
|
4852
4852
|
|
|
4853
4853
|
class ZikoUIElement {
|
|
4854
|
-
constructor(element
|
|
4854
|
+
constructor(element, name="", {el_type="html", useDefaultStyle=false}={}){
|
|
4855
4855
|
this.target = globalThis.__Ziko__.__Config__.default.target||globalThis?.document?.body;
|
|
4856
4856
|
if(typeof element === "string") {
|
|
4857
|
-
|
|
4857
|
+
switch(el_type){
|
|
4858
|
+
case "html" : element = globalThis?.document?.createElement(element); break;
|
|
4859
|
+
case "svg" : element = globalThis?.document?.createElementNS("http://www.w3.org/2000/svg", element);
|
|
4860
|
+
default : throw Error("Not supported")
|
|
4861
|
+
}
|
|
4862
|
+
}
|
|
4863
|
+
else {
|
|
4864
|
+
this.target = element.parentElement;
|
|
4858
4865
|
}
|
|
4859
4866
|
if(element)this.__ele__ = element;
|
|
4860
|
-
this.uuid=this.constructor.name+"-"+Random.string(10);
|
|
4861
4867
|
this.cache = {
|
|
4862
4868
|
name,
|
|
4863
4869
|
parent:null,
|
|
@@ -4888,23 +4894,30 @@
|
|
|
4888
4894
|
resize:null,
|
|
4889
4895
|
intersection:null
|
|
4890
4896
|
};
|
|
4897
|
+
this.uuid = `${this.cache.name}-${Random.string(16)}`;
|
|
4891
4898
|
this.cache.style.linkTo(this);
|
|
4892
|
-
this.style({
|
|
4899
|
+
useDefaultStyle && this.style({
|
|
4893
4900
|
position: "relative",
|
|
4894
4901
|
boxSizing:"border-box",
|
|
4895
4902
|
margin:0,
|
|
4896
4903
|
padding:0,
|
|
4904
|
+
width : "auto",
|
|
4905
|
+
height : "auto"
|
|
4897
4906
|
});
|
|
4898
4907
|
this.items = [];
|
|
4899
|
-
this.size("auto", "auto");
|
|
4900
4908
|
globalThis.__Ziko__.__UI__[this.cache.name]?globalThis.__Ziko__.__UI__[this.cache.name]?.push(this):globalThis.__Ziko__.__UI__[this.cache.name]=[this];
|
|
4901
4909
|
element && globalThis.__Ziko__.__Config__.default.render && this.render();
|
|
4910
|
+
this.setAttr("data-ref", this.uuid);
|
|
4911
|
+
globalThis.__Ziko__.__HYDRATION_MAP__.push({
|
|
4912
|
+
ref : this.uuid,
|
|
4913
|
+
comp : ()=>this
|
|
4914
|
+
});
|
|
4902
4915
|
}
|
|
4903
4916
|
get element(){
|
|
4904
|
-
return this.__ele__
|
|
4917
|
+
return this.__ele__;
|
|
4905
4918
|
}
|
|
4906
4919
|
get isZikoUIElement(){
|
|
4907
|
-
return true
|
|
4920
|
+
return true;
|
|
4908
4921
|
}
|
|
4909
4922
|
get st(){
|
|
4910
4923
|
return this.cache.style;
|
|
@@ -4913,7 +4926,7 @@
|
|
|
4913
4926
|
return this.cache.attributes;
|
|
4914
4927
|
}
|
|
4915
4928
|
get evt(){
|
|
4916
|
-
return this.
|
|
4929
|
+
return this.events;
|
|
4917
4930
|
}
|
|
4918
4931
|
get html(){
|
|
4919
4932
|
return this.element.innerHTML;
|
|
@@ -4978,7 +4991,7 @@
|
|
|
4978
4991
|
return this;
|
|
4979
4992
|
}
|
|
4980
4993
|
for (let i = 0; i < ele.length; i++) {
|
|
4981
|
-
if (["number", "string"].includes(typeof ele[i])) ele[i] = text(ele[i]);
|
|
4994
|
+
if (["number", "string"].includes(typeof ele[i])) ele[i] = text$1(ele[i]);
|
|
4982
4995
|
if (ele[i] instanceof ZikoUIElement) {
|
|
4983
4996
|
ele[i].cache.parent = this;
|
|
4984
4997
|
this.element[adder](ele[i].element);
|
|
@@ -5008,7 +5021,7 @@
|
|
|
5008
5021
|
if (index >= this.element.children.length) this.append(...ele);
|
|
5009
5022
|
else
|
|
5010
5023
|
for (let i = 0; i < ele.length; i++) {
|
|
5011
|
-
if (["number", "string"].includes(typeof ele[i])) ele[i] = text(ele[i]);
|
|
5024
|
+
if (["number", "string"].includes(typeof ele[i])) ele[i] = text$1(ele[i]);
|
|
5012
5025
|
this.element?.insertBefore(ele[i].element, this.items[index].element);
|
|
5013
5026
|
this.items.splice(index, 0, ele[i]);
|
|
5014
5027
|
}
|
|
@@ -6252,14 +6265,147 @@
|
|
|
6252
6265
|
|
|
6253
6266
|
const Suspense = (fallback_ui, callback) => new ZikoUISuspense(fallback_ui, callback);
|
|
6254
6267
|
|
|
6255
|
-
|
|
6256
|
-
const {name, style, ...attrs} = attributes;
|
|
6257
|
-
let element = new ZikoUIElement(tag,name);
|
|
6268
|
+
const _h=(tag, type, attributes, ...children)=>{
|
|
6269
|
+
const { name, style, ...attrs } = attributes;
|
|
6270
|
+
let element = new ZikoUIElement(tag, name, type);
|
|
6258
6271
|
style && element.style(style);
|
|
6259
6272
|
attrs && element.setAttr(attrs);
|
|
6260
6273
|
children && element.append(...children);
|
|
6261
|
-
return element
|
|
6262
|
-
}
|
|
6274
|
+
return element;
|
|
6275
|
+
};
|
|
6276
|
+
const h=(tag, attributes = {}, ...children)=> _h(tag, "html", attributes, ...children);
|
|
6277
|
+
const s=(tag, attributes = {}, ...children)=> _h(tag, "svg", attributes, ...children);
|
|
6278
|
+
|
|
6279
|
+
const HTMLTags = [
|
|
6280
|
+
'a',
|
|
6281
|
+
'abb',
|
|
6282
|
+
'address',
|
|
6283
|
+
'area',
|
|
6284
|
+
'article',
|
|
6285
|
+
'aside',
|
|
6286
|
+
'audio',
|
|
6287
|
+
'b',
|
|
6288
|
+
'base',
|
|
6289
|
+
'bdi',
|
|
6290
|
+
'bdo',
|
|
6291
|
+
'blockquote',
|
|
6292
|
+
'br',
|
|
6293
|
+
'button',
|
|
6294
|
+
'canvas',
|
|
6295
|
+
'caption',
|
|
6296
|
+
'cite',
|
|
6297
|
+
'code',
|
|
6298
|
+
'col',
|
|
6299
|
+
'colgroup',
|
|
6300
|
+
'data',
|
|
6301
|
+
'datalist',
|
|
6302
|
+
'dd',
|
|
6303
|
+
'del',
|
|
6304
|
+
'details',
|
|
6305
|
+
'dfn',
|
|
6306
|
+
'dialog',
|
|
6307
|
+
'div',
|
|
6308
|
+
'dl',
|
|
6309
|
+
'dt',
|
|
6310
|
+
'em',
|
|
6311
|
+
'embed',
|
|
6312
|
+
'fieldset',
|
|
6313
|
+
'figcaption',
|
|
6314
|
+
'figure',
|
|
6315
|
+
'footer',
|
|
6316
|
+
'form',
|
|
6317
|
+
'h1',
|
|
6318
|
+
'h2',
|
|
6319
|
+
'h3',
|
|
6320
|
+
'h4',
|
|
6321
|
+
'h5',
|
|
6322
|
+
'h6',
|
|
6323
|
+
'header',
|
|
6324
|
+
'hgroup',
|
|
6325
|
+
'hr',
|
|
6326
|
+
'i',
|
|
6327
|
+
'iframe',
|
|
6328
|
+
'img',
|
|
6329
|
+
'ipnut',
|
|
6330
|
+
'ins',
|
|
6331
|
+
'kbd',
|
|
6332
|
+
'label',
|
|
6333
|
+
'legend',
|
|
6334
|
+
'li',
|
|
6335
|
+
'main',
|
|
6336
|
+
'map',
|
|
6337
|
+
'mark',
|
|
6338
|
+
'menu',
|
|
6339
|
+
'meter',
|
|
6340
|
+
'nav',
|
|
6341
|
+
'object',
|
|
6342
|
+
'ol',
|
|
6343
|
+
'optgroup',
|
|
6344
|
+
'option',
|
|
6345
|
+
'output',
|
|
6346
|
+
'p',
|
|
6347
|
+
'param',
|
|
6348
|
+
'picture',
|
|
6349
|
+
'pre',
|
|
6350
|
+
'progress',
|
|
6351
|
+
'q',
|
|
6352
|
+
'rp',
|
|
6353
|
+
'rt',
|
|
6354
|
+
'ruby',
|
|
6355
|
+
's',
|
|
6356
|
+
'samp',
|
|
6357
|
+
'search',
|
|
6358
|
+
'section',
|
|
6359
|
+
'select',
|
|
6360
|
+
'small',
|
|
6361
|
+
'source',
|
|
6362
|
+
'span',
|
|
6363
|
+
'strong',
|
|
6364
|
+
'sub',
|
|
6365
|
+
'summary',
|
|
6366
|
+
'sup',
|
|
6367
|
+
'svg',
|
|
6368
|
+
'table',
|
|
6369
|
+
'tbody',
|
|
6370
|
+
'td',
|
|
6371
|
+
'template',
|
|
6372
|
+
'textarea',
|
|
6373
|
+
'tfoot',
|
|
6374
|
+
'th',
|
|
6375
|
+
'thead',
|
|
6376
|
+
'time',
|
|
6377
|
+
'title',
|
|
6378
|
+
'tr',
|
|
6379
|
+
'track',
|
|
6380
|
+
'u',
|
|
6381
|
+
'ul',
|
|
6382
|
+
'var',
|
|
6383
|
+
'video',
|
|
6384
|
+
'wbr'
|
|
6385
|
+
];
|
|
6386
|
+
|
|
6387
|
+
const SVGTags = [
|
|
6388
|
+
"svg", "g", "defs", "symbol", "use", "image", "switch",
|
|
6389
|
+
"rect", "circle", "ellipse", "line", "polyline", "polygon", "path",
|
|
6390
|
+
"text", "tspan", "textPath", "altGlyph", "altGlyphDef", "altGlyphItem", "glyph", "glyphRef",
|
|
6391
|
+
"linearGradient", "radialGradient", "pattern", "solidColor",
|
|
6392
|
+
"filter", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix",
|
|
6393
|
+
"feDiffuseLighting", "feDisplacementMap", "feDropShadow", "feFlood", "feFuncA", "feFuncR", "feFuncG", "feFuncB",
|
|
6394
|
+
"feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "feSpecularLighting",
|
|
6395
|
+
"feTile", "feTurbulence",
|
|
6396
|
+
"animate", "animateMotion", "animateTransform", "set",
|
|
6397
|
+
"script",
|
|
6398
|
+
"desc", "title", "metadata", "foreignObject"
|
|
6399
|
+
];
|
|
6400
|
+
|
|
6401
|
+
const hTags = HTMLTags.reduce((acc, key) => {
|
|
6402
|
+
acc[key] = (attr, ...children) => h(key, attr, ...children);
|
|
6403
|
+
return acc;
|
|
6404
|
+
}, {});
|
|
6405
|
+
const sTags = SVGTags.reduce((acc, key) => {
|
|
6406
|
+
acc[key] = (attr, ...children) => h(key, attr, ...children);
|
|
6407
|
+
return acc;
|
|
6408
|
+
}, {});
|
|
6263
6409
|
|
|
6264
6410
|
class ZikoUIHtmlTag extends ZikoUIContainerElement {
|
|
6265
6411
|
constructor(element) {
|
|
@@ -6364,10 +6510,13 @@
|
|
|
6364
6510
|
brs: brs,
|
|
6365
6511
|
btn: btn,
|
|
6366
6512
|
h: h,
|
|
6513
|
+
hTags: hTags,
|
|
6367
6514
|
hr: hr,
|
|
6368
6515
|
hrs: hrs,
|
|
6369
6516
|
html: html,
|
|
6370
|
-
link: link
|
|
6517
|
+
link: link,
|
|
6518
|
+
s: s,
|
|
6519
|
+
sTags: sTags
|
|
6371
6520
|
});
|
|
6372
6521
|
|
|
6373
6522
|
class ZikoUIInputImage extends ZikoUIElement {
|
|
@@ -11592,6 +11741,7 @@
|
|
|
11592
11741
|
}
|
|
11593
11742
|
|
|
11594
11743
|
const __UI__={};
|
|
11744
|
+
const __HYDRATION_MAP__ = [];
|
|
11595
11745
|
const __Config__={
|
|
11596
11746
|
default:{
|
|
11597
11747
|
target:null,
|
|
@@ -11611,6 +11761,7 @@
|
|
|
11611
11761
|
var Global = /*#__PURE__*/Object.freeze({
|
|
11612
11762
|
__proto__: null,
|
|
11613
11763
|
__Config__: __Config__,
|
|
11764
|
+
__HYDRATION_MAP__: __HYDRATION_MAP__,
|
|
11614
11765
|
__UI__: __UI__
|
|
11615
11766
|
});
|
|
11616
11767
|
|
|
@@ -11710,6 +11861,7 @@
|
|
|
11710
11861
|
globalThis.__Ziko__={
|
|
11711
11862
|
...Ziko,
|
|
11712
11863
|
__UI__,
|
|
11864
|
+
__HYDRATION_MAP__,
|
|
11713
11865
|
__Config__,
|
|
11714
11866
|
ExtractAll,
|
|
11715
11867
|
RemoveAll
|
|
@@ -11879,6 +12031,7 @@
|
|
|
11879
12031
|
exports.ZikoUseRoot = ZikoUseRoot;
|
|
11880
12032
|
exports.ZikoUseStyle = ZikoUseStyle;
|
|
11881
12033
|
exports.__Config__ = __Config__;
|
|
12034
|
+
exports.__HYDRATION_MAP__ = __HYDRATION_MAP__;
|
|
11882
12035
|
exports.__UI__ = __UI__;
|
|
11883
12036
|
exports.abbrText = abbrText;
|
|
11884
12037
|
exports.abs = abs;
|
|
@@ -11949,6 +12102,7 @@
|
|
|
11949
12102
|
exports.h6 = h6;
|
|
11950
12103
|
exports.hSlider = hSlider;
|
|
11951
12104
|
exports.hSplitter = hSplitter;
|
|
12105
|
+
exports.hTags = hTags;
|
|
11952
12106
|
exports.hr = hr;
|
|
11953
12107
|
exports.hrs = hrs;
|
|
11954
12108
|
exports.html = html;
|
|
@@ -12013,6 +12167,8 @@
|
|
|
12013
12167
|
exports.radio = radio;
|
|
12014
12168
|
exports.removeExtraSpace = removeExtraSpace;
|
|
12015
12169
|
exports.round = round;
|
|
12170
|
+
exports.s = s;
|
|
12171
|
+
exports.sTags = sTags;
|
|
12016
12172
|
exports.search = search;
|
|
12017
12173
|
exports.sec = sec;
|
|
12018
12174
|
exports.select = select;
|