@dao-style/biz 0.6.0 → 0.7.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.
Files changed (186) hide show
  1. package/dist/cjs/components/gpu/style/assign-gpu-devices-list.js +1 -0
  2. package/dist/cjs/components/gpu/style/gpu-form.js +1 -0
  3. package/dist/components/form-block/FormBlock.d.ts +27 -1
  4. package/dist/components/form-block/props.d.ts +4 -0
  5. package/dist/components/form-block/props.js +4 -0
  6. package/dist/components/form-block/props.mjs +4 -0
  7. package/dist/components/form-block/src/FormBlock.vue.d.ts +11 -0
  8. package/dist/components/form-block/src/FormBlock.vue.js +4 -4
  9. package/dist/components/form-block/src/FormBlock.vue.mjs +4 -4
  10. package/dist/components/form-block/src/FormBlock.vue2.js +12 -1
  11. package/dist/components/form-block/src/FormBlock.vue2.mjs +12 -1
  12. package/dist/components/gpu/props.d.ts +121 -3
  13. package/dist/components/gpu/props.js +82 -9
  14. package/dist/components/gpu/props.mjs +82 -9
  15. package/dist/components/gpu/src/GpuForm.vue.d.ts +283 -50
  16. package/dist/components/gpu/src/GpuForm.vue.js +25 -24
  17. package/dist/components/gpu/src/GpuForm.vue.mjs +26 -25
  18. package/dist/components/gpu/src/GpuForm.vue2.js +115 -218
  19. package/dist/components/gpu/src/GpuForm.vue2.mjs +116 -219
  20. package/dist/components/gpu/src/components/AssignGpuDevicesList.vue.d.ts +77 -0
  21. package/dist/components/gpu/src/components/AssignGpuDevicesList.vue.js +40 -0
  22. package/dist/components/gpu/src/components/AssignGpuDevicesList.vue.mjs +41 -0
  23. package/dist/components/gpu/src/components/AssignGpuDevicesList.vue2.js +191 -0
  24. package/dist/components/gpu/src/components/AssignGpuDevicesList.vue2.mjs +192 -0
  25. package/dist/components/gpu/src/components/GpuAdvancedForm.vue.d.ts +180 -0
  26. package/dist/components/gpu/src/{GpuAdvancedForm.vue.js → components/GpuAdvancedForm.vue.js} +92 -37
  27. package/dist/components/gpu/src/{GpuAdvancedForm.vue.mjs → components/GpuAdvancedForm.vue.mjs} +93 -38
  28. package/dist/components/gpu/src/components/GpuAdvancedForm.vue2.js +169 -0
  29. package/dist/components/gpu/src/components/GpuAdvancedForm.vue2.mjs +153 -0
  30. package/dist/components/gpu/src/{GpuFormDynamicItem.vue.d.ts → components/GpuFormDynamicItem.vue.d.ts} +4 -4
  31. package/dist/components/gpu/src/{GpuFormDynamicItem.vue.js → components/GpuFormDynamicItem.vue.js} +1 -1
  32. package/dist/components/gpu/src/{GpuFormDynamicItem.vue.mjs → components/GpuFormDynamicItem.vue.mjs} +1 -1
  33. package/dist/components/gpu/src/{GpuFormDynamicItem.vue2.js → components/GpuFormDynamicItem.vue2.js} +1 -1
  34. package/dist/components/gpu/src/{GpuFormDynamicItem.vue2.mjs → components/GpuFormDynamicItem.vue2.mjs} +1 -1
  35. package/dist/components/gpu/src/components/GpuFormItem.vue.d.ts +310 -0
  36. package/dist/components/gpu/src/{GpuFormItem.vue.js → components/GpuFormItem.vue.js} +22 -26
  37. package/dist/components/gpu/src/{GpuFormItem.vue.mjs → components/GpuFormItem.vue.mjs} +23 -27
  38. package/dist/components/gpu/src/components/GpuFormItem.vue2.js +61 -0
  39. package/dist/components/gpu/src/components/GpuFormItem.vue2.mjs +45 -0
  40. package/dist/components/gpu/src/{GpuResources.vue.d.ts → components/GpuResources.vue.d.ts} +38 -18
  41. package/dist/components/gpu/src/components/GpuResources.vue.js +153 -0
  42. package/dist/components/gpu/src/components/GpuResources.vue.mjs +154 -0
  43. package/dist/components/gpu/src/components/GpuResources.vue2.js +278 -0
  44. package/dist/components/gpu/src/components/GpuResources.vue2.mjs +262 -0
  45. package/dist/components/gpu/src/gpuForm.constants.d.ts +3 -0
  46. package/dist/components/gpu/src/gpuForm.constants.js +10 -0
  47. package/dist/components/gpu/src/gpuForm.constants.mjs +10 -0
  48. package/dist/components/gpu/src/gpuForm.internal-types.d.ts +49 -0
  49. package/dist/components/gpu/src/gpuForm.mapper.d.ts +16 -0
  50. package/dist/components/gpu/src/gpuForm.mapper.js +199 -0
  51. package/dist/components/gpu/src/gpuForm.mapper.mjs +199 -0
  52. package/dist/components/gpu/src/gpuFormItem.mapper.d.ts +38 -0
  53. package/dist/components/gpu/src/gpuFormItem.mapper.js +153 -0
  54. package/dist/components/gpu/src/gpuFormItem.mapper.mjs +153 -0
  55. package/dist/components/gpu/src/useGPUOptions.d.ts +2 -2
  56. package/dist/components/gpu/src/useGPUOptions.js +15 -20
  57. package/dist/components/gpu/src/useGPUOptions.mjs +16 -21
  58. package/dist/components/gpu/src/useGpuFormItemState.d.ts +42 -0
  59. package/dist/components/gpu/src/useGpuFormItemState.js +178 -0
  60. package/dist/components/gpu/src/useGpuFormItemState.mjs +178 -0
  61. package/dist/components/gpu/src/useGpuFormSideState.d.ts +52 -0
  62. package/dist/components/gpu/src/useGpuFormSideState.js +71 -0
  63. package/dist/components/gpu/src/useGpuFormSideState.mjs +71 -0
  64. package/dist/components/gpu/src/useGpuFormState.d.ts +560 -0
  65. package/dist/components/gpu/src/useGpuFormState.js +52 -0
  66. package/dist/components/gpu/src/useGpuFormState.mjs +52 -0
  67. package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.d.ts +5 -1
  68. package/dist/components/gpu/style/assign-gpu-devices-list.d.ts +1 -0
  69. package/dist/components/gpu/style/assign-gpu-devices-list.scss.js +3 -0
  70. package/dist/components/gpu/style/assign-gpu-devices-list.scss.mjs +4 -0
  71. package/dist/components/gpu/style/gpu-form.d.ts +1 -0
  72. package/dist/components/gpu/types.d.ts +6 -0
  73. package/dist/components/gpu/types.js +2 -0
  74. package/dist/components/gpu/types.mjs +2 -0
  75. package/dist/components/gpu/utils.d.ts +4 -0
  76. package/dist/components/gpu/utils.js +14 -0
  77. package/dist/components/gpu/utils.mjs +14 -0
  78. package/dist/components/instance-cluster/src/InstanceCluster.vue.d.ts +1 -1
  79. package/dist/components/instance-namespace/src/InstanceNamespace.vue.d.ts +1 -1
  80. package/dist/components/instance-storage-class/src/InstanceStorageClass.vue.d.ts +1 -1
  81. package/dist/components/network-config/src/NetworkConfig.vue.d.ts +1 -1
  82. package/dist/components/network-config/src/NetworkConfig.vue.js +13 -6
  83. package/dist/components/network-config/src/NetworkConfig.vue.mjs +14 -7
  84. package/dist/dialogs/create-network-config-dialog/src/CreateNetworkConfigDialog.vue.d.ts +1 -1
  85. package/dist/es/components/gpu/style/assign-gpu-devices-list.mjs +1 -0
  86. package/dist/es/components/gpu/style/gpu-form.mjs +1 -0
  87. package/dist/forms/import-parameter-template/props.d.ts +8 -8
  88. package/dist/forms/import-parameter-template/src/ImportParameterTemplate.vue.d.ts +24 -24
  89. package/dist/group-mapping.json +1 -1
  90. package/dist/index.js +34 -23
  91. package/dist/index.mjs +15 -4
  92. package/dist/locales/en-US/components/Gpu.json.js +36 -9
  93. package/dist/locales/en-US/components/Gpu.json.mjs +37 -10
  94. package/dist/locales/en-US/index.js +2 -0
  95. package/dist/locales/en-US/index.mjs +2 -0
  96. package/dist/locales/en-US/uses/UseCancelFormDialog.json.js +11 -0
  97. package/dist/locales/en-US/uses/UseCancelFormDialog.json.mjs +11 -0
  98. package/dist/locales/ja/components/Gpu.json.js +36 -9
  99. package/dist/locales/ja/components/Gpu.json.mjs +37 -10
  100. package/dist/locales/ja/components/InstancePassword.json.js +1 -1
  101. package/dist/locales/ja/components/InstancePassword.json.mjs +1 -1
  102. package/dist/locales/ja/components/MatchExpressionsEditor.json.js +1 -1
  103. package/dist/locales/ja/components/MatchExpressionsEditor.json.mjs +1 -1
  104. package/dist/locales/ja/components/NetworkConfig.json.js +1 -1
  105. package/dist/locales/ja/components/NetworkConfig.json.mjs +1 -1
  106. package/dist/locales/ja/index.js +2 -0
  107. package/dist/locales/ja/index.mjs +2 -0
  108. package/dist/locales/ja/uses/UseCancelFormDialog.json.js +11 -0
  109. package/dist/locales/ja/uses/UseCancelFormDialog.json.mjs +11 -0
  110. package/dist/locales/ja/workloads/DnsConfig.json.js +1 -1
  111. package/dist/locales/ja/workloads/DnsConfig.json.mjs +1 -1
  112. package/dist/locales/ja/workloads/workload-advanced/NetworkConfig.json.js +1 -1
  113. package/dist/locales/ja/workloads/workload-advanced/NetworkConfig.json.mjs +1 -1
  114. package/dist/locales/zh-CN/components/Gpu.json.js +36 -9
  115. package/dist/locales/zh-CN/components/Gpu.json.mjs +37 -10
  116. package/dist/locales/zh-CN/index.js +2 -0
  117. package/dist/locales/zh-CN/index.mjs +2 -0
  118. package/dist/locales/zh-CN/uses/UseCancelFormDialog.json.js +11 -0
  119. package/dist/locales/zh-CN/uses/UseCancelFormDialog.json.mjs +11 -0
  120. package/dist/style.css +692 -664
  121. package/dist/styles/components/gpu/assign-gpu-devices-list.css +10 -0
  122. package/dist/styles/components/gpu/gpu-form-item.css +16 -0
  123. package/dist/styles/components/gpu/gpu-form.css +4 -0
  124. package/dist/styles/components/network-config/network-config.css +3 -0
  125. package/dist/styles/components/resource-config/resource-config.css +0 -8
  126. package/dist/styles/styles/common.css +4 -0
  127. package/dist/uses/index.d.ts +1 -0
  128. package/dist/uses/useCancelFormDialog/index.d.ts +11 -0
  129. package/dist/uses/useCancelFormDialog/index.js +40 -0
  130. package/dist/uses/useCancelFormDialog/index.mjs +40 -0
  131. package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue.d.ts +8 -0
  132. package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue.js +25 -0
  133. package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue.mjs +26 -0
  134. package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue2.js +3 -0
  135. package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue2.mjs +4 -0
  136. package/dist/utils/index.d.ts +1 -0
  137. package/dist/utils/injectWithSelf.d.ts +6 -0
  138. package/dist/utils/injectWithSelf.js +8 -0
  139. package/dist/utils/injectWithSelf.mjs +8 -0
  140. package/dist/utils/multiRowEditorValidate.d.ts +5 -5
  141. package/dist/utils/useResetFieldValue.d.ts +13 -0
  142. package/dist/utils/useResetFieldValue.js +28 -0
  143. package/dist/utils/useResetFieldValue.mjs +28 -0
  144. package/dist/utils/useSetFieldValue.d.ts +6 -0
  145. package/dist/utils/useSetFieldValue.js +2 -5
  146. package/dist/utils/useSetFieldValue.mjs +2 -5
  147. package/dist/workloads/container-basic-info/props.d.ts +13 -0
  148. package/dist/workloads/container-basic-info/props.js +4 -0
  149. package/dist/workloads/container-basic-info/props.mjs +4 -0
  150. package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.d.ts +10 -0
  151. package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.js +54 -29
  152. package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.mjs +54 -29
  153. package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue2.js +18 -8
  154. package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue2.mjs +19 -9
  155. package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue.d.ts +1 -1
  156. package/dist/workloads/containers/demo/data.d.ts +8 -1
  157. package/dist/workloads/containers/src/ContainerItem.vue.d.ts +23 -0
  158. package/dist/workloads/containers/src/Containers.vue.d.ts +4 -0
  159. package/dist/workloads/containers/src/Containers.vue2.js +18 -1
  160. package/dist/workloads/containers/src/Containers.vue2.mjs +19 -2
  161. package/dist/workloads/health-check/props.d.ts +4 -0
  162. package/dist/workloads/health-check/props.js +4 -0
  163. package/dist/workloads/health-check/props.mjs +4 -0
  164. package/dist/workloads/health-check/src/HealthCheck.vue.d.ts +9 -0
  165. package/dist/workloads/health-check/src/HealthCheck.vue.js +6 -6
  166. package/dist/workloads/health-check/src/HealthCheck.vue.mjs +6 -6
  167. package/dist/workloads/health-check/src/HealthCheckHandler.vue.js +3 -1
  168. package/dist/workloads/health-check/src/HealthCheckHandler.vue.mjs +3 -1
  169. package/dist/workloads/http-get-action/src/HttpGetAction.vue.js +1 -1
  170. package/dist/workloads/http-get-action/src/HttpGetAction.vue.mjs +1 -1
  171. package/dist/workloads/workload-annotations/props.d.ts +1 -0
  172. package/dist/workloads/workload-annotations/props.js +1 -0
  173. package/dist/workloads/workload-annotations/props.mjs +2 -1
  174. package/package.json +12 -13
  175. package/dist/components/gpu/src/GpuAdvancedForm.vue.d.ts +0 -131
  176. package/dist/components/gpu/src/GpuAdvancedForm.vue2.js +0 -92
  177. package/dist/components/gpu/src/GpuAdvancedForm.vue2.mjs +0 -76
  178. package/dist/components/gpu/src/GpuFormItem.vue.d.ts +0 -232
  179. package/dist/components/gpu/src/GpuFormItem.vue2.js +0 -235
  180. package/dist/components/gpu/src/GpuFormItem.vue2.mjs +0 -219
  181. package/dist/components/gpu/src/GpuResources.vue.js +0 -125
  182. package/dist/components/gpu/src/GpuResources.vue.mjs +0 -126
  183. package/dist/components/gpu/src/GpuResources.vue2.js +0 -197
  184. package/dist/components/gpu/src/GpuResources.vue2.mjs +0 -181
  185. package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.js +0 -19
  186. package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.mjs +0 -20
