amis-formula 1.3.13 → 2.0.0-beta.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # amis-tpl
1
+ # amis-formula
2
2
 
3
3
  负责 amis 里面的表达式、公式及模板的实现
4
4
 
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file
3
+ *
4
+ * 用于 jest 加载 css 的 mock
5
+ */
6
+ module.exports = {};
@@ -0,0 +1,5 @@
1
+ const React = require('react');
2
+
3
+ module.exports = React.forwardRef((props, ref) =>
4
+ React.createElement('icon-mock', {ref, ...props})
5
+ );
@@ -0,0 +1,31 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`lexer:filter 1`] = `
4
+ Array [
5
+ "<Raw> $abc is ",
6
+ "<OpenScript> \${",
7
+ "<Identifier> abc",
8
+ "<OpenFilter> |",
9
+ "<Char> ",
10
+ "<Identifier> date",
11
+ "<Punctuator> :",
12
+ "<Char> ",
13
+ "<Identifier> YYYY-MM-DD",
14
+ "<Char> ",
15
+ "<Identifier> HH:mm:ss",
16
+ "<CloseScript> }",
17
+ "<EOF> undefined",
18
+ ]
19
+ `;
20
+
21
+ exports[`lexer:simple 1`] = `
22
+ Array [
23
+ "<Raw> expression result is ",
24
+ "<OpenScript> \${",
25
+ "<Identifier> a",
26
+ "<Punctuator> +",
27
+ "<Identifier> b",
28
+ "<CloseScript> }",
29
+ "<EOF> undefined",
30
+ ]
31
+ `;