@thienvu18/designable-formily-setters 2.0.0 → 2.0.2

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 (89) hide show
  1. package/esm/components/DataSourceSetter/DataSettingPanel.d.ts +8 -8
  2. package/esm/components/DataSourceSetter/DataSettingPanel.js +124 -52
  3. package/esm/components/DataSourceSetter/Header.d.ts +5 -5
  4. package/esm/components/DataSourceSetter/Header.js +16 -7
  5. package/esm/components/DataSourceSetter/Title.d.ts +5 -5
  6. package/esm/components/DataSourceSetter/Title.js +57 -44
  7. package/esm/components/DataSourceSetter/TreePanel.d.ts +10 -10
  8. package/esm/components/DataSourceSetter/TreePanel.js +129 -89
  9. package/esm/components/DataSourceSetter/index.d.ts +16 -16
  10. package/esm/components/DataSourceSetter/index.js +81 -24
  11. package/esm/components/DataSourceSetter/shared.d.ts +14 -7
  12. package/esm/components/DataSourceSetter/shared.js +39 -41
  13. package/esm/components/DataSourceSetter/styles.less +4 -3
  14. package/esm/components/DataSourceSetter/types.d.ts +12 -12
  15. package/esm/components/DataSourceSetter/types.js +1 -1
  16. package/esm/components/ReactionsSetter/FieldPropertySetter.d.ts +6 -6
  17. package/esm/components/ReactionsSetter/FieldPropertySetter.js +140 -63
  18. package/esm/components/ReactionsSetter/PathSelector.d.ts +10 -9
  19. package/esm/components/ReactionsSetter/PathSelector.js +97 -100
  20. package/esm/components/ReactionsSetter/declarations.d.ts +3 -3
  21. package/esm/components/ReactionsSetter/declarations.js +31 -18
  22. package/esm/components/ReactionsSetter/helpers.d.ts +20 -10
  23. package/esm/components/ReactionsSetter/helpers.js +10 -10
  24. package/esm/components/ReactionsSetter/index.d.ts +6 -6
  25. package/esm/components/ReactionsSetter/index.js +412 -230
  26. package/esm/components/ReactionsSetter/properties.d.ts +14 -11
  27. package/esm/components/ReactionsSetter/properties.js +49 -40
  28. package/esm/components/ReactionsSetter/styles.less +2 -2
  29. package/esm/components/ReactionsSetter/types.d.ts +11 -11
  30. package/esm/components/ReactionsSetter/types.js +1 -1
  31. package/esm/components/ValidatorSetter/index.d.ts +4 -4
  32. package/esm/components/ValidatorSetter/index.js +148 -125
  33. package/esm/components/index.d.ts +3 -3
  34. package/esm/components/index.js +3 -3
  35. package/esm/index.d.ts +2 -2
  36. package/esm/index.js +2 -2
  37. package/esm/locales/en-US.d.ts +92 -92
  38. package/esm/locales/en-US.js +96 -93
  39. package/esm/locales/index.d.ts +1 -1
  40. package/esm/locales/index.js +5 -5
  41. package/esm/locales/ko-KR.d.ts +92 -92
  42. package/esm/locales/ko-KR.js +94 -93
  43. package/esm/locales/zh-CN.d.ts +92 -92
  44. package/esm/locales/zh-CN.js +94 -93
  45. package/lib/components/DataSourceSetter/DataSettingPanel.d.ts +8 -8
  46. package/lib/components/DataSourceSetter/DataSettingPanel.js +129 -55
  47. package/lib/components/DataSourceSetter/Header.d.ts +5 -5
  48. package/lib/components/DataSourceSetter/Header.js +19 -10
  49. package/lib/components/DataSourceSetter/Title.d.ts +5 -5
  50. package/lib/components/DataSourceSetter/Title.js +70 -47
  51. package/lib/components/DataSourceSetter/TreePanel.d.ts +10 -10
  52. package/lib/components/DataSourceSetter/TreePanel.js +134 -92
  53. package/lib/components/DataSourceSetter/index.d.ts +16 -16
  54. package/lib/components/DataSourceSetter/index.js +94 -30
  55. package/lib/components/DataSourceSetter/shared.d.ts +14 -7
  56. package/lib/components/DataSourceSetter/shared.js +48 -47
  57. package/lib/components/DataSourceSetter/styles.less +4 -3
  58. package/lib/components/DataSourceSetter/types.d.ts +12 -12
  59. package/lib/components/DataSourceSetter/types.js +2 -2
  60. package/lib/components/ReactionsSetter/FieldPropertySetter.d.ts +6 -6
  61. package/lib/components/ReactionsSetter/FieldPropertySetter.js +150 -67
  62. package/lib/components/ReactionsSetter/PathSelector.d.ts +10 -9
  63. package/lib/components/ReactionsSetter/PathSelector.js +101 -104
  64. package/lib/components/ReactionsSetter/declarations.d.ts +3 -3
  65. package/lib/components/ReactionsSetter/declarations.js +35 -22
  66. package/lib/components/ReactionsSetter/helpers.d.ts +20 -10
  67. package/lib/components/ReactionsSetter/helpers.js +23 -13
  68. package/lib/components/ReactionsSetter/index.d.ts +6 -6
  69. package/lib/components/ReactionsSetter/index.js +434 -234
  70. package/lib/components/ReactionsSetter/properties.d.ts +14 -11
  71. package/lib/components/ReactionsSetter/properties.js +43 -43
  72. package/lib/components/ReactionsSetter/styles.less +2 -2
  73. package/lib/components/ReactionsSetter/types.d.ts +11 -11
  74. package/lib/components/ReactionsSetter/types.js +2 -2
  75. package/lib/components/ValidatorSetter/index.d.ts +4 -4
  76. package/lib/components/ValidatorSetter/index.js +151 -128
  77. package/lib/components/index.d.ts +3 -3
  78. package/lib/components/index.js +35 -19
  79. package/lib/index.d.ts +2 -2
  80. package/lib/index.js +34 -18
  81. package/lib/locales/en-US.d.ts +92 -92
  82. package/lib/locales/en-US.js +98 -95
  83. package/lib/locales/index.d.ts +1 -1
  84. package/lib/locales/index.js +16 -10
  85. package/lib/locales/ko-KR.d.ts +92 -92
  86. package/lib/locales/ko-KR.js +96 -95
  87. package/lib/locales/zh-CN.d.ts +92 -92
  88. package/lib/locales/zh-CN.js +96 -95
  89. package/package.json +25 -25
