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.
Files changed (233) hide show
  1. package/core/App/Globals/index.js +18 -0
  2. package/{src → core}/App/app.js +1 -1
  3. package/{src → core}/App/index.js +1 -0
  4. package/{src → core}/Graphics/Canvas/canvas.js +1 -1
  5. package/{src → core}/Reactivity/Events/index.js +1 -1
  6. package/{src → core}/UI/CustomElement/Elements/Accordion/index.js +2 -2
  7. package/{src → core}/UI/CustomElement/Elements/CodeNote/CodeCell.js +1 -1
  8. package/{src → core}/UI/CustomElement/Elements/CodeNote/SubElements.js +4 -4
  9. package/{src → core}/UI/Inputs/Primitives/btn.js +1 -2
  10. package/{src → core}/UI/Inputs/Primitives/inputs.js +0 -10
  11. package/{src → core}/UI/Inputs/Primitives/select.js +0 -1
  12. package/{src → core}/UI/Inputs/Primitives/textarea.js +0 -1
  13. package/{src → core}/UI/List/index.js +0 -3
  14. package/{src → core}/UI/Media/Audio/index.js +0 -1
  15. package/{src → core}/UI/Media/Image/figure.js +0 -1
  16. package/{src → core}/UI/Media/Image/image.js +0 -1
  17. package/{src → core}/UI/Media/Video/index.js +0 -1
  18. package/{src → core}/UI/Misc/index.js +5 -9
  19. package/{src → core}/UI/Semantic/index.js +0 -7
  20. package/{src → core}/UI/Table/table.js +0 -1
  21. package/{src → core}/UI/Text/heading.js +0 -1
  22. package/{src → core}/UI/Text/p.js +0 -1
  23. package/{src → core}/UI/Text/text.js +0 -1
  24. package/{src → core}/UI/ZikoUIElement.js +3 -1
  25. package/{src → core}/UI/index.js +3 -3
  26. package/{src → core}/index.js +3 -1
  27. package/dist/ziko.cjs +33 -53
  28. package/dist/ziko.js +33 -53
  29. package/dist/ziko.min.js +2 -2
  30. package/dist/ziko.mjs +32 -53
  31. package/package.json +5 -3
  32. package/wrapper/react/index.jsx +16 -0
  33. package/wrapper/react/readme.md +19 -0
  34. package/wrapper/vue/ZikoUI.vue +17 -0
  35. package/src/App/Globals/index.js +0 -3
  36. /package/{src → core}/App/Accessibility/index.js +0 -0
  37. /package/{src → core}/App/Globals/__Target__.js +0 -0
  38. /package/{src → core}/App/Globals/__UI__.js +0 -0
  39. /package/{src → core}/App/Globals/__init__.js +0 -0
  40. /package/{src → core}/App/Router/index.js +0 -0
  41. /package/{src → core}/App/Seo/index.js +0 -0
  42. /package/{src → core}/App/Themes/dark.js +0 -0
  43. /package/{src → core}/App/Themes/index.js +0 -0
  44. /package/{src → core}/App/Themes/light.js +0 -0
  45. /package/{src → core}/Data/Api/fetchdom.js +0 -0
  46. /package/{src → core}/Data/Api/index.js +0 -0
  47. /package/{src → core}/Data/Api/preload.js +0 -0
  48. /package/{src → core}/Data/Converter/canvas.js +0 -0
  49. /package/{src → core}/Data/Converter/csv.js +0 -0
  50. /package/{src → core}/Data/Converter/index.js +0 -0
  51. /package/{src → core}/Data/Converter/json.js +0 -0
  52. /package/{src → core}/Data/Converter/markdown.js +0 -0
  53. /package/{src → core}/Data/Converter/svg.js +0 -0
  54. /package/{src → core}/Data/Parser/markdown.js +0 -0
  55. /package/{src → core}/Data/Parser/xml.js +0 -0
  56. /package/{src → core}/Data/Strings/index.js +0 -0
  57. /package/{src → core}/Data/decorators.js +0 -0
  58. /package/{src → core}/Data/index.js +0 -0
  59. /package/{src → core}/Graphics/Canvas/Elements/Basic/arc.js +0 -0
  60. /package/{src → core}/Graphics/Canvas/Elements/Basic/image.js +0 -0
  61. /package/{src → core}/Graphics/Canvas/Elements/Basic/line.js +0 -0
  62. /package/{src → core}/Graphics/Canvas/Elements/Basic/path.js +0 -0
  63. /package/{src → core}/Graphics/Canvas/Elements/Basic/points.js +0 -0
  64. /package/{src → core}/Graphics/Canvas/Elements/Basic/polygon.js +0 -0
  65. /package/{src → core}/Graphics/Canvas/Elements/Basic/polyline.js +0 -0
  66. /package/{src → core}/Graphics/Canvas/Elements/Basic/rect.js +0 -0
  67. /package/{src → core}/Graphics/Canvas/Elements/Basic/text.js +0 -0
  68. /package/{src → core}/Graphics/Canvas/Elements/Chart/histogram.js +0 -0
  69. /package/{src → core}/Graphics/Canvas/Elements/Chart/plot.js +0 -0
  70. /package/{src → core}/Graphics/Canvas/Elements/Chart/scatter.js +0 -0
  71. /package/{src → core}/Graphics/Canvas/Elements/Chart/stem.js +0 -0
  72. /package/{src → core}/Graphics/Canvas/Elements/Element.js +0 -0
  73. /package/{src → core}/Graphics/Canvas/Elements/Groupe.js +0 -0
  74. /package/{src → core}/Graphics/Canvas/Elements/grid.js +0 -0
  75. /package/{src → core}/Graphics/Canvas/Elements/index.js +0 -0
  76. /package/{src → core}/Graphics/Canvas/Filter/index.js +0 -0
  77. /package/{src → core}/Graphics/Canvas/Paint/index.js +0 -0
  78. /package/{src → core}/Graphics/Canvas/Utils/color.js +0 -0
  79. /package/{src → core}/Graphics/Canvas/Utils/floodFill.js +0 -0
  80. /package/{src → core}/Graphics/Canvas/_canvas_offscreen +0 -0
  81. /package/{src → core}/Graphics/Canvas/index.js +0 -0
  82. /package/{src → core}/Graphics/Svg/Elements/ZikoSvgElement.js +0 -0
  83. /package/{src → core}/Graphics/Svg/Elements/circle.js +0 -0
  84. /package/{src → core}/Graphics/Svg/Elements/ellipse.js +0 -0
  85. /package/{src → core}/Graphics/Svg/Elements/foreignObject.js +0 -0
  86. /package/{src → core}/Graphics/Svg/Elements/grid.js +0 -0
  87. /package/{src → core}/Graphics/Svg/Elements/groupe.js +0 -0
  88. /package/{src → core}/Graphics/Svg/Elements/image.js +0 -0
  89. /package/{src → core}/Graphics/Svg/Elements/line.js +0 -0
  90. /package/{src → core}/Graphics/Svg/Elements/path.js +0 -0
  91. /package/{src → core}/Graphics/Svg/Elements/polygon.js +0 -0
  92. /package/{src → core}/Graphics/Svg/Elements/polyline.js +0 -0
  93. /package/{src → core}/Graphics/Svg/Elements/rect.js +0 -0
  94. /package/{src → core}/Graphics/Svg/Elements/text.js +0 -0
  95. /package/{src → core}/Graphics/Svg/index.js +0 -0
  96. /package/{src → core}/Graphics/Svg/svg.js +0 -0
  97. /package/{src → core}/Graphics/index.js +0 -0
  98. /package/{src → core}/Math/Calculus/Special Functions/bessel.js +0 -0
  99. /package/{src → core}/Math/Calculus/Special Functions/beta.js +0 -0
  100. /package/{src → core}/Math/Calculus/Special Functions/gamma.js +0 -0
  101. /package/{src → core}/Math/Calculus/Special Functions/index.js +0 -0
  102. /package/{src → core}/Math/Calculus/index.js +0 -0
  103. /package/{src → core}/Math/Complex/Fractals/julia.js +0 -0
  104. /package/{src → core}/Math/Complex/index.js +0 -0
  105. /package/{src → core}/Math/Discret/Combinaison/index.js +0 -0
  106. /package/{src → core}/Math/Discret/Conversion/index.js +0 -0
  107. /package/{src → core}/Math/Discret/Logic/index.js +0 -0
  108. /package/{src → core}/Math/Discret/Permutation/index.js +0 -0
  109. /package/{src → core}/Math/Discret/Set/index.js +0 -0
  110. /package/{src → core}/Math/Discret/Set/powerSet.js +0 -0
  111. /package/{src → core}/Math/Discret/Set/subSet.js +0 -0
  112. /package/{src → core}/Math/Discret/index.js +0 -0
  113. /package/{src → core}/Math/Functions/index.js +0 -0
  114. /package/{src → core}/Math/Matrix/Decomposition.js +0 -0
  115. /package/{src → core}/Math/Matrix/LinearSystem.js +0 -0
  116. /package/{src → core}/Math/Matrix/Matrix.js +0 -0
  117. /package/{src → core}/Math/Matrix/index.js +0 -0
  118. /package/{src → core}/Math/Numeric/index.js +0 -0
  119. /package/{src → core}/Math/Random/index.js +0 -0
  120. /package/{src → core}/Math/Signal/__np.py.txt +0 -0
  121. /package/{src → core}/Math/Signal/conv.js +0 -0
  122. /package/{src → core}/Math/Signal/fft.js +0 -0
  123. /package/{src → core}/Math/Signal/filter.js +0 -0
  124. /package/{src → core}/Math/Signal/functions.js +0 -0
  125. /package/{src → core}/Math/Signal/index.js +0 -0
  126. /package/{src → core}/Math/Statistics/Functions/index.js +0 -0
  127. /package/{src → core}/Math/Statistics/index.js +0 -0
  128. /package/{src → core}/Math/Utils/arithmetic.js +0 -0
  129. /package/{src → core}/Math/Utils/checkers.js +0 -0
  130. /package/{src → core}/Math/Utils/comparaison.js +0 -0
  131. /package/{src → core}/Math/Utils/conversions.js +0 -0
  132. /package/{src → core}/Math/Utils/discret.js +0 -0
  133. /package/{src → core}/Math/Utils/index.js +0 -0
  134. /package/{src → core}/Math/Utils/mapfun.js +0 -0
  135. /package/{src → core}/Math/absract.js +0 -0
  136. /package/{src → core}/Math/const.js +0 -0
  137. /package/{src → core}/Math/index.js +0 -0
  138. /package/{src → core}/Reactivity/Events/Global/Click.js +0 -0
  139. /package/{src → core}/Reactivity/Events/Global/Clipboard.js +0 -0
  140. /package/{src → core}/Reactivity/Events/Global/CustomEvent.js +0 -0
  141. /package/{src → core}/Reactivity/Events/Global/Drag.js +0 -0
  142. /package/{src → core}/Reactivity/Events/Global/Focus.js +0 -0
  143. /package/{src → core}/Reactivity/Events/Global/Key.js +0 -0
  144. /package/{src → core}/Reactivity/Events/Global/Mouse.js +0 -0
  145. /package/{src → core}/Reactivity/Events/Global/Pointer.js +0 -0
  146. /package/{src → core}/Reactivity/Events/Global/Touch.js +0 -0
  147. /package/{src → core}/Reactivity/Events/Global/Wheel.js +0 -0
  148. /package/{src → core}/Reactivity/Events/Partiel/Hash.js +0 -0
  149. /package/{src → core}/Reactivity/Events/Partiel/Input.js +0 -0
  150. /package/{src → core}/Reactivity/Events/Partiel/MediaEvent.js +0 -0
  151. /package/{src → core}/Reactivity/Events/ZikoEvent.js +0 -0
  152. /package/{src → core}/Reactivity/Observer/index.js +0 -0
  153. /package/{src → core}/Reactivity/Observer/intersection.js +0 -0
  154. /package/{src → core}/Reactivity/Observer/mutation.js +0 -0
  155. /package/{src → core}/Reactivity/Observer/resize.js +0 -0
  156. /package/{src → core}/Reactivity/Use/Contexte/index.js +0 -0
  157. /package/{src → core}/Reactivity/Use/Contexte/useSuccesifKeys.js +0 -0
  158. /package/{src → core}/Reactivity/Use/Decorators/index.js +0 -0
  159. /package/{src → core}/Reactivity/Use/Interactions/index.js +0 -0
  160. /package/{src → core}/Reactivity/Use/Interactions/useBluetooth.js +0 -0
  161. /package/{src → core}/Reactivity/Use/Interactions/useChannel.js +0 -0
  162. /package/{src → core}/Reactivity/Use/Interactions/useEventEmmiter.js +0 -0
  163. /package/{src → core}/Reactivity/Use/Interactions/useSerial.js +0 -0
  164. /package/{src → core}/Reactivity/Use/Interactions/useThread.js +0 -0
  165. /package/{src → core}/Reactivity/Use/Interactions/useUsb.js +0 -0
  166. /package/{src → core}/Reactivity/Use/Sensors/index.js +0 -0
  167. /package/{src → core}/Reactivity/Use/Sensors/useBattery.js +0 -0
  168. /package/{src → core}/Reactivity/Use/Sensors/useCamera.js +0 -0
  169. /package/{src → core}/Reactivity/Use/Sensors/useGeolocation.js +0 -0
  170. /package/{src → core}/Reactivity/Use/Sensors/useMicro.js +0 -0
  171. /package/{src → core}/Reactivity/Use/Sensors/useOrientation.js +0 -0
  172. /package/{src → core}/Reactivity/Use/Storage/index.js +0 -0
  173. /package/{src → core}/Reactivity/Use/Storage/useCookie.js +0 -0
  174. /package/{src → core}/Reactivity/Use/Storage/useIndexedDb.js +0 -0
  175. /package/{src → core}/Reactivity/Use/Storage/useStorage.js +0 -0
  176. /package/{src → core}/Reactivity/Use/UI/index.js +0 -0
  177. /package/{src → core}/Reactivity/Use/UI/useCssLink.js +0 -0
  178. /package/{src → core}/Reactivity/Use/UI/useCssText.js +0 -0
  179. /package/{src → core}/Reactivity/Use/UI/useFavIcon.js +0 -0
  180. /package/{src → core}/Reactivity/Use/UI/useLinearGradient.js +0 -0
  181. /package/{src → core}/Reactivity/Use/UI/useMediaQuery.js +0 -0
  182. /package/{src → core}/Reactivity/Use/UI/useRadialGradient.js +0 -0
  183. /package/{src → core}/Reactivity/Use/UI/useStyle.js +0 -0
  184. /package/{src → core}/Reactivity/Use/UI/useTheme.js +0 -0
  185. /package/{src → core}/Reactivity/Use/UI/useTitle.js +0 -0
  186. /package/{src → core}/Reactivity/Use/index.js +0 -0
  187. /package/{src → core}/Reactivity/Use/todo.md +0 -0
  188. /package/{src → core}/Reactivity/index.js +0 -0
  189. /package/{src → core}/Time/animation.js +0 -0
  190. /package/{src → core}/Time/index.js +0 -0
  191. /package/{src → core}/Time/loop.js +0 -0
  192. /package/{src → core}/Time/utils/decorators.js +0 -0
  193. /package/{src → core}/Time/utils/ease.js +0 -0
  194. /package/{src → core}/Time/utils/index.js +0 -0
  195. /package/{src → core}/Time/utils/performance.js +0 -0
  196. /package/{src → core}/Time/utils/ui.js +0 -0
  197. /package/{src → core}/UI/CustomElement/Elements/Carousel/index.js +0 -0
  198. /package/{src → core}/UI/CustomElement/Elements/CodeNote/CodeNote.js +0 -0
  199. /package/{src → core}/UI/CustomElement/Elements/CodeNote/index.js +0 -0
  200. /package/{src → core}/UI/CustomElement/Elements/Columns.js +0 -0
  201. /package/{src → core}/UI/CustomElement/Elements/FAB.js +0 -0
  202. /package/{src → core}/UI/CustomElement/Elements/Menu.js +0 -0
  203. /package/{src → core}/UI/CustomElement/Elements/Notification.js +0 -0
  204. /package/{src → core}/UI/CustomElement/Elements/Popover.js +0 -0
  205. /package/{src → core}/UI/CustomElement/Elements/Popup.js +0 -0
  206. /package/{src → core}/UI/CustomElement/Elements/Swipper.js +0 -0
  207. /package/{src → core}/UI/CustomElement/Elements/Tabs/index.js +0 -0
  208. /package/{src → core}/UI/CustomElement/Elements/Timeline.js +0 -0
  209. /package/{src → core}/UI/CustomElement/Elements/Toast.js +0 -0
  210. /package/{src → core}/UI/CustomElement/Elements/Treeview.js +0 -0
  211. /package/{src → core}/UI/CustomElement/Elements/index.js +0 -0
  212. /package/{src → core}/UI/CustomElement/Flex.js +0 -0
  213. /package/{src → core}/UI/CustomElement/Grid.js +0 -0
  214. /package/{src → core}/UI/CustomElement/index.js +0 -0
  215. /package/{src → core}/UI/Embaded/index.js +0 -0
  216. /package/{src → core}/UI/Inputs/Primitives/elements.js +0 -0
  217. /package/{src → core}/UI/Inputs/camera.js +0 -0
  218. /package/{src → core}/UI/Inputs/index.js +0 -0
  219. /package/{src → core}/UI/List/elements.js +0 -0
  220. /package/{src → core}/UI/Media/Image/index.js +0 -0
  221. /package/{src → core}/UI/Media/index.js +0 -0
  222. /package/{src → core}/UI/Style/index.js +0 -0
  223. /package/{src → core}/UI/Table/elements.js +0 -0
  224. /package/{src → core}/UI/Table/index.js +0 -0
  225. /package/{src → core}/UI/Table/utils.js +0 -0
  226. /package/{src → core}/UI/Text/index.js +0 -0
  227. /package/{src → core}/UI/Text/pre.js +0 -0
  228. /package/{src → core}/UI/Utils/index.js +0 -0
  229. /package/{src → core}/__proto__/Array.js +0 -0
  230. /package/{src → core}/__proto__/Function.js +0 -0
  231. /package/{src → core}/__proto__/Number.js +0 -0
  232. /package/{src → core}/__proto__/Object.js +0 -0
  233. /package/{src → core}/__proto__/String.js +0 -0
