@yuku123/z-cognition-component 2.0.2 → 2.0.3
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-lib/BaseInput-DHrGPDB9.js +1096 -0
- package/dist-lib/ClockCircleOutlined-DP6fSLgk.js +12 -0
- package/dist-lib/Collapse-B77SsmFh.js +523 -0
- package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
- package/dist-lib/DeleteOutlined-BAZSAooQ.js +12 -0
- package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
- package/dist-lib/EllipsisOutlined-Dr4orLLw.js +1109 -0
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
- package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CudyDdjH.js} +1 -1
- package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
- package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-CJasZIyX.js} +1 -1
- package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
- package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
- package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
- package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
- package/dist-lib/Pagination-BJ8wnqAa.js +1112 -0
- package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
- package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
- package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
- package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-DqyspFCO.js} +1 -1
- package/dist-lib/Skeleton-CxFsInYI.js +671 -0
- package/dist-lib/Table-Civ838nE.js +20514 -0
- package/dist-lib/{Table-CDagah-g.js → Table-J_7eBbi7.js} +414 -414
- package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
- package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist-lib/accessAk-CA30m5eX.js +64 -0
- package/dist-lib/{agents-CvgRLQw2.js → agents-eZDKzePP.js} +41 -41
- package/dist-lib/{ai-DYDhijtn.js → ai-CNSn3-sd.js} +32 -32
- package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-Yrqt_J6a.js} +13 -14
- package/dist-lib/ak-manage-DklVFT5I.js +805 -0
- package/dist-lib/{approval-3IbhY8Lp.js → approval-B-bCSmfi.js} +25 -26
- package/dist-lib/{approvals-Cd6CVzz4.js → approvals-B0ggYiyD.js} +42 -43
- package/dist-lib/{assistant-cIXgilaE.js → assistant-Of0mgMsM.js} +33 -34
- package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-DcyDhUzJ.js} +5 -5
- package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-CjLaTyFz.js} +1 -1
- package/dist-lib/{audit-CxuJ5unU.js → audit-wDNCfmOy.js} +1 -1
- package/dist-lib/{bios-BplnCOF4.js → bios-CIwO1AUK.js} +128 -130
- package/dist-lib/callSuper-CpMOVGin.js +7 -0
- package/dist-lib/callSuper-CwIeyYoc.js +7 -0
- package/dist-lib/category-9gqNseEa.js +76 -0
- package/dist-lib/causal-CzAYukj9.js +789 -0
- package/dist-lib/{changelog-BoGqt_81.js → changelog-CQfIMS51.js} +2 -2
- package/dist-lib/changelog-sKJMQrlV.js +103 -0
- package/dist-lib/chat-panel-BPbqKckR.js +1543 -0
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
- package/dist-lib/code-space-D_ZE966E.js +1070 -0
- package/dist-lib/{colors-sdAcAcU3.js → colors-DpKdb8L-.js} +3 -3
- package/dist-lib/community-9_7ExHcm.js +70 -0
- package/dist-lib/community-CfWXxujB.js +217 -0
- package/dist-lib/community-material-page-Z_EZuBPl.js +747 -0
- package/dist-lib/connections-Bcqsp11M.js +1065 -0
- package/dist-lib/context-T27uno74.js +54 -0
- package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-CasBzL_Q.js} +1 -1
- package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
- package/dist-lib/detail-CV6xp_Jp.js +84 -0
- package/dist-lib/{detail-BaX7WiWV.js → detail-DioaWKWj.js} +5847 -7224
- package/dist-lib/{detail-Cx5c4KJH.js → detail-EyLdjGpX.js} +71 -72
- package/dist-lib/development-CFcOIUKc.js +167 -0
- package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
- package/dist-lib/{downloads-C3Oz04OW.js → downloads-DtV5hOQv.js} +3 -4
- package/dist-lib/{edit-Cbn2eJaJ.js → edit-NtXUNj5N.js} +262 -266
- package/dist-lib/{editor-mtaJBQXz.js → editor-KZhj-rwT.js} +25 -26
- package/dist-lib/editor-page-BaxK_OYm.js +1169 -0
- package/dist-lib/embed-mf8t3QXh.js +51841 -0
- package/dist-lib/embed.css +2 -2
- package/dist-lib/{evaluation-BoHiY8yT.js → evaluation-CZTpC9v3.js} +14 -15
- package/dist-lib/execution-B6HmOA2_.js +159 -0
- package/dist-lib/focus-set-lt52maBX.js +38 -0
- package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
- package/dist-lib/graph-BllA9bmL.js +44 -0
- package/dist-lib/graph-DHV-rdiK.js +640 -0
- package/dist-lib/{index-o65vKUwa.js → index--AI-htgA.js} +44 -45
- package/dist-lib/index-2SysmGHo.js +1166 -0
- package/dist-lib/{index-Bm1sK-VN.js → index-3J47mTL1.js} +10 -10
- package/dist-lib/index-4tbtbcAt.js +550 -0
- package/dist-lib/index-B12ZggsE.js +77 -0
- package/dist-lib/{index-D3GHtSlM.js → index-B5Roo82U.js} +49 -50
- package/dist-lib/{index-nQSVLWfW.js → index-B7SfTpox.js} +79 -81
- package/dist-lib/index-BEO8itgt.js +566 -0
- package/dist-lib/index-BPbOPT2j.js +413 -0
- package/dist-lib/index-BVgdmf6r.js +2487 -0
- package/dist-lib/index-Bd7AGv4a.js +34 -0
- package/dist-lib/index-BkJjYgKD.js +5012 -0
- package/dist-lib/{index-DBlG9uXV.js → index-BkTegt8T.js} +513 -590
- package/dist-lib/{index-B22_2Dzh.js → index-Bln3mJfp.js} +2 -2
- package/dist-lib/index-BoCtPJD4.js +915 -0
- package/dist-lib/{index-DMTPsTna.js → index-BqTsLClH.js} +3 -4
- package/dist-lib/index-Bs4MevzC.js +16075 -0
- package/dist-lib/index-BsoHetYT.js +236 -0
- package/dist-lib/{index-9aQ4BzIK.js → index-BvJ35WL3.js} +13 -14
- package/dist-lib/{index-BEjXaDfk.js → index-Bw4M9KLv.js} +84 -85
- package/dist-lib/index-C2CV4bte.js +242 -0
- package/dist-lib/{index-BSlCGnzo.js → index-CF0ucN_K.js} +12 -12
- package/dist-lib/{index-B57Fj7Y0.js → index-CLhLA2ig.js} +92 -94
- package/dist-lib/{index-Vu6sPBci.js → index-CSJA8wvL.js} +301 -296
- package/dist-lib/index-CSnvcFg-.js +543 -0
- package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
- package/dist-lib/{index-ounfql2z.js → index-CdJ5ggvp.js} +26 -28
- package/dist-lib/index-CgwK2maq.js +1987 -0
- package/dist-lib/{index-Bc-Vin3j.js → index-CtqUgNxs.js} +53 -55
- package/dist-lib/index-CvxfA0ZK.js +215 -0
- package/dist-lib/{index-y7jVGGI0.js → index-CwyFMPcr.js} +16 -18
- package/dist-lib/index-D35Ry0PG.js +1162 -0
- package/dist-lib/{index-Cj4DDWyj.js → index-D6ns_Xmf.js} +10 -11
- package/dist-lib/{index-DsuUGhTA.js → index-DGbjbjBY.js} +46 -48
- package/dist-lib/index-DKAGVWMX.js +390 -0
- package/dist-lib/index-DQ16Zb7x.js +546 -0
- package/dist-lib/index-DRcTwC17.js +418 -0
- package/dist-lib/index-DU6bO95v.js +2075 -0
- package/dist-lib/index-DaMLYomP.js +853 -0
- package/dist-lib/index-Dd9pPAT3.js +2192 -0
- package/dist-lib/{index-CHBNrCMy.js → index-DgfIEgir.js} +29 -29
- package/dist-lib/{index-Cy9i4Kx7.js → index-DhSCFLtV.js} +113 -117
- package/dist-lib/index-DxzorPvG.js +13960 -0
- package/dist-lib/index-If4xc1-H.js +559 -0
- package/dist-lib/index-QZ9JPfVR.js +251 -0
- package/dist-lib/index-VeAMz0iC.js +1719 -0
- package/dist-lib/index-mUlorJxp.js +3279 -0
- package/dist-lib/{index-CLTfICbf.js → index-xQmDaKK3.js} +6 -6
- package/dist-lib/{index-BwVZgt5s.js → index-zXwXfn-X.js} +48 -50
- package/dist-lib/index.js +3 -4
- package/dist-lib/json-field-COcz5F2R.js +196 -0
- package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
- package/dist-lib/{kb-form-modal-B0rM1ZvV.js → kb-form-modal-D9gnvXbE.js} +67 -67
- package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-CorrPJFr.js} +3 -3
- package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-DJkjMFHW.js} +103 -104
- package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-DKiDlaZz.js} +54 -55
- package/dist-lib/login-56zv4aLO.js +36 -0
- package/dist-lib/{markdown-lite-Cu62Fl7J.js → markdown-lite-p1tiuSZM.js} +198 -202
- package/dist-lib/material-DtPASeqq.js +204 -0
- package/dist-lib/material-draft-markdown-281d5_GN.js +443 -0
- package/dist-lib/material-original-preview-CPGjdmbe.js +214 -0
- package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
- package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
- package/dist-lib/material-workspace-model-QLsU5qUO.js +328 -0
- package/dist-lib/{member-DKDx77PD.js → member-Cz-OIdj9.js} +1 -1
- package/dist-lib/memory-reorganization-DgJnWIrW.js +8 -0
- package/dist-lib/memory-spaces-D-orVNR7.js +2340 -0
- package/dist-lib/{message-Dievi8Jw.js → message-C9gfvpGg.js} +1 -1
- package/dist-lib/{message-BrooQ3Q7.js → message-D6FhzB7J.js} +24 -25
- package/dist-lib/{messages-xTNmTS9g.js → messages-cctmEVcG.js} +15 -16
- package/dist-lib/meta-DT_O4zM9.js +708 -0
- package/dist-lib/{metrics-DiHYqBKB.js → metrics-BNeVcI8-.js} +2 -2
- package/dist-lib/mobile-D8kZjfQU.js +2413 -0
- package/dist-lib/{monitor-BXsdMJSV.js → monitor-DTUyqumg.js} +4 -4
- package/dist-lib/{monitor-BBCu3zRe.js → monitor-DexMYjzF.js} +8 -8
- package/dist-lib/{my-access-CEGErUgv.js → my-access-DWBV6ohp.js} +120 -132
- package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-B-gJZQYM.js} +22 -23
- package/dist-lib/navigation-DVlyWnpD.js +102 -0
- package/dist-lib/{new-BevAuTe5.js → new-JmARyD88.js} +14 -15
- package/dist-lib/{ontology-DXGSJC-y.js → ontology-B4rkO33J.js} +50 -52
- package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
- package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-zxFrjn0v.js} +89 -92
- package/dist-lib/ontology-extract-BHOxruRO.js +3199 -0
- package/dist-lib/ontology-extract-iR_rXxFe.js +295 -0
- package/dist-lib/ontology-flow-CW0SzeK7.js +456 -0
- package/dist-lib/ontology-flow-Dv5iQ20f.js +154 -0
- package/dist-lib/ontology-modeling-B9wswveh.js +510 -0
- package/dist-lib/ontology-modeling-hakCluBi.js +15136 -0
- package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-C2kp7Rs-.js} +1466 -1482
- package/dist-lib/ontology-scenarios-DKnfydG6.js +675 -0
- package/dist-lib/ontology-task-config-DmnWyCCB.js +122 -0
- package/dist-lib/ontology-terms-BoNB-5ar.js +66 -0
- package/dist-lib/ontology-terms-C-NhpcIZ.js +1195 -0
- package/dist-lib/pages-CticGC6S.js +512 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-BUXo69Ne.js → permission-Dq1-AOQw.js} +41 -41
- package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
- package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
- package/dist-lib/preset-Bp_mvsJm.js +56827 -0
- package/dist-lib/{preset-gh5SGoYT.js → preset-DCNSE--Y.js} +8 -8
- package/dist-lib/progress-CZxOOnIs.js +778 -0
- package/dist-lib/{quota-D31cXjul.js → quota-oICQRHFU.js} +4 -4
- package/dist-lib/row-By17TCiW.js +154 -0
- package/dist-lib/runs-DQTDpPaN.js +565 -0
- package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-CwCZE1Dn.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
- package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
- package/dist-lib/{schedule-BktxwX3S.js → schedule-CwkPPSuT.js} +8 -8
- package/dist-lib/script-gYJAFobb.js +2709 -0
- package/dist-lib/{settings-dsB3H65I.js → settings-CJd5Jj4y.js} +133 -134
- package/dist-lib/{shared-CTCzvhyE.js → shared-DG5-VCDM.js} +1 -1
- package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-CFHws1DA.js} +2 -2
- package/dist-lib/{skills-CHPlMsgO.js → skills-lxpJ5Lzx.js} +39 -40
- package/dist-lib/{source-selection-tXqc855k.js → source-selection-DJnQQckl.js} +16 -16
- package/dist-lib/sources-C83LpCcV.js +279 -0
- package/dist-lib/style-B5THvtDY.js +191 -0
- package/dist-lib/{task-config-BiTOiZj0.js → task-config-BNYoOb79.js} +4 -4
- package/dist-lib/{tech-BKlGPkV0.js → tech-LuZvKDo6.js} +3 -4
- package/dist-lib/templates-a-kbCamr.js +58 -0
- package/dist-lib/tenant-login-COB-5h_2.js +338 -0
- package/dist-lib/{tools-CouQ4FWk.js → tools-CrA6GrY6.js} +14 -14
- package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-ehGJBGvU.js} +15 -15
- package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-DfRnsBS6.js} +1 -1
- package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-CrhEeHfD.js} +48 -50
- package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
- package/dist-lib/useBreakpoint-Cul9y9Cu.js +87 -0
- package/dist-lib/{useForm-Byp1LopG.js → useForm-B-dwOwJ8.js} +11 -11
- package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-mWXkC-uB.js} +26 -27
- package/dist-lib/{version-management-B4kIbdVc.js → version-management-nPlG7wQO.js} +6 -7
- package/dist-lib/{welcome-F5iZoFB1.js → welcome-Cqv1-rXT.js} +3 -4
- package/package.json +1 -1
- package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
- package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
- package/dist-lib/Pagination-Dxslodkq.js +0 -1344
- package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
- package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
- package/dist-lib/Skeleton-DXcERb5r.js +0 -557
- package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
- package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
- package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
- package/dist-lib/callSuper-DZEfdkXG.js +0 -7
- package/dist-lib/changelog-Cn81Dvgk.js +0 -69
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
- package/dist-lib/context-Buz0ggsK.js +0 -710
- package/dist-lib/context-DpmyNOn3.js +0 -21
- package/dist-lib/embed-CR8XVkMy.js +0 -31148
- package/dist-lib/focus-set-h0YtOUB2.js +0 -427
- package/dist-lib/index-CaXylbQR.js +0 -3419
- package/dist-lib/index-Cfu1W1H6.js +0 -535
- package/dist-lib/index-CrMcNEAZ.js +0 -9656
- package/dist-lib/index-CyKWCYMK.js +0 -218
- package/dist-lib/index-DBtGE89a.js +0 -168
- package/dist-lib/index-DjFPRXl5.js +0 -1484
- package/dist-lib/index-DvWHYX81.js +0 -450
- package/dist-lib/index-PBT9GksC.js +0 -340
- package/dist-lib/index-bOY1cBol.js +0 -4890
- package/dist-lib/meta-BD_qYTZu.js +0 -540
- package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
- package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
- package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
- package/dist-lib/pages-CsexFuEz.js +0 -73
- package/dist-lib/row-B5MnGm9M.js +0 -156
- package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
- package/dist-lib/useClosable-BY7FgWKy.js +0 -59
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as i,
|
|
1
|
+
import { r as i, K as D, I as y } from "./embed-mf8t3QXh.js";
|
|
2
2
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect as v } from "react";
|
|
4
|
-
import { d as S } from "./dayjs.min-
|
|
4
|
+
import { d as S } from "./dayjs.min-DoEf5yCX.js";
|
|
5
5
|
const c = "/kb/v1/evaluation", u = () => ({ "X-Tenant-Code": D() });
|
|
6
6
|
async function d(e) {
|
|
7
7
|
try {
|
|
@@ -102,7 +102,7 @@ function z(e, t) {
|
|
|
102
102
|
})
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function K(e) {
|
|
106
106
|
return d(
|
|
107
107
|
() => i(`${c}/pageCaseResults`, {
|
|
108
108
|
method: "post",
|
|
@@ -111,7 +111,7 @@ function V(e) {
|
|
|
111
111
|
})
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function V(e, t, r) {
|
|
115
115
|
return d(
|
|
116
116
|
() => i(`${c}/listBadcases`, {
|
|
117
117
|
method: "get",
|
|
@@ -660,12 +660,12 @@ export {
|
|
|
660
660
|
fe as i,
|
|
661
661
|
ue as j,
|
|
662
662
|
be as k,
|
|
663
|
-
|
|
663
|
+
V as l,
|
|
664
664
|
oe as m,
|
|
665
665
|
$ as n,
|
|
666
666
|
X as o,
|
|
667
667
|
B as p,
|
|
668
|
-
|
|
668
|
+
K as q,
|
|
669
669
|
le as r,
|
|
670
670
|
ne as s,
|
|
671
671
|
ie as t,
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
2
|
import { forwardRef as Et, useRef as It, useImperativeHandle as Vt } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { aU as lt, t as Bt, u as z, g as Ht, m as ft, r as Mt, c as Xt, e as Wt, a8 as Yt, d as qt, N as Ft, z as Ut, aV as Zt, y as Gt, E as Jt, ay as Kt, A as Qt } from "./index-CrMcNEAZ.js";
|
|
6
|
-
import { g as te, i as ee } from "./colors-sdAcAcU3.js";
|
|
3
|
+
import { cy as lt, a6 as S, bh as kt, bw as zt, bg as j, cz as Lt, b0 as Dt, ap as z, a7 as Bt, a8 as ft, ce as Ht, ao as Mt, a9 as Xt, bN as Wt, ar as Yt, aq as qt, bj as Ft, bo as Zt, cA as Ut, co as Gt, cf as Jt, bb as Kt, cv as Qt } from "./embed-mf8t3QXh.js";
|
|
4
|
+
import { g as te, i as ee } from "./colors-DpKdb8L-.js";
|
|
7
5
|
const oe = (e) => e instanceof lt ? e : new lt(e);
|
|
8
6
|
function pt(e) {
|
|
9
7
|
var o = e.children, a = e.prefixCls, t = e.id, r = e.overlayInnerStyle, s = e.bodyClassName, n = e.className, i = e.style;
|
|
@@ -97,13 +95,13 @@ var I = {
|
|
|
97
95
|
targetOffset: y
|
|
98
96
|
}
|
|
99
97
|
}, ae = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], ne = function(o, a) {
|
|
100
|
-
var t = o.overlayClassName, r = o.trigger, s = r === void 0 ? ["hover"] : r, n = o.mouseEnterDelay, i = n === void 0 ? 0 : n, l = o.mouseLeaveDelay, d = l === void 0 ? 0.1 : l, f = o.overlayStyle, h = o.prefixCls, c = h === void 0 ? "rc-tooltip" : h, b = o.children,
|
|
98
|
+
var t = o.overlayClassName, r = o.trigger, s = r === void 0 ? ["hover"] : r, n = o.mouseEnterDelay, i = n === void 0 ? 0 : n, l = o.mouseLeaveDelay, d = l === void 0 ? 0.1 : l, f = o.overlayStyle, h = o.prefixCls, c = h === void 0 ? "rc-tooltip" : h, b = o.children, m = o.onVisibleChange, g = o.afterVisibleChange, O = o.transitionName, $ = o.animation, C = o.motion, T = o.placement, L = T === void 0 ? "right" : T, D = o.align, J = D === void 0 ? {} : D, B = o.destroyTooltipOnHide, K = B === void 0 ? !1 : B, Q = o.defaultVisible, tt = o.getTooltipContainer, et = o.overlayInnerStyle;
|
|
101
99
|
o.arrowContent;
|
|
102
|
-
var x = o.overlay, P = o.id, k = o.showArrow, H = k === void 0 ? !0 : k, w = o.classNames, _ = o.styles, M = kt(o, ae), X =
|
|
100
|
+
var x = o.overlay, P = o.id, k = o.showArrow, H = k === void 0 ? !0 : k, w = o.classNames, _ = o.styles, M = kt(o, ae), X = zt(P), W = It(null);
|
|
103
101
|
Vt(a, function() {
|
|
104
102
|
return W.current;
|
|
105
103
|
});
|
|
106
|
-
var Y =
|
|
104
|
+
var Y = j({}, M);
|
|
107
105
|
"visible" in o && (Y.popupVisible = o.visible);
|
|
108
106
|
var q = function() {
|
|
109
107
|
return /* @__PURE__ */ p.createElement(pt, {
|
|
@@ -111,15 +109,15 @@ var I = {
|
|
|
111
109
|
prefixCls: c,
|
|
112
110
|
id: X,
|
|
113
111
|
bodyClassName: w == null ? void 0 : w.body,
|
|
114
|
-
overlayInnerStyle:
|
|
112
|
+
overlayInnerStyle: j(j({}, et), _ == null ? void 0 : _.body)
|
|
115
113
|
}, x);
|
|
116
114
|
}, F = function() {
|
|
117
|
-
var N = p.Children.only(b),
|
|
115
|
+
var N = p.Children.only(b), Z = (N == null ? void 0 : N.props) || {}, ot = j(j({}, Z), {}, {
|
|
118
116
|
"aria-describedby": x ? X : null
|
|
119
117
|
});
|
|
120
118
|
return /* @__PURE__ */ p.cloneElement(b, ot);
|
|
121
119
|
};
|
|
122
|
-
return /* @__PURE__ */ p.createElement(Lt,
|
|
120
|
+
return /* @__PURE__ */ p.createElement(Lt, Dt({
|
|
123
121
|
popupClassName: S(t, w == null ? void 0 : w.root),
|
|
124
122
|
prefixCls: c,
|
|
125
123
|
popup: q,
|
|
@@ -129,7 +127,7 @@ var I = {
|
|
|
129
127
|
ref: W,
|
|
130
128
|
popupAlign: J,
|
|
131
129
|
getPopupContainer: tt,
|
|
132
|
-
onPopupVisibleChange:
|
|
130
|
+
onPopupVisibleChange: m,
|
|
133
131
|
afterPopupVisibleChange: g,
|
|
134
132
|
popupTransitionName: O,
|
|
135
133
|
popupAnimation: $,
|
|
@@ -137,7 +135,7 @@ var I = {
|
|
|
137
135
|
defaultPopupVisible: Q,
|
|
138
136
|
autoDestroy: K,
|
|
139
137
|
mouseLeaveDelay: d,
|
|
140
|
-
popupStyle:
|
|
138
|
+
popupStyle: j(j({}, f), _ == null ? void 0 : _.root),
|
|
141
139
|
mouseEnterDelay: i,
|
|
142
140
|
arrow: H
|
|
143
141
|
}, Y), F());
|
|
@@ -148,11 +146,11 @@ function ie(e) {
|
|
|
148
146
|
sizePopupArrow: o,
|
|
149
147
|
borderRadiusXS: a,
|
|
150
148
|
borderRadiusOuter: t
|
|
151
|
-
} = e, r = o / 2, s = 0, n = r, i = t * 1 / Math.sqrt(2), l = r - t * (1 - 1 / Math.sqrt(2)), d = r - a * (1 / Math.sqrt(2)), f = t * (Math.sqrt(2) - 1) + a * (1 / Math.sqrt(2)), h = 2 * r - d, c = f, b = 2 * r - i,
|
|
149
|
+
} = e, r = o / 2, s = 0, n = r, i = t * 1 / Math.sqrt(2), l = r - t * (1 - 1 / Math.sqrt(2)), d = r - a * (1 / Math.sqrt(2)), f = t * (Math.sqrt(2) - 1) + a * (1 / Math.sqrt(2)), h = 2 * r - d, c = f, b = 2 * r - i, m = l, g = 2 * r - s, O = n, $ = r * Math.sqrt(2) + t * (Math.sqrt(2) - 2), C = t * (Math.sqrt(2) - 1), T = `polygon(${C}px 100%, 50% ${C}px, ${2 * r - C}px 100%, ${C}px 100%)`, L = `path('M ${s} ${n} A ${t} ${t} 0 0 0 ${i} ${l} L ${d} ${f} A ${a} ${a} 0 0 1 ${h} ${c} L ${b} ${m} A ${t} ${t} 0 0 0 ${g} ${O} Z')`;
|
|
152
150
|
return {
|
|
153
151
|
arrowShadowWidth: $,
|
|
154
152
|
arrowPath: L,
|
|
155
|
-
arrowPolygon:
|
|
153
|
+
arrowPolygon: T
|
|
156
154
|
};
|
|
157
155
|
}
|
|
158
156
|
const le = (e, o, a) => {
|
|
@@ -201,7 +199,7 @@ const le = (e, o, a) => {
|
|
|
201
199
|
}
|
|
202
200
|
};
|
|
203
201
|
}, dt = 8;
|
|
204
|
-
function
|
|
202
|
+
function ut(e) {
|
|
205
203
|
const {
|
|
206
204
|
contentRadius: o,
|
|
207
205
|
limitVerticalRadius: a
|
|
@@ -429,7 +427,7 @@ const ct = {
|
|
|
429
427
|
points: ["br", "cl"]
|
|
430
428
|
}
|
|
431
429
|
}, de = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]);
|
|
432
|
-
function
|
|
430
|
+
function ue(e) {
|
|
433
431
|
const {
|
|
434
432
|
arrowWidth: o,
|
|
435
433
|
autoAdjustOverflow: a,
|
|
@@ -437,7 +435,7 @@ function me(e) {
|
|
|
437
435
|
offset: r,
|
|
438
436
|
borderRadius: s,
|
|
439
437
|
visibleFirst: n
|
|
440
|
-
} = e, i = o / 2, l = {}, d =
|
|
438
|
+
} = e, i = o / 2, l = {}, d = ut({
|
|
441
439
|
contentRadius: s,
|
|
442
440
|
limitVerticalRadius: !0
|
|
443
441
|
});
|
|
@@ -490,7 +488,7 @@ function me(e) {
|
|
|
490
488
|
c.overflow = fe(f, d, o, a), n && (c.htmlRegion = "visibleFirst");
|
|
491
489
|
}), l;
|
|
492
490
|
}
|
|
493
|
-
const
|
|
491
|
+
const me = (e) => {
|
|
494
492
|
const {
|
|
495
493
|
calc: o,
|
|
496
494
|
componentCls: a,
|
|
@@ -506,7 +504,7 @@ const ue = (e) => {
|
|
|
506
504
|
paddingXS: h,
|
|
507
505
|
arrowOffsetHorizontal: c,
|
|
508
506
|
sizePopupArrow: b
|
|
509
|
-
} = e,
|
|
507
|
+
} = e, m = o(n).add(b).add(c).equal(), g = o(n).mul(2).add(b).equal();
|
|
510
508
|
return [
|
|
511
509
|
{
|
|
512
510
|
[a]: Object.assign(Object.assign(Object.assign(Object.assign({}, Mt(e)), {
|
|
@@ -539,7 +537,7 @@ const ue = (e) => {
|
|
|
539
537
|
},
|
|
540
538
|
// Align placement should have another min width
|
|
541
539
|
[["&-placement-topLeft", "&-placement-topRight", "&-placement-bottomLeft", "&-placement-bottomRight"].join(",")]: {
|
|
542
|
-
minWidth:
|
|
540
|
+
minWidth: m
|
|
543
541
|
},
|
|
544
542
|
// Limit left and right placement radius
|
|
545
543
|
[["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: {
|
|
@@ -581,12 +579,12 @@ const ue = (e) => {
|
|
|
581
579
|
];
|
|
582
580
|
}, ge = (e) => Object.assign(Object.assign({
|
|
583
581
|
zIndexPopup: e.zIndexPopupBase + 70
|
|
584
|
-
},
|
|
582
|
+
}, ut({
|
|
585
583
|
contentRadius: e.borderRadius,
|
|
586
584
|
limitVerticalRadius: !0
|
|
587
585
|
})), ie(ft(e, {
|
|
588
586
|
borderRadiusOuter: Math.min(e.borderRadiusOuter, 4)
|
|
589
|
-
}))),
|
|
587
|
+
}))), mt = (e, o = !0) => Bt("Tooltip", (t) => {
|
|
590
588
|
const {
|
|
591
589
|
borderRadius: r,
|
|
592
590
|
colorTextLightSolid: s,
|
|
@@ -598,7 +596,7 @@ const ue = (e) => {
|
|
|
598
596
|
tooltipBorderRadius: r,
|
|
599
597
|
tooltipBg: n
|
|
600
598
|
});
|
|
601
|
-
return [
|
|
599
|
+
return [me(i), Ht(t, "zoom-big-fast")];
|
|
602
600
|
}, ge, {
|
|
603
601
|
resetStyle: !1,
|
|
604
602
|
// Popover use Tooltip as internal component. We do not need to handle this.
|
|
@@ -624,7 +622,7 @@ const be = (e) => {
|
|
|
624
622
|
overlayInnerStyle: n
|
|
625
623
|
} = e, {
|
|
626
624
|
getPrefixCls: i
|
|
627
|
-
} = p.useContext(Xt), l = i("tooltip", o), [d, f, h] =
|
|
625
|
+
} = p.useContext(Xt), l = i("tooltip", o), [d, f, h] = mt(l), c = gt(l, s), b = c.arrowStyle, m = Object.assign(Object.assign({}, n), c.overlayStyle), g = S(f, h, l, `${l}-pure`, `${l}-placement-${t}`, a, c.className);
|
|
628
626
|
return d(/* @__PURE__ */ p.createElement("div", {
|
|
629
627
|
className: g,
|
|
630
628
|
style: b
|
|
@@ -633,7 +631,7 @@ const be = (e) => {
|
|
|
633
631
|
}), /* @__PURE__ */ p.createElement(pt, Object.assign({}, e, {
|
|
634
632
|
className: f,
|
|
635
633
|
prefixCls: l,
|
|
636
|
-
overlayInnerStyle:
|
|
634
|
+
overlayInnerStyle: m
|
|
637
635
|
}), r)));
|
|
638
636
|
};
|
|
639
637
|
var ve = function(e, o) {
|
|
@@ -656,12 +654,12 @@ const he = /* @__PURE__ */ p.forwardRef((e, o) => {
|
|
|
656
654
|
afterVisibleChange: h,
|
|
657
655
|
destroyTooltipOnHide: c,
|
|
658
656
|
destroyOnHidden: b,
|
|
659
|
-
arrow:
|
|
657
|
+
arrow: m = !0,
|
|
660
658
|
title: g,
|
|
661
659
|
overlay: O,
|
|
662
660
|
builtinPlacements: $,
|
|
663
661
|
arrowPointAtCenter: C = !1,
|
|
664
|
-
autoAdjustOverflow:
|
|
662
|
+
autoAdjustOverflow: T = !0,
|
|
665
663
|
motion: L,
|
|
666
664
|
getPopupContainer: D,
|
|
667
665
|
placement: J = "top",
|
|
@@ -672,7 +670,7 @@ const he = /* @__PURE__ */ p.forwardRef((e, o) => {
|
|
|
672
670
|
overlayClassName: et,
|
|
673
671
|
styles: x,
|
|
674
672
|
classNames: P
|
|
675
|
-
} = e, k = ve(e, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), H = !!
|
|
673
|
+
} = e, k = ve(e, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), H = !!m, [, w] = Wt(), {
|
|
676
674
|
getPopupContainer: _,
|
|
677
675
|
getPrefixCls: M,
|
|
678
676
|
direction: X,
|
|
@@ -680,49 +678,49 @@ const he = /* @__PURE__ */ p.forwardRef((e, o) => {
|
|
|
680
678
|
style: Y,
|
|
681
679
|
classNames: q,
|
|
682
680
|
styles: F
|
|
683
|
-
} = Yt("tooltip"), A = qt("Tooltip"), N = p.useRef(null),
|
|
684
|
-
var
|
|
685
|
-
(
|
|
681
|
+
} = Yt("tooltip"), A = qt("Tooltip"), N = p.useRef(null), Z = () => {
|
|
682
|
+
var u;
|
|
683
|
+
(u = N.current) === null || u === void 0 || u.forceAlign();
|
|
686
684
|
};
|
|
687
685
|
p.useImperativeHandle(o, () => {
|
|
688
|
-
var
|
|
686
|
+
var u, v;
|
|
689
687
|
return {
|
|
690
|
-
forceAlign:
|
|
688
|
+
forceAlign: Z,
|
|
691
689
|
forcePopupAlign: () => {
|
|
692
|
-
A.deprecated(!1, "forcePopupAlign", "forceAlign"),
|
|
690
|
+
A.deprecated(!1, "forcePopupAlign", "forceAlign"), Z();
|
|
693
691
|
},
|
|
694
|
-
nativeElement: (
|
|
692
|
+
nativeElement: (u = N.current) === null || u === void 0 ? void 0 : u.nativeElement,
|
|
695
693
|
popupElement: (v = N.current) === null || v === void 0 ? void 0 : v.popupElement
|
|
696
694
|
};
|
|
697
|
-
}), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["destroyTooltipOnHide", "destroyOnHidden"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach(([
|
|
698
|
-
A.deprecated(!(
|
|
699
|
-
}), process.env.NODE_ENV !== "production" && A(!c || typeof c == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && A(!
|
|
695
|
+
}), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["destroyTooltipOnHide", "destroyOnHidden"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach(([u, v]) => {
|
|
696
|
+
A.deprecated(!(u in e), u, v);
|
|
697
|
+
}), process.env.NODE_ENV !== "production" && A(!c || typeof c == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && A(!m || typeof m == "boolean" || !("arrowPointAtCenter" in m), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
|
|
700
698
|
const [ot, vt] = Ft(!1, {
|
|
701
699
|
value: (a = e.open) !== null && a !== void 0 ? a : e.visible,
|
|
702
700
|
defaultValue: (t = e.defaultOpen) !== null && t !== void 0 ? t : e.defaultVisible
|
|
703
|
-
}), rt = !g && !O && g !== 0, ht = (
|
|
701
|
+
}), rt = !g && !O && g !== 0, ht = (u) => {
|
|
704
702
|
var v, E;
|
|
705
|
-
vt(rt ? !1 :
|
|
703
|
+
vt(rt ? !1 : u), rt || ((v = e.onOpenChange) === null || v === void 0 || v.call(e, u), (E = e.onVisibleChange) === null || E === void 0 || E.call(e, u));
|
|
706
704
|
}, yt = p.useMemo(() => {
|
|
707
|
-
var
|
|
705
|
+
var u, v;
|
|
708
706
|
let E = C;
|
|
709
|
-
return typeof
|
|
707
|
+
return typeof m == "object" && (E = (v = (u = m.pointAtCenter) !== null && u !== void 0 ? u : m.arrowPointAtCenter) !== null && v !== void 0 ? v : C), $ || ue({
|
|
710
708
|
arrowPointAtCenter: E,
|
|
711
|
-
autoAdjustOverflow:
|
|
709
|
+
autoAdjustOverflow: T,
|
|
712
710
|
arrowWidth: H ? w.sizePopupArrow : 0,
|
|
713
711
|
borderRadius: w.borderRadius,
|
|
714
712
|
offset: w.marginXXS,
|
|
715
713
|
visibleFirst: !0
|
|
716
714
|
});
|
|
717
|
-
}, [C,
|
|
715
|
+
}, [C, m, $, w]), at = p.useMemo(() => g === 0 ? g : O || g || "", [O, g]), wt = /* @__PURE__ */ p.createElement(Zt, {
|
|
718
716
|
space: !0
|
|
719
717
|
}, typeof at == "function" ? at() : at), R = M("tooltip", r), Ct = M(), Ot = e["data-popover-inject"];
|
|
720
718
|
let nt = ot;
|
|
721
719
|
!("open" in e) && !("visible" in e) && rt && (nt = !1);
|
|
722
|
-
const st = /* @__PURE__ */ p.isValidElement(d) && !
|
|
720
|
+
const st = /* @__PURE__ */ p.isValidElement(d) && !Ut(d) ? d : /* @__PURE__ */ p.createElement("span", null, d), U = st.props, $t = !U.className || typeof U.className == "string" ? S(U.className, s || `${R}-open`) : U.className, [xt, Pt, _t] = mt(R, !Ot), it = gt(R, i), Nt = it.arrowStyle, St = S(et, {
|
|
723
721
|
[`${R}-rtl`]: X === "rtl"
|
|
724
|
-
}, it.className, tt, Pt, _t, W, q.root, P == null ? void 0 : P.root),
|
|
725
|
-
zIndex:
|
|
722
|
+
}, it.className, tt, Pt, _t, W, q.root, P == null ? void 0 : P.root), jt = S(q.body, P == null ? void 0 : P.body), [Tt, At] = Gt("Tooltip", k.zIndex), Rt = /* @__PURE__ */ p.createElement(se, Object.assign({}, k, {
|
|
723
|
+
zIndex: Tt,
|
|
726
724
|
showArrow: H,
|
|
727
725
|
placement: J,
|
|
728
726
|
mouseEnterDelay: B,
|
|
@@ -730,7 +728,7 @@ const he = /* @__PURE__ */ p.forwardRef((e, o) => {
|
|
|
730
728
|
prefixCls: R,
|
|
731
729
|
classNames: {
|
|
732
730
|
root: St,
|
|
733
|
-
body:
|
|
731
|
+
body: jt
|
|
734
732
|
},
|
|
735
733
|
styles: {
|
|
736
734
|
root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Nt), F.root), Y), Q), x == null ? void 0 : x.root),
|
|
@@ -764,9 +762,9 @@ bt._InternalPanelDoNotUseOrYouWillBeFired = be;
|
|
|
764
762
|
export {
|
|
765
763
|
pt as P,
|
|
766
764
|
bt as T,
|
|
767
|
-
|
|
765
|
+
ut as a,
|
|
768
766
|
ce as b,
|
|
769
|
-
|
|
767
|
+
ue as c,
|
|
770
768
|
le as d,
|
|
771
769
|
ie as g
|
|
772
770
|
};
|
package/dist-lib/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
2
|
+
import { dY as p } from "./embed-mf8t3QXh.js";
|
|
3
|
+
import "react";
|
|
5
4
|
export {
|
|
6
|
-
|
|
5
|
+
p as default
|
|
7
6
|
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { v as y, O as S, d as E } from "./graph-BllA9bmL.js";
|
|
2
|
+
import { jsxs as I, jsx as T } from "react/jsx-runtime";
|
|
3
|
+
import { useState as w, useRef as b, useEffect as C } from "react";
|
|
4
|
+
import { e as $ } from "./style-B5THvtDY.js";
|
|
5
|
+
import { I as A } from "./index-2SysmGHo.js";
|
|
6
|
+
const L = ["EL", "GROOVY", "LUA", "SQL", "OBJ", "G4", "MOCK", "HTTP", "HTTP_CHAIN", "PIPELINE"], N = ["EQ", "NE", "GT", "GTE", "LT", "LTE", "CONTAINS", "EXISTS", "NOT_EMPTY"], U = () => ({
|
|
7
|
+
source: { sourceCode: "", mode: "FULL", batchSize: 500 },
|
|
8
|
+
operators: [],
|
|
9
|
+
sink: { type: "RESULT" },
|
|
10
|
+
failurePolicy: "CONTINUE"
|
|
11
|
+
});
|
|
12
|
+
function f(e) {
|
|
13
|
+
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
14
|
+
}
|
|
15
|
+
function P(e) {
|
|
16
|
+
const r = JSON.parse(e);
|
|
17
|
+
if (!f(r)) throw new Error("必须是 JSON 对象");
|
|
18
|
+
return r;
|
|
19
|
+
}
|
|
20
|
+
function R(e) {
|
|
21
|
+
return typeof e == "string" && Object.hasOwn(S, e);
|
|
22
|
+
}
|
|
23
|
+
function g(e) {
|
|
24
|
+
if (!f(e)) return;
|
|
25
|
+
const r = {};
|
|
26
|
+
return Object.entries(e).forEach(([t, i]) => {
|
|
27
|
+
t.trim() && f(i) && typeof i.x == "number" && Number.isFinite(i.x) && typeof i.y == "number" && Number.isFinite(i.y) && (r[t] = { x: i.x, y: i.y });
|
|
28
|
+
}), Object.keys(r).length ? r : void 0;
|
|
29
|
+
}
|
|
30
|
+
function _(e, r) {
|
|
31
|
+
let t = r.length + 1;
|
|
32
|
+
for (; r.some((o) => o.id === `step_${t}`); ) t += 1;
|
|
33
|
+
const i = {
|
|
34
|
+
MAP: { fields: { title: "{{title}}" }, keepOriginal: !0 },
|
|
35
|
+
FILTER: { field: "", operator: "NOT_EMPTY" },
|
|
36
|
+
DEDUP: { keys: ["id"] },
|
|
37
|
+
SPLIT: { field: "", delimiter: `
|
|
38
|
+
`, outputField: "" },
|
|
39
|
+
SET: { values: {} },
|
|
40
|
+
SELECT: { fields: ["id"] },
|
|
41
|
+
MERGE: {},
|
|
42
|
+
AI: { agentCode: "", prompt: "", outputField: "ai_result", format: "TEXT" },
|
|
43
|
+
SCRIPT: { type: "GROOVY", source: "return input.row", timeoutMillis: 5e3, parameters: {} }
|
|
44
|
+
};
|
|
45
|
+
return { id: `step_${t}`, type: e, config: i[e] };
|
|
46
|
+
}
|
|
47
|
+
function j(e, r, t) {
|
|
48
|
+
const i = r + t;
|
|
49
|
+
if (i < 0 || i >= e.length) return e;
|
|
50
|
+
const o = e.map((u, n) => ({ ...u, dependsOn: E(e, n) })), [s] = o.splice(r, 1);
|
|
51
|
+
return o.splice(i, 0, s), y(o), o;
|
|
52
|
+
}
|
|
53
|
+
function D(e, r) {
|
|
54
|
+
const t = e.findIndex((s) => s.id === r);
|
|
55
|
+
if (t < 0) return e;
|
|
56
|
+
const i = E(e, t), o = e.map((s, u) => ({
|
|
57
|
+
...s,
|
|
58
|
+
dependsOn: [...new Set(E(e, u).flatMap((n) => n === r ? i : [n]))]
|
|
59
|
+
})).filter((s) => s.id !== r);
|
|
60
|
+
return y(o), o;
|
|
61
|
+
}
|
|
62
|
+
function G(e, r, t) {
|
|
63
|
+
const i = e[r].id, o = e.map((s, u) => {
|
|
64
|
+
var a;
|
|
65
|
+
const n = u === r ? t : s;
|
|
66
|
+
return { ...n, dependsOn: (a = n.dependsOn) == null ? void 0 : a.map((l) => l === i ? t.id : l) };
|
|
67
|
+
});
|
|
68
|
+
return y(o), o;
|
|
69
|
+
}
|
|
70
|
+
function K(e, r) {
|
|
71
|
+
return { ...e, kbId: r, categoryId: void 0 };
|
|
72
|
+
}
|
|
73
|
+
function c(e, r, t = !1) {
|
|
74
|
+
if (!(t && e === void 0)) {
|
|
75
|
+
if (typeof e != "string") throw new Error(`${r} 必须是字符串`);
|
|
76
|
+
return e;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function d(e, r) {
|
|
80
|
+
if (typeof e != "string" || !e.trim()) throw new Error(`请填写${r}`);
|
|
81
|
+
}
|
|
82
|
+
function O(e, r) {
|
|
83
|
+
if (!Array.isArray(e) || !e.every((t) => typeof t == "string"))
|
|
84
|
+
throw new Error(`${r} 必须是字符串数组`);
|
|
85
|
+
return e;
|
|
86
|
+
}
|
|
87
|
+
function F(e) {
|
|
88
|
+
const r = e.config, t = `${e.id} · `;
|
|
89
|
+
if (e.type === "MAP") {
|
|
90
|
+
if (!f(r.fields) || !Object.values(r.fields).every((i) => typeof i == "string")) throw new Error(`${t}fields 必须是字符串映射对象`);
|
|
91
|
+
if (typeof r.keepOriginal != "boolean") throw new Error(`${t}keepOriginal 必须是布尔值`);
|
|
92
|
+
}
|
|
93
|
+
if (e.type === "FILTER") {
|
|
94
|
+
if (d(r.field, `${t}过滤字段`), !N.includes(String(r.operator))) throw new Error(`${t}未知过滤条件`);
|
|
95
|
+
if (!["EXISTS", "NOT_EMPTY"].includes(String(r.operator)) && r.value === void 0) throw new Error(`${t}请填写比较值`);
|
|
96
|
+
}
|
|
97
|
+
if (e.type === "DEDUP" || e.type === "SELECT") {
|
|
98
|
+
const i = O(r[e.type === "DEDUP" ? "keys" : "fields"], `${t}字段`);
|
|
99
|
+
if (!i.length || i.some((o) => !o.trim())) throw new Error(`${t}至少填写一个非空字段`);
|
|
100
|
+
}
|
|
101
|
+
if (e.type === "SPLIT" && (["field", "outputField"].forEach((i) => d(r[i], `${t}${i}`)), typeof r.delimiter != "string" || !r.delimiter.length))
|
|
102
|
+
throw new Error(`${t}分隔符不能为空(支持空格和换行)`);
|
|
103
|
+
if (e.type === "SET" && !f(r.values)) throw new Error(`${t}values 必须是对象`);
|
|
104
|
+
if (e.type === "AI" && (["agentCode", "prompt", "outputField"].forEach((i) => d(r[i], `${t}${i}`)), r.format !== "TEXT" && r.format !== "JSON"))
|
|
105
|
+
throw new Error(`${t}format 必须是 TEXT 或 JSON`);
|
|
106
|
+
if (e.type === "SCRIPT") {
|
|
107
|
+
if (typeof r.type != "string" || !L.includes(r.type)) throw new Error(`${t}未知脚本类型`);
|
|
108
|
+
if (typeof r.source != "string" || !r.source.trim() || r.source.length > 65536) throw new Error(`${t}脚本 source 必须非空且不超过 65536 字符`);
|
|
109
|
+
if (r.timeoutMillis !== void 0 && (typeof r.timeoutMillis != "number" || !Number.isInteger(r.timeoutMillis) || r.timeoutMillis < 1 || r.timeoutMillis > 5e3)) throw new Error(`${t}timeoutMillis 必须是 1..5000 的整数`);
|
|
110
|
+
if (r.parameters !== void 0 && !f(r.parameters)) throw new Error(`${t}parameters 必须是 JSON 对象`);
|
|
111
|
+
}
|
|
112
|
+
if (e.type === "MERGE" && Object.keys(r).length) throw new Error(`${t}MERGE config 必须为空对象(仅合流,不做 Join)`);
|
|
113
|
+
}
|
|
114
|
+
function z(e, r = !0) {
|
|
115
|
+
const t = P(e), i = t.source, o = t.sink;
|
|
116
|
+
if (!f(i) || !f(o) || !Array.isArray(t.operators)) throw new Error("source、sink 必须是对象,operators 必须是数组");
|
|
117
|
+
if (i.mode !== "FULL" && i.mode !== "WATERMARK") throw new Error("读取模式必须是 FULL 或 WATERMARK");
|
|
118
|
+
if (o.type !== "KB" && o.type !== "RESULT") throw new Error("目标必须是 KB 或 RESULT");
|
|
119
|
+
if (t.failurePolicy !== "CONTINUE" && t.failurePolicy !== "FAIL_FAST") throw new Error("未知失败策略");
|
|
120
|
+
if (typeof i.batchSize != "number" || !Number.isInteger(i.batchSize) || i.batchSize < 1) throw new Error("batchSize 必须是正整数");
|
|
121
|
+
const s = t.operators.map((n) => {
|
|
122
|
+
if (!f(n) || !R(n.type) || !f(n.config)) throw new Error("步骤类型未知或 config 不是对象");
|
|
123
|
+
if (typeof n.id != "string") throw new Error("步骤 ID 必须是字符串");
|
|
124
|
+
return {
|
|
125
|
+
id: n.id,
|
|
126
|
+
type: n.type,
|
|
127
|
+
config: n.config,
|
|
128
|
+
...n.dependsOn === void 0 ? {} : { dependsOn: O(n.dependsOn, `${n.id} 的依赖`) }
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
if (typeof i.sourceCode != "string") throw new Error("sourceCode 必须是字符串");
|
|
132
|
+
const u = {
|
|
133
|
+
source: {
|
|
134
|
+
sourceCode: i.sourceCode,
|
|
135
|
+
mode: i.mode,
|
|
136
|
+
batchSize: i.batchSize,
|
|
137
|
+
entity: c(i.entity, "entity", !0),
|
|
138
|
+
keyColumn: c(i.keyColumn, "keyColumn", !0),
|
|
139
|
+
watermarkColumn: c(i.watermarkColumn, "watermarkColumn", !0)
|
|
140
|
+
},
|
|
141
|
+
operators: s,
|
|
142
|
+
sink: {
|
|
143
|
+
type: o.type,
|
|
144
|
+
kbId: c(o.kbId, "kbId", !0),
|
|
145
|
+
categoryId: c(o.categoryId, "categoryId", !0),
|
|
146
|
+
titleField: c(o.titleField, "titleField", !0),
|
|
147
|
+
contentField: c(o.contentField, "contentField", !0)
|
|
148
|
+
},
|
|
149
|
+
failurePolicy: t.failurePolicy,
|
|
150
|
+
scheduleCron: c(t.scheduleCron, "scheduleCron", !0),
|
|
151
|
+
...g(t.layout) ? { layout: g(t.layout) } : {}
|
|
152
|
+
};
|
|
153
|
+
return y(s), r && (d(i.sourceCode, "数据接入"), i.mode === "WATERMARK" && d(i.watermarkColumn, "水位字段"), o.type === "KB" && d(o.kbId, "目标知识库"), s.forEach(F)), u;
|
|
154
|
+
}
|
|
155
|
+
function B({ value: e, onChange: r, onError: t, label: i, rows: o = 6 }) {
|
|
156
|
+
const [s, u] = w(() => JSON.stringify(e, null, 2) ?? "null"), [n, a] = w(""), l = b(e);
|
|
157
|
+
return C(() => {
|
|
158
|
+
l.current !== e && (u(JSON.stringify(e, null, 2) ?? "null"), a(""), l.current = e);
|
|
159
|
+
}, [e]), /* @__PURE__ */ I("div", { children: [
|
|
160
|
+
/* @__PURE__ */ T(
|
|
161
|
+
A.TextArea,
|
|
162
|
+
{
|
|
163
|
+
"aria-label": i,
|
|
164
|
+
className: "etl-code-input",
|
|
165
|
+
rows: o,
|
|
166
|
+
value: s,
|
|
167
|
+
status: n ? "error" : void 0,
|
|
168
|
+
onChange: (m) => {
|
|
169
|
+
u(m.target.value);
|
|
170
|
+
try {
|
|
171
|
+
const p = JSON.parse(m.target.value);
|
|
172
|
+
l.current = p, r(p), a(""), t("");
|
|
173
|
+
} catch (p) {
|
|
174
|
+
const h = `${i}:${$(p)}`;
|
|
175
|
+
a(h), t(h);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
),
|
|
180
|
+
n && /* @__PURE__ */ T("div", { className: "etl-field-error", role: "alert", children: n })
|
|
181
|
+
] });
|
|
182
|
+
}
|
|
183
|
+
export {
|
|
184
|
+
N as F,
|
|
185
|
+
B as J,
|
|
186
|
+
L as S,
|
|
187
|
+
_ as a,
|
|
188
|
+
z as b,
|
|
189
|
+
K as c,
|
|
190
|
+
U as e,
|
|
191
|
+
f as i,
|
|
192
|
+
j as m,
|
|
193
|
+
P as p,
|
|
194
|
+
D as r,
|
|
195
|
+
G as u
|
|
196
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as bt, g as It } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
2
2
|
function vt(yt) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + yt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|