@ethereal-nexus/core 0.1.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/LICENSE +201 -0
- package/dist/decorators/index.d.mts +8 -0
- package/dist/decorators/index.d.ts +8 -0
- package/dist/decorators/index.js +71 -0
- package/dist/decorators/index.js.map +1 -0
- package/dist/decorators/index.mjs +34 -0
- package/dist/decorators/index.mjs.map +1 -0
- package/dist/decorators/webcomponent/index.d.mts +8 -0
- package/dist/decorators/webcomponent/index.d.ts +8 -0
- package/dist/decorators/webcomponent/index.js +71 -0
- package/dist/decorators/webcomponent/index.js.map +1 -0
- package/dist/decorators/webcomponent/index.mjs +34 -0
- package/dist/decorators/webcomponent/index.mjs.map +1 -0
- package/dist/decorators/webcomponent/webcomponent.d.mts +12 -0
- package/dist/decorators/webcomponent/webcomponent.d.ts +12 -0
- package/dist/decorators/webcomponent/webcomponent.js +69 -0
- package/dist/decorators/webcomponent/webcomponent.js.map +1 -0
- package/dist/decorators/webcomponent/webcomponent.mjs +34 -0
- package/dist/decorators/webcomponent/webcomponent.mjs.map +1 -0
- package/dist/functions/index.d.mts +8 -0
- package/dist/functions/index.d.ts +8 -0
- package/dist/functions/index.js +44 -0
- package/dist/functions/index.js.map +1 -0
- package/dist/functions/index.mjs +16 -0
- package/dist/functions/index.mjs.map +1 -0
- package/dist/functions/parse/index.d.mts +8 -0
- package/dist/functions/parse/index.d.ts +8 -0
- package/dist/functions/parse/index.js +44 -0
- package/dist/functions/parse/index.js.map +1 -0
- package/dist/functions/parse/index.mjs +16 -0
- package/dist/functions/parse/index.mjs.map +1 -0
- package/dist/functions/parse/parse.d.mts +12 -0
- package/dist/functions/parse/parse.d.ts +12 -0
- package/dist/functions/parse/parse.js +35 -0
- package/dist/functions/parse/parse.js.map +1 -0
- package/dist/functions/parse/parse.mjs +10 -0
- package/dist/functions/parse/parse.mjs.map +1 -0
- package/dist/functions/parse/parsePrimitives.d.mts +10 -0
- package/dist/functions/parse/parsePrimitives.d.ts +10 -0
- package/dist/functions/parse/parsePrimitives.js +33 -0
- package/dist/functions/parse/parsePrimitives.js.map +1 -0
- package/dist/functions/parse/parsePrimitives.mjs +8 -0
- package/dist/functions/parse/parsePrimitives.mjs.map +1 -0
- package/dist/index.d.mts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +329 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +280 -0
- package/dist/index.mjs.map +1 -0
- package/dist/schema/checkbox/checkbox.d.mts +14 -0
- package/dist/schema/checkbox/checkbox.d.ts +14 -0
- package/dist/schema/checkbox/checkbox.js +46 -0
- package/dist/schema/checkbox/checkbox.js.map +1 -0
- package/dist/schema/checkbox/checkbox.mjs +21 -0
- package/dist/schema/checkbox/checkbox.mjs.map +1 -0
- package/dist/schema/checkbox/index.d.mts +3 -0
- package/dist/schema/checkbox/index.d.ts +3 -0
- package/dist/schema/checkbox/index.js +48 -0
- package/dist/schema/checkbox/index.js.map +1 -0
- package/dist/schema/checkbox/index.mjs +21 -0
- package/dist/schema/checkbox/index.mjs.map +1 -0
- package/dist/schema/dialog/dialog.d.mts +13 -0
- package/dist/schema/dialog/dialog.d.ts +13 -0
- package/dist/schema/dialog/dialog.js +92 -0
- package/dist/schema/dialog/dialog.js.map +1 -0
- package/dist/schema/dialog/dialog.mjs +67 -0
- package/dist/schema/dialog/dialog.mjs.map +1 -0
- package/dist/schema/dialog/index.d.mts +6 -0
- package/dist/schema/dialog/index.d.ts +6 -0
- package/dist/schema/dialog/index.js +94 -0
- package/dist/schema/dialog/index.js.map +1 -0
- package/dist/schema/dialog/index.mjs +67 -0
- package/dist/schema/dialog/index.mjs.map +1 -0
- package/dist/schema/hidden/hidden.d.mts +22 -0
- package/dist/schema/hidden/hidden.d.ts +22 -0
- package/dist/schema/hidden/hidden.js +42 -0
- package/dist/schema/hidden/hidden.js.map +1 -0
- package/dist/schema/hidden/hidden.mjs +17 -0
- package/dist/schema/hidden/hidden.mjs.map +1 -0
- package/dist/schema/hidden/index.d.mts +3 -0
- package/dist/schema/hidden/index.d.ts +3 -0
- package/dist/schema/hidden/index.js +44 -0
- package/dist/schema/hidden/index.js.map +1 -0
- package/dist/schema/hidden/index.mjs +17 -0
- package/dist/schema/hidden/index.mjs.map +1 -0
- package/dist/schema/image/image.d.mts +15 -0
- package/dist/schema/image/image.d.ts +15 -0
- package/dist/schema/image/image.js +47 -0
- package/dist/schema/image/image.js.map +1 -0
- package/dist/schema/image/image.mjs +22 -0
- package/dist/schema/image/image.mjs.map +1 -0
- package/dist/schema/image/index.d.mts +3 -0
- package/dist/schema/image/index.d.ts +3 -0
- package/dist/schema/image/index.js +49 -0
- package/dist/schema/image/index.js.map +1 -0
- package/dist/schema/image/index.mjs +22 -0
- package/dist/schema/image/index.mjs.map +1 -0
- package/dist/schema/multifield/index.d.mts +4 -0
- package/dist/schema/multifield/index.d.ts +4 -0
- package/dist/schema/multifield/index.js +50 -0
- package/dist/schema/multifield/index.js.map +1 -0
- package/dist/schema/multifield/index.mjs +23 -0
- package/dist/schema/multifield/index.mjs.map +1 -0
- package/dist/schema/multifield/multifield.d.mts +17 -0
- package/dist/schema/multifield/multifield.d.ts +17 -0
- package/dist/schema/multifield/multifield.js +48 -0
- package/dist/schema/multifield/multifield.js.map +1 -0
- package/dist/schema/multifield/multifield.mjs +23 -0
- package/dist/schema/multifield/multifield.mjs.map +1 -0
- package/dist/schema/object/index.d.mts +6 -0
- package/dist/schema/object/index.d.ts +6 -0
- package/dist/schema/object/index.js +51 -0
- package/dist/schema/object/index.js.map +1 -0
- package/dist/schema/object/index.mjs +24 -0
- package/dist/schema/object/index.mjs.map +1 -0
- package/dist/schema/object/object.d.mts +12 -0
- package/dist/schema/object/object.d.ts +12 -0
- package/dist/schema/object/object.js +49 -0
- package/dist/schema/object/object.js.map +1 -0
- package/dist/schema/object/object.mjs +24 -0
- package/dist/schema/object/object.mjs.map +1 -0
- package/dist/schema/optional/index.d.mts +3 -0
- package/dist/schema/optional/index.d.ts +3 -0
- package/dist/schema/optional/index.js +44 -0
- package/dist/schema/optional/index.js.map +1 -0
- package/dist/schema/optional/index.mjs +17 -0
- package/dist/schema/optional/index.mjs.map +1 -0
- package/dist/schema/optional/optional.d.mts +26 -0
- package/dist/schema/optional/optional.d.ts +26 -0
- package/dist/schema/optional/optional.js +42 -0
- package/dist/schema/optional/optional.js.map +1 -0
- package/dist/schema/optional/optional.mjs +17 -0
- package/dist/schema/optional/optional.mjs.map +1 -0
- package/dist/schema/pathbrowser/index.d.mts +3 -0
- package/dist/schema/pathbrowser/index.d.ts +3 -0
- package/dist/schema/pathbrowser/index.js +49 -0
- package/dist/schema/pathbrowser/index.js.map +1 -0
- package/dist/schema/pathbrowser/index.mjs +22 -0
- package/dist/schema/pathbrowser/index.mjs.map +1 -0
- package/dist/schema/pathbrowser/pathbrowser.d.mts +15 -0
- package/dist/schema/pathbrowser/pathbrowser.d.ts +15 -0
- package/dist/schema/pathbrowser/pathbrowser.js +47 -0
- package/dist/schema/pathbrowser/pathbrowser.js.map +1 -0
- package/dist/schema/pathbrowser/pathbrowser.mjs +22 -0
- package/dist/schema/pathbrowser/pathbrowser.mjs.map +1 -0
- package/dist/schema/select/index.d.mts +3 -0
- package/dist/schema/select/index.d.ts +3 -0
- package/dist/schema/select/index.js +49 -0
- package/dist/schema/select/index.js.map +1 -0
- package/dist/schema/select/index.mjs +22 -0
- package/dist/schema/select/index.mjs.map +1 -0
- package/dist/schema/select/select.d.mts +18 -0
- package/dist/schema/select/select.d.ts +18 -0
- package/dist/schema/select/select.js +47 -0
- package/dist/schema/select/select.js.map +1 -0
- package/dist/schema/select/select.mjs +22 -0
- package/dist/schema/select/select.mjs.map +1 -0
- package/dist/schema/text/index.d.mts +3 -0
- package/dist/schema/text/index.d.ts +3 -0
- package/dist/schema/text/index.js +49 -0
- package/dist/schema/text/index.js.map +1 -0
- package/dist/schema/text/index.mjs +22 -0
- package/dist/schema/text/index.mjs.map +1 -0
- package/dist/schema/text/text.d.mts +15 -0
- package/dist/schema/text/text.d.ts +15 -0
- package/dist/schema/text/text.js +47 -0
- package/dist/schema/text/text.js.map +1 -0
- package/dist/schema/text/text.mjs +22 -0
- package/dist/schema/text/text.mjs.map +1 -0
- package/dist/types/index.d.mts +5 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +19 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/types/infer.d.mts +9 -0
- package/dist/types/infer.d.ts +9 -0
- package/dist/types/infer.js +19 -0
- package/dist/types/infer.js.map +1 -0
- package/dist/types/infer.mjs +1 -0
- package/dist/types/infer.mjs.map +1 -0
- package/dist/types/object.d.mts +39 -0
- package/dist/types/object.d.ts +39 -0
- package/dist/types/object.js +19 -0
- package/dist/types/object.js.map +1 -0
- package/dist/types/object.mjs +1 -0
- package/dist/types/object.mjs.map +1 -0
- package/dist/types/props.d.mts +13 -0
- package/dist/types/props.d.ts +13 -0
- package/dist/types/props.js +19 -0
- package/dist/types/props.js.map +1 -0
- package/dist/types/props.mjs +1 -0
- package/dist/types/props.mjs.map +1 -0
- package/dist/types/schema.d.mts +42 -0
- package/dist/types/schema.d.ts +42 -0
- package/dist/types/schema.js +19 -0
- package/dist/types/schema.js.map +1 -0
- package/dist/types/schema.mjs +1 -0
- package/dist/types/schema.mjs.map +1 -0
- package/dist/types/utils.d.mts +32 -0
- package/dist/types/utils.d.ts +32 -0
- package/dist/types/utils.js +19 -0
- package/dist/types/utils.js.map +1 -0
- package/dist/types/utils.mjs +1 -0
- package/dist/types/utils.mjs.map +1 -0
- package/dist/types/webcomponent.d.mts +7 -0
- package/dist/types/webcomponent.d.ts +7 -0
- package/dist/types/webcomponent.js +19 -0
- package/dist/types/webcomponent.js.map +1 -0
- package/dist/types/webcomponent.mjs +1 -0
- package/dist/types/webcomponent.mjs.map +1 -0
- package/dist/utils/pascalToKebab.d.mts +3 -0
- package/dist/utils/pascalToKebab.d.ts +3 -0
- package/dist/utils/pascalToKebab.js +33 -0
- package/dist/utils/pascalToKebab.js.map +1 -0
- package/dist/utils/pascalToKebab.mjs +8 -0
- package/dist/utils/pascalToKebab.mjs.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { WebcomponentPropTypes } from './webcomponent.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Base schema type.
|
|
5
|
+
*/
|
|
6
|
+
interface BaseSchema<TOutput = any> {
|
|
7
|
+
/**
|
|
8
|
+
* The schema type.
|
|
9
|
+
*/
|
|
10
|
+
type: string;
|
|
11
|
+
/**
|
|
12
|
+
* Internal function to transform the schema into JS object.
|
|
13
|
+
*/
|
|
14
|
+
_parse(): object;
|
|
15
|
+
/**
|
|
16
|
+
* Internal function to transform the schema into JS object for webcomponent consumption.
|
|
17
|
+
*/
|
|
18
|
+
_primitive(): WebcomponentPropTypes | Record<string, WebcomponentPropTypes>;
|
|
19
|
+
/**
|
|
20
|
+
* Input and output type.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
_types?: {
|
|
25
|
+
output: TOutput;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Base input for field types.
|
|
30
|
+
*/
|
|
31
|
+
interface BaseFieldInput {
|
|
32
|
+
/**
|
|
33
|
+
* The field label.
|
|
34
|
+
*/
|
|
35
|
+
label: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Output inference type.
|
|
39
|
+
*/
|
|
40
|
+
type Output<TSchema extends BaseSchema> = NonNullable<TSchema['_types']>['output'];
|
|
41
|
+
|
|
42
|
+
export type { BaseFieldInput, BaseSchema, Output };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { WebcomponentPropTypes } from './webcomponent.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Base schema type.
|
|
5
|
+
*/
|
|
6
|
+
interface BaseSchema<TOutput = any> {
|
|
7
|
+
/**
|
|
8
|
+
* The schema type.
|
|
9
|
+
*/
|
|
10
|
+
type: string;
|
|
11
|
+
/**
|
|
12
|
+
* Internal function to transform the schema into JS object.
|
|
13
|
+
*/
|
|
14
|
+
_parse(): object;
|
|
15
|
+
/**
|
|
16
|
+
* Internal function to transform the schema into JS object for webcomponent consumption.
|
|
17
|
+
*/
|
|
18
|
+
_primitive(): WebcomponentPropTypes | Record<string, WebcomponentPropTypes>;
|
|
19
|
+
/**
|
|
20
|
+
* Input and output type.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
_types?: {
|
|
25
|
+
output: TOutput;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Base input for field types.
|
|
30
|
+
*/
|
|
31
|
+
interface BaseFieldInput {
|
|
32
|
+
/**
|
|
33
|
+
* The field label.
|
|
34
|
+
*/
|
|
35
|
+
label: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Output inference type.
|
|
39
|
+
*/
|
|
40
|
+
type Output<TSchema extends BaseSchema> = NonNullable<TSchema['_types']>['output'];
|
|
41
|
+
|
|
42
|
+
export type { BaseFieldInput, BaseSchema, Output };
|
|
@@ -0,0 +1,19 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types/schema.ts
|
|
17
|
+
var schema_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(schema_exports);
|
|
19
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/schema.ts"],"sourcesContent":["import { WebcomponentPropTypes } from './webcomponent';\n\n/**\n * Base schema type.\n */\nexport interface BaseSchema<TOutput = any> {\n /**\n * The schema type.\n */\n type: string;\n\n /**\n * Internal function to transform the schema into JS object.\n */\n _parse(): object;\n\n /**\n * Internal function to transform the schema into JS object for webcomponent consumption.\n */\n _primitive(): WebcomponentPropTypes | Record<string, WebcomponentPropTypes>;\n\n /**\n * Input and output type.\n *\n * @internal\n */\n _types?: {\n output: TOutput,\n };\n}\n\n/**\n * Base input for field types.\n */\nexport interface BaseFieldInput {\n /**\n * The field label.\n */\n label: string;\n}\n\n/**\n * Output inference type.\n */\nexport type Output<TSchema extends BaseSchema> = NonNullable<\n TSchema['_types']\n>['output'];"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve type.
|
|
3
|
+
*
|
|
4
|
+
* Hint: This type has no effect and is only used so that TypeScript displays
|
|
5
|
+
* the final type in the preview instead of the utility types used.
|
|
6
|
+
*/
|
|
7
|
+
type Resolve<T> = T;
|
|
8
|
+
/**
|
|
9
|
+
* Resolve object type.
|
|
10
|
+
*
|
|
11
|
+
* Hint: This type has no effect and is only used so that TypeScript displays
|
|
12
|
+
* the final type in the preview instead of the utility types used.
|
|
13
|
+
*/
|
|
14
|
+
type ResolveObject<T> = Resolve<{
|
|
15
|
+
[k in keyof T]: T[k];
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Create a type that requires at least one of the keys in the object.
|
|
19
|
+
*/
|
|
20
|
+
type RequireAtLeastOne<TObject> = {
|
|
21
|
+
[Key in keyof TObject]: Required<Pick<TObject, Key>> & Partial<Object>;
|
|
22
|
+
}[keyof TObject];
|
|
23
|
+
/**
|
|
24
|
+
* Make a mask for an object.
|
|
25
|
+
*
|
|
26
|
+
* Receives an object and make a object with the keys, but only a boolean value
|
|
27
|
+
*/
|
|
28
|
+
type EntryMask<T> = RequireAtLeastOne<{
|
|
29
|
+
[key in keyof T]?: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
|
|
32
|
+
export type { EntryMask, RequireAtLeastOne, ResolveObject };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve type.
|
|
3
|
+
*
|
|
4
|
+
* Hint: This type has no effect and is only used so that TypeScript displays
|
|
5
|
+
* the final type in the preview instead of the utility types used.
|
|
6
|
+
*/
|
|
7
|
+
type Resolve<T> = T;
|
|
8
|
+
/**
|
|
9
|
+
* Resolve object type.
|
|
10
|
+
*
|
|
11
|
+
* Hint: This type has no effect and is only used so that TypeScript displays
|
|
12
|
+
* the final type in the preview instead of the utility types used.
|
|
13
|
+
*/
|
|
14
|
+
type ResolveObject<T> = Resolve<{
|
|
15
|
+
[k in keyof T]: T[k];
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Create a type that requires at least one of the keys in the object.
|
|
19
|
+
*/
|
|
20
|
+
type RequireAtLeastOne<TObject> = {
|
|
21
|
+
[Key in keyof TObject]: Required<Pick<TObject, Key>> & Partial<Object>;
|
|
22
|
+
}[keyof TObject];
|
|
23
|
+
/**
|
|
24
|
+
* Make a mask for an object.
|
|
25
|
+
*
|
|
26
|
+
* Receives an object and make a object with the keys, but only a boolean value
|
|
27
|
+
*/
|
|
28
|
+
type EntryMask<T> = RequireAtLeastOne<{
|
|
29
|
+
[key in keyof T]?: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
|
|
32
|
+
export type { EntryMask, RequireAtLeastOne, ResolveObject };
|
|
@@ -0,0 +1,19 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types/utils.ts
|
|
17
|
+
var utils_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(utils_exports);
|
|
19
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/utils.ts"],"sourcesContent":["/**\n * Resolve type.\n *\n * Hint: This type has no effect and is only used so that TypeScript displays\n * the final type in the preview instead of the utility types used.\n */\ntype Resolve<T> = T;\n\n/**\n * Resolve object type.\n *\n * Hint: This type has no effect and is only used so that TypeScript displays\n * the final type in the preview instead of the utility types used.\n */\nexport type ResolveObject<T> = Resolve<{ [k in keyof T]: T[k] }>;\n\n/**\n * Create a type that requires at least one of the keys in the object.\n */\nexport type RequireAtLeastOne<TObject> = {\n [Key in keyof TObject]: Required<Pick<TObject, Key>> &\n Partial<Object>;\n}[keyof TObject]\n\n/**\n * Make a mask for an object.\n *\n * Receives an object and make a object with the keys, but only a boolean value\n */\nexport type EntryMask<T> = RequireAtLeastOne<{ [key in keyof T]?: boolean }>;"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types/webcomponent.ts
|
|
17
|
+
var webcomponent_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(webcomponent_exports);
|
|
19
|
+
//# sourceMappingURL=webcomponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/webcomponent.ts"],"sourcesContent":["/**\n * Webcomponent enum type for r2wc.\n *\n */\nexport type WebcomponentPropTypes = \"string\" | \"number\" | \"boolean\" | \"json\";"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=webcomponent.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
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/utils/pascalToKebab.ts
|
|
21
|
+
var pascalToKebab_exports = {};
|
|
22
|
+
__export(pascalToKebab_exports, {
|
|
23
|
+
pascalToKebab: () => pascalToKebab
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(pascalToKebab_exports);
|
|
26
|
+
function pascalToKebab(pascalCaseString) {
|
|
27
|
+
return pascalCaseString.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
28
|
+
}
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
pascalToKebab
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=pascalToKebab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/pascalToKebab.ts"],"sourcesContent":["export function pascalToKebab(pascalCaseString: string) {\n return pascalCaseString\n .replace(/([a-z])([A-Z])/g, '$1-$2')\n .toLowerCase();\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,cAAc,kBAA0B;AACtD,SAAO,iBACJ,QAAQ,mBAAmB,OAAO,EAClC,YAAY;AACjB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/pascalToKebab.ts"],"sourcesContent":["export function pascalToKebab(pascalCaseString: string) {\n return pascalCaseString\n .replace(/([a-z])([A-Z])/g, '$1-$2')\n .toLowerCase();\n}"],"mappings":";AAAO,SAAS,cAAc,kBAA0B;AACtD,SAAO,iBACJ,QAAQ,mBAAmB,OAAO,EAClC,YAAY;AACjB;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ethereal-nexus/core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"author": "",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"require": "./dist/index.js",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"module": "./dist/index.mjs",
|
|
17
|
+
"types": "./dist/index.d.mts",
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/react": "^18.3.0",
|
|
25
|
+
"react": "^18.3.1",
|
|
26
|
+
"tsup": "^8.0.2",
|
|
27
|
+
"typescript": "^5.4.5"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@r2wc/react-to-web-component": "^2.0.3"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
34
|
+
"build": "tsup ./src",
|
|
35
|
+
"dev": "tsup ./src --watch"
|
|
36
|
+
}
|
|
37
|
+
}
|