cm-reporting 0.4.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -408,6 +408,7 @@ declare const _default: {
408
408
  "authorizerPhone": "+86 xxx xxxx xxxx",
409
409
  "authorizationDate": "DD-MMM-YYYY",
410
410
  "smelterIdInput": "e.g. CID001105",
411
+ "smelterNumberInput": "e.g. CID001105",
411
412
  "smelterLookup": "Search smelter…",
412
413
  "smelterName": "Smelter name",
413
414
  "smelterNameRequired": "Required: Smelter name",
@@ -465,6 +466,7 @@ declare const _default: {
465
466
  "smelterLookup": "Smelter Look-up",
466
467
  "smelterName": "Smelter Name",
467
468
  "smelterId": "Smelter Identification Number Input Column",
469
+ "smelterNumber": "Smelter Number",
468
470
  "smelterIdentification": "Smelter Identification",
469
471
  "sourceId": "Source ID",
470
472
  "country": "Country",
@@ -1522,6 +1524,7 @@ declare const _default: {
1522
1524
  },
1523
1525
  "externalPickFailedTitle": "External selection failed",
1524
1526
  "externalPickFailedContent": "The external picker did not return data successfully. Please try again.",
1527
+ "externalPickMissingIdContent": "The external picker result is missing required id and cannot be applied.",
1525
1528
  "duplicateSmelterSelectionTitle": "Duplicate smelter selection",
1526
1529
  "duplicateSmelterSelectionContent": "The same smelter cannot be selected twice under the same metal. Please choose another one."
1527
1530
  }
@@ -1815,6 +1818,17 @@ declare interface SmelterExternalContextBase {
1815
1818
  currentRows: ReadonlyArray<SmelterRow>;
1816
1819
  }
1817
1820
 
1821
+ /**
1822
+ * 冶炼厂行内外部选择回写项:
1823
+ * - id:宿主数据主键(用于覆盖行 id,external/hybrid 模式下必填)
1824
+ * - smelterNumber:冶炼厂识别号码(仅用于展示列)
1825
+ * - smelterId:兼容字段,不建议继续使用
1826
+ */
1827
+ export declare type SmelterExternalPickItem = Omit<Partial<SmelterRow>, 'id'> & {
1828
+ id: string;
1829
+ smelterNumber?: string;
1830
+ };
1831
+
1818
1832
  /**
1819
1833
  * 导出接口类型:SmelterListConfig。
1820
1834
  */
@@ -1843,7 +1857,7 @@ export declare interface SmelterListIntegration {
1843
1857
  * - 返回 null/undefined 表示取消
1844
1858
  * - 返回 items[0] 将用于更新该行
1845
1859
  */
1846
- onPickSmelterForRow?: (ctx: SmelterRowPickContext) => Promise<ExternalPickResult<Partial<SmelterRow>>>;
1860
+ onPickSmelterForRow?: (ctx: SmelterRowPickContext) => Promise<ExternalPickResult<SmelterExternalPickItem>>;
1847
1861
  /** 冶炼厂名称/选择入口交互模式:默认 'internal'(用户手填)。 */
1848
1862
  lookupMode?: SmelterLookupMode;
1849
1863
  }
@@ -1865,6 +1879,10 @@ export declare interface SmelterRow {
1865
1879
  smelterCountry: string;
1866
1880
  combinedMetal?: string;
1867
1881
  combinedSmelter?: string;
1882
+ smelterNumber?: string;
1883
+ /**
1884
+ * 兼容字段:仅用于内部兼容承载,不参与任何业务判定或展示。
1885
+ */
1868
1886
  smelterId?: string;
1869
1887
  smelterIdentification?: string;
1870
1888
  sourceId?: string;