@rkmodules/rules 0.0.1

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 (52) hide show
  1. package/dist/app/editor/calcTestFunction.d.ts +2 -0
  2. package/dist/app/editor/page.d.ts +2 -0
  3. package/dist/app/finance/entriesTestFunction.d.ts +2 -0
  4. package/dist/app/finance/page.d.ts +2 -0
  5. package/dist/app/finance/testEntries.d.ts +40 -0
  6. package/dist/app/layout.d.ts +9 -0
  7. package/dist/app/page.d.ts +2 -0
  8. package/dist/app/supalipu/page.d.ts +13 -0
  9. package/dist/index.css +81 -0
  10. package/dist/index.d.ts +6 -0
  11. package/dist/index.js +1635 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/lib/DataTree/index.d.ts +100 -0
  14. package/dist/lib/DataTree/monad.d.ts +35 -0
  15. package/dist/lib/DataTree/types.d.ts +2 -0
  16. package/dist/lib/DataTree/util.d.ts +31 -0
  17. package/dist/lib/Engine/Rule.d.ts +2 -0
  18. package/dist/lib/Engine/index.d.ts +54 -0
  19. package/dist/lib/Engine/types.d.ts +55 -0
  20. package/dist/lib/Engine/util.d.ts +7 -0
  21. package/dist/lib/Flow/Components/Control.d.ts +9 -0
  22. package/dist/lib/Flow/Components/GenericNode.d.ts +15 -0
  23. package/dist/lib/Flow/Components/Input.d.ts +8 -0
  24. package/dist/lib/Flow/Components/NodeContainer.d.ts +10 -0
  25. package/dist/lib/Flow/Components/Output.d.ts +6 -0
  26. package/dist/lib/Flow/Components/Param.d.ts +8 -0
  27. package/dist/lib/Flow/Context.d.ts +6 -0
  28. package/dist/lib/Flow/Nodes/Calc.d.ts +11 -0
  29. package/dist/lib/Flow/Nodes/Default.d.ts +4 -0
  30. package/dist/lib/Flow/Nodes/Log.d.ts +4 -0
  31. package/dist/lib/Flow/Nodes/index.d.ts +5 -0
  32. package/dist/lib/Flow/index.d.ts +21 -0
  33. package/dist/lib/Flow/types.d.ts +8 -0
  34. package/dist/lib/Primitives/List/filterList.d.ts +2 -0
  35. package/dist/lib/Primitives/List/graftTree.d.ts +2 -0
  36. package/dist/lib/Primitives/List/index.d.ts +3 -0
  37. package/dist/lib/Primitives/List/listItem.d.ts +2 -0
  38. package/dist/lib/Primitives/List/listLength.d.ts +2 -0
  39. package/dist/lib/Primitives/List/trimTree.d.ts +2 -0
  40. package/dist/lib/Primitives/Math/calc.d.ts +12 -0
  41. package/dist/lib/Primitives/Math/greaterThan.d.ts +2 -0
  42. package/dist/lib/Primitives/Math/index.d.ts +3 -0
  43. package/dist/lib/Primitives/Math/lessThan.d.ts +2 -0
  44. package/dist/lib/Primitives/Util/getValue.d.ts +5 -0
  45. package/dist/lib/Primitives/Util/index.d.ts +3 -0
  46. package/dist/lib/Primitives/Util/log.d.ts +2 -0
  47. package/dist/lib/Primitives/Util/value.d.ts +5 -0
  48. package/dist/lib/Primitives/index.d.ts +2 -0
  49. package/dist/lib/hooks/useFunction.d.ts +18 -0
  50. package/dist/lib/hooks/useVariable.d.ts +6 -0
  51. package/package.json +56 -0
  52. package/readme.md +66 -0
