@next-libs/cmdb-instances 7.25.3 → 7.26.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/cjs/cmdb-instance-select/CmdbInstanceSelect.js +271 -0
- package/dist/cjs/cmdb-instance-select/CmdbInstanceSelect.js.map +1 -0
- package/dist/cjs/i18n/constants.js +1 -0
- package/dist/cjs/i18n/constants.js.map +1 -1
- package/dist/cjs/i18n/locales/en.js +2 -1
- package/dist/cjs/i18n/locales/en.js.map +1 -1
- package/dist/cjs/i18n/locales/zh.js +2 -1
- package/dist/cjs/i18n/locales/zh.js.map +1 -1
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/cmdb-instance-select/CmdbInstanceSelect.js +271 -0
- package/dist/esm/cmdb-instance-select/CmdbInstanceSelect.js.map +1 -0
- package/dist/esm/cmdb-instance-select/CmdbInstanceSelect.module.css +30 -0
- package/dist/esm/i18n/constants.js +1 -0
- package/dist/esm/i18n/constants.js.map +1 -1
- package/dist/esm/i18n/locales/en.js +2 -1
- package/dist/esm/i18n/locales/en.js.map +1 -1
- package/dist/esm/i18n/locales/zh.js +2 -1
- package/dist/esm/i18n/locales/zh.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/types/cmdb-instance-select/CmdbInstanceSelect.d.ts +45 -0
- package/dist/types/cmdb-instance-select/CmdbInstanceSelect.spec.d.ts +1 -0
- package/dist/types/i18n/constants.d.ts +2 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UseBrickConf } from "@next-core/brick-types";
|
|
3
|
+
export interface CmdbInstanceSelectProps {
|
|
4
|
+
objectId: string;
|
|
5
|
+
mode?: string;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
instanceQuery?: any;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
fields?: Partial<ComplexOption<string>>;
|
|
10
|
+
firstRender: boolean;
|
|
11
|
+
minimumInputLength?: number;
|
|
12
|
+
value?: any;
|
|
13
|
+
onChange?: (value: string, option?: ComplexOption) => void;
|
|
14
|
+
optionsChange?: (options: ComplexOption[]) => void;
|
|
15
|
+
allowClear?: boolean;
|
|
16
|
+
inputBoxStyle?: React.CSSProperties;
|
|
17
|
+
extraSearchKey?: string[];
|
|
18
|
+
extraFields?: string[];
|
|
19
|
+
popoverPositionType?: "default" | "parent";
|
|
20
|
+
isMultiLabel?: boolean;
|
|
21
|
+
showSearchTip?: boolean;
|
|
22
|
+
labelTemplate?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
permission?: Array<"read" | "update" | "operate">;
|
|
25
|
+
showTooltip?: boolean;
|
|
26
|
+
ignoreMissingFieldError?: boolean;
|
|
27
|
+
showKeyField?: boolean;
|
|
28
|
+
dropdownMatchSelectWidth?: boolean;
|
|
29
|
+
dropdownStyle?: React.CSSProperties;
|
|
30
|
+
blurAfterValueChanged?: boolean;
|
|
31
|
+
sort?: Array<Record<string, number | string>>;
|
|
32
|
+
suffix?: {
|
|
33
|
+
useBrick: UseBrickConf;
|
|
34
|
+
};
|
|
35
|
+
useBrickVisible?: boolean;
|
|
36
|
+
useExternalCmdbApi?: boolean;
|
|
37
|
+
externalSourceId?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface ComplexOption<T = string | number> {
|
|
40
|
+
label: string[] | string;
|
|
41
|
+
value: T;
|
|
42
|
+
user_icon?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare function formatUserQuery(instanceQuery: any): any[];
|
|
45
|
+
export declare const CmdbInstanceSelect: React.ForwardRefExoticComponent<CmdbInstanceSelectProps & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -116,7 +116,8 @@ export declare enum K {
|
|
|
116
116
|
CLICK_TO_FILTER_INSTANCE_SOURCE = "CLICK_TO_FILTER_INSTANCE_SOURCE",
|
|
117
117
|
SEARCH_MODEL = "SEARCH_MODEL",
|
|
118
118
|
UPLOAD_SIZE_LARGE_TEXT = "UPLOAD_SIZE_LARGE_TEXT",
|
|
119
|
-
UPLOAD = "UPLOAD"
|
|
119
|
+
UPLOAD = "UPLOAD",
|
|
120
|
+
BACKGROUND_SEARCH = "BACKGROUND_SEARCH"
|
|
120
121
|
}
|
|
121
122
|
export declare type Locale = {
|
|
122
123
|
[key in K]: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./instance-list-table";
|
|
|
8
8
|
export * from "./instance-list-table/AdvancedSearchCondition";
|
|
9
9
|
export * from "./instance-list-modal/InstanceListModal";
|
|
10
10
|
export * from "./instance-list/InstanceList";
|
|
11
|
+
export * from "./cmdb-instance-select/CmdbInstanceSelect";
|
|
11
12
|
export * from "./cmdb-instances-input-form/CmdbInstancesInputFormItem";
|
|
12
13
|
export * from "./cmdb-instances-select-panel/CmdbInstancesSelectPanel";
|
|
13
14
|
export * from "./instance-detail/InstanceDetail";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-libs/cmdb-instances",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.26.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-libs/tree/master/libs/cmdb-instances",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"js-base64": "^3.7.7",
|
|
53
53
|
"marked": "^2.1.3"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "b886fd12a71e5e814a615194eadabccf71185940"
|
|
56
56
|
}
|