pareto-graphviz 0.1.9 → 0.1.11

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.
Files changed (35) hide show
  1. package/dist/implementation/generated/pareto/generic/parse/ast.d.ts +5 -5
  2. package/dist/implementation/generated/pareto/generic/parse/ast.js +29 -29
  3. package/dist/implementation/generated/pareto/generic/parse/astn_parse_generic.d.ts +12 -9
  4. package/dist/implementation/generated/pareto/generic/parse/astn_parse_generic.js +26 -29
  5. package/dist/implementation/generated/pareto/generic/parse/parse.d.ts +1 -2
  6. package/dist/implementation/generated/pareto/generic/parse/parse.js +21 -32
  7. package/dist/implementation/generated/pareto/generic/parse/string_iterator.d.ts +1 -1
  8. package/dist/implementation/generated/pareto/generic/parse/string_iterator.js +5 -5
  9. package/dist/implementation/generated/pareto/generic/parse/token.d.ts +6 -5
  10. package/dist/implementation/generated/pareto/generic/parse/token.js +67 -67
  11. package/dist/implementation/generated/pareto/generic/resolve.d.ts +1 -1
  12. package/dist/implementation/generated/pareto/generic/resolve.js +17 -16
  13. package/dist/implementation/generated/pareto/generic/serialize.d.ts +2 -2
  14. package/dist/implementation/generated/pareto/generic/serialize.js +2 -2
  15. package/dist/implementation/generated/pareto/generic/unmarshall.d.ts +1 -1
  16. package/dist/implementation/generated/pareto/generic/unmarshall.js +28 -28
  17. package/dist/implementation/generated/pareto/schemas/graphviz/deserialize.js +2 -2
  18. package/dist/implementation/generated/pareto/schemas/graphviz/marshall.js +2 -2
  19. package/dist/implementation/generated/pareto/schemas/graphviz/unmarshall.js +2 -2
  20. package/dist/implementation/serializers/primitives/text/quoted.js +12 -0
  21. package/dist/implementation/transformers/schemas/graphviz/fountain_pen.d.ts +4 -0
  22. package/dist/implementation/transformers/schemas/graphviz/fountain_pen.js +51 -0
  23. package/dist/interface/generated/pareto/core/astn_source.d.ts +1 -1
  24. package/dist/interface/generated/pareto/core/astn_target.d.ts +1 -1
  25. package/dist/interface/generated/pareto/core/parse_result.d.ts +1 -1
  26. package/dist/interface/generated/pareto/core/resolve.d.ts +6 -3
  27. package/dist/interface/generated/pareto/core/resolved.d.ts +1 -1
  28. package/dist/interface/generated/pareto/core/token.d.ts +1 -1
  29. package/dist/interface/generated/pareto/core/unconstrained.d.ts +1 -1
  30. package/dist/interface/generated/pareto/core/unresolved.d.ts +1 -1
  31. package/package.json +2 -6
  32. package/dist/implementation/operations/impure/text/serialize_string.js +0 -12
  33. package/dist/implementation/transformers/graphviz/fountain_pen.d.ts +0 -4
  34. package/dist/implementation/transformers/graphviz/fountain_pen.js +0 -51
  35. /package/dist/implementation/{operations/impure/text/serialize_string.d.ts → serializers/primitives/text/quoted.d.ts} +0 -0
