@openbkn/workshop 0.2.2-rc.5 → 0.2.2

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.
Files changed (158) hide show
  1. package/README.md +83 -13
  2. package/component.d.ts +10 -0
  3. package/dist/ActionConfirm-DJ91X3ml.js +236 -0
  4. package/dist/ActionFailure-ZgPt_3B-.js +37 -0
  5. package/dist/AgentChat-CRYai8ge.js +1062 -0
  6. package/dist/AppFormModal-D73ucaHK.js +4282 -0
  7. package/dist/AppListPage-D87piiOw.js +1364 -0
  8. package/dist/AskDrawer-BUMYsRnt.js +38 -0
  9. package/dist/ComputedView-CgYrDbx1.js +3221 -0
  10. package/dist/ConclusionApply-sjGfoEBY.js +153 -0
  11. package/dist/CypherEditor-lus6FA5L.js +485 -0
  12. package/dist/LandingList-6JI6864C.js +230 -0
  13. package/dist/MenuUnfoldOutlined-Cdg24l2h.js +27 -0
  14. package/dist/ModelTrial-ClHFGTpQ.js +359 -0
  15. package/dist/PageRenderer-DBd_g6mN.js +85480 -0
  16. package/dist/README-DjRyTQSR.js +76 -0
  17. package/dist/ScenarioApply-DtW_hh47.js +590 -0
  18. package/dist/SimulateForm-C-i08Jjd.js +153 -0
  19. package/dist/Subgraph-CnrkH9AN.js +32586 -0
  20. package/dist/WorkshopLabPage-DiVXQL9e.js +11364 -0
  21. package/dist/WorkshopRunPage-6hjRUf64.js +253 -0
  22. package/dist/abnfDiagram-WEYOIA3C-beRNhN3c.js +87 -0
  23. package/dist/action-type-tool.service-B2B74fKC.js +1060 -0
  24. package/dist/actionButton-DA5CNEzx.js +94 -0
  25. package/dist/actionButton.en-US-qjeqA7hs.js +94 -0
  26. package/dist/agentChat-EoDznd58.js +116 -0
  27. package/dist/agentChat.en-US-B6-pFd9Y.js +116 -0
  28. package/dist/alertList-DqditwM8.js +84 -0
  29. package/dist/alertList.en-US-BAXAgltP.js +84 -0
  30. package/dist/architectureDiagram-ZHVYKT53-DY2l1qxx.js +4779 -0
  31. package/dist/asOfSlider-QPvHWUMV.js +83 -0
  32. package/dist/asOfSlider.en-US-BI4jVfSn.js +83 -0
  33. package/dist/bkn-agent-execution.service-DVh-SHyl.js +205 -0
  34. package/dist/blockDiagram-RJAE7QA3-DR0mjN2h.js +1435 -0
  35. package/dist/c4Diagram-XDPPPE54-DH5zsGug.js +1518 -0
  36. package/dist/channel-B034hcOF.js +5 -0
  37. package/dist/china-C6m7zXIv.js +9 -0
  38. package/dist/chunk-2E7WHVMD-Ba3svxgx.js +664 -0
  39. package/dist/chunk-2Q5K7J3B-rT4eU6_y.js +15 -0
  40. package/dist/chunk-4EMNKR2T-C1kQZYHK.js +262 -0
  41. package/dist/chunk-55XCU76K-dcpLOktb.js +68 -0
  42. package/dist/chunk-5VM5RSS4-BdpQuzmO.js +19 -0
  43. package/dist/chunk-JWPE2WC7-CDBrSjU7.js +8 -0
  44. package/dist/chunk-VQ5W62QI-BiVKc40w.js +19 -0
  45. package/dist/chunk-XXDRQBXY-CPYrcdVW.js +8 -0
  46. package/dist/chunk-ZCHMQSOR-BG8OLpvb.js +451 -0
  47. package/dist/classDiagram-v2-4MYWR3UA-DqbpQpwI.js +1564 -0
  48. package/dist/component.d-DFoMKuUv.js +179 -0
  49. package/dist/cose-bilkent-JH36ORCC-CdXk4sPf.js +2609 -0
  50. package/dist/customComponents-DasaZ6pq.js +4 -0
  51. package/dist/customComponents.en-US-CkabuCXg.js +79 -0
  52. package/dist/customParseFormat-C0uLEpdq.js +182 -0
  53. package/dist/cynefin-EF2NZ3EQ-D7MVnMHu.js +21746 -0
  54. package/dist/cynefinDiagram-WF24UDRP-BYT_KpDL.js +299 -0
  55. package/dist/cytoscape.esm-BCV9V6aO.js +18760 -0
  56. package/dist/d3-scale-DA8IHmf0.js +1841 -0
  57. package/dist/dagre-NK4GIZVX-l-ghPdM8.js +2154 -0
  58. package/dist/dateRange-BbkLMg8L.js +79 -0
  59. package/dist/dateRange.en-US-CV12Q02G.js +79 -0
  60. package/dist/dayjs.min-DZ-YV8Mv.js +284 -0
  61. package/dist/diagram-CBK3MWTC-Bt3HiwvA.js +542 -0
  62. package/dist/diagram-I5XIIV2D-DcbqfBjx.js +150 -0
  63. package/dist/diagram-ODIL2UCW-9PC1n3n5.js +346 -0
  64. package/dist/diagram-PFBEJUXE-DGhr2kc7.js +478 -0
  65. package/dist/diagram-RJA3I4VV-DwzpOjZ_.js +219 -0
  66. package/dist/diagram-TYUNFSNR-B3Bd3TDU.js +2583 -0
  67. package/dist/dropdownFilter-DOi_8-ZT.js +76 -0
  68. package/dist/dropdownFilter.en-US-BiXpvXtF.js +76 -0
  69. package/dist/ebnfDiagram-V4P3TTPT-E5NN2oKc.js +109 -0
  70. package/dist/elk-QONTBCTQ-dFjcujl_.js +49170 -0
  71. package/dist/erDiagram-KYQIGQAA-BMrasBzB.js +1061 -0
  72. package/dist/eventList-CnsAwfDS.js +115 -0
  73. package/dist/eventList.en-US-Cof3rCLq.js +115 -0
  74. package/dist/eventReport-XS-HegnH.js +76 -0
  75. package/dist/eventReport.en-US-DTx4vzWT.js +76 -0
  76. package/dist/flowDiagram-IUGLLWBU-BGIBH0q0.js +1769 -0
  77. package/dist/ganttChart-DEeSvTJA.js +77 -0
  78. package/dist/ganttChart.en-US-SwRKrnoD.js +77 -0
  79. package/dist/ganttDiagram-R7GPNTJY-C0tb1Lpp.js +1741 -0
  80. package/dist/generateCypher-Ch9_lQa6.js +399 -0
  81. package/dist/gitGraphDiagram-PDYL7XHY-DBqcOa-c.js +815 -0
  82. package/dist/graph-CKJmgLki.js +1541 -0
  83. package/dist/index-BA-GzCXt.js +441 -0
  84. package/dist/infoDiagram-MVDRKAX5-Bwuki4JA.js +24 -0
  85. package/dist/ishikawaDiagram-HPEHV2GE-Dz4d6ygx.js +622 -0
  86. package/dist/journeyDiagram-BOSHW7O7-C99m34Bb.js +834 -0
  87. package/dist/kanban-definition-FNSA4HC5-mdqjODsT.js +724 -0
  88. package/dist/katex-BsrBVQKd.js +11314 -0
  89. package/dist/manifest-BjV1PJ6u.js +41 -0
  90. package/dist/mermaid.core-yQghUlIz.js +17642 -0
  91. package/dist/metricCards-CSb-_cT2.js +104 -0
  92. package/dist/metricCards.en-US-BLLhRsQU.js +104 -0
  93. package/dist/mindmap-definition-6OY57UG3-BZhO2wX4.js +834 -0
  94. package/dist/modelTrial-Bvb-RhGt.js +137 -0
  95. package/dist/modelTrial.en-US-DYcuor-G.js +137 -0
  96. package/dist/models-DekiCOuZ.js +6 -0
  97. package/dist/object-metric-numeric-vs3BeDkH.js +42 -0
  98. package/dist/object-metric.service-flZgBMRX.js +233 -0
  99. package/dist/objectDetail-SQUbp4Py.js +117 -0
  100. package/dist/objectDetail.en-US-DW3mlONM.js +117 -0
  101. package/dist/objectList-D99wPtJH.js +97 -0
  102. package/dist/objectList.en-US-PBBNyVLW.js +97 -0
  103. package/dist/objectTable-0jsFFMN3.js +127 -0
  104. package/dist/objectTable.en-US-yWEs8qc_.js +127 -0
  105. package/dist/pegDiagram-ECIUJNBX-BDa5RfZt.js +95 -0
  106. package/dist/pieDiagram-GNMPY74T-DNVtzXPv.js +165 -0
  107. package/dist/pivotTable-CHmQw18-.js +102 -0
  108. package/dist/pivotTable.en-US-B4uv4P08.js +102 -0
  109. package/dist/prompt-DYrjlEFr.js +373 -0
  110. package/dist/quadrantDiagram-D57K4MC3-vK0f2OvQ.js +1023 -0
  111. package/dist/railroadDiagram-Y72NRBL7-j6ZrTmRp.js +77 -0
  112. package/dist/regionMap-Cme-JyV_.js +128 -0
  113. package/dist/regionMap.en-US-Bwr2_p32.js +128 -0
  114. package/dist/requirementDiagram-EQYSW5RA-DgfEyljA.js +886 -0
  115. package/dist/sankeyDiagram-SY24JHO5-CImx-IX0.js +1160 -0
  116. package/dist/scenarioBar-BV43p7n-.js +122 -0
  117. package/dist/scenarioBar.en-US-5KqMQ2Bg.js +122 -0
  118. package/dist/scheduleGantt-CTYO-zYP.js +180 -0
  119. package/dist/scheduleGantt.en-US-hE7mvVUW.js +180 -0
  120. package/dist/searchBox-Ca7w0f_6.js +67 -0
  121. package/dist/searchBox.en-US-ArS_XBvB.js +67 -0
  122. package/dist/segmentedFilter-MhjVcWo0.js +80 -0
  123. package/dist/segmentedFilter.en-US-BxNrQO5T.js +80 -0
  124. package/dist/sequenceDiagram-BLEHNHQU-nWmjd1ci.js +2969 -0
  125. package/dist/sizeCapture-INFHLROL-D3jlbt7h.js +46 -0
  126. package/dist/stageChain-BxBafwjD.js +74 -0
  127. package/dist/stageChain.en-US-CP0G27n8.js +74 -0
  128. package/dist/stateDiagram-v2-A6IESKWZ-DG1ZetEu.js +1514 -0
  129. package/dist/subgraph-7n4SwliR.js +71 -0
  130. package/dist/subgraph.en-US-BNvY18IW.js +71 -0
  131. package/dist/swimlanes-B3ENRKFQ-cCmJE8AU.js +4991 -0
  132. package/dist/swimlanesDiagram-AYQRV4AK-CtuhyguU.js +14 -0
  133. package/dist/taskInbox-DGWYeI2b.js +118 -0
  134. package/dist/taskInbox.en-US-B-OzDmVl.js +118 -0
  135. package/dist/text-BqSVQKS6.js +78 -0
  136. package/dist/text.en-US-BhAxy_LE.js +78 -0
  137. package/dist/timeline-definition-JXYKGLGB-Cc-INsOv.js +1057 -0
  138. package/dist/trendChart-BjEeRS5_.js +135 -0
  139. package/dist/trendChart.en-US-BBGqWUKM.js +135 -0
  140. package/dist/useLabData-Df-jEHKs.js +20470 -0
  141. package/dist/usecaseDiagram-WPOLBNNX-r8wVjopm.js +7920 -0
  142. package/dist/vennDiagram-Q3Y3IDCW-BZiOcgrj.js +1579 -0
  143. package/dist/wardleyDiagram-IVAIDKWA-16jd07C_.js +675 -0
  144. package/dist/workshop-app-DnHNjBqy.js +86038 -0
  145. package/dist/workshop-app.css +1 -0
  146. package/dist/workshop-app.js +4 -0
  147. package/dist/world-Djau1JyJ.js +9 -0
  148. package/dist/xychartDiagram-4URNHDU4-C8DwWQNh.js +1460 -0
  149. package/dist-cli/workshop.js +341 -218
  150. package/example/host.js +109 -0
  151. package/example/index.html +93 -0
  152. package/example/server.mjs +237 -0
  153. package/index.d.ts +48 -0
  154. package/lib/validate.js +47 -1
  155. package/package.json +17 -5
  156. package/runtime/frame-runtime.js +13 -1
  157. package/workshop-component.js +32 -12
  158. package/workshop.js +2 -0
