@next-libs/cmdb-instances 6.12.2 → 6.14.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.
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { PropertyDisplayConfig, ReadPaginationChangeDetail, ReadSelectionChangeDetail, ReadSortingChangeDetail, UseBrickConf } from "@next-core/brick-types";
3
3
  import { CmdbModels, InstanceApi_PostSearchRequestBody, InstanceApi_PostSearchV3RequestBody, InstanceApi_PostSearchV3ResponseBody } from "@next-sdk/cmdb-sdk";
4
- import { Query, CustomColumn } from "../instance-list-table";
4
+ import { Query, CustomColumn, Field } from "../instance-list-table";
5
5
  export interface InstanceListPresetConfigs {
6
6
  query?: Record<string, any>;
7
7
  fieldIds?: string[];
@@ -26,6 +26,7 @@ interface InstanceListProps {
26
26
  asc?: boolean;
27
27
  relatedToMe?: boolean;
28
28
  relatedToMeDisabled?: boolean;
29
+ showHiddenInfoDisabled?: boolean;
29
30
  moreButtonsDisabled?: boolean;
30
31
  aliveHosts?: boolean;
31
32
  fixAliveHosts?: boolean;
@@ -69,6 +70,9 @@ interface InstanceListProps {
69
70
  pageSize?: number;
70
71
  };
71
72
  separatorUsedInRelationData?: string;
73
+ hideInstanceList?: boolean;
74
+ autoSearch?: (fields: Field[]) => void;
75
+ disabledDefaultFields?: boolean;
72
76
  }
73
77
  export declare function InstanceList(props: InstanceListProps): React.ReactElement;
74
78
  export {};
@@ -2,7 +2,7 @@ import React, { ChangeEvent, FormEvent } from "react";
2
2
  import { FormComponentProps } from "@ant-design/compatible/lib/form";
3
3
  import { CmdbModels } from "@next-sdk/cmdb-sdk";
4
4
  import { ModelAttributeValueType } from "../model-attribute-form-control/ModelAttributeFormControl";
5
- declare enum ComparisonOperators {
5
+ export declare enum ComparisonOperators {
6
6
  Equal = "$eq",
7
7
  NotEqual = "$ne",
8
8
  Like = "$like",
@@ -55,7 +55,7 @@ export declare function getFieldConditionsAndValues(fieldQueryOperatorExpression
55
55
  queryValuesStr: string;
56
56
  disabled: boolean;
57
57
  };
58
- interface Field {
58
+ export interface Field {
59
59
  id: string;
60
60
  name: string;
61
61
  attrValue: Partial<CmdbModels.ModelObjectAttrValue>;
@@ -73,6 +73,7 @@ export interface AdvancedSearchFormProps extends FormComponentProps {
73
73
  q?: Query[];
74
74
  placeholder?: string;
75
75
  onSearch?(queries: Query[], queriesToShow?: Query[], fieldToShow?: Record<string, any[]>[]): void;
76
+ autoSearch?: (fields: Field[]) => void;
76
77
  fieldToShow?: Record<string, any[]>[];
77
78
  onChange?(e: ChangeEvent<HTMLInputElement>): void;
78
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-libs/cmdb-instances",
3
- "version": "6.12.2",
3
+ "version": "6.14.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",
@@ -50,5 +50,5 @@
50
50
  "immutability-helper": "^3.1.1",
51
51
  "marked": "^2.1.3"
52
52
  },
53
- "gitHead": "40d137058a907dbf0c5fbeb8564fcc2793fe67dd"
53
+ "gitHead": "d0c634f958469bfd7a0d430bd50298f467bdea65"
54
54
  }