@batono/ui 0.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/LICENSE +21 -0
- package/README.md +64 -0
- package/dist/actions/ModalAction.d.ts +10 -0
- package/dist/actions/ModalAction.d.ts.map +1 -0
- package/dist/actions/ModalAction.js +22 -0
- package/dist/actions/ModalAction.js.map +1 -0
- package/dist/actions/RequestAction.d.ts +11 -0
- package/dist/actions/RequestAction.d.ts.map +1 -0
- package/dist/actions/RequestAction.js +25 -0
- package/dist/actions/RequestAction.js.map +1 -0
- package/dist/definitions/ActionButton.d.ts +13 -0
- package/dist/definitions/ActionButton.d.ts.map +1 -0
- package/dist/definitions/ActionButton.js +23 -0
- package/dist/definitions/ActionButton.js.map +1 -0
- package/dist/definitions/ActionButtons.d.ts +9 -0
- package/dist/definitions/ActionButtons.d.ts.map +1 -0
- package/dist/definitions/ActionButtons.js +15 -0
- package/dist/definitions/ActionButtons.js.map +1 -0
- package/dist/definitions/Field.d.ts +10 -0
- package/dist/definitions/Field.d.ts.map +1 -0
- package/dist/definitions/Field.js +31 -0
- package/dist/definitions/Field.js.map +1 -0
- package/dist/definitions/Header.d.ts +17 -0
- package/dist/definitions/Header.d.ts.map +1 -0
- package/dist/definitions/Header.js +39 -0
- package/dist/definitions/Header.js.map +1 -0
- package/dist/definitions/Inline.d.ts +9 -0
- package/dist/definitions/Inline.d.ts.map +1 -0
- package/dist/definitions/Inline.js +15 -0
- package/dist/definitions/Inline.js.map +1 -0
- package/dist/definitions/Link.d.ts +9 -0
- package/dist/definitions/Link.d.ts.map +1 -0
- package/dist/definitions/Link.js +18 -0
- package/dist/definitions/Link.js.map +1 -0
- package/dist/definitions/Meta.d.ts +13 -0
- package/dist/definitions/Meta.d.ts.map +1 -0
- package/dist/definitions/Meta.js +33 -0
- package/dist/definitions/Meta.js.map +1 -0
- package/dist/definitions/Note.d.ts +9 -0
- package/dist/definitions/Note.d.ts.map +1 -0
- package/dist/definitions/Note.js +25 -0
- package/dist/definitions/Note.js.map +1 -0
- package/dist/definitions/Row.d.ts +9 -0
- package/dist/definitions/Row.d.ts.map +1 -0
- package/dist/definitions/Row.js +15 -0
- package/dist/definitions/Row.js.map +1 -0
- package/dist/definitions/Rows.d.ts +9 -0
- package/dist/definitions/Rows.d.ts.map +1 -0
- package/dist/definitions/Rows.js +15 -0
- package/dist/definitions/Rows.js.map +1 -0
- package/dist/definitions/Section.d.ts +13 -0
- package/dist/definitions/Section.d.ts.map +1 -0
- package/dist/definitions/Section.js +36 -0
- package/dist/definitions/Section.js.map +1 -0
- package/dist/definitions/Stat.d.ts +9 -0
- package/dist/definitions/Stat.d.ts.map +1 -0
- package/dist/definitions/Stat.js +18 -0
- package/dist/definitions/Stat.js.map +1 -0
- package/dist/definitions/Text.d.ts +9 -0
- package/dist/definitions/Text.d.ts.map +1 -0
- package/dist/definitions/Text.js +15 -0
- package/dist/definitions/Text.js.map +1 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/types/results.d.ts +91 -0
- package/dist/types/results.d.ts.map +1 -0
- package/dist/types/results.js +2 -0
- package/dist/types/results.js.map +1 -0
- package/dist/types/types.d.ts +2 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/types.js +2 -0
- package/dist/types/types.js.map +1 -0
- package/dist/utils/utils.d.ts +2 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +2 -0
- package/dist/utils/utils.js.map +1 -0
- package/package.json +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Pascal Pfeifer <pascal@pfeifer.zone>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# @batono/ui
|
|
2
|
+
|
|
3
|
+
> SHORT_DESCRIPTION.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@batono/ui)
|
|
6
|
+
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
[](https://nodejs.org/)
|
|
9
|
+
[](https://codecov.io/gh/batono/ui)
|
|
10
|
+
|
|
11
|
+
This package
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- ✅ No dependencies
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install @batono/ui
|
|
25
|
+
````
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Basic Usage
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import {x} from '@batono/ui'
|
|
34
|
+
|
|
35
|
+
const t =....
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
### Example2
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import {x} from '@batono/ui'
|
|
45
|
+
|
|
46
|
+
const t =....
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Design Goals
|
|
57
|
+
|
|
58
|
+
* Predictable behavior
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## License
|
|
63
|
+
|
|
64
|
+
MIT
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type IActionDefinition, type IInteractionGraph } from "@batono/core";
|
|
2
|
+
import type { ModalActionResult } from "../types/results.js";
|
|
3
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
4
|
+
export declare class ModalAction implements IActionDefinition<ModalAction, ModalActionResult> {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(title: string, payload?: Record<string, unknown>);
|
|
7
|
+
withPayload(payload: Record<string, unknown>): ModalAction;
|
|
8
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): ModalActionResult;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ModalAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalAction.d.ts","sourceRoot":"","sources":["../../src/actions/ModalAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAC7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AAErE,qBAAa,WAAY,YAAW,iBAAiB,CAAC,WAAW,EAAE,iBAAiB,CAAC;;gBAIvE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAK5D,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,WAAW;IAI1D,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,iBAAiB;CAOzF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { buildDefinition } from "@batono/core";
|
|
2
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
3
|
+
export class ModalAction {
|
|
4
|
+
#title;
|
|
5
|
+
#payload;
|
|
6
|
+
constructor(title, payload) {
|
|
7
|
+
this.#title = title;
|
|
8
|
+
if (payload)
|
|
9
|
+
this.#payload = payload;
|
|
10
|
+
}
|
|
11
|
+
withPayload(payload) {
|
|
12
|
+
return new ModalAction(this.#title, payload);
|
|
13
|
+
}
|
|
14
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
15
|
+
return buildDefinition(interactionGraph, {
|
|
16
|
+
type: 'modal',
|
|
17
|
+
title: this.#title,
|
|
18
|
+
payload: this.#payload,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ModalAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalAction.js","sourceRoot":"","sources":["../../src/actions/ModalAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAiD,MAAM,cAAc,CAAC;AAE7F,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AAErE,MAAM,OAAO,WAAW;IACb,MAAM,CAAQ;IACd,QAAQ,CAA0B;IAE3C,YAAY,KAAa,EAAE,OAAiC;QAC1D,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACnB,IAAI,OAAO;YAAE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;IACtC,CAAC;IAED,WAAW,CAAC,OAAgC;QAC1C,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9C,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,OAAgB;YACtB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,OAAO,EAAE,IAAI,CAAC,QAAQ;SACvB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RequestActionResult } from "../types/results.js";
|
|
2
|
+
import { type IActionDefinition, type IInteractionGraph } from "@batono/core";
|
|
3
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
4
|
+
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
5
|
+
export declare class RequestAction implements IActionDefinition<RequestAction, RequestActionResult> {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(method: HttpMethod, url: string, payload?: Record<string, unknown>);
|
|
8
|
+
withPayload(payload: Record<string, unknown>): RequestAction;
|
|
9
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): RequestActionResult;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=RequestAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestAction.d.ts","sourceRoot":"","sources":["../../src/actions/RequestAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAkB,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAC7F,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AAErE,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEpE,qBAAa,aAAc,YAAW,iBAAiB,CAAC,aAAa,EAAE,mBAAmB,CAAC;;gBAK7E,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAM9E,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,aAAa;IAI5D,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,mBAAmB;CAQ3F"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { buildDefinition } from "@batono/core";
|
|
2
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
3
|
+
export class RequestAction {
|
|
4
|
+
#method;
|
|
5
|
+
#url;
|
|
6
|
+
#payload;
|
|
7
|
+
constructor(method, url, payload) {
|
|
8
|
+
this.#method = method;
|
|
9
|
+
this.#url = url;
|
|
10
|
+
if (payload)
|
|
11
|
+
this.#payload = payload;
|
|
12
|
+
}
|
|
13
|
+
withPayload(payload) {
|
|
14
|
+
return new RequestAction(this.#method, this.#url, payload);
|
|
15
|
+
}
|
|
16
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
17
|
+
return buildDefinition(interactionGraph, {
|
|
18
|
+
type: 'request',
|
|
19
|
+
method: this.#method,
|
|
20
|
+
url: this.#url,
|
|
21
|
+
payload: this.#payload,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=RequestAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestAction.js","sourceRoot":"","sources":["../../src/actions/RequestAction.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAiD,MAAM,cAAc,CAAC;AAC7F,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AAIrE,MAAM,OAAO,aAAa;IACf,OAAO,CAAY;IACnB,IAAI,CAAQ;IACZ,QAAQ,CAA0B;IAE3C,YAAY,MAAkB,EAAE,GAAW,EAAE,OAAiC;QAC5E,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;QACrB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAA;QACf,IAAI,OAAO;YAAE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;IACtC,CAAC;IAED,WAAW,CAAC,OAAgC;QAC1C,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC5D,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,SAAkB;YACxB,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,OAAO,EAAE,IAAI,CAAC,QAAQ;SACvB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ActionResult } from "../types/results.js";
|
|
2
|
+
import type { RenderVariant } from "../types/types.js";
|
|
3
|
+
import { type IBuildable, type IDefinedAction, type IInteractionGraph } from "@batono/core";
|
|
4
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
5
|
+
export type ActionOptions = {
|
|
6
|
+
variant?: RenderVariant;
|
|
7
|
+
};
|
|
8
|
+
export declare class ActionButton implements IBuildable<ActionResult> {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(label: string, action?: IDefinedAction, options?: ActionOptions);
|
|
11
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): ActionResult;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=ActionButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../src/definitions/ActionButton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAC3G,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AAErE,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,CAAC,EAAE,aAAa,CAAA;CACxB,CAAA;AAED,qBAAa,YAAa,YAAW,UAAU,CAAC,YAAY,CAAC;;gBAK/C,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,aAAa;IAM3E,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,YAAY;CAQpF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { buildDefinition } from "@batono/core";
|
|
2
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
3
|
+
export class ActionButton {
|
|
4
|
+
#label;
|
|
5
|
+
#variant;
|
|
6
|
+
#action;
|
|
7
|
+
constructor(label, action, options) {
|
|
8
|
+
this.#label = label;
|
|
9
|
+
if (action)
|
|
10
|
+
this.#action = action;
|
|
11
|
+
if (options?.variant)
|
|
12
|
+
this.#variant = options.variant;
|
|
13
|
+
}
|
|
14
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
15
|
+
return buildDefinition(interactionGraph, {
|
|
16
|
+
type: 'action',
|
|
17
|
+
label: this.#label,
|
|
18
|
+
variant: this.#variant,
|
|
19
|
+
action: this.#action?.[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=ActionButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButton.js","sourceRoot":"","sources":["../../src/definitions/ActionButton.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAA+D,MAAM,cAAc,CAAC;AAC3G,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AAMrE,MAAM,OAAO,YAAY;IACd,MAAM,CAAQ;IACd,QAAQ,CAAgB;IACxB,OAAO,CAAiB;IAEjC,YAAY,KAAa,EAAE,MAAuB,EAAE,OAAuB;QACzE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACnB,IAAI,MAAM;YAAE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;QACjC,IAAI,OAAO,EAAE,OAAO;YAAE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAA;IACvD,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,QAAiB;YACvB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC;SACzE,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ActionResult, ActionsResult } from "../types/results.js";
|
|
2
|
+
import { type IBuildable, type IInteractionGraph } from "@batono/core";
|
|
3
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
4
|
+
export declare class ActionButtons implements IBuildable<ActionsResult> {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(...items: IBuildable<ActionResult>[]);
|
|
7
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): ActionsResult;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=ActionButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButtons.d.ts","sourceRoot":"","sources":["../../src/definitions/ActionButtons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAE,aAAa,EAAC,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AACtF,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AAErE,qBAAa,aAAc,YAAW,UAAU,CAAC,aAAa,CAAC;;gBAGjD,GAAG,KAAK,EAAE,UAAU,CAAC,YAAY,CAAC,EAAE;IAIhD,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,aAAa;CAMrF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { buildDefinition } from "@batono/core";
|
|
2
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
3
|
+
export class ActionButtons {
|
|
4
|
+
#items;
|
|
5
|
+
constructor(...items) {
|
|
6
|
+
this.#items = items;
|
|
7
|
+
}
|
|
8
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
9
|
+
return buildDefinition(interactionGraph, {
|
|
10
|
+
type: 'actions',
|
|
11
|
+
items: this.#items.map(item => item[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph))
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ActionButtons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButtons.js","sourceRoot":"","sources":["../../src/definitions/ActionButtons.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAA0C,MAAM,cAAc,CAAC;AACtF,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AAErE,MAAM,OAAO,aAAa;IACf,MAAM,CAA4B;IAE3C,YAAY,GAAG,KAAiC;QAC9C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;IACrB,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,SAAkB;YACxB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC,CAAC;SACvF,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RenderVariant } from "../types/types.js";
|
|
2
|
+
import type { FieldResult } from "../types/results.js";
|
|
3
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
4
|
+
import { type IBuildable, type IInteractionGraph } from "@batono/core";
|
|
5
|
+
export declare class Field implements IBuildable {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(label: string, value: IBuildable | string | null, variant?: RenderVariant);
|
|
8
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): FieldResult;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../src/definitions/Field.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAEtF,qBAAa,KAAM,YAAW,UAAU;;gBAK1B,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,aAAa;IAYrF,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,WAAW;CAQnF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Text } from "./Text.js";
|
|
2
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
3
|
+
import { buildDefinition } from "@batono/core";
|
|
4
|
+
export class Field {
|
|
5
|
+
#label;
|
|
6
|
+
#value;
|
|
7
|
+
#variant;
|
|
8
|
+
constructor(label, value, variant) {
|
|
9
|
+
this.#label = label;
|
|
10
|
+
if (variant)
|
|
11
|
+
this.#variant = variant;
|
|
12
|
+
if (value == null) {
|
|
13
|
+
this.#value = null;
|
|
14
|
+
}
|
|
15
|
+
else if (typeof value === 'string') {
|
|
16
|
+
this.#value = new Text(value);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
this.#value = value;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
23
|
+
return buildDefinition(interactionGraph, {
|
|
24
|
+
type: 'field',
|
|
25
|
+
label: this.#label,
|
|
26
|
+
value: this.#value?.[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) ?? null,
|
|
27
|
+
variant: this.#variant,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=Field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../../src/definitions/Field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAG/B,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,eAAe,EAA0C,MAAM,cAAc,CAAC;AAEtF,MAAM,OAAO,KAAK;IACP,MAAM,CAAQ;IACd,MAAM,CAAmB;IACzB,QAAQ,CAAgB;IAEjC,YAAY,KAAa,EAAE,KAAiC,EAAE,OAAuB;QACnF,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACnB,IAAI,OAAO;YAAE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACpC,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAClB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAA;QACpB,CAAC;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YACrC,IAAI,CAAC,MAAM,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;QAC/B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACrB,CAAC;IACH,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,OAAgB;YACtB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC,IAAI,IAAI;YAC9E,OAAO,EAAE,IAAI,CAAC,QAAQ;SACvB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ActionsResult, HeaderResult, InlineResult } from "../types/results.js";
|
|
2
|
+
import { type IBuildable, type IInteractionGraph } from "@batono/core";
|
|
3
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
4
|
+
export type HeaderOptions = {
|
|
5
|
+
avatar?: string;
|
|
6
|
+
subtitle?: IBuildable<InlineResult>;
|
|
7
|
+
actions?: IBuildable<ActionsResult>;
|
|
8
|
+
};
|
|
9
|
+
export declare class Header implements IBuildable<HeaderResult> {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(title: string, options?: HeaderOptions);
|
|
12
|
+
withAvatar(avatar: string): this;
|
|
13
|
+
withSubtitle(subtitle: IBuildable<InlineResult>): this;
|
|
14
|
+
withActions(actions: IBuildable<ActionsResult>): this;
|
|
15
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): HeaderResult;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/definitions/Header.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAE,YAAY,EAAE,YAAY,EAAC,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AACtF,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AAErE,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,UAAU,CAAC,YAAY,CAAC,CAAA;IACnC,OAAO,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,CAAA;CACpC,CAAA;AAED,qBAAa,MAAO,YAAW,UAAU,CAAC,YAAY,CAAC;;gBAMzC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAOlD,UAAU,CAAC,MAAM,EAAE,MAAM;IAKzB,YAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAK/C,WAAW,CAAC,OAAO,EAAE,UAAU,CAAC,aAAa,CAAC;IAK9C,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,YAAY;CASpF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { buildDefinition } from "@batono/core";
|
|
2
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
3
|
+
export class Header {
|
|
4
|
+
#title;
|
|
5
|
+
#avatar;
|
|
6
|
+
#subtitle;
|
|
7
|
+
#actions;
|
|
8
|
+
constructor(title, options) {
|
|
9
|
+
this.#title = title;
|
|
10
|
+
if (options?.avatar)
|
|
11
|
+
this.#avatar = options.avatar;
|
|
12
|
+
if (options?.subtitle)
|
|
13
|
+
this.#subtitle = options.subtitle;
|
|
14
|
+
if (options?.actions)
|
|
15
|
+
this.#actions = options.actions;
|
|
16
|
+
}
|
|
17
|
+
withAvatar(avatar) {
|
|
18
|
+
this.#avatar = avatar;
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
withSubtitle(subtitle) {
|
|
22
|
+
this.#subtitle = subtitle;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
withActions(actions) {
|
|
26
|
+
this.#actions = actions;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
30
|
+
return buildDefinition(interactionGraph, {
|
|
31
|
+
type: 'header',
|
|
32
|
+
title: this.#title,
|
|
33
|
+
avatar: this.#avatar,
|
|
34
|
+
subtitle: this.#subtitle?.[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph),
|
|
35
|
+
actions: this.#actions?.[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=Header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../src/definitions/Header.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAA0C,MAAM,cAAc,CAAC;AACtF,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AAQrE,MAAM,OAAO,MAAM;IACR,MAAM,CAAQ;IACvB,OAAO,CAAS;IAChB,SAAS,CAA2B;IACpC,QAAQ,CAA4B;IAEpC,YAAY,KAAa,EAAE,OAAuB;QAChD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACnB,IAAI,OAAO,EAAE,MAAM;YAAE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAA;QAClD,IAAI,OAAO,EAAE,QAAQ;YAAE,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAA;QACxD,IAAI,OAAO,EAAE,OAAO;YAAE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAA;IACvD,CAAC;IAED,UAAU,CAAC,MAAc;QACvB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;QACrB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,YAAY,CAAC,QAAkC;QAC7C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAA;QACzB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,WAAW,CAAC,OAAkC;QAC5C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACvB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,QAAiB;YACvB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC;YAC5E,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC;SAC3E,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InlineResult } from "../types/results.js";
|
|
2
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
3
|
+
import { type IBuildable, type IInteractionGraph } from "@batono/core";
|
|
4
|
+
export declare class Inline implements IBuildable {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(...items: IBuildable[]);
|
|
7
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): InlineResult;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Inline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../../src/definitions/Inline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAEtF,qBAAa,MAAO,YAAW,UAAU;;gBAG3B,GAAG,KAAK,EAAE,UAAU,EAAE;IAIlC,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,YAAY;CAMpF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { buildDefinition } from "@batono/core";
|
|
3
|
+
export class Inline {
|
|
4
|
+
#items;
|
|
5
|
+
constructor(...items) {
|
|
6
|
+
this.#items = items;
|
|
7
|
+
}
|
|
8
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
9
|
+
return buildDefinition(interactionGraph, {
|
|
10
|
+
type: 'inline',
|
|
11
|
+
items: this.#items.map(item => item[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph))
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Inline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inline.js","sourceRoot":"","sources":["../../src/definitions/Inline.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,eAAe,EAA0C,MAAM,cAAc,CAAC;AAEtF,MAAM,OAAO,MAAM;IACR,MAAM,CAAc;IAE7B,YAAY,GAAG,KAAmB;QAChC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;IACrB,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,QAAiB;YACvB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC,CAAC;SACvF,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LinkResult } from "../types/results.js";
|
|
2
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
3
|
+
import { type IBuildable, type IDefinedAction, type IInteractionGraph } from "@batono/core";
|
|
4
|
+
export declare class Link implements IBuildable<LinkResult> {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(content: string, action: IDefinedAction);
|
|
7
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): LinkResult;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/definitions/Link.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAE3G,qBAAa,IAAK,YAAW,UAAU,CAAC,UAAU,CAAC;;gBAIrC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc;IAKnD,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,UAAU;CAOlF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { buildDefinition } from "@batono/core";
|
|
3
|
+
export class Link {
|
|
4
|
+
#content;
|
|
5
|
+
#action;
|
|
6
|
+
constructor(content, action) {
|
|
7
|
+
this.#content = content;
|
|
8
|
+
this.#action = action;
|
|
9
|
+
}
|
|
10
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
11
|
+
return buildDefinition(interactionGraph, {
|
|
12
|
+
type: 'link',
|
|
13
|
+
content: this.#content,
|
|
14
|
+
action: this.#action[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph)
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=Link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../src/definitions/Link.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,eAAe,EAA+D,MAAM,cAAc,CAAC;AAE3G,MAAM,OAAO,IAAI;IACN,QAAQ,CAAQ;IAChB,OAAO,CAAgB;IAEhC,YAAY,OAAe,EAAE,MAAsB;QACjD,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACvB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;IACvB,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,MAAe;YACrB,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC;SACvE,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { type IBuildable, type IInteractionGraph } from "@batono/core";
|
|
3
|
+
import type { MetaResult } from "../types/results.js";
|
|
4
|
+
import type { RenderVariant } from "../types/types.js";
|
|
5
|
+
export declare class Meta implements IBuildable<MetaResult> {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(content: string | null);
|
|
8
|
+
withLabel(label: string): this;
|
|
9
|
+
withIcon(icon: string): this;
|
|
10
|
+
withVariant(variant: RenderVariant): this;
|
|
11
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): MetaResult;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=Meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Meta.d.ts","sourceRoot":"","sources":["../../src/definitions/Meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AACtF,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAErD,qBAAa,IAAK,YAAW,UAAU,CAAC,UAAU,CAAC;;gBAMrC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIlC,SAAS,CAAC,KAAK,EAAE,MAAM;IAKvB,QAAQ,CAAC,IAAI,EAAE,MAAM;IAKrB,WAAW,CAAC,OAAO,EAAE,aAAa;IAKlC,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,UAAU;CASlF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { buildDefinition } from "@batono/core";
|
|
3
|
+
export class Meta {
|
|
4
|
+
#content;
|
|
5
|
+
#label;
|
|
6
|
+
#icon;
|
|
7
|
+
#variant;
|
|
8
|
+
constructor(content) {
|
|
9
|
+
this.#content = content;
|
|
10
|
+
}
|
|
11
|
+
withLabel(label) {
|
|
12
|
+
this.#label = label;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
withIcon(icon) {
|
|
16
|
+
this.#icon = icon;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
withVariant(variant) {
|
|
20
|
+
this.#variant = variant;
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
24
|
+
return buildDefinition(interactionGraph, {
|
|
25
|
+
type: 'meta',
|
|
26
|
+
content: this.#content,
|
|
27
|
+
label: this.#label,
|
|
28
|
+
icon: this.#icon,
|
|
29
|
+
variant: this.#variant,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=Meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Meta.js","sourceRoot":"","sources":["../../src/definitions/Meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,eAAe,EAA0C,MAAM,cAAc,CAAC;AAItF,MAAM,OAAO,IAAI;IACN,QAAQ,CAAe;IAChC,MAAM,CAAS;IACf,KAAK,CAAS;IACd,QAAQ,CAAgB;IAExB,YAAY,OAAsB;QAChC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;IACzB,CAAC;IAED,SAAS,CAAC,KAAa;QACrB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACnB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,QAAQ,CAAC,IAAY;QACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,WAAW,CAAC,OAAsB;QAChC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACvB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,MAAe;YACrB,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,OAAO,EAAE,IAAI,CAAC,QAAQ;SACvB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { type IBuildable, type IInteractionGraph } from "@batono/core";
|
|
3
|
+
import type { ActionsResult, NoteResult } from "../types/results.js";
|
|
4
|
+
export declare class Note implements IBuildable<NoteResult> {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(content: string, author: string, timestamp: string, actions?: IBuildable<ActionsResult>);
|
|
7
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): NoteResult;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Note.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Note.d.ts","sourceRoot":"","sources":["../../src/definitions/Note.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AACtF,OAAO,KAAK,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAEnE,qBAAa,IAAK,YAAW,UAAU,CAAC,UAAU,CAAC;;gBAMrC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC;IAOnG,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,UAAU;CASlF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { buildDefinition } from "@batono/core";
|
|
3
|
+
export class Note {
|
|
4
|
+
#content;
|
|
5
|
+
#author;
|
|
6
|
+
#timestamp;
|
|
7
|
+
#actions;
|
|
8
|
+
constructor(content, author, timestamp, actions) {
|
|
9
|
+
this.#content = content;
|
|
10
|
+
this.#author = author;
|
|
11
|
+
this.#timestamp = timestamp;
|
|
12
|
+
if (actions)
|
|
13
|
+
this.#actions = actions;
|
|
14
|
+
}
|
|
15
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
16
|
+
return buildDefinition(interactionGraph, {
|
|
17
|
+
type: 'note',
|
|
18
|
+
content: this.#content,
|
|
19
|
+
author: this.#author,
|
|
20
|
+
timestamp: this.#timestamp,
|
|
21
|
+
actions: this.#actions?.[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=Note.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Note.js","sourceRoot":"","sources":["../../src/definitions/Note.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,eAAe,EAA0C,MAAM,cAAc,CAAC;AAGtF,MAAM,OAAO,IAAI;IACN,QAAQ,CAAQ;IAChB,OAAO,CAAQ;IACf,UAAU,CAAQ;IAClB,QAAQ,CAA4B;IAE7C,YAAY,OAAe,EAAE,MAAc,EAAE,SAAiB,EAAE,OAAmC;QACjG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACvB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;QACrB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAA;QAC3B,IAAI,OAAO;YAAE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;IACtC,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,MAAe;YACrB,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,SAAS,EAAE,IAAI,CAAC,UAAU;YAC1B,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC;SAC3E,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { type IBuildable, type IInteractionGraph } from "@batono/core";
|
|
3
|
+
import type { RowResult } from "../types/results.js";
|
|
4
|
+
export declare class Row implements IBuildable {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(...items: IBuildable[]);
|
|
7
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): RowResult;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../src/definitions/Row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AACtF,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAEnD,qBAAa,GAAI,YAAW,UAAU;;gBAGxB,GAAG,KAAK,EAAE,UAAU,EAAE;IAIlC,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,SAAS;CAMjF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { buildDefinition } from "@batono/core";
|
|
3
|
+
export class Row {
|
|
4
|
+
#items;
|
|
5
|
+
constructor(...items) {
|
|
6
|
+
this.#items = items;
|
|
7
|
+
}
|
|
8
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
9
|
+
return buildDefinition(interactionGraph, {
|
|
10
|
+
type: 'row',
|
|
11
|
+
items: this.#items.map(item => item[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph))
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Row.js","sourceRoot":"","sources":["../../src/definitions/Row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,eAAe,EAA0C,MAAM,cAAc,CAAC;AAGtF,MAAM,OAAO,GAAG;IACL,MAAM,CAAc;IAE7B,YAAY,GAAG,KAAmB;QAChC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;IACrB,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,KAAc;YACpB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC,CAAC;SACvF,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { type IBuildable, type IInteractionGraph } from "@batono/core";
|
|
3
|
+
import type { RowResult, RowsResult } from "../types/results.js";
|
|
4
|
+
export declare class Rows implements IBuildable {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(...items: IBuildable<RowResult>[]);
|
|
7
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): RowsResult;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rows.d.ts","sourceRoot":"","sources":["../../src/definitions/Rows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AACtF,OAAO,KAAK,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAE/D,qBAAa,IAAK,YAAW,UAAU;;gBAGzB,GAAG,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE;IAI7C,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,UAAU;CAMlF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { buildDefinition } from "@batono/core";
|
|
3
|
+
export class Rows {
|
|
4
|
+
#items;
|
|
5
|
+
constructor(...items) {
|
|
6
|
+
this.#items = items;
|
|
7
|
+
}
|
|
8
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
9
|
+
return buildDefinition(interactionGraph, {
|
|
10
|
+
type: 'rows',
|
|
11
|
+
items: this.#items.map(item => item[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph))
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Rows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rows.js","sourceRoot":"","sources":["../../src/definitions/Rows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,eAAe,EAA0C,MAAM,cAAc,CAAC;AAGtF,MAAM,OAAO,IAAI;IACN,MAAM,CAAyB;IAExC,YAAY,GAAG,KAA8B;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;IACrB,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,MAAe;YACrB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC,CAAC;SACvF,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { type IBuildable, type IInteractionGraph } from "@batono/core";
|
|
3
|
+
import type { ActionsResult, RowsResult, SectionResult } from "../types/results.js";
|
|
4
|
+
import type { RenderVariant } from "../types/types.js";
|
|
5
|
+
export declare class Section implements IBuildable<SectionResult> {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(title: string, rows: IBuildable<RowsResult>);
|
|
8
|
+
withIcon(icon: string): this;
|
|
9
|
+
withVariant(variant: RenderVariant): this;
|
|
10
|
+
withActions(actions: IBuildable<ActionsResult>): this;
|
|
11
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): SectionResult;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=Section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../src/definitions/Section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AACtF,OAAO,KAAK,EAAC,aAAa,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClF,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAErD,qBAAa,OAAQ,YAAW,UAAU,CAAC,aAAa,CAAC;;gBAO3C,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC;IAKvD,QAAQ,CAAC,IAAI,EAAE,MAAM;IAKrB,WAAW,CAAC,OAAO,EAAE,aAAa;IAKlC,WAAW,CAAC,OAAO,EAAE,UAAU,CAAC,aAAa,CAAC;IAK9C,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,aAAa;CAUrF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { buildDefinition } from "@batono/core";
|
|
3
|
+
export class Section {
|
|
4
|
+
#title;
|
|
5
|
+
#rows;
|
|
6
|
+
#icon;
|
|
7
|
+
#variant;
|
|
8
|
+
#actions;
|
|
9
|
+
constructor(title, rows) {
|
|
10
|
+
this.#title = title;
|
|
11
|
+
this.#rows = rows;
|
|
12
|
+
}
|
|
13
|
+
withIcon(icon) {
|
|
14
|
+
this.#icon = icon;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
withVariant(variant) {
|
|
18
|
+
this.#variant = variant;
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
withActions(actions) {
|
|
22
|
+
this.#actions = actions;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
26
|
+
return buildDefinition(interactionGraph, {
|
|
27
|
+
type: 'section',
|
|
28
|
+
title: this.#title,
|
|
29
|
+
icon: this.#icon,
|
|
30
|
+
variant: this.#variant,
|
|
31
|
+
actions: this.#actions?.[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph),
|
|
32
|
+
rows: this.#rows[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=Section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Section.js","sourceRoot":"","sources":["../../src/definitions/Section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,eAAe,EAA0C,MAAM,cAAc,CAAC;AAItF,MAAM,OAAO,OAAO;IACT,MAAM,CAAQ;IACd,KAAK,CAAwB;IACtC,KAAK,CAAS;IACd,QAAQ,CAAgB;IACxB,QAAQ,CAA4B;IAEpC,YAAY,KAAa,EAAE,IAA4B;QACrD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;IACnB,CAAC;IAED,QAAQ,CAAC,IAAY;QACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,WAAW,CAAC,OAAsB;QAChC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACvB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,WAAW,CAAC,OAAkC;QAC5C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACvB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,SAAkB;YACxB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC;YAC1E,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,CAAC;SACnE,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { type IBuildable, type IInteractionGraph } from "@batono/core";
|
|
3
|
+
import type { StatResult } from "../types/results.js";
|
|
4
|
+
export declare class Stat implements IBuildable {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(label: string, content: string);
|
|
7
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): StatResult;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Stat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stat.d.ts","sourceRoot":"","sources":["../../src/definitions/Stat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AACtF,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAEpD,qBAAa,IAAK,YAAW,UAAU;;gBAIzB,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAK1C,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,UAAU;CAOlF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { buildDefinition } from "@batono/core";
|
|
3
|
+
export class Stat {
|
|
4
|
+
#label;
|
|
5
|
+
#content;
|
|
6
|
+
constructor(label, content) {
|
|
7
|
+
this.#label = label;
|
|
8
|
+
this.#content = content;
|
|
9
|
+
}
|
|
10
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
11
|
+
return buildDefinition(interactionGraph, {
|
|
12
|
+
type: 'stat',
|
|
13
|
+
content: this.#content,
|
|
14
|
+
label: this.#label
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=Stat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stat.js","sourceRoot":"","sources":["../../src/definitions/Stat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,eAAe,EAA0C,MAAM,cAAc,CAAC;AAGtF,MAAM,OAAO,IAAI;IACN,MAAM,CAAQ;IACd,QAAQ,CAAQ;IAEzB,YAAY,KAAa,EAAE,OAAe;QACxC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACnB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;IACzB,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,MAAe;YACrB,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,KAAK,EAAE,IAAI,CAAC,MAAM;SACnB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { type IBuildable, type IInteractionGraph } from "@batono/core";
|
|
3
|
+
import type { TextResult } from "../types/results.js";
|
|
4
|
+
export declare class Text implements IBuildable {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(content: string);
|
|
7
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph: IInteractionGraph): TextResult;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/definitions/Text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAC,MAAM,cAAc,CAAC;AACtF,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAEpD,qBAAa,IAAK,YAAW,UAAU;;gBAIzB,OAAO,EAAE,MAAM;IAI3B,CAAC,8BAA8B,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,UAAU;CAMlF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __BATONO_INTERNAL_BUILD_SYMBOL } from "@batono/core/internal";
|
|
2
|
+
import { buildDefinition } from "@batono/core";
|
|
3
|
+
export class Text {
|
|
4
|
+
#content;
|
|
5
|
+
constructor(content) {
|
|
6
|
+
this.#content = content;
|
|
7
|
+
}
|
|
8
|
+
[__BATONO_INTERNAL_BUILD_SYMBOL](interactionGraph) {
|
|
9
|
+
return buildDefinition(interactionGraph, {
|
|
10
|
+
type: 'text',
|
|
11
|
+
content: this.#content
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../src/definitions/Text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,eAAe,EAA0C,MAAM,cAAc,CAAC;AAGtF,MAAM,OAAO,IAAI;IAEN,QAAQ,CAAQ;IAEzB,YAAY,OAAe;QACzB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;IACzB,CAAC;IAED,CAAC,8BAA8B,CAAC,CAAC,gBAAmC;QAClE,OAAO,eAAe,CAAC,gBAAgB,EAAE;YACvC,IAAI,EAAE,MAAe;YACrB,OAAO,EAAE,IAAI,CAAC,QAAQ;SACvB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Row } from "./definitions/Row.js";
|
|
2
|
+
import { Rows } from "./definitions/Rows.js";
|
|
3
|
+
import { Inline } from "./definitions/Inline.js";
|
|
4
|
+
import { Header, type HeaderOptions } from "./definitions/Header.js";
|
|
5
|
+
import { Meta } from "./definitions/Meta.js";
|
|
6
|
+
import { Section } from "./definitions/Section.js";
|
|
7
|
+
import { Field } from "./definitions/Field.js";
|
|
8
|
+
import { Stat } from "./definitions/Stat.js";
|
|
9
|
+
import { Text } from "./definitions/Text.js";
|
|
10
|
+
import { Link } from "./definitions/Link.js";
|
|
11
|
+
import { Note } from "./definitions/Note.js";
|
|
12
|
+
import { type HttpMethod, RequestAction } from "./actions/RequestAction.js";
|
|
13
|
+
import { ModalAction } from "./actions/ModalAction.js";
|
|
14
|
+
import { ActionButton, type ActionOptions } from "./definitions/ActionButton.js";
|
|
15
|
+
import { ActionButtons } from "./definitions/ActionButtons.js";
|
|
16
|
+
import type { RenderVariant } from "./types/types.js";
|
|
17
|
+
import type { IBuildable, IDefinedAction } from "@batono/core";
|
|
18
|
+
export { NBSP } from "./utils/utils.js";
|
|
19
|
+
export declare const bt: {
|
|
20
|
+
request: (method: HttpMethod, url: string) => RequestAction;
|
|
21
|
+
modal: (title: string) => ModalAction;
|
|
22
|
+
actionButtons: (...items: ActionButton[]) => ActionButtons;
|
|
23
|
+
rows: (...items: Row[]) => Rows;
|
|
24
|
+
row: (...items: IBuildable[]) => Row;
|
|
25
|
+
inline: (...items: IBuildable[]) => Inline;
|
|
26
|
+
header: (title: string, options?: HeaderOptions) => Header;
|
|
27
|
+
meta: (content: string | null) => Meta;
|
|
28
|
+
section: (title: string, rows: Rows) => Section;
|
|
29
|
+
field: (label: string, value: IBuildable | string | null, variant?: RenderVariant) => Field;
|
|
30
|
+
stat: (label: string, content: string) => Stat;
|
|
31
|
+
text: (content: string) => Text;
|
|
32
|
+
link: (content: string, action: IDefinedAction) => Link;
|
|
33
|
+
action: (label: string, action: IDefinedAction, options?: ActionOptions) => ActionButton;
|
|
34
|
+
note: (content: string, author: string, timestamp: string, actions?: ActionButtons) => Note;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAC;AACzC,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAC,MAAM,EAAE,KAAK,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAC,KAAK,EAAC,MAAM,wBAAwB,CAAC;AAC7C,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAC,KAAK,UAAU,EAAE,aAAa,EAAC,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAC,YAAY,EAAE,KAAK,aAAa,EAAC,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAEtC,eAAO,MAAM,EAAE;sBAEK,UAAU,OAAO,MAAM;mBAC1B,MAAM;8BACK,YAAY,EAAE;qBAGvB,GAAG,EAAE;oBACN,UAAU,EAAE;uBACT,UAAU,EAAE;oBAEf,MAAM,YAAY,aAAa;oBAC/B,MAAM,GAAG,IAAI;qBACZ,MAAM,QAAQ,IAAI;mBACpB,MAAM,SAAS,UAAU,GAAG,MAAM,GAAG,IAAI,YAAY,aAAa;kBACnE,MAAM,WAAW,MAAM;oBACrB,MAAM;oBACN,MAAM,UAAU,cAAc;oBAC9B,MAAM,UAAU,cAAc,YAAY,aAAa;oBACvD,MAAM,UAAU,MAAM,aAAa,MAAM,YAAY,aAAa;CACnF,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Row } from "./definitions/Row.js";
|
|
2
|
+
import { Rows } from "./definitions/Rows.js";
|
|
3
|
+
import { Inline } from "./definitions/Inline.js";
|
|
4
|
+
import { Header } from "./definitions/Header.js";
|
|
5
|
+
import { Meta } from "./definitions/Meta.js";
|
|
6
|
+
import { Section } from "./definitions/Section.js";
|
|
7
|
+
import { Field } from "./definitions/Field.js";
|
|
8
|
+
import { Stat } from "./definitions/Stat.js";
|
|
9
|
+
import { Text } from "./definitions/Text.js";
|
|
10
|
+
import { Link } from "./definitions/Link.js";
|
|
11
|
+
import { Note } from "./definitions/Note.js";
|
|
12
|
+
import { RequestAction } from "./actions/RequestAction.js";
|
|
13
|
+
import { ModalAction } from "./actions/ModalAction.js";
|
|
14
|
+
import { ActionButton } from "./definitions/ActionButton.js";
|
|
15
|
+
import { ActionButtons } from "./definitions/ActionButtons.js";
|
|
16
|
+
export { NBSP } from "./utils/utils.js";
|
|
17
|
+
export const bt = {
|
|
18
|
+
// actions
|
|
19
|
+
request: (method, url) => new RequestAction(method, url),
|
|
20
|
+
modal: (title) => new ModalAction(title),
|
|
21
|
+
actionButtons: (...items) => new ActionButtons(...items),
|
|
22
|
+
// layout
|
|
23
|
+
rows: (...items) => new Rows(...items),
|
|
24
|
+
row: (...items) => new Row(...items),
|
|
25
|
+
inline: (...items) => new Inline(...items),
|
|
26
|
+
header: (title, options) => new Header(title, options),
|
|
27
|
+
meta: (content) => new Meta(content),
|
|
28
|
+
section: (title, rows) => new Section(title, rows),
|
|
29
|
+
field: (label, value, variant) => new Field(label, value, variant),
|
|
30
|
+
stat: (label, content) => new Stat(label, content),
|
|
31
|
+
text: (content) => new Text(content),
|
|
32
|
+
link: (content, action) => new Link(content, action),
|
|
33
|
+
action: (label, action, options) => new ActionButton(label, action, options),
|
|
34
|
+
note: (content, author, timestamp, actions) => new Note(content, author, timestamp, actions),
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { RenderVariant } from "./types.js";
|
|
2
|
+
import type { HttpMethod } from "../actions/RequestAction.js";
|
|
3
|
+
import type { Defined } from "@batono/core";
|
|
4
|
+
export interface TextResult extends Defined {
|
|
5
|
+
type: 'text';
|
|
6
|
+
content: string;
|
|
7
|
+
}
|
|
8
|
+
export interface LinkResult extends Defined {
|
|
9
|
+
type: 'link';
|
|
10
|
+
content: string;
|
|
11
|
+
action: ActionReferenceResult;
|
|
12
|
+
}
|
|
13
|
+
export interface StatResult extends Defined {
|
|
14
|
+
type: 'stat';
|
|
15
|
+
label: string;
|
|
16
|
+
content: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ActionReferenceResult extends Defined {
|
|
19
|
+
type: 'action-reference';
|
|
20
|
+
action: string;
|
|
21
|
+
payload?: Record<string, unknown> | undefined;
|
|
22
|
+
}
|
|
23
|
+
export interface ActionResult extends Defined {
|
|
24
|
+
type: 'action';
|
|
25
|
+
label: string;
|
|
26
|
+
variant?: RenderVariant | undefined;
|
|
27
|
+
action?: ActionReferenceResult | undefined;
|
|
28
|
+
}
|
|
29
|
+
export interface ActionsResult extends Defined {
|
|
30
|
+
type: 'actions';
|
|
31
|
+
items: ActionResult[];
|
|
32
|
+
}
|
|
33
|
+
export interface InlineResult extends Defined {
|
|
34
|
+
type: 'inline';
|
|
35
|
+
items: Defined[];
|
|
36
|
+
}
|
|
37
|
+
export interface RowResult extends Defined {
|
|
38
|
+
type: 'row';
|
|
39
|
+
items: Defined[];
|
|
40
|
+
}
|
|
41
|
+
export interface RowsResult extends Defined {
|
|
42
|
+
type: 'rows';
|
|
43
|
+
items: RowResult[];
|
|
44
|
+
}
|
|
45
|
+
export interface RequestActionResult extends Defined {
|
|
46
|
+
type: 'request';
|
|
47
|
+
method: HttpMethod;
|
|
48
|
+
url: string;
|
|
49
|
+
payload?: Record<string, unknown> | undefined;
|
|
50
|
+
}
|
|
51
|
+
export interface ModalActionResult extends Defined {
|
|
52
|
+
type: 'modal';
|
|
53
|
+
title: string;
|
|
54
|
+
payload?: Record<string, unknown> | undefined;
|
|
55
|
+
}
|
|
56
|
+
export interface MetaResult extends Defined {
|
|
57
|
+
type: 'meta';
|
|
58
|
+
content: string | null;
|
|
59
|
+
label?: string | undefined;
|
|
60
|
+
icon?: string | undefined;
|
|
61
|
+
variant?: RenderVariant | undefined;
|
|
62
|
+
}
|
|
63
|
+
export interface FieldResult extends Defined {
|
|
64
|
+
type: 'field';
|
|
65
|
+
label: string;
|
|
66
|
+
value: Defined | null;
|
|
67
|
+
variant?: RenderVariant | undefined;
|
|
68
|
+
}
|
|
69
|
+
export interface NoteResult extends Defined {
|
|
70
|
+
type: 'note';
|
|
71
|
+
content: string;
|
|
72
|
+
author: string;
|
|
73
|
+
timestamp: string;
|
|
74
|
+
actions?: ActionsResult | undefined;
|
|
75
|
+
}
|
|
76
|
+
export interface HeaderResult extends Defined {
|
|
77
|
+
type: 'header';
|
|
78
|
+
title: string;
|
|
79
|
+
avatar?: string | undefined;
|
|
80
|
+
subtitle?: InlineResult | undefined;
|
|
81
|
+
actions?: ActionsResult | undefined;
|
|
82
|
+
}
|
|
83
|
+
export interface SectionResult extends Defined {
|
|
84
|
+
type: 'section';
|
|
85
|
+
title: string;
|
|
86
|
+
icon?: string | undefined;
|
|
87
|
+
variant?: RenderVariant | undefined;
|
|
88
|
+
actions?: ActionsResult | undefined;
|
|
89
|
+
rows: RowsResult;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=results.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../src/types/results.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"results.js","sourceRoot":"","sources":["../../src/types/results.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,WAAW,GACX,OAAO,GACP,MAAM,GACN,WAAW,GACX,YAAY,GACZ,aAAa,GACb,cAAc,GACd,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@batono/ui",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Pascal Pfeifer <pascal@pfeifer.zone>",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist/",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [],
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/batono/ui.git"
|
|
26
|
+
},
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/batono/ui/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/batono/ui#readme",
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"prepublishOnly": "npm test",
|
|
39
|
+
"build": "npm run clean && tsc",
|
|
40
|
+
"clean": "rm -rf dist",
|
|
41
|
+
"test": "npm run build && node --test 'test/'",
|
|
42
|
+
"test:coverage": "npm run build && node --test 'test/' --experimental-test-coverage --test-coverage-exclude='test/**'",
|
|
43
|
+
"test:coverage:c8": "npm run build && npx c8 node --test 'test/'",
|
|
44
|
+
"test:coverage:lcov": "npm run build && node --enable-source-maps --test 'test/' --experimental-test-coverage --test-coverage-exclude='test/**' --test-reporter=lcov --test-reporter-destination=lcov.info"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/node": "^20.17.9",
|
|
48
|
+
"typescript": "^5.9.3"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@batono/core": "^0.0.0"
|
|
52
|
+
}
|
|
53
|
+
}
|