@@ -0,0 +1,51 @@
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
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Graph = void 0;
27
+ const quoted_1 = require("../../../serializers/primitives/text/quoted");
28
+ const sh = __importStar(require("pareto-fountain-pen/dist/shorthands/block"));
29
+ const Graph = ($) => {
30
+ return sh.group([
31
+ sh.g.nested_block([
32
+ sh.b.snippet(`digraph {`),
33
+ sh.b.indent([
34
+ sh.g.simple_block(``),
35
+ sh.g.simple_block(`// nodes`),
36
+ sh.g.sub($.nodes.to_list(($, key) => sh.g.nested_block([
37
+ sh.b.snippet(`${(0, quoted_1.$$)(key)};`),
38
+ ]))),
39
+ sh.g.simple_block(``),
40
+ sh.g.simple_block(`// edges`),
41
+ sh.g.sub($.edges.map(($) => sh.g.nested_block([
42
+ sh.b.snippet(`${(0, quoted_1.$$)($.from)} -> ${(0, quoted_1.$$)($.to)} ;`),
43
+ ]))),
44
+ sh.g.simple_block(``),
45
+ ]),
46
+ sh.b.snippet(`}`),
47
+ ])
48
+ ]);
49
+ };
50
+ exports.Graph = Graph;
51
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm91bnRhaW5fcGVuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2ltcGxlbWVudGF0aW9uL3RyYW5zZm9ybWVycy9zY2hlbWFzL2dyYXBodml6L2ZvdW50YWluX3Blbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQU1BLHdFQUE0RTtBQUU1RSw4RUFBK0Q7QUFFeEQsTUFBTSxLQUFLLEdBQTZDLENBQUMsQ0FBQyxFQUFFLEVBQUU7SUFDakUsT0FBTyxFQUFFLENBQUMsS0FBSyxDQUFDO1FBQ1osRUFBRSxDQUFDLENBQUMsQ0FBQyxZQUFZLENBQUM7WUFDZCxFQUFFLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxXQUFXLENBQUM7WUFDekIsRUFBRSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUM7Z0JBQ1IsRUFBRSxDQUFDLENBQUMsQ0FBQyxZQUFZLENBQU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DLENBQUE7QUFDTixDQUFDLENBQUE7QUFwQlksUUFBQSxLQUFLLFNBb0JqQiJ9
@@ -1,4 +1,4 @@
1
- import * as _et from 'exupery-core-types';
1
+ import * as _et from 'pareto-core-interface';
2
2
  export type _T_Value = readonly [
3
3
  'indexed collection',
4
4
  readonly [
@@ -1,4 +1,4 @@
1
- import * as _et from 'exupery-core-types';
1
+ import * as _et from 'pareto-core-interface';
2
2
  export type _T_Document = _T_Value;
3
3
  export type _T_Value = readonly ['dictionary', _et.Dictionary<_T_Value>] | readonly ['list', _et.List<_T_Value>] | readonly ['nothing', null] | readonly [
4
4
  'optional',
@@ -1,4 +1,4 @@
1
- import * as _et from 'exupery-core-types';
1
+ import * as _et from 'pareto-core-interface';
2
2
  import * as _i_imports_token from "./token";
3
3
  import * as _i_imports_ast from "./astn_source";
4
4
  export type _T_Parse_Error = {
@@ -1,11 +1,14 @@
1
- import * as _et from 'exupery-core-types';
1
+ import * as _et from 'pareto-core-interface';
2
2
  export type Location_to_String<Source> = ($: Source) => string;
3
3
  export type _T_Location_2_String<Source> = Location_to_String<Source>;
4
4
  export type Non_Circular_Result<T> = ['error', ['circular', _et.List<string>]] | ['resolved', T];
5
- export type Acyclic_Lookup<T> = _et.Optional_Value<_et.Lookup<Non_Circular_Result<T>>>;
5
+ export type Lookup<T> = {
6
+ get_entry: (key: string) => _et.Optional_Value<T>;
7
+ };
8
+ export type Acyclic_Lookup<T> = _et.Optional_Value<Lookup<Non_Circular_Result<T>>>;
6
9
  export type _T_Acyclic_Lookup<T> = Acyclic_Lookup<T>;
7
10
  export type Possibly_Circular_Result<T> = _et.Circular_Dependency<T>;
8
- export type Cyclic_Lookup<T> = _et.Optional_Value<_et.Lookup<Possibly_Circular_Result<T>>>;
11
+ export type Cyclic_Lookup<T> = _et.Optional_Value<Lookup<Possibly_Circular_Result<T>>>;
9
12
  export type _T_Cyclic_Lookup<T> = Cyclic_Lookup<T>;
10
13
  export type Lookup_Stack<T> = _et.List<Acyclic_Lookup<T>>;
11
14
  export type _T_Lookup_Stack<T> = Lookup_Stack<T>;
@@ -1,4 +1,4 @@
1
- import * as _et from 'exupery-core-types';
1
+ import * as _et from 'pareto-core-interface';
2
2
  export type _T_Derived_Reference<M_Source, T_Type> = T_Type;
3
3
  export type _T_Dictionary<M_Source, T_D> = _et.Dictionary<T_D>;
4
4
  export type _T_List<M_Source, T_L> = _et.List<T_L>;
@@ -1,4 +1,4 @@
1
- import * as _et from 'exupery-core-types';
1
+ import * as _et from 'pareto-core-interface';
2
2
  export type _T_Annotated_Token = {
3
3
  readonly 'end': _T_Location;
4
4
  readonly 'start': _T_Location;
@@ -1,4 +1,4 @@
1
- import * as _et from 'exupery-core-types';
1
+ import * as _et from 'pareto-core-interface';
2
2
  export type _T_Dictionary<M_Source, T_D> = _et.Dictionary<T_D>;
3
3
  export type _T_List<M_Source, T_L> = _et.List<T_L>;
4
4
  export type _T_State_Group<M_Source, T_SG> = T_SG;
@@ -1,4 +1,4 @@
1
- import * as _et from 'exupery-core-types';
1
+ import * as _et from 'pareto-core-interface';
2
2
  export type _T_Derived_Reference<M_Source, T_Type> = null;
3
3
  export type _T_Dictionary<M_Source, T_D> = {
4
4
  readonly 'dictionary': _et.Dictionary<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pareto-graphviz",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "A TypeScript library for creating Graphviz graphs with pareto",
5
5
  "main": "./dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,10 +27,6 @@
27
27
  "node": ">=14.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "exupery-core-alg": "^0.5.15",
31
- "exupery-core-bin": "^0.3.42",
32
- "exupery-core-data": "^0.3.3",
33
- "pareto-fountain-pen": "^0.3.14",
34
- "pareto-standard-operations": "^0.3.18"
30
+ "pareto-fountain-pen": "^0.3.18"
35
31
  }
36
32
  }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.$$ = void 0;
4
- const escape_character_1 = require("pareto-standard-operations/dist/implementation/operations/impure/text/escape_character");
5
- const $$ = ($) => '"'
6
- + (0, escape_character_1.$$)($, {
7
- 'character code': 34, // "
8
- 'escape character code': 92, // \
9
- })
10
- + '"';
11
- exports.$$ = $$;
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplX3N0cmluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9pbXBsZW1lbnRhdGlvbi9vcGVyYXRpb25zL2ltcHVyZS90ZXh0L3NlcmlhbGl6ZV9zdHJpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBR0EsNkhBQWtJO0FBRTNILE1BQU0sRUFBRSxHQUFHLENBQUMsQ0FBUyxFQUFVLEVBQUUsQ0FBQyxHQUFHO01BQ3RDLElBQUEscUJBQW1CLEVBQ2pCLENBQUMsRUFDRDtRQUNJLGdCQUFnQixFQUFFLEVBQUUsRUFBRSxJQUFJO1FBQzFCLHVCQUF1QixFQUFFLEVBQUUsRUFBRSxJQUFJO0tBQ3BDLENBQ0o7TUFDQyxHQUFHLENBQUE7QUFSSSxRQUFBLEVBQUUsTUFRTiJ9
@@ -1,4 +0,0 @@
1
- import * as _et from 'exupery-core-types';
2
- import * as d_in from "../../../interface/generated/pareto/schemas/graphviz/data_types/source";
3
- import * as d_out from "pareto-fountain-pen/dist/interface/generated/pareto/schemas/block/data_types/target";
4
- export declare const Graph: _et.Transformer<d_in.Graph, d_out.Group>;
@@ -1,51 +0,0 @@
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
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Graph = void 0;
27
- const serialize_string_1 = require("../../operations/impure/text/serialize_string");
28
- const sh = __importStar(require("pareto-fountain-pen/dist/shorthands/block"));
29
- const Graph = ($) => {
30
- return sh.group([
31
- sh.g.nested_block([
32
- sh.b.snippet(`digraph {`),
33
- sh.b.indent([
34
- sh.g.simple_block(``),
35
- sh.g.simple_block(`// nodes`),
36
- sh.g.sub($.nodes.deprecated_to_array(() => 1).map(($) => sh.g.nested_block([
37
- sh.b.snippet(`${(0, serialize_string_1.$$)($.key)};`),
38
- ]))),
39
- sh.g.simple_block(``),
40
- sh.g.simple_block(`// edges`),
41
- sh.g.sub($.edges.map(($) => sh.g.nested_block([
42
- sh.b.snippet(`${(0, serialize_string_1.$$)($.from)} -> ${(0, serialize_string_1.$$)($.to)} ;`),
43
- ]))),
44
- sh.g.simple_block(``),
45
- ]),
46
- sh.b.snippet(`}`),
47
- ])
48
- ]);
49
- };
50
- exports.Graph = Graph;
51
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm91bnRhaW5fcGVuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2ltcGxlbWVud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