@thienvu18/designable-formily-setters 2.0.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.
Files changed (91) hide show
  1. package/LICENSE.md +20 -0
  2. package/README.md +7 -0
  3. package/esm/components/DataSourceSetter/DataSettingPanel.d.ts +10 -0
  4. package/esm/components/DataSourceSetter/DataSettingPanel.js +54 -0
  5. package/esm/components/DataSourceSetter/Header.d.ts +7 -0
  6. package/esm/components/DataSourceSetter/Header.js +8 -0
  7. package/esm/components/DataSourceSetter/Title.d.ts +7 -0
  8. package/esm/components/DataSourceSetter/Title.js +46 -0
  9. package/esm/components/DataSourceSetter/TreePanel.d.ts +12 -0
  10. package/esm/components/DataSourceSetter/TreePanel.js +94 -0
  11. package/esm/components/DataSourceSetter/index.d.ts +18 -0
  12. package/esm/components/DataSourceSetter/index.js +27 -0
  13. package/esm/components/DataSourceSetter/shared.d.ts +9 -0
  14. package/esm/components/DataSourceSetter/shared.js +45 -0
  15. package/esm/components/DataSourceSetter/styles.less +81 -0
  16. package/esm/components/DataSourceSetter/types.d.ts +18 -0
  17. package/esm/components/DataSourceSetter/types.js +1 -0
  18. package/esm/components/ReactionsSetter/FieldPropertySetter.d.ts +10 -0
  19. package/esm/components/ReactionsSetter/FieldPropertySetter.js +65 -0
  20. package/esm/components/ReactionsSetter/PathSelector.d.ts +10 -0
  21. package/esm/components/ReactionsSetter/PathSelector.js +103 -0
  22. package/esm/components/ReactionsSetter/declarations.d.ts +5 -0
  23. package/esm/components/ReactionsSetter/declarations.js +51 -0
  24. package/esm/components/ReactionsSetter/helpers.d.ts +10 -0
  25. package/esm/components/ReactionsSetter/helpers.js +384 -0
  26. package/esm/components/ReactionsSetter/index.d.ts +8 -0
  27. package/esm/components/ReactionsSetter/index.js +251 -0
  28. package/esm/components/ReactionsSetter/properties.d.ts +11 -0
  29. package/esm/components/ReactionsSetter/properties.js +41 -0
  30. package/esm/components/ReactionsSetter/styles.less +105 -0
  31. package/esm/components/ReactionsSetter/types.d.ts +13 -0
  32. package/esm/components/ReactionsSetter/types.js +1 -0
  33. package/esm/components/ValidatorSetter/index.d.ts +6 -0
  34. package/esm/components/ValidatorSetter/index.js +135 -0
  35. package/esm/components/index.d.ts +3 -0
  36. package/esm/components/index.js +3 -0
  37. package/esm/index.d.ts +2 -0
  38. package/esm/index.js +2 -0
  39. package/esm/locales/en-US.d.ts +93 -0
  40. package/esm/locales/en-US.js +98 -0
  41. package/esm/locales/index.d.ts +1 -0
  42. package/esm/locales/index.js +5 -0
  43. package/esm/locales/ko-KR.d.ts +93 -0
  44. package/esm/locales/ko-KR.js +98 -0
  45. package/esm/locales/zh-CN.d.ts +93 -0
  46. package/esm/locales/zh-CN.js +98 -0
  47. package/lib/components/DataSourceSetter/DataSettingPanel.d.ts +10 -0
  48. package/lib/components/DataSourceSetter/DataSettingPanel.js +57 -0
  49. package/lib/components/DataSourceSetter/Header.d.ts +7 -0
  50. package/lib/components/DataSourceSetter/Header.js +11 -0
  51. package/lib/components/DataSourceSetter/Title.d.ts +7 -0
  52. package/lib/components/DataSourceSetter/Title.js +49 -0
  53. package/lib/components/DataSourceSetter/TreePanel.d.ts +12 -0
  54. package/lib/components/DataSourceSetter/TreePanel.js +97 -0
  55. package/lib/components/DataSourceSetter/index.d.ts +18 -0
  56. package/lib/components/DataSourceSetter/index.js +33 -0
  57. package/lib/components/DataSourceSetter/shared.d.ts +9 -0
  58. package/lib/components/DataSourceSetter/shared.js +51 -0
  59. package/lib/components/DataSourceSetter/styles.less +81 -0
  60. package/lib/components/DataSourceSetter/types.d.ts +18 -0
  61. package/lib/components/DataSourceSetter/types.js +2 -0
  62. package/lib/components/ReactionsSetter/FieldPropertySetter.d.ts +10 -0
  63. package/lib/components/ReactionsSetter/FieldPropertySetter.js +69 -0
  64. package/lib/components/ReactionsSetter/PathSelector.d.ts +10 -0
  65. package/lib/components/ReactionsSetter/PathSelector.js +107 -0
  66. package/lib/components/ReactionsSetter/declarations.d.ts +5 -0
  67. package/lib/components/ReactionsSetter/declarations.js +55 -0
  68. package/lib/components/ReactionsSetter/helpers.d.ts +10 -0
  69. package/lib/components/ReactionsSetter/helpers.js +387 -0
  70. package/lib/components/ReactionsSetter/index.d.ts +8 -0
  71. package/lib/components/ReactionsSetter/index.js +255 -0
  72. package/lib/components/ReactionsSetter/properties.d.ts +11 -0
  73. package/lib/components/ReactionsSetter/properties.js +44 -0
  74. package/lib/components/ReactionsSetter/styles.less +105 -0
  75. package/lib/components/ReactionsSetter/types.d.ts +13 -0
  76. package/lib/components/ReactionsSetter/types.js +2 -0
  77. package/lib/components/ValidatorSetter/index.d.ts +6 -0
  78. package/lib/components/ValidatorSetter/index.js +138 -0
  79. package/lib/components/index.d.ts +3 -0
  80. package/lib/components/index.js +19 -0
  81. package/lib/index.d.ts +2 -0
  82. package/lib/index.js +18 -0
  83. package/lib/locales/en-US.d.ts +93 -0
  84. package/lib/locales/en-US.js +100 -0
  85. package/lib/locales/index.d.ts +1 -0
  86. package/lib/locales/index.js +10 -0
  87. package/lib/locales/ko-KR.d.ts +93 -0
  88. package/lib/locales/ko-KR.js +100 -0
  89. package/lib/locales/zh-CN.d.ts +93 -0
  90. package/lib/locales/zh-CN.js +100 -0
  91. package/package.json +64 -0