@@ -0,0 +1,71 @@
1
+ const n = `# 关系子图(subgraph)
2
+
3
+ 以页面上选中的对象为中心,沿配置的关系路径展开它关联的对象,画成一张关系图。用来看一个对象和哪些对象相连,判断影响范围或追溯来源。
4
+
5
+ ## 适用与不适用
6
+
7
+ - 适用:选中一个对象后看它的一圈关联,例如一张订单关联的工单、物料、客户;一台设备关联的备件、维修单、产线。
8
+ - 不适用:
9
+ - 只要关联记录的明细:用对象详情(\`objectDetail\`)里的关联区块,或关联表。
10
+ - 看各环节的数量:用环节链路(\`stageChain\`)。
11
+ - 同时看整个网络或多个对象:本组件一次只显示一个对象。
12
+
13
+ ## 本体契约
14
+
15
+ | 角色 | 对象类要求 | 必要的属性 | 关系 | 必填 |
16
+ | --- | --- | --- | --- | --- |
17
+ | 中心对象 | 数据源的对象类,由选中筛选指定 | 标识;名称属性(节点上显示) | — | 是 |
18
+ | 展开的对象 | 沿每条路径到达的对象类,1 到 6 条路径 | 名称属性 | 从中心对象类出发的关系路径,可经多跳 | 至少 1 条路径 |
19
+
20
+ 图上的每条连线都是知识网络里真实存在的关系,组件不会自己造边。要看的对象之间没有关系时,先补关系,不要在这里拼。
21
+
22
+ ## 组件内置的判断
23
+
24
+ - 每条路径最多取“最多节点”个对象(1 到 50);多条路径合并成一张图,中心对象放大并描边。
25
+ - 节点颜色取对象类在知识网络里的颜色,下方图例列出对象类;悬停节点或连线看名称。
26
+ - 可拖动画布、缩放、拖动节点。
27
+ - 未选中对象时显示提示,加载失败时显示失败提示。
28
+
29
+ 不判断关系是否合理。
30
+
31
+ ## 扩展点
32
+
33
+ 无。
34
+
35
+ ## 交互与联动
36
+
37
+ - **写入**:无。点击节点不会改变选中对象。
38
+ - **读取**:必须读一个选中筛选(读取);通常由对象表、对象列表、告警的“点击对象写入”写入。不跟随页面的其他筛选,中心对象即使被筛选排除也能显示。
39
+
40
+ ## 场景配方
41
+
42
+ ### 订单影响面:一张订单牵涉哪些对象
43
+
44
+ | 角色 | 对应 |
45
+ | --- | --- |
46
+ | 中心对象 | 销售订单 |
47
+ | 展开的对象 | 路径 1:订单 → 工单;路径 2:订单 → 客户;路径 3:订单 → 工单 → 物料需求(最多节点 20) |
48
+
49
+ **知识网络中要有:** 这三条路径上的关系与各对象类的名称属性。
50
+
51
+ **检查项:** 在对象表里点一张订单,图显示该订单与工单、客户、物料;图例列出三类对象;换一张订单图随之更新。
52
+
53
+ ## 给 AI 的指引
54
+
55
+ 1. 先问用户:以哪类对象为中心、由哪个组件选中它、要展开哪几条关系。
56
+ 2. 页面上没有可写入选中筛选的组件时,先加一个(对象表或对象列表),否则图永远是空的。
57
+ 3. 路径取自知识网络现有的关系;缺关系就列出来让用户补,不要用别的对象代替。
58
+ 4. 常见错误:
59
+ - 路径超过实际需要,一张图上挤满节点:减少路径或调小“最多节点”。
60
+ - 路径写成从别的对象类出发,必须从数据源的对象类出发。
61
+ - 期望点击节点后切换中心:本组件不写入选中。
62
+
63
+ ## 限制
64
+
65
+ - 展开路径 1 到 6 条;每条最多节点 1 到 50;高度 240 到 640。
66
+ - 一次只显示一个中心对象。
67
+ - 只显示关系路径可达的对象,不显示路径之外的连线。
68
+ `;
69
+ export {
70
+ n as default
71
+ };
@@ -0,0 +1,71 @@
1
+ const e = `# Related graph (subgraph)
2
+
3
+ Takes the object selected on the page as the center, follows the configured relation paths to the objects around it, and draws them as a graph. Use it to see what an object connects to, to judge its reach or trace its source.
4
+
5
+ ## When to use it and when not
6
+
7
+ - Use it to see the ring of relations around a selected object, for example the work orders, materials and customer of an order, or the spare parts, repair orders and line of a machine.
8
+ - Do not use it:
9
+ - To get only the related records in detail: use the related blocks of the object detail (\`objectDetail\`), or a related table.
10
+ - To see counts by stage: use the stage chain (\`stageChain\`).
11
+ - To see a whole network or several objects at once: this component shows one object at a time.
12
+
13
+ ## Ontology contract
14
+
15
+ | Role | Object type | Required properties | Relations | Required |
16
+ | --- | --- | --- | --- | --- |
17
+ | Center object | The data source's object type, picked by the selection filter | An identifier; a name property (shown on the node) | — | Yes |
18
+ | Expanded objects | The object types reached along each path, 1 to 6 paths | A name property | A relation path from the center's type, possibly several hops | At least 1 path |
19
+
20
+ Every edge in the graph is a relation that really exists in the knowledge network; the component never makes up edges. When the objects you want to see have no relation, add the relation first instead of joining them here.
21
+
22
+ ## Built-in checks
23
+
24
+ - Each path takes up to "Max nodes" objects (1 to 50); several paths merge into one graph, with the center enlarged and outlined.
25
+ - Node colors are the object type's color in the knowledge network and a legend below lists the types; hover a node or an edge to see names.
26
+ - The canvas can be dragged and zoomed, and nodes dragged.
27
+ - With nothing selected a hint shows; when loading fails a failure note shows.
28
+
29
+ It does not judge whether a relation makes sense.
30
+
31
+ ## Extension points
32
+
33
+ None.
34
+
35
+ ## Interaction and links
36
+
37
+ - **Writes**: none. Clicking a node does not change the selection.
38
+ - **Reads**: must read one selection filter (Read); usually written by "Write on click of object" in the object table, object list or alerts. It does not follow the page's other filters; the center shows even when filters would exclude it.
39
+
40
+ ## Recipes
41
+
42
+ ### Order reach: which objects an order touches
43
+
44
+ | Role | Maps to |
45
+ | --- | --- |
46
+ | Center object | Sales order |
47
+ | Expanded objects | Path 1: order → work order; path 2: order → customer; path 3: order → work order → material requirement (max nodes 20) |
48
+
49
+ **What the knowledge network needs:** the relations on these three paths and a name property on each object type.
50
+
51
+ **Checks:** click an order in the object table and the graph shows its work orders, customer and materials; the legend lists the three types; picking another order updates the graph.
52
+
53
+ ## Guidance for AI
54
+
55
+ 1. Ask first: which object type is the center, which component selects it, and which relations to expand.
56
+ 2. When no component on the page writes a selection filter, add one first (object table or object list); otherwise the graph stays empty.
57
+ 3. Take paths from relations that already exist in the knowledge network; when one is missing, list it for the user to add and do not substitute other objects.
58
+ 4. Common mistakes:
59
+ - More paths than needed, so one graph is crowded with nodes: cut paths or lower "Max nodes".
60
+ - A path that starts from another object type; it must start from the data source's object type.
61
+ - Expecting a click on a node to change the center: this component does not write a selection.
62
+
63
+ ## Limits
64
+
65
+ - 1 to 6 paths; 1 to 50 nodes per path; height 240 to 640.
66
+ - One center object at a time.
67
+ - Only objects reachable along the paths are shown, not other links between them.
68
+ `;
69
+ export {
70
+ e as default
71
+ };