fable 3.1.53 → 3.1.55
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/fable.js +43 -34
- package/dist/fable.js.map +1 -1
- package/dist/fable.min.js +2 -2
- package/dist/fable.min.js.map +1 -1
- package/docs/index.html +36 -48
- package/package.json +5 -5
- package/source/services/Fable-Service-ExpressionParser/Fable-Service-ExpressionParser-FunctionMap.json +5 -0
- package/source/services/Fable-Service-Utility.js +12 -0
- package/test/ExpressionParser_tests.js +4 -0
package/docs/index.html
CHANGED
|
@@ -1,51 +1,39 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<!-- Docsify v4 -->
|
|
40
|
-
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
|
|
41
|
-
<!-- Syntax highlighting -->
|
|
42
|
-
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-javascript.min.js"></script>
|
|
43
|
-
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-json.min.js"></script>
|
|
44
|
-
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
|
|
45
|
-
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-markdown.min.js"></script>
|
|
46
|
-
<!-- Search plugin -->
|
|
47
|
-
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.min.js"></script>
|
|
48
|
-
<!-- Copy code plugin -->
|
|
49
|
-
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code@2"></script>
|
|
50
|
-
</body>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
7
|
+
<meta name="description" content="Documentation powered by pict-docuserve">
|
|
8
|
+
|
|
9
|
+
<title>Documentation</title>
|
|
10
|
+
|
|
11
|
+
<!-- Application Stylesheet -->
|
|
12
|
+
<link href="https://cdn.jsdelivr.net/npm/pict-docuserve@0/dist/css/docuserve.css" rel="stylesheet">
|
|
13
|
+
<!-- KaTeX stylesheet for LaTeX equation rendering -->
|
|
14
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.css">
|
|
15
|
+
<!-- PICT Dynamic View CSS Container -->
|
|
16
|
+
<style id="PICT-CSS"></style>
|
|
17
|
+
|
|
18
|
+
<!-- Load the PICT library from jsDelivr CDN -->
|
|
19
|
+
<script src="https://cdn.jsdelivr.net/npm/pict@1/dist/pict.min.js" type="text/javascript"></script>
|
|
20
|
+
<!-- Bootstrap the Application -->
|
|
21
|
+
<script type="text/javascript">
|
|
22
|
+
//<![CDATA[
|
|
23
|
+
Pict.safeOnDocumentReady(() => { Pict.safeLoadPictApplication(PictDocuserve, 2)});
|
|
24
|
+
//]]>
|
|
25
|
+
</script>
|
|
26
|
+
</head>
|
|
27
|
+
<body>
|
|
28
|
+
<!-- The root container for the Pict application -->
|
|
29
|
+
<div id="Docuserve-Application-Container"></div>
|
|
30
|
+
|
|
31
|
+
<!-- Mermaid diagram rendering -->
|
|
32
|
+
<script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"></script>
|
|
33
|
+
<script>mermaid.initialize({ startOnLoad: false, theme: 'default' });</script>
|
|
34
|
+
<!-- KaTeX for LaTeX equation rendering -->
|
|
35
|
+
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.js"></script>
|
|
36
|
+
<!-- Load the Docuserve PICT Application Bundle from jsDelivr CDN -->
|
|
37
|
+
<script src="https://cdn.jsdelivr.net/npm/pict-docuserve@0/dist/pict-docuserve.min.js" type="text/javascript"></script>
|
|
38
|
+
</body>
|
|
51
39
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fable",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.55",
|
|
4
4
|
"description": "A service dependency injection, configuration and logging library.",
|
|
5
5
|
"main": "source/Fable.js",
|
|
6
6
|
"scripts": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://github.com/stevenvelozo/fable",
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"quackage": "^1.0.
|
|
53
|
+
"quackage": "^1.0.50"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"async.eachlimit": "^0.5.2",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"data-arithmatic": "^1.0.7",
|
|
62
62
|
"dayjs": "^1.11.19",
|
|
63
63
|
"fable-log": "^3.0.16",
|
|
64
|
-
"fable-serviceproviderbase": "^3.0.
|
|
65
|
-
"fable-settings": "^3.0.
|
|
64
|
+
"fable-serviceproviderbase": "^3.0.17",
|
|
65
|
+
"fable-settings": "^3.0.14",
|
|
66
66
|
"fable-uuid": "^3.0.11",
|
|
67
|
-
"manyfest": "^1.0.
|
|
67
|
+
"manyfest": "^1.0.44",
|
|
68
68
|
"simple-get": "^4.0.1"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -177,6 +177,11 @@
|
|
|
177
177
|
"Address": "fable.Utility.getInternalValueByHash"
|
|
178
178
|
},
|
|
179
179
|
|
|
180
|
+
"setvalue": {
|
|
181
|
+
"Name": "Set Value to Application State or Services (AppData, etc.)",
|
|
182
|
+
"Address": "fable.Utility.setInternalValueByHash"
|
|
183
|
+
},
|
|
184
|
+
|
|
180
185
|
"objectkeystoarray": {
|
|
181
186
|
"Name": "Get Array of an Object's keys",
|
|
182
187
|
"Address": "fable.Utility.objectKeysToArray"
|
|
@@ -103,6 +103,18 @@ class FableServiceUtility extends libFableServiceBase
|
|
|
103
103
|
return this.getValueByHash(this.fable, pValueAddress);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
/**
|
|
107
|
+
* Set a value from fable/pict by hash/address
|
|
108
|
+
*
|
|
109
|
+
* @param {string} pValueAddress - The manyfest hash/address of the value to get
|
|
110
|
+
* @param {any} pValue - The value to set
|
|
111
|
+
*/
|
|
112
|
+
setInternalValueByHash(pValueAddress, pValue)
|
|
113
|
+
{
|
|
114
|
+
// Get the value from the internal manifest and return it
|
|
115
|
+
return this.setValueByHash(this.fable, pValueAddress, pValue);
|
|
116
|
+
}
|
|
117
|
+
|
|
106
118
|
/**
|
|
107
119
|
* Get a value from an object by hash/address
|
|
108
120
|
* @param {object} pObject - The object to get the value from
|
|
@@ -472,6 +472,10 @@ suite
|
|
|
472
472
|
tmpResult = _Parser.solve('Name = GETVALUE("AppData.Students[4]")', tmpDataObject, tmpSolveResults, false, tmpResultObject);
|
|
473
473
|
Expect(tmpResultObject.Name).to.equal(undefined);
|
|
474
474
|
|
|
475
|
+
tmpResult = _Parser.solve('SETVALUE("AppData.Students[3]", "Dan")', tmpDataObject, tmpSolveResults, false, tmpResultObject);
|
|
476
|
+
tmpResult = _Parser.solve('Name = GETVALUE("AppData.Students[3]")', tmpDataObject, tmpSolveResults, false, tmpResultObject);
|
|
477
|
+
Expect(tmpResultObject.Name).to.equal('Dan');
|
|
478
|
+
|
|
475
479
|
return fDone();
|
|
476
480
|
}
|
|
477
481
|
);
|