@dovetail-v2/refine 0.1.2 → 0.1.4-pod-exec-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-f0cf18e8.js → MonacoYamlDiffEditor-706f5a4e.js} +1 -1
- package/dist/{index-903eb91c.js → index-bce2a951.js} +16197 -2294
- package/dist/refine.js +164 -158
- package/dist/refine.umd.cjs +15580 -1677
- package/dist/style.css +229 -11
- package/lib/App.d.ts +2 -0
- package/lib/Dovetail.d.ts +18 -0
- package/lib/components/Breadcrumb/index.d.ts +5 -0
- package/lib/components/ConditionsTable/ConditionsTable.d.ts +7 -0
- package/lib/components/ConditionsTable/index.d.ts +1 -0
- package/lib/components/CreateButton/index.d.ts +1 -0
- package/lib/components/CronJobDropdown/index.d.ts +8 -0
- package/lib/components/CronjobJobsTable/index.d.ts +8 -0
- package/lib/components/DeleteButton/index.d.ts +2 -0
- package/lib/components/DeleteManyButton/index.d.ts +4 -0
- package/lib/components/DrawerShow/DrawerShow.d.ts +8 -0
- package/lib/components/DrawerShow/index.d.ts +1 -0
- package/lib/components/DurationTime/index.d.ts +5 -0
- package/lib/components/EditButton/index.d.ts +2 -0
- package/lib/components/EditField/index.d.ts +15 -0
- package/lib/components/ErrorContent/index.d.ts +17 -0
- package/lib/components/EventsTable/EventsTable.d.ts +6 -0
- package/lib/components/EventsTable/index.d.ts +1 -0
- package/lib/components/Form/FormModal.d.ts +10 -0
- package/lib/components/Form/RefineFormContent.d.ts +11 -0
- package/lib/components/Form/RefineFormPage.d.ts +6 -0
- package/lib/components/Form/YamlForm.d.ts +28 -0
- package/lib/components/Form/index.d.ts +7 -0
- package/lib/components/Form/type.d.ts +17 -0
- package/lib/components/Form/useReactHookForm.d.ts +29 -0
- package/lib/components/Form/useRefineForm.d.ts +13 -0
- package/lib/components/Form/useYamlForm.d.ts +51 -0
- package/lib/components/FormErrorAlert/index.d.ts +9 -0
- package/lib/components/FormLayout/index.d.ts +7 -0
- package/lib/components/FormWidgets/KeyValueListWidget.d.ts +5 -0
- package/lib/components/FormWidgets/MetadataForm.d.ts +1 -0
- package/lib/components/FormWidgets/NameInputWidget.d.ts +50 -0
- package/lib/components/FormWidgets/NamespaceSelectWidget.d.ts +8 -0
- package/lib/components/FormWidgets/index.d.ts +4 -0
- package/lib/components/FormWidgets/widget.d.ts +5 -0
- package/lib/components/ImageNames/index.d.ts +5 -0
- package/lib/components/IngressRulesComponent/index.d.ts +5 -0
- package/lib/components/IngressRulesTable/IngressRulesTable.d.ts +7 -0
- package/lib/components/IngressRulesTable/index.d.ts +1 -0
- package/lib/components/K8sDropdown/index.d.ts +9 -0
- package/lib/components/KeyValue/KeyValue.d.ts +7 -0
- package/lib/components/KeyValue/KeyValueAnnotation.d.ts +5 -0
- package/lib/components/KeyValue/KeyValueSecret.d.ts +4 -0
- package/lib/components/KeyValue/index.d.ts +3 -0
- package/lib/components/Layout/index.d.ts +3 -0
- package/lib/components/LinkFallback/index.d.ts +3 -0
- package/lib/components/ListPage/index.d.ts +9 -0
- package/lib/components/Menu/index.d.ts +1 -0
- package/lib/components/NamespacesFilter/index.d.ts +11 -0
- package/lib/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +8 -0
- package/lib/components/NetworkPolicyRulesViewer/index.d.ts +1 -0
- package/lib/components/PageShow/PageShow.d.ts +12 -0
- package/lib/components/PageShow/index.d.ts +1 -0
- package/lib/components/PodContainersTable/PodContainersTable.d.ts +8 -0
- package/lib/components/PodContainersTable/index.d.ts +1 -0
- package/lib/components/PodDropdown/index.d.ts +9 -0
- package/lib/components/PodLog/index.d.ts +6 -0
- package/lib/components/PodSelectorTable/index.d.ts +6 -0
- package/lib/components/PodShellModal/PodShell.d.ts +18 -0
- package/lib/components/PodShellModal/index.d.ts +9 -0
- package/lib/components/PortsTable/index.d.ts +7 -0
- package/lib/components/ReferenceLink/index.d.ts +8 -0
- package/lib/components/ReplicasDropdown/index.d.ts +9 -0
- package/lib/components/ResourceCRUD/ResourceCRUD.d.ts +7 -0
- package/lib/components/ResourceCRUD/create/index.d.ts +7 -0
- package/lib/components/ResourceCRUD/index.d.ts +4 -0
- package/lib/components/ResourceCRUD/list/index.d.ts +8 -0
- package/lib/components/ResourceCRUD/show/index.d.ts +8 -0
- package/lib/components/ResourceFiledDisplays.d.ts +6 -0
- package/lib/components/ResourceLink/index.d.ts +8 -0
- package/lib/components/ResourceSelect/index.d.ts +11 -0
- package/lib/components/ResourceUsageBar/index.d.ts +8 -0
- package/lib/components/Separator/index.d.ts +2 -0
- package/lib/components/ServiceComponents/index.d.ts +10 -0
- package/lib/components/Shell/index.d.ts +54 -0
- package/lib/components/ShowContent/ShowContent.d.ts +18 -0
- package/lib/components/ShowContent/fields.d.ts +68 -0
- package/lib/components/ShowContent/groups.d.ts +23 -0
- package/lib/components/ShowContent/index.d.ts +4 -0
- package/lib/components/ShowContent/tabs.d.ts +5 -0
- package/lib/components/StateTag/StateTag.d.ts +10 -0
- package/lib/components/StateTag/index.d.ts +1 -0
- package/lib/components/Table/TableToolBar.d.ts +8 -0
- package/lib/components/Table/TableWidgets.d.ts +6 -0
- package/lib/components/Table/index.d.ts +43 -0
- package/lib/components/Tabs/index.d.ts +10 -0
- package/lib/components/Tags/index.d.ts +6 -0
- package/lib/components/TextTags/index.d.ts +6 -0
- package/lib/components/Time/index.d.ts +8 -0
- package/lib/components/ValueDisplay/index.d.ts +9 -0
- package/lib/components/WorkloadDropdown/index.d.ts +9 -0
- package/lib/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +9 -0
- package/lib/components/WorkloadPodsTable/index.d.ts +1 -0
- package/lib/components/WorkloadReplicas/index.d.ts +17 -0
- package/lib/components/YamlEditor/MonacoYamlDiffEditor.d.ts +9 -0
- package/lib/components/YamlEditor/MonacoYamlEditor.d.ts +19 -0
- package/lib/components/YamlEditor/YamlEditorComponent.d.ts +27 -0
- package/lib/components/YamlEditor/index.d.ts +1 -0
- package/lib/components/YamlEditor/style.d.ts +11 -0
- package/lib/components/YamlEditor/yaml.worker.d.ts +1 -0
- package/lib/components/index.d.ts +47 -0
- package/lib/constants/auth.d.ts +5 -0
- package/lib/constants/index.d.ts +3 -0
- package/lib/constants/k8s.d.ts +487 -0
- package/lib/constants/state.d.ts +15 -0
- package/lib/contexts/component.d.ts +7 -0
- package/lib/contexts/configs.d.ts +3 -0
- package/lib/contexts/global-store.d.ts +5 -0
- package/lib/contexts/index.d.ts +3 -0
- package/lib/hooks/index.d.ts +8 -0
- package/lib/hooks/useDeleteModal/index.d.ts +1 -0
- package/lib/hooks/useDeleteModal/useDeleteManyModal.d.ts +7 -0
- package/lib/hooks/useDeleteModal/useDeleteModal.d.ts +7 -0
- package/lib/hooks/useDownloadYAML.d.ts +7 -0
- package/lib/hooks/useEagleTable/columns.d.ts +41 -0
- package/lib/hooks/useEagleTable/index.d.ts +2 -0
- package/lib/hooks/useEagleTable/useEagleTable.d.ts +55 -0
- package/lib/hooks/useEdit.d.ts +4 -0
- package/lib/hooks/useGlobalStore.d.ts +3 -0
- package/lib/hooks/useK8sYamlEditor.d.ts +5 -0
- package/lib/hooks/useNamespaceRefineFilter.d.ts +5 -0
- package/lib/hooks/useOpenForm.d.ts +7 -0
- package/lib/hooks/useSchema.d.ts +14 -0
- package/lib/hooks/useSubmitForm.d.ts +14 -0
- package/lib/hooks/useTableData.d.ts +19 -0
- package/lib/i18n.d.ts +353 -0
- package/lib/index.d.ts +11 -0
- package/lib/locales/en-US/index.d.ts +175 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/zh-CN/index.d.ts +175 -0
- package/lib/main.d.ts +3 -0
- package/lib/models/cronjob-model.d.ts +15 -0
- package/lib/models/daemonset-model.d.ts +15 -0
- package/lib/models/deployment-model.d.ts +13 -0
- package/lib/models/event-model.d.ts +7 -0
- package/lib/models/index.d.ts +19 -0
- package/lib/models/ingress-model.d.ts +20 -0
- package/lib/models/job-model.d.ts +20 -0
- package/lib/models/network-policy-model.d.ts +9 -0
- package/lib/models/node-model.d.ts +17 -0
- package/lib/models/persistent-volume-claim.d.ts +9 -0
- package/lib/models/persistent-volume.d.ts +9 -0
- package/lib/models/pod-metrics-model.d.ts +8 -0
- package/lib/models/pod-model.d.ts +20 -0
- package/lib/models/resource-model.d.ts +21 -0
- package/lib/models/service-model.d.ts +24 -0
- package/lib/models/statefulset-model.d.ts +13 -0
- package/lib/models/storage-class.d.ts +12 -0
- package/lib/models/types/index.d.ts +1 -0
- package/lib/models/types/metric.d.ts +25 -0
- package/lib/models/workload-base-model.d.ts +12 -0
- package/lib/models/workload-model.d.ts +18 -0
- package/lib/pages/configmaps/index.d.ts +4 -0
- package/lib/pages/cronjobs/create/index.d.ts +3 -0
- package/lib/pages/cronjobs/index.d.ts +3 -0
- package/lib/pages/cronjobs/list/index.d.ts +3 -0
- package/lib/pages/cronjobs/show/index.d.ts +3 -0
- package/lib/pages/daemonsets/create/index.d.ts +3 -0
- package/lib/pages/daemonsets/index.d.ts +3 -0
- package/lib/pages/daemonsets/list/index.d.ts +3 -0
- package/lib/pages/daemonsets/show/index.d.ts +3 -0
- package/lib/pages/deployments/index.d.ts +2 -0
- package/lib/pages/deployments/list/index.d.ts +3 -0
- package/lib/pages/deployments/show/index.d.ts +3 -0
- package/lib/pages/ingresses/index.d.ts +4 -0
- package/lib/pages/jobs/index.d.ts +4 -0
- package/lib/pages/networkPolicies/index.d.ts +4 -0
- package/lib/pages/nodes/index.d.ts +2 -0
- package/lib/pages/nodes/list/index.d.ts +3 -0
- package/lib/pages/nodes/show/index.d.ts +3 -0
- package/lib/pages/persistentvolumeclaims/index.d.ts +4 -0
- package/lib/pages/persistentvolumes/index.d.ts +4 -0
- package/lib/pages/pods/create/index.d.ts +3 -0
- package/lib/pages/pods/index.d.ts +3 -0
- package/lib/pages/pods/list/index.d.ts +3 -0
- package/lib/pages/pods/show/index.d.ts +3 -0
- package/lib/pages/secrets/index.d.ts +4 -0
- package/lib/pages/services/index.d.ts +4 -0
- package/lib/pages/statefulsets/index.d.ts +4 -0
- package/lib/pages/storageclasses/form/index.d.ts +9 -0
- package/lib/pages/storageclasses/index.d.ts +44 -0
- package/lib/plugins/index.d.ts +4 -0
- package/lib/plugins/model-plugin.d.ts +13 -0
- package/lib/plugins/relation-plugin.d.ts +26 -0
- package/lib/plugins/type.d.ts +8 -0
- package/lib/providers/index.d.ts +1 -0
- package/lib/providers/router-provider/index.d.ts +21 -0
- package/lib/src/components/Form/FormModal.d.ts +1 -0
- package/lib/src/components/PodDropdown/index.d.ts +9 -0
- package/lib/src/components/PodShellModal/PodShell.d.ts +18 -0
- package/lib/src/components/PodShellModal/index.d.ts +10 -0
- package/lib/src/components/Shell/index.d.ts +54 -0
- package/lib/src/components/index.d.ts +3 -0
- package/lib/src/i18n.d.ts +1 -0
- package/lib/src/locales/en-US/index.d.ts +1 -0
- package/lib/src/utils/shell.d.ts +16 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/resource.d.ts +62 -0
- package/lib/utils/addId.d.ts +3 -0
- package/lib/utils/download.d.ts +1 -0
- package/lib/utils/error.d.ts +20 -0
- package/lib/utils/form.d.ts +3 -0
- package/lib/utils/k8s.d.ts +3 -0
- package/lib/utils/labels.d.ts +9 -0
- package/lib/utils/match-selector.d.ts +3 -0
- package/lib/utils/openapi.d.ts +45 -0
- package/lib/utils/schema.d.ts +17 -0
- package/lib/utils/selector.d.ts +3 -0
- package/lib/utils/shell.d.ts +15 -0
- package/lib/utils/string.d.ts +1 -0
- package/lib/utils/time.d.ts +13 -0
- package/lib/utils/unit.d.ts +12 -0
- package/lib/utils/yaml.d.ts +2 -0
- package/package.json +14 -5
package/dist/style.css
CHANGED
|
@@ -1508,6 +1508,235 @@
|
|
|
1508
1508
|
.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;}
|
|
1509
1509
|
.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;}
|
|
1510
1510
|
.t30srnq{line-height:32px !important;}
|
|
1511
|
+
.c154n7ie{max-width:144px;}
|
|
1512
|
+
.c1c9j4da{width:100%;}
|
|
1513
|
+
.cjxv8cf{color:rgba(44,56,82,0.6);}
|
|
1514
|
+
.c1xsnuvk{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;max-width:648px;width:100%;margin:0 auto;}
|
|
1515
|
+
.s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
|
|
1516
|
+
|
|
1517
|
+
.e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
|
|
1518
|
+
.f1nltbcu{margin-bottom:16px;}
|
|
1519
|
+
.f1qgcca6.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-footer .footer-content{margin:0 128px;}
|
|
1520
|
+
.m1tl3wq2 .ant-modal-header{max-width:648px;width:100%;padding:60px 0 32px 0 !important;margin:auto;}.m1tl3wq2 .ant-modal-body{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;padding:0 4px !important;margin:auto;}.m1tl3wq2 .ant-modal-footer .footer-content{max-width:648px;width:100%;margin:auto !important;}.m1tl3wq2 .f1nltbcu{max-width:648px;width:100%;margin-left:auto;margin-right:auto;}
|
|
1521
|
+
.exjt4uc{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;}
|
|
1522
|
+
/**
|
|
1523
|
+
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
1524
|
+
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
1525
|
+
* https://github.com/chjj/term.js
|
|
1526
|
+
* @license MIT
|
|
1527
|
+
*
|
|
1528
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1529
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
1530
|
+
* in the Software without restriction, including without limitation the rights
|
|
1531
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1532
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
1533
|
+
* furnished to do so, subject to the following conditions:
|
|
1534
|
+
*
|
|
1535
|
+
* The above copyright notice and this permission notice shall be included in
|
|
1536
|
+
* all copies or substantial portions of the Software.
|
|
1537
|
+
*
|
|
1538
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1539
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1540
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1541
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1542
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1543
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1544
|
+
* THE SOFTWARE.
|
|
1545
|
+
*
|
|
1546
|
+
* Originally forked from (with the author's permission):
|
|
1547
|
+
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
1548
|
+
* http://bellard.org/jslinux/
|
|
1549
|
+
* Copyright (c) 2011 Fabrice Bellard
|
|
1550
|
+
* The original design remains. The terminal itself
|
|
1551
|
+
* has been extended to include xterm CSI codes, among
|
|
1552
|
+
* other features.
|
|
1553
|
+
*/
|
|
1554
|
+
|
|
1555
|
+
/**
|
|
1556
|
+
* Default styles for xterm.js
|
|
1557
|
+
*/
|
|
1558
|
+
|
|
1559
|
+
.xterm {
|
|
1560
|
+
cursor: text;
|
|
1561
|
+
position: relative;
|
|
1562
|
+
user-select: none;
|
|
1563
|
+
-ms-user-select: none;
|
|
1564
|
+
-webkit-user-select: none;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
.xterm.focus,
|
|
1568
|
+
.xterm:focus {
|
|
1569
|
+
outline: none;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
.xterm .xterm-helpers {
|
|
1573
|
+
position: absolute;
|
|
1574
|
+
top: 0;
|
|
1575
|
+
/**
|
|
1576
|
+
* The z-index of the helpers must be higher than the canvases in order for
|
|
1577
|
+
* IMEs to appear on top.
|
|
1578
|
+
*/
|
|
1579
|
+
z-index: 5;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
.xterm .xterm-helper-textarea {
|
|
1583
|
+
padding: 0;
|
|
1584
|
+
border: 0;
|
|
1585
|
+
margin: 0;
|
|
1586
|
+
/* Move textarea out of the screen to the far left, so that the cursor is not visible */
|
|
1587
|
+
position: absolute;
|
|
1588
|
+
opacity: 0;
|
|
1589
|
+
left: -9999em;
|
|
1590
|
+
top: 0;
|
|
1591
|
+
width: 0;
|
|
1592
|
+
height: 0;
|
|
1593
|
+
z-index: -5;
|
|
1594
|
+
/** Prevent wrapping so the IME appears against the textarea at the correct position */
|
|
1595
|
+
white-space: nowrap;
|
|
1596
|
+
overflow: hidden;
|
|
1597
|
+
resize: none;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
.xterm .composition-view {
|
|
1601
|
+
/* TODO: Composition position got messed up somewhere */
|
|
1602
|
+
background: #000;
|
|
1603
|
+
color: #FFF;
|
|
1604
|
+
display: none;
|
|
1605
|
+
position: absolute;
|
|
1606
|
+
white-space: nowrap;
|
|
1607
|
+
z-index: 1;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
.xterm .composition-view.active {
|
|
1611
|
+
display: block;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
.xterm .xterm-viewport {
|
|
1615
|
+
/* On OS X this is required in order for the scroll bar to appear fully opaque */
|
|
1616
|
+
background-color: #000;
|
|
1617
|
+
overflow-y: scroll;
|
|
1618
|
+
cursor: default;
|
|
1619
|
+
position: absolute;
|
|
1620
|
+
right: 0;
|
|
1621
|
+
left: 0;
|
|
1622
|
+
top: 0;
|
|
1623
|
+
bottom: 0;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
.xterm .xterm-screen {
|
|
1627
|
+
position: relative;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
.xterm .xterm-screen canvas {
|
|
1631
|
+
position: absolute;
|
|
1632
|
+
left: 0;
|
|
1633
|
+
top: 0;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
.xterm .xterm-scroll-area {
|
|
1637
|
+
visibility: hidden;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
.xterm-char-measure-element {
|
|
1641
|
+
display: inline-block;
|
|
1642
|
+
visibility: hidden;
|
|
1643
|
+
position: absolute;
|
|
1644
|
+
top: 0;
|
|
1645
|
+
left: -9999em;
|
|
1646
|
+
line-height: normal;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
.xterm.enable-mouse-events {
|
|
1650
|
+
/* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
|
|
1651
|
+
cursor: default;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
.xterm.xterm-cursor-pointer,
|
|
1655
|
+
.xterm .xterm-cursor-pointer {
|
|
1656
|
+
cursor: pointer;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
.xterm.column-select.focus {
|
|
1660
|
+
/* Column selection mode */
|
|
1661
|
+
cursor: crosshair;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
.xterm .xterm-accessibility:not(.debug),
|
|
1665
|
+
.xterm .xterm-message {
|
|
1666
|
+
position: absolute;
|
|
1667
|
+
left: 0;
|
|
1668
|
+
top: 0;
|
|
1669
|
+
bottom: 0;
|
|
1670
|
+
right: 0;
|
|
1671
|
+
z-index: 10;
|
|
1672
|
+
color: transparent;
|
|
1673
|
+
pointer-events: none;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
.xterm .xterm-accessibility-tree:not(.debug) *::selection {
|
|
1677
|
+
color: transparent;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
.xterm .xterm-accessibility-tree {
|
|
1681
|
+
user-select: text;
|
|
1682
|
+
white-space: pre;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
.xterm .live-region {
|
|
1686
|
+
position: absolute;
|
|
1687
|
+
left: -9999px;
|
|
1688
|
+
width: 1px;
|
|
1689
|
+
height: 1px;
|
|
1690
|
+
overflow: hidden;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
.xterm-dim {
|
|
1694
|
+
/* Dim should not apply to background, so the opacity of the foreground color is applied
|
|
1695
|
+
* explicitly in the generated class and reset to 1 here */
|
|
1696
|
+
opacity: 1 !important;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
.xterm-underline-1 { text-decoration: underline; }
|
|
1700
|
+
.xterm-underline-2 { text-decoration: double underline; }
|
|
1701
|
+
.xterm-underline-3 { text-decoration: wavy underline; }
|
|
1702
|
+
.xterm-underline-4 { text-decoration: dotted underline; }
|
|
1703
|
+
.xterm-underline-5 { text-decoration: dashed underline; }
|
|
1704
|
+
|
|
1705
|
+
.xterm-overline {
|
|
1706
|
+
text-decoration: overline;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
.xterm-overline.xterm-underline-1 { text-decoration: overline underline; }
|
|
1710
|
+
.xterm-overline.xterm-underline-2 { text-decoration: overline double underline; }
|
|
1711
|
+
.xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; }
|
|
1712
|
+
.xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; }
|
|
1713
|
+
.xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; }
|
|
1714
|
+
|
|
1715
|
+
.xterm-strikethrough {
|
|
1716
|
+
text-decoration: line-through;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
.xterm-screen .xterm-decoration-container .xterm-decoration {
|
|
1720
|
+
z-index: 6;
|
|
1721
|
+
position: absolute;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
|
|
1725
|
+
z-index: 7;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
.xterm-decoration-overview-ruler {
|
|
1729
|
+
z-index: 8;
|
|
1730
|
+
position: absolute;
|
|
1731
|
+
top: 0;
|
|
1732
|
+
right: 0;
|
|
1733
|
+
pointer-events: none;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
.xterm-decoration-top {
|
|
1737
|
+
z-index: 2;
|
|
1738
|
+
position: relative;
|
|
1739
|
+
}
|
|
1511
1740
|
.sj0ggy.ant-select{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;min-width:276px;max-width:100%;}.sj0ggy.ant-select .ant-select-selector{display:block;overflow:hidden;padding-right:32px;white-space:nowrap;}.sj0ggy.ant-select .ant-select-selector > span:nth-child(-n + 8):not(.ant-select-selection-search){display:inline-block;max-width:var(--tag-max-width);margin-right:4px;}.sj0ggy.ant-select .ant-select-selection-search{display:none;}.sj0ggy.ant-select .zoom-leave{opacity:0;position:absolute;}
|
|
1512
1741
|
.d1eo8uqs{border-radius:6px;}
|
|
1513
1742
|
.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;}
|
|
@@ -1522,17 +1751,6 @@
|
|
|
1522
1751
|
.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;}
|
|
1523
1752
|
.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;}
|
|
1524
1753
|
.n1rqcyjn.ant-select{margin-bottom:12px;}
|
|
1525
|
-
.c154n7ie{max-width:144px;}
|
|
1526
|
-
.c1c9j4da{width:100%;}
|
|
1527
|
-
.cjxv8cf{color:rgba(44,56,82,0.6);}
|
|
1528
|
-
.c1xsnuvk{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;max-width:648px;width:100%;margin:0 auto;}
|
|
1529
|
-
.s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
|
|
1530
|
-
|
|
1531
|
-
.e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
|
|
1532
|
-
.f1nltbcu{margin-bottom:16px;}
|
|
1533
|
-
.f1qgcca6.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-footer .footer-content{margin:0 128px;}
|
|
1534
|
-
.m1tl3wq2 .ant-modal-header{max-width:648px;width:100%;padding:60px 0 32px 0 !important;margin:auto;}.m1tl3wq2 .ant-modal-body{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;padding:0 4px !important;margin:auto;}.m1tl3wq2 .ant-modal-footer .footer-content{max-width:648px;width:100%;margin:auto !important;}.m1tl3wq2 .f1nltbcu{max-width:648px;width:100%;margin-left:auto;margin-right:auto;}
|
|
1535
|
-
.exjt4uc{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;}
|
|
1536
1754
|
.c1pvtlkp{width:100%;}
|
|
1537
1755
|
.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%;}
|
|
1538
1756
|
.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);}
|
package/lib/App.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AccessControlProvider } from '@refinedev/core';
|
|
2
|
+
import { History } from 'history';
|
|
3
|
+
import { GlobalStore } from 'k8s-api-provider';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { ResourceConfig } from './types';
|
|
6
|
+
import './styles.css';
|
|
7
|
+
type Props = {
|
|
8
|
+
resourcesConfig: ResourceConfig[];
|
|
9
|
+
useHashUrl?: boolean;
|
|
10
|
+
urlPrefix?: string;
|
|
11
|
+
Layout?: React.FC<unknown>;
|
|
12
|
+
history: History;
|
|
13
|
+
globalStore: GlobalStore;
|
|
14
|
+
accessControlProvider?: AccessControlProvider;
|
|
15
|
+
routerProvider?: any;
|
|
16
|
+
};
|
|
17
|
+
export declare const Dovetail: React.FC<Props>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConditionsTable';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CreateButton(): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CronJobModel } from '../../models';
|
|
2
|
+
import { DropdownSize } from '../K8sDropdown';
|
|
3
|
+
type Props<Model extends CronJobModel> = {
|
|
4
|
+
record: Model;
|
|
5
|
+
size?: DropdownSize;
|
|
6
|
+
};
|
|
7
|
+
export declare function CronJobDropdown<Model extends CronJobModel>(props: Props<Model>): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ResourceModel } from '../../models';
|
|
2
|
+
import { ShowConfig } from '../ShowContent';
|
|
3
|
+
type Props<Model extends ResourceModel> = {
|
|
4
|
+
showConfig: ShowConfig<Model>;
|
|
5
|
+
formatter?: (r: Model) => Model;
|
|
6
|
+
};
|
|
7
|
+
export declare const DrawerShow: <Model extends ResourceModel>(props: Props<Model>) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DrawerShow';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface EditFieldModalProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
submitting?: boolean;
|
|
5
|
+
errorMsgs?: string[];
|
|
6
|
+
formRef: React.MutableRefObject<{
|
|
7
|
+
submit: () => (Promise<unknown> | undefined);
|
|
8
|
+
} | null>;
|
|
9
|
+
renderContent: () => React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare function EditFieldModal(props: EditFieldModalProps): JSX.Element;
|
|
12
|
+
export interface EditField {
|
|
13
|
+
modalProps: EditFieldModalProps;
|
|
14
|
+
}
|
|
15
|
+
export declare function EditField(props: EditField): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ErrorWrapper: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
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
|
+
}
|
|
9
|
+
export type WidgetErrorContentProps = {
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
errorText?: string;
|
|
13
|
+
type?: ErrorContentType;
|
|
14
|
+
refetch?: () => void;
|
|
15
|
+
};
|
|
16
|
+
declare const WidgetErrorContent: React.FunctionComponent<WidgetErrorContentProps>;
|
|
17
|
+
export default WidgetErrorContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EventsTable';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { YamlFormProps } from './YamlForm';
|
|
3
|
+
export declare const FullscreenModalStyle: import("@linaria/core").LinariaClassName;
|
|
4
|
+
export type FormModalProps = {
|
|
5
|
+
resource?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
formProps?: YamlFormProps;
|
|
8
|
+
renderForm?: (props: YamlFormProps) => React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare function FormModal(props: FormModalProps): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UseFormReturnType } from '@refinedev/react-hook-form';
|
|
2
|
+
import { ResourceModel } from '../../models';
|
|
3
|
+
import { ResourceConfig } from '../../types';
|
|
4
|
+
type Props<Model extends ResourceModel> = {
|
|
5
|
+
config?: ResourceConfig<Model>;
|
|
6
|
+
formResult: UseFormReturnType;
|
|
7
|
+
errorMsg?: string;
|
|
8
|
+
resourceId?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const RefineFormContent: <Model extends ResourceModel>(props: Props<Model>) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FormAction } from '@refinedev/core';
|
|
2
|
+
import { Unstructured } from 'k8s-api-provider';
|
|
3
|
+
import useYamlForm from './useYamlForm';
|
|
4
|
+
export declare enum SchemaStrategy {
|
|
5
|
+
Required = "Required",
|
|
6
|
+
Optional = "Optional",
|
|
7
|
+
None = "None"
|
|
8
|
+
}
|
|
9
|
+
export interface YamlFormProps {
|
|
10
|
+
id?: string;
|
|
11
|
+
action?: FormAction;
|
|
12
|
+
initialValues?: Record<string, unknown>;
|
|
13
|
+
schemaStrategy?: SchemaStrategy;
|
|
14
|
+
isShowLayout?: boolean;
|
|
15
|
+
useFormProps?: Parameters<typeof useYamlForm>[0];
|
|
16
|
+
transformInitValues?: (values: Unstructured) => Unstructured;
|
|
17
|
+
transformApplyValues?: (values: Unstructured) => Unstructured;
|
|
18
|
+
onSaveButtonPropsChange?: (saveButtonProps: {
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
onClick: () => void;
|
|
21
|
+
loading?: boolean | {
|
|
22
|
+
delay?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
}) => void;
|
|
25
|
+
onErrorsChange?: (errors: string[]) => void;
|
|
26
|
+
onFinish?: () => void;
|
|
27
|
+
}
|
|
28
|
+
export declare function YamlForm(props: YamlFormProps): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Control } from 'react-hook-form';
|
|
3
|
+
export type RefineFormValidator = (value: unknown, formValue: unknown) => {
|
|
4
|
+
isValid: boolean;
|
|
5
|
+
errorMsg: string;
|
|
6
|
+
};
|
|
7
|
+
export type RefineFormField = {
|
|
8
|
+
path: string[];
|
|
9
|
+
key: string;
|
|
10
|
+
label: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
helperText?: React.ReactNode;
|
|
13
|
+
type?: 'number';
|
|
14
|
+
validators?: RefineFormValidator[];
|
|
15
|
+
disabledWhenEdit?: boolean;
|
|
16
|
+
render?: (value: unknown, onChange: (event: unknown) => void, formValue: unknown, onBlur: () => void, action: 'edit' | 'create', control: Control) => React.ReactElement;
|
|
17
|
+
};
|
|
@@ -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,13 @@
|
|
|
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
|
+
useFormProps?: UseFormProps;
|
|
8
|
+
}) => {
|
|
9
|
+
formResult: import("./useReactHookForm").UseFormReturnType<import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError, {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}, {}, import("@refinedev/core").BaseRecord, import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError>;
|
|
12
|
+
responseErrorMsg: string;
|
|
13
|
+
};
|
|
@@ -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 @@
|
|
|
1
|
+
export declare function MetadataForm(): JSX.Element;
|