ziko 0.49.7 → 0.50.1
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 +123 -156
- package/dist/ziko.js +519 -848
- package/dist/ziko.min.js +2 -2
- package/dist/ziko.mjs +514 -833
- package/package.json +4 -1
- package/src/{reactivity → --reactivity-deprecated}/hooks/index.js +3 -3
- package/src/{reactivity → --reactivity-deprecated}/index.js +1 -1
- package/src/__ziko__/__state__.js +1 -1
- package/src/app/ziko-app.js +6 -6
- package/src/events/binders/custom-event.js +11 -7
- package/src/events/binders/index.js +69 -13
- package/src/events/details-setter/index.js +2 -0
- package/src/events/details-setter/key.js +14 -0
- package/src/events/{binders → details-setter}/pointer.js +1 -15
- package/src/events/{__Events__.js → events-map/index.js} +7 -3
- package/src/events/index.js +1 -1
- package/src/events/types/__Shared__.d.ts +3 -3
- package/src/events/types/clipboard.d.ts +2 -2
- package/src/events/types/focus.d.ts +2 -2
- package/src/events/types/pointer.d.ts +2 -2
- package/src/events/{__ZikoEvent__.js → ziko-event.js} +17 -16
- package/src/hooks/index.js +1 -1
- package/src/hooks/{use-channel.js → use-ipc.js} +3 -3
- package/src/hooks/use-storage.js +2 -2
- package/src/index.js +1 -1
- package/src/ui/__methods__/events.js +19 -5
- package/src/ui/constructors/UIElement.js +14 -12
- package/src/ui/constructors/UIElementCore.js +3 -136
- package/types/hooks/index.d.ts +1 -1
- package/types/hooks/{use-channel.d.ts → use-ipc.d.ts} +2 -2
- package/src/events/binders/click.js +0 -20
- package/src/events/binders/clipboard.js +0 -16
- package/src/events/binders/drag.js +0 -16
- package/src/events/binders/focus.js +0 -16
- package/src/events/binders/hash.js +0 -16
- package/src/events/binders/key.js +0 -27
- package/src/events/binders/mouse.js +0 -16
- package/src/events/binders/touch.js +0 -16
- package/src/events/binders/wheel.js +0 -16
- package/src/events/index.d.ts.txt +0 -3
- /package/src/{reactivity → --reactivity-deprecated}/events/Input.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/events/ZikoEvent.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/events/__note__ +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/events/custom-event.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/events/hash.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/events/index.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/events/media.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/events/mouse.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/events/swipe.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/events/touch.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/Contexte/index.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/Contexte/useSuccesifKeys.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/UI/index.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/UI/useCssLink.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/UI/useLinearGradient.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/UI/useMediaQuery.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/UI/useRadialGradient.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/UI/useRoot.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/UI/useStyle.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/UI/useTheme.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/head/_useCssText.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/head/index.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/head/useFavIcon.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/head/useHead.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/head/useMeta.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/head/useTitle.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/hooks/todo.md +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/idea +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/observer/attributes.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/observer/children.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/observer/index.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/observer/intersection.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/observer/mutation.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/observer/resize.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/observer/screen.js +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/observer/screen.js.txt +0 -0
- /package/src/{reactivity → --reactivity-deprecated}/observer/screen.txt +0 -0
- /package/src/{use → --use-deprecated}/index.js +0 -0
- /package/src/{use → --use-deprecated}/use-channel.js.txt +0 -0
- /package/src/{use → --use-deprecated}/use-event-emmiter.js.txt +0 -0
- /package/src/{use → --use-deprecated}/use-favicon.js +0 -0
- /package/src/{use → --use-deprecated}/use-link.js +0 -0
- /package/src/{use → --use-deprecated}/use-meta.js +0 -0
- /package/src/{use → --use-deprecated}/use-root.js +0 -0
- /package/src/{use → --use-deprecated}/use-storage.js.txt +0 -0
- /package/src/{use → --use-deprecated}/use-thread.js +0 -0
- /package/src/{use → --use-deprecated}/use-title.js +0 -0
- /package/src/events/{custom-events → custom-events-registry}/click-away.js +0 -0
- /package/src/events/{custom-events → custom-events-registry}/index.js +0 -0
- /package/src/events/{custom-events → custom-events-registry}/swipe.js +0 -0
- /package/src/events/{custom-events → custom-events-registry}/view.js +0 -0
package/types/hooks/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class
|
|
1
|
+
export declare class UseIPC {
|
|
2
2
|
emit(event: string, data: any, rooms?: string[]): this;
|
|
3
3
|
on(event: string, handler: (data: any) => void, rooms?: string | string[]): this;
|
|
4
4
|
off(event: string, handler: (data: any) => void): this;
|
|
@@ -9,4 +9,4 @@ export declare class UseChannel {
|
|
|
9
9
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const useIPC: (name?: string) => UseIPC;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
|
-
import { Events } from "../__Events__.js";
|
|
3
|
-
// import { register_click_away_event } from "./custom-events/click-away.js";
|
|
4
|
-
class ZikoEventClick extends __ZikoEvent__{
|
|
5
|
-
constructor(target, customizer){
|
|
6
|
-
super(target, Events.Click, details_setter, customizer);
|
|
7
|
-
// register_click_away_event(target.element)
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
function details_setter(){
|
|
11
|
-
if(this.currentEvent==="click") this.dx = 0
|
|
12
|
-
else this.dx = 1
|
|
13
|
-
// console.log(this.currentEvent)
|
|
14
|
-
}
|
|
15
|
-
const bind_click_event = (target, customizer) => new ZikoEventClick(target, customizer)
|
|
16
|
-
|
|
17
|
-
export{
|
|
18
|
-
bind_click_event,
|
|
19
|
-
ZikoEventClick
|
|
20
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
|
-
import { Events } from "../__Events__.js";
|
|
3
|
-
class ZikoEventClipboard extends __ZikoEvent__{
|
|
4
|
-
constructor(target, customizer){
|
|
5
|
-
super(target, Events.Clipboard, details_setter, customizer)
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
function details_setter(){
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
const bind_clipboard_event = (target, customizer) => new ZikoEventClipboard(target, customizer)
|
|
12
|
-
|
|
13
|
-
export{
|
|
14
|
-
bind_clipboard_event,
|
|
15
|
-
ZikoEventClipboard
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
|
-
import { Events } from "../__Events__.js";
|
|
3
|
-
class ZikoEventDrag extends __ZikoEvent__{
|
|
4
|
-
constructor(target, customizer){
|
|
5
|
-
super(target, Events.Drag, details_setter, customizer)
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
function details_setter(){
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
const bind_drag_event = (target, customizer) => new ZikoEventDrag(target, customizer)
|
|
12
|
-
|
|
13
|
-
export{
|
|
14
|
-
bind_drag_event,
|
|
15
|
-
ZikoEventDrag
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
|
-
import { Events } from "../__Events__.js";
|
|
3
|
-
class ZikoEventFocus extends __ZikoEvent__{
|
|
4
|
-
constructor(target, customizer){
|
|
5
|
-
super(target, Events.Focus, details_setter, customizer)
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
function details_setter(){
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
const bind_focus_event = (target, customizer) => new ZikoEventFocus(target, customizer)
|
|
12
|
-
|
|
13
|
-
export{
|
|
14
|
-
bind_focus_event,
|
|
15
|
-
ZikoEventFocus
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
|
-
import { Events } from "../__Events__.js";
|
|
3
|
-
class ZikoEventHash extends __ZikoEvent__{
|
|
4
|
-
constructor(target, customizer){
|
|
5
|
-
super(target, Events.Hash, details_setter, customizer)
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
function details_setter(){
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
const bindHashEvent = (target, customizer) => new ZikoEventHash(target, customizer)
|
|
12
|
-
|
|
13
|
-
export{
|
|
14
|
-
bindHashEvent,
|
|
15
|
-
ZikoEventHash
|
|
16
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
|
-
import { Events } from "../__Events__.js";
|
|
3
|
-
class ZikoEventKey extends __ZikoEvent__{
|
|
4
|
-
constructor(target, customizer){
|
|
5
|
-
super(target, Events.Key, details_setter, customizer)
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
function details_setter(){
|
|
9
|
-
switch(this.currentEvent){
|
|
10
|
-
case "keydown" : {
|
|
11
|
-
this.kd = this.event.key
|
|
12
|
-
}; break;
|
|
13
|
-
case "keypress" : {
|
|
14
|
-
this.kp = this.event.key
|
|
15
|
-
}; break;
|
|
16
|
-
case "keyup" : {
|
|
17
|
-
this.ku = this.event.key
|
|
18
|
-
}; break;
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
const bind_key_event = (target, customizer) => new ZikoEventKey(target, customizer)
|
|
23
|
-
|
|
24
|
-
export{
|
|
25
|
-
bind_key_event,
|
|
26
|
-
ZikoEventKey
|
|
27
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
|
-
import { Events } from "../__Events__.js";
|
|
3
|
-
class ZikoEventMouse extends __ZikoEvent__{
|
|
4
|
-
constructor(target, customizer){
|
|
5
|
-
super(target, Events.Mouse, details_setter, customizer)
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
function details_setter(){
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
const bind_mouse_event = (target, customizer) => new ZikoEventMouse(target, customizer)
|
|
12
|
-
|
|
13
|
-
export{
|
|
14
|
-
bind_mouse_event,
|
|
15
|
-
ZikoEventMouse
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
|
-
import { Events } from "../__Events__.js";
|
|
3
|
-
class ZikoEventTouch extends __ZikoEvent__{
|
|
4
|
-
constructor(target, customizer){
|
|
5
|
-
super(target, Events.Touch, details_setter, customizer)
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
function details_setter(){
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
const bindTouchEvent = (target, customizer) => new ZikoEventTouch(target, customizer)
|
|
12
|
-
|
|
13
|
-
export{
|
|
14
|
-
bindTouchEvent,
|
|
15
|
-
ZikoEventTouch
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __ZikoEvent__ } from "../__ZikoEvent__.js";
|
|
2
|
-
import { Events } from "../__Events__.js";
|
|
3
|
-
class ZikoEventWheel extends __ZikoEvent__{
|
|
4
|
-
constructor(target, customizer){
|
|
5
|
-
super(target, Events.Wheel, details_setter, customizer)
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
function details_setter(){
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
const bind_wheel_event = (target, customizer) => new ZikoEventWheel(target, customizer)
|
|
12
|
-
|
|
13
|
-
export{
|
|
14
|
-
bind_wheel_event,
|
|
15
|
-
ZikoEventWheel
|
|
16
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|