@@ -1,93 +1,93 @@
1
1
  declare const _default: {
2
- 'en-US': {
3
- settings: {
4
- 'x-validator': {
5
- title: string;
6
- addValidatorRules: string;
7
- drawer: string;
8
- triggerType: {
9
- title: string;
10
- placeholder: string;
11
- dataSource: string[];
12
- };
13
- format: {
14
- title: string;
15
- placeholder: string;
16
- dataSource: {
17
- label: string;
18
- value: string;
19
- }[];
20
- };
21
- validator: {
22
- title: string;
23
- tooltip: string;
24
- };
25
- pattern: string;
26
- len: string;
27
- max: string;
28
- min: string;
29
- exclusiveMaximum: string;
30
- exclusiveMinimum: string;
31
- whitespace: string;
32
- required: string;
33
- message: {
34
- title: string;
35
- tooltip: string;
36
- };
37
- };
38
- };
39
- SettingComponents: {
40
- DataSourceSetter: {
41
- nodeProperty: string;
42
- pleaseSelectNode: string;
43
- addKeyValuePair: string;
44
- configureDataSource: string;
45
- dataSource: string;
46
- defaultTitle: string;
47
- dataSourceTree: string;
48
- addNode: string;
49
- label: string;
50
- value: string;
51
- item: string;
52
- };
53
- ReactionsSetter: {
54
- configureReactions: string;
55
- relationsFields: string;
56
- variableName: string;
57
- variableNameValidateMessage: string;
58
- pleaseInput: string;
59
- sourceField: string;
60
- sourceProperty: string;
61
- variableType: string;
62
- operations: string;
63
- addRelationField: string;
64
- propertyReactions: string;
65
- actionReactions: string;
66
- visible: string;
67
- hidden: string;
68
- display: string;
69
- pattern: string;
70
- title: string;
71
- description: string;
72
- value: string;
73
- initialValue: string;
74
- dataSource: string;
75
- required: string;
76
- component: string;
77
- componentProps: string;
78
- decorator: string;
79
- decoratorProps: string;
80
- pleaseSelect: string;
81
- expressionValueTypeIs: string;
82
- };
83
- ValidatorSetter: {
84
- pleaseSelect: string;
85
- formats: {
86
- label: string;
87
- value: string;
88
- }[];
89
- };
90
- };
91
- };
92
- };
93
- export default _default;
2
+ 'en-US': {
3
+ settings: {
4
+ 'x-validator': {
5
+ title: string
6
+ addValidatorRules: string
7
+ drawer: string
8
+ triggerType: {
9
+ title: string
10
+ placeholder: string
11
+ dataSource: string[]
12
+ }
13
+ format: {
14
+ title: string
15
+ placeholder: string
16
+ dataSource: {
17
+ label: string
18
+ value: string
19
+ }[]
20
+ }
21
+ validator: {
22
+ title: string
23
+ tooltip: string
24
+ }
25
+ pattern: string
26
+ len: string
27
+ max: string
28
+ min: string
29
+ exclusiveMaximum: string
30
+ exclusiveMinimum: string
31
+ whitespace: string
32
+ required: string
33
+ message: {
34
+ title: string
35
+ tooltip: string
36
+ }
37
+ }
38
+ }
39
+ SettingComponents: {
40
+ DataSourceSetter: {
41
+ nodeProperty: string
42
+ pleaseSelectNode: string
43
+ addKeyValuePair: string
44
+ configureDataSource: string
45
+ dataSource: string
46
+ defaultTitle: string
47
+ dataSourceTree: string
48
+ addNode: string
49
+ label: string
50
+ value: string
51
+ item: string
52
+ }
53
+ ReactionsSetter: {
54
+ configureReactions: string
55
+ relationsFields: string
56
+ variableName: string
57
+ variableNameValidateMessage: string
58
+ pleaseInput: string
59
+ sourceField: string
60
+ sourceProperty: string
61
+ variableType: string
62
+ operations: string
63
+ addRelationField: string
64
+ propertyReactions: string
65
+ actionReactions: string
66
+ visible: string
67
+ hidden: string
68
+ display: string
69
+ pattern: string
70
+ title: string
71
+ description: string
72
+ value: string
73
+ initialValue: string
74
+ dataSource: string
75
+ required: string
76
+ component: string
77
+ componentProps: string
78
+ decorator: string
79
+ decoratorProps: string
80
+ pleaseSelect: string
81
+ expressionValueTypeIs: string
82
+ }
83
+ ValidatorSetter: {
84
+ pleaseSelect: string
85
+ formats: {
86
+ label: string
87
+ value: string
88
+ }[]
89
+ }
90
+ }
91
+ }
92
+ }
93
+ export default _default
@@ -1,98 +1,101 @@
1
1
  const ValidatorFormats = [
2
- { label: 'URL', value: 'url' },
3
- { label: 'Email', value: 'email' },
4
- { label: 'Number', value: 'number' },
5
- { label: 'Integer', value: 'integer' },
6
- { label: 'ID', value: 'idcard' },
7
- { label: 'Phone Number', value: 'phone' },
8
- { label: 'Currency', value: 'money' },
9
- { label: 'Chinese', value: 'zh' },
10
- { label: 'Date', value: 'date' },
11
- { label: 'Zip', value: 'zip' },
12
- ];
2
+ { label: 'URL', value: 'url' },
3
+ { label: 'Email', value: 'email' },
4
+ { label: 'Number', value: 'number' },
5
+ { label: 'Integer', value: 'integer' },
6
+ { label: 'ID', value: 'idcard' },
7
+ { label: 'Phone Number', value: 'phone' },
8
+ { label: 'Currency', value: 'money' },
9
+ { label: 'Chinese', value: 'zh' },
10
+ { label: 'Date', value: 'date' },
11
+ { label: 'Zip', value: 'zip' },
12
+ ]
13
13
  export default {
14
- 'en-US': {
15
- settings: {
16
- 'x-validator': {
17
- title: 'Validator',
18
- addValidatorRules: 'Add Validator Rules',
19
- drawer: 'Edit Rules',
20
- triggerType: {
21
- title: 'Trigger Type',
22
- placeholder: 'Please Select',
23
- dataSource: ['onInput', 'onFocus', 'onBlur'],
24
- },
25
- format: {
26
- title: 'Format',
27
- placeholder: 'Please Select',
28
- dataSource: ValidatorFormats,
29
- },
30
- validator: {
31
- title: 'Custom Validator',
32
- tooltip: 'Format: function (value){ return "Error Message"}',
33
- },
34
- pattern: 'RegExp',
35
- len: 'Length Limit',
36
- max: 'Length/Value Lt',
37
- min: 'Length/Value Gt',
38
- exclusiveMaximum: 'Length/Value Lte',
39
- exclusiveMinimum: 'Length/Value Gte',
40
- whitespace: 'No Whitespace',
41
- required: 'Required',
42
- message: {
43
- title: 'Error Message',
44
- tooltip: 'The error message is only effective for one built-in rule of the current rule set. If you need to customize the error message for different built-in rules, please split into multiple rules',
45
- },
46
- },
14
+ 'en-US': {
15
+ settings: {
16
+ 'x-validator': {
17
+ title: 'Validator',
18
+ addValidatorRules: 'Add Validator Rules',
19
+ drawer: 'Edit Rules',
20
+ triggerType: {
21
+ title: 'Trigger Type',
22
+ placeholder: 'Please Select',
23
+ dataSource: ['onInput', 'onFocus', 'onBlur'],
47
24
  },
48
- SettingComponents: {
49
- DataSourceSetter: {
50
- nodeProperty: 'Node Property',
51
- pleaseSelectNode: 'please select node from the tree on the left',
52
- addKeyValuePair: 'Add Key Value Pair',
53
- configureDataSource: 'Configure',
54
- dataSource: 'Options',
55
- defaultTitle: 'Default Title',
56
- dataSourceTree: 'Options Tree',
57
- addNode: 'Add Node',
58
- label: 'label',
59
- value: 'value',
60
- item: 'Item',
61
- },
62
- ReactionsSetter: {
63
- configureReactions: 'Configure',
64
- relationsFields: 'Associated Fields',
65
- variableName: 'Variable Name',
66
- variableNameValidateMessage: 'This is not a standard variable name',
67
- pleaseInput: 'Please Input',
68
- sourceField: 'Source Field',
69
- sourceProperty: 'Field Property',
70
- variableType: 'Variable Type',
71
- operations: 'Operations',
72
- addRelationField: 'Add Associated Field',
73
- propertyReactions: 'Property Reactions(Only Support Javascript Expression)',
74
- actionReactions: 'Action Reactions(Optional, Support Javascript Statement)',
75
- visible: 'Show/None',
76
- hidden: 'Show/UI Hidden',
77
- display: 'Display',
78
- pattern: 'Pattern',
79
- title: 'Title',
80
- description: 'Description',
81
- value: 'Value',
82
- initialValue: 'InitialValue',
83
- dataSource: 'Options',
84
- required: 'Required',
85
- component: 'Component',
86
- componentProps: 'Component Props',
87
- decorator: 'Decorator',
88
- decoratorProps: 'Decorator Props',
89
- pleaseSelect: 'Please Select',
90
- expressionValueTypeIs: 'Expression value type is',
91
- },
92
- ValidatorSetter: {
93
- pleaseSelect: 'Please Select',
94
- formats: ValidatorFormats,
95
- },
25
+ format: {
26
+ title: 'Format',
27
+ placeholder: 'Please Select',
28
+ dataSource: ValidatorFormats,
96
29
  },
30
+ validator: {
31
+ title: 'Custom Validator',
32
+ tooltip: 'Format: function (value){ return "Error Message"}',
33
+ },
34
+ pattern: 'RegExp',
35
+ len: 'Length Limit',
36
+ max: 'Length/Value Lt',
37
+ min: 'Length/Value Gt',
38
+ exclusiveMaximum: 'Length/Value Lte',
39
+ exclusiveMinimum: 'Length/Value Gte',
40
+ whitespace: 'No Whitespace',
41
+ required: 'Required',
42
+ message: {
43
+ title: 'Error Message',
44
+ tooltip:
45
+ 'The error message is only effective for one built-in rule of the current rule set. If you need to customize the error message for different built-in rules, please split into multiple rules',
46
+ },
47
+ },
48
+ },
49
+ SettingComponents: {
50
+ DataSourceSetter: {
51
+ nodeProperty: 'Node Property',
52
+ pleaseSelectNode: 'please select node from the tree on the left',
53
+ addKeyValuePair: 'Add Key Value Pair',
54
+ configureDataSource: 'Configure',
55
+ dataSource: 'Options',
56
+ defaultTitle: 'Default Title',
57
+ dataSourceTree: 'Options Tree',
58
+ addNode: 'Add Node',
59
+ label: 'label',
60
+ value: 'value',
61
+ item: 'Item',
62
+ },
63
+ ReactionsSetter: {
64
+ configureReactions: 'Configure',
65
+ relationsFields: 'Associated Fields',
66
+ variableName: 'Variable Name',
67
+ variableNameValidateMessage: 'This is not a standard variable name',
68
+ pleaseInput: 'Please Input',
69
+ sourceField: 'Source Field',
70
+ sourceProperty: 'Field Property',
71
+ variableType: 'Variable Type',
72
+ operations: 'Operations',
73
+ addRelationField: 'Add Associated Field',
74
+ propertyReactions:
75
+ 'Property Reactions(Only Support Javascript Expression)',
76
+ actionReactions:
77
+ 'Action Reactions(Optional, Support Javascript Statement)',
78
+ visible: 'Show/None',
79
+ hidden: 'Show/UI Hidden',
80
+ display: 'Display',
81
+ pattern: 'Pattern',
82
+ title: 'Title',
83
+ description: 'Description',
84
+ value: 'Value',
85
+ initialValue: 'InitialValue',
86
+ dataSource: 'Options',
87
+ required: 'Required',
88
+ component: 'Component',
89
+ componentProps: 'Component Props',
90
+ decorator: 'Decorator',
91
+ decoratorProps: 'Decorator Props',
92
+ pleaseSelect: 'Please Select',
93
+ expressionValueTypeIs: 'Expression value type is',
94
+ },
95
+ ValidatorSetter: {
96
+ pleaseSelect: 'Please Select',
97
+ formats: ValidatorFormats,
98
+ },
97
99
  },
98
- };
100
+ },
101
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {}
@@ -1,5 +1,5 @@
1
- import { GlobalRegistry } from '@thienvu18/designable-core';
2
- import zhCN from './zh-CN';
3
- import enUS from './en-US';
4
- import koKR from './ko-KR';
5
- GlobalRegistry.registerDesignerLocales(zhCN, enUS, koKR);
1
+ import { GlobalRegistry } from '@thienvu18/designable-core'
2
+ import enUS from './en-US'
3
+ import koKR from './ko-KR'
4
+ import zhCN from './zh-CN'
5
+ GlobalRegistry.registerDesignerLocales(zhCN, enUS, koKR)
@@ -1,93 +1,93 @@
1
1
  declare const _default: {
2
- 'ko-KR': {
3
- settings: {
4
- 'x-validator': {
5
- title: string;
6
- addValidatorRules: string;
7
- drawer: string;
8
- triggerType: {
9
- title: string;
10
- placeholder: string;
11
- dataSource: string[];
12
- };
13
- format: {
14
- title: string;
15
- placeholder: string;
16
- dataSource: {
17
- label: string;
18
- value: string;
19
- }[];
20
- };
21
- validator: {
22
- title: string;
23
- tooltip: string;
24
- };
25
- pattern: string;
26
- len: string;
27
- max: string;
28
- min: string;
29
- exclusiveMaximum: string;
30
- exclusiveMinimum: string;
31
- whitespace: string;
32
- required: string;
33
- message: {
34
- title: string;
35
- tooltip: string;
36
- };
37
- };
38
- };
39
- SettingComponents: {
40
- DataSourceSetter: {
41
- nodeProperty: string;
42
- pleaseSelectNode: string;
43
- addKeyValuePair: string;
44
- configureDataSource: string;
45
- dataSource: string;
46
- defaultTitle: string;
47
- dataSourceTree: string;
48
- addNode: string;
49
- label: string;
50
- value: string;
51
- item: string;
52
- };
53
- ReactionsSetter: {
54
- configureReactions: string;
55
- relationsFields: string;
56
- variableName: string;
57
- variableNameValidateMessage: string;
58
- pleaseInput: string;
59
- sourceField: string;
60
- sourceProperty: string;
61
- variableType: string;
62
- operations: string;
63
- addRelationField: string;
64
- propertyReactions: string;
65
- actionReactions: string;
66
- visible: string;
67
- hidden: string;
68
- display: string;
69
- pattern: string;
70
- title: string;
71
- description: string;
72
- value: string;
73
- initialValue: string;
74
- dataSource: string;
75
- required: string;
76
- component: string;
77
- componentProps: string;
78
- decorator: string;
79
- decoratorProps: string;
80
- pleaseSelect: string;
81
- expressionValueTypeIs: string;
82
- };
83
- ValidatorSetter: {
84
- pleaseSelect: string;
85
- formats: {
86
- label: string;
87
- value: string;
88
- }[];
89
- };
90
- };
91
- };
92
- };
93
- export default _default;
2
+ 'ko-KR': {
3
+ settings: {
4
+ 'x-validator': {
5
+ title: string
6
+ addValidatorRules: string
7
+ drawer: string
8
+ triggerType: {
9
+ title: string
10
+ placeholder: string
11
+ dataSource: string[]
12
+ }
13
+ format: {
14
+ title: string
15
+ placeholder: string
16
+ dataSource: {
17
+ label: string
18
+ value: string
19
+ }[]
20
+ }
21
+ validator: {
22
+ title: string
23
+ tooltip: string
24
+ }
25
+ pattern: string
26
+ len: string
27
+ max: string
28
+ min: string
29
+ exclusiveMaximum: string
30
+ exclusiveMinimum: string
31
+ whitespace: string
32
+ required: string
33
+ message: {
34
+ title: string
35
+ tooltip: string
36
+ }
37
+ }
38
+ }
39
+ SettingComponents: {
40
+ DataSourceSetter: {
41
+ nodeProperty: string
42
+ pleaseSelectNode: string
43
+ addKeyValuePair: string
44
+ configureDataSource: string
45
+ dataSource: string
46
+ defaultTitle: string
47
+ dataSourceTree: string
48
+ addNode: string
49
+ label: string
50
+ value: string
51
+ item: string
52
+ }
53
+ ReactionsSetter: {
54
+ configureReactions: string
55
+ relationsFields: string
56
+ variableName: string
57
+ variableNameValidateMessage: string
58
+ pleaseInput: string
59
+ sourceField: string
60
+ sourceProperty: string
61
+ variableType: string
62
+ operations: string
63
+ addRelationField: string
64
+ propertyReactions: string
65
+ actionReactions: string
66
+ visible: string
67
+ hidden: string
68
+ display: string
69
+ pattern: string
70
+ title: string
71
+ description: string
72
+ value: string
73
+ initialValue: string
74
+ dataSource: string
75
+ required: string
76
+ component: string
77
+ componentProps: string
78
+ decorator: string
79
+ decoratorProps: string
80
+ pleaseSelect: string
81
+ expressionValueTypeIs: string
82
+ }
83
+ ValidatorSetter: {
84
+ pleaseSelect: string
85
+ formats: {
86
+ label: string
87
+ value: string
88
+ }[]
89
+ }
90
+ }
91
+ }
92
+ }
93
+ export default _default