@dao-style/biz 0.1.0 → 0.2.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.
- package/dist/cjs/components/cloud-shell/style/cloud-shell-group.js +2 -0
- package/dist/cjs/components/cloud-shell/style/cloud-shell.js +1 -0
- package/dist/cjs/components/iframe/style/iframe.js +1 -0
- package/dist/cjs/components/parameter-list/style/parameter-list.js +1 -0
- package/dist/cjs/components/parameter-template-list/style/parameter-template-list.js +1 -0
- package/dist/cjs/dialogs/delete-backup-dialog/style/delete-backup-dialog.js +1 -0
- package/dist/cjs/forms/backup-restore/style/backup-restore.js +2 -0
- package/dist/cjs/forms/import-parameter-template/style/import-parameter-template.js +2 -0
- package/dist/cjs/workloads/container-basic-info/style/container-basic-info.js +1 -0
- package/dist/cjs/workloads/containers/style/containers.js +1 -0
- package/dist/cjs/workloads/workload-logs/style/workload-logs.js +3 -0
- package/dist/components/access-type/src/AccessType.vue.d.ts +1 -1
- package/dist/components/array-editor/props.d.ts +5 -3
- package/dist/components/array-editor/props.js +5 -2
- package/dist/components/array-editor/props.mjs +5 -2
- package/dist/components/array-editor/src/ArrayEditor.vue.d.ts +13 -5
- package/dist/components/array-editor/src/ArrayEditor.vue.js +13 -1
- package/dist/components/array-editor/src/ArrayEditor.vue.mjs +14 -2
- package/dist/components/array-editor/src/ArrayEditor.vue2.js +18 -5
- package/dist/components/array-editor/src/ArrayEditor.vue2.mjs +18 -5
- package/dist/components/cloud-shell/index.d.ts +4 -0
- package/dist/components/cloud-shell/props.d.ts +39 -0
- package/dist/components/cloud-shell/props.js +42 -0
- package/dist/components/cloud-shell/props.mjs +42 -0
- package/dist/components/cloud-shell/src/CloudShell.vue.d.ts +37 -0
- package/dist/components/cloud-shell/src/CloudShell.vue.js +14 -0
- package/dist/components/cloud-shell/src/CloudShell.vue.mjs +15 -0
- package/dist/components/cloud-shell/src/CloudShell.vue2.js +61 -0
- package/dist/components/cloud-shell/src/CloudShell.vue2.mjs +62 -0
- package/dist/components/cloud-shell/src/CloudShellGroup.vue.d.ts +59 -0
- package/dist/components/cloud-shell/src/CloudShellGroup.vue.js +91 -0
- package/dist/components/cloud-shell/src/CloudShellGroup.vue.mjs +92 -0
- package/dist/components/cloud-shell/src/CloudShellGroup.vue2.js +104 -0
- package/dist/components/cloud-shell/src/CloudShellGroup.vue2.mjs +105 -0
- package/dist/components/cloud-shell/style/cloud-shell-group.d.ts +2 -0
- package/dist/components/cloud-shell/style/cloud-shell-group.scss.js +3 -0
- package/dist/components/cloud-shell/style/cloud-shell-group.scss.mjs +4 -0
- package/dist/components/cloud-shell/style/cloud-shell.d.ts +1 -0
- package/dist/components/cloud-shell/types.d.ts +33 -0
- package/dist/components/gpu/demo/gpu-settings.d.ts +3 -0
- package/dist/components/gpu/props.d.ts +47 -1
- package/dist/components/gpu/props.js +36 -0
- package/dist/components/gpu/props.mjs +36 -0
- package/dist/components/gpu/src/GpuAdvancedForm.vue.d.ts +31 -1
- package/dist/components/gpu/src/GpuAdvancedForm.vue.js +63 -5
- package/dist/components/gpu/src/GpuAdvancedForm.vue.mjs +63 -5
- package/dist/components/gpu/src/GpuAdvancedForm.vue2.js +32 -1
- package/dist/components/gpu/src/GpuAdvancedForm.vue2.mjs +34 -3
- package/dist/components/gpu/src/GpuForm.vue.d.ts +109 -3
- package/dist/components/gpu/src/GpuForm.vue.js +3 -0
- package/dist/components/gpu/src/GpuForm.vue.mjs +4 -1
- package/dist/components/gpu/src/GpuForm.vue2.js +59 -4
- package/dist/components/gpu/src/GpuForm.vue2.mjs +60 -5
- package/dist/components/gpu/src/GpuFormItem.vue.d.ts +38 -0
- package/dist/components/gpu/src/GpuFormItem.vue.js +8 -4
- package/dist/components/gpu/src/GpuFormItem.vue.mjs +8 -4
- package/dist/components/gpu/src/GpuFormItem.vue2.js +33 -0
- package/dist/components/gpu/src/GpuFormItem.vue2.mjs +34 -1
- package/dist/components/gpu/src/GpuFormMigItem.vue.d.ts +17 -0
- package/dist/components/gpu/src/GpuFormMigItem.vue.js +25 -2
- package/dist/components/gpu/src/GpuFormMigItem.vue.mjs +26 -3
- package/dist/components/gpu/src/GpuFormMigItem.vue2.js +25 -5
- package/dist/components/gpu/src/GpuFormMigItem.vue2.mjs +25 -5
- package/dist/components/gpu/src/GpuResources.vue.js +8 -5
- package/dist/components/gpu/src/GpuResources.vue.mjs +9 -6
- package/dist/components/gpu/src/useGPUOptions.js +3 -0
- package/dist/components/gpu/src/useGPUOptions.mjs +4 -1
- package/dist/components/gpu/types.d.ts +5 -0
- package/dist/components/gpu/types.js +4 -0
- package/dist/components/gpu/types.mjs +4 -0
- package/dist/components/iframe/index.d.ts +2 -0
- package/dist/components/iframe/props.d.ts +26 -0
- package/dist/components/iframe/props.js +27 -0
- package/dist/components/iframe/props.mjs +27 -0
- package/dist/components/iframe/src/Iframe.vue.d.ts +52 -0
- package/dist/components/iframe/src/Iframe.vue.js +34 -0
- package/dist/components/iframe/src/Iframe.vue.mjs +35 -0
- package/dist/components/iframe/src/Iframe.vue2.js +58 -0
- package/dist/components/iframe/src/Iframe.vue2.mjs +59 -0
- package/dist/components/iframe/style/iframe.d.ts +1 -0
- package/dist/components/iframe/style/iframe.scss.js +3 -0
- package/dist/components/iframe/style/iframe.scss.mjs +4 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/instance-cluster/src/InstanceCluster.vue.d.ts +3 -3
- package/dist/components/instance-cluster/src/InstanceCluster.vue.js +2 -2
- package/dist/components/instance-cluster/src/InstanceCluster.vue.mjs +2 -2
- package/dist/components/instance-description/src/InstanceDescription.vue.d.ts +2 -2
- package/dist/components/instance-installation-env/src/InstanceInstallationEnv.vue.js +4 -3
- package/dist/components/instance-installation-env/src/InstanceInstallationEnv.vue.mjs +4 -3
- package/dist/components/instance-monitor-interval/src/InstanceMonitorInterval.vue.d.ts +2 -2
- package/dist/components/instance-name/src/InstanceName.vue.d.ts +2 -2
- package/dist/components/instance-name/src/InstanceName.vue.js +2 -2
- package/dist/components/instance-name/src/InstanceName.vue.mjs +2 -2
- package/dist/components/instance-namespace/src/InstanceNamespace.vue.d.ts +3 -3
- package/dist/components/instance-namespace/src/InstanceNamespace.vue.js +2 -2
- package/dist/components/instance-namespace/src/InstanceNamespace.vue.mjs +2 -2
- package/dist/components/instance-password/src/InstancePassword.vue.d.ts +2 -2
- package/dist/components/instance-password/src/PasswordValid.vue.d.ts +1 -1
- package/dist/components/instance-storage-capacity/src/InstanceStorageCapacity.vue.d.ts +2 -2
- package/dist/components/instance-storage-class/src/InstanceStorageClass.vue.d.ts +3 -3
- package/dist/components/instance-username/src/InstanceUsername.vue.d.ts +2 -2
- package/dist/components/match-expressions-editor/props.d.ts +6 -2
- package/dist/components/match-expressions-editor/props.js +4 -0
- package/dist/components/match-expressions-editor/props.mjs +4 -0
- package/dist/components/match-expressions-editor/src/MatchExpressionsEditor.vue.d.ts +12 -1
- package/dist/components/match-expressions-editor/src/MatchExpressionsEditor.vue.js +7 -5
- package/dist/components/match-expressions-editor/src/MatchExpressionsEditor.vue.mjs +8 -6
- package/dist/components/match-expressions-editor/src/MatchExpressionsEditor.vue2.js +91 -33
- package/dist/components/match-expressions-editor/src/MatchExpressionsEditor.vue2.mjs +93 -35
- package/dist/components/node-affinity/src/NodeAffinity.vue.d.ts +1 -1
- package/dist/components/node-affinity/src/NodeAffinity.vue2.js +7 -1
- package/dist/components/node-affinity/src/NodeAffinity.vue2.mjs +7 -1
- package/dist/components/object-editor/props.d.ts +9 -0
- package/dist/components/object-editor/props.js +8 -0
- package/dist/components/object-editor/props.mjs +8 -0
- package/dist/components/object-editor/src/ObjectEditor.vue.d.ts +18 -0
- package/dist/components/object-editor/src/ObjectPoolEditor.vue.d.ts +30 -4
- package/dist/components/object-editor/src/ObjectPoolEditor.vue.js +33 -19
- package/dist/components/object-editor/src/ObjectPoolEditor.vue.mjs +34 -20
- package/dist/components/object-editor/src/ObjectPoolEditor.vue2.js +48 -18
- package/dist/components/object-editor/src/ObjectPoolEditor.vue2.mjs +49 -19
- package/dist/components/object-editor/src/ObjectSimpleEditor.vue.d.ts +18 -0
- package/dist/components/object-editor/src/ObjectSimpleEditor.vue.js +3 -1
- package/dist/components/object-editor/src/ObjectSimpleEditor.vue.mjs +3 -1
- package/dist/components/object-editor/src/ObjectSimpleEditor.vue2.js +4 -1
- package/dist/components/object-editor/src/ObjectSimpleEditor.vue2.mjs +4 -1
- package/dist/components/parameter-configuration/src/ParameterConfiguration.vue.d.ts +2 -2
- package/dist/components/parameter-list/index.d.ts +2 -0
- package/dist/components/parameter-list/props.d.ts +32 -0
- package/dist/components/parameter-list/props.js +33 -0
- package/dist/components/parameter-list/props.mjs +33 -0
- package/dist/components/parameter-list/src/ParameterList.vue.d.ts +73 -0
- package/dist/components/parameter-list/src/ParameterList.vue.js +99 -0
- package/dist/components/parameter-list/src/ParameterList.vue.mjs +100 -0
- package/dist/components/parameter-list/src/ParameterList.vue2.js +91 -0
- package/dist/components/parameter-list/src/ParameterList.vue2.mjs +92 -0
- package/dist/components/parameter-list/style/parameter-list.d.ts +1 -0
- package/dist/components/parameter-list/style/parameter-list.scss.js +3 -0
- package/dist/components/parameter-list/style/parameter-list.scss.mjs +4 -0
- package/dist/components/parameter-template-list/index.d.ts +2 -0
- package/dist/components/parameter-template-list/props.d.ts +28 -0
- package/dist/components/parameter-template-list/props.js +23 -0
- package/dist/components/parameter-template-list/props.mjs +23 -0
- package/dist/components/parameter-template-list/src/ParameterTemplateList.vue.d.ts +51 -0
- package/dist/components/parameter-template-list/src/ParameterTemplateList.vue.js +116 -0
- package/dist/components/parameter-template-list/src/ParameterTemplateList.vue.mjs +117 -0
- package/dist/components/parameter-template-list/src/ParameterTemplateList.vue2.js +46 -0
- package/dist/components/parameter-template-list/src/ParameterTemplateList.vue2.mjs +47 -0
- package/dist/components/parameter-template-list/style/parameter-template-list.d.ts +1 -0
- package/dist/components/parameter-template-list/style/parameter-template-list.scss.js +3 -0
- package/dist/components/parameter-template-list/style/parameter-template-list.scss.mjs +4 -0
- package/dist/components/pod-affinity/src/PodAffinity.vue.d.ts +1 -1
- package/dist/components/pod-affinity/src/PodAffinity.vue2.js +7 -1
- package/dist/components/pod-affinity/src/PodAffinity.vue2.mjs +7 -1
- package/dist/components/resource-config/props.d.ts +11 -0
- package/dist/components/resource-config/props.js +13 -0
- package/dist/components/resource-config/props.mjs +13 -0
- package/dist/components/resource-config/src/ResourceConfig.vue.d.ts +24 -2
- package/dist/components/resource-config/src/ResourceConfig.vue.js +6 -4
- package/dist/components/resource-config/src/ResourceConfig.vue.mjs +6 -4
- package/dist/components/resource-config/src/ResourceConfig.vue2.js +8 -1
- package/dist/components/resource-config/src/ResourceConfig.vue2.mjs +10 -3
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/workload-props.d.ts +9 -0
- package/dist/constants/workload-props.js +11 -0
- package/dist/constants/workload-props.mjs +11 -0
- package/dist/dialogs/delete-backup-dialog/index.d.ts +2 -0
- package/dist/dialogs/delete-backup-dialog/props.d.ts +20 -0
- package/dist/dialogs/delete-backup-dialog/props.js +24 -0
- package/dist/dialogs/delete-backup-dialog/props.mjs +24 -0
- package/dist/dialogs/delete-backup-dialog/src/DeleteBackupDialog.vue.d.ts +44 -0
- package/dist/dialogs/delete-backup-dialog/src/DeleteBackupDialog.vue.js +61 -0
- package/dist/dialogs/delete-backup-dialog/src/DeleteBackupDialog.vue.mjs +62 -0
- package/dist/dialogs/delete-backup-dialog/src/DeleteBackupDialog.vue2.js +50 -0
- package/dist/dialogs/delete-backup-dialog/src/DeleteBackupDialog.vue2.mjs +51 -0
- package/dist/dialogs/delete-backup-dialog/style/delete-backup-dialog.d.ts +1 -0
- package/dist/dialogs/delete-backup-dialog/style/delete-backup-dialog.scss.js +3 -0
- package/dist/dialogs/delete-backup-dialog/style/delete-backup-dialog.scss.mjs +4 -0
- package/dist/dialogs/index.d.ts +1 -0
- package/dist/dialogs/select-labels-dialog/SelectLabelsDialog.vue.d.ts +1 -1
- package/dist/dialogs/switch-workspace-dialog/src/SwitchWorkspaceDialog.vue.d.ts +1 -1
- package/dist/es/components/cloud-shell/style/cloud-shell-group.mjs +2 -0
- package/dist/es/components/cloud-shell/style/cloud-shell.mjs +1 -0
- package/dist/es/components/iframe/style/iframe.mjs +1 -0
- package/dist/es/components/parameter-list/style/parameter-list.mjs +1 -0
- package/dist/es/components/parameter-template-list/style/parameter-template-list.mjs +1 -0
- package/dist/es/dialogs/delete-backup-dialog/style/delete-backup-dialog.mjs +1 -0
- package/dist/es/forms/backup-restore/style/backup-restore.mjs +2 -0
- package/dist/es/forms/import-parameter-template/style/import-parameter-template.mjs +2 -0
- package/dist/es/workloads/container-basic-info/style/container-basic-info.mjs +1 -0
- package/dist/es/workloads/containers/style/containers.mjs +1 -0
- package/dist/es/workloads/workload-logs/style/workload-logs.mjs +3 -0
- package/dist/forms/backup-restore/index.d.ts +2 -0
- package/dist/forms/backup-restore/props.d.ts +115 -0
- package/dist/forms/backup-restore/props.js +97 -0
- package/dist/forms/backup-restore/props.mjs +97 -0
- package/dist/forms/backup-restore/src/BackupRestore.vue.d.ts +283 -0
- package/dist/forms/backup-restore/src/BackupRestore.vue.js +168 -0
- package/dist/forms/backup-restore/src/BackupRestore.vue.mjs +169 -0
- package/dist/forms/backup-restore/src/BackupRestore.vue2.js +155 -0
- package/dist/forms/backup-restore/src/BackupRestore.vue2.mjs +156 -0
- package/dist/forms/backup-restore/src/ConfirmRestoreDialog.vue.d.ts +17 -0
- package/dist/forms/backup-restore/src/ConfirmRestoreDialog.vue.js +29 -0
- package/dist/forms/backup-restore/src/ConfirmRestoreDialog.vue.mjs +30 -0
- package/dist/forms/backup-restore/src/ConfirmRestoreDialog.vue2.js +13 -0
- package/dist/forms/backup-restore/src/ConfirmRestoreDialog.vue2.mjs +14 -0
- package/dist/forms/backup-restore/style/backup-restore.d.ts +2 -0
- package/dist/forms/backup-restore/style/backup-restore.scss.js +3 -0
- package/dist/forms/backup-restore/style/backup-restore.scss.mjs +4 -0
- package/dist/forms/import-parameter-template/index.d.ts +2 -0
- package/dist/forms/import-parameter-template/props.d.ts +83 -0
- package/dist/forms/import-parameter-template/props.js +37 -0
- package/dist/forms/import-parameter-template/props.mjs +37 -0
- package/dist/forms/import-parameter-template/src/ImportParameterTemplate.vue.d.ts +226 -0
- package/dist/forms/import-parameter-template/src/ImportParameterTemplate.vue.js +111 -0
- package/dist/forms/import-parameter-template/src/ImportParameterTemplate.vue.mjs +112 -0
- package/dist/forms/import-parameter-template/src/ImportParameterTemplate.vue2.js +51 -0
- package/dist/forms/import-parameter-template/src/ImportParameterTemplate.vue2.mjs +52 -0
- package/dist/forms/import-parameter-template/style/import-parameter-template.d.ts +2 -0
- package/dist/forms/import-parameter-template/style/import-parameter-template.scss.js +3 -0
- package/dist/forms/import-parameter-template/style/import-parameter-template.scss.mjs +4 -0
- package/dist/forms/index.d.ts +2 -0
- package/dist/group-mapping.json +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +236 -168
- package/dist/index.mjs +184 -116
- package/dist/locales/en-US/common.json.js +13 -2
- package/dist/locales/en-US/common.json.mjs +14 -3
- package/dist/locales/en-US/components/ArrayEditor.json.js +11 -0
- package/dist/locales/en-US/components/ArrayEditor.json.mjs +11 -0
- package/dist/locales/en-US/components/CloudShellGroup.json.js +20 -0
- package/dist/locales/en-US/components/CloudShellGroup.json.mjs +20 -0
- package/dist/locales/en-US/components/Gpu.json.js +18 -1
- package/dist/locales/en-US/components/Gpu.json.mjs +18 -1
- package/dist/locales/en-US/components/MatchExpressionsEditor.json.js +6 -3
- package/dist/locales/en-US/components/MatchExpressionsEditor.json.mjs +6 -3
- package/dist/locales/en-US/components/ParameterList.json.js +27 -0
- package/dist/locales/en-US/components/ParameterList.json.mjs +27 -0
- package/dist/locales/en-US/components/ParameterTemplateList.json.js +29 -0
- package/dist/locales/en-US/components/ParameterTemplateList.json.mjs +29 -0
- package/dist/locales/en-US/dialogs/DeleteBackupDialog.json.js +22 -0
- package/dist/locales/en-US/dialogs/DeleteBackupDialog.json.mjs +22 -0
- package/dist/locales/en-US/forms/BackupRestore.json.js +55 -0
- package/dist/locales/en-US/forms/BackupRestore.json.mjs +55 -0
- package/dist/locales/en-US/forms/ImportParameterTemplate.json.js +29 -0
- package/dist/locales/en-US/forms/ImportParameterTemplate.json.mjs +29 -0
- package/dist/locales/en-US/index.js +18 -0
- package/dist/locales/en-US/index.mjs +18 -0
- package/dist/locales/en-US/workloads/ContainerBasicInfo.json.js +4 -1
- package/dist/locales/en-US/workloads/ContainerBasicInfo.json.mjs +4 -1
- package/dist/locales/en-US/workloads/ContainerCustomResource.json.js +17 -0
- package/dist/locales/en-US/workloads/ContainerCustomResource.json.mjs +17 -0
- package/dist/locales/en-US/workloads/ContainerStorage.json.js +14 -2
- package/dist/locales/en-US/workloads/ContainerStorage.json.mjs +14 -2
- package/dist/locales/en-US/workloads/Containers.json.js +1 -1
- package/dist/locales/en-US/workloads/Containers.json.mjs +1 -1
- package/dist/locales/en-US/workloads/WorkloadLogs.json.js +37 -0
- package/dist/locales/en-US/workloads/WorkloadLogs.json.mjs +37 -0
- package/dist/locales/zh-CN/common.json.js +13 -2
- package/dist/locales/zh-CN/common.json.mjs +14 -3
- package/dist/locales/zh-CN/components/ArrayEditor.json.js +11 -0
- package/dist/locales/zh-CN/components/ArrayEditor.json.mjs +11 -0
- package/dist/locales/zh-CN/components/CloudShellGroup.json.js +20 -0
- package/dist/locales/zh-CN/components/CloudShellGroup.json.mjs +20 -0
- package/dist/locales/zh-CN/components/Gpu.json.js +17 -0
- package/dist/locales/zh-CN/components/Gpu.json.mjs +17 -0
- package/dist/locales/zh-CN/components/MatchExpressionsEditor.json.js +6 -3
- package/dist/locales/zh-CN/components/MatchExpressionsEditor.json.mjs +6 -3
- package/dist/locales/zh-CN/components/ParameterList.json.js +27 -0
- package/dist/locales/zh-CN/components/ParameterList.json.mjs +27 -0
- package/dist/locales/zh-CN/components/ParameterTemplateList.json.js +29 -0
- package/dist/locales/zh-CN/components/ParameterTemplateList.json.mjs +29 -0
- package/dist/locales/zh-CN/dialogs/DeleteBackupDialog.json.js +22 -0
- package/dist/locales/zh-CN/dialogs/DeleteBackupDialog.json.mjs +22 -0
- package/dist/locales/zh-CN/forms/BackupRestore.json.js +55 -0
- package/dist/locales/zh-CN/forms/BackupRestore.json.mjs +55 -0
- package/dist/locales/zh-CN/forms/ImportParameterTemplate.json.js +29 -0
- package/dist/locales/zh-CN/forms/ImportParameterTemplate.json.mjs +29 -0
- package/dist/locales/zh-CN/index.js +18 -0
- package/dist/locales/zh-CN/index.mjs +18 -0
- package/dist/locales/zh-CN/workloads/ContainerBasicInfo.json.js +4 -1
- package/dist/locales/zh-CN/workloads/ContainerBasicInfo.json.mjs +4 -1
- package/dist/locales/zh-CN/workloads/ContainerCustomResource.json.js +17 -0
- package/dist/locales/zh-CN/workloads/ContainerCustomResource.json.mjs +17 -0
- package/dist/locales/zh-CN/workloads/ContainerStorage.json.js +15 -3
- package/dist/locales/zh-CN/workloads/ContainerStorage.json.mjs +15 -3
- package/dist/locales/zh-CN/workloads/Containers.json.js +1 -1
- package/dist/locales/zh-CN/workloads/Containers.json.mjs +1 -1
- package/dist/locales/zh-CN/workloads/WorkloadLogs.json.js +40 -0
- package/dist/locales/zh-CN/workloads/WorkloadLogs.json.mjs +40 -0
- package/dist/node_modules/@vueuse/core/index.js +1 -0
- package/dist/node_modules/@vueuse/core/index.mjs +2 -1
- package/dist/node_modules/@vueuse/shared/index.js +5 -0
- package/dist/node_modules/@vueuse/shared/index.mjs +6 -1
- package/dist/style.css +516 -201
- package/dist/styles/components/cloud-shell/cloud-shell-group.css +102 -0
- package/dist/styles/components/gpu/gpu-form-item.css +14 -0
- package/dist/styles/components/iframe/iframe.css +19 -0
- package/dist/styles/components/parameter-list/parameter-list.css +6 -0
- package/dist/styles/components/parameter-template-list/parameter-template-list.css +16 -0
- package/dist/styles/dialogs/delete-backup-dialog/delete-backup-dialog.css +11 -0
- package/dist/styles/forms/backup-restore/backup-restore.css +12 -0
- package/dist/styles/forms/import-parameter-template/import-parameter-template.css +13 -0
- package/dist/styles/workloads/container-basic-info/container-basic-info.css +4 -0
- package/dist/styles/workloads/container-storage/pvc-node-path.css +3 -0
- package/dist/styles/workloads/containers/ConfirmDialog.css +5 -0
- package/dist/styles/workloads/workload-logs/insight-message.css +3 -0
- package/dist/styles/workloads/workload-logs/workload-logs.css +118 -0
- package/dist/uses/useWorkspaceSwitch/index.js +6 -5
- package/dist/uses/useWorkspaceSwitch/index.mjs +6 -5
- package/dist/utils/abortableFetchWrapper.d.ts +17 -0
- package/dist/utils/abortableFetchWrapper.js +69 -0
- package/dist/utils/abortableFetchWrapper.mjs +69 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/sleep.d.ts +1 -0
- package/dist/utils/sleep.js +8 -0
- package/dist/utils/sleep.mjs +8 -0
- package/dist/workloads/container-basic-info/props.d.ts +3 -1
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.d.ts +37 -2
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.js +31 -8
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.mjs +31 -8
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue2.js +207 -41
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue2.mjs +205 -39
- package/dist/workloads/container-basic-info/style/container-basic-info.d.ts +1 -0
- package/dist/workloads/container-basic-info/style/container-basic-info.scss.js +3 -0
- package/dist/workloads/container-basic-info/style/container-basic-info.scss.mjs +4 -0
- package/dist/workloads/container-custom-resource/index.d.ts +2 -0
- package/dist/workloads/container-custom-resource/props.d.ts +14 -0
- package/dist/workloads/container-custom-resource/props.js +15 -0
- package/dist/workloads/container-custom-resource/props.mjs +15 -0
- package/dist/workloads/container-custom-resource/src/ContainerCustomResource.vue.d.ts +34 -0
- package/dist/workloads/container-custom-resource/src/ContainerCustomResource.vue.js +27 -0
- package/dist/workloads/container-custom-resource/src/ContainerCustomResource.vue.mjs +28 -0
- package/dist/workloads/container-custom-resource/src/ContainerCustomResource.vue2.js +98 -0
- package/dist/workloads/container-custom-resource/src/ContainerCustomResource.vue2.mjs +99 -0
- package/dist/workloads/container-image/props.d.ts +79 -136
- package/dist/workloads/container-image/props.js +11 -34
- package/dist/workloads/container-image/props.mjs +12 -35
- package/dist/workloads/container-image/src/ContainerImage.vue.d.ts +104 -184
- package/dist/workloads/container-image/src/ContainerImage.vue.js +18 -14
- package/dist/workloads/container-image/src/ContainerImage.vue.mjs +18 -14
- package/dist/workloads/container-image/src/ContainerImage.vue2.js +124 -46
- package/dist/workloads/container-image/src/ContainerImage.vue2.mjs +126 -48
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue.d.ts +95 -108
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue.js +70 -73
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue.mjs +70 -73
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue2.js +154 -79
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue2.mjs +155 -80
- package/dist/workloads/container-image/src/selects/SecretSelect.vue.d.ts +3 -3
- package/dist/workloads/container-network/props.d.ts +15 -2
- package/dist/workloads/container-network/props.js +14 -0
- package/dist/workloads/container-network/props.mjs +14 -0
- package/dist/workloads/container-network/src/ContainerNetwork.vue.d.ts +33 -23
- package/dist/workloads/container-network/src/ContainerNetwork.vue.js +7 -4
- package/dist/workloads/container-network/src/ContainerNetwork.vue.mjs +7 -4
- package/dist/workloads/container-network/src/ContainerNetwork.vue2.js +117 -46
- package/dist/workloads/container-network/src/ContainerNetwork.vue2.mjs +120 -49
- package/dist/workloads/container-storage/props.d.ts +2 -0
- package/dist/workloads/container-storage/src/ContainerStorage.vue.d.ts +3 -3
- package/dist/workloads/container-storage/src/components/PvcNodePath.vue.d.ts +4 -0
- package/dist/workloads/container-storage/src/components/PvcNodePath.vue2.js +10 -3
- package/dist/workloads/container-storage/src/components/PvcNodePath.vue2.mjs +10 -3
- package/dist/workloads/container-storage/src/components/PvcNodePathItem.vue.d.ts +1 -0
- package/dist/workloads/container-storage/src/components/PvcNodePathItem.vue.js +42 -3
- package/dist/workloads/container-storage/src/components/PvcNodePathItem.vue.mjs +42 -3
- package/dist/workloads/container-storage/src/components/PvcNodePathItem.vue2.js +13 -2
- package/dist/workloads/container-storage/src/components/PvcNodePathItem.vue2.mjs +14 -3
- package/dist/workloads/container-storage/src/dialogs/BindPvcTemplateDialog.vue.d.ts +2 -2
- package/dist/workloads/containers/demo/data.d.ts +5 -0
- package/dist/workloads/containers/props.d.ts +34 -18
- package/dist/workloads/containers/props.js +19 -16
- package/dist/workloads/containers/props.mjs +19 -16
- package/dist/workloads/containers/src/ContainerItem.vue.d.ts +136 -25
- package/dist/workloads/containers/src/ContainerItem.vue2.js +96 -54
- package/dist/workloads/containers/src/ContainerItem.vue2.mjs +96 -54
- package/dist/workloads/containers/src/Containers.vue.d.ts +45 -68
- package/dist/workloads/containers/src/Containers.vue.js +5 -2
- package/dist/workloads/containers/src/Containers.vue.mjs +5 -2
- package/dist/workloads/containers/src/Containers.vue2.js +46 -2
- package/dist/workloads/containers/src/Containers.vue2.mjs +48 -4
- package/dist/workloads/containers/src/ValidateExpansionItem.vue.d.ts +4 -4
- package/dist/workloads/containers/src/dialogs/ConfirmDialog.vue.d.ts +2 -2
- package/dist/workloads/containers/src/dialogs/ConfirmDialog.vue.js +8 -0
- package/dist/workloads/containers/src/dialogs/ConfirmDialog.vue.mjs +9 -1
- package/dist/workloads/containers/src/patch-form-item-validate/form-item-validate.d.ts +13 -13
- package/dist/workloads/containers/src/patch-form-item-validate/form-item-validate.vue.d.ts +4 -4
- package/dist/workloads/containers/style/ConfirmDialog.scss.js +3 -0
- package/dist/workloads/containers/style/ConfirmDialog.scss.mjs +4 -0
- package/dist/workloads/containers/style/containers.d.ts +1 -0
- package/dist/workloads/health-check/src/HealthCheck.vue.js +1 -4
- package/dist/workloads/health-check/src/HealthCheck.vue.mjs +1 -4
- package/dist/workloads/index.d.ts +2 -0
- package/dist/workloads/life-cycle/src/LifeCycle.vue.d.ts +3 -3
- package/dist/workloads/workload-advanced/advance-type.d.ts +1 -1
- package/dist/workloads/workload-advanced/src/WorkloadAdvanced.vue.d.ts +3 -3
- package/dist/workloads/workload-advanced/src/tabs/LabelsAndAnnotations.vue.d.ts +2 -2
- package/dist/workloads/workload-advanced/src/tabs/NetworkConfig.vue.d.ts +3 -3
- package/dist/workloads/workload-annotation-input/props.d.ts +1 -1
- package/dist/workloads/workload-annotation-input/src/WorkloadAnnotationInput.vue.d.ts +4 -4
- package/dist/workloads/workload-annotations/props.d.ts +3 -0
- package/dist/workloads/workload-annotations/props.js +5 -1
- package/dist/workloads/workload-annotations/props.mjs +6 -2
- package/dist/workloads/workload-logs/index.d.ts +2 -0
- package/dist/workloads/workload-logs/props.d.ts +89 -0
- package/dist/workloads/workload-logs/props.js +76 -0
- package/dist/workloads/workload-logs/props.mjs +76 -0
- package/dist/workloads/workload-logs/src/InsightMessage.vue.d.ts +40 -0
- package/dist/workloads/workload-logs/src/InsightMessage.vue.js +101 -0
- package/dist/workloads/workload-logs/src/InsightMessage.vue.mjs +102 -0
- package/dist/workloads/workload-logs/src/InsightMessage.vue2.js +42 -0
- package/dist/workloads/workload-logs/src/InsightMessage.vue2.mjs +43 -0
- package/dist/workloads/workload-logs/src/LogEmpty.vue.d.ts +2 -0
- package/dist/workloads/workload-logs/src/LogEmpty.vue.js +24 -0
- package/dist/workloads/workload-logs/src/LogEmpty.vue.mjs +25 -0
- package/dist/workloads/workload-logs/src/WorkloadLogs.vue.d.ts +168 -0
- package/dist/workloads/workload-logs/src/WorkloadLogs.vue.js +238 -0
- package/dist/workloads/workload-logs/src/WorkloadLogs.vue.mjs +239 -0
- package/dist/workloads/workload-logs/src/WorkloadLogs.vue2.js +250 -0
- package/dist/workloads/workload-logs/src/WorkloadLogs.vue2.mjs +251 -0
- package/dist/workloads/workload-logs/src/useInsightInfo.d.ts +22 -0
- package/dist/workloads/workload-logs/src/useInsightInfo.js +51 -0
- package/dist/workloads/workload-logs/src/useInsightInfo.mjs +51 -0
- package/dist/workloads/workload-logs/style/insight-message.scss.js +3 -0
- package/dist/workloads/workload-logs/style/insight-message.scss.mjs +4 -0
- package/dist/workloads/workload-logs/style/workload-logs.d.ts +3 -0
- package/dist/workloads/workload-logs/style/workload-logs.scss.js +3 -0
- package/dist/workloads/workload-logs/style/workload-logs.scss.mjs +4 -0
- package/package.json +10 -7
- package/volar.d.ts +7 -0
- package/dist/workloads/container-image/src/selects/ProjectSelect.vue.d.ts +0 -1222
- package/dist/workloads/container-image/src/selects/ProjectSelect.vue.js +0 -16
- package/dist/workloads/container-image/src/selects/ProjectSelect.vue.mjs +0 -17
- package/dist/workloads/container-image/src/selects/ProjectSelect.vue2.js +0 -30
- package/dist/workloads/container-image/src/selects/ProjectSelect.vue2.mjs +0 -31
- package/dist/workloads/container-image/src/selects/RegistrySelect.vue.d.ts +0 -1222
- package/dist/workloads/container-image/src/selects/RegistrySelect.vue.js +0 -16
- package/dist/workloads/container-image/src/selects/RegistrySelect.vue.mjs +0 -17
- package/dist/workloads/container-image/src/selects/RegistrySelect.vue2.js +0 -30
- package/dist/workloads/container-image/src/selects/RegistrySelect.vue2.mjs +0 -31
- package/dist/workloads/container-image/src/selects/VersionSelect.vue.d.ts +0 -1225
- package/dist/workloads/container-image/src/selects/VersionSelect.vue.js +0 -16
- package/dist/workloads/container-image/src/selects/VersionSelect.vue.mjs +0 -17
- package/dist/workloads/container-image/src/selects/VersionSelect.vue2.js +0 -30
- package/dist/workloads/container-image/src/selects/VersionSelect.vue2.mjs +0 -31
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("../../iframe/style/iframe");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("@dao-style/biz/dist/styles/components/iframe/iframe.css");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("@dao-style/biz/dist/styles/components/parameter-list/parameter-list.css");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("@dao-style/biz/dist/styles/components/parameter-template-list/parameter-template-list.css");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("@dao-style/biz/dist/styles/dialogs/delete-backup-dialog/delete-backup-dialog.css");
|
|
@@ -2,3 +2,4 @@ require("../../container-image/style/container-image");
|
|
|
2
2
|
require("../../container-network/style/container-network");
|
|
3
3
|
require("../../../components/resource-config/style/resource-config");
|
|
4
4
|
require("../../../components/gpu/style/gpu-form");
|
|
5
|
+
require("@dao-style/biz/dist/styles/workloads/container-basic-info/container-basic-info.css");
|
|
@@ -5,3 +5,4 @@ require("../../life-cycle/style/life-cycle");
|
|
|
5
5
|
require("../../container-storage/style/container-storage");
|
|
6
6
|
require("@dao-style/biz/dist/styles/workloads/containers/validate-expansion-item.css");
|
|
7
7
|
require("@dao-style/biz/dist/styles/workloads/containers/containers.css");
|
|
8
|
+
require("@dao-style/biz/dist/styles/workloads/containers/ConfirmDialog.css");
|
|
@@ -128,8 +128,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
128
128
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
129
129
|
}, {
|
|
130
130
|
label: string;
|
|
131
|
-
field: string;
|
|
132
131
|
required: boolean;
|
|
132
|
+
field: string;
|
|
133
133
|
displayTypes: TypeId[];
|
|
134
134
|
hideAnnotation: boolean;
|
|
135
135
|
annotationField: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { BaseSchema } from 'yup';
|
|
3
|
-
|
|
4
|
-
export type ArrayEditorType = 'input' | 'textarea';
|
|
3
|
+
export type ArrayEditorType = 'input' | 'textarea' | 'number';
|
|
5
4
|
export type ArrayEditorValidator = (data: string[]) => ({
|
|
6
5
|
valid: boolean;
|
|
7
6
|
message?: string;
|
|
@@ -35,11 +34,14 @@ export declare const arrayEditorProps: {
|
|
|
35
34
|
type: StringConstructor;
|
|
36
35
|
default: string;
|
|
37
36
|
};
|
|
37
|
+
unique: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
38
41
|
};
|
|
39
42
|
export type ArrayEditorProps = ExtractPropTypes<typeof arrayEditorProps>;
|
|
40
43
|
export declare const arrayEditorEmits: {
|
|
41
44
|
'update:modelValue': (value: string[]) => void;
|
|
42
45
|
change: (value: string[]) => void;
|
|
43
|
-
valid: (res: MultiRowEditorValidatorReturn) => void;
|
|
44
46
|
};
|
|
45
47
|
export type ArrayEditorEmits = (keyof typeof arrayEditorEmits)[];
|
|
@@ -29,12 +29,15 @@ const arrayEditorProps = {
|
|
|
29
29
|
width: {
|
|
30
30
|
type: String,
|
|
31
31
|
default: "400px"
|
|
32
|
+
},
|
|
33
|
+
unique: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
32
36
|
}
|
|
33
37
|
};
|
|
34
38
|
const arrayEditorEmits = {
|
|
35
39
|
"update:modelValue": (value) => core.emitHelperFn(value),
|
|
36
|
-
change: (value) => core.emitHelperFn(value)
|
|
37
|
-
valid: (res) => core.emitHelperFn(res)
|
|
40
|
+
change: (value) => core.emitHelperFn(value)
|
|
38
41
|
};
|
|
39
42
|
exports.arrayEditorEmits = arrayEditorEmits;
|
|
40
43
|
exports.arrayEditorProps = arrayEditorProps;
|
|
@@ -27,12 +27,15 @@ const arrayEditorProps = {
|
|
|
27
27
|
width: {
|
|
28
28
|
type: String,
|
|
29
29
|
default: "400px"
|
|
30
|
+
},
|
|
31
|
+
unique: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
30
34
|
}
|
|
31
35
|
};
|
|
32
36
|
const arrayEditorEmits = {
|
|
33
37
|
"update:modelValue": (value) => emitHelperFn(value),
|
|
34
|
-
change: (value) => emitHelperFn(value)
|
|
35
|
-
valid: (res) => emitHelperFn(res)
|
|
38
|
+
change: (value) => emitHelperFn(value)
|
|
36
39
|
};
|
|
37
40
|
export {
|
|
38
41
|
arrayEditorEmits,
|
|
@@ -30,6 +30,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
type: StringConstructor;
|
|
31
31
|
default: string;
|
|
32
32
|
};
|
|
33
|
+
unique: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
33
37
|
}, {
|
|
34
38
|
commandColumns: import("vue").ComputedRef<MultiRowEditorColumn[]>;
|
|
35
39
|
formData: import("vue").Ref<{
|
|
@@ -333,12 +337,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
333
337
|
}>;
|
|
334
338
|
};
|
|
335
339
|
} & import("@dao-style/extend/dist/components/multi-row-editor/multi-row-editor").MultiEditorExposedTypes) | undefined>;
|
|
336
|
-
validate: () => Promise<true | {
|
|
340
|
+
validate: () => Promise<true | import("@dao-style/extend").MultiRowEditorValidatorReturn | {
|
|
337
341
|
valid: boolean;
|
|
338
342
|
message?: string | undefined;
|
|
339
|
-
}>;
|
|
343
|
+
} | undefined>;
|
|
340
344
|
internalKey: "";
|
|
341
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ArrayEditorEmits, "update:modelValue" | "change"
|
|
345
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ArrayEditorEmits, "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
342
346
|
modelValue: {
|
|
343
347
|
type: import("vue").PropType<string[]>;
|
|
344
348
|
default: () => never[];
|
|
@@ -367,17 +371,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
367
371
|
type: StringConstructor;
|
|
368
372
|
default: string;
|
|
369
373
|
};
|
|
374
|
+
unique: {
|
|
375
|
+
type: BooleanConstructor;
|
|
376
|
+
default: boolean;
|
|
377
|
+
};
|
|
370
378
|
}>> & {
|
|
371
379
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
372
380
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
373
|
-
onValid?: ((...args: any[]) => any) | undefined;
|
|
374
381
|
}, {
|
|
375
382
|
modelValue: string[];
|
|
376
383
|
readonly: boolean;
|
|
377
384
|
type: import("../props").ArrayEditorType;
|
|
385
|
+
schema: import("yup").BaseSchema<any, import("yup/lib/types").AnyObject, any>;
|
|
378
386
|
placeholder: string;
|
|
379
387
|
width: string;
|
|
380
|
-
schema: import("yup").BaseSchema<any, import("yup/lib/types").AnyObject, any>;
|
|
381
388
|
extraValidator: import("../props").ArrayEditorValidator;
|
|
389
|
+
unique: boolean;
|
|
382
390
|
}>;
|
|
383
391
|
export default _default;
|
|
@@ -29,8 +29,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29
29
|
status: (info == null ? void 0 : info.valid) === false ? "error" : void 0,
|
|
30
30
|
block: "",
|
|
31
31
|
onChange: handleValid
|
|
32
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "status", "onChange"])) :
|
|
32
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "status", "onChange"])) : vue.createCommentVNode("", true),
|
|
33
|
+
_ctx.type === "number" ? (vue.openBlock(), vue.createBlock(_component_dao_input, {
|
|
33
34
|
key: 1,
|
|
35
|
+
modelValue: row[_ctx.internalKey],
|
|
36
|
+
"onUpdate:modelValue": ($event) => row[_ctx.internalKey] = $event,
|
|
37
|
+
type: "number",
|
|
38
|
+
placeholder: column.placeholder,
|
|
39
|
+
readonly: _ctx.readonly,
|
|
40
|
+
disabled: _ctx.readonly,
|
|
41
|
+
status: (info == null ? void 0 : info.valid) === false ? "error" : void 0,
|
|
42
|
+
block: "",
|
|
43
|
+
onChange: handleValid
|
|
44
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "status", "onChange"])) : _ctx.type === "textarea" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", {
|
|
45
|
+
key: 2,
|
|
34
46
|
"onUpdate:modelValue": ($event) => row[_ctx.internalKey] = $event,
|
|
35
47
|
placeholder: column.placeholder,
|
|
36
48
|
disabled: _ctx.readonly,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./ArrayEditor.vue2.mjs";
|
|
2
|
-
import { resolveComponent, openBlock, createBlock, createSlots, withCtx, withDirectives, createElementBlock, normalizeClass, vModelText,
|
|
2
|
+
import { resolveComponent, openBlock, createBlock, createSlots, withCtx, createCommentVNode, withDirectives, createElementBlock, normalizeClass, vModelText, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
4
|
const _hoisted_1 = ["onUpdate:modelValue", "placeholder", "disabled", "onChange"];
|
|
5
5
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -28,8 +28,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28
28
|
status: (info == null ? void 0 : info.valid) === false ? "error" : void 0,
|
|
29
29
|
block: "",
|
|
30
30
|
onChange: handleValid
|
|
31
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "status", "onChange"])) :
|
|
31
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "status", "onChange"])) : createCommentVNode("", true),
|
|
32
|
+
_ctx.type === "number" ? (openBlock(), createBlock(_component_dao_input, {
|
|
32
33
|
key: 1,
|
|
34
|
+
modelValue: row[_ctx.internalKey],
|
|
35
|
+
"onUpdate:modelValue": ($event) => row[_ctx.internalKey] = $event,
|
|
36
|
+
type: "number",
|
|
37
|
+
placeholder: column.placeholder,
|
|
38
|
+
readonly: _ctx.readonly,
|
|
39
|
+
disabled: _ctx.readonly,
|
|
40
|
+
status: (info == null ? void 0 : info.valid) === false ? "error" : void 0,
|
|
41
|
+
block: "",
|
|
42
|
+
onChange: handleValid
|
|
43
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "status", "onChange"])) : _ctx.type === "textarea" ? withDirectives((openBlock(), createElementBlock("textarea", {
|
|
44
|
+
key: 2,
|
|
33
45
|
"onUpdate:modelValue": ($event) => row[_ctx.internalKey] = $event,
|
|
34
46
|
placeholder: column.placeholder,
|
|
35
47
|
disabled: _ctx.readonly,
|
|
@@ -3,6 +3,7 @@ const vue = require("vue");
|
|
|
3
3
|
const lodashEs = require("lodash-es");
|
|
4
4
|
const extend = require("@dao-style/extend");
|
|
5
5
|
require("@dao-style/extend/dist/es/components/multi-row-editor/style/multi-row-editor");
|
|
6
|
+
const vueI18n = require("vue-i18n");
|
|
6
7
|
const props = require("../props.js");
|
|
7
8
|
require("../../../styles/common.scss.js");
|
|
8
9
|
require("../style/array-editor.scss.js");
|
|
@@ -18,6 +19,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
18
19
|
props: props.arrayEditorProps,
|
|
19
20
|
emits: Object.keys(props.arrayEditorEmits),
|
|
20
21
|
setup(props2, { emit }) {
|
|
22
|
+
const { t } = vueI18n.useI18n();
|
|
21
23
|
const formData = vue.ref([]);
|
|
22
24
|
const multiRowEditorRef = vue.ref();
|
|
23
25
|
vue.watch(() => props2.modelValue, () => {
|
|
@@ -46,6 +48,20 @@ const _sfc_main = vue.defineComponent({
|
|
|
46
48
|
if (props2.readonly) {
|
|
47
49
|
return { valid: true };
|
|
48
50
|
}
|
|
51
|
+
if (props2.unique) {
|
|
52
|
+
const duplicates = [];
|
|
53
|
+
formData.value.forEach((item, index) => {
|
|
54
|
+
if (item[internalKey] === val) {
|
|
55
|
+
duplicates.push(index + 1);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
if (duplicates.length > 1) {
|
|
59
|
+
return {
|
|
60
|
+
valid: false,
|
|
61
|
+
message: t("biz.components.ArrayEditor.duplicated", { name: duplicates.join(t("biz.components.ArrayEditor.connector")) })
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
49
65
|
if (props2.schema) {
|
|
50
66
|
try {
|
|
51
67
|
await props2.schema.validate(val);
|
|
@@ -61,7 +77,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
61
77
|
}
|
|
62
78
|
}]);
|
|
63
79
|
const validate = async () => {
|
|
64
|
-
var _a, _b
|
|
80
|
+
var _a, _b;
|
|
65
81
|
if (props2.readonly) {
|
|
66
82
|
return {
|
|
67
83
|
valid: true
|
|
@@ -69,10 +85,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
69
85
|
}
|
|
70
86
|
const result = await ((_b = (_a = multiRowEditorRef.value) == null ? void 0 : _a.valid) == null ? void 0 : _b.call(_a));
|
|
71
87
|
if (!(result == null ? void 0 : result.valid)) {
|
|
72
|
-
return
|
|
73
|
-
valid: false,
|
|
74
|
-
message: ((_c = result == null ? void 0 : result.detail.find((item) => item.valid === false)) == null ? void 0 : _c.message) ?? " "
|
|
75
|
-
};
|
|
88
|
+
return result;
|
|
76
89
|
}
|
|
77
90
|
if (props2.extraValidator) {
|
|
78
91
|
return props2.extraValidator(props2.modelValue);
|
|
@@ -2,6 +2,7 @@ import { defineComponent, ref, watch, computed } from "vue";
|
|
|
2
2
|
import { isEqual } from "lodash-es";
|
|
3
3
|
import { DaoMultiRowEditor } from "@dao-style/extend";
|
|
4
4
|
import "@dao-style/extend/dist/es/components/multi-row-editor/style/multi-row-editor";
|
|
5
|
+
import { useI18n } from "vue-i18n";
|
|
5
6
|
import { arrayEditorProps, arrayEditorEmits } from "../props.mjs";
|
|
6
7
|
import "../../../styles/common.scss.mjs";
|
|
7
8
|
import "../style/array-editor.scss.mjs";
|
|
@@ -17,6 +18,7 @@ const _sfc_main = defineComponent({
|
|
|
17
18
|
props: arrayEditorProps,
|
|
18
19
|
emits: Object.keys(arrayEditorEmits),
|
|
19
20
|
setup(props, { emit }) {
|
|
21
|
+
const { t } = useI18n();
|
|
20
22
|
const formData = ref([]);
|
|
21
23
|
const multiRowEditorRef = ref();
|
|
22
24
|
watch(() => props.modelValue, () => {
|
|
@@ -45,6 +47,20 @@ const _sfc_main = defineComponent({
|
|
|
45
47
|
if (props.readonly) {
|
|
46
48
|
return { valid: true };
|
|
47
49
|
}
|
|
50
|
+
if (props.unique) {
|
|
51
|
+
const duplicates = [];
|
|
52
|
+
formData.value.forEach((item, index) => {
|
|
53
|
+
if (item[internalKey] === val) {
|
|
54
|
+
duplicates.push(index + 1);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
if (duplicates.length > 1) {
|
|
58
|
+
return {
|
|
59
|
+
valid: false,
|
|
60
|
+
message: t("biz.components.ArrayEditor.duplicated", { name: duplicates.join(t("biz.components.ArrayEditor.connector")) })
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
48
64
|
if (props.schema) {
|
|
49
65
|
try {
|
|
50
66
|
await props.schema.validate(val);
|
|
@@ -60,7 +76,7 @@ const _sfc_main = defineComponent({
|
|
|
60
76
|
}
|
|
61
77
|
}]);
|
|
62
78
|
const validate = async () => {
|
|
63
|
-
var _a, _b
|
|
79
|
+
var _a, _b;
|
|
64
80
|
if (props.readonly) {
|
|
65
81
|
return {
|
|
66
82
|
valid: true
|
|
@@ -68,10 +84,7 @@ const _sfc_main = defineComponent({
|
|
|
68
84
|
}
|
|
69
85
|
const result = await ((_b = (_a = multiRowEditorRef.value) == null ? void 0 : _a.valid) == null ? void 0 : _b.call(_a));
|
|
70
86
|
if (!(result == null ? void 0 : result.valid)) {
|
|
71
|
-
return
|
|
72
|
-
valid: false,
|
|
73
|
-
message: ((_c = result == null ? void 0 : result.detail.find((item) => item.valid === false)) == null ? void 0 : _c.message) ?? " "
|
|
74
|
-
};
|
|
87
|
+
return result;
|
|
75
88
|
}
|
|
76
89
|
if (props.extraValidator) {
|
|
77
90
|
return props.extraValidator(props.modelValue);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { CloudShell, CloudShellGroupItem, CloudShellService } from './types';
|
|
3
|
+
export declare const cloudShellProps: {
|
|
4
|
+
height: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
shellService: {
|
|
9
|
+
type: PropType<CloudShellService>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
params: {
|
|
13
|
+
type: PropType<Record<string, unknown>>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const cloudShellEmits: {
|
|
18
|
+
created: (val: CloudShell) => void;
|
|
19
|
+
};
|
|
20
|
+
export type CloudShellProps = ExtractPropTypes<typeof cloudShellProps>;
|
|
21
|
+
export declare const cloudShellGroupProps: {
|
|
22
|
+
shellService: {
|
|
23
|
+
type: PropType<CloudShellService>;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
activeName: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
terminals: {
|
|
31
|
+
type: PropType<CloudShellGroupItem[]>;
|
|
32
|
+
default: () => never[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare const cloudShellGroupEmits: {
|
|
36
|
+
'update:activeName': (val: string) => void;
|
|
37
|
+
'update:terminals': (val: CloudShellGroupItem[]) => void;
|
|
38
|
+
};
|
|
39
|
+
export type CloudShellGroupProps = ExtractPropTypes<typeof cloudShellGroupProps>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const core = require("@dao-style/core");
|
|
4
|
+
const cloudShellProps = {
|
|
5
|
+
height: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "100%"
|
|
8
|
+
},
|
|
9
|
+
shellService: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: void 0
|
|
12
|
+
},
|
|
13
|
+
params: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => ({})
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const cloudShellEmits = {
|
|
19
|
+
created: (val) => core.emitHelperFn(val)
|
|
20
|
+
};
|
|
21
|
+
const cloudShellGroupProps = {
|
|
22
|
+
shellService: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default: void 0
|
|
25
|
+
},
|
|
26
|
+
activeName: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: ""
|
|
29
|
+
},
|
|
30
|
+
terminals: {
|
|
31
|
+
type: Array,
|
|
32
|
+
default: () => []
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const cloudShellGroupEmits = {
|
|
36
|
+
"update:activeName": (val) => core.emitHelperFn(val),
|
|
37
|
+
"update:terminals": (val) => core.emitHelperFn(val)
|
|
38
|
+
};
|
|
39
|
+
exports.cloudShellEmits = cloudShellEmits;
|
|
40
|
+
exports.cloudShellGroupEmits = cloudShellGroupEmits;
|
|
41
|
+
exports.cloudShellGroupProps = cloudShellGroupProps;
|
|
42
|
+
exports.cloudShellProps = cloudShellProps;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { emitHelperFn } from "@dao-style/core";
|
|
2
|
+
const cloudShellProps = {
|
|
3
|
+
height: {
|
|
4
|
+
type: String,
|
|
5
|
+
default: "100%"
|
|
6
|
+
},
|
|
7
|
+
shellService: {
|
|
8
|
+
type: Object,
|
|
9
|
+
default: void 0
|
|
10
|
+
},
|
|
11
|
+
params: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => ({})
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const cloudShellEmits = {
|
|
17
|
+
created: (val) => emitHelperFn(val)
|
|
18
|
+
};
|
|
19
|
+
const cloudShellGroupProps = {
|
|
20
|
+
shellService: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
24
|
+
activeName: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
terminals: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default: () => []
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const cloudShellGroupEmits = {
|
|
34
|
+
"update:activeName": (val) => emitHelperFn(val),
|
|
35
|
+
"update:terminals": (val) => emitHelperFn(val)
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
cloudShellEmits,
|
|
39
|
+
cloudShellGroupEmits,
|
|
40
|
+
cloudShellGroupProps,
|
|
41
|
+
cloudShellProps
|
|
42
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import '../style/cloud-shell';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
height: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
shellService: {
|
|
8
|
+
type: import("vue").PropType<import("../types").CloudShellService>;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
params: {
|
|
12
|
+
type: import("vue").PropType<Record<string, unknown>>;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
createShell: () => Promise<string>;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "created"[], "created", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
height: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
shellService: {
|
|
23
|
+
type: import("vue").PropType<import("../types").CloudShellService>;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
params: {
|
|
27
|
+
type: import("vue").PropType<Record<string, unknown>>;
|
|
28
|
+
default: () => {};
|
|
29
|
+
};
|
|
30
|
+
}>> & {
|
|
31
|
+
onCreated?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
height: string;
|
|
34
|
+
shellService: import("../types").CloudShellService;
|
|
35
|
+
params: Record<string, unknown>;
|
|
36
|
+
}>;
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const CloudShell_vue_vue_type_script_lang = require("./CloudShell.vue2.js");
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
5
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6
|
+
const _component_dao_iframe = vue.resolveComponent("dao-iframe");
|
|
7
|
+
return vue.openBlock(), vue.createBlock(_component_dao_iframe, {
|
|
8
|
+
class: "dao-cloud-shell",
|
|
9
|
+
url: _ctx.createShell,
|
|
10
|
+
height: _ctx.height
|
|
11
|
+
}, null, 8, ["url", "height"]);
|
|
12
|
+
}
|
|
13
|
+
const DaoCloudShell = /* @__PURE__ */ _pluginVue_exportHelper(CloudShell_vue_vue_type_script_lang, [["render", _sfc_render]]);
|
|
14
|
+
module.exports = DaoCloudShell;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import _sfc_main from "./CloudShell.vue2.mjs";
|
|
2
|
+
import { resolveComponent, openBlock, createBlock } from "vue";
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5
|
+
const _component_dao_iframe = resolveComponent("dao-iframe");
|
|
6
|
+
return openBlock(), createBlock(_component_dao_iframe, {
|
|
7
|
+
class: "dao-cloud-shell",
|
|
8
|
+
url: _ctx.createShell,
|
|
9
|
+
height: _ctx.height
|
|
10
|
+
}, null, 8, ["url", "height"]);
|
|
11
|
+
}
|
|
12
|
+
const DaoCloudShell = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
13
|
+
export {
|
|
14
|
+
DaoCloudShell as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const Iframe = require("../../iframe/src/Iframe.vue.js");
|
|
4
|
+
const props = require("../props.js");
|
|
5
|
+
const sleep = require("../../../utils/sleep.js");
|
|
6
|
+
require("../../iframe/style/iframe.scss.js");
|
|
7
|
+
const _sfc_main = vue.defineComponent({
|
|
8
|
+
name: "DaoCloudShell",
|
|
9
|
+
components: { DaoIframe: Iframe },
|
|
10
|
+
props: props.cloudShellProps,
|
|
11
|
+
emits: Object.keys(props.cloudShellEmits),
|
|
12
|
+
setup(props2, { emit }) {
|
|
13
|
+
const detectHtmlReadiness = async (url, curTimes = 0) => {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
const fetch = window.originFetch || window.fetch;
|
|
16
|
+
const res = await fetch(url);
|
|
17
|
+
if (res.ok) {
|
|
18
|
+
return Promise.resolve(true);
|
|
19
|
+
}
|
|
20
|
+
if (!res.ok && curTimes === (((_a = props2.shellService) == null ? void 0 : _a.detectRetryCount) ?? 40)) {
|
|
21
|
+
return Promise.reject();
|
|
22
|
+
}
|
|
23
|
+
await sleep.sleep(((_b = props2.shellService) == null ? void 0 : _b.detectRetryInterval) ?? 200);
|
|
24
|
+
return detectHtmlReadiness(url, curTimes + 1);
|
|
25
|
+
};
|
|
26
|
+
const shell = vue.ref();
|
|
27
|
+
const { createCloudShell, deleteCloudShell } = props2.shellService ?? {};
|
|
28
|
+
const createShell = async () => {
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
try {
|
|
31
|
+
const res = await (createCloudShell == null ? void 0 : createCloudShell(props2.params));
|
|
32
|
+
if ((_a = res == null ? void 0 : res.status) == null ? void 0 : _a.accessUrl) {
|
|
33
|
+
await detectHtmlReadiness(`${(_b = res == null ? void 0 : res.status) == null ? void 0 : _b.accessUrl}/token`);
|
|
34
|
+
}
|
|
35
|
+
shell.value = res;
|
|
36
|
+
emit("created", res);
|
|
37
|
+
return ((_c = res == null ? void 0 : res.status) == null ? void 0 : _c.accessUrl) ?? "";
|
|
38
|
+
} catch (e) {
|
|
39
|
+
console.error(e);
|
|
40
|
+
return "";
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const deleteShell = () => {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
if (!((_b = (_a = shell.value) == null ? void 0 : _a.metadata) == null ? void 0 : _b.name)) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
deleteCloudShell == null ? void 0 : deleteCloudShell({
|
|
49
|
+
name: shell.value.metadata.name,
|
|
50
|
+
...props2.params
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
vue.onBeforeUnmount(() => {
|
|
54
|
+
deleteShell();
|
|
55
|
+
});
|
|
56
|
+
return {
|
|
57
|
+
createShell
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
module.exports = _sfc_main;
|