ziko 0.0.7 → 0.0.8
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 +15 -15
- package/dist/ziko.js +15 -15
- package/dist/ziko.min.js +2 -2
- package/dist/ziko.mjs +15 -15
- package/package.json +1 -1
- package/wrapper/react/README.md +0 -26
- package/wrapper/react/index.jsx +0 -22
- package/wrapper/svelte/ZikoUI.svelte +0 -15
- package/wrapper/vue/ZikoUI.vue +0 -23
package/dist/ziko.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*
|
|
3
3
|
Project: ziko.js
|
|
4
4
|
Author: Zakaria Elalaoui
|
|
5
|
-
Date : Mon May 20 2024
|
|
5
|
+
Date : Mon May 20 2024 20:27:08 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
|
|
@@ -7186,8 +7186,8 @@ class ZikoUITextArea extends ZikoUIElement {
|
|
|
7186
7186
|
//import { debounce,throttle} from "../../Data/decorators.js";
|
|
7187
7187
|
|
|
7188
7188
|
class ZikoUIInput extends ZikoUIElement {
|
|
7189
|
-
constructor(value = "",datalist) {
|
|
7190
|
-
super();
|
|
7189
|
+
constructor(name , value = "",datalist) {
|
|
7190
|
+
super("input",name);
|
|
7191
7191
|
this.element = document.createElement("input");
|
|
7192
7192
|
Object.assign(this.events,{input:null});
|
|
7193
7193
|
this.setValue(value);
|
|
@@ -7262,7 +7262,7 @@ class ZikoUIInput extends ZikoUIElement {
|
|
|
7262
7262
|
}
|
|
7263
7263
|
class ZikoUIInputSearch extends ZikoUIInput {
|
|
7264
7264
|
constructor() {
|
|
7265
|
-
super();
|
|
7265
|
+
super("inputSearch");
|
|
7266
7266
|
this._setType("search");
|
|
7267
7267
|
this.Length = 0;
|
|
7268
7268
|
}
|
|
@@ -7299,7 +7299,7 @@ class ZikoUIInputSearch extends ZikoUIInput {
|
|
|
7299
7299
|
}
|
|
7300
7300
|
class ZikoUIInputNumber extends ZikoUIInput {
|
|
7301
7301
|
constructor(min, max ,step = 1) {
|
|
7302
|
-
super();
|
|
7302
|
+
super("inpuNumber");
|
|
7303
7303
|
this._setType("number");
|
|
7304
7304
|
this.setMin(min).setMax(max).setStep(step);
|
|
7305
7305
|
}
|
|
@@ -7321,14 +7321,14 @@ class ZikoUIInputNumber extends ZikoUIInput {
|
|
|
7321
7321
|
}
|
|
7322
7322
|
class ZikoUIInputSlider extends ZikoUIInputNumber {
|
|
7323
7323
|
constructor(val = 0, min = 0, max = 10, step = 1) {
|
|
7324
|
-
super();
|
|
7324
|
+
super("inputSlider");
|
|
7325
7325
|
this._setType("range");
|
|
7326
7326
|
this.setMin(min).setMax(max).setValue(val).setStep(step);
|
|
7327
7327
|
}
|
|
7328
7328
|
}
|
|
7329
7329
|
class ZikoUIInputColor extends ZikoUIInput {
|
|
7330
7330
|
constructor() {
|
|
7331
|
-
super();
|
|
7331
|
+
super("inputColor");
|
|
7332
7332
|
this._setType("color");
|
|
7333
7333
|
this.background(this.value);
|
|
7334
7334
|
this.onInput(() => this.background(this.value));
|
|
@@ -7336,37 +7336,37 @@ class ZikoUIInputColor extends ZikoUIInput {
|
|
|
7336
7336
|
}
|
|
7337
7337
|
class ZikoUIInputPassword extends ZikoUIInput {
|
|
7338
7338
|
constructor() {
|
|
7339
|
-
super();
|
|
7339
|
+
super("inputPassword");
|
|
7340
7340
|
this._setType("password");
|
|
7341
7341
|
}
|
|
7342
7342
|
}
|
|
7343
7343
|
class ZikoUIInputEmail extends ZikoUIInput {
|
|
7344
7344
|
constructor() {
|
|
7345
|
-
super();
|
|
7345
|
+
super("inputEmail");
|
|
7346
7346
|
this._setType("email");
|
|
7347
7347
|
}
|
|
7348
7348
|
}
|
|
7349
7349
|
class ZikoUIInputTime extends ZikoUIInput {
|
|
7350
7350
|
constructor() {
|
|
7351
|
-
super();
|
|
7351
|
+
super("inputTime");
|
|
7352
7352
|
this._setType("time");
|
|
7353
7353
|
}
|
|
7354
7354
|
}
|
|
7355
7355
|
class ZikoUIInputDate extends ZikoUIInput {
|
|
7356
7356
|
constructor() {
|
|
7357
|
-
super();
|
|
7357
|
+
super("inputDate");
|
|
7358
7358
|
this._setType("date");
|
|
7359
7359
|
}
|
|
7360
7360
|
}
|
|
7361
7361
|
class ZikoUIInputDateTime extends ZikoUIInput {
|
|
7362
7362
|
constructor() {
|
|
7363
|
-
super();
|
|
7363
|
+
super("inputDateTime");
|
|
7364
7364
|
this._setType("datetime-local");
|
|
7365
7365
|
}
|
|
7366
7366
|
}
|
|
7367
7367
|
class ZikoUIInputCheckbox extends ZikoUIInput {
|
|
7368
7368
|
constructor() {
|
|
7369
|
-
super();
|
|
7369
|
+
super("inputCheckbox");
|
|
7370
7370
|
this._setType("checkbox");
|
|
7371
7371
|
this.cursor("pointer");
|
|
7372
7372
|
}
|
|
@@ -7384,7 +7384,7 @@ class ZikoUIInputCheckbox extends ZikoUIInput {
|
|
|
7384
7384
|
}
|
|
7385
7385
|
class ZikoUIInputRadio extends ZikoUIInput {
|
|
7386
7386
|
constructor() {
|
|
7387
|
-
super();
|
|
7387
|
+
super("inputRadio");
|
|
7388
7388
|
this._setType("radio");
|
|
7389
7389
|
this.cursor("pointer");
|
|
7390
7390
|
}
|
|
@@ -7404,7 +7404,7 @@ class ZikoUIInputRadio extends ZikoUIInput {
|
|
|
7404
7404
|
|
|
7405
7405
|
class ZikoUIInputImage extends ZikoUIElement {
|
|
7406
7406
|
constructor(text = "File") {
|
|
7407
|
-
super();
|
|
7407
|
+
super("inputImage");
|
|
7408
7408
|
this._aux_element = btn(text).setTarget(this.Target);
|
|
7409
7409
|
this.element = document.createElement("input");
|
|
7410
7410
|
this.element.setAttribute("type", "file");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ziko",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "a versatile JavaScript library offering a rich set of UI components, advanced mathematical utilities,Reactivity,animations,client side routing and graphics capabilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Zikojs",
|
package/wrapper/react/README.md
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Overview
|
|
2
|
-
react-ziko is a tool designed for rendering [ziko](https://github.com/zakarialaoui10/ziko.js) elements within a React application.
|
|
3
|
-
|
|
4
|
-
# Install
|
|
5
|
-
```bash
|
|
6
|
-
npm i react-ziko
|
|
7
|
-
```
|
|
8
|
-
# Usage
|
|
9
|
-
```jsx
|
|
10
|
-
import ZikoUI from "react-ziko";
|
|
11
|
-
import { text } from "ziko";
|
|
12
|
-
const ui = text("Hello World").style({
|
|
13
|
-
color:"darkblue"
|
|
14
|
-
});
|
|
15
|
-
export default function App() {
|
|
16
|
-
return (
|
|
17
|
-
<main>
|
|
18
|
-
<ZikoUI ui={ui.render(false)} />
|
|
19
|
-
</main>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
# Dependencies
|
|
25
|
-
- [React](https://react.dev/) :
|
|
26
|
-
- [Zikojs](https://github.com/zakarialaoui10/ziko.js) :
|
package/wrapper/react/index.jsx
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { useRef, useEffect } from "react";
|
|
2
|
-
import {ZikoUIElement} from "ziko";
|
|
3
|
-
/**
|
|
4
|
-
* A React component for rendering ZikoUIElement.
|
|
5
|
-
* @param {Object} props - Component props.
|
|
6
|
-
* @param {ZikoUIElement} props.ui - The ZikoUIElement to render.
|
|
7
|
-
* @returns {JSX.Element} JSX representation of the ZikoUI component.
|
|
8
|
-
*/
|
|
9
|
-
function ZikoUI({ ui }) {
|
|
10
|
-
const containerRef = useRef(null);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
globalThis.__Ziko__.__Config__.setDefault({render:false})
|
|
13
|
-
if (containerRef.current && ui && ui instanceof ZikoUIElement) {
|
|
14
|
-
containerRef.current.innerHTML = "";
|
|
15
|
-
containerRef.current.appendChild(ui.element);
|
|
16
|
-
}
|
|
17
|
-
}, [ui]);
|
|
18
|
-
return (
|
|
19
|
-
<ziko-ui ref={containerRef} data-engine="ziko"></ziko-ui>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
export default ZikoUI;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<ziko-ui bind:this={containerRef} data-engine="ziko"></ziko-ui>
|
|
2
|
-
|
|
3
|
-
<script>
|
|
4
|
-
import { onMount } from 'svelte';
|
|
5
|
-
import {ZikoUIElement} from "ziko";
|
|
6
|
-
let containerRef;
|
|
7
|
-
|
|
8
|
-
onMount(() => {
|
|
9
|
-
if (containerRef && ui instanceof ZikoUIElement) {
|
|
10
|
-
containerRef.innerHTML = "";
|
|
11
|
-
containerRef.appendChild(ui.element);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
export let ui;
|
|
15
|
-
</script>
|
package/wrapper/vue/ZikoUI.vue
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ziko-ui ref="containerRef" data-engine="ziko"></ziko-ui>
|
|
3
|
-
</template>
|
|
4
|
-
<script>
|
|
5
|
-
import {ZikoUIElement} from "ziko"
|
|
6
|
-
export default {
|
|
7
|
-
props: {
|
|
8
|
-
ui: Object
|
|
9
|
-
},
|
|
10
|
-
mounted() {
|
|
11
|
-
//globalThis.__Ziko__.__Config__.setDefault({render:false})
|
|
12
|
-
if (this.$refs.containerRef && this.ui instanceof ZikoUIElement) {
|
|
13
|
-
this.$refs.containerRef.innerHTML = "";
|
|
14
|
-
this.$refs.containerRef.appendChild(this.ui.render(false).element);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
</script>
|
|
19
|
-
<style scoped>
|
|
20
|
-
ziko-ui{
|
|
21
|
-
display:block;
|
|
22
|
-
}
|
|
23
|
-
</style>
|