@next-bricks/form-platform 0.5.0 → 0.6.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.
Files changed (74) hide show
  1. package/dist/bricks.json +5 -1
  2. package/dist/chunks/4837.c71e7277.js +2 -0
  3. package/dist/chunks/4837.c71e7277.js.map +1 -0
  4. package/dist/chunks/6046.d0b3cfb1.js +3 -0
  5. package/dist/chunks/6046.d0b3cfb1.js.map +1 -0
  6. package/dist/chunks/6223.ef1a783e.js +3 -0
  7. package/dist/chunks/6223.ef1a783e.js.map +1 -0
  8. package/dist/chunks/6580.ab4ba4d4.js +3 -0
  9. package/dist/chunks/{6580.cb814a92.js.map → 6580.ab4ba4d4.js.map} +1 -1
  10. package/dist/chunks/6941.66e34b74.js +2 -0
  11. package/dist/chunks/6941.66e34b74.js.map +1 -0
  12. package/dist/chunks/7218.16427ab5.js +2 -0
  13. package/dist/chunks/7218.16427ab5.js.map +1 -0
  14. package/dist/chunks/7304.593cf3e0.js +2 -0
  15. package/dist/chunks/7304.593cf3e0.js.map +1 -0
  16. package/dist/chunks/7733.6bb39aa4.js +2 -0
  17. package/dist/chunks/7733.6bb39aa4.js.map +1 -0
  18. package/dist/chunks/7895.0c6c8882.js +3 -0
  19. package/dist/chunks/7895.0c6c8882.js.LICENSE.txt +31 -0
  20. package/dist/chunks/7895.0c6c8882.js.map +1 -0
  21. package/dist/chunks/8989.8eb7605c.js +2 -0
  22. package/dist/chunks/{8989.ddec3574.js.map → 8989.8eb7605c.js.map} +1 -1
  23. package/dist/chunks/948.dec6ad6a.js +3 -0
  24. package/dist/chunks/948.dec6ad6a.js.map +1 -0
  25. package/dist/chunks/{9515.b803c371.js → 9515.ad9edd90.js} +2 -2
  26. package/dist/chunks/9515.ad9edd90.js.map +1 -0
  27. package/dist/chunks/eo-cmdb-instance-select.eca25616.js +2 -0
  28. package/dist/chunks/eo-cmdb-instance-select.eca25616.js.map +1 -0
  29. package/dist/chunks/eo-user-or-user-group-select.b49b99a5.js +3 -0
  30. package/dist/chunks/eo-user-or-user-group-select.b49b99a5.js.map +1 -0
  31. package/dist/chunks/main.0e8ed5c0.js +2 -0
  32. package/dist/chunks/main.0e8ed5c0.js.map +1 -0
  33. package/dist/examples.json +4 -1
  34. package/dist/index.1c21b41c.js +2 -0
  35. package/dist/index.1c21b41c.js.map +1 -0
  36. package/dist/manifest.json +192 -0
  37. package/dist/types.json +505 -0
  38. package/dist-types/bootstrap.d.ts +1 -0
  39. package/dist-types/cmdb-instance-select/CmdbInstanceSelectInternal.d.ts +98 -0
  40. package/dist-types/cmdb-instance-select/CmdbInstanceSelectInternal.spec.d.ts +1 -0
  41. package/dist-types/cmdb-instance-select/i18n.d.ts +13 -0
  42. package/dist-types/cmdb-instance-select/index.d.ts +185 -0
  43. package/dist-types/cmdb-instance-select/index.spec.d.ts +1 -0
  44. package/dist-types/jsx.d.ts +4 -0
  45. package/docs/eo-cmdb-instance-select.md +26 -0
  46. package/docs/eo-user-or-user-group-select.md +120 -3
  47. package/docs/eo-user-or-user-group-select.react.md +126 -0
  48. package/package.json +2 -2
  49. package/dist/chunks/562.a0776965.js +0 -3
  50. package/dist/chunks/562.a0776965.js.map +0 -1
  51. package/dist/chunks/6580.cb814a92.js +0 -3
  52. package/dist/chunks/7087.caf3e36e.js +0 -2
  53. package/dist/chunks/7087.caf3e36e.js.map +0 -1
  54. package/dist/chunks/7733.aa8bfd6d.js +0 -2
  55. package/dist/chunks/7733.aa8bfd6d.js.map +0 -1
  56. package/dist/chunks/8273.2f7fa990.js +0 -3
  57. package/dist/chunks/8273.2f7fa990.js.map +0 -1
  58. package/dist/chunks/843.53f0716d.js +0 -2
  59. package/dist/chunks/843.53f0716d.js.map +0 -1
  60. package/dist/chunks/8989.ddec3574.js +0 -2
  61. package/dist/chunks/948.d4495e18.js +0 -3
  62. package/dist/chunks/948.d4495e18.js.map +0 -1
  63. package/dist/chunks/9515.b803c371.js.map +0 -1
  64. package/dist/chunks/eo-user-or-user-group-select.8e3c1c0c.js +0 -3
  65. package/dist/chunks/eo-user-or-user-group-select.8e3c1c0c.js.map +0 -1
  66. package/dist/chunks/main.c1d91605.js +0 -2
  67. package/dist/chunks/main.c1d91605.js.map +0 -1
  68. package/dist/index.baf16d00.js +0 -2
  69. package/dist/index.baf16d00.js.map +0 -1
  70. /package/dist/chunks/{8273.2f7fa990.js.LICENSE.txt → 6046.d0b3cfb1.js.LICENSE.txt} +0 -0
  71. /package/dist/chunks/{562.a0776965.js.LICENSE.txt → 6223.ef1a783e.js.LICENSE.txt} +0 -0
  72. /package/dist/chunks/{6580.cb814a92.js.LICENSE.txt → 6580.ab4ba4d4.js.LICENSE.txt} +0 -0
  73. /package/dist/chunks/{948.d4495e18.js.LICENSE.txt → 948.dec6ad6a.js.LICENSE.txt} +0 -0
  74. /package/dist/chunks/{eo-user-or-user-group-select.8e3c1c0c.js.LICENSE.txt → eo-user-or-user-group-select.b49b99a5.js.LICENSE.txt} +0 -0
