@next-libs/cmdb-instances 7.28.9 → 7.28.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/cjs/cmdb-instance-select/CmdbInstanceSelect.js +3 -1
- package/dist/cjs/cmdb-instance-select/CmdbInstanceSelect.js.map +1 -1
- package/dist/cjs/i18n/constants.js +8 -3
- package/dist/cjs/i18n/constants.js.map +1 -1
- package/dist/cjs/i18n/locales/en.js +9 -4
- package/dist/cjs/i18n/locales/en.js.map +1 -1
- package/dist/cjs/i18n/locales/zh.js +9 -4
- package/dist/cjs/i18n/locales/zh.js.map +1 -1
- package/dist/cjs/instance-detail/InstanceDetail.js +2 -2
- package/dist/cjs/instance-detail/InstanceDetail.js.map +1 -1
- package/dist/cjs/instance-detail/constants/index.js +7 -3
- package/dist/cjs/instance-detail/constants/index.js.map +1 -1
- package/dist/cjs/instance-list/constants.js +2 -2
- package/dist/cjs/instance-list/constants.js.map +1 -1
- package/dist/cjs/instance-list-table/DisplaySettings.js +16 -9
- package/dist/cjs/instance-list-table/DisplaySettings.js.map +1 -1
- package/dist/cjs/instance-list-table/constants.js +12 -8
- package/dist/cjs/instance-list-table/constants.js.map +1 -1
- package/dist/cjs/model-attribute-form/ModelAttributeForm.js +2 -1
- package/dist/cjs/model-attribute-form/ModelAttributeForm.js.map +1 -1
- package/dist/esm/cmdb-instance-select/CmdbInstanceSelect.js +3 -1
- package/dist/esm/cmdb-instance-select/CmdbInstanceSelect.js.map +1 -1
- package/dist/esm/i18n/constants.js +8 -3
- package/dist/esm/i18n/constants.js.map +1 -1
- package/dist/esm/i18n/locales/en.js +9 -4
- package/dist/esm/i18n/locales/en.js.map +1 -1
- package/dist/esm/i18n/locales/zh.js +9 -4
- package/dist/esm/i18n/locales/zh.js.map +1 -1
- package/dist/esm/instance-detail/InstanceDetail.js +2 -2
- package/dist/esm/instance-detail/InstanceDetail.js.map +1 -1
- package/dist/esm/instance-detail/constants/index.js +6 -3
- package/dist/esm/instance-detail/constants/index.js.map +1 -1
- package/dist/esm/instance-list/constants.js +2 -2
- package/dist/esm/instance-list/constants.js.map +1 -1
- package/dist/esm/instance-list-table/DisplaySettings.js +14 -7
- package/dist/esm/instance-list-table/DisplaySettings.js.map +1 -1
- package/dist/esm/instance-list-table/constants.js +11 -8
- package/dist/esm/instance-list-table/constants.js.map +1 -1
- package/dist/esm/model-attribute-form/ModelAttributeForm.js +3 -1
- package/dist/esm/model-attribute-form/ModelAttributeForm.js.map +1 -1
- package/dist/types/i18n/constants.d.ts +9 -4
- package/dist/types/instance-detail/constants/index.d.ts +3 -3
- package/dist/types/instance-list-table/DisplaySettings.d.ts +7 -3
- package/package.json +2 -2
|
@@ -61,10 +61,13 @@ export declare enum K {
|
|
|
61
61
|
SEARCH = "SEARCH",
|
|
62
62
|
RESET = "RESET",
|
|
63
63
|
CREATOR = "CREATOR",
|
|
64
|
-
|
|
64
|
+
CREATE_TIME = "CREATE_TIME",
|
|
65
65
|
MODIFIER = "MODIFIER",
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
MODIFY_TIME = "MODIFY_TIME",
|
|
67
|
+
DEV = "DEV",
|
|
68
|
+
TEST = "TEST",
|
|
69
|
+
PROD = "PROD",
|
|
70
|
+
PRE_RELEASE = "PRE_RELEASE",
|
|
68
71
|
VIEW = "VIEW",
|
|
69
72
|
ITEM_ADD_IN_BATCHES = "ITEM_ADD_IN_BATCHES",
|
|
70
73
|
SAVE = "SAVE",
|
|
@@ -129,7 +132,9 @@ export declare enum K {
|
|
|
129
132
|
NAME = "NAME",
|
|
130
133
|
ID = "ID",
|
|
131
134
|
SORT = "SORT",
|
|
132
|
-
COMMA = "COMMA"
|
|
135
|
+
COMMA = "COMMA",
|
|
136
|
+
MORE_RESULTS_TIPS = "MORE_RESULTS_TIPS",
|
|
137
|
+
OTHERS = "OTHERS"
|
|
133
138
|
}
|
|
134
139
|
export declare type Locale = {
|
|
135
140
|
[key in K]: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const DEFAULT_ATTRIBUTE_TAG
|
|
1
|
+
export declare const DEFAULT_ATTRIBUTE_TAG: string;
|
|
2
2
|
export declare const BASIC_INFORMATION_RELATION_GROUP_ID = "basic_info";
|
|
3
|
-
export declare const DEFAULT_ATTRIBUTE_TAG_STR
|
|
4
|
-
export declare const BASIC_INFO
|
|
3
|
+
export declare const DEFAULT_ATTRIBUTE_TAG_STR: string;
|
|
4
|
+
export declare const BASIC_INFO: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CmdbModels } from "@next-sdk/cmdb-sdk";
|
|
3
|
+
import { WithTranslation } from "react-i18next";
|
|
3
4
|
export interface DisplaySettingsProps {
|
|
4
5
|
currentFields: string[];
|
|
5
6
|
modelData: Partial<CmdbModels.ModelCmdbObject>;
|
|
@@ -8,6 +9,8 @@ export interface DisplaySettingsProps {
|
|
|
8
9
|
extraDisabledFields?: string[];
|
|
9
10
|
onChange?(fields: string[]): void;
|
|
10
11
|
}
|
|
12
|
+
export interface WithTranslationDisplaySettingsProps extends DisplaySettingsProps, WithTranslation {
|
|
13
|
+
}
|
|
11
14
|
interface DisplaySettingsState {
|
|
12
15
|
nextFields: string[];
|
|
13
16
|
q: string;
|
|
@@ -17,15 +20,15 @@ interface DisplaySettingsState {
|
|
|
17
20
|
selectCategoryAllFieldsMap: Record<string, boolean>;
|
|
18
21
|
allFieldsLength: number;
|
|
19
22
|
}
|
|
20
|
-
export declare class
|
|
23
|
+
export declare class LegacyDisplaySettings extends React.Component<WithTranslationDisplaySettingsProps, DisplaySettingsState> {
|
|
21
24
|
debounceHandleSearch: () => void;
|
|
22
25
|
attrAndRelationList: {
|
|
23
26
|
id: string;
|
|
24
27
|
name: string;
|
|
25
28
|
category: string;
|
|
26
29
|
}[];
|
|
27
|
-
constructor(props:
|
|
28
|
-
componentDidUpdate(prevProps:
|
|
30
|
+
constructor(props: WithTranslationDisplaySettingsProps);
|
|
31
|
+
componentDidUpdate(prevProps: WithTranslationDisplaySettingsProps): void;
|
|
29
32
|
handleChecked(event: any, attr: any, categoryData?: any): void;
|
|
30
33
|
handlecCategoryChecked(event: any, categoryData: any): void;
|
|
31
34
|
handleSelectAllFields(event: any, allFields: any[]): void;
|
|
@@ -35,4 +38,5 @@ export declare class DisplaySettings extends React.Component<DisplaySettingsProp
|
|
|
35
38
|
handleSearchChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
36
39
|
render(): React.JSX.Element;
|
|
37
40
|
}
|
|
41
|
+
export declare const DisplaySettings: React.ComponentType<Omit<import("react-i18next").Subtract<WithTranslationDisplaySettingsProps, import("react-i18next").WithTranslationProps>, keyof WithTranslation<N, undefined>> & import("react-i18next").WithTranslationProps>;
|
|
38
42
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-libs/cmdb-instances",
|
|
3
|
-
"version": "7.28.
|
|
3
|
+
"version": "7.28.10",
|
|
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": "edfcb777d5247d6c18bbc0c633f222e9cac98d7a"
|
|
56
56
|
}
|