@yugoo-design/dsh-design-provider-web-app 0.1.0 → 0.2.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/lib/client.js CHANGED
@@ -2891,14 +2891,14 @@ window.__ModuleLoader__.load({
2891
2891
  });
2892
2892
  var useReactId$1 = react$1[" useId ".trim().toString()] || (() => void 0);
2893
2893
  var count$3 = 0;
2894
- function useId$3(deterministicId) {
2894
+ function useId$4(deterministicId) {
2895
2895
  const [id, setId] = react$1.useState(useReactId$1());
2896
2896
  useLayoutEffect2$1(() => {
2897
2897
  if (!deterministicId) setId((reactId) => reactId ?? String(count$3++));
2898
2898
  }, [deterministicId]);
2899
2899
  return deterministicId || (id ? `radix-${id}` : "");
2900
2900
  }
2901
- __name$21(useId$3, "useId");
2901
+ __name$21(useId$4, "useId");
2902
2902
  //#endregion
2903
2903
  //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2904
2904
  /**
@@ -6005,7 +6005,7 @@ window.__ModuleLoader__.load({
6005
6005
  ]);
6006
6006
  const isFormControl = trigger ? !!form || !!trigger.closest("form") : true;
6007
6007
  const [nativeOptionsSet, setNativeOptionsSet] = react$1.useState(/* @__PURE__ */ new Set());
6008
- const contentId = useId$3();
6008
+ const contentId = useId$4();
6009
6009
  const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
