@ethereal-nexus/core 1.0.1 → 1.2.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/decorators/index.d.mts +1 -1
- package/dist/decorators/index.d.ts +1 -1
- package/dist/decorators/index.js +25 -3
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/index.mjs +25 -3
- package/dist/decorators/index.mjs.map +1 -1
- package/dist/decorators/webcomponent/index.d.mts +1 -1
- package/dist/decorators/webcomponent/index.d.ts +1 -1
- package/dist/decorators/webcomponent/index.js +25 -3
- package/dist/decorators/webcomponent/index.js.map +1 -1
- package/dist/decorators/webcomponent/index.mjs +25 -3
- package/dist/decorators/webcomponent/index.mjs.map +1 -1
- package/dist/decorators/webcomponent/webcomponent.d.mts +1 -1
- package/dist/decorators/webcomponent/webcomponent.d.ts +1 -1
- package/dist/decorators/webcomponent/webcomponent.js +25 -3
- package/dist/decorators/webcomponent/webcomponent.js.map +1 -1
- package/dist/decorators/webcomponent/webcomponent.mjs +25 -3
- package/dist/decorators/webcomponent/webcomponent.mjs.map +1 -1
- package/dist/functions/component/component.d.mts +3 -4
- package/dist/functions/component/component.d.ts +3 -4
- package/dist/functions/component/component.js +3 -16
- package/dist/functions/component/component.js.map +1 -1
- package/dist/functions/component/component.mjs +3 -16
- package/dist/functions/component/component.mjs.map +1 -1
- package/dist/functions/component/index.d.mts +1 -1
- package/dist/functions/component/index.d.ts +1 -1
- package/dist/functions/component/index.js +3 -16
- package/dist/functions/component/index.js.map +1 -1
- package/dist/functions/component/index.mjs +3 -16
- package/dist/functions/component/index.mjs.map +1 -1
- package/dist/functions/index.d.mts +1 -1
- package/dist/functions/index.d.ts +1 -1
- package/dist/functions/index.js +3 -16
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/index.mjs +3 -16
- package/dist/functions/index.mjs.map +1 -1
- package/dist/functions/parse/index.d.mts +1 -1
- package/dist/functions/parse/index.d.ts +1 -1
- package/dist/functions/parse/parse.d.mts +1 -1
- package/dist/functions/parse/parse.d.ts +1 -1
- package/dist/functions/parse/parsePrimitives.d.mts +1 -1
- package/dist/functions/parse/parsePrimitives.d.ts +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +53 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -19
- package/dist/index.mjs.map +1 -1
- package/dist/schema/calendar/calendar.d.mts +1 -1
- package/dist/schema/calendar/calendar.d.ts +1 -1
- package/dist/schema/calendar/index.d.mts +1 -1
- package/dist/schema/calendar/index.d.ts +1 -1
- package/dist/schema/checkbox/checkbox.d.mts +1 -1
- package/dist/schema/checkbox/checkbox.d.ts +1 -1
- package/dist/schema/checkbox/index.d.mts +1 -1
- package/dist/schema/checkbox/index.d.ts +1 -1
- package/dist/schema/datamodel/datamodel.d.mts +1 -1
- package/dist/schema/datamodel/datamodel.d.ts +1 -1
- package/dist/schema/datamodel/index.d.mts +1 -1
- package/dist/schema/datamodel/index.d.ts +1 -1
- package/dist/schema/datasource/datasource.d.mts +1 -1
- package/dist/schema/datasource/datasource.d.ts +1 -1
- package/dist/schema/datasource/index.d.mts +1 -1
- package/dist/schema/datasource/index.d.ts +1 -1
- package/dist/schema/dialog/condition.d.mts +1 -1
- package/dist/schema/dialog/condition.d.ts +1 -1
- package/dist/schema/dialog/dialog.d.mts +1 -1
- package/dist/schema/dialog/dialog.d.ts +1 -1
- package/dist/schema/dialog/index.d.mts +1 -1
- package/dist/schema/dialog/index.d.ts +1 -1
- package/dist/schema/dialog/tabs.d.mts +1 -1
- package/dist/schema/dialog/tabs.d.ts +1 -1
- package/dist/schema/dialog/types.d.mts +1 -1
- package/dist/schema/dialog/types.d.ts +1 -1
- package/dist/schema/dynamic/dynamic.d.mts +1 -1
- package/dist/schema/dynamic/dynamic.d.ts +1 -1
- package/dist/schema/dynamic/index.d.mts +1 -1
- package/dist/schema/dynamic/index.d.ts +1 -1
- package/dist/schema/group/group.d.mts +1 -1
- package/dist/schema/group/group.d.ts +1 -1
- package/dist/schema/group/index.d.mts +1 -1
- package/dist/schema/group/index.d.ts +1 -1
- package/dist/schema/hidden/hidden.d.mts +1 -1
- package/dist/schema/hidden/hidden.d.ts +1 -1
- package/dist/schema/hidden/index.d.mts +1 -1
- package/dist/schema/hidden/index.d.ts +1 -1
- package/dist/schema/image/image.d.mts +1 -1
- package/dist/schema/image/image.d.ts +1 -1
- package/dist/schema/image/index.d.mts +1 -1
- package/dist/schema/image/index.d.ts +1 -1
- package/dist/schema/multifield/index.d.mts +1 -1
- package/dist/schema/multifield/index.d.ts +1 -1
- package/dist/schema/multifield/multifield.d.mts +1 -1
- package/dist/schema/multifield/multifield.d.ts +1 -1
- package/dist/schema/navigation/index.d.mts +4 -0
- package/dist/schema/navigation/index.d.ts +4 -0
- package/dist/schema/navigation/index.js +53 -0
- package/dist/schema/navigation/index.js.map +1 -0
- package/dist/schema/navigation/index.mjs +26 -0
- package/dist/schema/navigation/index.mjs.map +1 -0
- package/dist/schema/navigation/navigation.d.mts +22 -0
- package/dist/schema/navigation/navigation.d.ts +22 -0
- package/dist/schema/navigation/navigation.js +51 -0
- package/dist/schema/navigation/navigation.js.map +1 -0
- package/dist/schema/navigation/navigation.mjs +26 -0
- package/dist/schema/navigation/navigation.mjs.map +1 -0
- package/dist/schema/object/index.d.mts +1 -1
- package/dist/schema/object/index.d.ts +1 -1
- package/dist/schema/object/object.d.mts +1 -1
- package/dist/schema/object/object.d.ts +1 -1
- package/dist/schema/optional/index.d.mts +1 -1
- package/dist/schema/optional/index.d.ts +1 -1
- package/dist/schema/optional/optional.d.mts +1 -1
- package/dist/schema/optional/optional.d.ts +1 -1
- package/dist/schema/pathbrowser/index.d.mts +1 -1
- package/dist/schema/pathbrowser/index.d.ts +1 -1
- package/dist/schema/pathbrowser/pathbrowser.d.mts +1 -1
- package/dist/schema/pathbrowser/pathbrowser.d.ts +1 -1
- package/dist/schema/rte/index.d.mts +1 -1
- package/dist/schema/rte/index.d.ts +1 -1
- package/dist/schema/rte/rte.d.mts +1 -1
- package/dist/schema/rte/rte.d.ts +1 -1
- package/dist/schema/select/index.d.mts +1 -1
- package/dist/schema/select/index.d.ts +1 -1
- package/dist/schema/select/select.d.mts +1 -1
- package/dist/schema/select/select.d.ts +1 -1
- package/dist/schema/text/index.d.mts +1 -1
- package/dist/schema/text/index.d.ts +1 -1
- package/dist/schema/text/text.d.mts +1 -1
- package/dist/schema/text/text.d.ts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/infer.d.mts +1 -1
- package/dist/types/infer.d.ts +1 -1
- package/dist/types/object.d.mts +1 -1
- package/dist/types/object.d.ts +1 -1
- package/dist/types/object.js.map +1 -1
- package/dist/types/schema.d.mts +1 -1
- package/dist/types/schema.d.ts +1 -1
- package/dist/{types-Cvbi87LT.d.ts → types-5qjjdXLi.d.ts} +1 -7
- package/dist/{types-DUGwdG43.d.mts → types-CUiyZnDu.d.mts} +1 -7
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseSchema, d as BaseFieldInput } from '../../types-
|
|
1
|
+
import { B as BaseSchema, d as BaseFieldInput } from '../../types-CUiyZnDu.mjs';
|
|
2
2
|
import { InferOutput } from '../../types/infer.mjs';
|
|
3
3
|
import '../../types/webcomponent.mjs';
|
|
4
4
|
import '../../types/utils.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseSchema, d as BaseFieldInput } from '../../types-
|
|
1
|
+
import { B as BaseSchema, d as BaseFieldInput } from '../../types-5qjjdXLi.js';
|
|
2
2
|
import { InferOutput } from '../../types/infer.js';
|
|
3
3
|
import '../../types/webcomponent.js';
|
|
4
4
|
import '../../types/utils.js';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/schema/navigation/index.ts
|
|
21
|
+
var navigation_exports = {};
|
|
22
|
+
__export(navigation_exports, {
|
|
23
|
+
navigation: () => navigation
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(navigation_exports);
|
|
26
|
+
|
|
27
|
+
// src/schema/navigation/navigation.ts
|
|
28
|
+
function navigation(input) {
|
|
29
|
+
const { placeholder, label, tooltip, required, showChildrenCheckbox, showRootLevel } = input;
|
|
30
|
+
return {
|
|
31
|
+
type: "navigation",
|
|
32
|
+
_parse() {
|
|
33
|
+
return {
|
|
34
|
+
type: "navigation",
|
|
35
|
+
label,
|
|
36
|
+
placeholder,
|
|
37
|
+
tooltip,
|
|
38
|
+
required,
|
|
39
|
+
showChildrenCheckbox,
|
|
40
|
+
showRootLevel
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
_primitive() {
|
|
44
|
+
return "json";
|
|
45
|
+
},
|
|
46
|
+
...input
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
navigation
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/navigation/index.ts","../../../src/schema/navigation/navigation.ts"],"sourcesContent":["export * from './navigation'","import { BaseFieldInput, type BaseSchema } from '../../types';\n\nexport interface NavigationSchema extends BaseSchema<NavigationItemSchema[]> { /**\n * The schema type.\n */\n type: 'navigation';\n}\n\nexport interface NavigationItemSchema {\n id: string;\n children: NavigationItemSchema[];\n active: boolean;\n url: string;\n title: string;\n}\n\n\ninterface DataModelInput extends BaseFieldInput {\n placeholder?: string;\n showChildrenCheckbox?: boolean;\n showRootLevel?: boolean;\n}\n\nexport function navigation(input: DataModelInput): NavigationSchema {\n const {placeholder, label,tooltip, required, showChildrenCheckbox, showRootLevel} = input;\n\n return {\n type: 'navigation',\n _parse() {\n return {\n type: 'navigation',\n label,\n placeholder,\n tooltip,\n required,\n showChildrenCheckbox,\n showRootLevel,\n }\n },\n _primitive() {\n return 'json'\n },\n ...input,\n }\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACuBO,SAAS,WAAW,OAAyC;AAClE,QAAM,EAAC,aAAa,OAAM,SAAS,UAAU,sBAAsB,cAAa,IAAI;AAEpF,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/schema/navigation/navigation.ts
|
|
2
|
+
function navigation(input) {
|
|
3
|
+
const { placeholder, label, tooltip, required, showChildrenCheckbox, showRootLevel } = input;
|
|
4
|
+
return {
|
|
5
|
+
type: "navigation",
|
|
6
|
+
_parse() {
|
|
7
|
+
return {
|
|
8
|
+
type: "navigation",
|
|
9
|
+
label,
|
|
10
|
+
placeholder,
|
|
11
|
+
tooltip,
|
|
12
|
+
required,
|
|
13
|
+
showChildrenCheckbox,
|
|
14
|
+
showRootLevel
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
_primitive() {
|
|
18
|
+
return "json";
|
|
19
|
+
},
|
|
20
|
+
...input
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
navigation
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/navigation/navigation.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\nexport interface NavigationSchema extends BaseSchema<NavigationItemSchema[]> { /**\n * The schema type.\n */\n type: 'navigation';\n}\n\nexport interface NavigationItemSchema {\n id: string;\n children: NavigationItemSchema[];\n active: boolean;\n url: string;\n title: string;\n}\n\n\ninterface DataModelInput extends BaseFieldInput {\n placeholder?: string;\n showChildrenCheckbox?: boolean;\n showRootLevel?: boolean;\n}\n\nexport function navigation(input: DataModelInput): NavigationSchema {\n const {placeholder, label,tooltip, required, showChildrenCheckbox, showRootLevel} = input;\n\n return {\n type: 'navigation',\n _parse() {\n return {\n type: 'navigation',\n label,\n placeholder,\n tooltip,\n required,\n showChildrenCheckbox,\n showRootLevel,\n }\n },\n _primitive() {\n return 'json'\n },\n ...input,\n }\n}"],"mappings":";AAuBO,SAAS,WAAW,OAAyC;AAClE,QAAM,EAAC,aAAa,OAAM,SAAS,UAAU,sBAAsB,cAAa,IAAI;AAEpF,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { B as BaseSchema, d as BaseFieldInput } from '../../types-CUiyZnDu.mjs';
|
|
2
|
+
import '../../types/webcomponent.mjs';
|
|
3
|
+
import '../../types/utils.mjs';
|
|
4
|
+
|
|
5
|
+
interface NavigationSchema extends BaseSchema<NavigationItemSchema[]> {
|
|
6
|
+
type: 'navigation';
|
|
7
|
+
}
|
|
8
|
+
interface NavigationItemSchema {
|
|
9
|
+
id: string;
|
|
10
|
+
children: NavigationItemSchema[];
|
|
11
|
+
active: boolean;
|
|
12
|
+
url: string;
|
|
13
|
+
title: string;
|
|
14
|
+
}
|
|
15
|
+
interface DataModelInput extends BaseFieldInput {
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
showChildrenCheckbox?: boolean;
|
|
18
|
+
showRootLevel?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare function navigation(input: DataModelInput): NavigationSchema;
|
|
21
|
+
|
|
22
|
+
export { type NavigationItemSchema, type NavigationSchema, navigation };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { B as BaseSchema, d as BaseFieldInput } from '../../types-5qjjdXLi.js';
|
|
2
|
+
import '../../types/webcomponent.js';
|
|
3
|
+
import '../../types/utils.js';
|
|
4
|
+
|
|
5
|
+
interface NavigationSchema extends BaseSchema<NavigationItemSchema[]> {
|
|
6
|
+
type: 'navigation';
|
|
7
|
+
}
|
|
8
|
+
interface NavigationItemSchema {
|
|
9
|
+
id: string;
|
|
10
|
+
children: NavigationItemSchema[];
|
|
11
|
+
active: boolean;
|
|
12
|
+
url: string;
|
|
13
|
+
title: string;
|
|
14
|
+
}
|
|
15
|
+
interface DataModelInput extends BaseFieldInput {
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
showChildrenCheckbox?: boolean;
|
|
18
|
+
showRootLevel?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare function navigation(input: DataModelInput): NavigationSchema;
|
|
21
|
+
|
|
22
|
+
export { type NavigationItemSchema, type NavigationSchema, navigation };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/schema/navigation/navigation.ts
|
|
21
|
+
var navigation_exports = {};
|
|
22
|
+
__export(navigation_exports, {
|
|
23
|
+
navigation: () => navigation
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(navigation_exports);
|
|
26
|
+
function navigation(input) {
|
|
27
|
+
const { placeholder, label, tooltip, required, showChildrenCheckbox, showRootLevel } = input;
|
|
28
|
+
return {
|
|
29
|
+
type: "navigation",
|
|
30
|
+
_parse() {
|
|
31
|
+
return {
|
|
32
|
+
type: "navigation",
|
|
33
|
+
label,
|
|
34
|
+
placeholder,
|
|
35
|
+
tooltip,
|
|
36
|
+
required,
|
|
37
|
+
showChildrenCheckbox,
|
|
38
|
+
showRootLevel
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_primitive() {
|
|
42
|
+
return "json";
|
|
43
|
+
},
|
|
44
|
+
...input
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
navigation
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=navigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/navigation/navigation.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\nexport interface NavigationSchema extends BaseSchema<NavigationItemSchema[]> { /**\n * The schema type.\n */\n type: 'navigation';\n}\n\nexport interface NavigationItemSchema {\n id: string;\n children: NavigationItemSchema[];\n active: boolean;\n url: string;\n title: string;\n}\n\n\ninterface DataModelInput extends BaseFieldInput {\n placeholder?: string;\n showChildrenCheckbox?: boolean;\n showRootLevel?: boolean;\n}\n\nexport function navigation(input: DataModelInput): NavigationSchema {\n const {placeholder, label,tooltip, required, showChildrenCheckbox, showRootLevel} = input;\n\n return {\n type: 'navigation',\n _parse() {\n return {\n type: 'navigation',\n label,\n placeholder,\n tooltip,\n required,\n showChildrenCheckbox,\n showRootLevel,\n }\n },\n _primitive() {\n return 'json'\n },\n ...input,\n }\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBO,SAAS,WAAW,OAAyC;AAClE,QAAM,EAAC,aAAa,OAAM,SAAS,UAAU,sBAAsB,cAAa,IAAI;AAEpF,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/schema/navigation/navigation.ts
|
|
2
|
+
function navigation(input) {
|
|
3
|
+
const { placeholder, label, tooltip, required, showChildrenCheckbox, showRootLevel } = input;
|
|
4
|
+
return {
|
|
5
|
+
type: "navigation",
|
|
6
|
+
_parse() {
|
|
7
|
+
return {
|
|
8
|
+
type: "navigation",
|
|
9
|
+
label,
|
|
10
|
+
placeholder,
|
|
11
|
+
tooltip,
|
|
12
|
+
required,
|
|
13
|
+
showChildrenCheckbox,
|
|
14
|
+
showRootLevel
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
_primitive() {
|
|
18
|
+
return "json";
|
|
19
|
+
},
|
|
20
|
+
...input
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
navigation
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=navigation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/navigation/navigation.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\nexport interface NavigationSchema extends BaseSchema<NavigationItemSchema[]> { /**\n * The schema type.\n */\n type: 'navigation';\n}\n\nexport interface NavigationItemSchema {\n id: string;\n children: NavigationItemSchema[];\n active: boolean;\n url: string;\n title: string;\n}\n\n\ninterface DataModelInput extends BaseFieldInput {\n placeholder?: string;\n showChildrenCheckbox?: boolean;\n showRootLevel?: boolean;\n}\n\nexport function navigation(input: DataModelInput): NavigationSchema {\n const {placeholder, label,tooltip, required, showChildrenCheckbox, showRootLevel} = input;\n\n return {\n type: 'navigation',\n _parse() {\n return {\n type: 'navigation',\n label,\n placeholder,\n tooltip,\n required,\n showChildrenCheckbox,\n showRootLevel,\n }\n },\n _primitive() {\n return 'json'\n },\n ...input,\n }\n}"],"mappings":";AAuBO,SAAS,WAAW,OAAyC;AAClE,QAAM,EAAC,aAAa,OAAM,SAAS,UAAU,sBAAsB,cAAa,IAAI;AAEpF,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as ObjectEntries, g as ObjectOutput, B as BaseSchema } from '../../types-
|
|
1
|
+
import { f as ObjectEntries, g as ObjectOutput, B as BaseSchema } from '../../types-CUiyZnDu.mjs';
|
|
2
2
|
import '../../types/webcomponent.mjs';
|
|
3
3
|
import '../../types/utils.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as ObjectEntries, g as ObjectOutput, B as BaseSchema } from '../../types-
|
|
1
|
+
import { f as ObjectEntries, g as ObjectOutput, B as BaseSchema } from '../../types-5qjjdXLi.js';
|
|
2
2
|
import '../../types/webcomponent.js';
|
|
3
3
|
import '../../types/utils.js';
|
|
4
4
|
|
package/dist/schema/rte/rte.d.ts
CHANGED
package/dist/types/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { GetServerSideProps } from './props.mjs';
|
|
2
2
|
export { AddType, DeepPartial, EntryMask, LeavesPath, NestedPaths, NodesPath, PathValue, RequireAtLeastOne, ResolveObject, UnArray } from './utils.mjs';
|
|
3
|
-
export { d as BaseFieldInput, B as BaseSchema, e as Output } from '../types-
|
|
3
|
+
export { d as BaseFieldInput, B as BaseSchema, e as Output } from '../types-CUiyZnDu.mjs';
|
|
4
4
|
export { InferOutput } from './infer.mjs';
|
|
5
5
|
export { ComponentModel } from './component.mjs';
|
|
6
6
|
import './webcomponent.mjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { GetServerSideProps } from './props.js';
|
|
2
2
|
export { AddType, DeepPartial, EntryMask, LeavesPath, NestedPaths, NodesPath, PathValue, RequireAtLeastOne, ResolveObject, UnArray } from './utils.js';
|
|
3
|
-
export { d as BaseFieldInput, B as BaseSchema, e as Output } from '../types-
|
|
3
|
+
export { d as BaseFieldInput, B as BaseSchema, e as Output } from '../types-5qjjdXLi.js';
|
|
4
4
|
export { InferOutput } from './infer.js';
|
|
5
5
|
export { ComponentModel } from './component.js';
|
|
6
6
|
import './webcomponent.js';
|
package/dist/types/infer.d.mts
CHANGED
package/dist/types/infer.d.ts
CHANGED
package/dist/types/object.d.mts
CHANGED
package/dist/types/object.d.ts
CHANGED
package/dist/types/object.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/object.ts"],"sourcesContent":["import { OptionalSchema } from '../schema/optional';\nimport { BaseSchema, Output } from './schema';\nimport { ResolveObject } from './utils';\
|
|
1
|
+
{"version":3,"sources":["../../src/types/object.ts"],"sourcesContent":["import { OptionalSchema } from '../schema/optional';\nimport { BaseSchema, Output } from './schema';\nimport { ResolveObject } from './utils';\n\n\n/**\n * Required object keys type.\n */\ntype RequiredKeys<\n TEntries extends ObjectEntries,\n TObject extends EntriesOutput<TEntries>,\n> = {\n [TKey in keyof TEntries]: TEntries[TKey] extends OptionalSchema<any, any>\n ? undefined extends TObject[TKey]\n ? never\n : TKey\n : TKey;\n}[keyof TEntries];\n\n/**\n * Optional object keys type.\n */\ntype OptionalKeys<\n TEntries extends ObjectEntries,\n TObject extends EntriesOutput<TEntries>,\n> = {\n [TKey in keyof TEntries]: TEntries[TKey] extends OptionalSchema<any, any>\n ? undefined extends TObject[TKey]\n ? TKey\n : never\n : never;\n}[keyof TEntries];\n\n/**\n * Object with question marks type.\n */\ntype WithQuestionMarks<\n TEntries extends ObjectEntries,\n TObject extends EntriesOutput<TEntries>,\n> = Pick<TObject, RequiredKeys<TEntries, TObject>> &\n Partial<Pick<TObject, OptionalKeys<TEntries, TObject>>>;\n\n/**\n * Object entries type.\n */\nexport interface ObjectEntries {\n [key: string]: BaseSchema;\n}\n\n/**\n * Entries output inference type.\n */\ntype EntriesOutput<TEntries extends ObjectEntries> = {\n [TKey in keyof TEntries]: Output<TEntries[TKey]>;\n};\n\n/**\n * Object output inference type.\n */\nexport type ObjectOutput<TEntries extends ObjectEntries> = ResolveObject<WithQuestionMarks<TEntries, EntriesOutput<TEntries>>>\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types/schema.d.mts
CHANGED
package/dist/types/schema.d.ts
CHANGED
|
@@ -90,12 +90,6 @@ type WithQuestionMarks<TEntries extends ObjectEntries, TObject extends EntriesOu
|
|
|
90
90
|
interface ObjectEntries {
|
|
91
91
|
[key: string]: BaseSchema;
|
|
92
92
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Object entries type.
|
|
95
|
-
*/
|
|
96
|
-
interface SlotEntries {
|
|
97
|
-
[key: string]: BaseSchema;
|
|
98
|
-
}
|
|
99
93
|
/**
|
|
100
94
|
* Entries output inference type.
|
|
101
95
|
*/
|
|
@@ -131,4 +125,4 @@ type Field = {
|
|
|
131
125
|
children?: Field[];
|
|
132
126
|
};
|
|
133
127
|
|
|
134
|
-
export { type BaseSchema as B, type Conditions as C, type Field as F, type OptionalSchema as O, type
|
|
128
|
+
export { type BaseSchema as B, type Conditions as C, type Field as F, type OptionalSchema as O, type ConditionOperators as a, type ConditionFn as b, type ConditionsArgument as c, type BaseFieldInput as d, type Output as e, type ObjectEntries as f, type ObjectOutput as g, optional as o };
|
|
@@ -90,12 +90,6 @@ type WithQuestionMarks<TEntries extends ObjectEntries, TObject extends EntriesOu
|
|
|
90
90
|
interface ObjectEntries {
|
|
91
91
|
[key: string]: BaseSchema;
|
|
92
92
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Object entries type.
|
|
95
|
-
*/
|
|
96
|
-
interface SlotEntries {
|
|
97
|
-
[key: string]: BaseSchema;
|
|
98
|
-
}
|
|
99
93
|
/**
|
|
100
94
|
* Entries output inference type.
|
|
101
95
|
*/
|
|
@@ -131,4 +125,4 @@ type Field = {
|
|
|
131
125
|
children?: Field[];
|
|
132
126
|
};
|
|
133
127
|
|
|
134
|
-
export { type BaseSchema as B, type Conditions as C, type Field as F, type OptionalSchema as O, type
|
|
128
|
+
export { type BaseSchema as B, type Conditions as C, type Field as F, type OptionalSchema as O, type ConditionOperators as a, type ConditionFn as b, type ConditionsArgument as c, type BaseFieldInput as d, type Output as e, type ObjectEntries as f, type ObjectOutput as g, optional as o };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethereal-nexus/core",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"@types/react": "^18.3.0",
|
|
25
25
|
"react": "^18.3.1",
|
|
26
26
|
"tsup": "^8.0.2",
|
|
27
|
-
"typescript": "^5.6.2"
|
|
27
|
+
"typescript": "^5.6.2",
|
|
28
|
+
"vite-plugin-css-injected-by-js": "^3.5.2"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"@r2wc/react-to-web-component": "^2.0.3"
|