@uipath/apollo-wind 2.73.1 → 2.74.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/dist/components/ui/index.cjs +22 -22
- package/dist/components/ui/quick-form-field/quick-form-field.cjs +11 -3
- package/dist/components/ui/quick-form-field/quick-form-field.d.ts +1 -0
- package/dist/components/ui/quick-form-field/quick-form-field.js +13 -5
- package/dist/components/ui/quick-form-field/types.cjs +8 -0
- package/dist/components/ui/quick-form-field/types.d.ts +1 -1
- package/dist/components/ui/quick-form-field/types.js +9 -1
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ var __webpack_modules__ = {
|
|
|
18
18
|
"./avatar" (module) {
|
|
19
19
|
module.exports = require("./avatar.cjs");
|
|
20
20
|
},
|
|
21
|
-
"
|
|
21
|
+
"@/components/ui/badge" (module) {
|
|
22
22
|
module.exports = require("./badge.cjs");
|
|
23
23
|
},
|
|
24
24
|
"./boolean-radio-group" (module) {
|
|
@@ -60,7 +60,7 @@ var __webpack_modules__ = {
|
|
|
60
60
|
"@/components/ui/code-block" (module) {
|
|
61
61
|
module.exports = require("./code-block.cjs");
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"@/components/ui/collapsible" (module) {
|
|
64
64
|
module.exports = require("./collapsible.cjs");
|
|
65
65
|
},
|
|
66
66
|
"./combobox" (module) {
|
|
@@ -69,7 +69,7 @@ var __webpack_modules__ = {
|
|
|
69
69
|
"@/components/ui/command" (module) {
|
|
70
70
|
module.exports = require("./command.cjs");
|
|
71
71
|
},
|
|
72
|
-
"
|
|
72
|
+
"@/components/ui/context-menu" (module) {
|
|
73
73
|
module.exports = require("./context-menu.cjs");
|
|
74
74
|
},
|
|
75
75
|
"./data-table" (module) {
|
|
@@ -117,10 +117,10 @@ var __webpack_modules__ = {
|
|
|
117
117
|
"./form-field" (module) {
|
|
118
118
|
module.exports = require("./form-field.cjs");
|
|
119
119
|
},
|
|
120
|
-
"
|
|
120
|
+
"@/components/ui/hover-card" (module) {
|
|
121
121
|
module.exports = require("./hover-card.cjs");
|
|
122
122
|
},
|
|
123
|
-
"
|
|
123
|
+
"@/components/ui/info-tooltip" (module) {
|
|
124
124
|
module.exports = require("./info-tooltip.cjs");
|
|
125
125
|
},
|
|
126
126
|
"@/components/ui/input-group" (module) {
|
|
@@ -132,10 +132,10 @@ var __webpack_modules__ = {
|
|
|
132
132
|
"./json-tree-view" (module) {
|
|
133
133
|
module.exports = require("./json-tree-view/index.cjs");
|
|
134
134
|
},
|
|
135
|
-
"
|
|
135
|
+
"@/components/ui/label" (module) {
|
|
136
136
|
module.exports = require("./label.cjs");
|
|
137
137
|
},
|
|
138
|
-
"
|
|
138
|
+
"@/components/ui/layout" (module) {
|
|
139
139
|
module.exports = require("./layout/index.cjs");
|
|
140
140
|
},
|
|
141
141
|
"./live-region" (module) {
|
|
@@ -201,7 +201,7 @@ var __webpack_modules__ = {
|
|
|
201
201
|
"./reference-chip-colors" (module) {
|
|
202
202
|
module.exports = require("./reference-chip-colors.cjs");
|
|
203
203
|
},
|
|
204
|
-
"
|
|
204
|
+
"@/components/ui/reference-chip" (module) {
|
|
205
205
|
module.exports = require("./reference-chip.cjs");
|
|
206
206
|
},
|
|
207
207
|
"./resizable" (module) {
|
|
@@ -255,7 +255,7 @@ var __webpack_modules__ = {
|
|
|
255
255
|
"./tabs" (module) {
|
|
256
256
|
module.exports = require("./tabs.cjs");
|
|
257
257
|
},
|
|
258
|
-
"
|
|
258
|
+
"./textarea" (module) {
|
|
259
259
|
module.exports = require("./textarea.cjs");
|
|
260
260
|
},
|
|
261
261
|
"./thinking-indicator" (module) {
|
|
@@ -264,7 +264,7 @@ var __webpack_modules__ = {
|
|
|
264
264
|
"./toggle-group" (module) {
|
|
265
265
|
module.exports = require("./toggle-group.cjs");
|
|
266
266
|
},
|
|
267
|
-
"
|
|
267
|
+
"./toggle" (module) {
|
|
268
268
|
module.exports = require("./toggle.cjs");
|
|
269
269
|
},
|
|
270
270
|
"./tool-call" (module) {
|
|
@@ -276,7 +276,7 @@ var __webpack_modules__ = {
|
|
|
276
276
|
"./tree-view" (module) {
|
|
277
277
|
module.exports = require("./tree-view.cjs");
|
|
278
278
|
},
|
|
279
|
-
"
|
|
279
|
+
"@/components/ui/variable-picker" (module) {
|
|
280
280
|
module.exports = require("./variable-picker/index.cjs");
|
|
281
281
|
},
|
|
282
282
|
"./variable-value-control" (module) {
|
|
@@ -392,7 +392,7 @@ var __webpack_exports__ = {};
|
|
|
392
392
|
"ReferenceChip"
|
|
393
393
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_avatar__rspack_import_5[__rspack_import_key];
|
|
394
394
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
395
|
-
var _badge__rspack_import_6 = __webpack_require__("
|
|
395
|
+
var _badge__rspack_import_6 = __webpack_require__("@/components/ui/badge");
|
|
396
396
|
var __rspack_reexport = {};
|
|
397
397
|
for(const __rspack_import_key in _badge__rspack_import_6)if ([
|
|
398
398
|
"getReferenceChipColors",
|
|
@@ -532,7 +532,7 @@ var __webpack_exports__ = {};
|
|
|
532
532
|
"ReferenceChip"
|
|
533
533
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_code_block__rspack_import_19[__rspack_import_key];
|
|
534
534
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
535
|
-
var _collapsible__rspack_import_20 = __webpack_require__("
|
|
535
|
+
var _collapsible__rspack_import_20 = __webpack_require__("@/components/ui/collapsible");
|
|
536
536
|
var __rspack_reexport = {};
|
|
537
537
|
for(const __rspack_import_key in _collapsible__rspack_import_20)if ([
|
|
538
538
|
"getReferenceChipColors",
|
|
@@ -562,7 +562,7 @@ var __webpack_exports__ = {};
|
|
|
562
562
|
"ReferenceChip"
|
|
563
563
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_command__rspack_import_22[__rspack_import_key];
|
|
564
564
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
565
|
-
var _context_menu__rspack_import_23 = __webpack_require__("
|
|
565
|
+
var _context_menu__rspack_import_23 = __webpack_require__("@/components/ui/context-menu");
|
|
566
566
|
var __rspack_reexport = {};
|
|
567
567
|
for(const __rspack_import_key in _context_menu__rspack_import_23)if ([
|
|
568
568
|
"getReferenceChipColors",
|
|
@@ -722,7 +722,7 @@ var __webpack_exports__ = {};
|
|
|
722
722
|
"ReferenceChip"
|
|
723
723
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_form_field__rspack_import_38[__rspack_import_key];
|
|
724
724
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
725
|
-
var _hover_card__rspack_import_39 = __webpack_require__("
|
|
725
|
+
var _hover_card__rspack_import_39 = __webpack_require__("@/components/ui/hover-card");
|
|
726
726
|
var __rspack_reexport = {};
|
|
727
727
|
for(const __rspack_import_key in _hover_card__rspack_import_39)if ([
|
|
728
728
|
"getReferenceChipColors",
|
|
@@ -732,7 +732,7 @@ var __webpack_exports__ = {};
|
|
|
732
732
|
"ReferenceChip"
|
|
733
733
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_39[__rspack_import_key];
|
|
734
734
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
735
|
-
var _info_tooltip__rspack_import_40 = __webpack_require__("
|
|
735
|
+
var _info_tooltip__rspack_import_40 = __webpack_require__("@/components/ui/info-tooltip");
|
|
736
736
|
var __rspack_reexport = {};
|
|
737
737
|
for(const __rspack_import_key in _info_tooltip__rspack_import_40)if ([
|
|
738
738
|
"getReferenceChipColors",
|
|
@@ -772,7 +772,7 @@ var __webpack_exports__ = {};
|
|
|
772
772
|
"ReferenceChip"
|
|
773
773
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_json_tree_view__rspack_import_43[__rspack_import_key];
|
|
774
774
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
775
|
-
var _label__rspack_import_44 = __webpack_require__("
|
|
775
|
+
var _label__rspack_import_44 = __webpack_require__("@/components/ui/label");
|
|
776
776
|
var __rspack_reexport = {};
|
|
777
777
|
for(const __rspack_import_key in _label__rspack_import_44)if ([
|
|
778
778
|
"getReferenceChipColors",
|
|
@@ -782,7 +782,7 @@ var __webpack_exports__ = {};
|
|
|
782
782
|
"ReferenceChip"
|
|
783
783
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_label__rspack_import_44[__rspack_import_key];
|
|
784
784
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
785
|
-
var _layout__rspack_import_45 = __webpack_require__("
|
|
785
|
+
var _layout__rspack_import_45 = __webpack_require__("@/components/ui/layout");
|
|
786
786
|
var __rspack_reexport = {};
|
|
787
787
|
for(const __rspack_import_key in _layout__rspack_import_45)if ([
|
|
788
788
|
"getReferenceChipColors",
|
|
@@ -992,7 +992,7 @@ var __webpack_exports__ = {};
|
|
|
992
992
|
"ReferenceChip"
|
|
993
993
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_radio_group__rspack_import_65[__rspack_import_key];
|
|
994
994
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
995
|
-
var _reference_chip__rspack_import_66 = __webpack_require__("
|
|
995
|
+
var _reference_chip__rspack_import_66 = __webpack_require__("@/components/ui/reference-chip");
|
|
996
996
|
var _reference_chip_colors__rspack_import_67 = __webpack_require__("./reference-chip-colors");
|
|
997
997
|
var _resizable__rspack_import_68 = __webpack_require__("./resizable");
|
|
998
998
|
var __rspack_reexport = {};
|
|
@@ -1164,7 +1164,7 @@ var __webpack_exports__ = {};
|
|
|
1164
1164
|
"ReferenceChip"
|
|
1165
1165
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tabs__rspack_import_84[__rspack_import_key];
|
|
1166
1166
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1167
|
-
var _textarea__rspack_import_85 = __webpack_require__("
|
|
1167
|
+
var _textarea__rspack_import_85 = __webpack_require__("./textarea");
|
|
1168
1168
|
var __rspack_reexport = {};
|
|
1169
1169
|
for(const __rspack_import_key in _textarea__rspack_import_85)if ([
|
|
1170
1170
|
"getReferenceChipColors",
|
|
@@ -1184,7 +1184,7 @@ var __webpack_exports__ = {};
|
|
|
1184
1184
|
"ReferenceChip"
|
|
1185
1185
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_thinking_indicator__rspack_import_86[__rspack_import_key];
|
|
1186
1186
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1187
|
-
var _toggle__rspack_import_87 = __webpack_require__("
|
|
1187
|
+
var _toggle__rspack_import_87 = __webpack_require__("./toggle");
|
|
1188
1188
|
var __rspack_reexport = {};
|
|
1189
1189
|
for(const __rspack_import_key in _toggle__rspack_import_87)if ([
|
|
1190
1190
|
"getReferenceChipColors",
|
|
@@ -1226,7 +1226,7 @@ var __webpack_exports__ = {};
|
|
|
1226
1226
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1227
1227
|
var _tree_view__rspack_import_91 = __webpack_require__("./tree-view");
|
|
1228
1228
|
var _tree_view__rspack_import_91_default = /*#__PURE__*/ __webpack_require__.n(_tree_view__rspack_import_91);
|
|
1229
|
-
var _variable_picker__rspack_import_92 = __webpack_require__("
|
|
1229
|
+
var _variable_picker__rspack_import_92 = __webpack_require__("@/components/ui/variable-picker");
|
|
1230
1230
|
var __rspack_reexport = {};
|
|
1231
1231
|
for(const __rspack_import_key in _variable_picker__rspack_import_92)if ([
|
|
1232
1232
|
"getReferenceChipColors",
|
|
@@ -121,7 +121,8 @@ function QuickFormField({ value = '', onValueChange, onValueBlur, locked = true,
|
|
|
121
121
|
mode
|
|
122
122
|
]);
|
|
123
123
|
const handleValueKeyDown = (e)=>{
|
|
124
|
-
|
|
124
|
+
const newLine = e.shiftKey && e.currentTarget instanceof HTMLTextAreaElement;
|
|
125
|
+
if ('Enter' === e.key && !newLine) {
|
|
125
126
|
e.preventDefault();
|
|
126
127
|
e.currentTarget.blur();
|
|
127
128
|
}
|
|
@@ -149,9 +150,12 @@ function QuickFormField({ value = '', onValueChange, onValueBlur, locked = true,
|
|
|
149
150
|
input.setSelectionRange(next_caret, next_caret);
|
|
150
151
|
});
|
|
151
152
|
};
|
|
153
|
+
const setValueInput = (0, external_react_namespaceObject.useCallback)((el)=>{
|
|
154
|
+
valueInputRef.current = el;
|
|
155
|
+
}, []);
|
|
152
156
|
const textInputProps = {
|
|
153
157
|
id: fieldId,
|
|
154
|
-
ref:
|
|
158
|
+
ref: setValueInput,
|
|
155
159
|
readOnly: !editableOnValueChange,
|
|
156
160
|
disabled,
|
|
157
161
|
value,
|
|
@@ -277,6 +281,10 @@ function QuickFormField({ value = '', onValueChange, onValueBlur, locked = true,
|
|
|
277
281
|
placeholder: strings.selectOptions,
|
|
278
282
|
disabled: !editableOnValueChange,
|
|
279
283
|
onBlur: onValueBlur
|
|
284
|
+
}) : 'textarea' === fieldType ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_input_group_cjs_namespaceObject.InputGroupTextarea, {
|
|
285
|
+
...textInputProps,
|
|
286
|
+
minRows: 3,
|
|
287
|
+
maxRows: 8
|
|
280
288
|
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_input_group_cjs_namespaceObject.InputGroupInput, {
|
|
281
289
|
...textInputProps,
|
|
282
290
|
type: 'integer' === fieldType || 'double' === fieldType ? 'number' : 'text',
|
|
@@ -312,7 +320,7 @@ function QuickFormField({ value = '', onValueChange, onValueBlur, locked = true,
|
|
|
312
320
|
error: error,
|
|
313
321
|
errorId: validationId,
|
|
314
322
|
disabled: disabled,
|
|
315
|
-
layout: 'literal' === mode && ('file' === fieldType || 'multi-select' === fieldType) ? 'grow' : 'row',
|
|
323
|
+
layout: 'literal' === mode && ('file' === fieldType || 'multi-select' === fieldType || 'textarea' === fieldType) ? 'grow' : 'row',
|
|
316
324
|
children: [
|
|
317
325
|
(showLock || void 0 !== leadingAddon) && null !== leadingAddon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_input_group_cjs_namespaceObject.InputGroupAddon, {
|
|
318
326
|
align: "inline-start",
|
|
@@ -18,6 +18,7 @@ import type { QuickFormFieldProps } from './types';
|
|
|
18
18
|
* - Insert variable renders `variables` as supplied and splices at the caret;
|
|
19
19
|
* `onInsertVariable` takes over what inserting means.
|
|
20
20
|
* - Enter commits through `onValueBlur`, Escape restores the value as of focus.
|
|
21
|
+
* In a text area Shift+Enter adds a new line.
|
|
21
22
|
* - Every user-visible string can be overridden through `strings`.
|
|
22
23
|
*
|
|
23
24
|
* The expression mode is styled as code but not highlighted or evaluated.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { RefreshCw, Trash2 } from "lucide-react";
|
|
3
|
-
import { useEffect, useId, useMemo, useRef, useState } from "react";
|
|
3
|
+
import { useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { Calendar } from "../calendar.js";
|
|
5
5
|
import { DateTimePicker } from "../datetime-picker.js";
|
|
6
6
|
import { FileUpload } from "../file-upload.js";
|
|
7
|
-
import { InputGroup, InputGroupAddon, InputGroupInput } from "../input-group.js";
|
|
7
|
+
import { InputGroup, InputGroupAddon, InputGroupInput, InputGroupTextarea } from "../input-group.js";
|
|
8
8
|
import { MultiSelect } from "../multi-select.js";
|
|
9
9
|
import { Popover, PopoverContent, PopoverTrigger } from "../popover.js";
|
|
10
10
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../select.js";
|
|
@@ -93,7 +93,8 @@ function QuickFormField({ value = '', onValueChange, onValueBlur, locked = true,
|
|
|
93
93
|
mode
|
|
94
94
|
]);
|
|
95
95
|
const handleValueKeyDown = (e)=>{
|
|
96
|
-
|
|
96
|
+
const newLine = e.shiftKey && e.currentTarget instanceof HTMLTextAreaElement;
|
|
97
|
+
if ('Enter' === e.key && !newLine) {
|
|
97
98
|
e.preventDefault();
|
|
98
99
|
e.currentTarget.blur();
|
|
99
100
|
}
|
|
@@ -121,9 +122,12 @@ function QuickFormField({ value = '', onValueChange, onValueBlur, locked = true,
|
|
|
121
122
|
input.setSelectionRange(next_caret, next_caret);
|
|
122
123
|
});
|
|
123
124
|
};
|
|
125
|
+
const setValueInput = useCallback((el)=>{
|
|
126
|
+
valueInputRef.current = el;
|
|
127
|
+
}, []);
|
|
124
128
|
const textInputProps = {
|
|
125
129
|
id: fieldId,
|
|
126
|
-
ref:
|
|
130
|
+
ref: setValueInput,
|
|
127
131
|
readOnly: !editableOnValueChange,
|
|
128
132
|
disabled,
|
|
129
133
|
value,
|
|
@@ -249,6 +253,10 @@ function QuickFormField({ value = '', onValueChange, onValueBlur, locked = true,
|
|
|
249
253
|
placeholder: strings.selectOptions,
|
|
250
254
|
disabled: !editableOnValueChange,
|
|
251
255
|
onBlur: onValueBlur
|
|
256
|
+
}) : 'textarea' === fieldType ? /*#__PURE__*/ jsx(InputGroupTextarea, {
|
|
257
|
+
...textInputProps,
|
|
258
|
+
minRows: 3,
|
|
259
|
+
maxRows: 8
|
|
252
260
|
}) : /*#__PURE__*/ jsx(InputGroupInput, {
|
|
253
261
|
...textInputProps,
|
|
254
262
|
type: 'integer' === fieldType || 'double' === fieldType ? 'number' : 'text',
|
|
@@ -284,7 +292,7 @@ function QuickFormField({ value = '', onValueChange, onValueBlur, locked = true,
|
|
|
284
292
|
error: error,
|
|
285
293
|
errorId: validationId,
|
|
286
294
|
disabled: disabled,
|
|
287
|
-
layout: 'literal' === mode && ('file' === fieldType || 'multi-select' === fieldType) ? 'grow' : 'row',
|
|
295
|
+
layout: 'literal' === mode && ('file' === fieldType || 'multi-select' === fieldType || 'textarea' === fieldType) ? 'grow' : 'row',
|
|
288
296
|
children: [
|
|
289
297
|
(showLock || void 0 !== leadingAddon) && null !== leadingAddon && /*#__PURE__*/ jsx(InputGroupAddon, {
|
|
290
298
|
align: "inline-start",
|
|
@@ -37,6 +37,13 @@ const FIELD_TYPE_META = {
|
|
|
37
37
|
fixedLabel: 'Fixed value',
|
|
38
38
|
fixedDescription: 'Use a literal string value'
|
|
39
39
|
},
|
|
40
|
+
textarea: {
|
|
41
|
+
label: 'Text area',
|
|
42
|
+
icon: external_lucide_react_namespaceObject.AlignLeft,
|
|
43
|
+
supportsExpression: true,
|
|
44
|
+
fixedLabel: 'Fixed value',
|
|
45
|
+
fixedDescription: 'Use a literal multi-line string value'
|
|
46
|
+
},
|
|
40
47
|
integer: {
|
|
41
48
|
label: 'Integer',
|
|
42
49
|
icon: external_lucide_react_namespaceObject.Hash,
|
|
@@ -110,6 +117,7 @@ const FIELD_TYPE_META = {
|
|
|
110
117
|
};
|
|
111
118
|
const FIELD_TYPE_ORDER = [
|
|
112
119
|
'string',
|
|
120
|
+
'textarea',
|
|
113
121
|
'integer',
|
|
114
122
|
'double',
|
|
115
123
|
'date',
|
|
@@ -2,7 +2,7 @@ import { type LucideIcon } from 'lucide-react';
|
|
|
2
2
|
import type { AriaAttributes, ReactNode } from 'react';
|
|
3
3
|
import type { ValueMode } from '../field-addons/value-mode-strings';
|
|
4
4
|
export type QuickFormFieldMode = ValueMode;
|
|
5
|
-
export type QuickFieldType = 'string' | 'integer' | 'double' | 'date' | 'datetime' | 'boolean' | 'single-select' | 'multi-select' | 'array' | 'file' | 'object';
|
|
5
|
+
export type QuickFieldType = 'string' | 'textarea' | 'integer' | 'double' | 'date' | 'datetime' | 'boolean' | 'single-select' | 'multi-select' | 'array' | 'file' | 'object';
|
|
6
6
|
interface FieldTypeMeta {
|
|
7
7
|
label: string;
|
|
8
8
|
icon: LucideIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ALargeSmall, Braces, Brackets, Calendar, CalendarClock, File, Hash, List, ListChecks, Sigma, ToggleLeft } from "lucide-react";
|
|
1
|
+
import { ALargeSmall, AlignLeft, Braces, Brackets, Calendar, CalendarClock, File, Hash, List, ListChecks, Sigma, ToggleLeft } from "lucide-react";
|
|
2
2
|
const FIELD_TYPE_META = {
|
|
3
3
|
string: {
|
|
4
4
|
label: 'String',
|
|
@@ -7,6 +7,13 @@ const FIELD_TYPE_META = {
|
|
|
7
7
|
fixedLabel: 'Fixed value',
|
|
8
8
|
fixedDescription: 'Use a literal string value'
|
|
9
9
|
},
|
|
10
|
+
textarea: {
|
|
11
|
+
label: 'Text area',
|
|
12
|
+
icon: AlignLeft,
|
|
13
|
+
supportsExpression: true,
|
|
14
|
+
fixedLabel: 'Fixed value',
|
|
15
|
+
fixedDescription: 'Use a literal multi-line string value'
|
|
16
|
+
},
|
|
10
17
|
integer: {
|
|
11
18
|
label: 'Integer',
|
|
12
19
|
icon: Hash,
|
|
@@ -80,6 +87,7 @@ const FIELD_TYPE_META = {
|
|
|
80
87
|
};
|
|
81
88
|
const FIELD_TYPE_ORDER = [
|
|
82
89
|
'string',
|
|
90
|
+
'textarea',
|
|
83
91
|
'integer',
|
|
84
92
|
'double',
|
|
85
93
|
'date',
|