assui 2.3.8 → 3.0.0-alpha.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/es/a-select/index.js +7 -22
- package/es/a-select/style/index.css +195 -743
- package/es/area-text/index.js +1 -3
- package/es/button-drawer/index.js +12 -30
- package/es/button-modal/index.js +12 -33
- package/es/color-select/index.js +10 -23
- package/es/color-select/style/index.css +195 -743
- package/es/condition-input/index.js +8 -26
- package/es/condition-input/parse2RegexOption.js +0 -11
- package/es/config-provider/index.js +1 -3
- package/es/copy-to-clipboard/index.js +11 -27
- package/es/copy-to-clipboard/style/index.css +0 -1
- package/es/highlight-textarea/HighlighedContents.js +1 -3
- package/es/highlight-textarea/extractSpansOfClasses.d.ts +1 -0
- package/es/highlight-textarea/extractSpansOfClasses.js +7 -29
- package/es/highlight-textarea/getRanges.js +3 -35
- package/es/highlight-textarea/getType.js +0 -6
- package/es/highlight-textarea/index.js +11 -30
- package/es/highlight-textarea/style/index.css +7 -21
- package/es/img-crop/EasyCrop.js +18 -34
- package/es/img-crop/getCroppedImg.js +15 -50
- package/es/img-crop/index.js +56 -145
- package/es/img-crop/style/index.css +195 -743
- package/es/json-editor/index.js +6 -20
- package/es/keep-tab/index.d.ts +7 -2
- package/es/keep-tab/index.js +34 -59
- package/es/keep-tab/style/index.css +39 -99
- package/es/label-auto-complete/index.js +14 -32
- package/es/label-auto-complete/style/index.css +195 -743
- package/es/label-condition-input/index.js +13 -29
- package/es/label-customize-range-picker/defaultRadioList.js +0 -3
- package/es/label-customize-range-picker/index.js +36 -78
- package/es/label-customize-range-picker/style/index.css +195 -743
- package/es/label-customize-range-picker/utils/index.js +5 -14
- package/es/label-date-picker/index.js +11 -28
- package/es/label-date-picker/style/index.css +195 -743
- package/es/label-input/index.js +23 -37
- package/es/label-number-input/index.js +13 -28
- package/es/label-range-picker/index.js +11 -28
- package/es/label-range-picker/style/index.css +195 -743
- package/es/label-select/index.js +11 -27
- package/es/label-select/style/index.css +195 -743
- package/es/label-text-area/index.js +13 -35
- package/es/label-tree-select/index.js +15 -32
- package/es/label-tree-select/style/index.css +195 -743
- package/es/number-format-input/index.js +1 -11
- package/es/number-input/index.js +18 -37
- package/es/number-input/utils.js +7 -15
- package/es/rc-echart/core.js +15 -27
- package/es/rc-echart/index.js +0 -6
- package/es/rc-qrcode/index.js +2 -12
- package/es/rc-qrcode/useQrcode.js +5 -12
- package/es/rich-text-editor/index.js +5 -16
- package/es/rich-text-editor/plugins/code/index.js +0 -8
- package/es/rich-text-editor/style/index.css +195 -743
- package/es/single-img-upload/index.js +36 -110
- package/es/single-img-upload/style/index.css +195 -743
- package/es/split-pane/index.js +0 -4
- package/es/step-number-input/index.js +14 -39
- package/es/step-number-input/style/index.css +195 -743
- package/es/table-col/index.js +2 -4
- package/es/text-area/index.js +8 -27
- package/es/text-input/index.js +4 -18
- package/es/text-input/style/index.css +7 -21
- package/lib/a-select/index.js +7 -27
- package/lib/a-select/style/index.css +195 -743
- package/lib/a-select/style/index.js +0 -2
- package/lib/area-text/index.js +1 -6
- package/lib/area-text/style/index.js +0 -1
- package/lib/beautiful-dnd/index.js +0 -9
- package/lib/button-drawer/index.js +12 -42
- package/lib/button-drawer/style/index.js +0 -1
- package/lib/button-modal/index.js +12 -44
- package/lib/button-modal/style/index.js +0 -1
- package/lib/color-select/index.js +10 -39
- package/lib/color-select/style/index.css +195 -743
- package/lib/color-select/style/index.js +0 -2
- package/lib/condition-input/index.js +8 -41
- package/lib/condition-input/parse2RegexOption.js +0 -16
- package/lib/condition-input/style/index.js +0 -1
- package/lib/config-provider/context.js +0 -4
- package/lib/config-provider/index.js +1 -28
- package/lib/copy-to-clipboard/index.js +11 -38
- package/lib/copy-to-clipboard/style/index.css +0 -1
- package/lib/copy-to-clipboard/style/index.js +0 -1
- package/lib/highlight-textarea/HighlighedContents.js +1 -7
- package/lib/highlight-textarea/extractSpansOfClasses.d.ts +1 -0
- package/lib/highlight-textarea/extractSpansOfClasses.js +7 -31
- package/lib/highlight-textarea/getRanges.js +3 -38
- package/lib/highlight-textarea/getType.js +0 -8
- package/lib/highlight-textarea/index.js +11 -44
- package/lib/highlight-textarea/style/index.css +7 -21
- package/lib/highlight-textarea/style/index.js +0 -1
- package/lib/highlight-words/index.js +0 -3
- package/lib/img-crop/EasyCrop.js +18 -44
- package/lib/img-crop/getCroppedImg.js +15 -51
- package/lib/img-crop/index.js +56 -159
- package/lib/img-crop/style/index.css +195 -743
- package/lib/img-crop/style/index.js +0 -3
- package/lib/index.js +0 -77
- package/lib/json-editor/index.js +6 -35
- package/lib/json-editor/style/index.js +0 -2
- package/lib/keep-tab/index.d.ts +7 -2
- package/lib/keep-tab/index.js +34 -76
- package/lib/keep-tab/style/index.css +39 -99
- package/lib/keep-tab/style/index.js +0 -2
- package/lib/label-auto-complete/index.js +14 -39
- package/lib/label-auto-complete/style/index.css +195 -743
- package/lib/label-auto-complete/style/index.js +0 -2
- package/lib/label-condition-input/index.js +13 -36
- package/lib/label-condition-input/style/index.js +0 -1
- package/lib/label-customize-range-picker/defaultRadioList.js +0 -7
- package/lib/label-customize-range-picker/index.js +36 -99
- package/lib/label-customize-range-picker/style/index.css +195 -743
- package/lib/label-customize-range-picker/style/index.js +0 -5
- package/lib/label-customize-range-picker/utils/index.js +5 -19
- package/lib/label-date-picker/index.js +11 -34
- package/lib/label-date-picker/style/index.css +195 -743
- package/lib/label-date-picker/style/index.js +0 -2
- package/lib/label-input/index.js +23 -46
- package/lib/label-input/style/index.js +0 -1
- package/lib/label-number-input/index.js +13 -36
- package/lib/label-number-input/style/index.js +0 -1
- package/lib/label-range-picker/index.js +11 -36
- package/lib/label-range-picker/style/index.css +195 -743
- package/lib/label-range-picker/style/index.js +0 -2
- package/lib/label-select/index.js +11 -36
- package/lib/label-select/style/index.css +195 -743
- package/lib/label-select/style/index.js +0 -2
- package/lib/label-text-area/index.js +13 -40
- package/lib/label-text-area/style/index.js +0 -1
- package/lib/label-tree-select/index.js +15 -38
- package/lib/label-tree-select/style/index.css +195 -743
- package/lib/label-tree-select/style/index.js +0 -2
- package/lib/messages/index.js +0 -2
- package/lib/number-format-input/index.js +1 -15
- package/lib/number-format-input/style/index.js +0 -1
- package/lib/number-input/index.js +18 -55
- package/lib/number-input/style/index.js +0 -1
- package/lib/number-input/utils.js +8 -20
- package/lib/rc-echart/core.js +15 -40
- package/lib/rc-echart/index.js +0 -17
- package/lib/rc-motion/index.js +0 -3
- package/lib/rc-qrcode/index.js +2 -25
- package/lib/rc-qrcode/useQrcode.js +5 -17
- package/lib/rc-transition-group/index.js +0 -9
- package/lib/resizable/index.js +0 -2
- package/lib/resizable/style/index.js +0 -1
- package/lib/rich-text-editor/index.js +5 -53
- package/lib/rich-text-editor/plugins/code/index.js +2 -12
- package/lib/rich-text-editor/style/index.css +195 -743
- package/lib/rich-text-editor/style/index.js +0 -1
- package/lib/single-img-upload/index.js +36 -125
- package/lib/single-img-upload/style/index.css +195 -743
- package/lib/single-img-upload/style/index.js +0 -3
- package/lib/sortable-hoc/index.js +0 -9
- package/lib/split-pane/index.js +0 -15
- package/lib/split-pane/style/index.js +0 -1
- package/lib/step-number-input/index.js +14 -55
- package/lib/step-number-input/style/index.css +195 -743
- package/lib/step-number-input/style/index.js +0 -2
- package/lib/table-col/index.js +2 -6
- package/lib/text-area/index.js +8 -38
- package/lib/text-area/style/index.js +0 -1
- package/lib/text-input/index.js +4 -23
- package/lib/text-input/style/index.css +7 -21
- package/lib/text-input/style/index.js +0 -1
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -5,347 +5,270 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
5
5
|
"default": mod
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
|
|
9
8
|
Object.defineProperty(exports, "__esModule", {
|
|
10
9
|
value: true
|
|
11
10
|
});
|
|
12
11
|
exports.Resizable = exports.BeautifulDnd = exports.RichTextEditor = exports.LabelCustomizeRangePicker = exports.LabelTreeSelect = exports.LabelConditionInput = exports.LabelNumberInput = exports.LabelAutoComplete = exports.LabelDatePicker = exports.LabelRangePicker = exports.JsonEditor = exports.AreaText = exports.LabelTextArea = exports.ASelect = exports.LabelSelect = exports.ColorSelect = exports.LabelInput = exports.TextInput = exports.TextArea = exports.SplitPane = exports.sortableHoc = exports.SingleImgUpload = exports.RcTransitionGroup = exports.RcQRcode = exports.RcEcharts = exports.StepNumberInput = exports.NumberInput = exports.RcMotion = exports.KeepTab = exports.ImgCrop = exports.HighlightWords = exports.HighlightTextarea = exports.CopyToClipboard = exports.NumberFormatInput = exports.ConfigProvider = exports.ConditionInput = exports.ButtonModal = exports.ButtonDrawer = void 0;
|
|
13
|
-
|
|
14
12
|
var button_drawer_1 = require("./button-drawer");
|
|
15
|
-
|
|
16
13
|
Object.defineProperty(exports, "ButtonDrawer", {
|
|
17
14
|
enumerable: true,
|
|
18
15
|
get: function get() {
|
|
19
16
|
return __importDefault(button_drawer_1)["default"];
|
|
20
17
|
}
|
|
21
18
|
});
|
|
22
|
-
|
|
23
19
|
var button_modal_1 = require("./button-modal");
|
|
24
|
-
|
|
25
20
|
Object.defineProperty(exports, "ButtonModal", {
|
|
26
21
|
enumerable: true,
|
|
27
22
|
get: function get() {
|
|
28
23
|
return __importDefault(button_modal_1)["default"];
|
|
29
24
|
}
|
|
30
25
|
});
|
|
31
|
-
|
|
32
26
|
var condition_input_1 = require("./condition-input");
|
|
33
|
-
|
|
34
27
|
Object.defineProperty(exports, "ConditionInput", {
|
|
35
28
|
enumerable: true,
|
|
36
29
|
get: function get() {
|
|
37
30
|
return __importDefault(condition_input_1)["default"];
|
|
38
31
|
}
|
|
39
32
|
});
|
|
40
|
-
|
|
41
33
|
var config_provider_1 = require("./config-provider");
|
|
42
|
-
|
|
43
34
|
Object.defineProperty(exports, "ConfigProvider", {
|
|
44
35
|
enumerable: true,
|
|
45
36
|
get: function get() {
|
|
46
37
|
return __importDefault(config_provider_1)["default"];
|
|
47
38
|
}
|
|
48
39
|
});
|
|
49
|
-
|
|
50
40
|
var number_format_input_1 = require("./number-format-input");
|
|
51
|
-
|
|
52
41
|
Object.defineProperty(exports, "NumberFormatInput", {
|
|
53
42
|
enumerable: true,
|
|
54
43
|
get: function get() {
|
|
55
44
|
return __importDefault(number_format_input_1)["default"];
|
|
56
45
|
}
|
|
57
46
|
});
|
|
58
|
-
|
|
59
47
|
var copy_to_clipboard_1 = require("./copy-to-clipboard");
|
|
60
|
-
|
|
61
48
|
Object.defineProperty(exports, "CopyToClipboard", {
|
|
62
49
|
enumerable: true,
|
|
63
50
|
get: function get() {
|
|
64
51
|
return __importDefault(copy_to_clipboard_1)["default"];
|
|
65
52
|
}
|
|
66
53
|
});
|
|
67
|
-
|
|
68
54
|
var highlight_textarea_1 = require("./highlight-textarea");
|
|
69
|
-
|
|
70
55
|
Object.defineProperty(exports, "HighlightTextarea", {
|
|
71
56
|
enumerable: true,
|
|
72
57
|
get: function get() {
|
|
73
58
|
return __importDefault(highlight_textarea_1)["default"];
|
|
74
59
|
}
|
|
75
60
|
});
|
|
76
|
-
|
|
77
61
|
var highlight_words_1 = require("./highlight-words");
|
|
78
|
-
|
|
79
62
|
Object.defineProperty(exports, "HighlightWords", {
|
|
80
63
|
enumerable: true,
|
|
81
64
|
get: function get() {
|
|
82
65
|
return __importDefault(highlight_words_1)["default"];
|
|
83
66
|
}
|
|
84
67
|
});
|
|
85
|
-
|
|
86
68
|
var img_crop_1 = require("./img-crop");
|
|
87
|
-
|
|
88
69
|
Object.defineProperty(exports, "ImgCrop", {
|
|
89
70
|
enumerable: true,
|
|
90
71
|
get: function get() {
|
|
91
72
|
return __importDefault(img_crop_1)["default"];
|
|
92
73
|
}
|
|
93
74
|
});
|
|
94
|
-
|
|
95
75
|
var keep_tab_1 = require("./keep-tab");
|
|
96
|
-
|
|
97
76
|
Object.defineProperty(exports, "KeepTab", {
|
|
98
77
|
enumerable: true,
|
|
99
78
|
get: function get() {
|
|
100
79
|
return __importDefault(keep_tab_1)["default"];
|
|
101
80
|
}
|
|
102
81
|
});
|
|
103
|
-
|
|
104
82
|
var rc_motion_1 = require("./rc-motion");
|
|
105
|
-
|
|
106
83
|
Object.defineProperty(exports, "RcMotion", {
|
|
107
84
|
enumerable: true,
|
|
108
85
|
get: function get() {
|
|
109
86
|
return __importDefault(rc_motion_1)["default"];
|
|
110
87
|
}
|
|
111
88
|
});
|
|
112
|
-
|
|
113
89
|
var number_input_1 = require("./number-input");
|
|
114
|
-
|
|
115
90
|
Object.defineProperty(exports, "NumberInput", {
|
|
116
91
|
enumerable: true,
|
|
117
92
|
get: function get() {
|
|
118
93
|
return __importDefault(number_input_1)["default"];
|
|
119
94
|
}
|
|
120
95
|
});
|
|
121
|
-
|
|
122
96
|
var step_number_input_1 = require("./step-number-input");
|
|
123
|
-
|
|
124
97
|
Object.defineProperty(exports, "StepNumberInput", {
|
|
125
98
|
enumerable: true,
|
|
126
99
|
get: function get() {
|
|
127
100
|
return __importDefault(step_number_input_1)["default"];
|
|
128
101
|
}
|
|
129
102
|
});
|
|
130
|
-
|
|
131
103
|
var rc_echart_1 = require("./rc-echart");
|
|
132
|
-
|
|
133
104
|
Object.defineProperty(exports, "RcEcharts", {
|
|
134
105
|
enumerable: true,
|
|
135
106
|
get: function get() {
|
|
136
107
|
return __importDefault(rc_echart_1)["default"];
|
|
137
108
|
}
|
|
138
109
|
});
|
|
139
|
-
|
|
140
110
|
var rc_qrcode_1 = require("./rc-qrcode");
|
|
141
|
-
|
|
142
111
|
Object.defineProperty(exports, "RcQRcode", {
|
|
143
112
|
enumerable: true,
|
|
144
113
|
get: function get() {
|
|
145
114
|
return __importDefault(rc_qrcode_1)["default"];
|
|
146
115
|
}
|
|
147
116
|
});
|
|
148
|
-
|
|
149
117
|
var rc_transition_group_1 = require("./rc-transition-group");
|
|
150
|
-
|
|
151
118
|
Object.defineProperty(exports, "RcTransitionGroup", {
|
|
152
119
|
enumerable: true,
|
|
153
120
|
get: function get() {
|
|
154
121
|
return __importDefault(rc_transition_group_1)["default"];
|
|
155
122
|
}
|
|
156
123
|
});
|
|
157
|
-
|
|
158
124
|
var single_img_upload_1 = require("./single-img-upload");
|
|
159
|
-
|
|
160
125
|
Object.defineProperty(exports, "SingleImgUpload", {
|
|
161
126
|
enumerable: true,
|
|
162
127
|
get: function get() {
|
|
163
128
|
return __importDefault(single_img_upload_1)["default"];
|
|
164
129
|
}
|
|
165
130
|
});
|
|
166
|
-
|
|
167
131
|
var sortable_hoc_1 = require("./sortable-hoc");
|
|
168
|
-
|
|
169
132
|
Object.defineProperty(exports, "sortableHoc", {
|
|
170
133
|
enumerable: true,
|
|
171
134
|
get: function get() {
|
|
172
135
|
return __importDefault(sortable_hoc_1)["default"];
|
|
173
136
|
}
|
|
174
137
|
});
|
|
175
|
-
|
|
176
138
|
var split_pane_1 = require("./split-pane");
|
|
177
|
-
|
|
178
139
|
Object.defineProperty(exports, "SplitPane", {
|
|
179
140
|
enumerable: true,
|
|
180
141
|
get: function get() {
|
|
181
142
|
return __importDefault(split_pane_1)["default"];
|
|
182
143
|
}
|
|
183
144
|
});
|
|
184
|
-
|
|
185
145
|
var text_area_1 = require("./text-area");
|
|
186
|
-
|
|
187
146
|
Object.defineProperty(exports, "TextArea", {
|
|
188
147
|
enumerable: true,
|
|
189
148
|
get: function get() {
|
|
190
149
|
return __importDefault(text_area_1)["default"];
|
|
191
150
|
}
|
|
192
151
|
});
|
|
193
|
-
|
|
194
152
|
var text_input_1 = require("./text-input");
|
|
195
|
-
|
|
196
153
|
Object.defineProperty(exports, "TextInput", {
|
|
197
154
|
enumerable: true,
|
|
198
155
|
get: function get() {
|
|
199
156
|
return __importDefault(text_input_1)["default"];
|
|
200
157
|
}
|
|
201
158
|
});
|
|
202
|
-
|
|
203
159
|
var label_input_1 = require("./label-input");
|
|
204
|
-
|
|
205
160
|
Object.defineProperty(exports, "LabelInput", {
|
|
206
161
|
enumerable: true,
|
|
207
162
|
get: function get() {
|
|
208
163
|
return __importDefault(label_input_1)["default"];
|
|
209
164
|
}
|
|
210
165
|
});
|
|
211
|
-
|
|
212
166
|
var color_select_1 = require("./color-select");
|
|
213
|
-
|
|
214
167
|
Object.defineProperty(exports, "ColorSelect", {
|
|
215
168
|
enumerable: true,
|
|
216
169
|
get: function get() {
|
|
217
170
|
return __importDefault(color_select_1)["default"];
|
|
218
171
|
}
|
|
219
172
|
});
|
|
220
|
-
|
|
221
173
|
var label_select_1 = require("./label-select");
|
|
222
|
-
|
|
223
174
|
Object.defineProperty(exports, "LabelSelect", {
|
|
224
175
|
enumerable: true,
|
|
225
176
|
get: function get() {
|
|
226
177
|
return __importDefault(label_select_1)["default"];
|
|
227
178
|
}
|
|
228
179
|
});
|
|
229
|
-
|
|
230
180
|
var a_select_1 = require("./a-select");
|
|
231
|
-
|
|
232
181
|
Object.defineProperty(exports, "ASelect", {
|
|
233
182
|
enumerable: true,
|
|
234
183
|
get: function get() {
|
|
235
184
|
return __importDefault(a_select_1)["default"];
|
|
236
185
|
}
|
|
237
186
|
});
|
|
238
|
-
|
|
239
187
|
var label_text_area_1 = require("./label-text-area");
|
|
240
|
-
|
|
241
188
|
Object.defineProperty(exports, "LabelTextArea", {
|
|
242
189
|
enumerable: true,
|
|
243
190
|
get: function get() {
|
|
244
191
|
return __importDefault(label_text_area_1)["default"];
|
|
245
192
|
}
|
|
246
193
|
});
|
|
247
|
-
|
|
248
194
|
var area_text_1 = require("./area-text");
|
|
249
|
-
|
|
250
195
|
Object.defineProperty(exports, "AreaText", {
|
|
251
196
|
enumerable: true,
|
|
252
197
|
get: function get() {
|
|
253
198
|
return __importDefault(area_text_1)["default"];
|
|
254
199
|
}
|
|
255
200
|
});
|
|
256
|
-
|
|
257
201
|
var json_editor_1 = require("./json-editor");
|
|
258
|
-
|
|
259
202
|
Object.defineProperty(exports, "JsonEditor", {
|
|
260
203
|
enumerable: true,
|
|
261
204
|
get: function get() {
|
|
262
205
|
return __importDefault(json_editor_1)["default"];
|
|
263
206
|
}
|
|
264
207
|
});
|
|
265
|
-
|
|
266
208
|
var label_range_picker_1 = require("./label-range-picker");
|
|
267
|
-
|
|
268
209
|
Object.defineProperty(exports, "LabelRangePicker", {
|
|
269
210
|
enumerable: true,
|
|
270
211
|
get: function get() {
|
|
271
212
|
return __importDefault(label_range_picker_1)["default"];
|
|
272
213
|
}
|
|
273
214
|
});
|
|
274
|
-
|
|
275
215
|
var label_date_picker_1 = require("./label-date-picker");
|
|
276
|
-
|
|
277
216
|
Object.defineProperty(exports, "LabelDatePicker", {
|
|
278
217
|
enumerable: true,
|
|
279
218
|
get: function get() {
|
|
280
219
|
return __importDefault(label_date_picker_1)["default"];
|
|
281
220
|
}
|
|
282
221
|
});
|
|
283
|
-
|
|
284
222
|
var label_auto_complete_1 = require("./label-auto-complete");
|
|
285
|
-
|
|
286
223
|
Object.defineProperty(exports, "LabelAutoComplete", {
|
|
287
224
|
enumerable: true,
|
|
288
225
|
get: function get() {
|
|
289
226
|
return __importDefault(label_auto_complete_1)["default"];
|
|
290
227
|
}
|
|
291
228
|
});
|
|
292
|
-
|
|
293
229
|
var label_number_input_1 = require("./label-number-input");
|
|
294
|
-
|
|
295
230
|
Object.defineProperty(exports, "LabelNumberInput", {
|
|
296
231
|
enumerable: true,
|
|
297
232
|
get: function get() {
|
|
298
233
|
return __importDefault(label_number_input_1)["default"];
|
|
299
234
|
}
|
|
300
235
|
});
|
|
301
|
-
|
|
302
236
|
var label_condition_input_1 = require("./label-condition-input");
|
|
303
|
-
|
|
304
237
|
Object.defineProperty(exports, "LabelConditionInput", {
|
|
305
238
|
enumerable: true,
|
|
306
239
|
get: function get() {
|
|
307
240
|
return __importDefault(label_condition_input_1)["default"];
|
|
308
241
|
}
|
|
309
242
|
});
|
|
310
|
-
|
|
311
243
|
var label_tree_select_1 = require("./label-tree-select");
|
|
312
|
-
|
|
313
244
|
Object.defineProperty(exports, "LabelTreeSelect", {
|
|
314
245
|
enumerable: true,
|
|
315
246
|
get: function get() {
|
|
316
247
|
return __importDefault(label_tree_select_1)["default"];
|
|
317
248
|
}
|
|
318
249
|
});
|
|
319
|
-
|
|
320
250
|
var label_customize_range_picker_1 = require("./label-customize-range-picker");
|
|
321
|
-
|
|
322
251
|
Object.defineProperty(exports, "LabelCustomizeRangePicker", {
|
|
323
252
|
enumerable: true,
|
|
324
253
|
get: function get() {
|
|
325
254
|
return __importDefault(label_customize_range_picker_1)["default"];
|
|
326
255
|
}
|
|
327
256
|
});
|
|
328
|
-
|
|
329
257
|
var rich_text_editor_1 = require("./rich-text-editor");
|
|
330
|
-
|
|
331
258
|
Object.defineProperty(exports, "RichTextEditor", {
|
|
332
259
|
enumerable: true,
|
|
333
260
|
get: function get() {
|
|
334
261
|
return __importDefault(rich_text_editor_1)["default"];
|
|
335
262
|
}
|
|
336
263
|
});
|
|
337
|
-
|
|
338
264
|
var beautiful_dnd_1 = require("./beautiful-dnd");
|
|
339
|
-
|
|
340
265
|
Object.defineProperty(exports, "BeautifulDnd", {
|
|
341
266
|
enumerable: true,
|
|
342
267
|
get: function get() {
|
|
343
268
|
return __importDefault(beautiful_dnd_1)["default"];
|
|
344
269
|
}
|
|
345
270
|
});
|
|
346
|
-
|
|
347
271
|
var resizable_1 = require("./resizable");
|
|
348
|
-
|
|
349
272
|
Object.defineProperty(exports, "Resizable", {
|
|
350
273
|
enumerable: true,
|
|
351
274
|
get: function get() {
|
package/lib/json-editor/index.js
CHANGED
|
@@ -4,22 +4,17 @@ var __assign = this && this.__assign || function () {
|
|
|
4
4
|
__assign = Object.assign || function (t) {
|
|
5
5
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
6
|
s = arguments[i];
|
|
7
|
-
|
|
8
7
|
for (var p in s) {
|
|
9
8
|
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10
9
|
}
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
return t;
|
|
14
12
|
};
|
|
15
|
-
|
|
16
13
|
return __assign.apply(this, arguments);
|
|
17
14
|
};
|
|
18
|
-
|
|
19
15
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
20
16
|
if (k2 === undefined) k2 = k;
|
|
21
17
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
22
|
-
|
|
23
18
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
19
|
desc = {
|
|
25
20
|
enumerable: true,
|
|
@@ -28,13 +23,11 @@ var __createBinding = this && this.__createBinding || (Object.create ? function
|
|
|
28
23
|
}
|
|
29
24
|
};
|
|
30
25
|
}
|
|
31
|
-
|
|
32
26
|
Object.defineProperty(o, k2, desc);
|
|
33
27
|
} : function (o, m, k, k2) {
|
|
34
28
|
if (k2 === undefined) k2 = k;
|
|
35
29
|
o[k2] = m[k];
|
|
36
30
|
});
|
|
37
|
-
|
|
38
31
|
var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {
|
|
39
32
|
Object.defineProperty(o, "default", {
|
|
40
33
|
enumerable: true,
|
|
@@ -43,27 +36,22 @@ var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? fun
|
|
|
43
36
|
} : function (o, v) {
|
|
44
37
|
o["default"] = v;
|
|
45
38
|
});
|
|
46
|
-
|
|
47
39
|
var __importStar = this && this.__importStar || function (mod) {
|
|
48
40
|
if (mod && mod.__esModule) return mod;
|
|
49
41
|
var result = {};
|
|
50
42
|
if (mod != null) for (var k in mod) {
|
|
51
43
|
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
52
44
|
}
|
|
53
|
-
|
|
54
45
|
__setModuleDefault(result, mod);
|
|
55
|
-
|
|
56
46
|
return result;
|
|
57
47
|
};
|
|
58
|
-
|
|
59
48
|
var __read = this && this.__read || function (o, n) {
|
|
60
49
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
61
50
|
if (!m) return o;
|
|
62
51
|
var i = m.call(o),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
52
|
+
r,
|
|
53
|
+
ar = [],
|
|
54
|
+
e;
|
|
67
55
|
try {
|
|
68
56
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
69
57
|
ar.push(r.value);
|
|
@@ -79,42 +67,29 @@ var __read = this && this.__read || function (o, n) {
|
|
|
79
67
|
if (e) throw e.error;
|
|
80
68
|
}
|
|
81
69
|
}
|
|
82
|
-
|
|
83
70
|
return ar;
|
|
84
71
|
};
|
|
85
|
-
|
|
86
72
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
87
73
|
return mod && mod.__esModule ? mod : {
|
|
88
74
|
"default": mod
|
|
89
75
|
};
|
|
90
76
|
};
|
|
91
|
-
|
|
92
77
|
Object.defineProperty(exports, "__esModule", {
|
|
93
78
|
value: true
|
|
94
79
|
});
|
|
95
|
-
|
|
96
80
|
var jsoneditor_1 = __importDefault(require("jsoneditor"));
|
|
97
|
-
|
|
98
81
|
var react_1 = __importStar(require("react"));
|
|
99
|
-
|
|
100
82
|
var useControllableValue_1 = __importDefault(require("ahooks/lib/useControllableValue"));
|
|
101
|
-
|
|
102
83
|
var useMount_1 = __importDefault(require("ahooks/lib/useMount"));
|
|
103
|
-
|
|
104
84
|
var isEqual_1 = __importDefault(require("lodash/isEqual"));
|
|
105
|
-
|
|
106
85
|
var useUnmount_1 = __importDefault(require("ahooks/lib/useUnmount"));
|
|
107
|
-
|
|
108
86
|
var classnames_1 = __importDefault(require("classnames"));
|
|
109
|
-
|
|
110
87
|
var JsonEditor = function JsonEditor(props, ref) {
|
|
111
88
|
var options = props.options,
|
|
112
|
-
|
|
113
|
-
|
|
89
|
+
className = props.className;
|
|
114
90
|
var _a = __read((0, useControllableValue_1["default"])(props), 2),
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
91
|
+
value = _a[0],
|
|
92
|
+
setValue = _a[1];
|
|
118
93
|
var containerRef = react_1["default"].useRef();
|
|
119
94
|
var editorInstanceRef = react_1["default"].useRef();
|
|
120
95
|
(0, useMount_1["default"])(function () {
|
|
@@ -124,7 +99,6 @@ var JsonEditor = function JsonEditor(props, ref) {
|
|
|
124
99
|
}, options), {
|
|
125
100
|
onChangeText: function onChangeText() {
|
|
126
101
|
var _a;
|
|
127
|
-
|
|
128
102
|
try {
|
|
129
103
|
var currentJson = (_a = editorInstanceRef.current) === null || _a === void 0 ? void 0 : _a.get();
|
|
130
104
|
setValue(currentJson);
|
|
@@ -139,14 +113,12 @@ var JsonEditor = function JsonEditor(props, ref) {
|
|
|
139
113
|
});
|
|
140
114
|
(0, react_1.useEffect)(function () {
|
|
141
115
|
var _a, _b;
|
|
142
|
-
|
|
143
116
|
if (value && !(0, isEqual_1["default"])(value, (_a = editorInstanceRef.current) === null || _a === void 0 ? void 0 : _a.get())) {
|
|
144
117
|
(_b = editorInstanceRef.current) === null || _b === void 0 ? void 0 : _b.update(value);
|
|
145
118
|
}
|
|
146
119
|
}, [value]);
|
|
147
120
|
(0, useUnmount_1["default"])(function () {
|
|
148
121
|
var _a;
|
|
149
|
-
|
|
150
122
|
(_a = editorInstanceRef.current) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
151
123
|
});
|
|
152
124
|
return react_1["default"].createElement("div", {
|
|
@@ -156,6 +128,5 @@ var JsonEditor = function JsonEditor(props, ref) {
|
|
|
156
128
|
className: (0, classnames_1["default"])('a-jason-editor', className)
|
|
157
129
|
});
|
|
158
130
|
};
|
|
159
|
-
|
|
160
131
|
var ForwardRefJsonEditor = react_1["default"].forwardRef(JsonEditor);
|
|
161
132
|
exports["default"] = ForwardRefJsonEditor;
|
package/lib/keep-tab/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { BadgeProps } from 'antd/lib/badge';
|
|
3
3
|
import type { TabPaneProps, TabsProps } from 'antd/lib/tabs';
|
|
4
|
-
|
|
4
|
+
import type { Tab } from 'rc-tabs/lib/interface';
|
|
5
|
+
interface NewTab extends Tab {
|
|
6
|
+
count?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface KeepTabProps extends Omit<TabsProps, 'items'> {
|
|
5
9
|
/** 由TabPane组成的children */
|
|
6
10
|
children: React.ReactNode;
|
|
7
11
|
/** 初始化选中面板的 key,如果没有设置 activeKey */
|
|
@@ -14,6 +18,7 @@ export interface KeepTabProps extends TabsProps {
|
|
|
14
18
|
onChange?: (activeKey: string) => void;
|
|
15
19
|
/** antd Badge组件除count意外的所有props */
|
|
16
20
|
badgeProps?: Omit<BadgeProps, 'count'>;
|
|
21
|
+
items: NewTab[];
|
|
17
22
|
}
|
|
18
23
|
export interface SelfTabPaneProps extends TabPaneProps {
|
|
19
24
|
count: Pick<BadgeProps, 'count'>;
|
|
@@ -24,6 +29,6 @@ declare const KeepTab: {
|
|
|
24
29
|
saveActiveKeyName: string;
|
|
25
30
|
};
|
|
26
31
|
displayName: string;
|
|
27
|
-
TabPane:
|
|
32
|
+
TabPane: React.FC<TabPaneProps>;
|
|
28
33
|
};
|
|
29
34
|
export default KeepTab;
|