6010
6010
  const handleNativeOptionAdd = react$1.useCallback((option) => {
6011
6011
  setNativeOptionsSet((prev) => new Set(prev).add(option));
@@ -6615,7 +6615,7 @@ window.__ModuleLoader__.load({
6615
6615
  const [textValue, setTextValue] = react$1.useState(textValueProp ?? "");
6616
6616
  const [isFocused, setIsFocused] = react$1.useState(false);
6617
6617
  const composedRefs = useComposedRefs$1(forwardedRef, useCallbackRef$2((node) => contentContext.itemRefCallback?.(node, value, disabled)));
6618
- const textId = useId$3();
6618
+ const textId = useId$4();
6619
6619
  const pointerTypeRef = react$1.useRef("touch");
6620
6620
  const handleSelect = /* @__PURE__ */ __name$12(() => {
6621
6621
  if (!disabled) {
@@ -94966,7 +94966,7 @@ window.__ModuleLoader__.load({
94966
94966
  Modeler.prototype._modules = [].concat(Viewer.prototype._modules, Modeler.prototype._interactionModules, Modeler.prototype._modelingModules);
94967
94967
  }));
94968
94968
  //#endregion
94969
- //#region ../panel/lib/question-list-BIWufkcY.js
94969
+ //#region ../panel/lib/question-list-tufZK8uF.js
94970
94970
  const BASE_POLICY = [
94971
94971
  "default-src 'none'",
94972
94972
  "base-uri 'none'",
@@ -95002,6 +95002,8 @@ window.__ModuleLoader__.load({
95002
95002
  recordActions: "操作",
95003
95003
  requiredField: "必填",
95004
95004
  editTitle: "编辑标题",
95005
+ panelGuidance: "行动指引",
95006
+ diagramDetails: "流程详情",
95005
95007
  dismissGuidance: "关闭操作引导",
95006
95008
  requiredFieldName: "{item}(必填)",
95007
95009
  navigationGeometryPassed: "视觉检查通过",
@@ -95127,6 +95129,7 @@ window.__ModuleLoader__.load({
95127
95129
  artifact_failed: "需关注",
95128
95130
  artifact_unknown: "执行状态未知",
95129
95131
  partialArtifacts: "{count}/{total} 个子项产物可用。已有汇总不代表全部方向均已完成。",
95132
+ artifactAvailableWithFailedAttempt: "产物可阅读;存在执行失败记录",
95130
95133
  document: "文档",
95131
95134
  contents: "目录",
95132
95135
  noChapters: "暂无章节目录",
@@ -95323,12 +95326,110 @@ window.__ModuleLoader__.load({
95323
95326
  diagramUnmappedElement: "这个图形尚未关联步骤说明。请先从左侧选择已有步骤;新增或调整流程后,需要同步补充相应的业务说明。",
95324
95327
  diagramEditContextHint: "流程图与业务说明一并保存。修改步骤或分支后,请同步核对对应的步骤说明、审批条件与异常处理。",
95325
95328
  diagramUnassigned: "待关联事项",
95326
- diagramUnassignedHint: "这条记录尚未关联有效流程。请确认所属流程或对应步骤;系统不会按名称猜测归属。"
95329
+ diagramUnassignedHint: "这条记录尚未关联有效流程。请确认所属流程或对应步骤;系统不会按名称猜测归属。",
95330
+ unloadedReference: "{value}(引用来源未加载)",
95331
+ graphContextCounts: " · {nodes} 个关联项 / {references} 条引用",
95332
+ questionAdditions: "其他补充",
95333
+ tableTypeText: "文本",
95334
+ tableTypeNumber: "数字",
95335
+ tableTypeBoolean: "是 / 否",
95336
+ tableTypeDate: "日期",
95337
+ tableTypeSelect: "单选",
95338
+ tableFinishField: "请先应用或取消字段设置,再保存。",
95339
+ tableInvalidStructure: "数据表结构有误,请由 Agent 检查字段与数据。",
95340
+ tableFieldChanged: "此字段已被其他修改更新,请关闭后重新打开。",
95341
+ tableFieldInvalid: "字段设置与已有数据不符,请检查:",
95342
+ tableUnknown: "未提供",
95343
+ tableYes: "是",
95344
+ tableNo: "否",
95345
+ tableInvalidCell: "值不符合字段类型",
95346
+ tableCopied: "已复制表头和数据,可粘贴到电子表格。",
95347
+ tableCopyFailed: "浏览器未允许复制,请检查剪贴板权限。",
95348
+ tableView: "数据视图",
95349
+ tableDetailView: "数据表",
95350
+ tableMatrixView: "矩阵视图",
95351
+ tableRows: "行",
95352
+ tableFields: "个字段",
95353
+ tableCopy: "复制表格",
95354
+ tableAddField: "添加字段",
95355
+ tableFixCells: "有数据不符合字段类型,请修正标记的单元格后保存。",
95356
+ tableEmpty: "定义字段,开始整理数据",
95357
+ tableEmptyHint: "例如:物料、用量、单位。每列的名称和类型都可以修改。",
95358
+ tableDuplicate: "重复组合,请在数据表中核对",
95359
+ tableRowNumber: "行号",
95360
+ tableEditField: "编辑字段",
95361
+ tablePasteFailed: "未粘贴:",
95362
+ tableDeleteRow: "删除行",
95363
+ tableDeleteRowConfirm: "删除这一行数据?",
95364
+ tableAddRow: "添加行",
95365
+ tableMatrixHint: "矩阵与数据表使用同一份数据。空格表示未提供,不等于 0 或“否”。",
95366
+ tableKeyboardHint: "点击表头设置字段;Tab / Enter 切换单元格,也可粘贴表格数据。空值表示未提供。",
95367
+ tableFieldProperties: "字段设置",
95368
+ tableCancel: "取消",
95369
+ tableFieldName: "字段名称",
95370
+ tableFieldType: "数据类型",
95371
+ tableFieldRole: "字段用途",
95372
+ tableRoleAttribute: "一般属性",
95373
+ tableRoleDimension: "索引维度",
95374
+ tableRoleValue: "数值或状态",
95375
+ tableChoices: "可选项(每行一项)",
95376
+ tableUnit: "单位(可选)",
95377
+ tableDescription: "字段说明(可选)",
95378
+ tableMoveLeft: "左移",
95379
+ tableMoveRight: "右移",
95380
+ tableDeleteField: "删除字段",
95381
+ tableDeleteFieldConfirm: "删除此字段及其全部单元格数据?",
95382
+ tableApply: "应用",
95383
+ tableRowLimit: "样例表最多 500 行,请在主对话中处理更大的数据文件。",
95384
+ tableReadonlyHint: "只读数据表。可查看字段与样例,空值表示未提供。",
95385
+ mathMissingFormula: "尚未填写公式",
95386
+ mathTooLong: "公式过长,显示原文;请分成较短的表达式。",
95387
+ mathInvalid: "公式暂时无法排版,原文已保留。请检查 LaTeX。",
95388
+ mathSource: "查看设计来源",
95389
+ mathMalformed: "当前条目结构无法显示,请在数据中检查;原数据未被修改。",
95390
+ mathFormula: "数学表达",
95391
+ mathEmptyEntries: "暂无内容。可请 AI 根据当前设计展开,也可以手动添加。",
95392
+ mathUntitled: "未命名条目",
95393
+ mathFinishEntry: "结束编辑:{item}",
95394
+ mathEditEntry: "编辑:{item}",
95395
+ mathFinish: "完成编辑",
95396
+ mathEdit: "编辑",
95397
+ mathMissingMeaning: "尚未说明这条表达的含义。",
95398
+ mathEditHint: "公式使用 LaTeX,预览随输入更新。修改设计后,请保存继续,让 AI 核对业务含义与模型文件。",
95399
+ mathDeleteConfirm: "删除这个条目及其说明?",
95400
+ mathDelete: "删除条目",
95401
+ mathShowMore: "继续查看(还有 {count} 条)",
95402
+ mathAddEntry: "添加条目",
95403
+ mathNoText: "尚未填写",
95404
+ mathNotation: "符号说明",
95405
+ mathComplete: "完整数学表达",
95406
+ mathEvidence: "模型文件与校验记录",
95407
+ mathSymbolsHere: "公式中的符号",
95408
+ mathEditNotation: "修改符号说明",
95409
+ mathViewNotation: "查看全部符号",
95410
+ mathNotationHint: "这些定义由各条公式共用。修改某个符号的说明后,引用它的地方会一起更新。",
95411
+ mathCompleteHint: "将目标、约束和变量范围放在一起,便于整体核对模型。",
95412
+ mathEvidenceHint: "用于复现和检查模型:保留模型文件、所用输入及实际校验的工具和结果。尚未提供文件或记录时,仍可继续完善数学模型;不能据此声称已校验或已求解。",
95413
+ mathModelFile: "模型文件",
95414
+ mathModelChecks: "模型检查",
95415
+ mathNoCheckStatus: "尚未记录检查状态",
95416
+ mathNoCheckSummary: "尚未提供检查说明。",
95417
+ mathProvenance: "建模依据与技术记录",
95418
+ mathProvenanceHint: "生成模型或执行检查时保留的依据与记录,供追溯和排错。",
95419
+ mathOtherFields: "其他资料",
95420
+ mathViewFile: "查看文件",
95421
+ mathFileLoading: "正在读取文件…",
95422
+ mathFileUnavailable: "文件尚未发布,或当前环境无法读取该文件。",
95423
+ mathFileTooLarge: "文件较大,请在主对话中查看。",
95424
+ artifactDetails: "查看图表说明与来源",
95425
+ unassignedArtifacts: "未关联的产物"
95327
95426
  };
95328
95427
  const english = {
95329
95428
  recordActions: "Actions",
95330
95429
  requiredField: "Required",
95331
95430
  editTitle: "Edit title",
95431
+ panelGuidance: "Review guidance",
95432
+ diagramDetails: "Process details",
95332
95433
  dismissGuidance: "Dismiss panel guidance",
95333
95434
  requiredFieldName: "{item} (required)",
95334
95435
  navigationGeometryPassed: "Visual check passed",
@@ -95454,6 +95555,7 @@ window.__ModuleLoader__.load({
95454
95555
  artifact_failed: "Needs attention",
95455
95556
  artifact_unknown: "Execution status unknown",
95456
95557
  partialArtifacts: "{count}/{total} child outputs are available. The summary does not imply that every direction is complete.",
95558
+ artifactAvailableWithFailedAttempt: "Artifact available; a failed execution is recorded",
95457
95559
  document: "Document",
95458
95560
  contents: "Contents",
95459
95561
  noChapters: "No chapters yet",
@@ -95650,7 +95752,103 @@ window.__ModuleLoader__.load({
95650
95752
  diagramUnmappedElement: "This element has no unique step record. Select a step in the sidebar; new or changed flow elements need corresponding business details.",
95651
95753
  diagramEditContextHint: "The diagram and business details are saved together. After changing steps or branches, also review their descriptions, approval conditions and exception handling.",
95652
95754
  diagramUnassigned: "Unassigned records",
95653
- diagramUnassignedHint: "This record is not linked to a valid process. Choose its process or step; names are not used to guess ownership."
95755
+ diagramUnassignedHint: "This record is not linked to a valid process. Choose its process or step; names are not used to guess ownership.",
95756
+ unloadedReference: "{value} (reference source not loaded)",
95757
+ graphContextCounts: " · {nodes} context items / {references} references",
95758
+ questionAdditions: "Other additions",
95759
+ tableTypeText: "Text",
95760
+ tableTypeNumber: "Number",
95761
+ tableTypeBoolean: "Boolean",
95762
+ tableTypeDate: "Date",
95763
+ tableTypeSelect: "Single select",
95764
+ tableFinishField: "Apply or cancel the field settings before saving.",
95765
+ tableInvalidStructure: "The table structure is invalid. Ask the Agent to check its fields and rows.",
95766
+ tableFieldChanged: "This field changed while you were editing. Close and reopen its settings.",
95767
+ tableFieldInvalid: "Field settings do not match the data. Check:",
95768
+ tableUnknown: "Not provided",
95769
+ tableYes: "Yes",
95770
+ tableNo: "No",
95771
+ tableInvalidCell: "Value does not match the field type",
95772
+ tableCopied: "Headers and data copied. You can paste them into a spreadsheet.",
95773
+ tableCopyFailed: "The browser did not allow copying. Check clipboard permissions.",
95774
+ tableView: "Data view",
95775
+ tableDetailView: "Table",
95776
+ tableMatrixView: "Matrix",
95777
+ tableRows: "rows",
95778
+ tableFields: "fields",
95779
+ tableCopy: "Copy table",
95780
+ tableAddField: "Add field",
95781
+ tableFixCells: "Some values do not match their field types. Fix the marked cells before saving.",
95782
+ tableEmpty: "Define fields to start a table",
95783
+ tableEmptyHint: "For example: material, quantity and unit. Each column has an editable name and type.",
95784
+ tableDuplicate: "Duplicate combination; check the table",
95785
+ tableRowNumber: "Row number",
95786
+ tableEditField: "Edit field",
95787
+ tablePasteFailed: "Nothing pasted:",
95788
+ tableDeleteRow: "Delete row",
95789
+ tableDeleteRowConfirm: "Delete this data row?",
95790
+ tableAddRow: "Add row",
95791
+ tableMatrixHint: "The matrix edits the same rows as the table. An empty cell is unknown, not zero or false.",
95792
+ tableKeyboardHint: "Click a header to edit its field. Use Tab / Enter between cells or paste spreadsheet cells. Empty values are unknown.",
95793
+ tableFieldProperties: "Field settings",
95794
+ tableCancel: "Cancel",
95795
+ tableFieldName: "Field name",
95796
+ tableFieldType: "Data type",
95797
+ tableFieldRole: "Field role",
95798
+ tableRoleAttribute: "Attribute",
95799
+ tableRoleDimension: "Index dimension",
95800
+ tableRoleValue: "Value or status",
95801
+ tableChoices: "Choices (one per line)",
95802
+ tableUnit: "Unit (optional)",
95803
+ tableDescription: "Field description (optional)",
95804
+ tableMoveLeft: "Move left",
95805
+ tableMoveRight: "Move right",
95806
+ tableDeleteField: "Delete field",
95807
+ tableDeleteFieldConfirm: "Delete this field and all its cell values?",
95808
+ tableApply: "Apply",
95809
+ tableRowLimit: "Sample tables support up to 500 rows. Use the main conversation for larger data files.",
95810
+ tableReadonlyHint: "Read-only table. Inspect fields and sample values; empty cells are unknown.",
95811
+ mathMissingFormula: "Formula not provided",
95812
+ mathTooLong: "Formula is too long to render. Source is shown; split it into shorter expressions.",
95813
+ mathInvalid: "Cannot typeset this formula yet. Its source is preserved; check the LaTeX.",
95814
+ mathSource: "View design source",
95815
+ mathMalformed: "The entries cannot be displayed. Check their structure; the original data is unchanged.",
95816
+ mathFormula: "Formula",
95817
+ mathEmptyEntries: "No entries yet. Ask AI to develop the current design, or add an entry.",
95818
+ mathUntitled: "Untitled entry",
95819
+ mathFinishEntry: "Finish editing: {item}",
95820
+ mathEditEntry: "Edit: {item}",
95821
+ mathFinish: "Done editing",
95822
+ mathEdit: "Edit",
95823
+ mathMissingMeaning: "An explanation has not been provided.",
95824
+ mathEditHint: "Use LaTeX for formulas; the preview updates as you type. Save and continue so AI can reconcile the design with its meaning and model files.",
95825
+ mathDeleteConfirm: "Delete this entry and its explanation?",
95826
+ mathDelete: "Delete entry",
95827
+ mathShowMore: "Show more ({count} remaining)",
95828
+ mathAddEntry: "Add entry",
95829
+ mathNoText: "Not provided",
95830
+ mathNotation: "Notation",
95831
+ mathComplete: "Complete formulation",
95832
+ mathEvidence: "Model Files and Check Records",
95833
+ mathSymbolsHere: "Symbols in This Formula",
95834
+ mathEditNotation: "Edit Symbol Definitions",
95835
+ mathViewNotation: "View All Symbols",
95836
+ mathNotationHint: "Formulas share these definitions. Editing a symbol’s explanation updates each place that uses it.",
95837
+ mathCompleteHint: "Review the objectives, constraints and variable domains together as one model.",
95838
+ mathEvidenceHint: "Keep model files, input versions, and actual checking tools and results so the model can be reproduced and checked. You can develop the formulation before these are available; missing records do not establish validation or solving.",
95839
+ mathModelFile: "Model File",
95840
+ mathModelChecks: "Model Checks",
95841
+ mathNoCheckStatus: "No check status recorded",
95842
+ mathNoCheckSummary: "No check summary has been provided.",
95843
+ mathProvenance: "Model Inputs and Technical Records",
95844
+ mathProvenanceHint: "Records retained during model generation or checking, for tracing inputs and investigating problems.",
95845
+ mathOtherFields: "Other Details",
95846
+ mathViewFile: "View File",
95847
+ mathFileLoading: "Reading file…",
95848
+ mathFileUnavailable: "The file has not been published or cannot be read in this environment.",
95849
+ mathFileTooLarge: "This file is too large for an inline preview. View it in the main conversation.",
95850
+ artifactDetails: "Chart interpretation and source",
95851
+ unassignedArtifacts: "Unassigned artifacts"
95654
95852
  };
95655
95853
  const PanelLocaleContext = (0, react$1.createContext)("zh-CN");
95656
95854
  /** Literal replacement only; substituted record text is never evaluated again. */
@@ -101938,7 +102136,7 @@ window.__ModuleLoader__.load({
101938
102136
  var ITEM_NAME$1 = "RovingFocusGroupItem";
101939
102137
  var RovingFocusGroupItem = /* @__PURE__ */ react$1.forwardRef(/* @__PURE__ */ __name$9(function RovingFocusGroupItem2(props, forwardedRef) {
101940
102138
  const { __scopeRovingFocusGroup, focusable = true, active = false, tabStopId, children, ...itemProps } = props;
101941
- const autoId = useId$3();
102139
+ const autoId = useId$4();
101942
102140
  const id = tabStopId || autoId;
101943
102141
  const context = useRovingFocusContext(ITEM_NAME$1, __scopeRovingFocusGroup);
101944
102142
  const isCurrentTabStop = context.currentTabStopId === id;
@@ -104901,7 +105099,7 @@ window.__ModuleLoader__.load({
104901
105099
  const popperScope = usePopperScope$2(__scopeTooltip);
104902
105100
  const [trigger, setTrigger] = react$1.useState(null);
104903
105101
  const [contentIdState, setContentId] = react$1.useState(void 0);
104904
- const generatedContentId = useId$3();
105102
+ const generatedContentId = useId$4();
104905
105103
  const openTimerRef = react$1.useRef(0);
104906
105104
  const disableHoverableContent = disableHoverableContentProp ?? providerContext.disableHoverableContent;
104907
105105
  const delayDuration = delayDurationProp ?? providerContext.delayDuration;
@@ -135517,9 +135715,9 @@ window.__ModuleLoader__.load({
135517
135715
  scope: __scopeDialog,
135518
135716
  triggerRef,
135519
135717
  contentRef,
135520
- contentId: useId$3(),
135521
- titleId: useId$3(),
135522
- descriptionId: useId$3(),
135718
+ contentId: useId$4(),
135719
+ titleId: useId$4(),
135720
+ descriptionId: useId$4(),
135523
135721
  titlePresent: titleCount > 0,
135524
135722
  descriptionPresent: descriptionCount > 0,
135525
135723
  setTitleCount,
@@ -146495,7 +146693,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
146495
146693
  });
146496
146694
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TabsProvider, {
146497
146695
  scope: __scopeTabs,
146498
- baseId: useId$3(),
146696
+ baseId: useId$4(),
146499
146697
  value,
146500
146698
  onValueChange: setValue,
146501
146699
  orientation,
@@ -150389,9 +150587,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
150389
150587
  });
150390
150588
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DropdownMenuProvider, {
150391
150589
  scope: __scopeDropdownMenu,
150392
- triggerId: useId$3(),
150590
+ triggerId: useId$4(),
150393
150591
  triggerRef,
150394
- contentId: useId$3(),
150592
+ contentId: useId$4(),
150395
150593
  open,
150396
150594
  onOpenChange: setOpen,
150397
150595
  onOpenToggle: react$1.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),