@dovetail-v2/refine 0.0.27 → 0.0.28-alpha.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/{MonacoYamlDiffEditor-b06840cc.js → MonacoYamlDiffEditor-a06e0978.js} +5 -5
- package/dist/{index-56189b86.js → index-5213b638.js} +15088 -9839
- package/dist/refine.js +173 -106
- package/dist/refine.umd.cjs +14991 -9742
- package/dist/style.css +99 -50
- package/lib/src/Dovetail.d.ts +3 -0
- package/lib/src/components/CronJobDropdown/index.d.ts +2 -0
- package/lib/src/components/CronjobJobsTable/index.d.ts +1 -0
- package/lib/src/components/DurationTime/index.d.ts +6 -0
- package/lib/src/components/ErrorContent/index.d.ts +6 -1
- package/lib/src/components/Form/FormModal.d.ts +9 -0
- package/lib/src/components/Form/RefineFormContent.d.ts +12 -0
- package/lib/src/components/Form/RefineFormPage.d.ts +7 -0
- package/lib/src/components/Form/YamlForm.d.ts +26 -0
- package/lib/src/components/Form/index.d.ts +7 -4
- package/lib/src/components/Form/type.d.ts +14 -0
- package/lib/src/components/Form/useReactHookForm.d.ts +29 -0
- package/lib/src/components/Form/useRefineForm.d.ts +10 -0
- package/lib/src/components/Form/useYamlForm.d.ts +51 -0
- package/lib/src/components/FormErrorAlert/index.d.ts +1 -0
- package/lib/src/components/FormWidgets/KeyValueListWidget.d.ts +6 -0
- package/lib/src/components/FormWidgets/MetadataForm.d.ts +2 -0
- package/lib/src/components/FormWidgets/NameInputWidget.d.ts +51 -0
- package/lib/src/components/FormWidgets/NamespaceSelectWidget.d.ts +9 -0
- package/lib/src/components/FormWidgets/widget.d.ts +5 -0
- package/lib/src/components/ImageNames/index.d.ts +1 -0
- package/lib/src/components/K8sDropdown/index.d.ts +2 -0
- package/lib/src/components/KeyValue/KeyValue.d.ts +6 -5
- package/lib/src/components/KeyValue/KeyValueAnnotation.d.ts +6 -0
- package/lib/src/components/KeyValue/KeyValueSecret.d.ts +5 -0
- package/lib/src/components/KeyValue/index.d.ts +2 -0
- package/lib/src/components/ListPage/index.d.ts +0 -1
- package/lib/src/components/ModalContextProvider/index.d.ts +12 -0
- package/lib/src/components/NamespacesFilter/index.d.ts +6 -2
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +2 -1
- package/lib/src/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +8 -0
- package/lib/src/components/NetworkPolicyRulesViewer/index.d.ts +1 -0
- package/lib/src/components/PodSelectorTable/index.d.ts +6 -0
- package/lib/src/components/PortsTable/index.d.ts +7 -0
- package/lib/src/components/ReplicasDropdown/index.d.ts +9 -0
- package/lib/src/components/ResourceCRUD/ResourceCRUD.d.ts +1 -1
- package/lib/src/components/ResourceCRUD/list/index.d.ts +3 -7
- package/lib/src/components/ResourceCRUD/show/index.d.ts +3 -7
- package/lib/src/components/ServiceComponents/index.d.ts +11 -0
- package/lib/src/components/ShowContent/ShowContent.d.ts +7 -0
- package/lib/src/components/ShowContent/fields.d.ts +43 -26
- package/lib/src/components/ShowContent/groups.d.ts +22 -0
- package/lib/src/components/ShowContent/index.d.ts +2 -0
- package/lib/src/components/ShowContent/tabs.d.ts +5 -0
- package/lib/src/components/StateTag/StateTag.d.ts +2 -0
- package/lib/src/components/Table/TableToolBar.d.ts +1 -1
- package/lib/src/components/Table/index.d.ts +18 -8
- package/lib/src/components/Tabs/index.d.ts +10 -0
- package/lib/src/components/TextTags/index.d.ts +6 -0
- package/lib/src/components/Time/index.d.ts +3 -4
- package/lib/src/components/ValueDisplay/index.d.ts +9 -0
- package/lib/src/components/WorkloadDropdown/index.d.ts +4 -2
- package/lib/src/components/WorkloadReplicas/index.d.ts +14 -5
- package/lib/src/components/YamlForm/index.d.ts +6 -0
- package/lib/src/components/index.d.ts +7 -4
- package/lib/src/constants/auth.d.ts +5 -0
- package/lib/src/constants/index.d.ts +1 -0
- package/lib/src/constants/k8s.d.ts +289 -89
- package/lib/src/constants/state.d.ts +2 -1
- package/lib/src/contexts/component.d.ts +2 -0
- package/lib/src/hooks/index.d.ts +1 -1
- package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +2 -2
- package/lib/src/hooks/useDownloadYAML.d.ts +1 -1
- package/lib/src/hooks/useEagleForm.d.ts +2 -1
- package/lib/src/hooks/useEagleTable/columns.d.ts +19 -3
- package/lib/src/hooks/useEagleTable/useEagleTable.d.ts +4 -0
- package/lib/src/hooks/useModal.d.ts +0 -0
- package/lib/src/hooks/useOpenForm.d.ts +3 -0
- package/lib/src/hooks/useTableData.d.ts +18 -0
- package/lib/src/i18n.d.ts +181 -14
- package/lib/src/index.d.ts +0 -1
- package/lib/src/locales/en-US/index.d.ts +104 -1
- package/lib/src/locales/zh-CN/index.d.ts +76 -13
- package/lib/src/model/cronjob-model.d.ts +9 -0
- package/lib/src/model/index.d.ts +6 -0
- package/lib/src/model/job-model.d.ts +10 -0
- package/lib/src/model/pod-metrics-model.d.ts +7 -0
- package/lib/src/model/pod-model.d.ts +15 -0
- package/lib/src/model/resource-model.d.ts +17 -0
- package/lib/src/model/workload-model.d.ts +17 -0
- package/lib/src/models/daemonset-model.d.ts +3 -1
- package/lib/src/models/deployment-model.d.ts +1 -1
- package/lib/src/models/index.d.ts +1 -0
- package/lib/src/models/ingress-model.d.ts +5 -3
- package/lib/src/models/job-model.d.ts +2 -0
- package/lib/src/models/service-model.d.ts +14 -1
- package/lib/src/models/statefulset-model.d.ts +1 -1
- package/lib/src/pages/deployments/index.d.ts +0 -1
- package/lib/src/pages/services/index.d.ts +2 -2
- package/lib/src/pages/statefulsets/index.d.ts +4 -3
- package/lib/src/types/metric.d.ts +25 -0
- package/lib/src/types/resource.d.ts +22 -4
- package/package.json +12 -10
- package/lib/src/App.js +0 -91
- package/lib/src/Dovetail.js +0 -45
- package/lib/src/components/Breadcrumb/index.js +0 -20
- package/lib/src/components/ConditionsTable/ConditionsTable.js +0 -56
- package/lib/src/components/ConditionsTable/index.js +0 -1
- package/lib/src/components/CreateButton/index.js +0 -10
- package/lib/src/components/CronJobDropdown/index.js +0 -26
- package/lib/src/components/CronjobJobsTable/index.js +0 -49
- package/lib/src/components/DeleteButton/index.js +0 -13
- package/lib/src/components/DeleteManyButton/index.js +0 -16
- package/lib/src/components/DrawerShow/DrawerShow.js +0 -13
- package/lib/src/components/DrawerShow/index.js +0 -1
- package/lib/src/components/EditButton/index.js +0 -13
- package/lib/src/components/EditField/index.js +0 -47
- package/lib/src/components/ErrorContent/index.js +0 -36
- package/lib/src/components/EventsTable/EventsTable.js +0 -59
- package/lib/src/components/EventsTable/index.js +0 -1
- package/lib/src/components/Form/KeyValueListWidget.js +0 -56
- package/lib/src/components/Form/MetadataForm.js +0 -9
- package/lib/src/components/Form/NameInputWidget.js +0 -50
- package/lib/src/components/Form/NamespaceSelectWidget.js +0 -21
- package/lib/src/components/Form/widget.js +0 -1
- package/lib/src/components/FormErrorAlert/index.js +0 -8
- package/lib/src/components/FormLayout/index.js +0 -21
- package/lib/src/components/FormModal/index.js +0 -51
- package/lib/src/components/ImageNames/index.js +0 -14
- package/lib/src/components/IngressRulesComponent/index.js +0 -11
- package/lib/src/components/IngressRulesTable/IngressRulesTable.js +0 -51
- package/lib/src/components/IngressRulesTable/index.js +0 -1
- package/lib/src/components/K8sDropdown/index.js +0 -31
- package/lib/src/components/KeyValue/KeyValue.js +0 -27
- package/lib/src/components/KeyValue/index.js +0 -1
- package/lib/src/components/KeyValueData/index.js +0 -50
- package/lib/src/components/Layout/index.js +0 -39
- package/lib/src/components/ListPage/index.js +0 -25
- package/lib/src/components/Menu/index.js +0 -36
- package/lib/src/components/NamespacesFilter/index.js +0 -34
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.js +0 -77
- package/lib/src/components/NetworkPolicyRulesTable/index.js +0 -1
- package/lib/src/components/PageShow/PageShow.js +0 -11
- package/lib/src/components/PageShow/index.js +0 -1
- package/lib/src/components/PodContainersTable/PodContainersTable.js +0 -78
- package/lib/src/components/PodContainersTable/index.js +0 -1
- package/lib/src/components/PodLog/index.js +0 -136
- package/lib/src/components/ReferenceLink/index.js +0 -17
- package/lib/src/components/ResourceCRUD/ResourceCRUD.js +0 -15
- package/lib/src/components/ResourceCRUD/create/index.js +0 -13
- package/lib/src/components/ResourceCRUD/index.js +0 -4
- package/lib/src/components/ResourceCRUD/list/index.js +0 -19
- package/lib/src/components/ResourceCRUD/show/index.js +0 -6
- package/lib/src/components/ResourceLink/index.js +0 -21
- package/lib/src/components/ResourceUsageBar/index.js +0 -81
- package/lib/src/components/Separator/index.js +0 -11
- package/lib/src/components/ShowContent/ShowContent.js +0 -157
- package/lib/src/components/ShowContent/fields.js +0 -157
- package/lib/src/components/ShowContent/index.js +0 -2
- package/lib/src/components/StateTag/StateTag.js +0 -22
- package/lib/src/components/StateTag/index.js +0 -1
- package/lib/src/components/Table/ErrorContent.js +0 -36
- package/lib/src/components/Table/TableToolBar.js +0 -14
- package/lib/src/components/Table/TableWidgets.js +0 -28
- package/lib/src/components/Table/index.js +0 -69
- package/lib/src/components/Tags/index.js +0 -22
- package/lib/src/components/Time/index.js +0 -14
- package/lib/src/components/WorkloadDropdown/index.js +0 -24
- package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.js +0 -39
- package/lib/src/components/WorkloadPodsTable/index.js +0 -1
- package/lib/src/components/WorkloadReplicas/index.js +0 -50
- package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.js +0 -34
- package/lib/src/components/YamlEditor/MonacoYamlEditor.js +0 -149
- package/lib/src/components/YamlEditor/YamlEditorComponent.js +0 -90
- package/lib/src/components/YamlEditor/index.js +0 -1
- package/lib/src/components/YamlEditor/style.js +0 -102
- package/lib/src/components/YamlEditor/yaml.worker.js +0 -1
- package/lib/src/components/YamlForm/index.js +0 -61
- package/lib/src/components/index.js +0 -38
- package/lib/src/constants/index.js +0 -2
- package/lib/src/constants/k8s.js +0 -203
- package/lib/src/constants/state.js +0 -15
- package/lib/src/contexts/component.js +0 -3
- package/lib/src/contexts/configs.js +0 -3
- package/lib/src/contexts/global-store.js +0 -3
- package/lib/src/contexts/index.js +0 -3
- package/lib/src/hooks/index.js +0 -7
- package/lib/src/hooks/useDeleteModal/index.js +0 -1
- package/lib/src/hooks/useDeleteModal/useDeleteManyModal.js +0 -31
- package/lib/src/hooks/useDeleteModal/useDeleteModal.js +0 -38
- package/lib/src/hooks/useDownloadYAML.js +0 -10
- package/lib/src/hooks/useEagleForm.js +0 -177
- package/lib/src/hooks/useEagleTable/columns.js +0 -246
- package/lib/src/hooks/useEagleTable/index.js +0 -2
- package/lib/src/hooks/useEagleTable/useEagleTable.js +0 -63
- package/lib/src/hooks/useEdit.js +0 -19
- package/lib/src/hooks/useGlobalStore.js +0 -5
- package/lib/src/hooks/useK8sYamlEditor.js +0 -37
- package/lib/src/hooks/useOpenForm.js +0 -43
- package/lib/src/hooks/useSchema.js +0 -37
- package/lib/src/hooks/useSubmitForm.js +0 -42
- package/lib/src/i18n.js +0 -18
- package/lib/src/index.js +0 -13
- package/lib/src/locales/en-US/dovetail.json +0 -18
- package/lib/src/locales/en-US/index.js +0 -4
- package/lib/src/locales/index.js +0 -2
- package/lib/src/locales/zh-CN/dovetail.json +0 -91
- package/lib/src/locales/zh-CN/index.js +0 -4
- package/lib/src/main.js +0 -12
- package/lib/src/models/cronjob-model.js +0 -32
- package/lib/src/models/daemonset-model.js +0 -17
- package/lib/src/models/deployment-model.js +0 -17
- package/lib/src/models/event-model.js +0 -11
- package/lib/src/models/index.js +0 -14
- package/lib/src/models/ingress-model.js +0 -24
- package/lib/src/models/job-model.js +0 -56
- package/lib/src/models/network-policy-model.js +0 -10
- package/lib/src/models/pod-metrics-model.js +0 -34
- package/lib/src/models/pod-model.js +0 -78
- package/lib/src/models/resource-model.js +0 -34
- package/lib/src/models/service-model.js +0 -17
- package/lib/src/models/statefulset-model.js +0 -17
- package/lib/src/models/types/index.js +0 -1
- package/lib/src/models/types/metric.js +0 -1
- package/lib/src/models/workload-base-model.js +0 -22
- package/lib/src/models/workload-model.js +0 -51
- package/lib/src/pages/configmaps/index.js +0 -15
- package/lib/src/pages/cronjobs/create/index.js +0 -6
- package/lib/src/pages/cronjobs/index.js +0 -3
- package/lib/src/pages/cronjobs/list/index.js +0 -42
- package/lib/src/pages/cronjobs/show/index.js +0 -16
- package/lib/src/pages/daemonsets/create/index.js +0 -6
- package/lib/src/pages/daemonsets/index.js +0 -3
- package/lib/src/pages/daemonsets/list/index.js +0 -32
- package/lib/src/pages/daemonsets/show/index.js +0 -16
- package/lib/src/pages/deployments/create/index.js +0 -7
- package/lib/src/pages/deployments/index.js +0 -3
- package/lib/src/pages/deployments/list/index.js +0 -26
- package/lib/src/pages/deployments/show/index.js +0 -16
- package/lib/src/pages/ingresses/index.js +0 -26
- package/lib/src/pages/jobs/index.js +0 -34
- package/lib/src/pages/networkPolicies/index.js +0 -67
- package/lib/src/pages/pods/create/index.js +0 -6
- package/lib/src/pages/pods/index.js +0 -3
- package/lib/src/pages/pods/list/index.js +0 -81
- package/lib/src/pages/pods/show/index.js +0 -54
- package/lib/src/pages/secrets/index.js +0 -15
- package/lib/src/pages/services/index.js +0 -26
- package/lib/src/pages/statefulsets/create/index.js +0 -6
- package/lib/src/pages/statefulsets/index.js +0 -3
- package/lib/src/pages/statefulsets/list/index.js +0 -26
- package/lib/src/pages/statefulsets/show/index.js +0 -16
- package/lib/src/plugins/index.js +0 -3
- package/lib/src/plugins/model-plugin.js +0 -46
- package/lib/src/plugins/relation-plugin.js +0 -81
- package/lib/src/plugins/type.js +0 -1
- package/lib/src/providers/index.js +0 -1
- package/lib/src/providers/router-provider/index.js +0 -100
- package/lib/src/types/index.js +0 -1
- package/lib/src/types/resource.js +0 -12
- package/lib/src/utils/addId.js +0 -8
- package/lib/src/utils/download.js +0 -9
- package/lib/src/utils/error.js +0 -53
- package/lib/src/utils/form.js +0 -9
- package/lib/src/utils/k8s.js +0 -6
- package/lib/src/utils/labels.js +0 -15
- package/lib/src/utils/match-selector.js +0 -12
- package/lib/src/utils/openapi.js +0 -33
- package/lib/src/utils/schema.js +0 -117
- package/lib/src/utils/selector.js +0 -12
- package/lib/src/utils/string.js +0 -6
- package/lib/src/utils/time.js +0 -46
- package/lib/src/utils/unit.js +0 -69
- package/lib/src/utils/yaml.js +0 -44
- package/lib/vite.config.js +0 -60
- /package/lib/src/components/{Form/index.js → FormWidgets/index.d.ts} +0 -0
package/dist/style.css
CHANGED
|
@@ -1,56 +1,68 @@
|
|
|
1
|
+
.t1vq0ett{margin-bottom:4px;}
|
|
2
|
+
.t139onst{color:rgba(44,56,82,0.60);}
|
|
3
|
+
.n18lzor8.ant-tag.ant-tag-gray{background-color:rgba(237,241,250,.6);border:1px solid rgba(211,218,235,.6);color:#00122e;}
|
|
4
|
+
.mvvgkkc.ant-modal.normal-modal .ant-modal-content{width:492px;border-radius:16px;}.mvvgkkc.ant-modal.normal-modal .ant-modal-body{padding:32px 40px;min-height:160px;}.mvvgkkc.ant-modal.normal-modal .ant-modal-header{border-radius:16px 16px 0 0;padding:32px 40px;padding-bottom:0;}.mvvgkkc.ant-modal.normal-modal .ant-modal-footer{padding:24px 40px;}.mvvgkkc.ant-modal.normal-modal .ant-modal-close-x{top:35px;right:40px;}
|
|
5
|
+
.e5223w8.e5223w8{color:rgba(0,21,64,.3);}
|
|
6
|
+
.cdjsw14{width:100%;}.cdjsw14.overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
1
7
|
.b142d7q8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.b142d7q8 .breadcrumb-item:not(:last-of-type):after{content:'>';margin:0 8px;}
|
|
2
|
-
.
|
|
3
|
-
.
|
|
8
|
+
.egn3dbn{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;}
|
|
9
|
+
.e136jgy8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.e136jgy8 .title{margin-bottom:8px;}.e136jgy8 .title.widget{background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(211.41deg,#929dad 0%,#d3dbe3 100%);}.e136jgy8 .title.list{color:rgba(44,56,82,0.60);}.e136jgy8 .title.card{color:rgba(0,21,64,0.30);}
|
|
4
10
|
.ax1qopv{position:absolute;top:0;left:0;bottom:0;width:1px;background:$blue-60;-webkit-transform:translateX(-9999px);-ms-transform:translateX(-9999px);transform:translateX(-9999px);z-index:999;}.ax1qopv::before{content:'';position:absolute;height:34px;width:3px;top:0;left:-1px;background:$blue-60;}
|
|
5
11
|
.t1upn1sz{width:100%;border-top:1px solid rgba(211,218,235,0.6);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.t1upn1sz .ant-table-pagination{display:none;}.t1upn1sz .table-container{min-height:0;}
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
9
|
-
.
|
|
10
|
-
.
|
|
11
|
-
.
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.
|
|
15
|
-
.
|
|
16
|
-
.
|
|
17
|
-
.
|
|
18
|
-
|
|
19
|
-
.
|
|
20
|
-
.
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
.
|
|
24
|
-
.
|
|
25
|
-
.
|
|
26
|
-
.
|
|
27
|
-
.
|
|
12
|
+
.b1vtjd4k.ant-btn.ant-btn-link{display:block;}
|
|
13
|
+
.luro4rx.ant-btn.ant-btn-link{line-height:18px;height:18px;}
|
|
14
|
+
.t13a6vox{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;gap:8px 8px;}
|
|
15
|
+
.t12ikbmp.ant-tag{overflow:hidden;text-overflow:ellipsis;color:#1D326C;}.t12ikbmp.ant-tag.outside-tag{background-color:rgba(211,218,235,0.60);}.t12ikbmp.ant-tag .inside-tag{background-color:rgba(192,203,224,0.60);}
|
|
16
|
+
.s8qkbck.ant-tag{padding:3px 16px;height:24px;}.s8qkbck.no-background{background-color:transparent !important;padding:0;}
|
|
17
|
+
.t19ustft{display:inline-block;line-height:18px;height:18px;border-bottom:1px dashed rgba(107,128,167,0.6);}
|
|
18
|
+
.sj0ggy.ant-select .ant-select-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden;gap:4px;}.sj0ggy.ant-select .ant-select-selector > span{max-width:calc(100% - 76px);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}.sj0ggy.ant-select .ant-select-selection-search{display:none;}.sj0ggy.ant-select .zoom-leave{opacity:0;position:absolute;}
|
|
19
|
+
.d1eo8uqs{border-radius:6px;}
|
|
20
|
+
.s64gojc.s64gojc.ant-input-affix-wrapper{border:unset;border-bottom:1px solid rgba(211,218,235,.6);border-radius:unset;box-shadow:unset;outline:unset;padding:5px 18px;}.s64gojc.s64gojc.ant-input-affix-wrapper:hover,.s64gojc.s64gojc.ant-input-affix-wrapper:focus{box-shadow:unset;outline:unset;}
|
|
21
|
+
.s16fqgtu .ant-select-item-group{border-bottom:1px solid rgba(211,218,235,0.6);min-height:0;padding:0;overflow:hidden;margin:6px 0;}
|
|
22
|
+
.tgaujbg{max-width:100%;margin-right:0 !important;}
|
|
23
|
+
.c1vbd54v{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-right:0;}
|
|
24
|
+
|
|
25
|
+
.lqrghwd{margin-right:8px;}
|
|
26
|
+
.api7z1z{border-radius:4px;margin:6px;margin-bottom:0;padding:4px 8px 4px 12px;}
|
|
27
|
+
.o38b23x.ant-select-item{margin:0 6px;border-radius:4px;padding:4px 8px 4px 12px;}.o38b23x.ant-select-item:not(:last-of-type){margin-bottom:3px;}.o38b23x.ant-select-item:last-of-type{margin-bottom:6px;}
|
|
28
|
+
.t1v3ienx{padding:12px 24px;}
|
|
29
|
+
.tgejfwe{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;}
|
|
30
|
+
.tq6dc79{color:#00122E;}
|
|
31
|
+
.d1wqyhgc{color:rgba(44,56,82,0.75);}
|
|
32
|
+
.w16agr8o.ant-space{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}
|
|
33
|
+
.i1u1f5zp{white-space:pre-line;}
|
|
34
|
+
.c8jy7dc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:8px 10px;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:8px;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;border-radius:4px;background:rgba(237,241,250,0.6);}.c8jy7dc:not(:last-of-type){margin-bottom:8px;}
|
|
35
|
+
.k2sddxl{color:rgba(44,56,82,0.6);width:calc(30% - 4px);margin-right:8px;word-break:break-all;}
|
|
36
|
+
.v16vicsr{word-break:break-all;white-space:pre-wrap;width:calc(70% - 4px);}
|
|
37
|
+
.w14056kz{width:100%;}
|
|
38
|
+
.hisq2gt{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.hisq2gt.expanded{margin-bottom:8px;}
|
|
39
|
+
.h11urhaw{margin-right:8px;line-height:18px;}
|
|
40
|
+
.e1i58tpl.ant-btn.ant-btn-link{height:18px;line-height:18px;font-size:12px;}
|
|
41
|
+
.s9agep2{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background:linear-gradient(180deg,#fff 0%,#edf0f7 100%);}.s9agep2 .ant-row{margin-right:0 !important;}
|
|
42
|
+
.bo89gfi{color:rgba(0,21,64,0.3);line-height:18px;cursor:pointer;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;}.bo89gfi:hover{color:#0080FF;}
|
|
43
|
+
.t1ohe42f{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:16px 24px 8px 24px;background-color:#fff;}
|
|
44
|
+
.nqm4qz0{color:#00122E;margin-right:8px;}
|
|
45
|
+
.ticl0qc{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;}
|
|
46
|
+
.so9uwk1{width:100%;}
|
|
47
|
+
.ge26ou0{padding:12px 16px;padding-bottom:8px;border-radius:8px;border:1px solid rgba(211,218,235,0.6);box-shadow: 0px 0px 2.003px 0px rgba(107,125,153,0.15), 0px 0px 16px 0px rgba(107,125,153,0.08);background-color:#fff;margin:0 24px;overflow:auto;width:calc(100% - 48px);max-width:1592px;}.ge26ou0:first-of-type{margin-top:16px;}.ge26ou0:not(:last-of-type){margin-bottom:24px;}.ge26ou0 .pagination-wrapper{padding-top:12px;padding-bottom:0;}
|
|
48
|
+
.g17f8vl9{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#1d326c;margin-bottom:12px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
|
|
49
|
+
.fykgn2i{background-color:#fff;height:100%;}
|
|
50
|
+
.fngr745{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}
|
|
51
|
+
.t11wg61l{padding-bottom:16px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-width:904px;}
|
|
52
|
+
.v1x3rivf{color:#00122E;}
|
|
53
|
+
.tf5s6s.ant-tabs{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.tf5s6s.ant-tabs .ant-tabs-nav{margin-bottom:0;margin-right:24px;}.tf5s6s.ant-tabs .ant-tabs-nav-list{margin-left:24px;}.tf5s6s.ant-tabs .ant-tabs-content-holder{overflow:auto;}.tf5s6s.ant-tabs .ant-tabs-content-holder .ant-tabs-content,.tf5s6s.ant-tabs .ant-tabs-content-holder .ant-tabs-tabpane-active{height:100%;}
|
|
54
|
+
.b11tbgf7.ant-btn-quiet.ant-btn{color:rgba(44,56,82,0.75);}
|
|
28
55
|
.c1dicff8{width:100%;vertical-align:top;}
|
|
29
|
-
.esoz3jw
|
|
30
|
-
.
|
|
31
|
-
.
|
|
32
|
-
.
|
|
33
|
-
.
|
|
34
|
-
.
|
|
35
|
-
.
|
|
36
|
-
.
|
|
37
|
-
.
|
|
38
|
-
.
|
|
39
|
-
.s9agep2 .ant-row{margin-right:0 !important;}
|
|
40
|
-
.to89gfi{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;}
|
|
41
|
-
.s1ohe42f{width:100%;height:100%;}
|
|
42
|
-
.eqm4qz0{margin-top:16px;}
|
|
43
|
-
.ficl0qc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}
|
|
44
|
-
.to9uwk1.ant-tabs .ant-tabs-nav{margin-bottom:0;}
|
|
45
|
-
.se26ou0{margin-left:8px;}
|
|
46
|
-
.laykzsq{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
47
|
-
.t1ng0psc.table-wrapper{height:auto;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;min-height:0;}
|
|
48
|
-
.wfg6u6g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.wfg6u6g .usage-text{width:50px;text-align:right;}.wfg6u6g .usage-bar{height:12px;width:100px;position:relative;border-radius:2px;}.wfg6u6g .request-anchor{position:absolute;left:10%;top:-3px;height:18px;width:2px;background:#777;z-index:9;}.wfg6u6g .usage-fill-bar{position:absolute;left:0;top:0;height:100%;background:rgba(0,128,255,0.6);z-index:7;}.wfg6u6g .request-bar{position:absolute;left:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar{position:absolute;right:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar.no-limit{background:linear-gradient(to right,#d8deeb 50%,#d8deeb 50%);background-size:4px 100%;}.wfg6u6g .request-to-limit-bar.no-limit.exceed-request{background:linear-gradient(to right,#d8deeb 50%,rgba(0,128,255,0.6) 50%);background-size:4px 100%;}
|
|
49
|
-
.mdppgn0.ant-menu{background:#edf0f7;padding:8px;}.mdppgn0.ant-menu .ant-menu-item-selected{background:linear-gradient(90deg,#0080ff,#005ed1);border-radius:6px;box-shadow:0 1px 2px rgba(184,192,204,0.6);color:#fff;}.mdppgn0.ant-menu .ant-menu-item-selected a:hover{color:#fff;}.mdppgn0.ant-menu .ant-menu-item:not(.ant-menu-item-selected):hover{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0.6));border-radius:6px;box-shadow:0 0 4px rgba(235,239,245,0.6),0 8px 16px rgba(129,138,153,0.18);}
|
|
50
|
-
.h16z07g.ant-layout-header{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;border-bottom:2px solid #edf0f7;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:50px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 24px 0 14px;position:relative;z-index:10;}
|
|
51
|
-
.c1i80kj{height:100%;}
|
|
52
|
-
.s18sezq1.ant-layout-sider{background:#edf0f7;}
|
|
53
|
-
.cyc9hl2.ant-layout-content{padding:16px;background:#fff;}
|
|
56
|
+
.esoz3jw.ant-btn.ant-btn-link{height:22px;margin-left:8px;}
|
|
57
|
+
.w8ychfk{border-radius:8px;border:1px solid rgba(211,218,235,0.60);padding:16px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
|
|
58
|
+
.d1o004do{width:70px;height:70px;margin-right:16px;}
|
|
59
|
+
.dfo80qq{width:100%;}
|
|
60
|
+
.d1i11os3{position:absolute;left:35px;top:35px;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);}
|
|
61
|
+
.r1bm8olw{color:#00122E;}
|
|
62
|
+
.r1oqudbh{color:rgba(44,56,82,0.60);}
|
|
63
|
+
.c18i6jtg{display:table;margin:auto 0;position:relative;}
|
|
64
|
+
.lpm22il{padding-right:40px;color:rgba(44,56,82,0.75);}
|
|
65
|
+
.v1ixr1me{color:#00122E;}
|
|
54
66
|
.pf-v5-c-log-viewer.pf-m-dark .pf-v5-c-log-viewer__main {
|
|
55
67
|
--pf-v5-global--Color--100: var(--pf-v5-global--Color--light-100);
|
|
56
68
|
--pf-v5-global--Color--200: var(--pf-v5-global--Color--light-200);
|
|
@@ -1486,7 +1498,44 @@
|
|
|
1486
1498
|
width: 1em;
|
|
1487
1499
|
height: 1em;
|
|
1488
1500
|
vertical-align: -0.125em;
|
|
1489
|
-
}.
|
|
1501
|
+
}.wve7dfm{padding:0 24px;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1502
|
+
.t9oeh3c{margin:8px 0;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.t9oeh3c .ant-select{width:256px !important;}
|
|
1503
|
+
.t1u2zqn6{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:12px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
|
|
1504
|
+
.c8wrcus{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}
|
|
1505
|
+
.t1joof7s{width:100%;padding:11px;border-bottom:1px solid rgba(211,218,235,0.6);background:rgba(225,230,241,0.6);border-top-left-radius:8px;border-top-right-radius:8px;}.t1joof7s.collapsed{border-bottom:0;}.t1joof7s svg{margin:auto;}.t1joof7s > .dovetail-ant-space-item{line-height:16px;}
|
|
1506
|
+
.tti58uh{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:20px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.tti58uh .ant-space-item{line-height:1;}
|
|
1507
|
+
.e15yt16p{margin-top:1px;}
|
|
1508
|
+
.w3ccqks{width:100%;border:1px solid rgba(211,218,235,0.6);border-radius:8px;}.w3ccqks[data-is-error='true']{border-color:#f0483e;}.w3ccqks[data-is-error='true'] .t1joof7s{padding-bottom:7px;background:#ffecec;}
|
|
1509
|
+
.t7zbd78{color:#00122e;font-size:13px;font-weight:700;line-height:20px;}
|
|
1510
|
+
.i1e4ouxy{cursor:pointer;margin:auto 0;}.i1e4ouxy.arrow-down svg{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.i1e4ouxy[data-disabled='true']{cursor:not-allowed;opacity:0.5;}
|
|
1511
|
+
.d1g21822{fill:rgba(#2c3852,0.6);cursor:not-allowed;}
|
|
1512
|
+
.pqch97v{font-family:Menlo,Monaco,'Courier New',monospace;font-size:12px;font-style:normal;font-weight:400;padding-left:62px;overflow:auto;}
|
|
1513
|
+
.eh2qjnl{color:#f0483e;font-size:12px;line-height:18px;word-break:break-all;}
|
|
1514
|
+
.e19q2bnp{margin-top:8px;}
|
|
1515
|
+
.y16u5v3w .monaco-editor{border-bottom-left-radius:8px;border-bottom-right-radius:8px;}.y16u5v3w .monaco-editor .margin{border-bottom-left-radius:8px;}.y16u5v3w .monaco-editor .monaco-scrollable-element{border-bottom-right-radius:8px;}
|
|
1516
|
+
.e1cjl2b8{border-radius:8px;border:1px solid rgba(211,218,235,0.60);}.e1cjl2b8 .monaco-editor,.e1cjl2b8 .monaco-scrollable-element,.e1cjl2b8 .overflow-guard > .margin{border-radius:8px;}
|
|
1517
|
+
.w1akirqw{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1518
|
+
.t30srnq{line-height:32px !important;}
|
|
1519
|
+
.laykzsq{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1520
|
+
.l1ng0psc{padding:12px 24px;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:0;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1521
|
+
.tj6zpn4{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.tj6zpn4.table-wrapper{height:auto;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;min-height:0;}
|
|
1522
|
+
.n1rqcyjn.ant-select{margin-bottom:12px;}
|
|
1523
|
+
.c154n7ie{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;width:100%;}
|
|
1524
|
+
.s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
|
|
1525
|
+
|
|
1526
|
+
.e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
|
|
1527
|
+
.f1nltbcu.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.f1nltbcu.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.f1nltbcu.ant-modal.fullscreen .ant-modal-footer{padding:15px 128px;}
|
|
1528
|
+
.f1qgcca6{margin-bottom:16px;}
|
|
1529
|
+
.e1tl3wq2{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;}
|
|
1530
|
+
.c1pvtlkp{width:100%;}
|
|
1531
|
+
.wfg6u6g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.wfg6u6g .usage-text{width:50px;text-align:right;}.wfg6u6g .usage-bar{height:12px;width:100px;position:relative;border-radius:2px;}.wfg6u6g .request-anchor{position:absolute;left:10%;top:-3px;height:18px;width:2px;background:#777;z-index:9;}.wfg6u6g .usage-fill-bar{position:absolute;left:0;top:0;height:100%;background:rgba(0,128,255,0.6);z-index:7;}.wfg6u6g .request-bar{position:absolute;left:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar{position:absolute;right:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar.no-limit{background:linear-gradient(to right,#d8deeb 50%,#d8deeb 50%);background-size:4px 100%;}.wfg6u6g .request-to-limit-bar.no-limit.exceed-request{background:linear-gradient(to right,#d8deeb 50%,rgba(0,128,255,0.6) 50%);background-size:4px 100%;}
|
|
1532
|
+
.mdppgn0.ant-menu{background:#edf0f7;padding:8px;}.mdppgn0.ant-menu .ant-menu-item-selected{background:linear-gradient(90deg,#0080ff,#005ed1);border-radius:6px;box-shadow:0 1px 2px rgba(184,192,204,0.6);color:#fff;}.mdppgn0.ant-menu .ant-menu-item-selected a:hover{color:#fff;}.mdppgn0.ant-menu .ant-menu-item:not(.ant-menu-item-selected):hover{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0.6));border-radius:6px;box-shadow:0 0 4px rgba(235,239,245,0.6),0 8px 16px rgba(129,138,153,0.18);}
|
|
1533
|
+
.h16z07g.ant-layout-header{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;border-bottom:2px solid #edf0f7;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:50px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 24px 0 14px;position:relative;z-index:10;}
|
|
1534
|
+
.c1i80kj{height:100%;}
|
|
1535
|
+
.s18sezq1.ant-layout-sider{background:#edf0f7;}
|
|
1536
|
+
.cyc9hl2.ant-layout-content{background:#fff;}
|
|
1537
|
+
.dh5j833{border-bottom:1px dashed rgba(107,128,167,0.6);padding-bottom:1px;}
|
|
1538
|
+
.s1fcgan.ant-tooltip .ant-tooltip-inner{width:256px;}
|
|
1490
1539
|
body,
|
|
1491
1540
|
#root {
|
|
1492
1541
|
height: 100%;
|
package/lib/src/Dovetail.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AccessControlProvider } from '@refinedev/core';
|
|
1
2
|
import { History } from 'history';
|
|
2
3
|
import { GlobalStore } from 'k8s-api-provider';
|
|
3
4
|
import React from 'react';
|
|
@@ -10,6 +11,8 @@ type Props = {
|
|
|
10
11
|
Layout?: React.FC<unknown>;
|
|
11
12
|
history: History;
|
|
12
13
|
globalStore: GlobalStore;
|
|
14
|
+
accessControlProvider?: AccessControlProvider;
|
|
15
|
+
routerProvider?: any;
|
|
13
16
|
};
|
|
14
17
|
export declare const Dovetail: React.FC<Props>;
|
|
15
18
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CronJobModel } from '../../models';
|
|
3
|
+
import { DropdownSize } from '../K8sDropdown';
|
|
3
4
|
type Props<Model extends CronJobModel> = {
|
|
4
5
|
record: Model;
|
|
6
|
+
size?: DropdownSize;
|
|
5
7
|
};
|
|
6
8
|
export declare function CronJobDropdown<Model extends CronJobModel>(props: Props<Model>): JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const ErrorWrapper: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
3
|
export declare const ErrorContent: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
+
export declare enum ErrorContentType {
|
|
5
|
+
List = "list",
|
|
6
|
+
Card = "card",
|
|
7
|
+
Widget = "widget"
|
|
8
|
+
}
|
|
4
9
|
export type WidgetErrorContentProps = {
|
|
5
10
|
className?: string;
|
|
6
11
|
style?: React.CSSProperties;
|
|
7
12
|
errorText?: string;
|
|
8
|
-
|
|
13
|
+
type?: ErrorContentType;
|
|
9
14
|
refetch?: () => void;
|
|
10
15
|
};
|
|
11
16
|
declare const WidgetErrorContent: React.FunctionComponent<WidgetErrorContentProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { YamlFormProps } from './YamlForm';
|
|
3
|
+
export type FormModalProps = {
|
|
4
|
+
resource?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
formProps?: YamlFormProps;
|
|
7
|
+
renderForm?: (props: YamlFormProps) => React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare function FormModal(props: FormModalProps): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { UseFormReturnType } from '@refinedev/react-hook-form';
|
|
3
|
+
import { ResourceModel } from '../../models';
|
|
4
|
+
import { ResourceConfig } from '../../types';
|
|
5
|
+
type Props<Model extends ResourceModel> = {
|
|
6
|
+
config?: ResourceConfig<Model>;
|
|
7
|
+
formResult: UseFormReturnType;
|
|
8
|
+
errorMsg?: string;
|
|
9
|
+
action: 'create' | 'edit';
|
|
10
|
+
};
|
|
11
|
+
export declare const RefineFormContent: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(props: Props<Model>) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormAction } from '@refinedev/core';
|
|
3
|
+
import { Unstructured } from 'k8s-api-provider';
|
|
4
|
+
import useYamlForm from './useYamlForm';
|
|
5
|
+
export declare enum SchemaStrategy {
|
|
6
|
+
Required = "Required",
|
|
7
|
+
Optional = "Optional",
|
|
8
|
+
None = "None"
|
|
9
|
+
}
|
|
10
|
+
export interface YamlFormProps {
|
|
11
|
+
id?: string;
|
|
12
|
+
action?: FormAction;
|
|
13
|
+
initialValues?: Record<string, unknown>;
|
|
14
|
+
schemaStrategy?: SchemaStrategy;
|
|
15
|
+
isShowLayout?: boolean;
|
|
16
|
+
useFormProps?: Parameters<typeof useYamlForm>[0];
|
|
17
|
+
transformInitValues?: (values: Unstructured) => Unstructured;
|
|
18
|
+
transformApplyValues?: (values: Unstructured) => Unstructured;
|
|
19
|
+
onSaveButtonPropsChange?: (saveButtonProps: {
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
onClick: () => void;
|
|
22
|
+
}) => void;
|
|
23
|
+
onErrorsChange?: (errors: string[]) => void;
|
|
24
|
+
onFinish?: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function YamlForm(props: YamlFormProps): JSX.Element;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
1
|
+
export * from './FormModal';
|
|
2
|
+
export * from './RefineFormContent';
|
|
3
|
+
export * from './RefineFormPage';
|
|
4
|
+
export * from './YamlForm';
|
|
5
|
+
export * from './useRefineForm';
|
|
6
|
+
export * from './useYamlForm';
|
|
7
|
+
export * from './type';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type RefineFormValidator = (value: unknown, formValue: unknown) => {
|
|
3
|
+
isValid: boolean;
|
|
4
|
+
errorMsg: string;
|
|
5
|
+
};
|
|
6
|
+
export type RefineFormField = {
|
|
7
|
+
path: string[];
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
type?: 'number';
|
|
11
|
+
validators?: RefineFormValidator[];
|
|
12
|
+
disabledWhenEdit?: boolean;
|
|
13
|
+
render?: (value: unknown, onChange: (event: unknown) => void, formValue: unknown, onBlur: () => void, action: 'edit' | 'create') => React.ReactElement;
|
|
14
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseRecord, HttpError, UseFormProps as UseFormCoreProps, UseFormReturnType as UseFormReturnTypeCore } from '@refinedev/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { UseFormProps as UseHookFormProps, UseFormReturn, FieldValues } from 'react-hook-form';
|
|
4
|
+
export type UseFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends FieldValues = FieldValues, TContext extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturn<TVariables, TContext> & {
|
|
5
|
+
refineCore: UseFormReturnTypeCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
|
|
6
|
+
saveButtonProps: {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
onClick: (e: React.BaseSyntheticEvent) => void;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type UseFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends FieldValues = FieldValues, TContext extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = {
|
|
12
|
+
/**
|
|
13
|
+
* Configuration object for the core of the [useForm](/docs/api-reference/core/hooks/useForm/)
|
|
14
|
+
* @type [`UseFormCoreProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>`](/docs/api-reference/core/hooks/useForm/#properties)
|
|
15
|
+
*/
|
|
16
|
+
refineCoreProps?: UseFormCoreProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
|
|
17
|
+
/**
|
|
18
|
+
* When you have unsaved changes and try to leave the current page, **refine** shows a confirmation modal box.
|
|
19
|
+
* @default `false*`
|
|
20
|
+
*/
|
|
21
|
+
warnWhenUnsavedChanges?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Disables server-side validation
|
|
24
|
+
* @default false
|
|
25
|
+
* @see {@link https://refine.dev/docs/advanced-tutorials/forms/server-side-form-validation/}
|
|
26
|
+
*/
|
|
27
|
+
disableServerSideValidation?: boolean;
|
|
28
|
+
} & UseHookFormProps<TVariables, TContext>;
|
|
29
|
+
export declare const useForm: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends FieldValues = FieldValues, TContext extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>({ refineCoreProps, warnWhenUnsavedChanges: warnWhenUnsavedChangesProp, disableServerSideValidation: disableServerSideValidationProp, ...rest }?: UseFormProps<TQueryFnData, TError, TVariables, TContext, TData, TResponse, TResponseError>) => UseFormReturnType<TQueryFnData, TError, TVariables, TContext, TData, TResponse, TResponseError>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ResourceConfig } from '../../types';
|
|
2
|
+
import { UseFormProps } from './useReactHookForm';
|
|
3
|
+
export declare const useRefineForm: (props: {
|
|
4
|
+
config: ResourceConfig;
|
|
5
|
+
id?: string;
|
|
6
|
+
refineProps?: UseFormProps['refineCoreProps'];
|
|
7
|
+
}) => {
|
|
8
|
+
formResult: import("./useReactHookForm").UseFormReturnType<import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError, Record<string, unknown>, object, import("@refinedev/core").BaseRecord, import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError>;
|
|
9
|
+
responseErrorMsg: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { HttpError, BaseRecord, UseFormReturnType as UseFormReturnTypeCore, UseFormProps as UseFormPropsCore, CreateResponse, UpdateResponse } from '@refinedev/core';
|
|
2
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
3
|
+
import { FormInstance, FormProps } from 'antd/lib/form';
|
|
4
|
+
import { JSONSchema7 } from 'json-schema';
|
|
5
|
+
import { Unstructured } from 'k8s-api-provider';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { type YamlEditorHandle, type YamlEditorProps } from 'src/components/YamlEditor';
|
|
8
|
+
type EditorProps = Omit<YamlEditorProps, 'schema'> & {
|
|
9
|
+
ref: React.RefObject<YamlEditorHandle>;
|
|
10
|
+
schema: JSONSchema7 | null;
|
|
11
|
+
};
|
|
12
|
+
export type UseFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & {
|
|
13
|
+
submitOnEnter?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Shows notification when unsaved changes exist
|
|
16
|
+
*/
|
|
17
|
+
warnWhenUnsavedChanges?: boolean;
|
|
18
|
+
editorOptions?: {
|
|
19
|
+
isGenerateAnnotations?: boolean;
|
|
20
|
+
isSkipSchema?: boolean;
|
|
21
|
+
};
|
|
22
|
+
initialValuesForCreate?: Record<string, unknown>;
|
|
23
|
+
transformInitValues?: (values: Unstructured) => Unstructured;
|
|
24
|
+
transformApplyValues?: (values: Unstructured) => Unstructured;
|
|
25
|
+
};
|
|
26
|
+
export type UseFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnTypeCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & {
|
|
27
|
+
form: FormInstance;
|
|
28
|
+
formProps: Omit<FormProps, 'onFinish'> & {
|
|
29
|
+
onFinish: (values?: TVariables) => Promise<CreateResponse<TResponse> | UpdateResponse<TResponse> | void> | undefined;
|
|
30
|
+
};
|
|
31
|
+
saveButtonProps: ButtonProps & {
|
|
32
|
+
onClick: () => void;
|
|
33
|
+
};
|
|
34
|
+
editorProps: EditorProps;
|
|
35
|
+
schema: JSONSchema7 | null;
|
|
36
|
+
isLoadingSchema: boolean;
|
|
37
|
+
loadSchemaError: Error | null;
|
|
38
|
+
fetchSchema: () => void;
|
|
39
|
+
enableEditor: boolean;
|
|
40
|
+
errorResponseBody?: Record<string, unknown> | null;
|
|
41
|
+
switchEditor: () => void;
|
|
42
|
+
onFinish: (values?: TVariables) => Promise<CreateResponse<TResponse> | UpdateResponse<TResponse> | void>;
|
|
43
|
+
};
|
|
44
|
+
declare const useYamlForm: <TQueryFnData extends Unstructured = Unstructured & {
|
|
45
|
+
id: string;
|
|
46
|
+
}, TError extends HttpError = HttpError, TVariables extends {
|
|
47
|
+
[prop: string]: unknown;
|
|
48
|
+
} = {
|
|
49
|
+
[prop: string]: unknown;
|
|
50
|
+
}, TData extends Unstructured = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>({ action: actionFromProps, resource, onMutationSuccess: onMutationSuccessProp, onMutationError, submitOnEnter, warnWhenUnsavedChanges: warnWhenUnsavedChangesProp, redirect, successNotification, errorNotification, meta, metaData, queryMeta, mutationMeta, liveMode, liveParams, mutationMode, dataProviderName, onLiveEvent, invalidates, undoableTimeout, queryOptions, createMutationOptions, updateMutationOptions, id: idFromProps, overtimeOptions, editorOptions, initialValuesForCreate, transformInitValues, transformApplyValues, }?: UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
|
|
51
|
+
export default useYamlForm;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FormWidgetProps } from './widget';
|
|
3
|
+
export type KeyValueListWidgetProps = FormWidgetProps<Record<string, string>> & {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function KeyValueListWidget(props: KeyValueListWidgetProps): JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AntdInputProps } from '@cloudtower/eagle';
|
|
3
|
+
export declare function NameInputWidget(props: AntdInputProps): JSX.Element;
|
|
4
|
+
export declare const dnsSubDomainRules: ({
|
|
5
|
+
required: boolean;
|
|
6
|
+
message: string;
|
|
7
|
+
pattern?: undefined;
|
|
8
|
+
max?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
pattern: RegExp;
|
|
11
|
+
message: string;
|
|
12
|
+
required?: undefined;
|
|
13
|
+
max?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
max: number;
|
|
16
|
+
message: string;
|
|
17
|
+
required?: undefined;
|
|
18
|
+
pattern?: undefined;
|
|
19
|
+
})[];
|
|
20
|
+
export declare const rfc1123LabelRules: ({
|
|
21
|
+
required: boolean;
|
|
22
|
+
message: string;
|
|
23
|
+
pattern?: undefined;
|
|
24
|
+
max?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
pattern: RegExp;
|
|
27
|
+
message: string;
|
|
28
|
+
required?: undefined;
|
|
29
|
+
max?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
max: number;
|
|
32
|
+
message: string;
|
|
33
|
+
required?: undefined;
|
|
34
|
+
pattern?: undefined;
|
|
35
|
+
})[];
|
|
36
|
+
export declare const rfc1035LabelRules: ({
|
|
37
|
+
required: boolean;
|
|
38
|
+
message: string;
|
|
39
|
+
pattern?: undefined;
|
|
40
|
+
max?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
pattern: RegExp;
|
|
43
|
+
message: string;
|
|
44
|
+
required?: undefined;
|
|
45
|
+
max?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
max: number;
|
|
48
|
+
message: string;
|
|
49
|
+
required?: undefined;
|
|
50
|
+
pattern?: undefined;
|
|
51
|
+
})[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FormWidgetProps } from './widget';
|
|
3
|
+
type NamespaceSelectProps = FormWidgetProps<string | string[]>;
|
|
4
|
+
export declare function NamespaceSelectWidget(props: NamespaceSelectProps): JSX.Element;
|
|
5
|
+
export declare const namespaceRules: {
|
|
6
|
+
required: boolean;
|
|
7
|
+
message: string;
|
|
8
|
+
}[];
|
|
9
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ResourceModel } from '../../models';
|
|
3
|
+
export type DropdownSize = 'normal' | 'large';
|
|
3
4
|
interface K8sDropdownProps {
|
|
4
5
|
record: ResourceModel;
|
|
6
|
+
size?: DropdownSize;
|
|
5
7
|
}
|
|
6
8
|
declare function K8sDropdown(props: React.PropsWithChildren<K8sDropdownProps>): JSX.Element;
|
|
7
9
|
export default K8sDropdown;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
export interface KeyValueProps {
|
|
3
|
+
data: Record<string, string>;
|
|
4
|
+
empty?: string;
|
|
5
|
+
hideSecret?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const KeyValue: React.FC<KeyValueProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ModalInfo {
|
|
3
|
+
resource: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
}
|
|
6
|
+
type ModalContextValue = ModalInfo & {
|
|
7
|
+
open: (info: ModalInfo) => void;
|
|
8
|
+
close: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const ModalContext: React.Context<ModalContextValue>;
|
|
11
|
+
declare function ModalContextProvider(props: React.PropsWithChildren<Record<string, unknown>>): JSX.Element;
|
|
12
|
+
export default ModalContextProvider;
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
export declare const NS_STORE_KEY = "namespace-filter";
|
|
3
3
|
export declare const ALL_NS = "_all";
|
|
4
4
|
export declare const useNamespacesFilter: () => {
|
|
5
|
-
value: string;
|
|
5
|
+
value: string[];
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
interface NamespaceFilterProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const NamespacesFilter: React.FC<NamespaceFilterProps>;
|
|
11
|
+
export {};
|