package/dist/ziko.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /*
3
3
  Project: ziko.js
4
4
  Author: Zakaria Elalaoui
5
- Date : Mon Mar 18 2024 11:29:55 GMT+0000 (UTC)
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
@@ -4257,7 +4257,7 @@
4257
4257
  Focus,
4258
4258
  Input: Input$1,
4259
4259
  HashEvent,
4260
- CustomEvent,
4260
+ customEvent,
4261
4261
  ExtractAll: function () {
4262
4262
  const keys = Object.keys(this);
4263
4263
  for (let i = 0; i < keys.length; i++) {
@@ -6434,7 +6434,8 @@
6434
6434
 
6435
6435
  class ZikoUIElement {
6436
6436
  constructor(element, name = "") {
6437
- this.target = globalThis.__Target__ || globalThis.document.body;
6437
+ //this.target = globalThis.__Target__||globalThis.document.body;
6438
+ this.target = globalThis.__ZikoConfig__.default.target || globalThis.document.body;
6438
6439
  if (typeof element === "string") element = globalThis.document.createElement(element);
6439
6440
  this.element = element;
6440
6441
  this.uuid = this.constructor.name + "-" + Random.string(10);
@@ -6476,6 +6477,7 @@
6476
6477
  });
6477
6478
  this.size("auto", "auto");
6478
6479
  globalThis.__UI__[this.cache.name]?.push(this);
6480
+ this.render(globalThis.__ZikoConfig__.default.render);
6479
6481
  }
6480
6482
  get st() {
6481
6483
  return this.cache.style;
@@ -6961,7 +6963,6 @@
6961
6963
  this.text = "";
6962
6964
  this.addValue(...value);
6963
6965
  this.st.display("inline-block");
6964
- this.render();
6965
6966
  }
6966
6967
  clear() {
6967
6968
  this.element.textContent = "";
@@ -7018,7 +7019,6 @@
7018
7019
  margin: 0,
7019
7020
  padding: 0
7020
7021
  });
7021
- this.render();
7022
7022
  }
7023
7023
  addValue(...value) {
7024
7024
  for (let i = 0; i < value.length; i++) {
@@ -7046,7 +7046,6 @@
7046
7046
  super(`h${type}`, `h${type}`);
7047
7047
  this.element = document.createElement("h" + type);
7048
7048
  this.element.textContent = value;
7049
- this.render();
7050
7049
  }
7051
7050
  get value() {
7052
7051
  return this.element.innerText;
@@ -7069,21 +7068,18 @@
7069
7068
 
7070
7069
  class ZikoUIHtmlTag extends ZikoUIElement {
7071
7070
  constructor(element) {
7072
- super(element, "ZikoHtml");
7073
- this.render();
7071
+ super(element, "html");
7074
7072
  }
7075
7073
  }
7076
7074
  class ZikoUIBr extends ZikoUIElement {
7077
7075
  constructor() {
7078
7076
  super("br", "br");
7079
- this.render();
7080
7077
  delete this.append;
7081
7078
  }
7082
7079
  }
7083
7080
  class ZikoUIHr extends ZikoUIElement {
7084
7081
  constructor() {
7085
7082
  super("hr", "hr");
7086
- this.render();
7087
7083
  delete this.append;
7088
7084
  }
7089
7085
  }
@@ -7091,7 +7087,6 @@
7091
7087
  constructor(href) {
7092
7088
  super("a", "link");
7093
7089
  this.setHref(href);
7094
- this.render();
7095
7090
  }
7096
7091
  setHref(href) {
7097
7092
  this.element.href = href;
@@ -7102,14 +7097,13 @@
7102
7097
  const brs = (n = 1) => new Array(n).fill(new ZikoUIBr());
7103
7098
  const hrs = (n = 1) => new Array(n).fill(new ZikoUIHr());
7104
7099
  const link = (href, ...UIElement) => new ZikoUILink(href).append(...UIElement);
7105
- const ZikoHtml = (tag, ...UIElement) => new ZikoUIHtmlTag(tag).append(...UIElement);
7100
+ const html = (tag, ...UIElement) => new ZikoUIHtmlTag(tag).append(...UIElement);
7106
7101
 
7107
7102
  class ZikoUILI extends ZikoUIElement {
7108
7103
  constructor(UI) {
7109
7104
  super();
7110
7105
  this.element = document.createElement("li");
7111
7106
  this.append(UI);
7112
- this.render();
7113
7107
  }
7114
7108
  }
7115
7109
  class ZikoUIList extends ZikoUIElement {
@@ -7193,7 +7187,6 @@
7193
7187
  constructor(...arr) {
7194
7188
  super("ol", "ol");
7195
7189
  this.append(...arr);
7196
- this.render();
7197
7190
  }
7198
7191
  type(tp = 1) {
7199
7192
  this.element.setAttribute("type", tp);
@@ -7208,7 +7201,6 @@
7208
7201
  constructor(...arr) {
7209
7202
  super("ul", "ul");
7210
7203
  this.append(...arr);
7211
- this.render();
7212
7204
  }
7213
7205
  }
7214
7206
  const li = UI => new ZikoUILI(UI);
@@ -7217,10 +7209,9 @@
7217
7209
 
7218
7210
  class ZikoUIBtn extends ZikoUIElement {
7219
7211
  constructor(value = "button") {
7220
- super();
7212
+ super("button", "btn");
7221
7213
  this.element = document.createElement("button");
7222
7214
  this.setValue(value);
7223
- this.render();
7224
7215
  this.st.cursor("pointer");
7225
7216
  }
7226
7217
  setValue(value) {
@@ -7266,7 +7257,6 @@
7266
7257
  super();
7267
7258
  this.element = document.createElement("textarea");
7268
7259
  //Object.assign(this,inputComposer.call(this));
7269
- this.render();
7270
7260
  }
7271
7261
  get value() {
7272
7262
  return this.element.textContent;
@@ -7286,7 +7276,6 @@
7286
7276
  });
7287
7277
  this.setValue(value);
7288
7278
  if (datalist) this.linkDatalist(datalist);
7289
- this.render();
7290
7279
  }
7291
7280
  onInput(...callbacks) {
7292
7281
  if (!this.events.input) this.events.input = Input$1(this);
@@ -7395,7 +7384,6 @@
7395
7384
  super();
7396
7385
  this._setType("number");
7397
7386
  this.setMin(min).setMax(max).setStep(step);
7398
- this.render();
7399
7387
  }
7400
7388
  get value() {
7401
7389
  return +this.element.value;
@@ -7418,7 +7406,6 @@
7418
7406
  super();
7419
7407
  this._setType("range");
7420
7408
  this.setMin(min).setMax(max).setValue(val).setStep(step);
7421
- this.render();
7422
7409
  }
7423
7410
  }
7424
7411
  class ZikoUIInputColor extends ZikoUIInput {
@@ -7426,7 +7413,6 @@
7426
7413
  super();
7427
7414
  this._setType("color");
7428
7415
  this.background(this.value);
7429
- this.render();
7430
7416
  this.onInput(() => this.background(this.value));
7431
7417
  }
7432
7418
  }
@@ -7434,35 +7420,30 @@
7434
7420
  constructor() {
7435
7421
  super();
7436
7422
  this._setType("password");
7437
- this.render();
7438
7423
  }
7439
7424
  }
7440
7425
  class ZikoUIInputEmail extends ZikoUIInput {
7441
7426
  constructor() {
7442
7427
  super();
7443
7428
  this._setType("email");
7444
- this.render();
7445
7429
  }
7446
7430
  }
7447
7431
  class ZikoUIInputTime extends ZikoUIInput {
7448
7432
  constructor() {
7449
7433
  super();
7450
7434
  this._setType("time");
7451
- this.render();
7452
7435
  }
7453
7436
  }
7454
7437
  class ZikoUIInputDate extends ZikoUIInput {
7455
7438
  constructor() {
7456
7439
  super();
7457
7440
  this._setType("date");
7458
- this.render();
7459
7441
  }
7460
7442
  }
7461
7443
  class ZikoUIInputDateTime extends ZikoUIInput {
7462
7444
  constructor() {
7463
7445
  super();
7464
7446
  this._setType("datetime-local");
7465
- this.render();
7466
7447
  }
7467
7448
  }
7468
7449
  class ZikoUIInputCheckbox extends ZikoUIInput {
@@ -7538,7 +7519,6 @@
7538
7519
  super();
7539
7520
  this.element = document.createElement("datalist");
7540
7521
  this.addOptions(...options).setId("ziko-datalist-id" + Random.string(10));
7541
- this.render();
7542
7522
  }
7543
7523
  addOptions(...options) {
7544
7524
  options.map(n => this.append(new ZikoUIInputOption(n)));
@@ -7597,7 +7577,6 @@
7597
7577
  constructor() {
7598
7578
  super();
7599
7579
  this.element = document.createElement("select");
7600
- this.render();
7601
7580
  }
7602
7581
  addOptions(...options) {
7603
7582
  options.map(n => this.append(new ZikoUIInputOption(n)));
@@ -7618,7 +7597,6 @@
7618
7597
  width: w,
7619
7598
  height: h
7620
7599
  });
7621
- this.render();
7622
7600
  }
7623
7601
  updateSrc(url) {
7624
7602
  this.value = url;
@@ -7646,7 +7624,6 @@
7646
7624
  this.caption.append(caption.element);
7647
7625
  this.element.append(this.img);
7648
7626
  this.element.append(this.caption);
7649
- this.render();
7650
7627
  }
7651
7628
  }
7652
7629
  const figure = (image, caption) => new ZikoUIFigure(image, caption);
@@ -7661,7 +7638,6 @@
7661
7638
  width: w,
7662
7639
  height: h
7663
7640
  });
7664
- this.render();
7665
7641
  }
7666
7642
  get t() {
7667
7643
  return this.element.currentTime;
@@ -7699,7 +7675,6 @@
7699
7675
  constructor(src) {
7700
7676
  super("audio", "audio");
7701
7677
  this.element.setAttribute("src", src);
7702
- this.render();
7703
7678
  this.useControls();
7704
7679
  }
7705
7680
  get t() {
@@ -7912,7 +7887,7 @@
7912
7887
  class ZikoUIAccordion extends ZikoUIElement {
7913
7888
  constructor(summary, content, icon = "😁") {
7914
7889
  super("details", "Accordion");
7915
- this.summary = ZikoHtml("summary", summary).style({
7890
+ this.summary = html("summary", summary).style({
7916
7891
  fontSize: "1.1em",
7917
7892
  padding: "0.625rem",
7918
7893
  fontWeight: "bold",
@@ -8064,7 +8039,7 @@
8064
8039
  }
8065
8040
  const CodeNote = () => new ZikoUICodeNote();
8066
8041
 
8067
- const Input = (codeText = "") => ZikoHtml("code", codeText).style({
8042
+ const Input = (codeText = "") => html("code", codeText).style({
8068
8043
  width: "100%",
8069
8044
  height: "auto",
8070
8045
  padding: "10px",
@@ -8078,7 +8053,7 @@
8078
8053
  background: "#f6f8fa",
8079
8054
  color: "#0062C3"
8080
8055
  }).setAttr("contenteditable", true).setAttr("spellcheck", false);
8081
- const Output = () => ZikoHtml("output").style({
8056
+ const Output = () => html("output").style({
8082
8057
  width: "100%",
8083
8058
  height: "auto",
8084
8059
  padding: "5px 0"
@@ -8102,7 +8077,7 @@
8102
8077
  const Right = ctx => Flex(text$1('▶️').style(BTN_STYLE).onClick(e => {
8103
8078
  if (ctx.parent instanceof ZikoUICodeNote) ctx.parent.setCurrentNote(ctx);
8104
8079
  ctx.execute();
8105
- globalThis.__Target__ = e.target.parent.parent[1][1];
8080
+ globalThis.__ZikoConfig__.default.target = e.target.parent.parent[1][1];
8106
8081
  }), text$1('📋').style(BTN_STYLE).onClick(() => {
8107
8082
  navigator.clipboard.writeText(ctx.codeText);
8108
8083
  }), text$1('✖️').style(BTN_STYLE).onClick(() => ctx.remove()), text$1('✖️').style(BTN_STYLE).onClick(() => ctx.remove())).style({
@@ -8234,7 +8209,7 @@
8234
8209
  #evaluateMd() {}
8235
8210
  #evaluateHtml() {}
8236
8211
  evaluate(order) {
8237
- globalThis.__Target__ = this.Output.element;
8212
+ globalThis.__ZikoConfig__.default.target = this.Output.element;
8238
8213
  switch (this.cache.type) {
8239
8214
  case "js":
8240
8215
  this.#evaluateJs(order);
@@ -8371,19 +8346,16 @@
8371
8346
  class ZikoUIMain extends ZikoUIElement {
8372
8347
  constructor() {
8373
8348
  super("main", "Main");
8374
- this.render();
8375
8349
  }
8376
8350
  }
8377
8351
  class ZikoUIHeader extends ZikoUIElement {
8378
8352
  constructor() {
8379
8353
  super("header", "Header");
8380
- this.render();
8381
8354
  }
8382
8355
  }
8383
8356
  class ZikoUINav extends ZikoUIElement {
8384
8357
  constructor() {
8385
8358
  super("nav", "Nav");
8386
- this.render();
8387
8359
  }
8388
8360
  }
8389
8361
  class ZikoUISection extends ZikoUIElement {
@@ -8392,26 +8364,22 @@
8392
8364
  this.style({
8393
8365
  position: "relative"
8394
8366
  });
8395
- this.render();
8396
8367
  }
8397
8368
  }
8398
8369
  class ZikoUIArticle extends ZikoUIElement {
8399
8370
  constructor() {
8400
8371
  super("article", "Article");
8401
- this.render();
8402
8372
  }
8403
8373
  }
8404
8374
  class ZikoUIAside extends ZikoUIElement {
8405
8375
  constructor() {
8406
8376
  super("aside", "Aside");
8407
- this.render();
8408
8377
  }
8409
8378
  }
8410
8379
  class ZikoUIFooter extends ZikoUIElement {
8411
8380
  constructor() {
8412
8381
  super("footer", "Footer");
8413
8382
  this.element = document.createElement("footer");
8414
- this.render();
8415
8383
  }
8416
8384
  }
8417
8385
  const Section$1 = (...ZikoUIElement) => new ZikoUISection().append(...ZikoUIElement);
@@ -8502,7 +8470,6 @@
8502
8470
  };
8503
8471
  if (body) this.fromMatrix(body);
8504
8472
  if (caption) this.setCaption(caption);
8505
- this.render();
8506
8473
  }
8507
8474
  get caption() {
8508
8475
  return this.structure.caption;
@@ -8601,7 +8568,7 @@
8601
8568
  const Table = (matrix, config) => new ZikoUITable(matrix, config);
8602
8569
 
8603
8570
  const UI$1 = {
8604
- ZikoHtml,
8571
+ html,
8605
8572
  text: text$1,
8606
8573
  p,
8607
8574
  h1,
@@ -9332,7 +9299,7 @@
9332
9299
  });
9333
9300
  this.transformMatrix = new Matrix([[1, 0, 0], [0, 1, 0], [0, 0, 1]]);
9334
9301
  this.axisMatrix = new Matrix([[-10, -10], [10, 10]]);
9335
- this.render();
9302
+ this.render(globalThis.__ZikoConfig__.default.render);
9336
9303
  setTimeout(() => this.resize(w, h), 0);
9337
9304
  this.on("sizeupdated", () => this.adjust());
9338
9305
  }
@@ -9828,8 +9795,20 @@
9828
9795
 
9829
9796
  const __init__ = () => document.documentElement.setAttribute("data-engine", "zikojs");
9830
9797
 
9831
- var __Target__ = null;
9832
- if (globalThis?.document?.body) __Target__ = document.body;
9798
+ // var __Target__=null;
9799
+ // if(globalThis?.document?.body)__Target__=document.body;
9800
+ const __ZikoConfig__ = {
9801
+ default: {
9802
+ target: null,
9803
+ render: true
9804
+ },
9805
+ setDefault: function (pairs) {
9806
+ const keys = Object.keys(pairs);
9807
+ const values = Object.values(pairs);
9808
+ for (let i = 0; i < keys.length; i++) this.default[keys[i]] = values[i];
9809
+ },
9810
+ init: () => document.documentElement.setAttribute("data-engine", "zikojs")
9811
+ };
9833
9812
 
9834
9813
  class ZikoSeo {
9835
9814
  constructor(app) {
@@ -9888,7 +9867,7 @@
9888
9867
  theme: null,
9889
9868
  isRoot: true
9890
9869
  });
9891
- this.render();
9870
+ this.render(globalThis.__ZikoConfig__.default.render);
9892
9871
  }
9893
9872
  #init() {
9894
9873
  this.root.setAttribute("data-engine", "zikojs");
@@ -9926,7 +9905,7 @@
9926
9905
  };
9927
9906
  globalThis.__Ziko__ = Ziko;
9928
9907
  globalThis.__UI__ = __UI__;
9929
- globalThis.__Target__ = __Target__;
9908
+ globalThis.__ZikoConfig__ = __ZikoConfig__;
9930
9909
  function ExtractAll() {
9931
9910
  UI$1.ExtractAll();
9932
9911
  Math$1.ExtractAll();
@@ -9992,7 +9971,6 @@
9992
9971
  exports.Time = Time;
9993
9972
  exports.UI = UI$1;
9994
9973
  exports.Utils = Utils;
9995
- exports.ZikoHtml = ZikoHtml;
9996
9974
  exports.ZikoUIArticle = ZikoUIArticle;
9997
9975
  exports.ZikoUIAside = ZikoUIAside;
9998
9976
  exports.ZikoUIAudio = ZikoUIAudio;
@@ -10012,6 +9990,7 @@
10012
9990
  exports.ZikoUISection = ZikoUISection;
10013
9991
  exports.ZikoUISvg = ZikoUISvg;
10014
9992
  exports.ZikoUIVideo = ZikoUIVideo;
9993
+ exports.__ZikoConfig__ = __ZikoConfig__;
10015
9994
  exports.__init__ = __init__;
10016
9995
  exports.abs = abs;
10017
9996
  exports.accum = accum;
@@ -10071,6 +10050,7 @@
10071
10050
  exports.h6 = h6;
10072
10051
  exports.hr = hr;
10073
10052
  exports.hrs = hrs;
10053
+ exports.html = html;
10074
10054
  exports.hypot = hypot;
10075
10055
  exports.image = image;
10076
10056
  exports.inRange = inRange;