@@ -0,0 +1,185 @@
1
+ import React from "react";
2
+ import "@next-core/theme";
3
+ import { FormItemProps } from "@next-bricks/form/form-item";
4
+ import { FormItemElementBase } from "@next-shared/form";
5
+ import { ComplexOption } from "./CmdbInstanceSelectInternal";
6
+ export interface EoCmdbInstanceSelectProps extends FormItemProps {
7
+ shadowRoot: ShadowRoot | null;
8
+ objectId: string;
9
+ mode?: string;
10
+ pageSize?: number;
11
+ instanceQuery?: any;
12
+ placeholder?: string;
13
+ fields?: Partial<ComplexOption<string>>;
14
+ minimumInputLength?: number;
15
+ value?: string | string[];
16
+ onChange?: (value: string | string[], option?: ComplexOption) => void;
17
+ onOptionsChange?: (options: ComplexOption[]) => void;
18
+ allowClear?: boolean;
19
+ inputBoxStyle?: React.CSSProperties;
20
+ extraSearchKey?: string[];
21
+ extraFields?: string[];
22
+ popoverPositionType?: "default" | "parent";
23
+ isMultiLabel?: boolean;
24
+ showSearchTip?: boolean;
25
+ labelTemplate?: string;
26
+ disabled?: boolean;
27
+ permission?: Array<"read" | "update" | "operate">;
28
+ showTooltip?: boolean;
29
+ ignoreMissingFieldError?: boolean;
30
+ showKeyField?: boolean;
31
+ dropdownMatchSelectWidth?: boolean;
32
+ dropdownStyle?: React.CSSProperties;
33
+ blurAfterValueChanged?: boolean;
34
+ sort?: Array<Record<string, number | string>>;
35
+ useExternalCmdbApi?: boolean;
36
+ externalSourceId?: string;
37
+ validateState?: string;
38
+ trigger?: string;
39
+ }
40
+ export interface CmdbInstanceSelectEventsMap {
41
+ change: CustomEvent<string | string[]>;
42
+ "change.v2": CustomEvent<ComplexOption>;
43
+ "options.change": CustomEvent<{
44
+ options: ComplexOption[];
45
+ name: string;
46
+ }>;
47
+ }
48
+ export interface CmdbInstanceSelectEventsMapping {
49
+ onChange: "change";
50
+ onChangeV2: "change.v2";
51
+ onOptionsChange: "options.change";
52
+ }
53
+ /**
54
+ * CMDB 实例选择器
55
+ * @author jo
56
+ * @category form-input-business
57
+ * @insider
58
+ */
59
+ export declare class EoCmdbInstanceSelect extends FormItemElementBase {
60
+ #private;
61
+ /**
62
+ * 字段名称
63
+ */
64
+ accessor name: string | undefined;
65
+ /**
66
+ * 字段说明
67
+ */
68
+ accessor label: string | undefined;
69
+ /**
70
+ * 是否必填
71
+ */
72
+ accessor required: boolean | undefined;
73
+ /**
74
+ * 字段placeholder
75
+ */
76
+ accessor placeholder: string | undefined;
77
+ /**
78
+ * 值
79
+ */
80
+ accessor value: string | string[] | undefined;
81
+ /**
82
+ * 模型 id
83
+ */
84
+ accessor objectId: string;
85
+ /**
86
+ * 是否禁用
87
+ */
88
+ accessor disabled: boolean | undefined;
89
+ /**
90
+ * 支持清除选项
91
+ */
92
+ accessor allowClear: boolean | undefined;
93
+ /**
94
+ * 多选模式
95
+ */
96
+ accessor mode: string | undefined;
97
+ /**
98
+ * 配置搜索接口的pageSize
99
+ */
100
+ accessor pageSize: number | undefined;
101
+ /**
102
+ * 下拉框选项的过滤条件
103
+ */
104
+ accessor instanceQuery: any;
105
+ /**
106
+ * 自定义 select 下拉选项的 label 和 value 字段
107
+ */
108
+ accessor fields: Partial<ComplexOption<string>> | undefined;
109
+ /**
110
+ * 输入多少个字符才触发搜索动作
111
+ */
112
+ accessor minimumInputLength: number | undefined;
113
+ /**
114
+ * 配置额外的字段进行搜索
115
+ */
116
+ accessor extraSearchKey: string[] | undefined;
117
+ /**
118
+ * 配置接口需要返回的额外字段
119
+ */
120
+ accessor extraFields: string[] | undefined;
121
+ /**
122
+ * 下拉选项的渲染方式
123
+ */
124
+ accessor popoverPositionType: "default" | "parent" | undefined;
125
+ /**
126
+ * 控制下拉框中的label显示一个或者多个
127
+ */
128
+ accessor isMultiLabel: boolean | undefined;
129
+ /**
130
+ * 下拉列表的最后一行是否显示提示
131
+ */
132
+ accessor showSearchTip: boolean | undefined;
133
+ /**
134
+ * 可自定义label显示的模板
135
+ */
136
+ accessor labelTemplate: string | undefined;
137
+ /**
138
+ * 输入框样式
139
+ */
140
+ accessor inputBoxStyle: React.CSSProperties | undefined;
141
+ /**
142
+ * 按照权限过滤实例
143
+ */
144
+ accessor permission: Array<"read" | "update" | "operate"> | undefined;
145
+ /**
146
+ * 下拉框中是否启用tooltip显示label全称
147
+ */
148
+ accessor showTooltip: boolean | undefined;
149
+ /**
150
+ * 是否忽略不存在字段
151
+ */
152
+ accessor ignoreMissingFieldError: boolean | undefined;
153
+ /**
154
+ * 实例通过showKey自定义展示
155
+ */
156
+ accessor showKeyField: boolean | undefined;
157
+ /**
158
+ * 下拉菜单和选择器同宽
159
+ */
160
+ accessor dropdownMatchSelectWidth: boolean | undefined;
161
+ /**
162
+ * 设置下拉框容器的样式
163
+ */
164
+ accessor dropdownStyle: React.CSSProperties | undefined;
165
+ /**
166
+ * 是否在选完值后取消聚焦
167
+ */
168
+ accessor blurAfterValueChanged: boolean | undefined;
169
+ /**
170
+ * 配置接口返回数据的排序规则
171
+ */
172
+ accessor sort: Array<Record<string, number | string>> | undefined;
173
+ /**
174
+ * 使用外部数据源
175
+ */
176
+ accessor useExternalCmdbApi: boolean | undefined;
177
+ /**
178
+ * 外部数据源id
179
+ */
180
+ accessor externalSourceId: string | undefined;
181
+ handleChange: (value: string | string[], option?: ComplexOption) => void;
182
+ handleOptionsChange: (options: ComplexOption[]) => void;
183
+ render(): React.JSX.Element;
184
+ }
185
+ export declare function EoCmdbInstanceSelectComponent(props: EoCmdbInstanceSelectProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
@@ -1,11 +1,15 @@
1
1
  import type { DetailedHTMLProps, HTMLAttributes } from "react";
2
2
  import type { EoUserOrUserGroupSelect, EoUserOrUserGroupSelectProps } from "./user-or-user-group-select";
3
+ import type { EoCmdbInstanceSelect, EoCmdbInstanceSelectProps } from "./cmdb-instance-select";
3
4
  declare global {
4
5
  namespace JSX {
5
6
  interface IntrinsicElements {
6
7
  "eo-user-or-user-group-select": DetailedHTMLProps<HTMLAttributes<EoUserOrUserGroupSelect>, EoUserOrUserGroupSelect> & EoUserOrUserGroupSelectProps & {
7
8
  onChange?: (event: CustomEvent<string[]>) => void;
8
9
  };
10
+ "eo-cmdb-instance-select": DetailedHTMLProps<HTMLAttributes<EoCmdbInstanceSelect>, EoCmdbInstanceSelect> & EoCmdbInstanceSelectProps & {
11
+ onChange?: (event: CustomEvent<string[]>) => void;
12
+ };
9
13
  }
10
14
  }
11
15
  }
@@ -0,0 +1,26 @@
1
+ 构件 `eo-cmdb-instance-select`
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: eo-cmdb-instance-select
9
+ properties:
10
+ label: 选择应用
11
+ name: app
12
+ objectId: APP
13
+ placeholder: 请选择应用
14
+ ```
15
+
16
+ ### Multiple Mode
17
+
18
+ ```yaml preview
19
+ - brick: eo-cmdb-instance-select
20
+ properties:
21
+ label: 选择应用
22
+ name: app
23
+ objectId: APP
24
+ placeholder: 请选择应用
25
+ mode: multiple
26
+ ```
@@ -1,14 +1,131 @@
1
- 构件 `eo-user-or-user-group-select`
1
+ ---
2
+ tagName: eo-user-or-user-group-select
3
+ displayName: WrappedEoUserOrUserGroupSelect
4
+ description: 用户(组)选择器
5
+ category: form-input-business
6
+ source: "@next-bricks/form-platform"
7
+ ---
8
+
9
+ # eo-user-or-user-group-select
10
+
11
+ > 用户(组)选择器
12
+
13
+ ## Props
14
+
15
+ | 属性 | 类型 | 必填 | 默认值 | 说明 |
16
+ | ---------------- | --------------------------------------- | ---- | -------- | ----------------------------------------------------------------------------------- |
17
+ | name | `string` | 否 | - | 字段名称 |
18
+ | label | `string` | 否 | - | 字段说明 |
19
+ | required | `boolean` | 否 | - | 是否必填 |
20
+ | placeholder | `string` | 否 | - | 字段placeholder |
21
+ | value | `string[]` | 否 | - | 值 |
22
+ | objectList | `Partial<CmdbModels.ModelCmdbObject>[]` | 否 | - | 模型列表(按需传递 USER/USER_GROUP 的模型定义,用于显示对应实例名称) |
23
+ | query | `Record<string, any>` | 否 | - | 用户和用户组 `search` 接口的 `query`,此参数比较适用于两者接口需要参数相同的情况 |
24
+ | userQuery | `Record<string, any>` | 否 | - | 针对 `USER/instance/_search` 接口的 `query`,可能只需要针对用户做筛选的情况 |
25
+ | userGroupQuery | `Record<string, any>` | 否 | - | 针对 `USER_GROUP/instance/_search` 接口的 `query`,可能只需要针对用户组做筛选的情况 |
26
+ | userKey | `"name" \| "instanceId"` | 否 | `"name"` | 用户对象的唯一标识字段,即:value 使用的字段名 |
27
+ | optionsMode | `"user" \| "group" \| "all"` | 是 | `"all"` | 支持选择用户、用户组或者两者 |
28
+ | disabled | `boolean` | 否 | - | 是否禁用 |
29
+ | isMultiple | `boolean` | 是 | `true` | 是否多选,默认为多选 |
30
+ | staticList | `string[]` | 否 | - | 固定白名单列表,该列表中的值用户不能取消 |
31
+ | hideAddMeQuickly | `boolean` | 是 | `true` | 快速选择我 |
32
+ | themeVariant | `"default" \| "elevo"` | 否 | - | 主题变体 |
33
+
34
+ ## Events
35
+
36
+ | 事件 | detail | 说明 |
37
+ | ------ | ------------------------------------------------- | ------------ |
38
+ | change | `string[]` — 当前选中的用户名或用户组实例 ID 列表 | 值变化时触发 |
2
39
 
3
40
  ## Examples
4
41
 
5
42
  ### Basic
6
43
 
44
+ 基础用法,默认支持选择用户和用户组,多选模式。
45
+
46
+ ```yaml preview
47
+ - brick: eo-user-or-user-group-select
48
+ properties:
49
+ label: 负责人
50
+ name: user
51
+ placeholder: 请选择用户或用户组
52
+ isMultiple: true
53
+ ```
54
+
55
+ ### User Only Mode
56
+
57
+ 仅选择用户模式,不显示用户组选项。
58
+
7
59
  ```yaml preview
8
60
  - brick: eo-user-or-user-group-select
9
61
  properties:
10
- label: Label
62
+ label: 用户
11
63
  name: user
12
- placeholder: 用户
64
+ placeholder: 请选择用户
65
+ optionsMode: user
13
66
  isMultiple: true
67
+ events:
68
+ change:
69
+ - action: console.log
70
+ args:
71
+ - <% EVENT.detail %>
72
+ ```
73
+
74
+ ### Single Select with Quick Add Me
75
+
76
+ 单选模式,并显示"快速选择我"按钮。
77
+
78
+ ```yaml preview
79
+ - brick: eo-user-or-user-group-select
80
+ properties:
81
+ label: 操作人
82
+ name: operator
83
+ placeholder: 请选择用户
84
+ optionsMode: user
85
+ isMultiple: false
86
+ hideAddMeQuickly: false
87
+ events:
88
+ change:
89
+ - action: console.log
90
+ args:
91
+ - <% EVENT.detail %>
92
+ ```
93
+
94
+ ### With Form Integration
95
+
96
+ 在表单中使用,支持必填校验和表单提交。
97
+
98
+ ```yaml preview
99
+ - brick: eo-form
100
+ events:
101
+ validate.success:
102
+ - action: console.log
103
+ values.change:
104
+ - action: console.log
105
+ children:
106
+ - brick: eo-user-or-user-group-select
107
+ properties:
108
+ name: members
109
+ label: 成员
110
+ required: true
111
+ placeholder: 请选择成员
112
+ isMultiple: true
113
+ optionsMode: all
114
+ - brick: eo-submit-buttons
115
+ ```
116
+
117
+ ### Disabled Mode
118
+
119
+ 禁用状态,展示已选中的值但不可更改。
120
+
121
+ ```yaml preview
122
+ - brick: eo-user-or-user-group-select
123
+ properties:
124
+ label: 归属用户
125
+ name: owner
126
+ disabled: true
127
+ value:
128
+ - admin
129
+ isMultiple: false
130
+ optionsMode: user
14
131
  ```
@@ -0,0 +1,126 @@
1
+ ---
2
+ tagName: eo-user-or-user-group-select
3
+ displayName: WrappedEoUserOrUserGroupSelect
4
+ description: 用户(组)选择器
5
+ category: form-input-business
6
+ source: "@next-bricks/form-platform"
7
+ ---
8
+
9
+ # WrappedEoUserOrUserGroupSelect
10
+
11
+ > 用户(组)选择器
12
+
13
+ ## 导入
14
+
15
+ ```tsx
16
+ import { WrappedEoUserOrUserGroupSelect } from "@easyops/wrapped-components";
17
+ ```
18
+
19
+ ## Props
20
+
21
+ | 属性 | 类型 | 必填 | 默认值 | 说明 |
22
+ | ---------------- | --------------------------------------- | ---- | -------- | ----------------------------------------------------------------------------------- |
23
+ | name | `string` | 否 | - | 字段名称 |
24
+ | label | `string` | 否 | - | 字段说明 |
25
+ | required | `boolean` | 否 | - | 是否必填 |
26
+ | placeholder | `string` | 否 | - | 字段placeholder |
27
+ | value | `string[]` | 否 | - | 值 |
28
+ | objectList | `Partial<CmdbModels.ModelCmdbObject>[]` | 否 | - | 模型列表(按需传递 USER/USER_GROUP 的模型定义,用于显示对应实例名称) |
29
+ | query | `Record<string, any>` | 否 | - | 用户和用户组 `search` 接口的 `query`,此参数比较适用于两者接口需要参数相同的情况 |
30
+ | userQuery | `Record<string, any>` | 否 | - | 针对 `USER/instance/_search` 接口的 `query`,可能只需要针对用户做筛选的情况 |
31
+ | userGroupQuery | `Record<string, any>` | 否 | - | 针对 `USER_GROUP/instance/_search` 接口的 `query`,可能只需要针对用户组做筛选的情况 |
32
+ | userKey | `"name" \| "instanceId"` | 否 | `"name"` | 用户对象的唯一标识字段,即:value 使用的字段名 |
33
+ | optionsMode | `"user" \| "group" \| "all"` | 是 | `"all"` | 支持选择用户、用户组或者两者 |
34
+ | disabled | `boolean` | 否 | - | 是否禁用 |
35
+ | isMultiple | `boolean` | 是 | `true` | 是否多选,默认为多选 |
36
+ | staticList | `string[]` | 否 | - | 固定白名单列表,该列表中的值用户不能取消 |
37
+ | hideAddMeQuickly | `boolean` | 是 | `true` | 快速选择我 |
38
+ | themeVariant | `"default" \| "elevo"` | 否 | - | 主题变体 |
39
+
40
+ ## Events
41
+
42
+ | 事件 | detail | 说明 |
43
+ | -------- | ------------------------------------------------- | ------------ |
44
+ | onChange | `string[]` — 当前选中的用户名或用户组实例 ID 列表 | 值变化时触发 |
45
+
46
+ ## Examples
47
+
48
+ ### Basic
49
+
50
+ 基础用法,默认支持选择用户和用户组,多选模式。
51
+
52
+ ```tsx
53
+ <WrappedEoUserOrUserGroupSelect
54
+ label="负责人"
55
+ name="user"
56
+ placeholder="请选择用户或用户组"
57
+ isMultiple={true}
58
+ />
59
+ ```
60
+
61
+ ### User Only Mode
62
+
63
+ 仅选择用户模式,不显示用户组选项。
64
+
65
+ ```tsx
66
+ <WrappedEoUserOrUserGroupSelect
67
+ label="用户"
68
+ name="user"
69
+ placeholder="请选择用户"
70
+ optionsMode="user"
71
+ isMultiple={true}
72
+ onChange={(e) => console.log(e.detail)}
73
+ />
74
+ ```
75
+
76
+ ### Single Select with Quick Add Me
77
+
78
+ 单选模式,并显示"快速选择我"按钮。
79
+
80
+ ```tsx
81
+ <WrappedEoUserOrUserGroupSelect
82
+ label="操作人"
83
+ name="operator"
84
+ placeholder="请选择用户"
85
+ optionsMode="user"
86
+ isMultiple={false}
87
+ hideAddMeQuickly={false}
88
+ onChange={(e) => console.log(e.detail)}
89
+ />
90
+ ```
91
+
92
+ ### With Form Integration
93
+
94
+ 在表单中使用,支持必填校验和表单提交。
95
+
96
+ ```tsx
97
+ <WrappedEoForm
98
+ onValidateSuccess={(e) => console.log(e.detail)}
99
+ onValuesChange={(e) => console.log(e.detail)}
100
+ >
101
+ <WrappedEoUserOrUserGroupSelect
102
+ name="members"
103
+ label="成员"
104
+ required={true}
105
+ placeholder="请选择成员"
106
+ isMultiple={true}
107
+ optionsMode="all"
108
+ />
109
+ <WrappedEoSubmitButtons />
110
+ </WrappedEoForm>
111
+ ```
112
+
113
+ ### Disabled Mode
114
+
115
+ 禁用状态,展示已选中的值但不可更改。
116
+
117
+ ```tsx
118
+ <WrappedEoUserOrUserGroupSelect
119
+ label="归属用户"
120
+ name="owner"
121
+ disabled={true}
122
+ value={["admin"]}
123
+ isMultiple={false}
124
+ optionsMode="user"
125
+ />
126
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/form-platform",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/form-platform",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,5 +44,5 @@
44
44
  "peerDependencies": {
45
45
  "@next-bricks/form": "*"
46
46
  },
47
- "gitHead": "31697c98682ee9520ba3d74268e30d8609c26143"
47
+ "gitHead": "2670992c377a46bcaed4f3ed70431bb5441c4bb7"
48
48
  }
