@nocobase/client 1.8.0-alpha.9 → 1.8.0-beta.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/es/application/Application.d.ts +0 -38
- package/es/flag-provider/FlagProvider.d.ts +0 -4
- package/es/index.mjs +1308 -1944
- package/es/modules/fields/component/Input/inputComponentSettings.d.ts +0 -2
- package/es/plugin-manager/PinnedPluginListProvider.d.ts +1 -3
- package/es/schema-component/antd/action/Action.d.ts +0 -1
- package/es/schema-component/antd/input/Input.d.ts +0 -2
- package/es/schema-component/antd/page/usePopupContextInActionOrAssociationField.d.ts +0 -2
- package/es/schema-component/antd/password/Password.d.ts +0 -1
- package/es/schema-component/antd/select/Select.d.ts +1 -1
- package/es/schema-component/common/utils/uitls.d.ts +1 -1
- package/es/schema-settings/LinkageRules/bindLinkageRulesToFiled.d.ts +0 -3
- package/es/schema-settings/VariableInput/VariableInput.d.ts +1 -1
- package/es/schema-settings/VariableInput/hooks/index.d.ts +0 -1
- package/es/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +54 -1
- package/es/variables/index.d.ts +0 -2
- package/lib/index.js +76 -76
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/it-IT.js +1 -5
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/nl-NL.js +1 -2
- package/lib/locale/pt-BR.js +1 -5
- package/lib/locale/ru-RU.js +1 -5
- package/lib/locale/tr-TR.js +1 -5
- package/lib/locale/uk-UA.js +1 -5
- package/lib/locale/zh-CN.js +1 -4
- package/lib/locale/zh-TW.js +1 -5
- package/package.json +5 -5
- package/es/hooks/useParsedValue.d.ts +0 -1
- package/es/schema-component/antd/input/ScanInput/QRCodeScanner.d.ts +0 -19
- package/es/schema-component/antd/input/ScanInput/index.d.ts +0 -12
- package/es/schema-component/antd/input/ScanInput/useScanner.d.ts +0 -17
- package/es/schema-settings/VariableInput/hooks/useSystemSettingsVariable.d.ts +0 -28
- package/es/variables/VariableScope.d.ts +0 -17
- package/es/variables/hooks/useLocalVariablesWithoutCustomVariable.d.ts +0 -16
|
@@ -54,30 +54,6 @@ export interface ApplicationOptions {
|
|
|
54
54
|
dataSourceManager?: DataSourceManagerOptions;
|
|
55
55
|
disableAcl?: boolean;
|
|
56
56
|
}
|
|
57
|
-
/**
|
|
58
|
-
* Reference: https://ant.design/components/cascader-cn#option
|
|
59
|
-
*/
|
|
60
|
-
interface VariableOption {
|
|
61
|
-
/** Unique identifier of the variable */
|
|
62
|
-
value: string | number;
|
|
63
|
-
/** Variable name displayed in UI */
|
|
64
|
-
label?: React.ReactNode;
|
|
65
|
-
disabled?: boolean;
|
|
66
|
-
children?: VariableOption[];
|
|
67
|
-
}
|
|
68
|
-
interface Variable {
|
|
69
|
-
/** Unique identifier of the variable */
|
|
70
|
-
name: string;
|
|
71
|
-
/** Variable configuration options */
|
|
72
|
-
useOption: () => ({
|
|
73
|
-
option: VariableOption;
|
|
74
|
-
visible?: boolean;
|
|
75
|
-
});
|
|
76
|
-
/** Variable context */
|
|
77
|
-
useCtx: () => (any | ((param: {
|
|
78
|
-
variableName: string;
|
|
79
|
-
}) => Promise<any>));
|
|
80
|
-
}
|
|
81
57
|
export declare class Application {
|
|
82
58
|
protected options: ApplicationOptions;
|
|
83
59
|
eventBus: EventTarget;
|
|
@@ -107,7 +83,6 @@ export declare class Application {
|
|
|
107
83
|
error: any;
|
|
108
84
|
hasLoadError: boolean;
|
|
109
85
|
private wsAuthorized;
|
|
110
|
-
private variables;
|
|
111
86
|
get pm(): PluginManager;
|
|
112
87
|
get disableAcl(): boolean;
|
|
113
88
|
get isWsAuthorized(): boolean;
|
|
@@ -174,18 +149,5 @@ export declare class Application {
|
|
|
174
149
|
addUserCenterSettingsItem(item: SchemaSettingsItemType & {
|
|
175
150
|
aclSnippet?: string;
|
|
176
151
|
}): void;
|
|
177
|
-
/**
|
|
178
|
-
* Register a variable for use in the frontend
|
|
179
|
-
*
|
|
180
|
-
* Note: It is not recommended to register variables in components as it may cause rendering errors
|
|
181
|
-
* @param variable
|
|
182
|
-
* @returns
|
|
183
|
-
*/
|
|
184
|
-
registerVariable(variable: Variable): void;
|
|
185
|
-
/**
|
|
186
|
-
* Get all registered variables
|
|
187
|
-
* @returns
|
|
188
|
-
*/
|
|
189
|
-
getVariables(): Variable[];
|
|
190
152
|
}
|
|
191
153
|
export {};
|
|
@@ -39,10 +39,6 @@ export interface FlagProviderProps {
|
|
|
39
39
|
* 是否存在于 `筛选表单区块` 中
|
|
40
40
|
*/
|
|
41
41
|
isInFilterFormBlock?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* 是否存在于变量选择器中
|
|
44
|
-
*/
|
|
45
|
-
isInXButton?: boolean;
|
|
46
42
|
}
|
|
47
43
|
export declare const FlagContext: React.Context<Omit<FlagProviderProps, "children">>;
|
|
48
44
|
export declare const FlagProvider: FC<FlagProviderProps>;
|