@arcanejs/toolkit 6.0.0 → 7.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/README.md +156 -12
- package/dist/backend/components/base.d.mts +1 -1
- package/dist/backend/components/base.d.ts +1 -1
- package/dist/backend/components/button.d.mts +1 -1
- package/dist/backend/components/button.d.ts +1 -1
- package/dist/backend/components/button.js +2 -2
- package/dist/backend/components/button.mjs +1 -1
- package/dist/backend/components/group.d.mts +1 -1
- package/dist/backend/components/group.d.ts +1 -1
- package/dist/backend/components/group.js +2 -2
- package/dist/backend/components/group.mjs +1 -1
- package/dist/backend/components/label.d.mts +2 -2
- package/dist/backend/components/label.d.ts +2 -2
- package/dist/backend/components/label.js +2 -2
- package/dist/backend/components/label.mjs +1 -1
- package/dist/backend/components/rect.d.mts +2 -2
- package/dist/backend/components/rect.d.ts +2 -2
- package/dist/backend/components/rect.js +2 -2
- package/dist/backend/components/rect.mjs +1 -1
- package/dist/backend/components/slider-button.d.mts +2 -2
- package/dist/backend/components/slider-button.d.ts +2 -2
- package/dist/backend/components/slider-button.js +2 -2
- package/dist/backend/components/slider-button.mjs +1 -1
- package/dist/backend/components/switch.d.mts +2 -2
- package/dist/backend/components/switch.d.ts +2 -2
- package/dist/backend/components/switch.js +2 -2
- package/dist/backend/components/switch.mjs +1 -1
- package/dist/backend/components/tabs.d.mts +3 -3
- package/dist/backend/components/tabs.d.ts +3 -3
- package/dist/backend/components/tabs.js +2 -2
- package/dist/backend/components/tabs.mjs +1 -1
- package/dist/backend/components/text-input.d.mts +2 -2
- package/dist/backend/components/text-input.d.ts +2 -2
- package/dist/backend/components/text-input.js +2 -2
- package/dist/backend/components/text-input.mjs +1 -1
- package/dist/backend/components/timeline.d.mts +2 -2
- package/dist/backend/components/timeline.d.ts +2 -2
- package/dist/backend/components/timeline.js +2 -2
- package/dist/backend/components/timeline.mjs +1 -1
- package/dist/{chunk-53EOA4UE.js → chunk-2K4UT5QB.js} +1 -1
- package/dist/{chunk-4OCRZD4F.js → chunk-4AGKM5NT.js} +1 -1
- package/dist/{chunk-QAH2OSHR.js → chunk-5B65Q7RL.js} +1 -1
- package/dist/{chunk-3TXBS2UN.mjs → chunk-6PS3Q66F.mjs} +1 -1
- package/dist/{chunk-LK6MGXYC.mjs → chunk-7MQHRTBE.mjs} +1 -1
- package/dist/{chunk-U6FSQBQ3.js → chunk-A3RWE7HZ.js} +6 -4
- package/dist/{chunk-NL3W4M7J.js → chunk-CVY55KAR.js} +1 -1
- package/dist/{chunk-WDB3IMOP.mjs → chunk-GXJ3JRRK.mjs} +1 -1
- package/dist/{chunk-HTCWMJUA.js → chunk-IV3AE3CW.js} +1 -1
- package/dist/{chunk-UQWCTVMC.mjs → chunk-JHWFQLLE.mjs} +1 -1
- package/dist/{chunk-QB2WPBWV.mjs → chunk-K6V55JTG.mjs} +1 -1
- package/dist/{chunk-PG5EAV5X.mjs → chunk-MHSAHTVN.mjs} +1 -1
- package/dist/{chunk-KMEDXCBI.mjs → chunk-R5OA7LLZ.mjs} +6 -4
- package/dist/{chunk-6ELB27LK.mjs → chunk-RJLYYTZ6.mjs} +1 -1
- package/dist/{chunk-3GTEUTFT.js → chunk-TF7N4O5G.js} +1 -1
- package/dist/{chunk-E6FGU7DA.mjs → chunk-TULW7CRV.mjs} +4 -4
- package/dist/{chunk-6QWYIJLM.js → chunk-UHEZQR2Q.js} +1 -1
- package/dist/{chunk-7JIC2XBC.js → chunk-XSKWLJOQ.js} +4 -4
- package/dist/frontend/entrypoint.css +836 -0
- package/dist/frontend/entrypoint.css.map +7 -0
- package/dist/frontend/entrypoint.js +26049 -26682
- package/dist/frontend/entrypoint.js.map +4 -4
- package/dist/frontend/index.d.mts +4 -6
- package/dist/frontend/index.d.ts +4 -6
- package/dist/frontend/index.js +83 -300
- package/dist/frontend/index.mjs +90 -307
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +280 -98
- package/dist/index.mjs +250 -68
- package/dist/{toolkit-CohVRj6u.d.mts → toolkit-BPqxbDbk.d.mts} +82 -19
- package/dist/{toolkit-C_2Y8N9R.d.ts → toolkit-Bglbv3ix.d.ts} +82 -19
- package/package.json +15 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as proto from '@arcanejs/protocol/core';
|
|
2
2
|
import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { m as Base, b as ToolkitRenderContext } from '../../toolkit-BPqxbDbk.mjs';
|
|
4
4
|
import '@arcanejs/protocol/logging';
|
|
5
5
|
import 'lodash';
|
|
6
6
|
import 'http';
|
|
@@ -19,7 +19,7 @@ type Props = Partial<InternalProps>;
|
|
|
19
19
|
declare class Timeline extends Base<proto.CoreNamespace, proto.CoreComponent, InternalProps> {
|
|
20
20
|
constructor(props?: Props);
|
|
21
21
|
/** @hidden */
|
|
22
|
-
getProtoInfo: (idMap: IDMap) => proto.CoreComponent;
|
|
22
|
+
getProtoInfo: (idMap: IDMap, _context: ToolkitRenderContext) => proto.CoreComponent;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export { type Props, Timeline };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as proto from '@arcanejs/protocol/core';
|
|
2
2
|
import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
|
|
3
|
-
import {
|
|
3
|
+
import { m as Base, b as ToolkitRenderContext } from '../../toolkit-Bglbv3ix.js';
|
|
4
4
|
import '@arcanejs/protocol/logging';
|
|
5
5
|
import 'lodash';
|
|
6
6
|
import 'http';
|
|
@@ -19,7 +19,7 @@ type Props = Partial<InternalProps>;
|
|
|
19
19
|
declare class Timeline extends Base<proto.CoreNamespace, proto.CoreComponent, InternalProps> {
|
|
20
20
|
constructor(props?: Props);
|
|
21
21
|
/** @hidden */
|
|
22
|
-
getProtoInfo: (idMap: IDMap) => proto.CoreComponent;
|
|
22
|
+
getProtoInfo: (idMap: IDMap, _context: ToolkitRenderContext) => proto.CoreComponent;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export { type Props, Timeline };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUHEZQR2Qjs = require('../../chunk-UHEZQR2Q.js');
|
|
4
4
|
require('../../chunk-WN3GXVUE.js');
|
|
5
5
|
require('../../chunk-3RG5ZIWI.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.Timeline =
|
|
8
|
+
exports.Timeline = _chunkUHEZQR2Qjs.Timeline;
|
|
@@ -31,7 +31,7 @@ var Switch = (_class = class extends _chunkWN3GXVUEjs.Base {
|
|
|
31
31
|
__init3() {this.addListener = this.events.addListener}
|
|
32
32
|
__init4() {this.removeListener = this.events.removeListener}
|
|
33
33
|
/** @hidden */
|
|
34
|
-
getProtoInfo(idMap) {
|
|
34
|
+
getProtoInfo(idMap, _context) {
|
|
35
35
|
return {
|
|
36
36
|
namespace: "core",
|
|
37
37
|
component: "switch",
|
|
@@ -45,7 +45,7 @@ var Button = (_class = class extends _chunkWN3GXVUEjs.Base {
|
|
|
45
45
|
return this;
|
|
46
46
|
}}
|
|
47
47
|
/** @hidden */
|
|
48
|
-
__init7() {this.getProtoInfo = (idMap) => {
|
|
48
|
+
__init7() {this.getProtoInfo = (idMap, _context) => {
|
|
49
49
|
return {
|
|
50
50
|
namespace: "core",
|
|
51
51
|
component: "button",
|
|
@@ -10,12 +10,12 @@ var Tab = (_class = class extends _chunkWN3GXVUEjs.BaseParent {constructor(...ar
|
|
|
10
10
|
}
|
|
11
11
|
}}
|
|
12
12
|
/** @hidden */
|
|
13
|
-
__init2() {this.getProtoInfo = (idMap) => ({
|
|
13
|
+
__init2() {this.getProtoInfo = (idMap, context) => ({
|
|
14
14
|
namespace: "core",
|
|
15
15
|
component: "tab",
|
|
16
16
|
key: idMap.getId(this),
|
|
17
17
|
name: this.props.name,
|
|
18
|
-
child: this.getChildren().slice(0, 1).map((c) => c.getProtoInfo(idMap))[0]
|
|
18
|
+
child: this.getChildren().slice(0, 1).map((c) => c.getProtoInfo(idMap, context))[0]
|
|
19
19
|
})}
|
|
20
20
|
}, _class);
|
|
21
21
|
var Tabs = (_class2 = class extends _chunkWN3GXVUEjs.BaseParent {
|
|
@@ -41,12 +41,14 @@ var Tabs = (_class2 = class extends _chunkWN3GXVUEjs.BaseParent {
|
|
|
41
41
|
return component;
|
|
42
42
|
}
|
|
43
43
|
/** @hidden */
|
|
44
|
-
getProtoInfo(idMap) {
|
|
44
|
+
getProtoInfo(idMap, context) {
|
|
45
45
|
return {
|
|
46
46
|
namespace: "core",
|
|
47
47
|
component: "tabs",
|
|
48
48
|
key: idMap.getId(this),
|
|
49
|
-
tabs: this.getChildren().map(
|
|
49
|
+
tabs: this.getChildren().map(
|
|
50
|
+
(c) => c.getProtoInfo(idMap, context)
|
|
51
|
+
)
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
}, _class2);
|
|
@@ -35,7 +35,7 @@ var SliderButton = (_class = class extends _chunkWN3GXVUEjs.Base {
|
|
|
35
35
|
__init3() {this.addListener = this.events.addListener}
|
|
36
36
|
__init4() {this.removeListener = this.events.removeListener}
|
|
37
37
|
/** @hidden */
|
|
38
|
-
getProtoInfo(idMap) {
|
|
38
|
+
getProtoInfo(idMap, _context) {
|
|
39
39
|
return {
|
|
40
40
|
namespace: "core",
|
|
41
41
|
component: "slider_button",
|
|
@@ -26,7 +26,7 @@ var TextInput = class extends Base {
|
|
|
26
26
|
addListener = this.events.addListener;
|
|
27
27
|
removeListener = this.events.removeListener;
|
|
28
28
|
/** @hidden */
|
|
29
|
-
getProtoInfo = (idMap) => {
|
|
29
|
+
getProtoInfo = (idMap, _context) => {
|
|
30
30
|
return {
|
|
31
31
|
namespace: "core",
|
|
32
32
|
component: "text-input",
|
|
@@ -26,7 +26,7 @@ var TextInput = (_class = class extends _chunkWN3GXVUEjs.Base {
|
|
|
26
26
|
__init2() {this.addListener = this.events.addListener}
|
|
27
27
|
__init3() {this.removeListener = this.events.removeListener}
|
|
28
28
|
/** @hidden */
|
|
29
|
-
__init4() {this.getProtoInfo = (idMap) => {
|
|
29
|
+
__init4() {this.getProtoInfo = (idMap, _context) => {
|
|
30
30
|
return {
|
|
31
31
|
namespace: "core",
|
|
32
32
|
component: "text-input",
|
|
@@ -35,7 +35,7 @@ var SliderButton = class extends Base {
|
|
|
35
35
|
addListener = this.events.addListener;
|
|
36
36
|
removeListener = this.events.removeListener;
|
|
37
37
|
/** @hidden */
|
|
38
|
-
getProtoInfo(idMap) {
|
|
38
|
+
getProtoInfo(idMap, _context) {
|
|
39
39
|
return {
|
|
40
40
|
namespace: "core",
|
|
41
41
|
component: "slider_button",
|
|
@@ -10,12 +10,12 @@ var Tab = class extends BaseParent {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
/** @hidden */
|
|
13
|
-
getProtoInfo = (idMap) => ({
|
|
13
|
+
getProtoInfo = (idMap, context) => ({
|
|
14
14
|
namespace: "core",
|
|
15
15
|
component: "tab",
|
|
16
16
|
key: idMap.getId(this),
|
|
17
17
|
name: this.props.name,
|
|
18
|
-
child: this.getChildren().slice(0, 1).map((c) => c.getProtoInfo(idMap))[0]
|
|
18
|
+
child: this.getChildren().slice(0, 1).map((c) => c.getProtoInfo(idMap, context))[0]
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
var Tabs = class extends BaseParent {
|
|
@@ -41,12 +41,14 @@ var Tabs = class extends BaseParent {
|
|
|
41
41
|
return component;
|
|
42
42
|
}
|
|
43
43
|
/** @hidden */
|
|
44
|
-
getProtoInfo(idMap) {
|
|
44
|
+
getProtoInfo(idMap, context) {
|
|
45
45
|
return {
|
|
46
46
|
namespace: "core",
|
|
47
47
|
component: "tabs",
|
|
48
48
|
key: idMap.getId(this),
|
|
49
|
-
tabs: this.getChildren().map(
|
|
49
|
+
tabs: this.getChildren().map(
|
|
50
|
+
(c) => c.getProtoInfo(idMap, context)
|
|
51
|
+
)
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
};
|
|
@@ -17,11 +17,11 @@ var GroupHeader = class extends BaseParent {
|
|
|
17
17
|
validateChildren = () => {
|
|
18
18
|
};
|
|
19
19
|
/** @hidden */
|
|
20
|
-
getProtoInfo = (idMap) => ({
|
|
20
|
+
getProtoInfo = (idMap, context) => ({
|
|
21
21
|
namespace: "core",
|
|
22
22
|
component: "group-header",
|
|
23
23
|
key: idMap.getId(this),
|
|
24
|
-
children: this.getChildren().map((c) => c.getProtoInfo(idMap))
|
|
24
|
+
children: this.getChildren().map((c) => c.getProtoInfo(idMap, context))
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
27
|
var Group = class extends BaseParent {
|
|
@@ -76,11 +76,11 @@ var Group = class extends BaseParent {
|
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
/** @hidden */
|
|
79
|
-
getProtoInfo = (idMap) => {
|
|
79
|
+
getProtoInfo = (idMap, context) => {
|
|
80
80
|
const children = [];
|
|
81
81
|
const headers = [];
|
|
82
82
|
for (const c of this.getChildren()) {
|
|
83
|
-
const childProto = c.getProtoInfo(idMap);
|
|
83
|
+
const childProto = c.getProtoInfo(idMap, context);
|
|
84
84
|
if (proto.isCoreComponent(childProto) && childProto.component === "group-header") {
|
|
85
85
|
headers.push(childProto);
|
|
86
86
|
} else {
|
|
@@ -18,7 +18,7 @@ var Timeline = (_class = class extends _chunkWN3GXVUEjs.Base {
|
|
|
18
18
|
super(DEFAULT_PROPS, props);_class.prototype.__init.call(this);;
|
|
19
19
|
}
|
|
20
20
|
/** @hidden */
|
|
21
|
-
__init() {this.getProtoInfo = (idMap) => ({
|
|
21
|
+
__init() {this.getProtoInfo = (idMap, _context) => ({
|
|
22
22
|
namespace: "core",
|
|
23
23
|
component: "timeline",
|
|
24
24
|
key: idMap.getId(this),
|
|
@@ -17,11 +17,11 @@ var GroupHeader = (_class = class extends _chunkWN3GXVUEjs.BaseParent {construct
|
|
|
17
17
|
__init() {this.validateChildren = () => {
|
|
18
18
|
}}
|
|
19
19
|
/** @hidden */
|
|
20
|
-
__init2() {this.getProtoInfo = (idMap) => ({
|
|
20
|
+
__init2() {this.getProtoInfo = (idMap, context) => ({
|
|
21
21
|
namespace: "core",
|
|
22
22
|
component: "group-header",
|
|
23
23
|
key: idMap.getId(this),
|
|
24
|
-
children: this.getChildren().map((c) => c.getProtoInfo(idMap))
|
|
24
|
+
children: this.getChildren().map((c) => c.getProtoInfo(idMap, context))
|
|
25
25
|
})}
|
|
26
26
|
}, _class);
|
|
27
27
|
var Group = (_class2 = class extends _chunkWN3GXVUEjs.BaseParent {
|
|
@@ -76,11 +76,11 @@ var Group = (_class2 = class extends _chunkWN3GXVUEjs.BaseParent {
|
|
|
76
76
|
}
|
|
77
77
|
}}
|
|
78
78
|
/** @hidden */
|
|
79
|
-
__init14() {this.getProtoInfo = (idMap) => {
|
|
79
|
+
__init14() {this.getProtoInfo = (idMap, context) => {
|
|
80
80
|
const children = [];
|
|
81
81
|
const headers = [];
|
|
82
82
|
for (const c of this.getChildren()) {
|
|
83
|
-
const childProto = c.getProtoInfo(idMap);
|
|
83
|
+
const childProto = c.getProtoInfo(idMap, context);
|
|
84
84
|
if (proto.isCoreComponent(childProto) && childProto.component === "group-header") {
|
|
85
85
|
headers.push(childProto);
|
|
86
86
|
} else {
|