@next-libs/cmdb-instances 7.25.3 → 7.26.1

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.
@@ -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>>;
@@ -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;
@@ -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.25.3",
3
+ "version": "7.26.1",
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": "b05733105a99adeb74e006c08815d4bf083fdd0d"
55
+ "gitHead": "667bcc468aac015ab14a93ff2cc0704afa3d939a"
56
56
  }