ziko 0.34.2 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/ziko.cjs +162 -162
  2. package/dist/ziko.js +162 -162
  3. package/dist/ziko.min.js +2 -2
  4. package/dist/ziko.mjs +162 -162
  5. package/package.json +3 -3
  6. package/src/index.js +2 -2
  7. package/src/reactivity/hooks/{UI → ui}/index.js +2 -2
  8. package/src/ui/{elements/ZikoUIElement.js → constructors/ziko-ui-element.js} +1 -1
  9. package/src/ui/constructors/ziko-ui-node.js +5 -0
  10. package/src/ui/elements/flex/index.js +1 -1
  11. package/src/ui/elements/grid/index.js +1 -1
  12. package/src/ui/elements/io/Inputs/__helpers__.js +1 -1
  13. package/src/ui/elements/io/Inputs/input/index.js +1 -1
  14. package/src/ui/elements/io/Inputs/input-file/input-image.js +1 -1
  15. package/src/ui/elements/io/Select/index.js +1 -1
  16. package/src/ui/elements/io/Textarea/index.js +1 -1
  17. package/src/ui/elements/list/index.js +1 -1
  18. package/src/ui/elements/media/Image/figure.js +1 -1
  19. package/src/ui/elements/media/Image/image.js +1 -1
  20. package/src/ui/elements/media/__ZikoUIDynamicMediaELement__.js +1 -1
  21. package/src/ui/elements/misc/hyperscript.js +1 -1
  22. package/src/ui/elements/misc/index.js +1 -1
  23. package/src/ui/elements/misc/suspense.js +1 -1
  24. package/src/ui/elements/misc/xml-wrapper.js +1 -1
  25. package/src/ui/elements/semantic/index.js +1 -1
  26. package/src/ui/elements/table/elements.js +1 -1
  27. package/src/ui/elements/table/table.js +1 -1
  28. package/src/ui/elements/text/__ZikoUIText__.js +1 -1
  29. package/src/ui/elements/text/heading.js +1 -1
  30. package/src/ui/index.js +1 -1
  31. package/src/ui/tags/index.js +1 -1
  32. package/src/ui/utils/index.js +1 -1
  33. package/src/watch/dom-observer/ziko-observer.js +15 -0
  34. /package/src/reactivity/hooks/{UI → ui}/useCssLink.js +0 -0
  35. /package/src/reactivity/hooks/{UI → ui}/useLinearGradient.js +0 -0
  36. /package/src/reactivity/hooks/{UI → ui}/useMediaQuery.js +0 -0
  37. /package/src/reactivity/hooks/{UI → ui}/useRadialGradient.js +0 -0
  38. /package/src/reactivity/hooks/{UI → ui}/useRoot.js +0 -0
  39. /package/src/reactivity/hooks/{UI → ui}/useStyle.js +0 -0
  40. /package/src/reactivity/hooks/{UI → ui}/useTheme.js +0 -0