@@ -0,0 +1,2 @@
1
+ import { GraphedFunction } from "../../lib/Engine";
2
+ export declare const calcTest: GraphedFunction;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default function Index(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { GraphedFunction } from "../../lib/Engine";
2
+ export declare const entriesTest: GraphedFunction;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default function Index(): React.JSX.Element;
@@ -0,0 +1,40 @@
1
+ export declare const EntryA: {
2
+ name: string;
3
+ description: string;
4
+ lines: {
5
+ db: string;
6
+ cr: string;
7
+ amt: number;
8
+ }[];
9
+ toString: () => string;
10
+ };
11
+ export declare const EntryB: {
12
+ name: string;
13
+ description: string;
14
+ lines: {
15
+ db: string;
16
+ cr: string;
17
+ amt: number;
18
+ }[];
19
+ toString: () => string;
20
+ };
21
+ export declare const EntryC: {
22
+ name: string;
23
+ description: string;
24
+ lines: {
25
+ db: string;
26
+ cr: string;
27
+ amt: number;
28
+ }[];
29
+ toString: () => string;
30
+ };
31
+ export declare const entries: {
32
+ name: string;
33
+ description: string;
34
+ lines: {
35
+ db: string;
36
+ cr: string;
37
+ amt: number;
38
+ }[];
39
+ toString: () => string;
40
+ }[];
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import "./global.css";
3
+ export declare const metadata: {
4
+ title: string;
5
+ description: string;
6
+ };
7
+ export default function RootLayout({ children, }: {
8
+ children: React.ReactNode;
9
+ }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export default function Index(): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { GraphedFunction } from "../../lib/Engine";
3
+ interface PropObject<P = any> {
4
+ _id: string;
5
+ type: string;
6
+ props: P;
7
+ onChange?: string;
8
+ }
9
+ type Function = PropObject<GraphedFunction>;
10
+ /** propobject for the change handler */
11
+ export declare const handleChange: Function;
12
+ export default function Index(): React.JSX.Element;
13
+ export {};
package/dist/index.css ADDED
@@ -0,0 +1,81 @@
1
+ .DefaultNode_R2P6c {
2
+ border: 1px solid var(--node-line);
3
+ border-radius: 4px;
4
+ background-color: var(--node-background);
5
+ min-width: 200px;
6
+ }
7
+ .DefaultNode_R2P6c.selected_VmB-F {
8
+ border-color: var(--node-select-line);
9
+ }
10
+ .DefaultNode_R2P6c.active_zjUzx {
11
+ box-shadow: 0px 0px 3px 2px var(--node-active-line);
12
+ }
13
+
14
+
15
+ .Log_dsq5e {
16
+ --node-background: var(--color-lightyellow);
17
+ --node-line: var(--color-yellow);
18
+ }
19
+
20
+ .Label_wBwWA {
21
+ border-bottom: 1px solid var(--node-line);
22
+ padding: 4px 8px;
23
+ text-align: center;
24
+ font-weight: bold;
25
+ }
26
+
27
+ .DefaultNode_R2P6c table {
28
+ width: 100%;
29
+ border-collapse: collapse;
30
+ }
31
+
32
+ .DefaultNode_R2P6c tr {
33
+ position: relative;
34
+ }
35
+
36
+ .DefaultNode_R2P6c td {
37
+ padding: 4px 8px;
38
+ position: relative;
39
+ }
40
+
41
+
42
+ .DefaultNode_R2P6c input,
43
+ .DefaultNode_R2P6c select {
44
+ border: 1px solid var(--node-line);
45
+ border-radius: 4px;
46
+ width: 100%;
47
+ box-sizing: border-box;
48
+ }
49
+
50
+
51
+ .Output_e4yF- {
52
+ text-align: right;
53
+ }
54
+
55
+ .type-string_XVlwo {
56
+ color: var(--type-string, var(--color-orange));
57
+ --xy-handle-background-color: var(--type-string, var(--color-orange));
58
+ }
59
+ .type-number_0cg49 {
60
+ color: var(--type-string, var(--color-lightgreen));
61
+ --xy-handle-background-color: var(--type-number, var(--color-lightgreen));
62
+ }
63
+ .type-boolean_t4ba5 {
64
+ color: var(--type-string, var(--color-lightblue));
65
+ --xy-handle-background-color: var(--type-boolean, var(--color-lightblue));
66
+ }
67
+ .type-any_FPwjQ {
68
+ color: var(--type-string, var(--color-lightpink));
69
+ --xy-handle-background-color: var(--type-any, var(--color-lightpink));
70
+ }
71
+
72
+
73
+ .Table_aZyRT {
74
+ margin: 2px;
75
+ max-height: 400px;
76
+ overflow: auto;
77
+ }
78
+ .Table_aZyRT th,
79
+ .Table_aZyRT td {
80
+ border: 1px solid var(--node-line);
81
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * main entry point for the application
3
+ */
4
+ export * from "./lib/Engine";
5
+ export * from "./lib/Primitives";
6
+ export * from "./lib/Flow";