pareto-static-html 0.1.11 → 0.1.13
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/implementation/manual/schemas/static_html/refiners/astn_sealed_source.d.ts +0 -0
- package/dist/implementation/manual/schemas/static_html/refiners/astn_sealed_source.js +23 -0
- package/dist/implementation/manual/schemas/static_html/serializers.d.ts +4 -0
- package/dist/implementation/manual/schemas/static_html/serializers.js +35 -0
- package/dist/implementation/manual/schemas/static_html/temp_astn_deserializers.d.ts +0 -0
- package/dist/implementation/manual/schemas/static_html/temp_astn_deserializers.js +20 -0
- package/dist/implementation/manual/schemas/static_html/transformers/fountain_pen.js +262 -0
- package/dist/interface/generated/pareto/core/location.d.ts +11 -0
- package/dist/interface/generated/pareto/core/{resolved.js → location.js} +1 -1
- package/dist/interface/generated/pareto/schemas/static-html/data.d.ts +187 -0
- package/dist/interface/generated/pareto/schemas/static-html/data.js +3 -0
- package/dist/interface/generated/pareto/schemas/static-html/migrate_boilerplate.d.ts +23 -82
- package/dist/interface/signatures/transformers/html/fountain_pen.d.ts +2 -2
- package/dist/interface/to_be_generated/unmarshall.d.ts +1 -0
- package/dist/interface/{generated/pareto/schemas/static-html → to_be_generated}/unmarshall.js +1 -1
- package/dist/shorthands/static_html.d.ts +19 -19
- package/dist/shorthands/static_html.js +105 -120
- package/package.json +3 -2
- package/dist/implementation/generated/pareto/generic/parse/ast.d.ts +0 -10
- package/dist/implementation/generated/pareto/generic/parse/ast.js +0 -245
- package/dist/implementation/generated/pareto/generic/parse/astn_parse_generic.d.ts +0 -16
- package/dist/implementation/generated/pareto/generic/parse/astn_parse_generic.js +0 -47
- package/dist/implementation/generated/pareto/generic/parse/parse.d.ts +0 -5
- package/dist/implementation/generated/pareto/generic/parse/parse.js +0 -55
- package/dist/implementation/generated/pareto/generic/parse/string_iterator.d.ts +0 -40
- package/dist/implementation/generated/pareto/generic/parse/string_iterator.js +0 -109
- package/dist/implementation/generated/pareto/generic/parse/token.d.ts +0 -10
- package/dist/implementation/generated/pareto/generic/parse/token.js +0 -519
- package/dist/implementation/generated/pareto/generic/resolve.d.ts +0 -109
- package/dist/implementation/generated/pareto/generic/resolve.js +0 -277
- package/dist/implementation/generated/pareto/generic/serialize.d.ts +0 -4
- package/dist/implementation/generated/pareto/generic/serialize.js +0 -93
- package/dist/implementation/generated/pareto/generic/unmarshall.d.ts +0 -42
- package/dist/implementation/generated/pareto/generic/unmarshall.js +0 -247
- package/dist/implementation/generated/pareto/schemas/static-html/deserialize.d.ts +0 -5
- package/dist/implementation/generated/pareto/schemas/static-html/deserialize.js +0 -36
- package/dist/implementation/generated/pareto/schemas/static-html/marshall.d.ts +0 -5
- package/dist/implementation/generated/pareto/schemas/static-html/marshall.js +0 -264
- package/dist/implementation/generated/pareto/schemas/static-html/serialize.d.ts +0 -5
- package/dist/implementation/generated/pareto/schemas/static-html/serialize.js +0 -45
- package/dist/implementation/generated/pareto/schemas/static-html/unmarshall.d.ts +0 -5
- package/dist/implementation/generated/pareto/schemas/static-html/unmarshall.js +0 -298
- package/dist/implementation/manual/schemas/html/transformers/fountain_pen.js +0 -266
- package/dist/interface/generated/pareto/core/astn_source.d.ts +0 -123
- package/dist/interface/generated/pareto/core/astn_source.js +0 -3
- package/dist/interface/generated/pareto/core/astn_target.d.ts +0 -186
- package/dist/interface/generated/pareto/core/astn_target.js +0 -3
- package/dist/interface/generated/pareto/core/parse_result.d.ts +0 -25
- package/dist/interface/generated/pareto/core/parse_result.js +0 -3
- package/dist/interface/generated/pareto/core/resolve.d.ts +0 -14
- package/dist/interface/generated/pareto/core/resolve.js +0 -3
- package/dist/interface/generated/pareto/core/resolved.d.ts +0 -117
- package/dist/interface/generated/pareto/core/token.d.ts +0 -49
- package/dist/interface/generated/pareto/core/token.js +0 -3
- package/dist/interface/generated/pareto/core/unconstrained.d.ts +0 -19
- package/dist/interface/generated/pareto/core/unconstrained.js +0 -3
- package/dist/interface/generated/pareto/core/unresolved.d.ts +0 -181
- package/dist/interface/generated/pareto/core/unresolved.js +0 -3
- package/dist/interface/generated/pareto/schemas/static-html/data_types/resolve.d.ts +0 -1
- package/dist/interface/generated/pareto/schemas/static-html/data_types/resolve.js +0 -7
- package/dist/interface/generated/pareto/schemas/static-html/data_types/source.d.ts +0 -951
- package/dist/interface/generated/pareto/schemas/static-html/data_types/source.js +0 -3
- package/dist/interface/generated/pareto/schemas/static-html/data_types/target.d.ts +0 -951
- package/dist/interface/generated/pareto/schemas/static-html/data_types/target.js +0 -3
- package/dist/interface/generated/pareto/schemas/static-html/deserialize.d.ts +0 -106
- package/dist/interface/generated/pareto/schemas/static-html/deserialize.js +0 -3
- package/dist/interface/generated/pareto/schemas/static-html/marshall.d.ts +0 -123
- package/dist/interface/generated/pareto/schemas/static-html/marshall.js +0 -3
- package/dist/interface/generated/pareto/schemas/static-html/serialize.d.ts +0 -106
- package/dist/interface/generated/pareto/schemas/static-html/serialize.js +0 -3
- package/dist/interface/generated/pareto/schemas/static-html/unmarshall.d.ts +0 -123
- package/dist/interface/generated/pareto/schemas/static-html/value_deserializers.d.ts +0 -64
- package/dist/interface/generated/pareto/schemas/static-html/value_deserializers.js +0 -3
- package/dist/interface/generated/pareto/schemas/static-html/value_serializers.d.ts +0 -64
- package/dist/interface/generated/pareto/schemas/static-html/value_serializers.js +0 -3
- /package/dist/implementation/manual/schemas/{html → static_html}/transformers/fountain_pen.d.ts +0 -0
|
@@ -1,90 +1,31 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export type Classes = _T_Classes;
|
|
8
|
-
export type Phrasing_Content = _T_Phrasing_Content;
|
|
9
|
-
export type Flow_Content = _T_Flow_Content;
|
|
10
|
-
export type Document = _T_Document;
|
|
11
|
-
export declare namespace _T_Classes {
|
|
12
|
-
namespace CONTEXT {
|
|
1
|
+
import * as i_out from "./data";
|
|
2
|
+
import * as i_in from "./data";
|
|
3
|
+
export declare namespace Classes_ {
|
|
4
|
+
type I = i_in.Classes;
|
|
5
|
+
type O = i_out.Classes;
|
|
6
|
+
namespace P {
|
|
13
7
|
}
|
|
14
|
-
type CONTEXT = _i_in._T_Classes;
|
|
15
|
-
namespace PARAMS {
|
|
16
|
-
}
|
|
17
|
-
namespace RESULT {
|
|
18
|
-
}
|
|
19
|
-
type RESULT = _i_out._T_Classes;
|
|
20
|
-
}
|
|
21
|
-
export declare namespace _T_Phrasing_Content {
|
|
22
|
-
namespace CONTEXT {
|
|
23
|
-
}
|
|
24
|
-
type CONTEXT = _i_in._T_Phrasing_Content;
|
|
25
|
-
namespace PARAMS {
|
|
26
|
-
}
|
|
27
|
-
namespace RESULT {
|
|
28
|
-
}
|
|
29
|
-
type RESULT = _i_out._T_Phrasing_Content;
|
|
30
|
-
}
|
|
31
|
-
export declare namespace _T_Flow_Content {
|
|
32
|
-
namespace CONTEXT {
|
|
33
|
-
}
|
|
34
|
-
type CONTEXT = _i_in._T_Flow_Content;
|
|
35
|
-
namespace PARAMS {
|
|
36
|
-
}
|
|
37
|
-
namespace RESULT {
|
|
38
|
-
}
|
|
39
|
-
type RESULT = _i_out._T_Flow_Content;
|
|
40
|
-
}
|
|
41
|
-
export declare namespace _T_Document {
|
|
42
|
-
namespace CONTEXT {
|
|
43
|
-
}
|
|
44
|
-
type CONTEXT = _i_in._T_Document;
|
|
45
|
-
namespace PARAMS {
|
|
46
|
-
}
|
|
47
|
-
namespace RESULT {
|
|
48
|
-
}
|
|
49
|
-
type RESULT = _i_out._T_Document;
|
|
50
|
-
}
|
|
51
|
-
export declare namespace Classes {
|
|
52
|
-
namespace CONTEXT {
|
|
53
|
-
}
|
|
54
|
-
type CONTEXT = _i_in._T_Classes;
|
|
55
|
-
namespace PARAMS {
|
|
56
|
-
}
|
|
57
|
-
namespace RESULT {
|
|
58
|
-
}
|
|
59
|
-
type RESULT = _i_out._T_Classes;
|
|
60
8
|
}
|
|
61
|
-
export
|
|
62
|
-
|
|
9
|
+
export type Classes_ = ($$_: Classes_.I) => Classes_.O;
|
|
10
|
+
export declare namespace Phrasing_Content_ {
|
|
11
|
+
type I = i_in.Phrasing_Content;
|
|
12
|
+
type O = i_out.Phrasing_Content;
|
|
13
|
+
namespace P {
|
|
63
14
|
}
|
|
64
|
-
type CONTEXT = _i_in._T_Phrasing_Content;
|
|
65
|
-
namespace PARAMS {
|
|
66
|
-
}
|
|
67
|
-
namespace RESULT {
|
|
68
|
-
}
|
|
69
|
-
type RESULT = _i_out._T_Phrasing_Content;
|
|
70
15
|
}
|
|
71
|
-
export
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
type
|
|
75
|
-
namespace
|
|
16
|
+
export type Phrasing_Content_ = ($$_: Phrasing_Content_.I) => Phrasing_Content_.O;
|
|
17
|
+
export declare namespace Flow_Content_ {
|
|
18
|
+
type I = i_in.Flow_Content;
|
|
19
|
+
type O = i_out.Flow_Content;
|
|
20
|
+
namespace P {
|
|
76
21
|
}
|
|
77
|
-
namespace RESULT {
|
|
78
|
-
}
|
|
79
|
-
type RESULT = _i_out._T_Flow_Content;
|
|
80
22
|
}
|
|
81
|
-
export
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
type
|
|
85
|
-
namespace
|
|
86
|
-
}
|
|
87
|
-
namespace RESULT {
|
|
23
|
+
export type Flow_Content_ = ($$_: Flow_Content_.I) => Flow_Content_.O;
|
|
24
|
+
export declare namespace Document_ {
|
|
25
|
+
type I = i_in.Document;
|
|
26
|
+
type O = i_out.Document;
|
|
27
|
+
namespace P {
|
|
88
28
|
}
|
|
89
|
-
type RESULT = _i_out._T_Document;
|
|
90
29
|
}
|
|
30
|
+
export type Document_ = ($$_: Document_.I) => Document_.O;
|
|
31
|
+
export { Classes_ as Classes, Phrasing_Content_ as Phrasing_Content, Flow_Content_ as Flow_Content, Document_ as Document, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _pi from 'pareto-core-interface';
|
|
2
|
-
import * as d_in from "../../../generated/pareto/schemas/static-html/
|
|
3
|
-
import * as d_out from "pareto-fountain-pen/dist/interface/generated/pareto/schemas/block/
|
|
2
|
+
import * as d_in from "../../../generated/pareto/schemas/static-html/data";
|
|
3
|
+
import * as d_out from "pareto-fountain-pen/dist/interface/generated/pareto/schemas/block/data";
|
|
4
4
|
export type Document = _pi.Transformer<d_in.Document, d_out.Group>;
|
|
5
5
|
export type Flow_Content = _pi.Transformer<d_in.Flow_Content, d_out.Block_Part>;
|
|
6
6
|
export type Classes = _pi.Transformer<d_in.Classes, d_out.Block_Part>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Error = ['parse error', null] | ['unmarshall error', null] | ['primitive deserialization', null];
|
package/dist/interface/{generated/pareto/schemas/static-html → to_be_generated}/unmarshall.js
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5tYXJzaGFsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbnRlcmZhY2UvdG9fYmVfZ2VuZXJhdGVkL3VubWFyc2hhbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
+
import * as _p from 'pareto-core-shorthands/dist/unconstrained';
|
|
1
2
|
import * as _pi from 'pareto-core-interface';
|
|
2
|
-
import * as target from "../interface/generated/pareto/schemas/static-html/
|
|
3
|
-
import { Raw_Or_Normal_List } from 'pareto-core-shorthands/dist/unconstrained';
|
|
3
|
+
import * as target from "../interface/generated/pareto/schemas/static-html/data";
|
|
4
4
|
export declare namespace f {
|
|
5
|
-
const div: (sections: Raw_Or_Normal_List<target.Flow_Content.L>) => target.Flow_Content.L;
|
|
6
|
-
const dimensioned_div: (width: _pi.Optional_Value<number>, height: _pi.Optional_Value<number>, sections: Raw_Or_Normal_List<target.Flow_Content.L>) => target.Flow_Content.L;
|
|
7
|
-
const classified_div: (classes: Raw_Or_Normal_List<string>, sections: Raw_Or_Normal_List<target.Flow_Content.L>) => target.Flow_Content.L;
|
|
8
|
-
const span: (sections: Raw_Or_Normal_List<target.Phrasing_Content.L>) => target.Flow_Content.L;
|
|
9
|
-
const label: (classes: Raw_Or_Normal_List<string>, text: string, sections: Raw_Or_Normal_List<target.Flow_Content.L>) => target.Flow_Content.L;
|
|
10
|
-
const img: (classes: Raw_Or_Normal_List<string>, src: string, alt: string, width: _pi.Optional_Value<number>, height: _pi.Optional_Value<number>) => target.Flow_Content.L;
|
|
11
|
-
const svg: (classes: Raw_Or_Normal_List<string>, content: string, width: _pi.Optional_Value<number>, height: _pi.Optional_Value<number>) => target.Flow_Content.L;
|
|
12
|
-
const table: (classes: Raw_Or_Normal_List<string>, sections: Raw_Or_Normal_List<target.Flow_Content.L.
|
|
5
|
+
const div: (sections: _p.Raw_Or_Normal_List<target.Flow_Content.L>) => target.Flow_Content.L;
|
|
6
|
+
const dimensioned_div: (width: _pi.Optional_Value<number>, height: _pi.Optional_Value<number>, sections: _p.Raw_Or_Normal_List<target.Flow_Content.L>) => target.Flow_Content.L;
|
|
7
|
+
const classified_div: (classes: _p.Raw_Or_Normal_List<string>, sections: _p.Raw_Or_Normal_List<target.Flow_Content.L>) => target.Flow_Content.L;
|
|
8
|
+
const span: (sections: _p.Raw_Or_Normal_List<target.Phrasing_Content.L>) => target.Flow_Content.L;
|
|
9
|
+
const label: (classes: _p.Raw_Or_Normal_List<string>, text: string, sections: _p.Raw_Or_Normal_List<target.Flow_Content.L>) => target.Flow_Content.L;
|
|
10
|
+
const img: (classes: _p.Raw_Or_Normal_List<string>, src: string, alt: string, width: _pi.Optional_Value<number>, height: _pi.Optional_Value<number>) => target.Flow_Content.L;
|
|
11
|
+
const svg: (classes: _p.Raw_Or_Normal_List<string>, content: string, width: _pi.Optional_Value<number>, height: _pi.Optional_Value<number>) => target.Flow_Content.L;
|
|
12
|
+
const table: (classes: _p.Raw_Or_Normal_List<string>, sections: _p.Raw_Or_Normal_List<target.Flow_Content.L.table.sections.L>) => target.Flow_Content.L;
|
|
13
13
|
}
|
|
14
14
|
export declare namespace t {
|
|
15
|
-
const header: (classes: Raw_Or_Normal_List<string>, rows: Raw_Or_Normal_List<target.Flow_Content.L.
|
|
16
|
-
const body: (classes: Raw_Or_Normal_List<string>, rows: Raw_Or_Normal_List<target.Flow_Content.L.
|
|
17
|
-
const footer: (classes: Raw_Or_Normal_List<string>, rows: Raw_Or_Normal_List<target.Flow_Content.L.
|
|
18
|
-
const th: (classes: Raw_Or_Normal_List<string>, height: _pi.Optional_Value<number>, cells: Raw_Or_Normal_List<target.Flow_Content.L.
|
|
19
|
-
const td: (classes: Raw_Or_Normal_List<string>, height: _pi.Optional_Value<number>, cells: Raw_Or_Normal_List<target.Flow_Content.L.
|
|
20
|
-
const cell: (classes: Raw_Or_Normal_List<string>, content: Raw_Or_Normal_List<target.Flow_Content.L>) => target.Flow_Content.L.
|
|
15
|
+
const header: (classes: _p.Raw_Or_Normal_List<string>, rows: _p.Raw_Or_Normal_List<target.Flow_Content.L.table.sections.L.rows.L>) => target.Flow_Content.L.table.sections.L;
|
|
16
|
+
const body: (classes: _p.Raw_Or_Normal_List<string>, rows: _p.Raw_Or_Normal_List<target.Flow_Content.L.table.sections.L.rows.L>) => target.Flow_Content.L.table.sections.L;
|
|
17
|
+
const footer: (classes: _p.Raw_Or_Normal_List<string>, rows: _p.Raw_Or_Normal_List<target.Flow_Content.L.table.sections.L.rows.L>) => target.Flow_Content.L.table.sections.L;
|
|
18
|
+
const th: (classes: _p.Raw_Or_Normal_List<string>, height: _pi.Optional_Value<number>, cells: _p.Raw_Or_Normal_List<target.Flow_Content.L.table.sections.L.rows.L.cells.L>) => target.Flow_Content.L.table.sections.L.rows.L;
|
|
19
|
+
const td: (classes: _p.Raw_Or_Normal_List<string>, height: _pi.Optional_Value<number>, cells: _p.Raw_Or_Normal_List<target.Flow_Content.L.table.sections.L.rows.L.cells.L>) => target.Flow_Content.L.table.sections.L.rows.L;
|
|
20
|
+
const cell: (classes: _p.Raw_Or_Normal_List<string>, content: _p.Raw_Or_Normal_List<target.Flow_Content.L>) => target.Flow_Content.L.table.sections.L.rows.L.cells.L;
|
|
21
21
|
}
|
|
22
22
|
export declare namespace p {
|
|
23
|
-
const span: (sections: Raw_Or_Normal_List<target.Phrasing_Content.L>) => target.Phrasing_Content.L;
|
|
24
|
-
const classified_span: (classes: Raw_Or_Normal_List<string>, sections: Raw_Or_Normal_List<target.Phrasing_Content.L>) => target.Phrasing_Content.L;
|
|
25
|
-
const titled_span: (title: string, sections: Raw_Or_Normal_List<target.Phrasing_Content.L>) => target.Phrasing_Content.L;
|
|
23
|
+
const span: (sections: _p.Raw_Or_Normal_List<target.Phrasing_Content.L>) => target.Phrasing_Content.L;
|
|
24
|
+
const classified_span: (classes: _p.Raw_Or_Normal_List<string>, sections: _p.Raw_Or_Normal_List<target.Phrasing_Content.L>) => target.Phrasing_Content.L;
|
|
25
|
+
const titled_span: (title: string, sections: _p.Raw_Or_Normal_List<target.Phrasing_Content.L>) => target.Phrasing_Content.L;
|
|
26
26
|
const a: (text: string, href: string) => target.Phrasing_Content.L;
|
|
27
27
|
const p: (text: string) => target.Phrasing_Content.L;
|
|
28
28
|
}
|
|
@@ -1,132 +1,117 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.p = exports.t = exports.f = void 0;
|
|
4
|
-
const
|
|
27
|
+
const _p = __importStar(require("pareto-core-shorthands/dist/unconstrained"));
|
|
5
28
|
var f;
|
|
6
29
|
(function (f) {
|
|
7
|
-
f.div = (sections) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
f.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
f.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}];
|
|
41
|
-
};
|
|
42
|
-
f.svg = (classes, content, width, height) => {
|
|
43
|
-
return ['svg', {
|
|
44
|
-
'classes': (0, unconstrained_1.wrap_list)(classes),
|
|
45
|
-
'content': content,
|
|
46
|
-
'width': width,
|
|
47
|
-
'height': height,
|
|
48
|
-
}];
|
|
49
|
-
};
|
|
50
|
-
f.table = (classes, sections) => {
|
|
51
|
-
return ['table', {
|
|
52
|
-
'classes': (0, unconstrained_1.wrap_list)(classes),
|
|
53
|
-
'sections': (0, unconstrained_1.wrap_list)(sections),
|
|
54
|
-
}];
|
|
55
|
-
};
|
|
30
|
+
f.div = (sections) => ['div', _p.list.literal(sections)];
|
|
31
|
+
f.dimensioned_div = (width, height, sections) => ['dimensioned div', {
|
|
32
|
+
'width': width,
|
|
33
|
+
'height': height,
|
|
34
|
+
'content': _p.list.literal(sections),
|
|
35
|
+
}];
|
|
36
|
+
f.classified_div = (classes, sections) => ['classified div', {
|
|
37
|
+
'classes': _p.list.literal(classes),
|
|
38
|
+
'content': _p.list.literal(sections),
|
|
39
|
+
}];
|
|
40
|
+
f.span = (sections) => ['span', _p.list.literal(sections)];
|
|
41
|
+
f.label = (classes, text, sections) => ['label', {
|
|
42
|
+
'classes': _p.list.literal(classes),
|
|
43
|
+
'text': text,
|
|
44
|
+
'content': _p.list.literal(sections),
|
|
45
|
+
}];
|
|
46
|
+
f.img = (classes, src, alt, width, height) => ['img', {
|
|
47
|
+
'classes': _p.list.literal(classes),
|
|
48
|
+
'src': src,
|
|
49
|
+
'alt': alt,
|
|
50
|
+
'width': width,
|
|
51
|
+
'height': height,
|
|
52
|
+
}];
|
|
53
|
+
f.svg = (classes, content, width, height) => ['svg', {
|
|
54
|
+
'classes': _p.list.literal(classes),
|
|
55
|
+
'content': content,
|
|
56
|
+
'width': width,
|
|
57
|
+
'height': height,
|
|
58
|
+
}];
|
|
59
|
+
f.table = (classes, sections) => ['table', {
|
|
60
|
+
'classes': _p.list.literal(classes),
|
|
61
|
+
'sections': _p.list.literal(sections),
|
|
62
|
+
}];
|
|
56
63
|
})(f || (exports.f = f = {}));
|
|
57
64
|
var t;
|
|
58
65
|
(function (t) {
|
|
59
|
-
t.header = (classes, rows) => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
};
|
|
80
|
-
t.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
'classes': (0, unconstrained_1.wrap_list)(classes),
|
|
91
|
-
'type': ['td', null],
|
|
92
|
-
'height': height,
|
|
93
|
-
'cells': (0, unconstrained_1.wrap_list)(cells),
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
t.cell = (classes, content) => {
|
|
97
|
-
return {
|
|
98
|
-
'classes': (0, unconstrained_1.wrap_list)(classes),
|
|
99
|
-
'content': (0, unconstrained_1.wrap_list)(content),
|
|
100
|
-
};
|
|
101
|
-
};
|
|
66
|
+
t.header = (classes, rows) => ({
|
|
67
|
+
'classes': _p.list.literal(classes),
|
|
68
|
+
'type': ['header', null],
|
|
69
|
+
'rows': _p.list.literal(rows),
|
|
70
|
+
});
|
|
71
|
+
t.body = (classes, rows) => ({
|
|
72
|
+
'classes': _p.list.literal(classes),
|
|
73
|
+
'type': ['body', null],
|
|
74
|
+
'rows': _p.list.literal(rows),
|
|
75
|
+
});
|
|
76
|
+
t.footer = (classes, rows) => ({
|
|
77
|
+
'classes': _p.list.literal(classes),
|
|
78
|
+
'type': ['footer', null],
|
|
79
|
+
'rows': _p.list.literal(rows),
|
|
80
|
+
});
|
|
81
|
+
t.th = (classes, height, cells) => ({
|
|
82
|
+
'classes': _p.list.literal(classes),
|
|
83
|
+
'type': ['th', null],
|
|
84
|
+
'height': height,
|
|
85
|
+
'cells': _p.list.literal(cells),
|
|
86
|
+
});
|
|
87
|
+
t.td = (classes, height, cells) => ({
|
|
88
|
+
'classes': _p.list.literal(classes),
|
|
89
|
+
'type': ['td', null],
|
|
90
|
+
'height': height,
|
|
91
|
+
'cells': _p.list.literal(cells),
|
|
92
|
+
});
|
|
93
|
+
t.cell = (classes, content) => ({
|
|
94
|
+
'classes': _p.list.literal(classes),
|
|
95
|
+
'content': _p.list.literal(content),
|
|
96
|
+
});
|
|
102
97
|
})(t || (exports.t = t = {}));
|
|
103
98
|
var p;
|
|
104
99
|
(function (p_1) {
|
|
105
|
-
p_1.span = (sections) =>
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
p_1.
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
return ['a', {
|
|
122
|
-
'text': text,
|
|
123
|
-
'href': href,
|
|
124
|
-
}];
|
|
125
|
-
};
|
|
126
|
-
p_1.p = (text) => {
|
|
127
|
-
return ['p', {
|
|
128
|
-
'text': text,
|
|
129
|
-
}];
|
|
130
|
-
};
|
|
100
|
+
p_1.span = (sections) => ['span', _p.list.literal(sections)];
|
|
101
|
+
p_1.classified_span = (classes, sections) => ['classified span', {
|
|
102
|
+
'classes': _p.list.literal(classes),
|
|
103
|
+
'content': _p.list.literal(sections),
|
|
104
|
+
}];
|
|
105
|
+
p_1.titled_span = (title, sections) => ['titled span', {
|
|
106
|
+
'title': title,
|
|
107
|
+
'content': _p.list.literal(sections),
|
|
108
|
+
}];
|
|
109
|
+
p_1.a = (text, href) => ['a', {
|
|
110
|
+
'text': text,
|
|
111
|
+
'href': href,
|
|
112
|
+
}];
|
|
113
|
+
p_1.p = (text) => ['p', {
|
|
114
|
+
'text': text,
|
|
115
|
+
}];
|
|
131
116
|
})(p || (exports.p = p = {}));
|
|
132
|
-
//# sourceM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RUFBRSxJQUFJO1NBQ2YsQ0FBQyxDQUFBO0lBRVcsS0FBQyxHQUFHLENBQ2IsSUFBWSxFQUNhLEVBQUUsQ0FBQyxDQUFDLEdBQUcsRUFBRTtZQUNsQyxNQUFNLEVBQUUsSUFBSTtTQUNmLENBQUMsQ0FBQTtBQUNOLENBQUMsRUFsQ2dCLENBQUMsaUJBQUQsQ0FBQyxRQWtDakIifQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pareto-static-html",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "a library for creating static HTML documents using Pareto",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"
|
|
11
|
+
"astn-core": "^0.1.1",
|
|
12
|
+
"pareto-fountain-pen": "^0.3.34"
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as _target from "../../../../../interface/generated/pareto/core/astn_source";
|
|
2
|
-
import * as d_parse_result from "../../../../../interface/generated/pareto/core/parse_result";
|
|
3
|
-
import * as _source from "../../../../../interface/generated/pareto/core/token";
|
|
4
|
-
import * as pg from "./astn_parse_generic";
|
|
5
|
-
export declare const Structural_Token: (token: _source._T_Annotated_Token) => _target._T_Structural_Token;
|
|
6
|
-
export declare const String: (token_iterator: pg.ASTN_Token_Iterator, abort: ($: pg.My_Parse_Error) => never) => _target._T_String;
|
|
7
|
-
export declare const Document: (token_iterator: pg.ASTN_Token_Iterator, abort: ($: pg.My_Parse_Error) => never) => _target._T_Document;
|
|
8
|
-
export declare const Elements: (token_iterator: pg.ASTN_Token_Iterator, end_reached: ($: _source._T_Token_Type) => boolean, end_token: d_parse_result.Expected, abort: ($: pg.My_Parse_Error) => never) => _target._T_Elements;
|
|
9
|
-
export declare const Key_Value_Pairs: (token_iterator: pg.ASTN_Token_Iterator, end_reached: ($: _source._T_Token_Type) => boolean, end_token: d_parse_result.Expected, abort: ($: pg.My_Parse_Error) => never) => _target._T_Key_Value_Pairs;
|
|
10
|
-
export declare const Value: (token_iterator: pg.ASTN_Token_Iterator, abort: ($: pg.My_Parse_Error) => never) => _target._T_Value;
|