ziko 0.0.4 → 0.0.5
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/core/App/Globals/index.js +18 -0
- package/{src → core}/App/app.js +1 -1
- package/{src → core}/App/index.js +1 -0
- package/{src → core}/Graphics/Canvas/canvas.js +1 -1
- package/{src → core}/Reactivity/Events/index.js +1 -1
- package/{src → core}/UI/CustomElement/Elements/Accordion/index.js +2 -2
- package/{src → core}/UI/CustomElement/Elements/CodeNote/CodeCell.js +1 -1
- package/{src → core}/UI/CustomElement/Elements/CodeNote/SubElements.js +4 -4
- package/{src → core}/UI/Inputs/Primitives/btn.js +1 -2
- package/{src → core}/UI/Inputs/Primitives/inputs.js +0 -10
- package/{src → core}/UI/Inputs/Primitives/select.js +0 -1
- package/{src → core}/UI/Inputs/Primitives/textarea.js +0 -1
- package/{src → core}/UI/List/index.js +0 -3
- package/{src → core}/UI/Media/Audio/index.js +0 -1
- package/{src → core}/UI/Media/Image/figure.js +0 -1
- package/{src → core}/UI/Media/Image/image.js +0 -1
- package/{src → core}/UI/Media/Video/index.js +0 -1
- package/{src → core}/UI/Misc/index.js +5 -9
- package/{src → core}/UI/Semantic/index.js +0 -7
- package/{src → core}/UI/Table/table.js +0 -1
- package/{src → core}/UI/Text/heading.js +0 -1
- package/{src → core}/UI/Text/p.js +0 -1
- package/{src → core}/UI/Text/text.js +0 -1
- package/{src → core}/UI/ZikoUIElement.js +3 -1
- package/{src → core}/UI/index.js +3 -3
- package/{src → core}/index.js +3 -1
- package/dist/ziko.cjs +33 -53
- package/dist/ziko.js +33 -53
- package/dist/ziko.min.js +2 -2
- package/dist/ziko.mjs +32 -53
- package/package.json +5 -3
- package/wrapper/react/index.jsx +16 -0
- package/wrapper/react/readme.md +19 -0
- package/wrapper/vue/ZikoUI.vue +17 -0
- package/src/App/Globals/index.js +0 -3
- /package/{src → core}/App/Accessibility/index.js +0 -0
- /package/{src → core}/App/Globals/__Target__.js +0 -0
- /package/{src → core}/App/Globals/__UI__.js +0 -0
- /package/{src → core}/App/Globals/__init__.js +0 -0
- /package/{src → core}/App/Router/index.js +0 -0
- /package/{src → core}/App/Seo/index.js +0 -0
- /package/{src → core}/App/Themes/dark.js +0 -0
- /package/{src → core}/App/Themes/index.js +0 -0
- /package/{src → core}/App/Themes/light.js +0 -0
- /package/{src → core}/Data/Api/fetchdom.js +0 -0
- /package/{src → core}/Data/Api/index.js +0 -0
- /package/{src → core}/Data/Api/preload.js +0 -0
- /package/{src → core}/Data/Converter/canvas.js +0 -0
- /package/{src → core}/Data/Converter/csv.js +0 -0
- /package/{src → core}/Data/Converter/index.js +0 -0
- /package/{src → core}/Data/Converter/json.js +0 -0
- /package/{src → core}/Data/Converter/markdown.js +0 -0
- /package/{src → core}/Data/Converter/svg.js +0 -0
- /package/{src → core}/Data/Parser/markdown.js +0 -0
- /package/{src → core}/Data/Parser/xml.js +0 -0
- /package/{src → core}/Data/Strings/index.js +0 -0
- /package/{src → core}/Data/decorators.js +0 -0
- /package/{src → core}/Data/index.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Basic/arc.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Basic/image.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Basic/line.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Basic/path.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Basic/points.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Basic/polygon.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Basic/polyline.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Basic/rect.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Basic/text.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Chart/histogram.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Chart/plot.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Chart/scatter.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Chart/stem.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Element.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/Groupe.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/grid.js +0 -0
- /package/{src → core}/Graphics/Canvas/Elements/index.js +0 -0
- /package/{src → core}/Graphics/Canvas/Filter/index.js +0 -0
- /package/{src → core}/Graphics/Canvas/Paint/index.js +0 -0
- /package/{src → core}/Graphics/Canvas/Utils/color.js +0 -0
- /package/{src → core}/Graphics/Canvas/Utils/floodFill.js +0 -0
- /package/{src → core}/Graphics/Canvas/_canvas_offscreen +0 -0
- /package/{src → core}/Graphics/Canvas/index.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/ZikoSvgElement.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/circle.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/ellipse.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/foreignObject.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/grid.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/groupe.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/image.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/line.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/path.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/polygon.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/polyline.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/rect.js +0 -0
- /package/{src → core}/Graphics/Svg/Elements/text.js +0 -0
- /package/{src → core}/Graphics/Svg/index.js +0 -0
- /package/{src → core}/Graphics/Svg/svg.js +0 -0
- /package/{src → core}/Graphics/index.js +0 -0
- /package/{src → core}/Math/Calculus/Special Functions/bessel.js +0 -0
- /package/{src → core}/Math/Calculus/Special Functions/beta.js +0 -0
- /package/{src → core}/Math/Calculus/Special Functions/gamma.js +0 -0
- /package/{src → core}/Math/Calculus/Special Functions/index.js +0 -0
- /package/{src → core}/Math/Calculus/index.js +0 -0
- /package/{src → core}/Math/Complex/Fractals/julia.js +0 -0
- /package/{src → core}/Math/Complex/index.js +0 -0
- /package/{src → core}/Math/Discret/Combinaison/index.js +0 -0
- /package/{src → core}/Math/Discret/Conversion/index.js +0 -0
- /package/{src → core}/Math/Discret/Logic/index.js +0 -0
- /package/{src → core}/Math/Discret/Permutation/index.js +0 -0
- /package/{src → core}/Math/Discret/Set/index.js +0 -0
- /package/{src → core}/Math/Discret/Set/powerSet.js +0 -0
- /package/{src → core}/Math/Discret/Set/subSet.js +0 -0
- /package/{src → core}/Math/Discret/index.js +0 -0
- /package/{src → core}/Math/Functions/index.js +0 -0
- /package/{src → core}/Math/Matrix/Decomposition.js +0 -0
- /package/{src → core}/Math/Matrix/LinearSystem.js +0 -0
- /package/{src → core}/Math/Matrix/Matrix.js +0 -0
- /package/{src → core}/Math/Matrix/index.js +0 -0
- /package/{src → core}/Math/Numeric/index.js +0 -0
- /package/{src → core}/Math/Random/index.js +0 -0
- /package/{src → core}/Math/Signal/__np.py.txt +0 -0
- /package/{src → core}/Math/Signal/conv.js +0 -0
- /package/{src → core}/Math/Signal/fft.js +0 -0
- /package/{src → core}/Math/Signal/filter.js +0 -0
- /package/{src → core}/Math/Signal/functions.js +0 -0
- /package/{src → core}/Math/Signal/index.js +0 -0
- /package/{src → core}/Math/Statistics/Functions/index.js +0 -0
- /package/{src → core}/Math/Statistics/index.js +0 -0
- /package/{src → core}/Math/Utils/arithmetic.js +0 -0
- /package/{src → core}/Math/Utils/checkers.js +0 -0
- /package/{src → core}/Math/Utils/comparaison.js +0 -0
- /package/{src → core}/Math/Utils/conversions.js +0 -0
- /package/{src → core}/Math/Utils/discret.js +0 -0
- /package/{src → core}/Math/Utils/index.js +0 -0
- /package/{src → core}/Math/Utils/mapfun.js +0 -0
- /package/{src → core}/Math/absract.js +0 -0
- /package/{src → core}/Math/const.js +0 -0
- /package/{src → core}/Math/index.js +0 -0
- /package/{src → core}/Reactivity/Events/Global/Click.js +0 -0
- /package/{src → core}/Reactivity/Events/Global/Clipboard.js +0 -0
- /package/{src → core}/Reactivity/Events/Global/CustomEvent.js +0 -0
- /package/{src → core}/Reactivity/Events/Global/Drag.js +0 -0
- /package/{src → core}/Reactivity/Events/Global/Focus.js +0 -0
- /package/{src → core}/Reactivity/Events/Global/Key.js +0 -0
- /package/{src → core}/Reactivity/Events/Global/Mouse.js +0 -0
- /package/{src → core}/Reactivity/Events/Global/Pointer.js +0 -0
- /package/{src → core}/Reactivity/Events/Global/Touch.js +0 -0
- /package/{src → core}/Reactivity/Events/Global/Wheel.js +0 -0
- /package/{src → core}/Reactivity/Events/Partiel/Hash.js +0 -0
- /package/{src → core}/Reactivity/Events/Partiel/Input.js +0 -0
- /package/{src → core}/Reactivity/Events/Partiel/MediaEvent.js +0 -0
- /package/{src → core}/Reactivity/Events/ZikoEvent.js +0 -0
- /package/{src → core}/Reactivity/Observer/index.js +0 -0
- /package/{src → core}/Reactivity/Observer/intersection.js +0 -0
- /package/{src → core}/Reactivity/Observer/mutation.js +0 -0
- /package/{src → core}/Reactivity/Observer/resize.js +0 -0
- /package/{src → core}/Reactivity/Use/Contexte/index.js +0 -0
- /package/{src → core}/Reactivity/Use/Contexte/useSuccesifKeys.js +0 -0
- /package/{src → core}/Reactivity/Use/Decorators/index.js +0 -0
- /package/{src → core}/Reactivity/Use/Interactions/index.js +0 -0
- /package/{src → core}/Reactivity/Use/Interactions/useBluetooth.js +0 -0
- /package/{src → core}/Reactivity/Use/Interactions/useChannel.js +0 -0
- /package/{src → core}/Reactivity/Use/Interactions/useEventEmmiter.js +0 -0
- /package/{src → core}/Reactivity/Use/Interactions/useSerial.js +0 -0
- /package/{src → core}/Reactivity/Use/Interactions/useThread.js +0 -0
- /package/{src → core}/Reactivity/Use/Interactions/useUsb.js +0 -0
- /package/{src → core}/Reactivity/Use/Sensors/index.js +0 -0
- /package/{src → core}/Reactivity/Use/Sensors/useBattery.js +0 -0
- /package/{src → core}/Reactivity/Use/Sensors/useCamera.js +0 -0
- /package/{src → core}/Reactivity/Use/Sensors/useGeolocation.js +0 -0
- /package/{src → core}/Reactivity/Use/Sensors/useMicro.js +0 -0
- /package/{src → core}/Reactivity/Use/Sensors/useOrientation.js +0 -0
- /package/{src → core}/Reactivity/Use/Storage/index.js +0 -0
- /package/{src → core}/Reactivity/Use/Storage/useCookie.js +0 -0
- /package/{src → core}/Reactivity/Use/Storage/useIndexedDb.js +0 -0
- /package/{src → core}/Reactivity/Use/Storage/useStorage.js +0 -0
- /package/{src → core}/Reactivity/Use/UI/index.js +0 -0
- /package/{src → core}/Reactivity/Use/UI/useCssLink.js +0 -0
- /package/{src → core}/Reactivity/Use/UI/useCssText.js +0 -0
- /package/{src → core}/Reactivity/Use/UI/useFavIcon.js +0 -0
- /package/{src → core}/Reactivity/Use/UI/useLinearGradient.js +0 -0
- /package/{src → core}/Reactivity/Use/UI/useMediaQuery.js +0 -0
- /package/{src → core}/Reactivity/Use/UI/useRadialGradient.js +0 -0
- /package/{src → core}/Reactivity/Use/UI/useStyle.js +0 -0
- /package/{src → core}/Reactivity/Use/UI/useTheme.js +0 -0
- /package/{src → core}/Reactivity/Use/UI/useTitle.js +0 -0
- /package/{src → core}/Reactivity/Use/index.js +0 -0
- /package/{src → core}/Reactivity/Use/todo.md +0 -0
- /package/{src → core}/Reactivity/index.js +0 -0
- /package/{src → core}/Time/animation.js +0 -0
- /package/{src → core}/Time/index.js +0 -0
- /package/{src → core}/Time/loop.js +0 -0
- /package/{src → core}/Time/utils/decorators.js +0 -0
- /package/{src → core}/Time/utils/ease.js +0 -0
- /package/{src → core}/Time/utils/index.js +0 -0
- /package/{src → core}/Time/utils/performance.js +0 -0
- /package/{src → core}/Time/utils/ui.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/Carousel/index.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/CodeNote/CodeNote.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/CodeNote/index.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/Columns.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/FAB.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/Menu.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/Notification.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/Popover.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/Popup.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/Swipper.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/Tabs/index.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/Timeline.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/Toast.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/Treeview.js +0 -0
- /package/{src → core}/UI/CustomElement/Elements/index.js +0 -0
- /package/{src → core}/UI/CustomElement/Flex.js +0 -0
- /package/{src → core}/UI/CustomElement/Grid.js +0 -0
- /package/{src → core}/UI/CustomElement/index.js +0 -0
- /package/{src → core}/UI/Embaded/index.js +0 -0
- /package/{src → core}/UI/Inputs/Primitives/elements.js +0 -0
- /package/{src → core}/UI/Inputs/camera.js +0 -0
- /package/{src → core}/UI/Inputs/index.js +0 -0
- /package/{src → core}/UI/List/elements.js +0 -0
- /package/{src → core}/UI/Media/Image/index.js +0 -0
- /package/{src → core}/UI/Media/index.js +0 -0
- /package/{src → core}/UI/Style/index.js +0 -0
- /package/{src → core}/UI/Table/elements.js +0 -0
- /package/{src → core}/UI/Table/index.js +0 -0
- /package/{src → core}/UI/Table/utils.js +0 -0
- /package/{src → core}/UI/Text/index.js +0 -0
- /package/{src → core}/UI/Text/pre.js +0 -0
- /package/{src → core}/UI/Utils/index.js +0 -0
- /package/{src → core}/__proto__/Array.js +0 -0
- /package/{src → core}/__proto__/Function.js +0 -0
- /package/{src → core}/__proto__/Number.js +0 -0
- /package/{src → core}/__proto__/Object.js +0 -0
- /package/{src → core}/__proto__/String.js +0 -0
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 : Thu Mar 21 2024 19:27:32 GMT+0000 (UTC)
|
|
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
|
|
@@ -4255,7 +4255,7 @@ const Events = {
|
|
|
4255
4255
|
Focus,
|
|
4256
4256
|
Input: Input$1,
|
|
4257
4257
|
HashEvent,
|
|
4258
|
-
|
|
4258
|
+
customEvent,
|
|
4259
4259
|
ExtractAll: function () {
|
|
4260
4260
|
const keys = Object.keys(this);
|
|
4261
4261
|
for (let i = 0; i < keys.length; i++) {
|
|
@@ -6432,7 +6432,8 @@ const Use = {
|
|
|
6432
6432
|
|
|
6433
6433
|
class ZikoUIElement {
|
|
6434
6434
|
constructor(element, name = "") {
|
|
6435
|
-
this.target = globalThis.__Target__
|
|
6435
|
+
//this.target = globalThis.__Target__||globalThis.document.body;
|
|
6436
|
+
this.target = globalThis.__ZikoConfig__.default.target || globalThis.document.body;
|
|
6436
6437
|
if (typeof element === "string") element = globalThis.document.createElement(element);
|
|
6437
6438
|
this.element = element;
|
|
6438
6439
|
this.uuid = this.constructor.name + "-" + Random.string(10);
|
|
@@ -6474,6 +6475,7 @@ class ZikoUIElement {
|
|
|
6474
6475
|
});
|
|
6475
6476
|
this.size("auto", "auto");
|
|
6476
6477
|
globalThis.__UI__[this.cache.name]?.push(this);
|
|
6478
|
+
this.render(globalThis.__ZikoConfig__.default.render);
|
|
6477
6479
|
}
|
|
6478
6480
|
get st() {
|
|
6479
6481
|
return this.cache.style;
|
|
@@ -6959,7 +6961,6 @@ class ZikoUIText extends ZikoUIElement {
|
|
|
6959
6961
|
this.text = "";
|
|
6960
6962
|
this.addValue(...value);
|
|
6961
6963
|
this.st.display("inline-block");
|
|
6962
|
-
this.render();
|
|
6963
6964
|
}
|
|
6964
6965
|
clear() {
|
|
6965
6966
|
this.element.textContent = "";
|
|
@@ -7016,7 +7017,6 @@ class ZikoUIParagraphe extends ZikoUIElement {
|
|
|
7016
7017
|
margin: 0,
|
|
7017
7018
|
padding: 0
|
|
7018
7019
|
});
|
|
7019
|
-
this.render();
|
|
7020
7020
|
}
|
|
7021
7021
|
addValue(...value) {
|
|
7022
7022
|
for (let i = 0; i < value.length; i++) {
|
|
@@ -7044,7 +7044,6 @@ class ZikoUIHeading extends ZikoUIElement {
|
|
|
7044
7044
|
super(`h${type}`, `h${type}`);
|
|
7045
7045
|
this.element = document.createElement("h" + type);
|
|
7046
7046
|
this.element.textContent = value;
|
|
7047
|
-
this.render();
|
|
7048
7047
|
}
|
|
7049
7048
|
get value() {
|
|
7050
7049
|
return this.element.innerText;
|
|
@@ -7067,21 +7066,18 @@ const h6 = (text = "") => new ZikoUIHeading(6, text);
|
|
|
7067
7066
|
|
|
7068
7067
|
class ZikoUIHtmlTag extends ZikoUIElement {
|
|
7069
7068
|
constructor(element) {
|
|
7070
|
-
super(element, "
|
|
7071
|
-
this.render();
|
|
7069
|
+
super(element, "html");
|
|
7072
7070
|
}
|
|
7073
7071
|
}
|
|
7074
7072
|
class ZikoUIBr extends ZikoUIElement {
|
|
7075
7073
|
constructor() {
|
|
7076
7074
|
super("br", "br");
|
|
7077
|
-
this.render();
|
|
7078
7075
|
delete this.append;
|
|
7079
7076
|
}
|
|
7080
7077
|
}
|
|
7081
7078
|
class ZikoUIHr extends ZikoUIElement {
|
|
7082
7079
|
constructor() {
|
|
7083
7080
|
super("hr", "hr");
|
|
7084
|
-
this.render();
|
|
7085
7081
|
delete this.append;
|
|
7086
7082
|
}
|
|
7087
7083
|
}
|
|
@@ -7089,7 +7085,6 @@ class ZikoUILink extends ZikoUIElement {
|
|
|
7089
7085
|
constructor(href) {
|
|
7090
7086
|
super("a", "link");
|
|
7091
7087
|
this.setHref(href);
|
|
7092
|
-
this.render();
|
|
7093
7088
|
}
|
|
7094
7089
|
setHref(href) {
|
|
7095
7090
|
this.element.href = href;
|
|
@@ -7100,14 +7095,13 @@ const hr = () => new ZikoUIHr();
|
|
|
7100
7095
|
const brs = (n = 1) => new Array(n).fill(new ZikoUIBr());
|
|
7101
7096
|
const hrs = (n = 1) => new Array(n).fill(new ZikoUIHr());
|
|
7102
7097
|
const link = (href, ...UIElement) => new ZikoUILink(href).append(...UIElement);
|
|
7103
|
-
const
|
|
7098
|
+
const html = (tag, ...UIElement) => new ZikoUIHtmlTag(tag).append(...UIElement);
|
|
7104
7099
|
|
|
7105
7100
|
class ZikoUILI extends ZikoUIElement {
|
|
7106
7101
|
constructor(UI) {
|
|
7107
7102
|
super();
|
|
7108
7103
|
this.element = document.createElement("li");
|
|
7109
7104
|
this.append(UI);
|
|
7110
|
-
this.render();
|
|
7111
7105
|
}
|
|
7112
7106
|
}
|
|
7113
7107
|
class ZikoUIList extends ZikoUIElement {
|
|
@@ -7191,7 +7185,6 @@ class ZikoUIOList extends ZikoUIList {
|
|
|
7191
7185
|
constructor(...arr) {
|
|
7192
7186
|
super("ol", "ol");
|
|
7193
7187
|
this.append(...arr);
|
|
7194
|
-
this.render();
|
|
7195
7188
|
}
|
|
7196
7189
|
type(tp = 1) {
|
|
7197
7190
|
this.element.setAttribute("type", tp);
|
|
@@ -7206,7 +7199,6 @@ class ZikoUIUList extends ZikoUIList {
|
|
|
7206
7199
|
constructor(...arr) {
|
|
7207
7200
|
super("ul", "ul");
|
|
7208
7201
|
this.append(...arr);
|
|
7209
|
-
this.render();
|
|
7210
7202
|
}
|
|
7211
7203
|
}
|
|
7212
7204
|
const li = UI => new ZikoUILI(UI);
|
|
@@ -7215,10 +7207,9 @@ const ul = (...arr) => new ZikoUIUList(...arr);
|
|
|
7215
7207
|
|
|
7216
7208
|
class ZikoUIBtn extends ZikoUIElement {
|
|
7217
7209
|
constructor(value = "button") {
|
|
7218
|
-
super();
|
|
7210
|
+
super("button", "btn");
|
|
7219
7211
|
this.element = document.createElement("button");
|
|
7220
7212
|
this.setValue(value);
|
|
7221
|
-
this.render();
|
|
7222
7213
|
this.st.cursor("pointer");
|
|
7223
7214
|
}
|
|
7224
7215
|
setValue(value) {
|
|
@@ -7264,7 +7255,6 @@ class ZikoUITextArea extends ZikoUIElement {
|
|
|
7264
7255
|
super();
|
|
7265
7256
|
this.element = document.createElement("textarea");
|
|
7266
7257
|
//Object.assign(this,inputComposer.call(this));
|
|
7267
|
-
this.render();
|
|
7268
7258
|
}
|
|
7269
7259
|
get value() {
|
|
7270
7260
|
return this.element.textContent;
|
|
@@ -7284,7 +7274,6 @@ class ZikoUIInput extends ZikoUIElement {
|
|
|
7284
7274
|
});
|
|
7285
7275
|
this.setValue(value);
|
|
7286
7276
|
if (datalist) this.linkDatalist(datalist);
|
|
7287
|
-
this.render();
|
|
7288
7277
|
}
|
|
7289
7278
|
onInput(...callbacks) {
|
|
7290
7279
|
if (!this.events.input) this.events.input = Input$1(this);
|
|
@@ -7393,7 +7382,6 @@ class ZikoUIInputNumber extends ZikoUIInput {
|
|
|
7393
7382
|
super();
|
|
7394
7383
|
this._setType("number");
|
|
7395
7384
|
this.setMin(min).setMax(max).setStep(step);
|
|
7396
|
-
this.render();
|
|
7397
7385
|
}
|
|
7398
7386
|
get value() {
|
|
7399
7387
|
return +this.element.value;
|
|
@@ -7416,7 +7404,6 @@ class ZikoUIInputSlider extends ZikoUIInputNumber {
|
|
|
7416
7404
|
super();
|
|
7417
7405
|
this._setType("range");
|
|
7418
7406
|
this.setMin(min).setMax(max).setValue(val).setStep(step);
|
|
7419
|
-
this.render();
|
|
7420
7407
|
}
|
|
7421
7408
|
}
|
|
7422
7409
|
class ZikoUIInputColor extends ZikoUIInput {
|
|
@@ -7424,7 +7411,6 @@ class ZikoUIInputColor extends ZikoUIInput {
|
|
|
7424
7411
|
super();
|
|
7425
7412
|
this._setType("color");
|
|
7426
7413
|
this.background(this.value);
|
|
7427
|
-
this.render();
|
|
7428
7414
|
this.onInput(() => this.background(this.value));
|
|
7429
7415
|
}
|
|
7430
7416
|
}
|
|
@@ -7432,35 +7418,30 @@ class ZikoUIInputPassword extends ZikoUIInput {
|
|
|
7432
7418
|
constructor() {
|
|
7433
7419
|
super();
|
|
7434
7420
|
this._setType("password");
|
|
7435
|
-
this.render();
|
|
7436
7421
|
}
|
|
7437
7422
|
}
|
|
7438
7423
|
class ZikoUIInputEmail extends ZikoUIInput {
|
|
7439
7424
|
constructor() {
|
|
7440
7425
|
super();
|
|
7441
7426
|
this._setType("email");
|
|
7442
|
-
this.render();
|
|
7443
7427
|
}
|
|
7444
7428
|
}
|
|
7445
7429
|
class ZikoUIInputTime extends ZikoUIInput {
|
|
7446
7430
|
constructor() {
|
|
7447
7431
|
super();
|
|
7448
7432
|
this._setType("time");
|
|
7449
|
-
this.render();
|
|
7450
7433
|
}
|
|
7451
7434
|
}
|
|
7452
7435
|
class ZikoUIInputDate extends ZikoUIInput {
|
|
7453
7436
|
constructor() {
|
|
7454
7437
|
super();
|
|
7455
7438
|
this._setType("date");
|
|
7456
|
-
this.render();
|
|
7457
7439
|
}
|
|
7458
7440
|
}
|
|
7459
7441
|
class ZikoUIInputDateTime extends ZikoUIInput {
|
|
7460
7442
|
constructor() {
|
|
7461
7443
|
super();
|
|
7462
7444
|
this._setType("datetime-local");
|
|
7463
|
-
this.render();
|
|
7464
7445
|
}
|
|
7465
7446
|
}
|
|
7466
7447
|
class ZikoUIInputCheckbox extends ZikoUIInput {
|
|
@@ -7536,7 +7517,6 @@ class ZikoUIInputDatalist extends ZikoUIElement {
|
|
|
7536
7517
|
super();
|
|
7537
7518
|
this.element = document.createElement("datalist");
|
|
7538
7519
|
this.addOptions(...options).setId("ziko-datalist-id" + Random.string(10));
|
|
7539
|
-
this.render();
|
|
7540
7520
|
}
|
|
7541
7521
|
addOptions(...options) {
|
|
7542
7522
|
options.map(n => this.append(new ZikoUIInputOption(n)));
|
|
@@ -7595,7 +7575,6 @@ class ZikoUISelect extends ZikoUIElement {
|
|
|
7595
7575
|
constructor() {
|
|
7596
7576
|
super();
|
|
7597
7577
|
this.element = document.createElement("select");
|
|
7598
|
-
this.render();
|
|
7599
7578
|
}
|
|
7600
7579
|
addOptions(...options) {
|
|
7601
7580
|
options.map(n => this.append(new ZikoUIInputOption(n)));
|
|
@@ -7616,7 +7595,6 @@ class ZikoUIImage extends ZikoUIElement {
|
|
|
7616
7595
|
width: w,
|
|
7617
7596
|
height: h
|
|
7618
7597
|
});
|
|
7619
|
-
this.render();
|
|
7620
7598
|
}
|
|
7621
7599
|
updateSrc(url) {
|
|
7622
7600
|
this.value = url;
|
|
@@ -7644,7 +7622,6 @@ class ZikoUIFigure extends ZikoUIElement {
|
|
|
7644
7622
|
this.caption.append(caption.element);
|
|
7645
7623
|
this.element.append(this.img);
|
|
7646
7624
|
this.element.append(this.caption);
|
|
7647
|
-
this.render();
|
|
7648
7625
|
}
|
|
7649
7626
|
}
|
|
7650
7627
|
const figure = (image, caption) => new ZikoUIFigure(image, caption);
|
|
@@ -7659,7 +7636,6 @@ class ZikoUIVideo extends ZikoUIElement {
|
|
|
7659
7636
|
width: w,
|
|
7660
7637
|
height: h
|
|
7661
7638
|
});
|
|
7662
|
-
this.render();
|
|
7663
7639
|
}
|
|
7664
7640
|
get t() {
|
|
7665
7641
|
return this.element.currentTime;
|
|
@@ -7697,7 +7673,6 @@ class ZikoUIAudio extends ZikoUIElement {
|
|
|
7697
7673
|
constructor(src) {
|
|
7698
7674
|
super("audio", "audio");
|
|
7699
7675
|
this.element.setAttribute("src", src);
|
|
7700
|
-
this.render();
|
|
7701
7676
|
this.useControls();
|
|
7702
7677
|
}
|
|
7703
7678
|
get t() {
|
|
@@ -7910,7 +7885,7 @@ const Grid$1 = (...ZikoUIElement) => new ZikoUIGrid("div").append(...ZikoUIEleme
|
|
|
7910
7885
|
class ZikoUIAccordion extends ZikoUIElement {
|
|
7911
7886
|
constructor(summary, content, icon = "😁") {
|
|
7912
7887
|
super("details", "Accordion");
|
|
7913
|
-
this.summary =
|
|
7888
|
+
this.summary = html("summary", summary).style({
|
|
7914
7889
|
fontSize: "1.1em",
|
|
7915
7890
|
padding: "0.625rem",
|
|
7916
7891
|
fontWeight: "bold",
|
|
@@ -8062,7 +8037,7 @@ class ZikoUICodeNote extends ZikoUIFlex {
|
|
|
8062
8037
|
}
|
|
8063
8038
|
const CodeNote = () => new ZikoUICodeNote();
|
|
8064
8039
|
|
|
8065
|
-
const Input = (codeText = "") =>
|
|
8040
|
+
const Input = (codeText = "") => html("code", codeText).style({
|
|
8066
8041
|
width: "100%",
|
|
8067
8042
|
height: "auto",
|
|
8068
8043
|
padding: "10px",
|
|
@@ -8076,7 +8051,7 @@ const Input = (codeText = "") => ZikoHtml("code", codeText).style({
|
|
|
8076
8051
|
background: "#f6f8fa",
|
|
8077
8052
|
color: "#0062C3"
|
|
8078
8053
|
}).setAttr("contenteditable", true).setAttr("spellcheck", false);
|
|
8079
|
-
const Output = () =>
|
|
8054
|
+
const Output = () => html("output").style({
|
|
8080
8055
|
width: "100%",
|
|
8081
8056
|
height: "auto",
|
|
8082
8057
|
padding: "5px 0"
|
|
@@ -8100,7 +8075,7 @@ const BTN_STYLE = {
|
|
|
8100
8075
|
const Right = ctx => Flex(text$1('▶️').style(BTN_STYLE).onClick(e => {
|
|
8101
8076
|
if (ctx.parent instanceof ZikoUICodeNote) ctx.parent.setCurrentNote(ctx);
|
|
8102
8077
|
ctx.execute();
|
|
8103
|
-
globalThis.
|
|
8078
|
+
globalThis.__ZikoConfig__.default.target = e.target.parent.parent[1][1];
|
|
8104
8079
|
}), text$1('📋').style(BTN_STYLE).onClick(() => {
|
|
8105
8080
|
navigator.clipboard.writeText(ctx.codeText);
|
|
8106
8081
|
}), text$1('✖️').style(BTN_STYLE).onClick(() => ctx.remove()), text$1('✖️').style(BTN_STYLE).onClick(() => ctx.remove())).style({
|
|
@@ -8232,7 +8207,7 @@ class ZikoUICodeCell extends ZikoUIFlex {
|
|
|
8232
8207
|
#evaluateMd() {}
|
|
8233
8208
|
#evaluateHtml() {}
|
|
8234
8209
|
evaluate(order) {
|
|
8235
|
-
globalThis.
|
|
8210
|
+
globalThis.__ZikoConfig__.default.target = this.Output.element;
|
|
8236
8211
|
switch (this.cache.type) {
|
|
8237
8212
|
case "js":
|
|
8238
8213
|
this.#evaluateJs(order);
|
|
@@ -8369,19 +8344,16 @@ const Tabs = (Controllers, Contents) => new ZikoUITabs(Controllers, Contents);
|
|
|
8369
8344
|
class ZikoUIMain extends ZikoUIElement {
|
|
8370
8345
|
constructor() {
|
|
8371
8346
|
super("main", "Main");
|
|
8372
|
-
this.render();
|
|
8373
8347
|
}
|
|
8374
8348
|
}
|
|
8375
8349
|
class ZikoUIHeader extends ZikoUIElement {
|
|
8376
8350
|
constructor() {
|
|
8377
8351
|
super("header", "Header");
|
|
8378
|
-
this.render();
|
|
8379
8352
|
}
|
|
8380
8353
|
}
|
|
8381
8354
|
class ZikoUINav extends ZikoUIElement {
|
|
8382
8355
|
constructor() {
|
|
8383
8356
|
super("nav", "Nav");
|
|
8384
|
-
this.render();
|
|
8385
8357
|
}
|
|
8386
8358
|
}
|
|
8387
8359
|
class ZikoUISection extends ZikoUIElement {
|
|
@@ -8390,26 +8362,22 @@ class ZikoUISection extends ZikoUIElement {
|
|
|
8390
8362
|
this.style({
|
|
8391
8363
|
position: "relative"
|
|
8392
8364
|
});
|
|
8393
|
-
this.render();
|
|
8394
8365
|
}
|
|
8395
8366
|
}
|
|
8396
8367
|
class ZikoUIArticle extends ZikoUIElement {
|
|
8397
8368
|
constructor() {
|
|
8398
8369
|
super("article", "Article");
|
|
8399
|
-
this.render();
|
|
8400
8370
|
}
|
|
8401
8371
|
}
|
|
8402
8372
|
class ZikoUIAside extends ZikoUIElement {
|
|
8403
8373
|
constructor() {
|
|
8404
8374
|
super("aside", "Aside");
|
|
8405
|
-
this.render();
|
|
8406
8375
|
}
|
|
8407
8376
|
}
|
|
8408
8377
|
class ZikoUIFooter extends ZikoUIElement {
|
|
8409
8378
|
constructor() {
|
|
8410
8379
|
super("footer", "Footer");
|
|
8411
8380
|
this.element = document.createElement("footer");
|
|
8412
|
-
this.render();
|
|
8413
8381
|
}
|
|
8414
8382
|
}
|
|
8415
8383
|
const Section$1 = (...ZikoUIElement) => new ZikoUISection().append(...ZikoUIElement);
|
|
@@ -8500,7 +8468,6 @@ class ZikoUITable extends ZikoUIElement {
|
|
|
8500
8468
|
};
|
|
8501
8469
|
if (body) this.fromMatrix(body);
|
|
8502
8470
|
if (caption) this.setCaption(caption);
|
|
8503
|
-
this.render();
|
|
8504
8471
|
}
|
|
8505
8472
|
get caption() {
|
|
8506
8473
|
return this.structure.caption;
|
|
@@ -8599,7 +8566,7 @@ class ZikoUITable extends ZikoUIElement {
|
|
|
8599
8566
|
const Table = (matrix, config) => new ZikoUITable(matrix, config);
|
|
8600
8567
|
|
|
8601
8568
|
const UI$1 = {
|
|
8602
|
-
|
|
8569
|
+
html,
|
|
8603
8570
|
text: text$1,
|
|
8604
8571
|
p,
|
|
8605
8572
|
h1,
|
|
@@ -9330,7 +9297,7 @@ class ZikoUICanvas extends ZikoUIElement {
|
|
|
9330
9297
|
});
|
|
9331
9298
|
this.transformMatrix = new Matrix([[1, 0, 0], [0, 1, 0], [0, 0, 1]]);
|
|
9332
9299
|
this.axisMatrix = new Matrix([[-10, -10], [10, 10]]);
|
|
9333
|
-
this.render();
|
|
9300
|
+
this.render(globalThis.__ZikoConfig__.default.render);
|
|
9334
9301
|
setTimeout(() => this.resize(w, h), 0);
|
|
9335
9302
|
this.on("sizeupdated", () => this.adjust());
|
|
9336
9303
|
}
|
|
@@ -9826,8 +9793,20 @@ const SPA = (root_UI, routes, patterns) => new ZikoSPA(root_UI, routes, patterns
|
|
|
9826
9793
|
|
|
9827
9794
|
const __init__ = () => document.documentElement.setAttribute("data-engine", "zikojs");
|
|
9828
9795
|
|
|
9829
|
-
var __Target__
|
|
9830
|
-
if
|
|
9796
|
+
// var __Target__=null;
|
|
9797
|
+
// if(globalThis?.document?.body)__Target__=document.body;
|
|
9798
|
+
const __ZikoConfig__ = {
|
|
9799
|
+
default: {
|
|
9800
|
+
target: null,
|
|
9801
|
+
render: true
|
|
9802
|
+
},
|
|
9803
|
+
setDefault: function (pairs) {
|
|
9804
|
+
const keys = Object.keys(pairs);
|
|
9805
|
+
const values = Object.values(pairs);
|
|
9806
|
+
for (let i = 0; i < keys.length; i++) this.default[keys[i]] = values[i];
|
|
9807
|
+
},
|
|
9808
|
+
init: () => document.documentElement.setAttribute("data-engine", "zikojs")
|
|
9809
|
+
};
|
|
9831
9810
|
|
|
9832
9811
|
class ZikoSeo {
|
|
9833
9812
|
constructor(app) {
|
|
@@ -9886,7 +9865,7 @@ class ZikoUIApp extends ZikoUIFlex {
|
|
|
9886
9865
|
theme: null,
|
|
9887
9866
|
isRoot: true
|
|
9888
9867
|
});
|
|
9889
|
-
this.render();
|
|
9868
|
+
this.render(globalThis.__ZikoConfig__.default.render);
|
|
9890
9869
|
}
|
|
9891
9870
|
#init() {
|
|
9892
9871
|
this.root.setAttribute("data-engine", "zikojs");
|
|
@@ -9924,7 +9903,7 @@ const Ziko = {
|
|
|
9924
9903
|
};
|
|
9925
9904
|
globalThis.__Ziko__ = Ziko;
|
|
9926
9905
|
globalThis.__UI__ = __UI__;
|
|
9927
|
-
globalThis.
|
|
9906
|
+
globalThis.__ZikoConfig__ = __ZikoConfig__;
|
|
9928
9907
|
function ExtractAll() {
|
|
9929
9908
|
UI$1.ExtractAll();
|
|
9930
9909
|
Math$1.ExtractAll();
|
|
@@ -9990,7 +9969,6 @@ exports.Themes = Themes;
|
|
|
9990
9969
|
exports.Time = Time;
|
|
9991
9970
|
exports.UI = UI$1;
|
|
9992
9971
|
exports.Utils = Utils;
|
|
9993
|
-
exports.ZikoHtml = ZikoHtml;
|
|
9994
9972
|
exports.ZikoUIArticle = ZikoUIArticle;
|
|
9995
9973
|
exports.ZikoUIAside = ZikoUIAside;
|
|
9996
9974
|
exports.ZikoUIAudio = ZikoUIAudio;
|
|
@@ -10010,6 +9988,7 @@ exports.ZikoUINav = ZikoUINav;
|
|
|
10010
9988
|
exports.ZikoUISection = ZikoUISection;
|
|
10011
9989
|
exports.ZikoUISvg = ZikoUISvg;
|
|
10012
9990
|
exports.ZikoUIVideo = ZikoUIVideo;
|
|
9991
|
+
exports.__ZikoConfig__ = __ZikoConfig__;
|
|
10013
9992
|
exports.__init__ = __init__;
|
|
10014
9993
|
exports.abs = abs;
|
|
10015
9994
|
exports.accum = accum;
|
|
@@ -10069,6 +10048,7 @@ exports.h5 = h5;
|
|
|
10069
10048
|
exports.h6 = h6;
|
|
10070
10049
|
exports.hr = hr;
|
|
10071
10050
|
exports.hrs = hrs;
|
|
10051
|
+
exports.html = html;
|
|
10072
10052
|
exports.hypot = hypot;
|
|
10073
10053
|
exports.image = image;
|
|
10074
10054
|
exports.inRange = inRange;
|