@arcanejs/toolkit 1.1.1 → 3.0.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.
- package/dist/backend/components/base.d.mts +10 -79
- package/dist/backend/components/base.d.ts +10 -79
- package/dist/backend/components/base.js +2 -2
- package/dist/backend/components/base.mjs +1 -1
- package/dist/backend/components/button.d.mts +9 -33
- package/dist/backend/components/button.d.ts +9 -33
- package/dist/backend/components/button.js +3 -3
- package/dist/backend/components/button.mjs +2 -2
- package/dist/backend/components/group.d.mts +9 -54
- package/dist/backend/components/group.d.ts +9 -54
- package/dist/backend/components/group.js +3 -3
- package/dist/backend/components/group.mjs +2 -2
- package/dist/backend/components/label.d.mts +6 -2
- package/dist/backend/components/label.d.ts +6 -2
- package/dist/backend/components/label.js +3 -3
- package/dist/backend/components/label.mjs +2 -2
- package/dist/backend/components/rect.d.mts +7 -2
- package/dist/backend/components/rect.d.ts +7 -2
- package/dist/backend/components/rect.js +3 -3
- package/dist/backend/components/rect.mjs +2 -2
- package/dist/backend/components/slider-button.d.mts +8 -3
- package/dist/backend/components/slider-button.d.ts +8 -3
- package/dist/backend/components/slider-button.js +3 -3
- package/dist/backend/components/slider-button.mjs +2 -2
- package/dist/backend/components/switch.d.mts +8 -3
- package/dist/backend/components/switch.d.ts +8 -3
- package/dist/backend/components/switch.js +3 -3
- package/dist/backend/components/switch.mjs +2 -2
- package/dist/backend/components/tabs.d.mts +7 -2
- package/dist/backend/components/tabs.d.ts +7 -2
- package/dist/backend/components/tabs.js +3 -3
- package/dist/backend/components/tabs.mjs +2 -2
- package/dist/backend/components/text-input.d.mts +8 -3
- package/dist/backend/components/text-input.d.ts +8 -3
- package/dist/backend/components/text-input.js +3 -3
- package/dist/backend/components/text-input.mjs +2 -2
- package/dist/backend/components/timeline.d.mts +7 -2
- package/dist/backend/components/timeline.d.ts +7 -2
- package/dist/backend/components/timeline.js +3 -3
- package/dist/backend/components/timeline.mjs +2 -2
- package/dist/{chunk-HNFNG5MD.js → chunk-4OZ22IQU.js} +5 -5
- package/dist/{chunk-5TGGF5UJ.mjs → chunk-5D7OSUZ6.mjs} +3 -3
- package/dist/{chunk-T4TMVBFM.js → chunk-6CWEURJP.js} +2 -2
- package/dist/{chunk-5JPYL5IU.js → chunk-7OX2FB6C.js} +2 -2
- package/dist/{chunk-PXYXUWXE.mjs → chunk-7TTY7CBH.mjs} +1 -1
- package/dist/{chunk-SIXWXDZW.js → chunk-CME7HZZK.js} +5 -5
- package/dist/{chunk-OAPIVG6M.mjs → chunk-CUZSHFDP.mjs} +1 -1
- package/dist/{chunk-ZLJECS4H.js → chunk-DG75CS7F.js} +5 -5
- package/dist/{chunk-V5T44HCM.js → chunk-DRQVYGTI.js} +2 -2
- package/dist/{chunk-ARRRZPUK.js → chunk-GMDJYFHD.js} +3 -3
- package/dist/{chunk-IBIEYR3L.mjs → chunk-JFZXSCGK.mjs} +3 -3
- package/dist/{chunk-LX5IL6WX.mjs → chunk-K37TZB75.mjs} +1 -1
- package/dist/{chunk-BDBRQJSI.mjs → chunk-N6IHYBZH.mjs} +1 -1
- package/dist/{chunk-SBHNIFAS.mjs → chunk-NEQRLPXK.mjs} +3 -3
- package/dist/{chunk-TOPIQUBZ.js → chunk-O5ZW6JYG.js} +6 -6
- package/dist/{chunk-7SZA6JUN.mjs → chunk-RYR5I5FT.mjs} +6 -6
- package/dist/{chunk-ADH7RZG5.js → chunk-SGACFY53.js} +6 -6
- package/dist/{chunk-25LALCAN.js → chunk-VEZGD2PG.js} +5 -5
- package/dist/{chunk-EFNFSHV3.mjs → chunk-W42AOMM6.mjs} +3 -3
- package/dist/{chunk-ISHGZXPO.mjs → chunk-YBBUC3QC.mjs} +3 -3
- package/dist/frontend/entrypoint.js +492 -221
- package/dist/frontend/entrypoint.js.map +4 -4
- package/dist/frontend/index.js +242 -6
- package/dist/frontend/index.mjs +255 -19
- package/dist/index.d.mts +7 -111
- package/dist/index.d.ts +7 -111
- package/dist/index.js +65 -26
- package/dist/index.mjs +54 -15
- package/dist/toolkit-2w2SWHlT.d.ts +269 -0
- package/dist/toolkit-DB8G2TaA.d.mts +269 -0
- package/package.json +5 -4
|
@@ -1,79 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
private _props;
|
|
12
|
-
/** @hidden */
|
|
13
|
-
private _onPropsUpdated;
|
|
14
|
-
constructor(defaultProps: Props, props?: Partial<Props>, options?: {
|
|
15
|
-
onPropsUpdated?: (oldProps: Props) => void;
|
|
16
|
-
});
|
|
17
|
-
/**
|
|
18
|
-
* Call if
|
|
19
|
-
*/
|
|
20
|
-
triggerInitialPropsUpdate: () => void;
|
|
21
|
-
log: () => Logger | null;
|
|
22
|
-
get props(): Props;
|
|
23
|
-
set props(props: Partial<Props>);
|
|
24
|
-
setProps: (props: Partial<Props>) => void;
|
|
25
|
-
updateProps: (updates: Partial<Props>) => void;
|
|
26
|
-
/** @hidden */
|
|
27
|
-
setParent(parent: Parent | null): void;
|
|
28
|
-
/** @hidden */
|
|
29
|
-
updateTree(): void;
|
|
30
|
-
/** @hidden */
|
|
31
|
-
abstract getProtoInfo(idMap: IDMap): Proto;
|
|
32
|
-
/** @hidden */
|
|
33
|
-
handleMessage(_message: AnyClientComponentMessage): void;
|
|
34
|
-
routeMessage(_idMap: IDMap, _message: AnyClientComponentMessage): void;
|
|
35
|
-
}
|
|
36
|
-
type AnyComponent = Base<string, BaseComponentProto<string>, any>;
|
|
37
|
-
/** @hidden */
|
|
38
|
-
interface Parent {
|
|
39
|
-
updateTree(): void;
|
|
40
|
-
removeChild(component: AnyComponent): void;
|
|
41
|
-
log(): Logger | null;
|
|
42
|
-
}
|
|
43
|
-
declare abstract class BaseParent<Namespace extends string, Proto extends BaseComponentProto<Namespace>, T> extends Base<Namespace, Proto, T> implements Parent {
|
|
44
|
-
/** @hidden */
|
|
45
|
-
private children;
|
|
46
|
-
abstract validateChildren(children: AnyComponent[]): void;
|
|
47
|
-
appendChildren: <CS extends AnyComponent[]>(...children: CS) => CS;
|
|
48
|
-
appendChild: <C extends AnyComponent>(child: C) => C;
|
|
49
|
-
removeChild: (component: AnyComponent) => void;
|
|
50
|
-
removeAllChildren: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* Return all children components that messages need to be routed to
|
|
53
|
-
*/
|
|
54
|
-
getChildren: () => readonly AnyComponent[];
|
|
55
|
-
/**
|
|
56
|
-
* TODO: we can do this better, right now it broadcasts the message to all
|
|
57
|
-
* components of the tree
|
|
58
|
-
*
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
routeMessage(idMap: IDMap, message: AnyClientComponentMessage): void;
|
|
62
|
-
insertBefore(child: AnyComponent, beforeChild: AnyComponent): void;
|
|
63
|
-
}
|
|
64
|
-
interface Listenable<Map extends Record<string, (...args: any[]) => void>> {
|
|
65
|
-
addListener<T extends keyof Map>(type: T, listener: Map[T]): void;
|
|
66
|
-
removeListener<T extends keyof Map>(type: T, listener: Map[T]): void;
|
|
67
|
-
}
|
|
68
|
-
declare class EventEmitter<Map extends Record<string, (...args: any[]) => void>> implements Listenable<Map> {
|
|
69
|
-
private readonly listeners;
|
|
70
|
-
addListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
|
|
71
|
-
removeListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
|
|
72
|
-
emit: <T extends keyof Map>(type: T, ...args: Parameters<Map[T]>) => Promise<unknown>;
|
|
73
|
-
/**
|
|
74
|
-
* Process prop changes to update listeners
|
|
75
|
-
*/
|
|
76
|
-
processPropChanges: <Mapping extends Record<string, keyof Map>, Props extends { [key in keyof Mapping]?: Map[Mapping[key]] | null | undefined; }>(mapping: Mapping, oldProps: Props, newProps: Props) => void;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export { type AnyComponent, Base, BaseParent, EventEmitter, type Listenable, type Parent };
|
|
1
|
+
import '@arcanejs/protocol';
|
|
2
|
+
import '../../id-map-DxQ3_gyA.mjs';
|
|
3
|
+
import '@arcanejs/protocol/logging';
|
|
4
|
+
export { A as AnyComponent, d as Base, e as BaseParent, E as EventEmitter, L as Listenable, P as Parent } from '../../toolkit-DB8G2TaA.mjs';
|
|
5
|
+
import 'lodash';
|
|
6
|
+
import 'http';
|
|
7
|
+
import 'express';
|
|
8
|
+
import 'ws';
|
|
9
|
+
import '@arcanejs/protocol/core';
|
|
10
|
+
import '@arcanejs/protocol/styles';
|
|
@@ -1,79 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
private _props;
|
|
12
|
-
/** @hidden */
|
|
13
|
-
private _onPropsUpdated;
|
|
14
|
-
constructor(defaultProps: Props, props?: Partial<Props>, options?: {
|
|
15
|
-
onPropsUpdated?: (oldProps: Props) => void;
|
|
16
|
-
});
|
|
17
|
-
/**
|
|
18
|
-
* Call if
|
|
19
|
-
*/
|
|
20
|
-
triggerInitialPropsUpdate: () => void;
|
|
21
|
-
log: () => Logger | null;
|
|
22
|
-
get props(): Props;
|
|
23
|
-
set props(props: Partial<Props>);
|
|
24
|
-
setProps: (props: Partial<Props>) => void;
|
|
25
|
-
updateProps: (updates: Partial<Props>) => void;
|
|
26
|
-
/** @hidden */
|
|
27
|
-
setParent(parent: Parent | null): void;
|
|
28
|
-
/** @hidden */
|
|
29
|
-
updateTree(): void;
|
|
30
|
-
/** @hidden */
|
|
31
|
-
abstract getProtoInfo(idMap: IDMap): Proto;
|
|
32
|
-
/** @hidden */
|
|
33
|
-
handleMessage(_message: AnyClientComponentMessage): void;
|
|
34
|
-
routeMessage(_idMap: IDMap, _message: AnyClientComponentMessage): void;
|
|
35
|
-
}
|
|
36
|
-
type AnyComponent = Base<string, BaseComponentProto<string>, any>;
|
|
37
|
-
/** @hidden */
|
|
38
|
-
interface Parent {
|
|
39
|
-
updateTree(): void;
|
|
40
|
-
removeChild(component: AnyComponent): void;
|
|
41
|
-
log(): Logger | null;
|
|
42
|
-
}
|
|
43
|
-
declare abstract class BaseParent<Namespace extends string, Proto extends BaseComponentProto<Namespace>, T> extends Base<Namespace, Proto, T> implements Parent {
|
|
44
|
-
/** @hidden */
|
|
45
|
-
private children;
|
|
46
|
-
abstract validateChildren(children: AnyComponent[]): void;
|
|
47
|
-
appendChildren: <CS extends AnyComponent[]>(...children: CS) => CS;
|
|
48
|
-
appendChild: <C extends AnyComponent>(child: C) => C;
|
|
49
|
-
removeChild: (component: AnyComponent) => void;
|
|
50
|
-
removeAllChildren: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* Return all children components that messages need to be routed to
|
|
53
|
-
*/
|
|
54
|
-
getChildren: () => readonly AnyComponent[];
|
|
55
|
-
/**
|
|
56
|
-
* TODO: we can do this better, right now it broadcasts the message to all
|
|
57
|
-
* components of the tree
|
|
58
|
-
*
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
routeMessage(idMap: IDMap, message: AnyClientComponentMessage): void;
|
|
62
|
-
insertBefore(child: AnyComponent, beforeChild: AnyComponent): void;
|
|
63
|
-
}
|
|
64
|
-
interface Listenable<Map extends Record<string, (...args: any[]) => void>> {
|
|
65
|
-
addListener<T extends keyof Map>(type: T, listener: Map[T]): void;
|
|
66
|
-
removeListener<T extends keyof Map>(type: T, listener: Map[T]): void;
|
|
67
|
-
}
|
|
68
|
-
declare class EventEmitter<Map extends Record<string, (...args: any[]) => void>> implements Listenable<Map> {
|
|
69
|
-
private readonly listeners;
|
|
70
|
-
addListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
|
|
71
|
-
removeListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
|
|
72
|
-
emit: <T extends keyof Map>(type: T, ...args: Parameters<Map[T]>) => Promise<unknown>;
|
|
73
|
-
/**
|
|
74
|
-
* Process prop changes to update listeners
|
|
75
|
-
*/
|
|
76
|
-
processPropChanges: <Mapping extends Record<string, keyof Map>, Props extends { [key in keyof Mapping]?: Map[Mapping[key]] | null | undefined; }>(mapping: Mapping, oldProps: Props, newProps: Props) => void;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export { type AnyComponent, Base, BaseParent, EventEmitter, type Listenable, type Parent };
|
|
1
|
+
import '@arcanejs/protocol';
|
|
2
|
+
import '../../id-map-DxQ3_gyA.js';
|
|
3
|
+
import '@arcanejs/protocol/logging';
|
|
4
|
+
export { A as AnyComponent, d as Base, e as BaseParent, E as EventEmitter, L as Listenable, P as Parent } from '../../toolkit-2w2SWHlT.js';
|
|
5
|
+
import 'lodash';
|
|
6
|
+
import 'http';
|
|
7
|
+
import 'express';
|
|
8
|
+
import 'ws';
|
|
9
|
+
import '@arcanejs/protocol/core';
|
|
10
|
+
import '@arcanejs/protocol/styles';
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkSGACFY53js = require('../../chunk-SGACFY53.js');
|
|
6
6
|
require('../../chunk-3RG5ZIWI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.Base =
|
|
11
|
+
exports.Base = _chunkSGACFY53js.Base; exports.BaseParent = _chunkSGACFY53js.BaseParent; exports.EventEmitter = _chunkSGACFY53js.EventEmitter;
|
|
@@ -1,34 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import
|
|
1
|
+
import '@arcanejs/protocol/core';
|
|
2
|
+
import '../../id-map-DxQ3_gyA.mjs';
|
|
3
|
+
export { B as Button, g as ButtonMode, f as Events, I as InternalProps, h as Props } from '../../toolkit-DB8G2TaA.mjs';
|
|
4
|
+
import '@arcanejs/protocol';
|
|
5
5
|
import '@arcanejs/protocol/logging';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type InternalProps = {
|
|
12
|
-
text: string | null;
|
|
13
|
-
icon: string | null;
|
|
14
|
-
mode: ButtonMode;
|
|
15
|
-
error: string | null;
|
|
16
|
-
onClick?: Events['click'] | null;
|
|
17
|
-
};
|
|
18
|
-
type Props = Partial<InternalProps>;
|
|
19
|
-
declare class Button extends Base<proto.CoreNamespace, proto.CoreComponent, InternalProps> implements Listenable<Events> {
|
|
20
|
-
/** @hidden */
|
|
21
|
-
private readonly events;
|
|
22
|
-
constructor(props?: Props);
|
|
23
|
-
addListener: <T extends "click">(type: T, listener: Events[T]) => void;
|
|
24
|
-
removeListener: <T extends "click">(type: T, listener: Events[T]) => void;
|
|
25
|
-
setText: (text: string | null) => this;
|
|
26
|
-
setIcon: (icon: string | undefined | null) => this;
|
|
27
|
-
setMode: (mode: ButtonMode) => this;
|
|
28
|
-
/** @hidden */
|
|
29
|
-
getProtoInfo: (idMap: IDMap) => proto.ButtonComponent;
|
|
30
|
-
/** @hidden */
|
|
31
|
-
handleMessage: (message: AnyClientComponentMessage) => void;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { Button, type ButtonMode, type Events, type InternalProps, type Props };
|
|
6
|
+
import 'lodash';
|
|
7
|
+
import 'http';
|
|
8
|
+
import 'express';
|
|
9
|
+
import 'ws';
|
|
10
|
+
import '@arcanejs/protocol/styles';
|
|
@@ -1,34 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import
|
|
1
|
+
import '@arcanejs/protocol/core';
|
|
2
|
+
import '../../id-map-DxQ3_gyA.js';
|
|
3
|
+
export { B as Button, g as ButtonMode, f as Events, I as InternalProps, h as Props } from '../../toolkit-2w2SWHlT.js';
|
|
4
|
+
import '@arcanejs/protocol';
|
|
5
5
|
import '@arcanejs/protocol/logging';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type InternalProps = {
|
|
12
|
-
text: string | null;
|
|
13
|
-
icon: string | null;
|
|
14
|
-
mode: ButtonMode;
|
|
15
|
-
error: string | null;
|
|
16
|
-
onClick?: Events['click'] | null;
|
|
17
|
-
};
|
|
18
|
-
type Props = Partial<InternalProps>;
|
|
19
|
-
declare class Button extends Base<proto.CoreNamespace, proto.CoreComponent, InternalProps> implements Listenable<Events> {
|
|
20
|
-
/** @hidden */
|
|
21
|
-
private readonly events;
|
|
22
|
-
constructor(props?: Props);
|
|
23
|
-
addListener: <T extends "click">(type: T, listener: Events[T]) => void;
|
|
24
|
-
removeListener: <T extends "click">(type: T, listener: Events[T]) => void;
|
|
25
|
-
setText: (text: string | null) => this;
|
|
26
|
-
setIcon: (icon: string | undefined | null) => this;
|
|
27
|
-
setMode: (mode: ButtonMode) => this;
|
|
28
|
-
/** @hidden */
|
|
29
|
-
getProtoInfo: (idMap: IDMap) => proto.ButtonComponent;
|
|
30
|
-
/** @hidden */
|
|
31
|
-
handleMessage: (message: AnyClientComponentMessage) => void;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { Button, type ButtonMode, type Events, type InternalProps, type Props };
|
|
6
|
+
import 'lodash';
|
|
7
|
+
import 'http';
|
|
8
|
+
import 'express';
|
|
9
|
+
import 'ws';
|
|
10
|
+
import '@arcanejs/protocol/styles';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var _chunkDG75CS7Fjs = require('../../chunk-DG75CS7F.js');
|
|
4
|
+
require('../../chunk-SGACFY53.js');
|
|
5
5
|
require('../../chunk-3RG5ZIWI.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.Button =
|
|
8
|
+
exports.Button = _chunkDG75CS7Fjs.Button;
|
|
@@ -1,55 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import { AnyClientComponentMessage } from '@arcanejs/protocol';
|
|
1
|
+
import '@arcanejs/protocol/core';
|
|
2
|
+
import '@arcanejs/protocol/styles';
|
|
3
|
+
import '../../id-map-DxQ3_gyA.mjs';
|
|
4
|
+
export { i as Events, G as Group, c as GroupHeader, j as InternalProps, k as Props } from '../../toolkit-DB8G2TaA.mjs';
|
|
5
|
+
import '@arcanejs/protocol';
|
|
7
6
|
import '@arcanejs/protocol/logging';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
defaultCollapsibleState?: proto.GroupComponent['defaultCollapsibleState'];
|
|
13
|
-
};
|
|
14
|
-
type Events = {
|
|
15
|
-
'title-changed': (title: string) => void;
|
|
16
|
-
};
|
|
17
|
-
type InternalProps = GroupComponentStyle & GroupOptions & {
|
|
18
|
-
title: string | null;
|
|
19
|
-
labels: Label[] | null;
|
|
20
|
-
onTitleChanged?: Events['title-changed'];
|
|
21
|
-
};
|
|
22
|
-
type Props = Partial<InternalProps>;
|
|
23
|
-
declare class GroupHeader extends BaseParent<proto.CoreNamespace, proto.CoreComponent, Record<never, never>> {
|
|
24
|
-
validateChildren: () => void;
|
|
25
|
-
/** @hidden */
|
|
26
|
-
getProtoInfo: (idMap: IDMap) => proto.GroupHeaderComponent;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* A collection of components, grouped in either a row or column. Can contain
|
|
30
|
-
* further groups as children to organize components however you wish, and have
|
|
31
|
-
* a number of styling options (such as removing the border).
|
|
32
|
-
*
|
|
33
|
-
* 
|
|
34
|
-
*/
|
|
35
|
-
declare class Group extends BaseParent<proto.CoreNamespace, proto.GroupComponent, Props> implements Listenable<Events> {
|
|
36
|
-
/** @hidden */
|
|
37
|
-
private readonly events;
|
|
38
|
-
constructor(props?: Props);
|
|
39
|
-
addListener: <T extends "title-changed">(type: T, listener: Events[T]) => void;
|
|
40
|
-
removeListener: <T extends "title-changed">(type: T, listener: Events[T]) => void;
|
|
41
|
-
validateChildren: () => void;
|
|
42
|
-
setOptions: (options: GroupOptions) => void;
|
|
43
|
-
setTitle: (title: string) => void;
|
|
44
|
-
addLabel: (label: Label) => void;
|
|
45
|
-
setLabels: (labels: Label[]) => void;
|
|
46
|
-
addHeaderChild: <C extends Button>(child: C) => C;
|
|
47
|
-
removeHeaderChild: (child: Button) => void;
|
|
48
|
-
removeAllHeaderChildren: () => void;
|
|
49
|
-
/** @hidden */
|
|
50
|
-
getProtoInfo: (idMap: IDMap) => proto.GroupComponent;
|
|
51
|
-
/** @hidden */
|
|
52
|
-
handleMessage: (message: AnyClientComponentMessage) => void;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { type Events, Group, GroupHeader, type InternalProps, type Props };
|
|
7
|
+
import 'lodash';
|
|
8
|
+
import 'http';
|
|
9
|
+
import 'express';
|
|
10
|
+
import 'ws';
|
|
@@ -1,55 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import { AnyClientComponentMessage } from '@arcanejs/protocol';
|
|
1
|
+
import '@arcanejs/protocol/core';
|
|
2
|
+
import '@arcanejs/protocol/styles';
|
|
3
|
+
import '../../id-map-DxQ3_gyA.js';
|
|
4
|
+
export { i as Events, G as Group, c as GroupHeader, j as InternalProps, k as Props } from '../../toolkit-2w2SWHlT.js';
|
|
5
|
+
import '@arcanejs/protocol';
|
|
7
6
|
import '@arcanejs/protocol/logging';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
defaultCollapsibleState?: proto.GroupComponent['defaultCollapsibleState'];
|
|
13
|
-
};
|
|
14
|
-
type Events = {
|
|
15
|
-
'title-changed': (title: string) => void;
|
|
16
|
-
};
|
|
17
|
-
type InternalProps = GroupComponentStyle & GroupOptions & {
|
|
18
|
-
title: string | null;
|
|
19
|
-
labels: Label[] | null;
|
|
20
|
-
onTitleChanged?: Events['title-changed'];
|
|
21
|
-
};
|
|
22
|
-
type Props = Partial<InternalProps>;
|
|
23
|
-
declare class GroupHeader extends BaseParent<proto.CoreNamespace, proto.CoreComponent, Record<never, never>> {
|
|
24
|
-
validateChildren: () => void;
|
|
25
|
-
/** @hidden */
|
|
26
|
-
getProtoInfo: (idMap: IDMap) => proto.GroupHeaderComponent;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* A collection of components, grouped in either a row or column. Can contain
|
|
30
|
-
* further groups as children to organize components however you wish, and have
|
|
31
|
-
* a number of styling options (such as removing the border).
|
|
32
|
-
*
|
|
33
|
-
* 
|
|
34
|
-
*/
|
|
35
|
-
declare class Group extends BaseParent<proto.CoreNamespace, proto.GroupComponent, Props> implements Listenable<Events> {
|
|
36
|
-
/** @hidden */
|
|
37
|
-
private readonly events;
|
|
38
|
-
constructor(props?: Props);
|
|
39
|
-
addListener: <T extends "title-changed">(type: T, listener: Events[T]) => void;
|
|
40
|
-
removeListener: <T extends "title-changed">(type: T, listener: Events[T]) => void;
|
|
41
|
-
validateChildren: () => void;
|
|
42
|
-
setOptions: (options: GroupOptions) => void;
|
|
43
|
-
setTitle: (title: string) => void;
|
|
44
|
-
addLabel: (label: Label) => void;
|
|
45
|
-
setLabels: (labels: Label[]) => void;
|
|
46
|
-
addHeaderChild: <C extends Button>(child: C) => C;
|
|
47
|
-
removeHeaderChild: (child: Button) => void;
|
|
48
|
-
removeAllHeaderChildren: () => void;
|
|
49
|
-
/** @hidden */
|
|
50
|
-
getProtoInfo: (idMap: IDMap) => proto.GroupComponent;
|
|
51
|
-
/** @hidden */
|
|
52
|
-
handleMessage: (message: AnyClientComponentMessage) => void;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { type Events, Group, GroupHeader, type InternalProps, type Props };
|
|
7
|
+
import 'lodash';
|
|
8
|
+
import 'http';
|
|
9
|
+
import 'express';
|
|
10
|
+
import 'ws';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
4
|
+
var _chunkO5ZW6JYGjs = require('../../chunk-O5ZW6JYG.js');
|
|
5
|
+
require('../../chunk-SGACFY53.js');
|
|
6
6
|
require('../../chunk-3RG5ZIWI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.Group =
|
|
10
|
+
exports.Group = _chunkO5ZW6JYGjs.Group; exports.GroupHeader = _chunkO5ZW6JYGjs.GroupHeader;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as proto from '@arcanejs/protocol/core';
|
|
2
2
|
import { LabelComponentStyle } from '@arcanejs/protocol/styles';
|
|
3
3
|
import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
|
|
4
|
-
import { Base } from '
|
|
5
|
-
import '@arcanejs/protocol';
|
|
4
|
+
import { d as Base } from '../../toolkit-DB8G2TaA.mjs';
|
|
6
5
|
import '@arcanejs/protocol/logging';
|
|
6
|
+
import 'lodash';
|
|
7
|
+
import 'http';
|
|
8
|
+
import 'express';
|
|
9
|
+
import 'ws';
|
|
10
|
+
import '@arcanejs/protocol';
|
|
7
11
|
|
|
8
12
|
type InternalProps = LabelComponentStyle & {
|
|
9
13
|
text: string | null;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as proto from '@arcanejs/protocol/core';
|
|
2
2
|
import { LabelComponentStyle } from '@arcanejs/protocol/styles';
|
|
3
3
|
import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
|
|
4
|
-
import { Base } from '
|
|
5
|
-
import '@arcanejs/protocol';
|
|
4
|
+
import { d as Base } from '../../toolkit-2w2SWHlT.js';
|
|
6
5
|
import '@arcanejs/protocol/logging';
|
|
6
|
+
import 'lodash';
|
|
7
|
+
import 'http';
|
|
8
|
+
import 'express';
|
|
9
|
+
import 'ws';
|
|
10
|
+
import '@arcanejs/protocol';
|
|
7
11
|
|
|
8
12
|
type InternalProps = LabelComponentStyle & {
|
|
9
13
|
text: string | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var _chunkDRQVYGTIjs = require('../../chunk-DRQVYGTI.js');
|
|
4
|
+
require('../../chunk-SGACFY53.js');
|
|
5
5
|
require('../../chunk-3RG5ZIWI.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.Label =
|
|
8
|
+
exports.Label = _chunkDRQVYGTIjs.Label;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import * as proto from '@arcanejs/protocol/core';
|
|
2
2
|
import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
|
|
3
|
-
import { Base } from '
|
|
4
|
-
import '@arcanejs/protocol';
|
|
3
|
+
import { d as Base } from '../../toolkit-DB8G2TaA.mjs';
|
|
5
4
|
import '@arcanejs/protocol/logging';
|
|
5
|
+
import 'lodash';
|
|
6
|
+
import 'http';
|
|
7
|
+
import 'express';
|
|
8
|
+
import 'ws';
|
|
9
|
+
import '@arcanejs/protocol';
|
|
10
|
+
import '@arcanejs/protocol/styles';
|
|
6
11
|
|
|
7
12
|
type InternalProps = Pick<proto.RectComponent, 'color' | 'grow'>;
|
|
8
13
|
type Props = Partial<InternalProps>;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import * as proto from '@arcanejs/protocol/core';
|
|
2
2
|
import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
|
|
3
|
-
import { Base } from '
|
|
4
|
-
import '@arcanejs/protocol';
|
|
3
|
+
import { d as Base } from '../../toolkit-2w2SWHlT.js';
|
|
5
4
|
import '@arcanejs/protocol/logging';
|
|
5
|
+
import 'lodash';
|
|
6
|
+
import 'http';
|
|
7
|
+
import 'express';
|
|
8
|
+
import 'ws';
|
|
9
|
+
import '@arcanejs/protocol';
|
|
10
|
+
import '@arcanejs/protocol/styles';
|
|
6
11
|
|
|
7
12
|
type InternalProps = Pick<proto.RectComponent, 'color' | 'grow'>;
|
|
8
13
|
type Props = Partial<InternalProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var _chunk7OX2FB6Cjs = require('../../chunk-7OX2FB6C.js');
|
|
4
|
+
require('../../chunk-SGACFY53.js');
|
|
5
5
|
require('../../chunk-3RG5ZIWI.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.Rect =
|
|
8
|
+
exports.Rect = _chunk7OX2FB6Cjs.Rect;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import * as proto from '@arcanejs/protocol/core';
|
|
2
2
|
import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
|
|
3
|
-
import { Base, Listenable } from '
|
|
3
|
+
import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-DB8G2TaA.mjs';
|
|
4
4
|
import { AnyClientComponentMessage } from '@arcanejs/protocol';
|
|
5
5
|
import '@arcanejs/protocol/logging';
|
|
6
|
+
import 'lodash';
|
|
7
|
+
import 'http';
|
|
8
|
+
import 'express';
|
|
9
|
+
import 'ws';
|
|
10
|
+
import '@arcanejs/protocol/styles';
|
|
6
11
|
|
|
7
12
|
type Events = {
|
|
8
|
-
change: (value: number) => void | Promise<void>;
|
|
13
|
+
change: (value: number, connection: ToolkitConnection) => void | Promise<void>;
|
|
9
14
|
};
|
|
10
15
|
type InternalProps = Pick<proto.SliderButtonComponent, 'min' | 'max' | 'step' | 'gradient' | 'grow'> & {
|
|
11
16
|
value?: number;
|
|
@@ -28,7 +33,7 @@ declare class SliderButton extends Base<proto.CoreNamespace, proto.CoreComponent
|
|
|
28
33
|
/** @hidden */
|
|
29
34
|
getProtoInfo(idMap: IDMap): proto.CoreComponent;
|
|
30
35
|
/** @hidden */
|
|
31
|
-
handleMessage(message: AnyClientComponentMessage): void;
|
|
36
|
+
handleMessage(message: AnyClientComponentMessage, connection: ToolkitConnection): void;
|
|
32
37
|
setValue(value: number): void;
|
|
33
38
|
private sanitizeNumber;
|
|
34
39
|
private onPropsUpdated;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import * as proto from '@arcanejs/protocol/core';
|
|
2
2
|
import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
|
|
3
|
-
import { Base, Listenable } from '
|
|
3
|
+
import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-2w2SWHlT.js';
|
|
4
4
|
import { AnyClientComponentMessage } from '@arcanejs/protocol';
|
|
5
5
|
import '@arcanejs/protocol/logging';
|
|
6
|
+
import 'lodash';
|
|
7
|
+
import 'http';
|
|
8
|
+
import 'express';
|
|
9
|
+
import 'ws';
|
|
10
|
+
import '@arcanejs/protocol/styles';
|
|
6
11
|
|
|
7
12
|
type Events = {
|
|
8
|
-
change: (value: number) => void | Promise<void>;
|
|
13
|
+
change: (value: number, connection: ToolkitConnection) => void | Promise<void>;
|
|
9
14
|
};
|
|
10
15
|
type InternalProps = Pick<proto.SliderButtonComponent, 'min' | 'max' | 'step' | 'gradient' | 'grow'> & {
|
|
11
16
|
value?: number;
|
|
@@ -28,7 +33,7 @@ declare class SliderButton extends Base<proto.CoreNamespace, proto.CoreComponent
|
|
|
28
33
|
/** @hidden */
|
|
29
34
|
getProtoInfo(idMap: IDMap): proto.CoreComponent;
|
|
30
35
|
/** @hidden */
|
|
31
|
-
handleMessage(message: AnyClientComponentMessage): void;
|
|
36
|
+
handleMessage(message: AnyClientComponentMessage, connection: ToolkitConnection): void;
|
|
32
37
|
setValue(value: number): void;
|
|
33
38
|
private sanitizeNumber;
|
|
34
39
|
private onPropsUpdated;
|