@@ -1,3 +0,0 @@
1
- /*! For license information please see 562.a0776965.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunk_next_bricks_form_platform=globalThis.webpackChunk_next_bricks_form_platform||[]).push([[562,2052,6580,7087],{562:(e,t,r)=>{var i=r(9575),n=r(4586),s=r(4635),a=r(918),o=r(7545);function u(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,o.A)(e):"null"));return e}var l=r(5536),c=r(6121),h=r(829);function d(e,t,r){"symbol"==(0,o.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch(e){}return e}var p=r(1369);function v(e,t,r,i,n,s){var a,l,c,h,v,f,m,y=Symbol.metadata||Symbol.for("Symbol.metadata"),A=Object.defineProperty,g=Object.create,b=[g(null),g(null)],w=t.length;function k(t,r,i){return function(n,s){r&&(s=n,n=e);for(var a=0;a<t.length;a++)s=t[a].apply(n,i?[s]:[]);return i?s:n}}function E(e,t,r,i){if("function"!=typeof e&&(i||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(i?"":" or undefined"));return e}function M(e,t,r,i,n,s,u,c,h,p,v){function f(e){if(!v(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),y=t[3],g=!u,w=1===n,M=3===n,S=4===n,R=2===n;function U(t,r,i){return function(n,s){return r&&(s=n,n=e),i&&i(n),W[t].call(n,s)}}if(!g){var W={},j=[],O=M?"get":S||w?"set":"value";if(h?(p||w?W={get:d((function(){return y(this)}),i,"get"),set:function(e){t[4](this,e)}}:W[O]=y,p||d(W[O],i,R?"":O)):p||(W=Object.getOwnPropertyDescriptor(e,i)),!p&&!h){if((l=b[+c][i])&&7!=(l^n))throw Error("Decorating two elements with the same name ("+W[O].name+") is not supported yet");b[+c][i]=n<3?1:n}}for(var _=e,q=m.length-1;q>=0;q-=r?2:1){var P=E(m[q],"A decorator","be",!0),G=r?m[q-1]:void 0,B={},I={kind:["field","accessor","method","getter","setter","class"][n],name:i,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),s.push(t)}.bind(null,B)};if(g)l=P.call(G,_,I),B.v=1,E(l,"class decorators","return")&&(_=l);else if(I.static=c,I.private=h,l=I.access={has:h?v.bind():function(e){return i in e}},S||(l.get=h?R?function(e){return f(e),W.value}:U("get",0,f):function(e){return e[i]}),R||M||(l.set=h?U("set",0,f):function(e,t){e[i]=t}),_=P.call(G,w?{get:W.get,set:W.set}:W[O],I),B.v=1,w){if("object"==(0,o.A)(_)&&_)(l=E(_.get,"accessor.get"))&&(W.get=l),(l=E(_.set,"accessor.set"))&&(W.set=l),(l=E(_.init,"accessor.init"))&&j.unshift(l);else if(void 0!==_)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(_,(p?"field":"method")+" decorators","return")&&(p?j.unshift(_):W[O]=_)}return n<2&&u.push(k(j,c,1),k(s,c,0)),p||g||(h?w?u.splice(-1,0,U("get",c),U("set",c)):u.push(R?W[O]:E.call.bind(W[O])):A(e,i,W)),_}function S(e){return A(e,y,{configurable:!0,enumerable:!0,value:a})}return void 0!==s&&(a=s[y]),a=g(null==a?null:a),v=[],f=function(e){e&&v.push(k(e))},m=function(t,i){for(var s=0;s<r.length;s++){var a=r[s],o=a[1],l=7&o;if((8&o)==t&&!l==i){var d=a[2],f=!!a[3],m=16&o;M(t?e:e.prototype,a,m,f?"#"+d:(0,p.A)(d),l,l<2?[]:t?h=h||[]:c=c||[],v,!!t,f,i,t&&f?function(t){return u(t)===e}:n)}}},m(8,0),m(0,0),m(8,1),m(0,1),f(c),f(h),l=v,w||S(e),{e:l,get c(){var r=[];return w&&[S(e=M(e,[t],i,e.name,5,r)),k(r,1)]}}}var f,m=r(8769),y=r.n(m),A=r(870),g=r(981),b=r(9113),w=(r(4419),r(2008)),k=r(2559);function E(e,t,r,i){return t((0,k.A)(e,r),i),i}let M,S,R,U,W,j,O,_,q;const{method:P,property:G}=(0,A.createDecorators)();var B=new WeakMap,I=new WeakSet,Q=new WeakMap,L=new WeakMap,C=new WeakMap,z=new WeakMap,x=new WeakMap,$=new WeakMap;class T extends g.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,I),(0,a.A)(this,B,(M(this),!1)),(0,a.A)(this,Q,"normal"),(0,a.A)(this,L,!1),(0,a.A)(this,C,S(this)),(0,a.A)(this,z,(R(this),U(this))),(0,a.A)(this,x,(W(this),j(this))),(0,a.A)(this,$,(O(this),_(this))),q(this)}get isFormItemElement(){return!0}set validateState(e){E(I,K,this,e),this._render()}get validateState(){return(0,l.A)(I,this,F)}set notRender(e){this.hidden=e,E(I,V,this,e),this._render()}get notRender(){return(0,l.A)(I,this,N)}get $bindFormItem(){return(0,l.A)(I,this,D)}set $bindFormItem(e){E(I,H,this,e),this._render()}get helpBrick(){return(0,h.A)(C,this)}set helpBrick(e){(0,c.A)(C,this,e)}get labelBrick(){return(0,h.A)(z,this)}set labelBrick(e){(0,c.A)(z,this,e)}get labelCol(){return(0,h.A)(x,this)}set labelCol(e){(0,c.A)(x,this,e)}get wrapperCol(){return(0,h.A)($,this)}set wrapperCol(e){(0,c.A)($,this,e)}setNotRender(e){this.notRender=e}getFormElement(){let e=this;for(;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function N(e){return(0,h.A)(B,e)}function V(e,t){(0,c.A)(B,e,t)}function F(e){return(0,h.A)(Q,e)}function K(e,t){(0,c.A)(Q,e,t)}function D(e){return(0,h.A)(L,e)}function H(e,t){(0,c.A)(L,e,t)}f=T,[S,R,U,W,j,O,_,q,M]=v(f,[],[[G({attribute:!1}),1,"helpBrick"],[G({attribute:!1}),1,"labelBrick"],[G({attribute:!1}),1,"labelCol"],[G({attribute:!1}),1,"wrapperCol"],[P(),2,"setNotRender"],[P(),2,"getFormElement"]],0,void 0,g.ReactNextElement).e;var J=r(563);const X=["formElement","curElement","name","label","current","required","pattern","type","min","max","labelCol","wrapperCol","message","layout","size","trigger","valuePropsName","notRender","helpBrick","labelBrick","needValidate","validator"];var Y,Z=r(3733);let ee,te,re,ie,ne,se,ae,oe,ue,le,ce,he,de,pe,ve,fe,me,ye,Ae,ge,be,we,ke,Ee,Me,Se,Re,Ue,We,je,Oe,_e,qe,Pe,Ge,Be,Ie;const{defineElement:Qe,property:Le,event:Ce}=(0,A.createDecorators)(),ze=(0,g.wrapBrick)("eo-form-item"),xe=(0,g.wrapBrick)("eo-button"),$e=(0,g.wrapBrick)("eo-select");let Te;var Ne=new WeakMap,Ve=new WeakMap,Fe=new WeakMap,Ke=new WeakMap,De=new WeakMap,He=new WeakMap,Je=new WeakMap,Xe=new WeakMap,Ye=new WeakMap,Ze=new WeakMap,et=new WeakMap,tt=new WeakMap,rt=new WeakMap,it=new WeakMap,nt=new WeakMap,st=new WeakMap,at=new WeakMap,ot=new WeakSet;function ut(e){const t=e.objectList,r="instanceId"===e.userKey?e.userKey:"name",[n,s]=(0,m.useState)(),[a,o]=(0,m.useState)([]),[u,l]=(0,m.useState)([]),[c,h]=(0,m.useState)([]),d=(0,m.useRef)([]),p=(0,m.useMemo)((()=>{var t;if(!(0,J.isNil)(e.value))return e.isMultiple?[...e.value]:null===(t=e.value)||void 0===t?void 0:t[0]}),[e.value,e.isMultiple]),v=(0,m.useCallback)((e=>{var r,i;const n=(0,J.keyBy)(t,"objectId");return(null===(r=n[e])||void 0===r?void 0:r.view)&&(null===(i=n[e].view)||void 0===i?void 0:i.show_key)||["name"]}),[t]),f=async(t,i)=>{const n=v("USER"===t?"USER":"USER_GROUP"),s={$or:(0,J.map)((0,J.uniq)([...n,"name"]),(e=>({[e]:{$like:`%${i}%`}}))),..."USER"===t?{state:"valid"}:{}},[{list:a},{list:o}]=await Promise.all([(0,Z.n)(t,{page:1,page_size:20,fields:{...(0,J.zipObject)(n,(0,J.map)(n,(()=>!0))),name:!0},query:e.userQuery&&"USER"===t?{$and:[e.userQuery,s]}:e.userGroupQuery&&"USER_GROUP"===t?{$and:[e.userGroupQuery,s]}:e.query?{$and:[e.query,s]}:s}),(()=>{var i,s;const a="USER"===t?null===(i=e.value)||void 0===i?void 0:i.filter((e=>!e.startsWith(":"))):null===(s=e.value)||void 0===s?void 0:s.filter((e=>e.startsWith(":"))).map((e=>e.slice(1)));return null!=a&&a.length?(0,Z.n)(t,{page:1,page_size:a.length,fields:{...(0,J.zipObject)(n,(0,J.map)(n,(()=>!0))),name:!0},query:"USER"===t?{[r]:{$in:a}}:{instanceId:{$in:a}}}):Promise.resolve({list:[]})})()]);for(const e of o)a.find((t=>t.instanceId===e.instanceId))||a.push(e);return a},A=async e=>{o(await f("USER",e))},g=async e=>{const t=await f("USER_GROUP",e);l(t.map((e=>(e.instanceId=":"+e.instanceId,e))))},w=async t=>{s(t),await Promise.all([..."group"!==e.optionsMode?[A(t)]:[],..."user"!==e.optionsMode?[g(t)]:[]])},k=(0,m.useRef)();(0,m.useEffect)((()=>{var t;null!==(t=e.value)&&void 0!==t&&t.length&&!(0,J.isEqual)(e.value,k.current)&&(k.current=e.value,w(""))}),[e.value]);const E=t=>{var r;null===(r=e.onChange)||void 0===r||r.call(e,t)},M=t=>{var r;const i=null===(r=t.detail)||void 0===r?void 0:r.value,s=(0,J.filter)(Array.isArray(i)?i:i?[i]:[],(t=>!(0,J.find)(e.staticList,(e=>e===t))));s.unshift(...d.current),h(s),E(s),""!==n&&w("")},S=(e,t)=>{const r=v("USER"===e?"USER":"USER_GROUP");let i;return i=Array.isArray(r)?r.map(((e,r)=>0===r?t[e]:t[e]?"("+t[e]+")":"")).join(""):t[r],i||t.name};(0,m.useEffect)((()=>{(()=>{var t,r;const i=(null===(t=e.value)||void 0===t?void 0:t.filter((e=>!e.startsWith(":"))))||[],n=(null===(r=e.value)||void 0===r?void 0:r.filter((e=>e.startsWith(":"))))||[],s=(0,J.map)((0,J.filter)(c,(e=>{var t;return!(null!=e&&null!==(t=e.key)&&void 0!==t&&t.startsWith(":"))})),"key"),a=(0,J.map)((0,J.filter)(c,(e=>{var t;return null==e||null===(t=e.key)||void 0===t?void 0:t.startsWith(":")})),"key");return!(0,J.isEqual)([...i].sort(),[...s].sort())||!(0,J.isEqual)([...n].sort(),[...a].sort())})()&&(async()=>{if(e.value){let t=[],i=[];const n=e.value.filter((e=>!e.startsWith(":"))),s=e.value.filter((e=>e.startsWith(":"))),a=(0,J.groupBy)(e.staticList,(e=>(0,J.startsWith)(e,":")?"userGroup":"user")),u=(0,J.compact)((0,J.uniq)([].concat(a.user).concat(n))),c=(0,J.compact)((0,J.uniq)([].concat(a.userGroup).concat(s)));(a.user&&(0,J.some)(a.user,(e=>!n.includes(e)))||a.userGroup&&(0,J.some)(a.userGroup,(e=>!s.includes(e))))&&E([...u,...c]);const p=[];u.length&&"group"!==e.optionsMode&&(t=(await(0,Z.n)("USER",{query:{[r]:{$in:u}},page:1,page_size:u.length,fields:{...(0,J.zipObject)(v("USER"),(0,J.map)(v("USER"),(()=>!0))),name:!0}})).list),c.length&&"user"!==e.optionsMode&&(i=(await(0,Z.n)("USER_GROUP",{query:{instanceId:{$in:(0,J.map)(c,(e=>e.slice(1)))}},page:1,page_size:c.length,fields:{...(0,J.zipObject)(v("USER_GROUP"),(0,J.map)(v("USER_GROUP"),(()=>!0))),name:!0}})).list);let f=[...(0,J.map)(t,(t=>{var i;const n=S("USER",t),s={key:t[r],label:n};return null!==(i=e.staticList)&&void 0!==i&&i.includes(t[r])&&p.push(s),s})),...(0,J.map)(i,(t=>{var r;const i=S("USER_GROUP",t),n={key:":"+t.instanceId,label:i};return null!==(r=e.staticList)&&void 0!==r&&r.includes(":"+t.instanceId)&&p.push(n),n}))];f=[...p,...(0,J.filter)(f,(t=>{var r;return!(null!==(r=e.staticList)&&void 0!==r&&r.includes(t.key))}))],h(f),o(t),l(i),d.current=p}})()}),[]);const R=(0,m.useMemo)((()=>{let t=[],i=[];return a.length&&(t=a.map((t=>{var i;return{label:S("USER",t),value:t[r],closeable:!(null!=e&&null!==(i=e.staticList)&&void 0!==i&&i.includes(t[r])),tag:"用户(仅显示前20项,更多结果请搜索)"}}))),u.length&&(i=u.map((t=>{var r;return{label:S("USER_GROUP",t),value:t.instanceId,closeable:!(null!=e&&null!==(r=e.staticList)&&void 0!==r&&r.includes(t.instanceId)),tag:"用户组(仅显示前20项,更多结果请搜索)"}}))),"user"===e.optionsMode?t:"group"===e.optionsMode?i:[...t,...i]}),[a,u,e.optionsMode,e.staticList,r]);return y().createElement(ze,(0,i.A)({exportparts:"message"},function(e){return(0,J.pick)(e,X)}(e)),y().createElement("div",{className:"select-wrapper"},y().createElement($e,{clearable:!0,mode:e.isMultiple?"multiple":void 0,placeholder:e.placeholder,value:p,onchange:M,onfocus:()=>{((0,J.isNil)(n)||""!==n)&&w("")},onsearch:(0,J.debounce)((e=>{w(e.detail.value)}),500),options:R,disabled:e.disabled,groupBy:"tag",themeVariant:e.themeVariant}),!e.hideAddMeQuickly&&"group"!==e.optionsMode&&y().createElement(xe,{onClick:async()=>{const e=b.auth.getAuth()["instanceId"===r?"userInstanceId":"username"];if((0,J.find)(c,(t=>t===e)))return;const t=(await(0,Z.n)("USER",{query:{[r]:{$eq:e}},page:1,page_size:1,fields:{...(0,J.zipObject)(v("USER"),(0,J.map)(v("USER"),(()=>!0))),name:!0}})).list;t.length&&o([...a,...t]),M({detail:{value:[...c,e]}})},type:"link",size:"large",style:{fontSize:"16px"},icon:{lib:"easyops",icon:"quick-add-me"}})))}Y=class extends T{constructor(){super(...arguments),(0,s.A)(this,ot),(0,a.A)(this,Ne,te(this)),(0,a.A)(this,Ve,(re(this),ie(this))),(0,a.A)(this,Fe,(ne(this),se(this))),(0,a.A)(this,Ke,(ae(this),oe(this))),(0,a.A)(this,De,(ue(this),le(this))),(0,a.A)(this,He,(ce(this),he(this))),(0,a.A)(this,Je,(de(this),pe(this))),(0,a.A)(this,Xe,(ve(this),fe(this))),(0,a.A)(this,Ye,(me(this),ye(this))),(0,a.A)(this,Ze,(Ae(this),ge(this))),(0,a.A)(this,et,(be(this),we(this,"all"))),(0,a.A)(this,tt,(ke(this),Ee(this))),(0,a.A)(this,rt,(Me(this),Se(this,!0))),(0,a.A)(this,it,(Re(this),Ue(this))),(0,a.A)(this,nt,(We(this),je(this,!0))),(0,a.A)(this,st,(Oe(this),_e(this))),(0,a.A)(this,at,(qe(this),Pe(this))),(0,n.A)(this,"handleUserOrUserGroupChange",(Ie(this),e=>{Promise.resolve().then((()=>{var t;(0,l.A)(ot,this,Ge).emit(e),null===(t=this.getFormElement())||void 0===t||t.resetValidateState()}))}))}get name(){return(0,h.A)(Ne,this)}set name(e){(0,c.A)(Ne,this,e)}get label(){return(0,h.A)(Ve,this)}set label(e){(0,c.A)(Ve,this,e)}get required(){return(0,h.A)(Fe,this)}set required(e){(0,c.A)(Fe,this,e)}get placeholder(){return(0,h.A)(Ke,this)}set placeholder(e){(0,c.A)(Ke,this,e)}get value(){return(0,h.A)(De,this)}set value(e){(0,c.A)(De,this,e)}get objectList(){return(0,h.A)(He,this)}set objectList(e){(0,c.A)(He,this,e)}get query(){return(0,h.A)(Je,this)}set query(e){(0,c.A)(Je,this,e)}get userQuery(){return(0,h.A)(Xe,this)}set userQuery(e){(0,c.A)(Xe,this,e)}get userGroupQuery(){return(0,h.A)(Ye,this)}set userGroupQuery(e){(0,c.A)(Ye,this,e)}get userKey(){return(0,h.A)(Ze,this)}set userKey(e){(0,c.A)(Ze,this,e)}get optionsMode(){return(0,h.A)(et,this)}set optionsMode(e){(0,c.A)(et,this,e)}get disabled(){return(0,h.A)(tt,this)}set disabled(e){(0,c.A)(tt,this,e)}get isMultiple(){return(0,h.A)(rt,this)}set isMultiple(e){(0,c.A)(rt,this,e)}get staticList(){return(0,h.A)(it,this)}set staticList(e){(0,c.A)(it,this,e)}get hideAddMeQuickly(){return(0,h.A)(nt,this)}set hideAddMeQuickly(e){(0,c.A)(nt,this,e)}get themeVariant(){return(0,h.A)(st,this)}set themeVariant(e){(0,c.A)(st,this,e)}render(){return y().createElement(ut,{formElement:this.getFormElement(),curElement:this,name:this.name,label:this.label,placeholder:this.placeholder,required:this.required,value:this.value,validateState:this.validateState,notRender:this.notRender,helpBrick:this.helpBrick,trigger:"handleUserOrUserGroupChange",onChange:this.handleUserOrUserGroupChange,objectList:this.objectList,query:this.query,userQuery:this.userQuery,userGroupQuery:this.userGroupQuery,userKey:this.userKey,optionsMode:this.optionsMode,staticList:this.staticList,isMultiple:this.isMultiple,disabled:this.disabled,hideAddMeQuickly:this.hideAddMeQuickly,themeVariant:this.themeVariant})}},({e:[te,re,ie,ne,se,ae,oe,ue,le,ce,he,de,pe,ve,fe,me,ye,Ae,ge,be,we,ke,Ee,Me,Se,Re,Ue,We,je,Oe,_e,qe,Pe,Ge,Be,Ie],c:[Te,ee]}=v(Y,[Qe("eo-user-or-user-group-select",{styleTexts:[w.A]})],[[Le(),1,"name"],[Le(),1,"label"],[Le({type:Boolean}),1,"required"],[Le(),1,"placeholder"],[Le({attribute:!1}),1,"value"],[Le({attribute:!1}),1,"objectList"],[Le({attribute:!1}),1,"query"],[Le({attribute:!1}),1,"userQuery"],[Le({attribute:!1}),1,"userGroupQuery"],[Le(),1,"userKey"],[Le(),1,"optionsMode"],[Le({type:Boolean}),1,"disabled"],[Le({type:Boolean}),1,"isMultiple"],[Le({attribute:!1}),1,"staticList"],[Le({type:Boolean}),1,"hideAddMeQuickly"],[Le(),1,"themeVariant"],[Ce({type:"change"}),1,"changeEvent",e=>(0,h.A)(at,e),(e,t)=>(0,c.A)(at,e,t)]],0,(e=>ot.has(u(e))),T)),ee()},829:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(2559);function n(e,t){return e.get((0,i.A)(e,t))}},918:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(2016);function n(e,t,r){(0,i.A)(e,t),t.set(e,r)}},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",i=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),i&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),i&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,i,n,s){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(i)for(var o=0;o<this.length;o++){var u=this[o][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);i&&a[c[0]]||(void 0!==s&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=s),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),n&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=n):c[4]="".concat(n)),t.push(c))}},t}},1369:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(7545);function n(e){var t=function(e){if("object"!=(0,i.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=(0,i.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,i.A)(t)?t:t+""}},2008:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(6758),n=r.n(i),s=r(935),a=r.n(s)()(n());a.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.select-wrapper{display:flex;align-items:center}eo-select{width:100%}",""]);const o=a.toString()},2016:(e,t,r)=>{function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>i})},2559:(e,t,r)=>{function i(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}r.d(t,{A:()=>i})},3733:(e,t,r)=>{r.d(t,{n:()=>s});var i=r(6330),n=r(1361),s=function(){var e=(0,i.A)((function*(e,t,r){return(yield n.http.post("api/gateway/cmdb.instance.PostSearch/object/".concat(e,"/instance/_search"),t,r)).data}));return function(t,r,i){return e.apply(this,arguments)}}()},4586:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(1369);function n(e,t,r){return(t=(0,i.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},4635:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(2016);function n(e,t){(0,i.A)(e,t),t.add(e)}},5536:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(2559);function n(e,t,r){return r((0,i.A)(e,t))}},6121:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(2559);function n(e,t,r){return e.set((0,i.A)(e,t),r),r}},6330:(e,t,r)=>{function i(e,t,r,i,n,s,a){try{var o=e[s](a),u=o.value}catch(e){return void r(e)}o.done?t(u):Promise.resolve(u).then(i,n)}function n(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var a=e.apply(t,r);function o(e){i(a,n,s,o,u,"next",e)}function u(e){i(a,n,s,o,u,"throw",e)}o(void 0)}))}}r.d(t,{A:()=>n})},6758:e=>{e.exports=function(e){return e[1]}},7545:(e,t,r)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}r.d(t,{A:()=>i})},9575:(e,t,r)=>{function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},i.apply(this,arguments)}r.d(t,{A:()=>i})}}]);
3
- //# sourceMappingURL=562.a0776965.js.map