@@ -0,0 +1,11 @@
1
+ export declare const FieldProperties: ({
2
+ key: string;
3
+ type: string;
4
+ helpCode: string;
5
+ token?: undefined;
6
+ } | {
7
+ key: string;
8
+ token: string;
9
+ type: string;
10
+ helpCode: string;
11
+ })[];
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldProperties = void 0;
4
+ const helpers_1 = require("./helpers");
5
+ exports.FieldProperties = [
6
+ {
7
+ key: 'visible',
8
+ type: 'boolean',
9
+ helpCode: helpers_1.BooleanHelper,
10
+ },
11
+ { key: 'hidden', type: 'boolean', helpCode: helpers_1.BooleanHelper },
12
+ {
13
+ key: 'display',
14
+ type: '"visible" | "hidden" | "none"',
15
+ helpCode: helpers_1.DisplayHelper,
16
+ },
17
+ {
18
+ key: 'pattern',
19
+ type: '"editable" | "disabled" | "readOnly" | "readPretty"',
20
+ helpCode: helpers_1.PatternHelper,
21
+ },
22
+ { key: 'title', type: 'string', helpCode: helpers_1.StringHelper },
23
+ { key: 'description', type: 'string', helpCode: helpers_1.StringHelper },
24
+ { key: 'value', type: 'any', helpCode: helpers_1.AnyHelper },
25
+ { key: 'initialValue', type: 'any', helpCode: helpers_1.AnyHelper },
26
+ { key: 'required', type: 'boolean', helpCode: helpers_1.BooleanHelper },
27
+ {
28
+ key: 'dataSource',
29
+ type: 'Array<{label?:string,value?:any}>',
30
+ helpCode: helpers_1.DataSourceHelper,
31
+ },
32
+ {
33
+ key: 'componentProps',
34
+ token: 'componentProps',
35
+ type: 'object',
36
+ helpCode: helpers_1.ComponentPropsHelper,
37
+ },
38
+ {
39
+ key: 'decoratorProps',
40
+ token: 'decoratorProps',
41
+ type: 'object',
42
+ helpCode: helpers_1.DecoratorPropsHelper,
43
+ },
44
+ ];
@@ -0,0 +1,105 @@
1
+
2
+ .dn-reactions-setter {
3
+ width: 100%;
4
+ min-height: 623px;
5
+ overflow: hidden;
6
+
7
+ ::-webkit-scrollbar {
8
+ width: 5px;
9
+ height: 5px;
10
+ }
11
+
12
+ ::-webkit-scrollbar-thumb {
13
+ background-color: rgba(0, 0, 0, 0.2);
14
+ border-radius: 0;
15
+ transition: all 0.25s ease-in-out;
16
+ }
17
+
18
+ ::-webkit-scrollbar-thumb:hover {
19
+ background-color: rgba(0, 0, 0, 0.3);
20
+ }
21
+
22
+ .@{ant-prefix}-collapse {
23
+ border: 1px solid var(--dn-color-border-secondary, rgba(5, 5, 5, 0.06));
24
+
25
+ &-header {
26
+ padding: 8px 10px !important;
27
+ background-color: var(--dn-color-bg-container, #fff) !important;
28
+ border-bottom: 1px solid var(--dn-color-border-secondary, rgba(5, 5, 5, 0.06)) !important;
29
+ font-weight: 500 !important;
30
+
31
+ .@{ant-prefix}-collapse-arrow {
32
+ margin-right: 4px !important;
33
+ }
34
+ }
35
+
36
+ &-item {
37
+ border: none !important;
38
+ }
39
+
40
+ &-content {
41
+ border: none !important;
42
+ transition: none !important;
43
+ }
44
+
45
+ &-content-box {
46
+ padding: 12px !important;
47
+ }
48
+ }
49
+
50
+ .reaction-runner {
51
+ .@{ant-prefix}-collapse-content-box {
52
+ padding: 12px 0 !important;
53
+ }
54
+ }
55
+
56
+ .reaction-state {
57
+ .@{ant-prefix}-collapse-content-box {
58
+ padding: 12px 0 !important;
59
+ }
60
+ }
61
+
62
+ .dn-field-property-setter {
63
+ display: flex;
64
+ height: 300px;
65
+
66
+ &-coder-wrapper {
67
+ display: flex;
68
+ flex-grow: 2;
69
+ height: 100%;
70
+ padding-left: 10px;
71
+ position: relative;
72
+ flex-direction: column;
73
+ }
74
+
75
+ &-coder-start {
76
+ font-size: 18px;
77
+ line-height: 30px;
78
+ margin-bottom: 4px;
79
+ color: var(--dn-color-text, rgba(0, 0, 0, 0.88));
80
+ font-weight: 300;
81
+ flex-grow: 0;
82
+ opacity: 0.96;
83
+ height: 31px;
84
+ }
85
+
86
+ &-coder-end {
87
+ font-size: 18px;
88
+ height: 31px;
89
+ color: var(--dn-color-text, rgba(0, 0, 0, 0.88));
90
+ margin-top: 4px;
91
+ margin-bottom: 4px;
92
+ line-height: 30px;
93
+ font-weight: 300;
94
+ flex-grow: 0;
95
+ opacity: 0.96;
96
+ }
97
+
98
+ &-coder {
99
+ min-width: 0;
100
+ flex-grow: 2;
101
+ padding-left: 10px;
102
+ }
103
+ }
104
+ }
105
+ @ant-prefix: ant;
@@ -0,0 +1,13 @@
1
+ export interface IReaction {
2
+ dependencies?: {
3
+ [key: string]: string;
4
+ };
5
+ fulfill?: {
6
+ state?: {
7
+ [key: string]: string;
8
+ };
9
+ schema?: {
10
+ [key: string]: string;
11
+ };
12
+ };
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IValidatorSetterProps {
3
+ value?: any;
4
+ onChange?: (value: any) => void;
5
+ }
6
+ export declare const ValidatorSetter: React.FC<IValidatorSetterProps>;
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidatorSetter = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("@formily/react");
6
+ const designable_core_1 = require("@thienvu18/designable-core");
7
+ const formily_antd_v6_1 = require("@thienvu18/formily-antd-v6");
8
+ const designable_react_settings_form_1 = require("@thienvu18/designable-react-settings-form");
9
+ const antd_1 = require("antd");
10
+ const ValidatorSchema = {
11
+ type: 'array',
12
+ items: {
13
+ type: 'object',
14
+ 'x-decorator': 'ArrayItems.Item',
15
+ 'x-decorator-props': {
16
+ style: {
17
+ alignItems: 'center',
18
+ borderRadius: 3,
19
+ paddingTop: 6,
20
+ paddingBottom: 6,
21
+ },
22
+ },
23
+ properties: {
24
+ sortable: {
25
+ type: 'void',
26
+ 'x-component': 'ArrayItems.SortHandle',
27
+ 'x-component-props': { style: { marginRight: 10 } },
28
+ },
29
+ drawer: {
30
+ type: 'void',
31
+ 'x-component': 'DrawerSetter',
32
+ properties: {
33
+ triggerType: {
34
+ type: 'string',
35
+ enum: ['onInput', 'onFocus', 'onBlur'],
36
+ 'x-decorator': 'FormItem',
37
+ 'x-component': 'Select',
38
+ },
39
+ validator: {
40
+ type: 'string',
41
+ 'x-decorator': 'FormItem',
42
+ 'x-component': 'ValueInput',
43
+ 'x-component-props': {
44
+ include: ['EXPRESSION'],
45
+ },
46
+ },
47
+ message: {
48
+ type: 'string',
49
+ 'x-decorator': 'FormItem',
50
+ 'x-component': 'Input.TextArea',
51
+ },
52
+ format: {
53
+ type: 'string',
54
+ 'x-decorator': 'FormItem',
55
+ 'x-component': 'Select',
56
+ 'x-component-props': {
57
+ allowClear: true,
58
+ },
59
+ },
60
+ pattern: {
61
+ type: 'string',
62
+ 'x-decorator': 'FormItem',
63
+ 'x-component': 'Input',
64
+ 'x-component-props': {
65
+ prefix: '/',
66
+ suffix: '/',
67
+ },
68
+ },
69
+ len: {
70
+ type: 'string',
71
+ 'x-decorator': 'FormItem',
72
+ 'x-component': 'NumberPicker',
73
+ },
74
+ max: {
75
+ type: 'string',
76
+ 'x-decorator': 'FormItem',
77
+ 'x-component': 'NumberPicker',
78
+ },
79
+ min: {
80
+ type: 'string',
81
+ 'x-decorator': 'FormItem',
82
+ 'x-component': 'NumberPicker',
83
+ },
84
+ exclusiveMaximum: {
85
+ type: 'string',
86
+ 'x-decorator': 'FormItem',
87
+ 'x-component': 'NumberPicker',
88
+ },
89
+ exclusiveMinimum: {
90
+ type: 'string',
91
+ 'x-decorator': 'FormItem',
92
+ 'x-component': 'NumberPicker',
93
+ },
94
+ whitespace: {
95
+ type: 'string',
96
+ 'x-decorator': 'FormItem',
97
+ 'x-component': 'Switch',
98
+ },
99
+ required: {
100
+ type: 'string',
101
+ 'x-decorator': 'FormItem',
102
+ 'x-component': 'Switch',
103
+ },
104
+ },
105
+ },
106
+ moveDown: {
107
+ type: 'void',
108
+ 'x-component': 'ArrayItems.MoveDown',
109
+ 'x-component-props': { style: { marginLeft: 10 } },
110
+ },
111
+ moveUp: {
112
+ type: 'void',
113
+ 'x-component': 'ArrayItems.MoveUp',
114
+ 'x-component-props': { style: { marginLeft: 5 } },
115
+ },
116
+ remove: {
117
+ type: 'void',
118
+ 'x-component': 'ArrayItems.Remove',
119
+ 'x-component-props': { style: { marginLeft: 5 } },
120
+ },
121
+ },
122
+ },
123
+ properties: {
124
+ addValidatorRules: {
125
+ type: 'void',
126
+ 'x-component': 'ArrayItems.Addition',
127
+ 'x-component-props': {
128
+ style: {
129
+ marginBottom: 10,
130
+ },
131
+ },
132
+ },
133
+ },
134
+ };
135
+ exports.ValidatorSetter = (0, react_1.observer)((props) => {
136
+ const field = (0, react_1.useField)();
137
+ return ((0, jsx_runtime_1.jsxs)(designable_react_settings_form_1.FoldItem, { label: field.title, children: [(0, jsx_runtime_1.jsx)(designable_react_settings_form_1.FoldItem.Base, { children: (0, jsx_runtime_1.jsx)(antd_1.Select, { value: Array.isArray(props.value) ? undefined : props.value, onChange: props.onChange, allowClear: true, placeholder: designable_core_1.GlobalRegistry.getDesignerMessage('SettingComponents.ValidatorSetter.pleaseSelect'), options: designable_core_1.GlobalRegistry.getDesignerMessage('SettingComponents.ValidatorSetter.formats') }) }), (0, jsx_runtime_1.jsx)(designable_react_settings_form_1.FoldItem.Extra, { children: (0, jsx_runtime_1.jsx)(react_1.SchemaContext.Provider, { value: new react_1.Schema(ValidatorSchema), children: (0, jsx_runtime_1.jsx)(formily_antd_v6_1.ArrayItems, {}) }) })] }));
138
+ });
@@ -0,0 +1,3 @@
1
+ export * from './DataSourceSetter';
2
+ export * from './ReactionsSetter';
3
+ export * from './ValidatorSetter';
@@ -0,0 +1,19 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./DataSourceSetter"), exports);
18
+ __exportStar(require("./ReactionsSetter"), exports);
19
+ __exportStar(require("./ValidatorSetter"), exports);
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import './locales';
2
+ export * from './components';
package/lib/index.js ADDED
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ require("./locales");
18
+ __exportStar(require("./components"), exports);
@@ -0,0 +1,93 @@
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;
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const ValidatorFormats = [
4
+ { label: 'URL', value: 'url' },
5
+ { label: 'Email', value: 'email' },
6
+ { label: 'Number', value: 'number' },
7
+ { label: 'Integer', value: 'integer' },
8
+ { label: 'ID', value: 'idcard' },
9
+ { label: 'Phone Number', value: 'phone' },
10
+ { label: 'Currency', value: 'money' },
11
+ { label: 'Chinese', value: 'zh' },
12
+ { label: 'Date', value: 'date' },
13
+ { label: 'Zip', value: 'zip' },
14
+ ];
15
+ exports.default = {
16
+ 'en-US': {
17
+ settings: {
18
+ 'x-validator': {
19
+ title: 'Validator',
20
+ addValidatorRules: 'Add Validator Rules',
21
+ drawer: 'Edit Rules',
22
+ triggerType: {
23
+ title: 'Trigger Type',
24
+ placeholder: 'Please Select',
25
+ dataSource: ['onInput', 'onFocus', 'onBlur'],
26
+ },
27
+ format: {
28
+ title: 'Format',
29
+ placeholder: 'Please Select',
30
+ dataSource: ValidatorFormats,
31
+ },
32
+ validator: {
33
+ title: 'Custom Validator',
34
+ tooltip: 'Format: function (value){ return "Error Message"}',
35
+ },
36
+ pattern: 'RegExp',
37
+ len: 'Length Limit',
38
+ max: 'Length/Value Lt',
39
+ min: 'Length/Value Gt',
40
+ exclusiveMaximum: 'Length/Value Lte',
41
+ exclusiveMinimum: 'Length/Value Gte',
42
+ whitespace: 'No Whitespace',
43
+ required: 'Required',
44
+ message: {
45
+ title: 'Error Message',
46
+ 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',
47
+ },
48
+ },
49
+ },
50
+ SettingComponents: {
51
+ DataSourceSetter: {
52
+ nodeProperty: 'Node Property',
53
+ pleaseSelectNode: 'please select node from the tree on the left',
54
+ addKeyValuePair: 'Add Key Value Pair',
55
+ configureDataSource: 'Configure',
56
+ dataSource: 'Options',
57
+ defaultTitle: 'Default Title',
58
+ dataSourceTree: 'Options Tree',
59
+ addNode: 'Add Node',
60
+ label: 'label',
61
+ value: 'value',
62
+ item: 'Item',
63
+ },
64
+ ReactionsSetter: {
65
+ configureReactions: 'Configure',
66
+ relationsFields: 'Associated Fields',
67
+ variableName: 'Variable Name',
68
+ variableNameValidateMessage: 'This is not a standard variable name',
69
+ pleaseInput: 'Please Input',
70
+ sourceField: 'Source Field',
71
+ sourceProperty: 'Field Property',
72
+ variableType: 'Variable Type',
73
+ operations: 'Operations',
74
+ addRelationField: 'Add Associated Field',
75
+ propertyReactions: 'Property Reactions(Only Support Javascript Expression)',
76
+ actionReactions: 'Action Reactions(Optional, Support Javascript Statement)',
77
+ visible: 'Show/None',
78
+ hidden: 'Show/UI Hidden',
79
+ display: 'Display',
80
+ pattern: 'Pattern',
81
+ title: 'Title',
82
+ description: 'Description',
83
+ value: 'Value',
84
+ initialValue: 'InitialValue',
85
+ dataSource: 'Options',
86
+ required: 'Required',
87
+ component: 'Component',
88
+ componentProps: 'Component Props',
89
+ decorator: 'Decorator',
90
+ decoratorProps: 'Decorator Props',
91
+ pleaseSelect: 'Please Select',
92
+ expressionValueTypeIs: 'Expression value type is',
93
+ },
94
+ ValidatorSetter: {
95
+ pleaseSelect: 'Please Select',
96
+ formats: ValidatorFormats,
97
+ },
98
+ },
99
+ },
100
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const designable_core_1 = require("@thienvu18/designable-core");
7
+ const zh_CN_1 = __importDefault(require("./zh-CN"));
8
+ const en_US_1 = __importDefault(require("./en-US"));
9
+ const ko_KR_1 = __importDefault(require("./ko-KR"));
10
+ designable_core_1.GlobalRegistry.registerDesignerLocales(zh_CN_1.default, en_US_1.default, ko_KR_1.default);
@@ -0,0 +1,93 @@
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;