@digitalsee-ai/rcs 1.0.8 → 1.0.10
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/dynamic-form/components/ValueModeWrapper/ValueModeWrapper.test.d.ts +1 -0
- package/dist/components/dynamic-form/components/ValueModeWrapper/index.d.ts +14 -0
- package/dist/components/dynamic-form/components/VariableInput/index.d.ts +1 -0
- package/dist/rcs.es.js +9318 -9270
- package/dist/rcs.es.js.map +1 -1
- package/dist/rcs.umd.js +53 -53
- package/dist/rcs.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export type ValueMode = 'normal' | 'expression' | 'code';
|
|
3
|
+
export declare function isEncodedExpressionValue(value: unknown): value is string;
|
|
4
|
+
export declare function encodeValueForMode(inputValue: string, mode: ValueMode, encodeExpressionValue: boolean): string;
|
|
5
|
+
export declare function decodeValueForMode(value: string, mode: ValueMode, encodeExpressionValue: boolean): string;
|
|
6
|
+
export declare function inferValueModeFromValue(value: unknown, defaultMode: ValueMode, encodeExpressionValue: boolean, availableModes?: ValueMode[]): ValueMode;
|
|
3
7
|
export interface ValueModeWrapperProps {
|
|
4
8
|
/** 当前值 */
|
|
5
9
|
value?: string;
|
|
@@ -17,6 +21,8 @@ export interface ValueModeWrapperProps {
|
|
|
17
21
|
disabled?: boolean;
|
|
18
22
|
/** 是否只读 */
|
|
19
23
|
readOnly?: boolean;
|
|
24
|
+
/** 输入控件 ID */
|
|
25
|
+
id?: string;
|
|
20
26
|
/** 占位符 */
|
|
21
27
|
placeholder?: string;
|
|
22
28
|
/** 是否多行 */
|
|
@@ -29,6 +35,14 @@ export interface ValueModeWrapperProps {
|
|
|
29
35
|
renderVariableTag?: (variable: string, isValid: boolean) => React.ReactNode;
|
|
30
36
|
/** 自定义变量标签 tooltip */
|
|
31
37
|
renderVariableTooltip?: (variable: string) => React.ReactNode;
|
|
38
|
+
/** 文本模式是否也使用变量输入器,允许 {{变量}} 占位符 */
|
|
39
|
+
textModeSupportsVariables?: boolean;
|
|
40
|
+
/** 是否使用 ${...} 表达式包装和文本前导 $ 转义 */
|
|
41
|
+
encodeExpressionValue?: boolean;
|
|
42
|
+
/** 获得焦点时的回调 */
|
|
43
|
+
onFocus?: () => void;
|
|
44
|
+
/** 失去焦点时的回调 */
|
|
45
|
+
onBlur?: () => void;
|
|
32
46
|
/** 自定义渲染普通模式的组件 */
|
|
33
47
|
renderNormalMode?: (props: {
|
|
34
48
|
value?: string;
|