@dao-style/biz 0.2.0 → 0.3.0-4-g405ea68
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/image-preview/style/image-preview.js +1 -0
- package/dist/cjs/components/instance-cluster/style/instance-cluster.js +1 -0
- package/dist/cjs/components/radio-button/style/radio-button.js +1 -0
- package/dist/cjs/dialogs/switch-master-node-dialog/style/switch-master-node-dialog.js +1 -0
- package/dist/cjs/forms/backup-setting/style/backup-setting.js +2 -0
- package/dist/components/array-editor/props.d.ts +6 -4
- package/dist/components/array-editor/props.js +4 -0
- package/dist/components/array-editor/props.mjs +4 -0
- package/dist/components/array-editor/src/ArrayEditor.vue.d.ts +100 -31
- package/dist/components/array-editor/src/ArrayEditor.vue.js +48 -38
- package/dist/components/array-editor/src/ArrayEditor.vue.mjs +49 -39
- package/dist/components/array-editor/src/ArrayEditor.vue2.js +13 -3
- package/dist/components/array-editor/src/ArrayEditor.vue2.mjs +14 -4
- package/dist/components/cloud-shell/src/CloudShell.vue.d.ts +2 -0
- package/dist/components/cloud-shell/src/CloudShell.vue.js +4 -2
- package/dist/components/cloud-shell/src/CloudShell.vue.mjs +4 -2
- package/dist/components/cloud-shell/src/CloudShell.vue2.js +10 -1
- package/dist/components/cloud-shell/src/CloudShell.vue2.mjs +10 -1
- package/dist/components/form-block/FormBlock.d.ts +4 -4
- package/dist/components/form-block/src/FormBlock.vue.d.ts +1 -1
- package/dist/components/gpu/props.d.ts +12 -20
- package/dist/components/gpu/props.js +11 -12
- package/dist/components/gpu/props.mjs +12 -13
- package/dist/components/gpu/src/GpuAdvancedForm.vue.js +8 -3
- package/dist/components/gpu/src/GpuAdvancedForm.vue.mjs +8 -3
- package/dist/components/gpu/src/GpuForm.vue.d.ts +21 -61
- package/dist/components/gpu/src/GpuForm.vue.js +1 -1
- package/dist/components/gpu/src/GpuForm.vue.mjs +1 -1
- package/dist/components/gpu/src/GpuForm.vue2.js +16 -9
- package/dist/components/gpu/src/GpuForm.vue2.mjs +16 -9
- package/dist/components/gpu/src/{GpuFormMigItem.vue.d.ts → GpuFormDynamicItem.vue.d.ts} +107 -32
- package/dist/components/gpu/src/{GpuFormMigItem.vue.js → GpuFormDynamicItem.vue.js} +9 -9
- package/dist/components/gpu/src/{GpuFormMigItem.vue.mjs → GpuFormDynamicItem.vue.mjs} +9 -9
- package/dist/components/gpu/src/{GpuFormMigItem.vue2.js → GpuFormDynamicItem.vue2.js} +48 -50
- package/dist/components/gpu/src/{GpuFormMigItem.vue2.mjs → GpuFormDynamicItem.vue2.mjs} +33 -35
- package/dist/components/gpu/src/GpuFormItem.vue.d.ts +8 -23
- package/dist/components/gpu/src/GpuFormItem.vue.js +155 -172
- package/dist/components/gpu/src/GpuFormItem.vue.mjs +156 -173
- package/dist/components/gpu/src/GpuFormItem.vue2.js +31 -12
- package/dist/components/gpu/src/GpuFormItem.vue2.mjs +33 -14
- package/dist/components/gpu/src/GpuResources.vue.d.ts +8 -1
- package/dist/components/gpu/src/GpuResources.vue.js +43 -29
- package/dist/components/gpu/src/GpuResources.vue.mjs +44 -30
- package/dist/components/gpu/src/GpuResources.vue2.js +93 -1
- package/dist/components/gpu/src/GpuResources.vue2.mjs +94 -2
- package/dist/components/gpu/src/useGPUOptions.d.ts +10 -26
- package/dist/components/gpu/src/useGPUOptions.js +36 -14
- package/dist/components/gpu/src/useGPUOptions.mjs +36 -14
- package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.d.ts +6 -0
- package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.js +19 -0
- package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.mjs +20 -0
- package/dist/components/gpu/types.d.ts +1 -0
- package/dist/components/gpu/utils.js +2 -1
- package/dist/components/gpu/utils.mjs +2 -1
- package/dist/components/image-preview/index.d.ts +2 -0
- package/dist/components/image-preview/props.d.ts +58 -0
- package/dist/components/image-preview/props.js +59 -0
- package/dist/components/image-preview/props.mjs +59 -0
- package/dist/components/image-preview/src/CommonMask.vue.d.ts +56 -0
- package/dist/components/image-preview/src/CommonMask.vue.js +23 -0
- package/dist/components/image-preview/src/CommonMask.vue.mjs +24 -0
- package/dist/components/image-preview/src/CommonMask.vue2.js +76 -0
- package/dist/components/image-preview/src/CommonMask.vue2.mjs +77 -0
- package/dist/components/image-preview/src/ImageContainer.vue.d.ts +30 -0
- package/dist/components/image-preview/src/ImageContainer.vue.js +47 -0
- package/dist/components/image-preview/src/ImageContainer.vue.mjs +48 -0
- package/dist/components/image-preview/src/ImageContainer.vue2.js +27 -0
- package/dist/components/image-preview/src/ImageContainer.vue2.mjs +28 -0
- package/dist/components/image-preview/src/ImagePreview.vue.d.ts +59 -0
- package/dist/components/image-preview/src/ImagePreview.vue.js +34 -0
- package/dist/components/image-preview/src/ImagePreview.vue.mjs +35 -0
- package/dist/components/image-preview/src/ImagePreview.vue2.js +78 -0
- package/dist/components/image-preview/src/ImagePreview.vue2.mjs +79 -0
- package/dist/components/image-preview/src/ImagePreviewMask.vue.d.ts +53 -0
- package/dist/components/image-preview/src/ImagePreviewMask.vue.js +89 -0
- package/dist/components/image-preview/src/ImagePreviewMask.vue.mjs +90 -0
- package/dist/components/image-preview/src/ImagePreviewMask.vue2.js +122 -0
- package/dist/components/image-preview/src/ImagePreviewMask.vue2.mjs +123 -0
- package/dist/components/image-preview/style/image-preview.d.ts +1 -0
- package/dist/components/image-preview/style/image-preview.scss.js +3 -0
- package/dist/components/image-preview/style/image-preview.scss.mjs +4 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/instance-cluster/props.d.ts +8 -0
- package/dist/components/instance-cluster/props.js +8 -0
- package/dist/components/instance-cluster/props.mjs +8 -0
- package/dist/components/instance-cluster/src/InstanceCluster.vue.d.ts +24 -3
- package/dist/components/instance-cluster/src/InstanceCluster.vue.js +30 -1
- package/dist/components/instance-cluster/src/InstanceCluster.vue.mjs +31 -2
- package/dist/components/instance-cluster/src/InstanceCluster.vue2.js +3 -1
- package/dist/components/instance-cluster/src/InstanceCluster.vue2.mjs +3 -1
- package/dist/components/instance-cluster/style/instance-cluster.d.ts +1 -0
- package/dist/components/instance-cluster/style/instance-cluster.scss.js +3 -0
- package/dist/components/instance-cluster/style/instance-cluster.scss.mjs +4 -0
- package/dist/components/instance-description/src/InstanceDescription.vue.d.ts +1 -1
- package/dist/components/instance-name/src/InstanceName.vue.d.ts +1 -1
- package/dist/components/instance-namespace/src/InstanceNamespace.vue.d.ts +5 -3
- package/dist/components/instance-password/props.d.ts +8 -0
- package/dist/components/instance-password/props.js +5 -0
- package/dist/components/instance-password/props.mjs +5 -0
- package/dist/components/instance-password/src/InstancePassword.vue.d.ts +10 -1
- package/dist/components/instance-password/src/InstancePassword.vue.js +2 -1
- package/dist/components/instance-password/src/InstancePassword.vue.mjs +2 -1
- package/dist/components/instance-password/src/PasswordValid.vue.d.ts +10 -1
- package/dist/components/instance-password/src/PasswordValid.vue.js +3 -2
- package/dist/components/instance-password/src/PasswordValid.vue.mjs +4 -3
- package/dist/components/instance-storage-class/src/InstanceStorageClass.vue.d.ts +5 -3
- package/dist/components/instance-username/src/InstanceUsername.vue.d.ts +1 -1
- package/dist/components/match-expressions-editor/src/MatchExpressionsEditor.vue2.js +12 -6
- package/dist/components/match-expressions-editor/src/MatchExpressionsEditor.vue2.mjs +12 -6
- package/dist/components/node-affinity/props.d.ts +4 -3
- package/dist/components/node-affinity/src/NodeAffinity.vue.d.ts +3 -3
- package/dist/components/node-affinity/src/NodeAffinity.vue2.js +20 -7
- package/dist/components/node-affinity/src/NodeAffinity.vue2.mjs +20 -7
- package/dist/components/object-editor/props.d.ts +21 -1
- package/dist/components/object-editor/props.js +22 -1
- package/dist/components/object-editor/props.mjs +22 -1
- package/dist/components/object-editor/src/ObjectEditor.vue.d.ts +47 -2
- package/dist/components/object-editor/src/ObjectPoolEditor.vue.d.ts +50 -4
- package/dist/components/object-editor/src/ObjectPoolEditor.vue.js +1 -1
- package/dist/components/object-editor/src/ObjectPoolEditor.vue.mjs +1 -1
- package/dist/components/object-editor/src/ObjectPoolEditor.vue2.js +16 -5
- package/dist/components/object-editor/src/ObjectPoolEditor.vue2.mjs +16 -5
- package/dist/components/object-editor/src/ObjectSimpleEditor.vue.d.ts +56 -8
- package/dist/components/object-editor/src/ObjectSimpleEditor.vue.js +13 -10
- package/dist/components/object-editor/src/ObjectSimpleEditor.vue.mjs +14 -11
- package/dist/components/object-editor/src/ObjectSimpleEditor.vue2.js +36 -2
- package/dist/components/object-editor/src/ObjectSimpleEditor.vue2.mjs +38 -4
- package/dist/components/parameter-configuration/props.d.ts +0 -15
- package/dist/components/parameter-configuration/props.js +0 -8
- package/dist/components/parameter-configuration/props.mjs +0 -8
- package/dist/components/parameter-configuration/src/ParameterConfiguration.vue.d.ts +0 -23
- package/dist/components/parameter-configuration/src/ParameterConfiguration.vue.js +2 -22
- package/dist/components/parameter-configuration/src/ParameterConfiguration.vue.mjs +3 -23
- package/dist/components/parameter-configuration/src/ParameterConfiguration.vue2.js +1 -22
- package/dist/components/parameter-configuration/src/ParameterConfiguration.vue2.mjs +1 -22
- package/dist/components/pod-affinity/props.d.ts +18 -3
- package/dist/components/pod-affinity/props.js +8 -0
- package/dist/components/pod-affinity/props.mjs +8 -0
- package/dist/components/pod-affinity/src/PodAffinity.vue.d.ts +22 -3
- package/dist/components/pod-affinity/src/PodAffinity.vue.js +45 -27
- package/dist/components/pod-affinity/src/PodAffinity.vue.mjs +46 -28
- package/dist/components/pod-affinity/src/PodAffinity.vue2.js +29 -6
- package/dist/components/pod-affinity/src/PodAffinity.vue2.mjs +29 -6
- package/dist/components/radio-button/index.d.ts +2 -0
- package/dist/components/radio-button/props.d.ts +25 -0
- package/dist/components/radio-button/props.js +12 -0
- package/dist/components/radio-button/props.mjs +12 -0
- package/dist/components/radio-button/src/RadioButton.vue.d.ts +53 -0
- package/dist/components/radio-button/src/RadioButton.vue.js +19 -0
- package/dist/components/radio-button/src/RadioButton.vue.mjs +20 -0
- package/dist/components/radio-button/src/RadioButton.vue2.js +9 -0
- package/dist/components/radio-button/src/RadioButton.vue2.mjs +10 -0
- package/dist/components/radio-button/style/radio-button.d.ts +1 -0
- package/dist/components/radio-button/style/radio-button.scss.js +3 -0
- package/dist/components/radio-button/style/radio-button.scss.mjs +4 -0
- package/dist/components/resource-config/src/ResourceConfig.vue2.js +4 -4
- package/dist/components/resource-config/src/ResourceConfig.vue2.mjs +4 -4
- package/dist/dialogs/cluster-unknown-dialog/src/ClusterUnknownDialog.vue.js +2 -9
- package/dist/dialogs/cluster-unknown-dialog/src/ClusterUnknownDialog.vue.mjs +2 -9
- package/dist/dialogs/delete-backup-dialog/src/DeleteBackupDialog.vue.js +1 -8
- package/dist/dialogs/delete-backup-dialog/src/DeleteBackupDialog.vue.mjs +1 -8
- package/dist/dialogs/index.d.ts +2 -0
- package/dist/dialogs/select-labels-dialog/index.d.ts +2 -0
- package/dist/dialogs/switch-master-node-dialog/index.d.ts +2 -0
- package/dist/dialogs/switch-master-node-dialog/props.d.ts +40 -0
- package/dist/dialogs/switch-master-node-dialog/props.js +34 -0
- package/dist/dialogs/switch-master-node-dialog/props.mjs +34 -0
- package/dist/dialogs/switch-master-node-dialog/src/SwitchMasterNodeDialog.vue.d.ts +70 -0
- package/dist/dialogs/switch-master-node-dialog/src/SwitchMasterNodeDialog.vue.js +103 -0
- package/dist/dialogs/switch-master-node-dialog/src/SwitchMasterNodeDialog.vue.mjs +104 -0
- package/dist/dialogs/switch-master-node-dialog/src/SwitchMasterNodeDialog.vue2.js +85 -0
- package/dist/dialogs/switch-master-node-dialog/src/SwitchMasterNodeDialog.vue2.mjs +86 -0
- package/dist/dialogs/switch-master-node-dialog/style/switch-master-node-dialog.d.ts +1 -0
- package/dist/dialogs/switch-master-node-dialog/style/switch-master-node-dialog.scss.js +3 -0
- package/dist/dialogs/switch-master-node-dialog/style/switch-master-node-dialog.scss.mjs +4 -0
- package/dist/dialogs/switch-workspace-dialog/src/SwitchWorkspaceDialog.vue.d.ts +27 -2
- package/dist/dialogs/switch-workspace-dialog/src/SwitchWorkspaceDialog.vue.js +26 -22
- package/dist/dialogs/switch-workspace-dialog/src/SwitchWorkspaceDialog.vue.mjs +27 -23
- package/dist/dialogs/switch-workspace-dialog/src/SwitchWorkspaceDialog.vue2.js +36 -9
- package/dist/dialogs/switch-workspace-dialog/src/SwitchWorkspaceDialog.vue2.mjs +38 -11
- package/dist/es/components/image-preview/style/image-preview.mjs +1 -0
- package/dist/es/components/instance-cluster/style/instance-cluster.mjs +1 -0
- package/dist/es/components/radio-button/style/radio-button.mjs +1 -0
- package/dist/es/dialogs/switch-master-node-dialog/style/switch-master-node-dialog.mjs +1 -0
- package/dist/es/forms/backup-setting/style/backup-setting.mjs +2 -0
- package/dist/forms/backup-restore/props.d.ts +3 -1
- package/dist/forms/backup-restore/src/BackupRestore.vue.d.ts +9 -3
- package/dist/forms/backup-restore/src/ConfirmRestoreDialog.vue.js +1 -8
- package/dist/forms/backup-restore/src/ConfirmRestoreDialog.vue.mjs +2 -9
- package/dist/forms/backup-setting/index.d.ts +2 -0
- package/dist/forms/backup-setting/props.d.ts +53 -0
- package/dist/forms/backup-setting/props.js +43 -0
- package/dist/forms/backup-setting/props.mjs +43 -0
- package/dist/forms/backup-setting/src/BackupSetting.vue.d.ts +102 -0
- package/dist/forms/backup-setting/src/BackupSetting.vue.js +234 -0
- package/dist/forms/backup-setting/src/BackupSetting.vue.mjs +235 -0
- package/dist/forms/backup-setting/src/BackupSetting.vue2.js +111 -0
- package/dist/forms/backup-setting/src/BackupSetting.vue2.mjs +112 -0
- package/dist/forms/backup-setting/style/backup-setting.d.ts +2 -0
- package/dist/forms/backup-setting/style/backup-setting.scss.js +3 -0
- package/dist/forms/backup-setting/style/backup-setting.scss.mjs +4 -0
- package/dist/forms/index.d.ts +1 -0
- package/dist/group-mapping.json +1 -1
- package/dist/index.js +235 -197
- package/dist/index.mjs +158 -120
- package/dist/locales/en-US/common.json.js +4 -1
- package/dist/locales/en-US/common.json.mjs +5 -2
- package/dist/locales/en-US/components/Gpu.json.js +5 -5
- package/dist/locales/en-US/components/Gpu.json.mjs +5 -5
- package/dist/locales/en-US/components/PodAffinity.json.js +3 -0
- package/dist/locales/en-US/components/PodAffinity.json.mjs +3 -0
- package/dist/locales/en-US/dialogs/SwitchMasterNodeDialog.json.js +35 -0
- package/dist/locales/en-US/dialogs/SwitchMasterNodeDialog.json.mjs +35 -0
- package/dist/locales/en-US/forms/BackupSetting.json.js +56 -0
- package/dist/locales/en-US/forms/BackupSetting.json.mjs +56 -0
- package/dist/locales/en-US/index.js +8 -2
- package/dist/locales/en-US/index.mjs +8 -2
- package/dist/locales/en-US/validate.json.js +4 -1
- package/dist/locales/en-US/validate.json.mjs +4 -1
- package/dist/locales/en-US/workloads/ContainerBasicInfo.json.js +7 -1
- package/dist/locales/en-US/workloads/ContainerBasicInfo.json.mjs +7 -1
- package/dist/locales/en-US/workloads/ContainerNetwork.json.js +8 -5
- package/dist/locales/en-US/workloads/ContainerNetwork.json.mjs +8 -5
- package/dist/locales/en-US/workloads/ContainerStorage.json.js +9 -3
- package/dist/locales/en-US/workloads/ContainerStorage.json.mjs +9 -3
- package/dist/locales/en-US/workloads/HealthCheck.json.js +3 -1
- package/dist/locales/en-US/workloads/HealthCheck.json.mjs +3 -1
- package/dist/locales/en-US/workloads/JobConfig.json.js +36 -0
- package/dist/locales/en-US/workloads/JobConfig.json.mjs +36 -0
- package/dist/locales/en-US/workloads/LifeCycle.json.js +7 -7
- package/dist/locales/en-US/workloads/LifeCycle.json.mjs +7 -7
- package/dist/locales/en-US/workloads/UpgradeStrategy.json.js +3 -3
- package/dist/locales/en-US/workloads/UpgradeStrategy.json.mjs +3 -3
- package/dist/locales/en-US/workloads/WorkloadLogs.json.js +2 -1
- package/dist/locales/en-US/workloads/WorkloadLogs.json.mjs +2 -1
- package/dist/locales/zh-CN/common.json.js +4 -1
- package/dist/locales/zh-CN/common.json.mjs +5 -2
- package/dist/locales/zh-CN/components/Gpu.json.js +6 -6
- package/dist/locales/zh-CN/components/Gpu.json.mjs +6 -6
- package/dist/locales/zh-CN/components/PodAffinity.json.js +3 -0
- package/dist/locales/zh-CN/components/PodAffinity.json.mjs +3 -0
- package/dist/locales/zh-CN/components/PreviewNodeAffinity.json.js +1 -1
- package/dist/locales/zh-CN/components/PreviewNodeAffinity.json.mjs +1 -1
- package/dist/locales/zh-CN/components/PreviewPodAffinity.json.js +1 -1
- package/dist/locales/zh-CN/components/PreviewPodAffinity.json.mjs +1 -1
- package/dist/locales/zh-CN/dialogs/SwitchMasterNodeDialog.json.js +35 -0
- package/dist/locales/zh-CN/dialogs/SwitchMasterNodeDialog.json.mjs +35 -0
- package/dist/locales/zh-CN/forms/BackupSetting.json.js +56 -0
- package/dist/locales/zh-CN/forms/BackupSetting.json.mjs +56 -0
- package/dist/locales/zh-CN/forms/ImportParameterTemplate.json.js +1 -1
- package/dist/locales/zh-CN/forms/ImportParameterTemplate.json.mjs +1 -1
- package/dist/locales/zh-CN/index.js +8 -2
- package/dist/locales/zh-CN/index.mjs +8 -2
- package/dist/locales/zh-CN/validate.json.js +4 -1
- package/dist/locales/zh-CN/validate.json.mjs +4 -1
- package/dist/locales/zh-CN/workloads/ContainerBasicInfo.json.js +7 -1
- package/dist/locales/zh-CN/workloads/ContainerBasicInfo.json.mjs +7 -1
- package/dist/locales/zh-CN/workloads/ContainerNetwork.json.js +6 -3
- package/dist/locales/zh-CN/workloads/ContainerNetwork.json.mjs +6 -3
- package/dist/locales/zh-CN/workloads/ContainerStorage.json.js +9 -3
- package/dist/locales/zh-CN/workloads/ContainerStorage.json.mjs +9 -3
- package/dist/locales/zh-CN/workloads/HealthCheck.json.js +3 -1
- package/dist/locales/zh-CN/workloads/HealthCheck.json.mjs +3 -1
- package/dist/locales/zh-CN/workloads/JobConfig.json.js +36 -0
- package/dist/locales/zh-CN/workloads/JobConfig.json.mjs +36 -0
- package/dist/locales/zh-CN/workloads/LifeCycle.json.js +7 -7
- package/dist/locales/zh-CN/workloads/LifeCycle.json.mjs +7 -7
- package/dist/locales/zh-CN/workloads/UpgradeStrategy.json.js +5 -5
- package/dist/locales/zh-CN/workloads/UpgradeStrategy.json.mjs +5 -5
- package/dist/locales/zh-CN/workloads/WorkloadLogs.json.js +1 -0
- package/dist/locales/zh-CN/workloads/WorkloadLogs.json.mjs +1 -0
- package/dist/node_modules/@vueuse/core/index.js +262 -2
- package/dist/node_modules/@vueuse/core/index.mjs +264 -4
- package/dist/node_modules/@vueuse/core/node_modules/@vueuse/shared/index.js +131 -0
- package/dist/node_modules/@vueuse/core/node_modules/@vueuse/shared/index.mjs +131 -0
- package/dist/node_modules/@vueuse/shared/index.js +0 -8
- package/dist/node_modules/@vueuse/shared/index.mjs +0 -8
- package/dist/style.css +848 -635
- package/dist/styles/components/gpu/gpu-form-item.css +11 -4
- package/dist/styles/components/gpu/gpu-form.css +2 -2
- package/dist/styles/components/image-preview/image-preview.css +154 -0
- package/dist/styles/components/instance-cluster/instance-cluster.css +15 -0
- package/dist/styles/components/parameter-configuration/parameter-configuration.css +0 -3
- package/dist/styles/components/radio-button/radio-button.css +33 -0
- package/dist/styles/dialogs/switch-master-node-dialog/switch-master-node-dialog.css +3 -0
- package/dist/styles/dialogs/switch-workspace-dialog/switch-workspace-dialog.css +4 -1
- package/dist/styles/forms/backup-setting/backup-setting.css +9 -0
- package/dist/styles/workloads/container-basic-info/container-basic-info.css +5 -2
- package/dist/styles/workloads/container-network/container-network.css +7 -3
- package/dist/styles/workloads/container-network/guide-to-use-sr-iov.css +3 -0
- package/dist/styles/workloads/container-storage/pvc-node-path.css +0 -13
- package/dist/uses/index.d.ts +1 -0
- package/dist/uses/useLazyLoadList/index.d.ts +32 -0
- package/dist/uses/useLazyLoadList/index.js +112 -0
- package/dist/uses/useLazyLoadList/index.mjs +112 -0
- package/dist/utils/abortableFetchWrapper.d.ts +2 -1
- package/dist/utils/abortableFetchWrapper.js +3 -0
- package/dist/utils/abortableFetchWrapper.mjs +3 -0
- package/dist/utils/flatNodeAffinity.js +9 -4
- package/dist/utils/flatNodeAffinity.mjs +9 -4
- package/dist/utils/flatPodAffinity.js +18 -7
- package/dist/utils/flatPodAffinity.mjs +18 -7
- package/dist/utils/useGoBack.d.ts +2 -1
- package/dist/utils/useGoBack.js +2 -1
- package/dist/utils/useGoBack.mjs +2 -1
- package/dist/utils/useSubForm.js +1 -1
- package/dist/utils/useSubForm.mjs +1 -1
- package/dist/validations/Path/index.d.ts +6 -0
- package/dist/validations/Path/index.js +15 -0
- package/dist/validations/Path/index.mjs +16 -0
- package/dist/validations/index.d.ts +1 -0
- package/dist/workloads/container-basic-info/props.d.ts +4 -0
- package/dist/workloads/container-basic-info/props.js +5 -0
- package/dist/workloads/container-basic-info/props.mjs +5 -0
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.d.ts +6 -25
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.js +45 -4
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.mjs +46 -5
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue2.js +11 -3
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue2.mjs +13 -5
- package/dist/workloads/container-custom-resource/src/ContainerCustomResource.vue2.js +1 -1
- package/dist/workloads/container-custom-resource/src/ContainerCustomResource.vue2.mjs +1 -1
- package/dist/workloads/container-env/props.d.ts +11 -3
- package/dist/workloads/container-env/props.js +5 -1
- package/dist/workloads/container-env/props.mjs +5 -1
- package/dist/workloads/container-env/src/ContainerEnv.vue.d.ts +14 -5
- package/dist/workloads/container-env/src/ContainerEnv.vue.js +5 -3
- package/dist/workloads/container-env/src/ContainerEnv.vue.mjs +5 -3
- package/dist/workloads/container-env/src/ContainerEnv.vue2.js +7 -7
- package/dist/workloads/container-env/src/ContainerEnv.vue2.mjs +7 -7
- package/dist/workloads/container-env/src/ContainerEnvItem.vue.d.ts +13 -4
- package/dist/workloads/container-env/src/ContainerEnvItem.vue.js +34 -19
- package/dist/workloads/container-env/src/ContainerEnvItem.vue.mjs +34 -19
- package/dist/workloads/container-env/src/ContainerEnvItem.vue2.js +3 -0
- package/dist/workloads/container-env/src/ContainerEnvItem.vue2.mjs +3 -0
- package/dist/workloads/container-image/index.d.ts +1 -0
- package/dist/workloads/container-image/props.d.ts +6 -2
- package/dist/workloads/container-image/props.js +4 -0
- package/dist/workloads/container-image/props.mjs +4 -0
- package/dist/workloads/container-image/src/ContainerImage.vue.d.ts +27 -11
- package/dist/workloads/container-image/src/ContainerImage.vue.js +27 -17
- package/dist/workloads/container-image/src/ContainerImage.vue.mjs +27 -17
- package/dist/workloads/container-image/src/ContainerImage.vue2.js +23 -29
- package/dist/workloads/container-image/src/ContainerImage.vue2.mjs +23 -29
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue.d.ts +1237 -5
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue.js +22 -9
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue.mjs +22 -9
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue2.js +67 -71
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue2.mjs +67 -71
- package/dist/workloads/container-image/src/selects/SecretSelect.vue.d.ts +3 -3
- package/dist/workloads/container-network/src/ContainerNetwork.vue.js +25 -13
- package/dist/workloads/container-network/src/ContainerNetwork.vue.mjs +26 -14
- package/dist/workloads/container-network/src/ContainerNetwork.vue2.js +3 -1
- package/dist/workloads/container-network/src/ContainerNetwork.vue2.mjs +3 -1
- package/dist/workloads/container-network/src/GuideToUseSrIov.vue.js +2 -1
- package/dist/workloads/container-network/src/GuideToUseSrIov.vue.mjs +3 -2
- package/dist/workloads/container-storage/props.d.ts +32 -17
- package/dist/workloads/container-storage/props.js +10 -1
- package/dist/workloads/container-storage/props.mjs +10 -1
- package/dist/workloads/container-storage/src/ContainerStorage.vue.d.ts +27 -15
- package/dist/workloads/container-storage/src/ContainerStorage.vue.js +7 -4
- package/dist/workloads/container-storage/src/ContainerStorage.vue.mjs +7 -4
- package/dist/workloads/container-storage/src/ContainerStorage.vue2.js +15 -0
- package/dist/workloads/container-storage/src/ContainerStorage.vue2.mjs +15 -0
- package/dist/workloads/container-storage/src/components/PvcNodePath.vue.d.ts +77 -52
- package/dist/workloads/container-storage/src/components/PvcNodePath.vue.js +8 -21
- package/dist/workloads/container-storage/src/components/PvcNodePath.vue.mjs +9 -22
- package/dist/workloads/container-storage/src/components/PvcNodePath.vue2.js +205 -96
- package/dist/workloads/container-storage/src/components/PvcNodePath.vue2.mjs +205 -96
- package/dist/workloads/container-storage/src/components/PvcNodePathItem.vue.d.ts +16 -17
- package/dist/workloads/container-storage/src/components/PvcNodePathItem.vue.js +103 -89
- package/dist/workloads/container-storage/src/components/PvcNodePathItem.vue.mjs +103 -89
- package/dist/workloads/container-storage/src/components/PvcNodePathItem.vue2.js +25 -3
- package/dist/workloads/container-storage/src/components/PvcNodePathItem.vue2.mjs +26 -4
- package/dist/workloads/container-storage/src/components/VolumeMountsByPvcTemplate.vue.d.ts +3 -3
- package/dist/workloads/containers/demo/data.d.ts +23 -6
- package/dist/workloads/containers/index.d.ts +1 -0
- package/dist/workloads/containers/src/ContainerItem.vue.d.ts +54 -63
- package/dist/workloads/containers/src/ContainerItem.vue2.js +6 -2
- package/dist/workloads/containers/src/ContainerItem.vue2.mjs +6 -2
- package/dist/workloads/containers/src/Containers.vue.d.ts +7 -18
- package/dist/workloads/containers/src/Containers.vue2.js +33 -4
- package/dist/workloads/containers/src/Containers.vue2.mjs +33 -4
- package/dist/workloads/containers/src/dialogs/ConfirmDialog.vue.d.ts +10 -0
- package/dist/workloads/containers/src/dialogs/ConfirmDialog.vue.js +3 -10
- package/dist/workloads/containers/src/dialogs/ConfirmDialog.vue.mjs +4 -11
- package/dist/workloads/containers/src/dialogs/ConfirmDialog.vue2.js +4 -0
- package/dist/workloads/containers/src/dialogs/ConfirmDialog.vue2.mjs +4 -0
- package/dist/workloads/containers/src/patch-form-item-validate/form-item-validate.d.ts +23 -23
- package/dist/workloads/containers/src/patch-form-item-validate/form-item-validate.vue.d.ts +10 -10
- package/dist/workloads/containers/src/patch-form-item-validate/props.d.ts +4 -4
- package/dist/workloads/dns-config/src/DnsConfig.vue.d.ts +1 -0
- package/dist/workloads/dns-config/src/DnsConfig.vue.js +2 -2
- package/dist/workloads/dns-config/src/DnsConfig.vue.mjs +2 -2
- package/dist/workloads/dns-config/src/DnsConfig.vue2.js +3 -1
- package/dist/workloads/dns-config/src/DnsConfig.vue2.mjs +3 -1
- package/dist/workloads/health-check/src/AdvancedContainer.vue.d.ts +3 -3
- package/dist/workloads/health-check/src/HealthCheckHandler.vue.js +4 -3
- package/dist/workloads/health-check/src/HealthCheckHandler.vue.mjs +4 -3
- package/dist/workloads/http-get-action/props.d.ts +1 -1
- package/dist/workloads/http-get-action/src/HttpGetAction.vue.d.ts +5 -0
- package/dist/workloads/http-get-action/src/HttpGetAction.vue.js +20 -11
- package/dist/workloads/http-get-action/src/HttpGetAction.vue.mjs +20 -11
- package/dist/workloads/http-get-action/src/HttpGetAction.vue2.js +34 -1
- package/dist/workloads/http-get-action/src/HttpGetAction.vue2.mjs +34 -1
- package/dist/workloads/index.d.ts +1 -0
- package/dist/workloads/job-config/index.d.ts +2 -0
- package/dist/workloads/job-config/props.d.ts +18 -0
- package/dist/workloads/job-config/props.js +9 -0
- package/dist/workloads/job-config/props.mjs +9 -0
- package/dist/workloads/job-config/src/JobConfig.vue.d.ts +22 -0
- package/dist/workloads/job-config/src/JobConfig.vue.js +94 -0
- package/dist/workloads/job-config/src/JobConfig.vue.mjs +95 -0
- package/dist/workloads/job-config/src/JobConfig.vue2.js +38 -0
- package/dist/workloads/job-config/src/JobConfig.vue2.mjs +39 -0
- package/dist/workloads/life-cycle/props.js +2 -2
- package/dist/workloads/life-cycle/props.mjs +2 -2
- package/dist/workloads/life-cycle/src/LifeCycle.vue.d.ts +0 -1
- package/dist/workloads/life-cycle/src/LifeCycle.vue.js +5 -5
- package/dist/workloads/life-cycle/src/LifeCycle.vue.mjs +5 -5
- package/dist/workloads/life-cycle/src/LifeCycle.vue2.js +0 -2
- package/dist/workloads/life-cycle/src/LifeCycle.vue2.mjs +0 -2
- package/dist/workloads/schedule-config/props.d.ts +3 -0
- package/dist/workloads/schedule-config/src/ScheduleConfig.vue.d.ts +27 -9
- package/dist/workloads/schedule-config/src/ScheduleConfig.vue.js +2 -2
- package/dist/workloads/schedule-config/src/ScheduleConfig.vue.mjs +2 -2
- package/dist/workloads/upgrade-strategy/src/UpgradeStrategy.vue.js +1 -2
- package/dist/workloads/upgrade-strategy/src/UpgradeStrategy.vue.mjs +1 -2
- package/dist/workloads/workload-advanced/props.d.ts +2 -1
- package/dist/workloads/workload-advanced/src/WorkloadAdvanced.vue2.js +2 -2
- package/dist/workloads/workload-advanced/src/WorkloadAdvanced.vue2.mjs +10 -10
- package/dist/workloads/workload-advanced/src/tabs/JobConfig.vue.js +19 -8
- package/dist/workloads/workload-advanced/src/tabs/JobConfig.vue.mjs +20 -9
- package/dist/workloads/workload-advanced/src/tabs/JobConfig.vue2.js +3 -0
- package/dist/workloads/workload-advanced/src/tabs/JobConfig.vue2.mjs +4 -0
- package/dist/workloads/workload-advanced/src/tabs/LabelsAndAnnotations.vue.d.ts +2 -23
- package/dist/workloads/workload-advanced/src/tabs/PodManagement.vue.js +1 -1
- package/dist/workloads/workload-advanced/src/tabs/PodManagement.vue.mjs +1 -1
- package/dist/workloads/workload-annotations/props.d.ts +4 -0
- package/dist/workloads/workload-annotations/props.js +4 -0
- package/dist/workloads/workload-annotations/props.mjs +4 -0
- package/dist/workloads/workload-annotations/src/WorkloadAnnotations.vue.d.ts +9 -0
- package/dist/workloads/workload-annotations/src/WorkloadAnnotations.vue.js +4 -2
- package/dist/workloads/workload-annotations/src/WorkloadAnnotations.vue.mjs +4 -2
- package/dist/workloads/workload-labels/props.d.ts +4 -0
- package/dist/workloads/workload-labels/props.js +4 -0
- package/dist/workloads/workload-labels/props.mjs +4 -0
- package/dist/workloads/workload-labels/src/WorkloadLabels.vue.d.ts +9 -0
- package/dist/workloads/workload-labels/src/WorkloadLabels.vue.js +6 -4
- package/dist/workloads/workload-labels/src/WorkloadLabels.vue.mjs +6 -4
- package/dist/workloads/workload-logs/src/InsightMessage.vue.js +2 -5
- package/dist/workloads/workload-logs/src/InsightMessage.vue.mjs +3 -6
- package/dist/workloads/workload-logs/src/WorkloadLogs.vue.js +8 -2
- package/dist/workloads/workload-logs/src/WorkloadLogs.vue.mjs +9 -3
- package/index.js +7 -0
- package/package.json +16 -10
- package/volar.d.ts +5 -0
- package/dist/components/parameter-configuration/demo/data.d.ts +0 -28
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("@dao-style/biz/dist/styles/components/image-preview/image-preview.css");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("@dao-style/biz/dist/styles/components/radio-button/radio-button.css");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("@dao-style/biz/dist/styles/dialogs/switch-master-node-dialog/switch-master-node-dialog.css");
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { MultiRowEditorValidatorReturn } from '@dao-style/extend';
|
|
2
3
|
import { BaseSchema } from 'yup';
|
|
3
4
|
export type ArrayEditorType = 'input' | 'textarea' | 'number';
|
|
4
|
-
export type ArrayEditorValidator = (data: string[]) =>
|
|
5
|
-
valid: boolean;
|
|
6
|
-
message?: string;
|
|
7
|
-
});
|
|
5
|
+
export type ArrayEditorValidator = (data: string[]) => MultiRowEditorValidatorReturn | Promise<MultiRowEditorValidatorReturn>;
|
|
8
6
|
export declare const arrayEditorProps: {
|
|
9
7
|
modelValue: {
|
|
10
8
|
type: PropType<string[]>;
|
|
@@ -38,6 +36,10 @@ export declare const arrayEditorProps: {
|
|
|
38
36
|
type: BooleanConstructor;
|
|
39
37
|
default: boolean;
|
|
40
38
|
};
|
|
39
|
+
helper: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
41
43
|
};
|
|
42
44
|
export type ArrayEditorProps = ExtractPropTypes<typeof arrayEditorProps>;
|
|
43
45
|
export declare const arrayEditorEmits: {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { MultiRowEditorColumn } from '@dao-style/extend';
|
|
1
|
+
import { MultiRowEditorColumn, MultiRowEditorValidator } from '@dao-style/extend';
|
|
2
2
|
import { ArrayEditorEmits } from '../props';
|
|
3
3
|
import '../style/array-editor';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
modelValue: {
|
|
6
|
+
/**
|
|
7
|
+
* string[] => {[internalKey]: string}[]
|
|
8
|
+
* @param array
|
|
9
|
+
*/
|
|
6
10
|
type: import("vue").PropType<string[]>;
|
|
7
11
|
default: () => never[];
|
|
8
12
|
};
|
|
@@ -34,6 +38,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
38
|
type: BooleanConstructor;
|
|
35
39
|
default: boolean;
|
|
36
40
|
};
|
|
41
|
+
helper: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
37
45
|
}, {
|
|
38
46
|
commandColumns: import("vue").ComputedRef<MultiRowEditorColumn[]>;
|
|
39
47
|
formData: import("vue").Ref<{
|
|
@@ -44,32 +52,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
52
|
$: import("vue").ComponentInternalInstance;
|
|
45
53
|
$data: {};
|
|
46
54
|
$props: Partial<{
|
|
47
|
-
validator:
|
|
55
|
+
validator: MultiRowEditorValidator;
|
|
48
56
|
modelValue: import("@dao-style/extend").MultiRowEditorRow[];
|
|
49
57
|
editable: boolean;
|
|
58
|
+
min: number;
|
|
50
59
|
helper: string;
|
|
51
60
|
showLabel: boolean;
|
|
52
61
|
columns: MultiRowEditorColumn[];
|
|
53
62
|
addText: string;
|
|
54
|
-
addDisabled: boolean |
|
|
63
|
+
addDisabled: boolean | MultiRowEditorValidator | undefined;
|
|
55
64
|
limit: number;
|
|
56
65
|
unremovableRow: import("@dao-style/extend").MultiRowEditorUnremovableRow;
|
|
57
66
|
formWidth: string;
|
|
67
|
+
sortable: boolean;
|
|
68
|
+
numbered: boolean;
|
|
58
69
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
59
70
|
modelValue: {
|
|
60
71
|
type: import("vue").PropType<import("@dao-style/extend").MultiRowEditorRow[]>;
|
|
61
72
|
default: () => never[];
|
|
62
73
|
};
|
|
63
74
|
validator: {
|
|
64
|
-
type: import("vue").PropType<
|
|
65
|
-
default:
|
|
75
|
+
type: import("vue").PropType<MultiRowEditorValidator>;
|
|
76
|
+
default: MultiRowEditorValidator;
|
|
66
77
|
};
|
|
67
78
|
columns: {
|
|
68
79
|
type: import("vue").PropType<MultiRowEditorColumn[]>;
|
|
69
80
|
default: undefined;
|
|
70
81
|
};
|
|
71
82
|
showLabel: {
|
|
72
|
-
type:
|
|
83
|
+
type: BooleanConstructor;
|
|
73
84
|
default: boolean;
|
|
74
85
|
};
|
|
75
86
|
addText: {
|
|
@@ -77,11 +88,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
77
88
|
default: undefined;
|
|
78
89
|
};
|
|
79
90
|
addDisabled: {
|
|
80
|
-
type: import("vue").PropType<boolean |
|
|
91
|
+
type: import("vue").PropType<boolean | MultiRowEditorValidator | undefined>;
|
|
81
92
|
default: undefined;
|
|
82
93
|
};
|
|
83
94
|
limit: {
|
|
84
|
-
type:
|
|
95
|
+
type: NumberConstructor;
|
|
96
|
+
default: number;
|
|
97
|
+
};
|
|
98
|
+
min: {
|
|
99
|
+
type: NumberConstructor;
|
|
85
100
|
default: number;
|
|
86
101
|
};
|
|
87
102
|
unremovableRow: {
|
|
@@ -93,21 +108,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
108
|
default: undefined;
|
|
94
109
|
};
|
|
95
110
|
editable: {
|
|
96
|
-
type:
|
|
111
|
+
type: BooleanConstructor;
|
|
97
112
|
default: boolean;
|
|
98
113
|
};
|
|
99
114
|
helper: {
|
|
100
115
|
type: StringConstructor;
|
|
101
116
|
default: undefined;
|
|
102
117
|
};
|
|
118
|
+
sortable: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
numbered: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
103
126
|
}>> & {
|
|
104
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
105
127
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
128
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
106
129
|
onValid?: ((...args: any[]) => any) | undefined;
|
|
107
130
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
108
131
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
109
132
|
onExceed?: ((...args: any[]) => any) | undefined;
|
|
110
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "
|
|
133
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "showLabel" | "addDisabled" | "validator" | "columns" | "addText" | "limit" | "min" | "unremovableRow" | "formWidth" | "editable" | "helper" | "sortable" | "numbered">;
|
|
111
134
|
$attrs: {
|
|
112
135
|
[x: string]: unknown;
|
|
113
136
|
};
|
|
@@ -127,15 +150,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
127
150
|
default: () => never[];
|
|
128
151
|
};
|
|
129
152
|
validator: {
|
|
130
|
-
type: import("vue").PropType<
|
|
131
|
-
default:
|
|
153
|
+
type: import("vue").PropType<MultiRowEditorValidator>;
|
|
154
|
+
default: MultiRowEditorValidator;
|
|
132
155
|
};
|
|
133
156
|
columns: {
|
|
134
157
|
type: import("vue").PropType<MultiRowEditorColumn[]>;
|
|
135
158
|
default: undefined;
|
|
136
159
|
};
|
|
137
160
|
showLabel: {
|
|
138
|
-
type:
|
|
161
|
+
type: BooleanConstructor;
|
|
139
162
|
default: boolean;
|
|
140
163
|
};
|
|
141
164
|
addText: {
|
|
@@ -143,11 +166,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
166
|
default: undefined;
|
|
144
167
|
};
|
|
145
168
|
addDisabled: {
|
|
146
|
-
type: import("vue").PropType<boolean |
|
|
169
|
+
type: import("vue").PropType<boolean | MultiRowEditorValidator | undefined>;
|
|
147
170
|
default: undefined;
|
|
148
171
|
};
|
|
149
172
|
limit: {
|
|
150
|
-
type:
|
|
173
|
+
type: NumberConstructor;
|
|
174
|
+
default: number;
|
|
175
|
+
};
|
|
176
|
+
min: {
|
|
177
|
+
type: NumberConstructor;
|
|
151
178
|
default: number;
|
|
152
179
|
};
|
|
153
180
|
unremovableRow: {
|
|
@@ -159,16 +186,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
186
|
default: undefined;
|
|
160
187
|
};
|
|
161
188
|
editable: {
|
|
162
|
-
type:
|
|
189
|
+
type: BooleanConstructor;
|
|
163
190
|
default: boolean;
|
|
164
191
|
};
|
|
165
192
|
helper: {
|
|
166
193
|
type: StringConstructor;
|
|
167
194
|
default: undefined;
|
|
168
195
|
};
|
|
196
|
+
sortable: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
numbered: {
|
|
201
|
+
type: BooleanConstructor;
|
|
202
|
+
default: boolean;
|
|
203
|
+
};
|
|
169
204
|
}>> & {
|
|
170
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
171
205
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
206
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
172
207
|
onValid?: ((...args: any[]) => any) | undefined;
|
|
173
208
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
174
209
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
@@ -189,13 +224,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
224
|
realAddDisabled: import("vue").Ref<boolean | undefined>;
|
|
190
225
|
validInfo: {
|
|
191
226
|
isValid: boolean | undefined;
|
|
227
|
+
arraySchemaValidMessage: string;
|
|
192
228
|
validMessage: string | undefined;
|
|
193
229
|
};
|
|
194
230
|
editorRowStyle: import("vue").ComputedRef<{
|
|
195
231
|
width: string | undefined;
|
|
196
232
|
display: string;
|
|
197
233
|
}>;
|
|
198
|
-
|
|
234
|
+
SORT_ID: string;
|
|
235
|
+
NUMBER_ID: string;
|
|
236
|
+
isRowRemovable: (row: import("@dao-style/extend").MultiRowEditorRow) => boolean;
|
|
199
237
|
editorColStyle: (col: MultiRowEditorColumn) => {
|
|
200
238
|
flex: string;
|
|
201
239
|
width: string;
|
|
@@ -204,18 +242,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
242
|
add: () => Promise<void>;
|
|
205
243
|
valid: () => Promise<import("@dao-style/extend").MultiRowEditorValidatorReturn>;
|
|
206
244
|
change: () => void;
|
|
245
|
+
moveUpAt: (index: number) => void;
|
|
246
|
+
moveDownAt: (index: number) => void;
|
|
207
247
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "add" | "remove" | "change" | "valid" | "exceed")[], string, {
|
|
208
|
-
validator:
|
|
248
|
+
validator: MultiRowEditorValidator;
|
|
209
249
|
modelValue: import("@dao-style/extend").MultiRowEditorRow[];
|
|
210
250
|
editable: boolean;
|
|
251
|
+
min: number;
|
|
211
252
|
helper: string;
|
|
212
253
|
showLabel: boolean;
|
|
213
254
|
columns: MultiRowEditorColumn[];
|
|
214
255
|
addText: string;
|
|
215
|
-
addDisabled: boolean |
|
|
256
|
+
addDisabled: boolean | MultiRowEditorValidator | undefined;
|
|
216
257
|
limit: number;
|
|
217
258
|
unremovableRow: import("@dao-style/extend").MultiRowEditorUnremovableRow;
|
|
218
259
|
formWidth: string;
|
|
260
|
+
sortable: boolean;
|
|
261
|
+
numbered: boolean;
|
|
219
262
|
}, {}, string> & {
|
|
220
263
|
beforeCreate?: (() => void) | (() => void)[] | undefined;
|
|
221
264
|
created?: (() => void) | (() => void)[] | undefined;
|
|
@@ -242,15 +285,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
242
285
|
default: () => never[];
|
|
243
286
|
};
|
|
244
287
|
validator: {
|
|
245
|
-
type: import("vue").PropType<
|
|
246
|
-
default:
|
|
288
|
+
type: import("vue").PropType<MultiRowEditorValidator>;
|
|
289
|
+
default: MultiRowEditorValidator;
|
|
247
290
|
};
|
|
248
291
|
columns: {
|
|
249
292
|
type: import("vue").PropType<MultiRowEditorColumn[]>;
|
|
250
293
|
default: undefined;
|
|
251
294
|
};
|
|
252
295
|
showLabel: {
|
|
253
|
-
type:
|
|
296
|
+
type: BooleanConstructor;
|
|
254
297
|
default: boolean;
|
|
255
298
|
};
|
|
256
299
|
addText: {
|
|
@@ -258,11 +301,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
258
301
|
default: undefined;
|
|
259
302
|
};
|
|
260
303
|
addDisabled: {
|
|
261
|
-
type: import("vue").PropType<boolean |
|
|
304
|
+
type: import("vue").PropType<boolean | MultiRowEditorValidator | undefined>;
|
|
262
305
|
default: undefined;
|
|
263
306
|
};
|
|
264
307
|
limit: {
|
|
265
|
-
type:
|
|
308
|
+
type: NumberConstructor;
|
|
309
|
+
default: number;
|
|
310
|
+
};
|
|
311
|
+
min: {
|
|
312
|
+
type: NumberConstructor;
|
|
266
313
|
default: number;
|
|
267
314
|
};
|
|
268
315
|
unremovableRow: {
|
|
@@ -274,16 +321,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
274
321
|
default: undefined;
|
|
275
322
|
};
|
|
276
323
|
editable: {
|
|
277
|
-
type:
|
|
324
|
+
type: BooleanConstructor;
|
|
278
325
|
default: boolean;
|
|
279
326
|
};
|
|
280
327
|
helper: {
|
|
281
328
|
type: StringConstructor;
|
|
282
329
|
default: undefined;
|
|
283
330
|
};
|
|
331
|
+
sortable: {
|
|
332
|
+
type: BooleanConstructor;
|
|
333
|
+
default: boolean;
|
|
334
|
+
};
|
|
335
|
+
numbered: {
|
|
336
|
+
type: BooleanConstructor;
|
|
337
|
+
default: boolean;
|
|
338
|
+
};
|
|
284
339
|
}>> & {
|
|
285
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
286
340
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
341
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
287
342
|
onValid?: ((...args: any[]) => any) | undefined;
|
|
288
343
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
289
344
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
@@ -304,13 +359,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
304
359
|
realAddDisabled: import("vue").Ref<boolean | undefined>;
|
|
305
360
|
validInfo: {
|
|
306
361
|
isValid: boolean | undefined;
|
|
362
|
+
arraySchemaValidMessage: string;
|
|
307
363
|
validMessage: string | undefined;
|
|
308
364
|
};
|
|
309
365
|
editorRowStyle: import("vue").ComputedRef<{
|
|
310
366
|
width: string | undefined;
|
|
311
367
|
display: string;
|
|
312
368
|
}>;
|
|
313
|
-
|
|
369
|
+
SORT_ID: string;
|
|
370
|
+
NUMBER_ID: string;
|
|
371
|
+
isRowRemovable: (row: import("@dao-style/extend").MultiRowEditorRow) => boolean;
|
|
314
372
|
editorColStyle: (col: MultiRowEditorColumn) => {
|
|
315
373
|
flex: string;
|
|
316
374
|
width: string;
|
|
@@ -319,6 +377,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
319
377
|
add: () => Promise<void>;
|
|
320
378
|
valid: () => Promise<import("@dao-style/extend").MultiRowEditorValidatorReturn>;
|
|
321
379
|
change: () => void;
|
|
380
|
+
moveUpAt: (index: number) => void;
|
|
381
|
+
moveDownAt: (index: number) => void;
|
|
322
382
|
}> & import("vue").ComponentCustomProperties & {
|
|
323
383
|
$slots: {
|
|
324
384
|
footer: import("@dao-style/core").ParamsSlotFn<import("@dao-style/extend").MultiRowEditorSlotHandlers>;
|
|
@@ -339,11 +399,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
339
399
|
} & import("@dao-style/extend/dist/components/multi-row-editor/multi-row-editor").MultiEditorExposedTypes) | undefined>;
|
|
340
400
|
validate: () => Promise<true | import("@dao-style/extend").MultiRowEditorValidatorReturn | {
|
|
341
401
|
valid: boolean;
|
|
342
|
-
message?: string | undefined;
|
|
343
402
|
} | undefined>;
|
|
403
|
+
validator: MultiRowEditorValidator;
|
|
344
404
|
internalKey: "";
|
|
345
405
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ArrayEditorEmits, "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
346
406
|
modelValue: {
|
|
407
|
+
/**
|
|
408
|
+
* string[] => {[internalKey]: string}[]
|
|
409
|
+
* @param array
|
|
410
|
+
*/
|
|
347
411
|
type: import("vue").PropType<string[]>;
|
|
348
412
|
default: () => never[];
|
|
349
413
|
};
|
|
@@ -375,6 +439,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
375
439
|
type: BooleanConstructor;
|
|
376
440
|
default: boolean;
|
|
377
441
|
};
|
|
442
|
+
helper: {
|
|
443
|
+
type: StringConstructor;
|
|
444
|
+
default: undefined;
|
|
445
|
+
};
|
|
378
446
|
}>> & {
|
|
379
447
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
380
448
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -384,8 +452,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
384
452
|
type: import("../props").ArrayEditorType;
|
|
385
453
|
schema: import("yup").BaseSchema<any, import("yup/lib/types").AnyObject, any>;
|
|
386
454
|
placeholder: string;
|
|
455
|
+
helper: string;
|
|
456
|
+
unique: boolean;
|
|
387
457
|
width: string;
|
|
388
458
|
extraValidator: import("../props").ArrayEditorValidator;
|
|
389
|
-
unique: boolean;
|
|
390
459
|
}>;
|
|
391
460
|
export default _default;
|
|
@@ -16,44 +16,54 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16
16
|
columns: _ctx.commandColumns,
|
|
17
17
|
class: "dao-array-editor",
|
|
18
18
|
editable: !_ctx.readonly,
|
|
19
|
-
"form-width": _ctx.width
|
|
19
|
+
"form-width": _ctx.width,
|
|
20
|
+
helper: _ctx.helper,
|
|
21
|
+
validator: _ctx.validator
|
|
20
22
|
}, vue.createSlots({
|
|
21
|
-
[`col-${_ctx.internalKey}`]: vue.withCtx(({ row, column, info, handleValid }) => [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
readonly:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
23
|
+
[`col-${_ctx.internalKey}`]: vue.withCtx(({ row, rowIndex, column, info, handleValid }) => [
|
|
24
|
+
vue.renderSlot(_ctx.$slots, "default", {
|
|
25
|
+
row,
|
|
26
|
+
rowIndex,
|
|
27
|
+
column,
|
|
28
|
+
info,
|
|
29
|
+
handleValid
|
|
30
|
+
}, () => [
|
|
31
|
+
_ctx.type === "input" ? (vue.openBlock(), vue.createBlock(_component_dao_input, {
|
|
32
|
+
key: 0,
|
|
33
|
+
modelValue: row[_ctx.internalKey],
|
|
34
|
+
"onUpdate:modelValue": ($event) => row[_ctx.internalKey] = $event,
|
|
35
|
+
placeholder: column.placeholder,
|
|
36
|
+
readonly: _ctx.readonly,
|
|
37
|
+
disabled: _ctx.readonly,
|
|
38
|
+
status: (info == null ? void 0 : info.valid) === false ? "error" : void 0,
|
|
39
|
+
block: "",
|
|
40
|
+
onChange: handleValid
|
|
41
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "status", "onChange"])) : vue.createCommentVNode("", true),
|
|
42
|
+
_ctx.type === "number" ? (vue.openBlock(), vue.createBlock(_component_dao_input, {
|
|
43
|
+
key: 1,
|
|
44
|
+
modelValue: row[_ctx.internalKey],
|
|
45
|
+
"onUpdate:modelValue": ($event) => row[_ctx.internalKey] = $event,
|
|
46
|
+
type: "number",
|
|
47
|
+
placeholder: column.placeholder,
|
|
48
|
+
readonly: _ctx.readonly,
|
|
49
|
+
disabled: _ctx.readonly,
|
|
50
|
+
status: (info == null ? void 0 : info.valid) === false ? "error" : void 0,
|
|
51
|
+
block: "",
|
|
52
|
+
onChange: handleValid
|
|
53
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "status", "onChange"])) : _ctx.type === "textarea" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", {
|
|
54
|
+
key: 2,
|
|
55
|
+
"onUpdate:modelValue": ($event) => row[_ctx.internalKey] = $event,
|
|
56
|
+
placeholder: column.placeholder,
|
|
57
|
+
disabled: _ctx.readonly,
|
|
58
|
+
class: vue.normalizeClass([{
|
|
59
|
+
"dao-textarea": true,
|
|
60
|
+
"dao-textarea--error": (info == null ? void 0 : info.valid) === false
|
|
61
|
+
}, "dao-array-editor__textarea"]),
|
|
62
|
+
onChange: handleValid
|
|
63
|
+
}, null, 42, _hoisted_1)), [
|
|
64
|
+
[vue.vModelText, row[_ctx.internalKey]]
|
|
65
|
+
]) : vue.createCommentVNode("", true)
|
|
66
|
+
])
|
|
57
67
|
]),
|
|
58
68
|
_: 2
|
|
59
69
|
}, [
|
|
@@ -64,7 +74,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
64
74
|
]),
|
|
65
75
|
key: "0"
|
|
66
76
|
} : void 0
|
|
67
|
-
]), 1032, ["modelValue", "columns", "editable", "form-width", "onUpdate:modelValue"]);
|
|
77
|
+
]), 1032, ["modelValue", "columns", "editable", "form-width", "helper", "validator", "onUpdate:modelValue"]);
|
|
68
78
|
}
|
|
69
79
|
const DaoArrayEditor = /* @__PURE__ */ _pluginVue_exportHelper(ArrayEditor_vue_vue_type_script_lang, [["render", _sfc_render]]);
|
|
70
80
|
module.exports = DaoArrayEditor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _sfc_main from "./ArrayEditor.vue2.mjs";
|
|
2
|
-
import { resolveComponent, openBlock, createBlock, createSlots, withCtx, createCommentVNode, withDirectives, createElementBlock, normalizeClass, vModelText,
|
|
2
|
+
import { resolveComponent, openBlock, createBlock, createSlots, withCtx, renderSlot, createCommentVNode, withDirectives, createElementBlock, normalizeClass, vModelText, 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) {
|
|
@@ -15,44 +15,54 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15
15
|
columns: _ctx.commandColumns,
|
|
16
16
|
class: "dao-array-editor",
|
|
17
17
|
editable: !_ctx.readonly,
|
|
18
|
-
"form-width": _ctx.width
|
|
18
|
+
"form-width": _ctx.width,
|
|
19
|
+
helper: _ctx.helper,
|
|
20
|
+
validator: _ctx.validator
|
|
19
21
|
}, createSlots({
|
|
20
|
-
[`col-${_ctx.internalKey}`]: withCtx(({ row, column, info, handleValid }) => [
|
|
21
|
-
_ctx
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
22
|
+
[`col-${_ctx.internalKey}`]: withCtx(({ row, rowIndex, column, info, handleValid }) => [
|
|
23
|
+
renderSlot(_ctx.$slots, "default", {
|
|
24
|
+
row,
|
|
25
|
+
rowIndex,
|
|
26
|
+
column,
|
|
27
|
+
info,
|
|
28
|
+
handleValid
|
|
29
|
+
}, () => [
|
|
30
|
+
_ctx.type === "input" ? (openBlock(), createBlock(_component_dao_input, {
|
|
31
|
+
key: 0,
|
|
32
|
+
modelValue: row[_ctx.internalKey],
|
|
33
|
+
"onUpdate:modelValue": ($event) => row[_ctx.internalKey] = $event,
|
|
34
|
+
placeholder: column.placeholder,
|
|
35
|
+
readonly: _ctx.readonly,
|
|
36
|
+
disabled: _ctx.readonly,
|
|
37
|
+
status: (info == null ? void 0 : info.valid) === false ? "error" : void 0,
|
|
38
|
+
block: "",
|
|
39
|
+
onChange: handleValid
|
|
40
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "status", "onChange"])) : createCommentVNode("", true),
|
|
41
|
+
_ctx.type === "number" ? (openBlock(), createBlock(_component_dao_input, {
|
|
42
|
+
key: 1,
|
|
43
|
+
modelValue: row[_ctx.internalKey],
|
|
44
|
+
"onUpdate:modelValue": ($event) => row[_ctx.internalKey] = $event,
|
|
45
|
+
type: "number",
|
|
46
|
+
placeholder: column.placeholder,
|
|
47
|
+
readonly: _ctx.readonly,
|
|
48
|
+
disabled: _ctx.readonly,
|
|
49
|
+
status: (info == null ? void 0 : info.valid) === false ? "error" : void 0,
|
|
50
|
+
block: "",
|
|
51
|
+
onChange: handleValid
|
|
52
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "status", "onChange"])) : _ctx.type === "textarea" ? withDirectives((openBlock(), createElementBlock("textarea", {
|
|
53
|
+
key: 2,
|
|
54
|
+
"onUpdate:modelValue": ($event) => row[_ctx.internalKey] = $event,
|
|
55
|
+
placeholder: column.placeholder,
|
|
56
|
+
disabled: _ctx.readonly,
|
|
57
|
+
class: normalizeClass([{
|
|
58
|
+
"dao-textarea": true,
|
|
59
|
+
"dao-textarea--error": (info == null ? void 0 : info.valid) === false
|
|
60
|
+
}, "dao-array-editor__textarea"]),
|
|
61
|
+
onChange: handleValid
|
|
62
|
+
}, null, 42, _hoisted_1)), [
|
|
63
|
+
[vModelText, row[_ctx.internalKey]]
|
|
64
|
+
]) : createCommentVNode("", true)
|
|
65
|
+
])
|
|
56
66
|
]),
|
|
57
67
|
_: 2
|
|
58
68
|
}, [
|
|
@@ -63,7 +73,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63
73
|
]),
|
|
64
74
|
key: "0"
|
|
65
75
|
} : void 0
|
|
66
|
-
]), 1032, ["modelValue", "columns", "editable", "form-width", "onUpdate:modelValue"]);
|
|
76
|
+
]), 1032, ["modelValue", "columns", "editable", "form-width", "helper", "validator", "onUpdate:modelValue"]);
|
|
67
77
|
}
|
|
68
78
|
const DaoArrayEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
69
79
|
export {
|