@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,77 @@
1
+ const n = `# 甘特图(ganttChart)
2
+
3
+ 按开始、结束日期把对象画成条,每行一组,围绕页面的基准日期显示一段时间。用来看计划与进度的整体分布,判断哪些项挤在一起、哪些已拖期。
4
+
5
+ ## 适用与不适用
6
+
7
+ - 适用:只读地看一批有起止日期的对象,例如工单周期、项目阶段、合同有效期、检修计划。
8
+ - 不适用:
9
+ - 要拖动任务改资源与时间、检查冲突与交期、采用方案:用调度甘特(\`scheduleGantt\`)。
10
+ - 只看各环节的数量与流转:用环节链路(\`stageChain\`)。
11
+ - 要按时间看数值走势:用图表(\`trendChart\`)。
12
+ - 只看某个对象的进度步骤:用对象详情(\`objectDetail\`)。
13
+
14
+ ## 本体契约
15
+
16
+ | 角色 | 对象类要求 | 必要的属性 | 关系 | 必填 |
17
+ | --- | --- | --- | --- | --- |
18
+ | 条 | 要画成条的对象:工单、项目、合同 | 开始日期、结束日期(日期类型);名称(条名与悬停标题) | — | 是 |
19
+ | 行 | 条所属的分组,取条自身的一个属性:产线、负责人、客户 | 一个分组属性,取值可读 | — | 是 |
20
+ | 状态 | 决定条的颜色与图例 | 一个状态属性;是进度状态或带色调的计算列时按色调着色 | — | 否 |
21
+
22
+ 组件只读一个数据源,不沿关系取数。要按关联对象分行,先在数据源里把关联对象的名称做成本对象的一列,再选它作分组属性。
23
+
24
+ ## 组件内置的判断
25
+
26
+ - 窗口:显示“显示天数”(14 到 365,默认 60)这么长的一段,以基准日期为界划分前后;“基准日期之后的占比”不填时按 20%,即多看之前,做计划时调大。
27
+ - 取条:和窗口有重叠的对象才画;开始或结束日期缺失或无法识别的对象不画。结束早于开始或与开始相同的条,按约 6 小时的最小宽度画出。
28
+ - 取行:按条数从多到少取前“最多行数”行(3 到 40,默认 12),其余行不显示。
29
+ - 颜色:状态属性是带色调的进度状态或计算列时,已超期等取对应色调,其余取色板;图例可点击隐藏或显示某个状态。
30
+ - 基准日期以红色虚线标出。
31
+
32
+ 以上是展示规则,不判断好坏;是否拖期、是否冲突不由这个组件判断。
33
+
34
+ ## 扩展点
35
+
36
+ 无。拖期、风险这类判断写成知识网络里的逻辑属性或数据源的计算列,再选作“状态属性”显示即可。
37
+
38
+ ## 交互与联动
39
+
40
+ - **写入**:无。条不能点击,也不能拖动。
41
+ - **读取**:跟随页面的“跟随的筛选”,只画满足筛选的对象;基准日期变化时窗口随之移动。
42
+ - 悬停条显示名称、所在行、起止日期与状态。
43
+
44
+ ## 场景配方
45
+
46
+ ### 检修计划总览:下个月哪些产线挤在一起
47
+
48
+ | 角色 | 对应 |
49
+ | --- | --- |
50
+ | 条 | 检修工单(计划开始、计划结束,名称取工单号) |
51
+ | 行 | 工单的“产线”属性 |
52
+ | 状态 | 工单状态,或逻辑属性“是否超期” |
53
+
54
+ **知识网络中要有:** 工单的计划开始、计划结束两个日期属性;产线名称属性;可选的状态逻辑属性。
55
+
56
+ **检查项:** 把“基准日期之后的占比”调到 70% 以上,能看到未来几周;条数最多的产线排在最上;状态着色与图例一致。
57
+
58
+ ## 给 AI 的指引
59
+
60
+ 1. 先问用户:看哪一类对象、用哪两个日期作开始与结束、按什么分行、要不要按状态着色。只读展示,不要问规则。
61
+ 2. 开始、结束日期选的是日期类型的属性;两个相同会画成很短的条,说明用户选错了。
62
+ 3. 用户要“拖一拖看冲突”“排产”时,改用调度甘特(\`scheduleGantt\`),不要在这里硬凑。
63
+ 4. 常见错误:
64
+ - 分组属性选成唯一标识,结果每个对象一行,行数被“最多行数”截断。
65
+ - 做计划却没调大“基准日期之后的占比”,未来的条在窗口外看不到。
66
+ - 显示天数太大,条挤成一条线。
67
+ - 想点击条联动其他组件:本组件不写入筛选,应改用对象表或对象列表。
68
+
69
+ ## 限制
70
+
71
+ - 显示天数 14 到 365;最多行数 3 到 40;一个数据源。
72
+ - 不能点击、拖动,不写入任何筛选。
73
+ - 只显示条数最多的前若干行,其余行不显示。
74
+ `;
75
+ export {
76
+ n as default
77
+ };
@@ -0,0 +1,77 @@
1
+ const e = `# Gantt chart (ganttChart)
2
+
3
+ Draws objects as bars from start to end date, one row per group, around the page's base date. Use it to see how plans and progress are spread out: which items crowd together and which have run late.
4
+
5
+ ## When to use it and when not
6
+
7
+ - Use it to look, read only, at a set of objects with start and end dates, such as work order durations, project phases, contract terms, maintenance plans.
8
+ - Do not use it:
9
+ - To drag tasks to change resource and time, check conflicts and due dates, and apply a scenario: use the Schedule Gantt (\`scheduleGantt\`).
10
+ - To see only quantities and flow through stages: use the stage chain (\`stageChain\`).
11
+ - To follow a number over time: use the chart (\`trendChart\`).
12
+ - To see one object's progress steps: use the object detail (\`objectDetail\`).
13
+
14
+ ## Ontology contract
15
+
16
+ | Role | Object type | Required properties | Relations | Required |
17
+ | --- | --- | --- | --- | --- |
18
+ | Bar | The objects drawn as bars: work orders, projects, contracts | Start date and end date (date type); a name (bar name and hover title) | — | Yes |
19
+ | Row | The group a bar belongs to, taken from a property of the bar itself: line, owner, customer | One group property with readable values | — | Yes |
20
+ | Status | Decides the bar color and the legend | One status property; when it is a progress status or a computed column with tones, bars take those tones | — | No |
21
+
22
+ The component reads one data source and does not follow relations. To split rows by a related object, first make that object's name a column of this object in the data source, then pick it as the group property.
23
+
24
+ ## Built-in checks
25
+
26
+ - Window: it shows a span of "Days shown" (14 to 365, default 60) around the base date; "Share after the base date" defaults to 20% when empty, so most of the window lies before it; raise it when planning.
27
+ - Bars: only objects overlapping the window are drawn; objects whose start or end date is missing or unreadable are skipped. A bar whose end is before or equal to its start is drawn at a minimum width of about 6 hours.
28
+ - Rows: the rows with the most bars come first, up to "Max rows" (3 to 40, default 12); the rest are not shown.
29
+ - Color: when the status property is a progress status or computed column with tones, statuses such as overdue take their tone; others take the palette. Clicking the legend hides or shows a status.
30
+ - The base date is marked with a red dashed line.
31
+
32
+ These are display rules and do not judge good or bad; whether something is late or in conflict is not decided by this component.
33
+
34
+ ## Extension points
35
+
36
+ None. Put judgements such as late or at risk in logical properties on the knowledge network or computed columns of the data source, then pick them as the "Status property".
37
+
38
+ ## Interaction and links
39
+
40
+ - **Writes**: none. Bars cannot be clicked or dragged.
41
+ - **Reads**: follows the page's "Filters followed" and draws only objects that pass; the window moves with the base date.
42
+ - Hovering a bar shows its name, row, start and end dates and status.
43
+
44
+ ## Recipes
45
+
46
+ ### Maintenance plan overview: which lines crowd together next month
47
+
48
+ | Role | Maps to |
49
+ | --- | --- |
50
+ | Bar | Maintenance work orders (planned start, planned end, name from the order number) |
51
+ | Row | The order's "line" property |
52
+ | Status | The order status, or a logical property "overdue" |
53
+
54
+ **What the knowledge network needs:** two date properties on the work order for planned start and end; a line name property; optionally a status logical property.
55
+
56
+ **Checks:** raise "Share after the base date" to 70% or more and the coming weeks show; the line with most bars is at the top; status colors match the legend.
57
+
58
+ ## Guidance for AI
59
+
60
+ 1. Ask first: which object type to show, which two dates are start and end, what to split rows by, whether to color by status. It is display only, so do not ask about rules.
61
+ 2. Start and end must be date-type properties. If both are the same one, bars come out very short, which means the user picked wrongly.
62
+ 3. When the user wants to "drag and see conflicts" or "schedule", use the Schedule Gantt (\`scheduleGantt\`) instead of forcing it here.
63
+ 4. Common mistakes:
64
+ - Picking a unique ID as the group property: every object gets its own row and "Max rows" cuts them off.
65
+ - Planning without raising "Share after the base date": future bars fall outside the window.
66
+ - Days shown too large: bars shrink to lines.
67
+ - Wanting a click on a bar to drive other components: this component writes no filter; use the object table or object list.
68
+
69
+ ## Limits
70
+
71
+ - Days shown 14 to 365; max rows 3 to 40; one data source.
72
+ - No click or drag, and it writes no filter.
73
+ - Only the rows with the most bars are shown; the rest are not.
74
+ `;
75
+ export {
76
+ e as default
77
+ };