package/dist/ziko.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  /*
3
3
  Project: ziko.js
4
4
  Author: Zakaria Elalaoui
5
- Date : Mon Aug 04 2025 13:51:44 GMT+0100 (UTC+01:00)
5
+ Date : Thu Aug 07 2025 10:35:46 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
@@ -7664,167 +7664,6 @@ const Graphics = {
7664
7664
  ...CANVAS
7665
7665
  };
7666
7666
 
7667
- class ZikoUseChannel{
7668
- constructor(name = ""){
7669
- this.channel = new BroadcastChannel(name);
7670
- this.EVENTS_DATAS_PAIRS = new Map();
7671
- this.EVENTS_HANDLERS_PAIRS = new Map();
7672
- this.LAST_RECEIVED_EVENT = "";
7673
- this.UUID="ziko-channel"+Random.string(10);
7674
- this.SUBSCRIBERS = new Set([this.UUID]);
7675
- }
7676
- get broadcast(){
7677
- // update receiver
7678
- return this;
7679
- }
7680
- emit(event, data){
7681
- this.EVENTS_DATAS_PAIRS.set(event,data);
7682
- this.#maintainEmit(event);
7683
- return this;
7684
- }
7685
- on(event,handler=console.log){
7686
- this.EVENTS_HANDLERS_PAIRS.set(event,handler);
7687
- this.#maintainOn();
7688
- return this;
7689
- }
7690
- #maintainOn(){
7691
- this.channel.onmessage = (e) => {
7692
- this.LAST_RECEIVED_EVENT=e.data.last_sended_event;
7693
- const USER_ID=e.data.userId;
7694
- this.SUBSCRIBERS.add(USER_ID);
7695
- const Data=e.data.EVENTS_DATAS_PAIRS.get(this.LAST_RECEIVED_EVENT);
7696
- const Handler=this.EVENTS_HANDLERS_PAIRS.get(this.LAST_RECEIVED_EVENT);
7697
- if(Data && Handler)Handler(Data);
7698
- };
7699
- return this;
7700
- }
7701
- #maintainEmit(event){
7702
- this.channel.postMessage({
7703
- EVENTS_DATAS_PAIRS:this.EVENTS_DATAS_PAIRS,
7704
- last_sended_event:event,
7705
- userId:this.UUID
7706
- });
7707
- return this;
7708
- }
7709
- close(){
7710
- this.channel.close();
7711
- return this;
7712
- }
7713
- }
7714
- const useChannel = name => new ZikoUseChannel(name);
7715
-
7716
- // To do : remove old items
7717
- class ZikoUseStorage{
7718
- constructor(storage, globalKey, initialValue){
7719
- this.cache={
7720
- storage,
7721
- globalKey,
7722
- channel:useChannel(`Ziko:useStorage-${globalKey}`),
7723
- oldItemKeys:new Set()
7724
- };
7725
- this.#init(initialValue);
7726
- this.#maintain();
7727
- }
7728
- get items(){
7729
- return JSON.parse(this.cache.storage[this.cache.globalKey]??null);
7730
- }
7731
- #maintain() {
7732
- for(let i in this.items)Object.assign(this, { [[i]]: this.items[i] });
7733
- }
7734
- #init(initialValue){
7735
- this.cache.channel=useChannel(`Ziko:useStorage-${this.cache.globalKey}`);
7736
- this.cache.channel.on("Ziko-Storage-Updated",()=>this.#maintain());
7737
- if(!initialValue)return;
7738
- if(this.cache.storage[this.cache.globalKey]){
7739
- Object.keys(this.items).forEach(key=>this.cache.oldItemKeys.add(key));
7740
- console.group("Ziko:useStorage");
7741
- console.warn(`Storage key '${this.cache.globalKey}' already exists. we will not overwrite it.`);
7742
- console.info(`%cWe'll keep the existing data.`,"background-color:#2222dd; color:gold;");
7743
- console.group("");
7744
- }
7745
- else this.set(initialValue);
7746
- }
7747
- set(data){
7748
- this.cache.storage.setItem(this.cache.globalKey,JSON.stringify(data));
7749
- this.cache.channel.emit("Ziko-Storage-Updated",{});
7750
- Object.keys(data).forEach(key=>this.cache.oldItemKeys.add(key));
7751
- this.#maintain();
7752
- return this
7753
- }
7754
- add(data){
7755
- const db={
7756
- ...this.items,
7757
- ...data
7758
- };
7759
- this.cache.storage.setItem(this.cache.globalKey,JSON.stringify(db));
7760
- this.#maintain();
7761
- return this;
7762
- }
7763
- remove(...keys){
7764
- const db={...this.items};
7765
- for(let i=0;i<keys.length;i++){
7766
- delete db[keys[i]];
7767
- delete this[keys[i]];
7768
- }
7769
- this.set(db);
7770
- return this;
7771
- }
7772
- get(key){
7773
- return this.items[key];
7774
- }
7775
- clear(){
7776
- this.cache.storage.removeItem(this.cache.globalKey);
7777
- this.#maintain();
7778
- return this;
7779
- }
7780
-
7781
- }
7782
- const useLocaleStorage=(key,initialValue)=>new ZikoUseStorage(localStorage,key,initialValue);
7783
- const useSessionStorage=(key,initialValue)=>new ZikoUseStorage(sessionStorage,key,initialValue);
7784
-
7785
- class ZikoUseThreed {
7786
- #workerContent;
7787
- constructor() {
7788
- this.#workerContent = (
7789
- function (msg) {
7790
- try {
7791
- const func = new Function("return " + msg.data.fun)();
7792
- let result = func();
7793
- postMessage({ result });
7794
- } catch (error) {
7795
- postMessage({ error: error.message });
7796
- } finally {
7797
- if (msg.data.close) self.close();
7798
- }
7799
- }
7800
- ).toString();
7801
- this.blob = new Blob(["this.onmessage = " + this.#workerContent], { type: "text/javascript" });
7802
- this.worker = new Worker(window.URL.createObjectURL(this.blob));
7803
- }
7804
- call(func, callback, close = true) {
7805
- this.worker.postMessage({
7806
- fun: func.toString(),
7807
- close
7808
- });
7809
- this.worker.onmessage = function (e) {
7810
- if (e.data.error) {
7811
- console.error(e.data.error);
7812
- } else {
7813
- callback(e.data.result);
7814
- }
7815
- };
7816
- return this;
7817
- }
7818
- }
7819
-
7820
- const useThread = (func, callback , close) => {
7821
- const T = new ZikoUseThreed();
7822
- if (func) {
7823
- T.call(func, callback , close);
7824
- }
7825
- return T;
7826
- };
7827
-
7828
7667
  class ZikoUseFavIcon{
7829
7668
  constructor(FavIcon,useEventEmitter=true){
7830
7669
  this.#init();
@@ -8265,6 +8104,167 @@ const App={
8265
8104
  // ...Params
8266
8105
  };
8267
8106
 
8107
+ class ZikoUseChannel{
8108
+ constructor(name = ""){
8109
+ this.channel = new BroadcastChannel(name);
8110
+ this.EVENTS_DATAS_PAIRS = new Map();
8111
+ this.EVENTS_HANDLERS_PAIRS = new Map();
8112
+ this.LAST_RECEIVED_EVENT = "";
8113
+ this.UUID="ziko-channel"+Random.string(10);
8114
+ this.SUBSCRIBERS = new Set([this.UUID]);
8115
+ }
8116
+ get broadcast(){
8117
+ // update receiver
8118
+ return this;
8119
+ }
8120
+ emit(event, data){
8121
+ this.EVENTS_DATAS_PAIRS.set(event,data);
8122
+ this.#maintainEmit(event);
8123
+ return this;
8124
+ }
8125
+ on(event,handler=console.log){
8126
+ this.EVENTS_HANDLERS_PAIRS.set(event,handler);
8127
+ this.#maintainOn();
8128
+ return this;
8129
+ }
8130
+ #maintainOn(){
8131
+ this.channel.onmessage = (e) => {
8132
+ this.LAST_RECEIVED_EVENT=e.data.last_sended_event;
8133
+ const USER_ID=e.data.userId;
8134
+ this.SUBSCRIBERS.add(USER_ID);
8135
+ const Data=e.data.EVENTS_DATAS_PAIRS.get(this.LAST_RECEIVED_EVENT);
8136
+ const Handler=this.EVENTS_HANDLERS_PAIRS.get(this.LAST_RECEIVED_EVENT);
8137
+ if(Data && Handler)Handler(Data);
8138
+ };
8139
+ return this;
8140
+ }
8141
+ #maintainEmit(event){
8142
+ this.channel.postMessage({
8143
+ EVENTS_DATAS_PAIRS:this.EVENTS_DATAS_PAIRS,
8144
+ last_sended_event:event,
8145
+ userId:this.UUID
8146
+ });
8147
+ return this;
8148
+ }
8149
+ close(){
8150
+ this.channel.close();
8151
+ return this;
8152
+ }
8153
+ }
8154
+ const useChannel = name => new ZikoUseChannel(name);
8155
+
8156
+ // To do : remove old items
8157
+ class ZikoUseStorage{
8158
+ constructor(storage, globalKey, initialValue){
8159
+ this.cache={
8160
+ storage,
8161
+ globalKey,
8162
+ channel:useChannel(`Ziko:useStorage-${globalKey}`),
8163
+ oldItemKeys:new Set()
8164
+ };
8165
+ this.#init(initialValue);
8166
+ this.#maintain();
8167
+ }
8168
+ get items(){
8169
+ return JSON.parse(this.cache.storage[this.cache.globalKey]??null);
8170
+ }
8171
+ #maintain() {
8172
+ for(let i in this.items)Object.assign(this, { [[i]]: this.items[i] });
8173
+ }
8174
+ #init(initialValue){
8175
+ this.cache.channel=useChannel(`Ziko:useStorage-${this.cache.globalKey}`);
8176
+ this.cache.channel.on("Ziko-Storage-Updated",()=>this.#maintain());
8177
+ if(!initialValue)return;
8178
+ if(this.cache.storage[this.cache.globalKey]){
8179
+ Object.keys(this.items).forEach(key=>this.cache.oldItemKeys.add(key));
8180
+ console.group("Ziko:useStorage");
8181
+ console.warn(`Storage key '${this.cache.globalKey}' already exists. we will not overwrite it.`);
8182
+ console.info(`%cWe'll keep the existing data.`,"background-color:#2222dd; color:gold;");
8183
+ console.group("");
8184
+ }
8185
+ else this.set(initialValue);
8186
+ }
8187
+ set(data){
8188
+ this.cache.storage.setItem(this.cache.globalKey,JSON.stringify(data));
8189
+ this.cache.channel.emit("Ziko-Storage-Updated",{});
8190
+ Object.keys(data).forEach(key=>this.cache.oldItemKeys.add(key));
8191
+ this.#maintain();
8192
+ return this
8193
+ }
8194
+ add(data){
8195
+ const db={
8196
+ ...this.items,
8197
+ ...data
8198
+ };
8199
+ this.cache.storage.setItem(this.cache.globalKey,JSON.stringify(db));
8200
+ this.#maintain();
8201
+ return this;
8202
+ }
8203
+ remove(...keys){
8204
+ const db={...this.items};
8205
+ for(let i=0;i<keys.length;i++){
8206
+ delete db[keys[i]];
8207
+ delete this[keys[i]];
8208
+ }
8209
+ this.set(db);
8210
+ return this;
8211
+ }
8212
+ get(key){
8213
+ return this.items[key];
8214
+ }
8215
+ clear(){
8216
+ this.cache.storage.removeItem(this.cache.globalKey);
8217
+ this.#maintain();
8218
+ return this;
8219
+ }
8220
+
8221
+ }
8222
+ const useLocaleStorage=(key,initialValue)=>new ZikoUseStorage(localStorage,key,initialValue);
8223
+ const useSessionStorage=(key,initialValue)=>new ZikoUseStorage(sessionStorage,key,initialValue);
8224
+
8225
+ class ZikoUseThreed {
8226
+ #workerContent;
8227
+ constructor() {
8228
+ this.#workerContent = (
8229
+ function (msg) {
8230
+ try {
8231
+ const func = new Function("return " + msg.data.fun)();
8232
+ let result = func();
8233
+ postMessage({ result });
8234
+ } catch (error) {
8235
+ postMessage({ error: error.message });
8236
+ } finally {
8237
+ if (msg.data.close) self.close();
8238
+ }
8239
+ }
8240
+ ).toString();
8241
+ this.blob = new Blob(["this.onmessage = " + this.#workerContent], { type: "text/javascript" });
8242
+ this.worker = new Worker(window.URL.createObjectURL(this.blob));
8243
+ }
8244
+ call(func, callback, close = true) {
8245
+ this.worker.postMessage({
8246
+ fun: func.toString(),
8247
+ close
8248
+ });
8249
+ this.worker.onmessage = function (e) {
8250
+ if (e.data.error) {
8251
+ console.error(e.data.error);
8252
+ } else {
8253
+ callback(e.data.result);
8254
+ }
8255
+ };
8256
+ return this;
8257
+ }
8258
+ }
8259
+
8260
+ const useThread = (func, callback , close) => {
8261
+ const T = new ZikoUseThreed();
8262
+ if (func) {
8263
+ T.call(func, callback , close);
8264
+ }
8265
+ return T;
8266
+ };
8267
+
8268
8268
  [
8269
8269
  App,
8270
8270
  Math$1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ziko",
3
- "version": "0.34.2",
3
+ "version": "0.35.0",
4
4
  "description": "a versatile javaScript framework offering a rich set of UI components, advanced mathematical utilities, reactivity, animations, client side routing and graphics capabilities",
5
5
  "keywords": [
6
6
  "front-end",
@@ -34,8 +34,8 @@
34
34
  "./events": {
35
35
  "import": "./src/events/index.js"
36
36
  },
37
- "./observer": {
38
- "import": "./src/observer/index.js"
37
+ "./watch": {
38
+ "import": "./src/watch/index.js"
39
39
  },
40
40
  "./use": {
41
41
  "import": "./src/use/index.js"
package/src/index.js CHANGED
@@ -6,8 +6,8 @@ import Data from "./data/index.js";
6
6
  import Reactivity from "./reactivity/index.js";
7
7
  import Graphics from "./graphics/index.js";
8
8
 
9
- import * as Events from "./events/index.js"
10
- import * as Use from "./use/index.js"
9
+ // import * as Events from "./events/index.js"
10
+ // import * as Use from "./use/index.js"
11
11
 
12
12
  import App,{__UI__,__HYDRATION_MAP__, __Config__, __CACHE__, defineParamsGetter, __HYDRATION__} from "./app";
13
13
 
@@ -1,6 +1,6 @@
1
- export * from "./useStyle";
1
+ export * from "./useStyle.js";
2
2
  // export * from "./useTheme";
3
3
  // export * from "../Head/useTitle";
4
4
  // export * from "../Head/useFavIcon";
5
- export * from "./useMediaQuery"
5
+ export * from "./useMediaQuery.js"
6
6
  export * from "./useRoot.js"
@@ -2,7 +2,7 @@ import { compose } from "../../__helpers__/index.js";
2
2
  import { DomMethods } from "../methods/dom.js";
3
3
  import { IndexingMethods } from "../methods/indexing.js";
4
4
  import { EventsMethodes } from "../methods/events.js";
5
- import { ZikoUseStyle } from "../../reactivity/hooks/UI/useStyle.js";
5
+ import { ZikoUseStyle } from "../../reactivity/hooks/ui/useStyle.js";
6
6
  import { ZikoUIElementStyle } from "../style/index.js";
7
7
  import {
8
8
  useCustomEvent,
@@ -0,0 +1,5 @@
1
+ class ZikoUINode {
2
+ constructor(){
3
+
4
+ }
5
+ }
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement.js";
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js";
2
2
  class ZikoUIFlex extends ZikoUIElement {
3
3
  constructor(tag = "div", w = "100%", h = "100%") {
4
4
  super(tag ,"Flex");
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement.js"
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js"
2
2
  class ZikoUIGrid extends ZikoUIElement {
3
3
  constructor(tag ="div", w = "50vw", h = "50vh") {
4
4
  super(tag,"Grid");
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../../ZikoUIElement.js";
1
+ import ZikoUIElement from "../../../constructors/ziko-ui-element.js";
2
2
  import { Random } from "../../../../math/index.js";
3
3
  class ZikoUILabel extends ZikoUIElement{
4
4
  constructor(){
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../../../ZikoUIElement.js";
1
+ import ZikoUIElement from "../../../../constructors/ziko-ui-element.js";
2
2
  import { useInputEvent } from "../../../../../reactivity/index.js";
3
3
  class ZikoUIInput extends ZikoUIElement {
4
4
  constructor(type, name , value = "", datalist) {
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../../../ZikoUIElement";
1
+ import ZikoUIElement from "../../../../constructors/ziko-ui-element.js";
2
2
  import { btn } from "../../../misc";
3
3
  class ZikoUIInputImage extends ZikoUIElement {
4
4
  constructor(text = "File") {
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../../ZikoUIElement";
1
+ import ZikoUIElement from "../../../constructors/ziko-ui-element.js";
2
2
  import { ZikoUIInputOption } from "../Inputs/__helpers__";
3
3
  class ZikoUISelect extends ZikoUIElement {
4
4
  constructor(){
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../../ZikoUIElement";
1
+ import ZikoUIElement from "../../../constructors/ziko-ui-element.js";
2
2
  class ZikoUITextArea extends ZikoUIElement {
3
3
  constructor() {
4
4
  super();
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement.js";
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js";
2
2
  import {text} from "../text/index.js";
3
3
  class ZikoUILI extends ZikoUIElement{
4
4
  constructor(UI){
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../../ZikoUIElement";
1
+ import ZikoUIElement from "../../../constructors/ziko-ui-element.js";
2
2
  class ZikoUIFigure extends ZikoUIElement{
3
3
  constructor(src,caption){
4
4
  super("figure","figure")
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../../ZikoUIElement.js";
1
+ import ZikoUIElement from "../../../constructors/ziko-ui-element.js";
2
2
  class ZikoUIImage extends ZikoUIElement {
3
3
  constructor(src,alt, w, h) {
4
4
  super("img","image");
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement.js";
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js";
2
2
  class __ZikoUIDynamicMediaElement__ extends ZikoUIElement {
3
3
  constructor(element, name) {
4
4
  super(element, name);
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from '../ZikoUIElement.js';
1
+ import ZikoUIElement from '../../constructors/ziko-ui-element.js';
2
2
  const _h=(tag, type, attributes, ...children)=>{
3
3
  const { name, style, ...attrs } = attributes;
4
4
  let element = new ZikoUIElement(tag, name, type);
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement.js";
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js";
2
2
  class ZikoUIHtmlTag extends ZikoUIElement {
3
3
  constructor(element) {
4
4
  super(element,"html");
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement.js";
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js";
2
2
  // function loadComponent() {
3
3
  // return new Promise((resolve) => {
4
4
  // setTimeout(() => {
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement";
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js";
2
2
  class ZikoUIXMLWrapper extends ZikoUIElement{
3
3
  constructor(XMLContent, type){
4
4
  super("div", "")
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement.js";
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js";
2
2
  const elements = ['Main', 'Header', 'Nav', 'Section', 'Article', 'Aside', 'Footer']
3
3
 
4
4
  // Storage for Classes and component functions
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement.js"
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js"
2
2
  import { text } from "../text/text.js";
3
3
  class ZikoUITh extends ZikoUIElement{
4
4
  constructor(...ZikoUIElement){
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement.js"
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js"
2
2
  import { tbody,caption,ZikoUICaption,thead} from "./elements.js";
3
3
  import { matrix } from "../../../math/matrix/index.js";
4
4
  import { MatrixToTableUI } from "./utils.js";
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement.js";
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js";
2
2
  import {
3
3
  ZikoUISubText,
4
4
  ZikoUISupText
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../ZikoUIElement.js";
1
+ import ZikoUIElement from "../../constructors/ziko-ui-element.js";
2
2
  class ZikoUIHeading extends ZikoUIElement {
3
3
  constructor(type = 1, value = "") {
4
4
  super(`h${type}`,`h${type}`);
package/src/ui/index.js CHANGED
@@ -20,7 +20,7 @@ import * as Flex from "./elements/flex/index.js";
20
20
  import * as Grid from "./elements/grid/index.js";
21
21
 
22
22
 
23
- import ZikoUIElement from "./elements/ZikoUIElement.js";
23
+ import ZikoUIElement from "./constructors/ziko-ui-element.js";
24
24
 
25
25
  export{
26
26
  ZikoUIElement
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../elements/ZikoUIElement.js";
1
+ import ZikoUIElement from "../constructors/ziko-ui-element.js";
2
2
  import { HTMLTags, SVGTags } from "./tags.js";
3
3
  const _h=(tag, type, attributes, ...children)=>{
4
4
  const { name, style, ...attrs } = attributes;
@@ -1,4 +1,4 @@
1
- import ZikoUIElement from "../elements/ZikoUIElement.js";
1
+ import ZikoUIElement from "../constructors/ziko-ui-element.js";
2
2
  const Id = (a) => document.getElementById(a);
3
3
  const Class = (a) => [...document.getElementsByClassName(a)];
4
4
  const $=(...selector)=>{
@@ -0,0 +1,15 @@
1
+ class ZikoDomObserver{
2
+ constructor(UIElement, options = {}){
3
+ this.cache = {
4
+ target : UIElement,
5
+ options : options,
6
+ observer : null
7
+ }
8
+ }
9
+ disconnect(){
10
+
11
+ }
12
+ stream(){
13
+
14
+ }
15
+ }
File without changes
File without changes
File without changes
File without changes