@@ -0,0 +1 @@
1
+ require("@dao-style/biz/dist/styles/components/gpu/assign-gpu-devices-list.css");
@@ -1,2 +1,3 @@
1
+ require("./assign-gpu-devices-list");
1
2
  require("./gpu-form-item");
2
3
  require("@dao-style/biz/dist/styles/components/gpu/gpu-form.css");
@@ -15,6 +15,7 @@ declare const DaoFormBlock: {
15
15
  addText: string;
16
16
  unremovableRow: (item: unknown) => boolean;
17
17
  formWidth: string;
18
+ isNested: boolean;
18
19
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
19
20
  modelValue: {
20
21
  type: import("vue").PropType<any[]>;
@@ -28,6 +29,10 @@ declare const DaoFormBlock: {
28
29
  type: import("vue").PropType<"solid" | "dashed">;
29
30
  default: string;
30
31
  };
32
+ isNested: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
31
36
  addText: {
32
37
  type: StringConstructor;
33
38
  default: undefined;
@@ -47,7 +52,7 @@ declare const DaoFormBlock: {
47
52
  }>> & {
48
53
  onAdd?: ((...args: any[]) => any) | undefined;
49
54
  onRemove?: ((...args: any[]) => any) | undefined;
50
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "readonly" | "type" | "addDisabled" | "addText" | "unremovableRow" | "formWidth">;
55
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "readonly" | "type" | "addDisabled" | "addText" | "unremovableRow" | "formWidth" | "isNested">;
51
56
  $attrs: {
52
57
  [x: string]: unknown;
53
58
  };
@@ -74,6 +79,10 @@ declare const DaoFormBlock: {
74
79
  type: import("vue").PropType<"solid" | "dashed">;
75
80
  default: string;
76
81
  };
82
+ isNested: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
77
86
  addText: {
78
87
  type: StringConstructor;
79
88
  default: undefined;
@@ -94,6 +103,8 @@ declare const DaoFormBlock: {
94
103
  onAdd?: ((...args: any[]) => any) | undefined;
95
104
  onRemove?: ((...args: any[]) => any) | undefined;
96
105
  }, {
106
+ addIcon: import("vue").ComputedRef<"icon-add" | "icon-add-in-circle">;
107
+ actualType: import("vue").ComputedRef<"solid" | "dashed">;
97
108
  classList: import("vue").ComputedRef<string[]>;
98
109
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "remove")[], string, {
99
110
  modelValue: any[];
@@ -103,6 +114,7 @@ declare const DaoFormBlock: {
103
114
  addText: string;
104
115
  unremovableRow: (item: unknown) => boolean;
105
116
  formWidth: string;
117
+ isNested: boolean;
106
118
  }, {}, string> & {
107
119
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
108
120
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -136,6 +148,10 @@ declare const DaoFormBlock: {
136
148
  type: import("vue").PropType<"solid" | "dashed">;
137
149
  default: string;
138
150
  };
151
+ isNested: {
152
+ type: BooleanConstructor;
153
+ default: boolean;
154
+ };
139
155
  addText: {
140
156
  type: StringConstructor;
141
157
  default: undefined;
@@ -156,6 +172,8 @@ declare const DaoFormBlock: {
156
172
  onAdd?: ((...args: any[]) => any) | undefined;
157
173
  onRemove?: ((...args: any[]) => any) | undefined;
158
174
  } & import("vue").ShallowUnwrapRef<{
175
+ addIcon: import("vue").ComputedRef<"icon-add" | "icon-add-in-circle">;
176
+ actualType: import("vue").ComputedRef<"solid" | "dashed">;
159
177
  classList: import("vue").ComputedRef<string[]>;
160
178
  }> & {} & import("vue").ComponentCustomProperties & {};
161
179
  __isFragment?: undefined;
@@ -174,6 +192,10 @@ declare const DaoFormBlock: {
174
192
  type: import("vue").PropType<"solid" | "dashed">;
175
193
  default: string;
176
194
  };
195
+ isNested: {
196
+ type: BooleanConstructor;
197
+ default: boolean;
198
+ };
177
199
  addText: {
178
200
  type: StringConstructor;
179
201
  default: undefined;
@@ -194,6 +216,8 @@ declare const DaoFormBlock: {
194
216
  onAdd?: ((...args: any[]) => any) | undefined;
195
217
  onRemove?: ((...args: any[]) => any) | undefined;
196
218
  }, {
219
+ addIcon: import("vue").ComputedRef<"icon-add" | "icon-add-in-circle">;
220
+ actualType: import("vue").ComputedRef<"solid" | "dashed">;
197
221
  classList: import("vue").ComputedRef<string[]>;
198
222
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "remove")[], "add" | "remove", {
199
223
  modelValue: any[];
@@ -203,6 +227,7 @@ declare const DaoFormBlock: {
203
227
  addText: string;
204
228
  unremovableRow: (item: unknown) => boolean;
205
229
  formWidth: string;
230
+ isNested: boolean;
206
231
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new <T_1>(props: {
207
232
  modelValue?: T_1[] | undefined;
208
233
  }) => {
@@ -212,6 +237,7 @@ declare const DaoFormBlock: {
212
237
  type: "solid" | "dashed";
213
238
  addDisabled: boolean;
214
239
  formWidth: string;
240
+ isNested: boolean;
215
241
  } & {
216
242
  addText?: string | undefined;
217
243
  unremovableRow?: ((item: unknown) => boolean) | undefined;
@@ -12,6 +12,10 @@ export declare const formBlockProps: {
12
12
  type: PropType<"solid" | "dashed">;
13
13
  default: string;
14
14
  };
15
+ isNested: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
15
19
  addText: {
16
20
  type: StringConstructor;
17
21
  default: undefined;
@@ -15,6 +15,10 @@ const formBlockProps = {
15
15
  type: String,
16
16
  default: "solid"
17
17
  },
18
+ isNested: {
19
+ type: Boolean,
20
+ default: false
21
+ },
18
22
  addText: {
19
23
  type: String,
20
24
  default: void 0
@@ -13,6 +13,10 @@ const formBlockProps = {
13
13
  type: String,
14
14
  default: "solid"
15
15
  },
16
+ isNested: {
17
+ type: Boolean,
18
+ default: false
19
+ },
16
20
  addText: {
17
21
  type: String,
18
22
  default: void 0
@@ -12,6 +12,10 @@ declare const _default: import("vue").DefineComponent<{
12
12
  type: import("vue").PropType<"solid" | "dashed">;
13
13
  default: string;
14
14
  };
15
+ isNested: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
15
19
  addText: {
16
20
  type: StringConstructor;
17
21
  default: undefined;
@@ -29,6 +33,8 @@ declare const _default: import("vue").DefineComponent<{
29
33
  default: boolean;
30
34
  };
31
35
  }, {
36
+ addIcon: import("vue").ComputedRef<"icon-add" | "icon-add-in-circle">;
37
+ actualType: import("vue").ComputedRef<"solid" | "dashed">;
32
38
  classList: import("vue").ComputedRef<string[]>;
33
39
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "remove")[], "add" | "remove", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
40
  modelValue: {
@@ -43,6 +49,10 @@ declare const _default: import("vue").DefineComponent<{
43
49
  type: import("vue").PropType<"solid" | "dashed">;
44
50
  default: string;
45
51
  };
52
+ isNested: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
46
56
  addText: {
47
57
  type: StringConstructor;
48
58
  default: undefined;
@@ -70,5 +80,6 @@ declare const _default: import("vue").DefineComponent<{
70
80
  addText: string;
71
81
  unremovableRow: (item: unknown) => boolean;
72
82
  formWidth: string;
83
+ isNested: boolean;
73
84
  }>;
74
85
  export default _default;
@@ -13,7 +13,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
13
13
  const _component_dao_text_button = vue.resolveComponent("dao-text-button");
14
14
  return vue.openBlock(), vue.createElementBlock("div", {
15
15
  class: vue.normalizeClass(_ctx.classList),
16
- style: vue.normalizeStyle({ "max-width": _ctx.type === "dashed" ? _ctx.formWidth : "" })
16
+ style: vue.normalizeStyle({ "max-width": _ctx.actualType === "dashed" ? _ctx.formWidth : "" })
17
17
  }, [
18
18
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.modelValue, (item, $index) => {
19
19
  var _a2;
@@ -23,7 +23,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
23
23
  }, [
24
24
  vue.createElementVNode("div", {
25
25
  class: "dao-form-block__item-inner",
26
- style: vue.normalizeStyle({ "max-width": _ctx.type === "solid" ? _ctx.formWidth : "" })
26
+ style: vue.normalizeStyle({ "max-width": _ctx.actualType === "solid" ? _ctx.formWidth : "" })
27
27
  }, [
28
28
  vue.renderSlot(_ctx.$slots, "default", {
29
29
  index: $index,
@@ -45,7 +45,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
45
45
  vue.createVNode(_component_dao_text_button, {
46
46
  prop: {
47
47
  type: "action",
48
- iconLeft: "icon-add-in-circle"
48
+ iconLeft: _ctx.addIcon
49
49
  },
50
50
  disabled: _ctx.addDisabled,
51
51
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("add"))
@@ -54,7 +54,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
54
54
  vue.createTextVNode(vue.toDisplayString(_ctx.addText ?? _ctx.$t("biz.components.FormBlock.add")), 1)
55
55
  ]),
56
56
  _: 1
57
- }, 8, ["disabled"])
57
+ }, 8, ["prop", "disabled"])
58
58
  ]) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, "-"))
59
59
  ])) : vue.createCommentVNode("", true)
60
60
  ], 6);
@@ -12,7 +12,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
12
12
  const _component_dao_text_button = resolveComponent("dao-text-button");
13
13
  return openBlock(), createElementBlock("div", {
14
14
  class: normalizeClass(_ctx.classList),
15
- style: normalizeStyle({ "max-width": _ctx.type === "dashed" ? _ctx.formWidth : "" })
15
+ style: normalizeStyle({ "max-width": _ctx.actualType === "dashed" ? _ctx.formWidth : "" })
16
16
  }, [
17
17
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.modelValue, (item, $index) => {
18
18
  var _a2;
@@ -22,7 +22,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
22
22
  }, [
23
23
  createElementVNode("div", {
24
24
  class: "dao-form-block__item-inner",
25
- style: normalizeStyle({ "max-width": _ctx.type === "solid" ? _ctx.formWidth : "" })
25
+ style: normalizeStyle({ "max-width": _ctx.actualType === "solid" ? _ctx.formWidth : "" })
26
26
  }, [
27
27
  renderSlot(_ctx.$slots, "default", {
28
28
  index: $index,
@@ -44,7 +44,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
44
44
  createVNode(_component_dao_text_button, {
45
45
  prop: {
46
46
  type: "action",
47
- iconLeft: "icon-add-in-circle"
47
+ iconLeft: _ctx.addIcon
48
48
  },
49
49
  disabled: _ctx.addDisabled,
50
50
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("add"))
@@ -53,7 +53,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
53
53
  createTextVNode(toDisplayString(_ctx.addText ?? _ctx.$t("biz.components.FormBlock.add")), 1)
54
54
  ]),
55
55
  _: 1
56
- }, 8, ["disabled"])
56
+ }, 8, ["prop", "disabled"])
57
57
  ]) : (openBlock(), createElementBlock("span", _hoisted_2, "-"))
58
58
  ])) : createCommentVNode("", true)
59
59
  ], 6);
@@ -7,18 +7,29 @@ const _sfc_main = vue.defineComponent({
7
7
  props: props.formBlockProps,
8
8
  emits: Object.keys(props.formBlockEmits),
9
9
  setup(props2) {
10
+ const actualType = vue.computed(() => {
11
+ var _a;
12
+ const type = props2.isNested ? "dashed" : props2.type;
13
+ if (!((_a = props2.modelValue) == null ? void 0 : _a.length) && type === "dashed") {
14
+ return "solid";
15
+ }
16
+ return type;
17
+ });
10
18
  const classList = vue.computed(() => {
11
19
  var _a;
12
20
  const classes = [
13
21
  "dao-form-block",
14
- `dao-form-block--${props2.type}`
22
+ `dao-form-block--${actualType.value}`
15
23
  ];
16
24
  if (!((_a = props2.modelValue) == null ? void 0 : _a.length)) {
17
25
  classes.push("dao-form-block--empty");
18
26
  }
19
27
  return classes;
20
28
  });
29
+ const addIcon = vue.computed(() => props2.isNested ? "icon-add-in-circle" : "icon-add");
21
30
  return {
31
+ addIcon,
32
+ actualType,
22
33
  classList
23
34
  };
24
35
  }
@@ -6,18 +6,29 @@ const _sfc_main = defineComponent({
6
6
  props: formBlockProps,
7
7
  emits: Object.keys(formBlockEmits),
8
8
  setup(props) {
9
+ const actualType = computed(() => {
10
+ var _a;
11
+ const type = props.isNested ? "dashed" : props.type;
12
+ if (!((_a = props.modelValue) == null ? void 0 : _a.length) && type === "dashed") {
13
+ return "solid";
14
+ }
15
+ return type;
16
+ });
9
17
  const classList = computed(() => {
10
18
  var _a;
11
19
  const classes = [
12
20
  "dao-form-block",
13
- `dao-form-block--${props.type}`
21
+ `dao-form-block--${actualType.value}`
14
22
  ];
15
23
  if (!((_a = props.modelValue) == null ? void 0 : _a.length)) {
16
24
  classes.push("dao-form-block--empty");
17
25
  }
18
26
  return classes;
19
27
  });
28
+ const addIcon = computed(() => props.isNested ? "icon-add-in-circle" : "icon-add");
20
29
  return {
30
+ addIcon,
31
+ actualType,
21
32
  classList
22
33
  };
23
34
  }
@@ -1,15 +1,16 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { VueI18nLike } from '@dao-style/extend';
3
- import { GPUResourceSetting, GPUSetting, GPUSummary, GpuQuota, GpuQuotaItem, VgpuSchedulePolicy } from './types';
3
+ import { GPUResourceSetting, GPUSetting, GPUSummary, GpuQuota, GpuQuotaItem, GpuUsage, VgpuSchedulePolicy } from './types';
4
4
  export declare const nvidiaVgpuKey = "nvidia-vgpu";
5
5
  export declare const nvidiaGpuKey = "nvidia-gpu";
6
6
  export declare const nvidiaVgpuCoreResource = "nvidia.com/vgpu";
7
- export declare const getNvidiaVgpuResOrder: (i18n: VueI18nLike) => Map<string, string>;
7
+ export declare const hamiResOrder: string[];
8
8
  export declare const getPriorityOpts: (i18n: VueI18nLike) => {
9
9
  label: string;
10
10
  value: string;
11
11
  }[];
12
12
  export declare const NividaVgpuModelAnnoKey = "nvidia.com/use-gputype";
13
+ export declare const NividaVgpuDevicesAnnoKey = "nvidia.com/use-gpuuuid";
13
14
  export declare const NividaVgpuGpuScheduleAnnoKey = "hami.io/gpu-scheduler-policy";
14
15
  export declare const NividaVgpuNodeScheduleAnnoKey = "hami.io/node-scheduler-policy";
15
16
  export declare const nvidiaMIGKey = "nvidia-mig";
@@ -29,6 +30,29 @@ declare const defaultClusterGPUSummary: {
29
30
  refresh: () => Promise<GPUSummary[]> | GPUSummary[];
30
31
  };
31
32
  export type GpuModels = typeof defaultClusterGPUSummary;
33
+ export interface GpuDevice {
34
+ deviceUUID?: string;
35
+ modelName?: string;
36
+ nodeName?: string;
37
+ allocatedFrameBufferMemory?: string;
38
+ allocatableFrameBufferMemory?: string;
39
+ /** 已分配的 HAMi GPU core 调度份额,100 表示一张卡的基准容量。 */
40
+ allocatedCore?: string;
41
+ /** HAMi GPU core 总可分配份额,启用超配时可大于 100。 */
42
+ allocatableCore?: string;
43
+ [propName: string]: unknown;
44
+ }
45
+ export type DevicesListSearchFilter = {
46
+ searchDeviceUUID?: string[];
47
+ searchNodeName?: string[];
48
+ searchGPUModel?: string[];
49
+ };
50
+ export type GpuDevicesAdaptor = {
51
+ data: GpuDevice[];
52
+ loading: boolean;
53
+ refresh: () => Promise<GpuDevice[]> | GpuDevice[];
54
+ search?: (params: DevicesListSearchFilter) => Promise<GpuDevice[]> | GpuDevice[];
55
+ };
32
56
  export declare const gpuFormProps: {
33
57
  gpuSettingsAdaptor: {
34
58
  type: PropType<GPUSettings>;
@@ -42,10 +66,18 @@ export declare const gpuFormProps: {
42
66
  }>;
43
67
  default: undefined;
44
68
  };
69
+ nvidiaVgpuDevicesAdaptor: {
70
+ type: PropType<GpuDevicesAdaptor>;
71
+ default: undefined;
72
+ };
45
73
  targetType: {
46
74
  type: StringConstructor;
47
75
  default: string;
48
76
  };
77
+ gpuUsage: {
78
+ type: PropType<GpuUsage>;
79
+ default: string;
80
+ };
49
81
  enableRemoteCall: {
50
82
  type: BooleanConstructor;
51
83
  default: boolean;
@@ -62,6 +94,18 @@ export declare const gpuFormProps: {
62
94
  type: StringConstructor;
63
95
  default: undefined;
64
96
  };
97
+ enableNvidiaVgpuDevices: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ assignGpuDisabled: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ nvidiaVgpuDevices: {
106
+ type: PropType<string[]>;
107
+ default: () => never[];
108
+ };
65
109
  enableNvidiaVgpuPriority: {
66
110
  type: BooleanConstructor;
67
111
  default: boolean;
@@ -97,6 +141,10 @@ export declare const gpuFormProps: {
97
141
  type: StringConstructor;
98
142
  default: undefined;
99
143
  };
144
+ availableQuotaLink: {
145
+ type: StringConstructor;
146
+ default: undefined;
147
+ };
100
148
  usedQuota: {
101
149
  type: PropType<GpuQuota>;
102
150
  default: undefined;
@@ -131,6 +179,10 @@ export declare const gpuResourceItemProps: {
131
179
  type: PropType<GPUResourceSetting[]>;
132
180
  required: boolean;
133
181
  };
182
+ gpuProvider: {
183
+ type: StringConstructor;
184
+ default: string;
185
+ };
134
186
  enableRangeValidate: {
135
187
  type: BooleanConstructor;
136
188
  default: boolean;
@@ -143,6 +195,10 @@ export declare const gpuResourceItemProps: {
143
195
  type: PropType<GpuQuotaItem>;
144
196
  default: undefined;
145
197
  };
198
+ gpuUsage: {
199
+ type: PropType<GpuUsage>;
200
+ default: string;
201
+ };
146
202
  };
147
203
  export declare const gpuAdvancedFormProps: {
148
204
  quota: {
@@ -156,6 +212,14 @@ export declare const gpuAdvancedFormProps: {
156
212
  type: BooleanConstructor;
157
213
  default: boolean;
158
214
  };
215
+ enableNvidiaVgpuDevices: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ };
219
+ assignGpuDisabled: {
220
+ type: BooleanConstructor;
221
+ default: boolean;
222
+ };
159
223
  enableNvidiaVgpuPriority: {
160
224
  type: BooleanConstructor;
161
225
  default: boolean;
@@ -172,10 +236,18 @@ export declare const gpuAdvancedFormProps: {
172
236
  type: PropType<string[]>;
173
237
  required: boolean;
174
238
  };
239
+ nvidiaVgpuDevicesAdaptor: {
240
+ type: PropType<GpuDevicesAdaptor>;
241
+ default: undefined;
242
+ };
175
243
  isSide: {
176
244
  type: BooleanConstructor;
177
245
  default: boolean;
178
246
  };
247
+ openNvidiaAssignGpu: {
248
+ type: BooleanConstructor;
249
+ default: boolean;
250
+ };
179
251
  openNvidiaVgpuModel: {
180
252
  type: BooleanConstructor;
181
253
  default: boolean;
@@ -184,7 +256,7 @@ export declare const gpuAdvancedFormProps: {
184
256
  type: BooleanConstructor;
185
257
  default: boolean;
186
258
  };
187
- openNvidiaVgpuScheulePolicy: {
259
+ openNvidiaVgpuSchedulePolicy: {
188
260
  type: BooleanConstructor;
189
261
  default: boolean;
190
262
  };
@@ -202,10 +274,18 @@ export declare const gpuFormItemProps: {
202
274
  }>;
203
275
  default: undefined;
204
276
  };
277
+ nvidiaVgpuDevicesAdaptor: {
278
+ type: PropType<GpuDevicesAdaptor>;
279
+ default: undefined;
280
+ };
205
281
  targetType: {
206
282
  type: StringConstructor;
207
283
  default: string;
208
284
  };
285
+ gpuUsage: {
286
+ type: PropType<GpuUsage>;
287
+ default: string;
288
+ };
209
289
  enableRemoteCall: {
210
290
  type: BooleanConstructor;
211
291
  default: boolean;
@@ -222,6 +302,18 @@ export declare const gpuFormItemProps: {
222
302
  type: StringConstructor;
223
303
  default: undefined;
224
304
  };
305
+ enableNvidiaVgpuDevices: {
306
+ type: BooleanConstructor;
307
+ default: boolean;
308
+ };
309
+ assignGpuDisabled: {
310
+ type: BooleanConstructor;
311
+ default: boolean;
312
+ };
313
+ nvidiaVgpuDevices: {
314
+ type: PropType<string[]>;
315
+ default: () => never[];
316
+ };
225
317
  enableNvidiaVgpuPriority: {
226
318
  type: BooleanConstructor;
227
319
  default: boolean;
@@ -254,6 +346,10 @@ export declare const gpuFormItemProps: {
254
346
  type: BooleanConstructor;
255
347
  default: boolean;
256
348
  };
349
+ gpuProvider: {
350
+ type: StringConstructor;
351
+ default: string;
352
+ };
257
353
  availableQuotaItem: {
258
354
  type: PropType<GpuQuotaItem>;
259
355
  default: undefined;
@@ -278,6 +374,10 @@ export declare const gpuFormItemProps: {
278
374
  type: PropType<(type: string) => GPUResourceSetting[]>;
279
375
  required: boolean;
280
376
  };
377
+ nvidiaGpuDevices: {
378
+ type: PropType<GpuDevice[]>;
379
+ default: () => never[];
380
+ };
281
381
  };
282
382
  export declare const dynamicGpuFormItemProps: {
283
383
  quotaItem: {
@@ -310,4 +410,22 @@ export declare const dynamicGpuFormItemProps: {
310
410
  default: boolean;
311
411
  };
312
412
  };
413
+ export declare const assignGpuDevicesListProps: {
414
+ modelValue: {
415
+ type: PropType<string[]>;
416
+ default: () => never[];
417
+ };
418
+ disabled: {
419
+ type: BooleanConstructor;
420
+ default: boolean;
421
+ };
422
+ id: {
423
+ type: StringConstructor;
424
+ default: string;
425
+ };
426
+ nvidiaVgpuDevicesAdaptor: {
427
+ type: PropType<GpuDevicesAdaptor>;
428
+ default: undefined;
429
+ };
430
+ };
313
431
  export {};