@k-table/report 1.0.20 → 1.0.21
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.cjs +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +13 -13
- package/dist/store.js +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -361,9 +361,9 @@ export function KtProvider(props: {
|
|
|
361
361
|
config: KtConfig;
|
|
362
362
|
onThemeChange?: (theme: KtTheme) => void;
|
|
363
363
|
children: ReactNode;
|
|
364
|
-
}): JSX.Element;
|
|
364
|
+
}): React.JSX.Element;
|
|
365
365
|
/** kt 产品界面的 antd 作用域:theme/locale/弹层/Modal 观感只罩 kt 自己的组件树(产品界面根组件已内建) */
|
|
366
|
-
export function KtAntdScope(props: { children: ReactNode }): JSX.Element;
|
|
366
|
+
export function KtAntdScope(props: { children: ReactNode }): React.JSX.Element;
|
|
367
367
|
/** 产品界面根节点属性:data 标记 + 主题 CSS 变量(界面被宿主弹窗 portal 到 body 时不丢主题) */
|
|
368
368
|
export function useKtSurfaceProps(): {
|
|
369
369
|
"data-kt-surface": "";
|
|
@@ -407,7 +407,7 @@ export function verifyKtLicense(
|
|
|
407
407
|
opts: { sku: KtSku; hostname?: string | null; now?: Date; publicKey?: string },
|
|
408
408
|
): KtLicenseInfo;
|
|
409
409
|
export function useKtLicense(): KtLicenseInfo;
|
|
410
|
-
export function KtLicenseBanner(): JSX.Element | null;
|
|
410
|
+
export function KtLicenseBanner(): React.JSX.Element | null;
|
|
411
411
|
|
|
412
412
|
export function readArtifactAtRev(store: VersionStore, rev: string): Promise<Artifact>;
|
|
413
413
|
export function KtVersionPanel(props: {
|
|
@@ -416,7 +416,7 @@ export function KtVersionPanel(props: {
|
|
|
416
416
|
id: string;
|
|
417
417
|
onClose: () => void;
|
|
418
418
|
onRestored?: () => void;
|
|
419
|
-
}): JSX.Element | null;
|
|
419
|
+
}): React.JSX.Element | null;
|
|
420
420
|
|
|
421
421
|
/** 向后兼容别名;正本为 ArtifactField(Artifact.fields 元素型) */
|
|
422
422
|
export type DesignerFormField = ArtifactField;
|
|
@@ -446,7 +446,7 @@ export function KtReportDesigner(props: {
|
|
|
446
446
|
bridgeRef?: { current: KtReportDesignerBridge | null };
|
|
447
447
|
/** 只读:隐藏保存/另存/导入入口(权限降级;画布仍可交互但不持久化) */
|
|
448
448
|
readOnly?: boolean;
|
|
449
|
-
}): JSX.Element;
|
|
449
|
+
}): React.JSX.Element;
|
|
450
450
|
/** 设计器宿主桥:读当前 KTL / 应用 KTL(带诊断)/ 当前预览字段袋文本 */
|
|
451
451
|
export type KtReportDesignerBridge = {
|
|
452
452
|
getCurrentKtl: () => string;
|
|
@@ -487,7 +487,7 @@ export function KtReportPreview(props: {
|
|
|
487
487
|
) => void;
|
|
488
488
|
/** page = 整页预览台;modal = 设计器弹层;embedded = 铺满宿主预览坞 */
|
|
489
489
|
chrome?: "page" | "modal" | "embedded";
|
|
490
|
-
}): JSX.Element;
|
|
490
|
+
}): React.JSX.Element;
|
|
491
491
|
// C3:低层逃生舱与通用预览工具
|
|
492
492
|
export type PageChromeRegions = { showOpinion: boolean; showQr: boolean; showReviewer: boolean };
|
|
493
493
|
export type PageChromePartial = Partial<PageChromeRegions>;
|
|
@@ -562,7 +562,7 @@ export function KtReportPreviewSurface(props: {
|
|
|
562
562
|
sheetIds?: string[];
|
|
563
563
|
/** 文档后处理(宿主业务变换):内建构建完成、空白变换之后调用 */
|
|
564
564
|
transformDocument?: (doc: unknown, ctx: { fieldData: ReportFieldData }) => unknown;
|
|
565
|
-
}): JSX.Element;
|
|
565
|
+
}): React.JSX.Element;
|
|
566
566
|
export function KtReportCatalog(props: {
|
|
567
567
|
store?: ArtifactStore;
|
|
568
568
|
kinds?: ArtifactKind[];
|
|
@@ -575,9 +575,9 @@ export function KtReportCatalog(props: {
|
|
|
575
575
|
renderRowActions?: (row: ArtifactMeta, ctx: { reload: () => void }) => ReactNode;
|
|
576
576
|
/** 行选择(宿主批量操作):提供后出现勾选列 */
|
|
577
577
|
rowSelection?: { selectedIds: string[]; onChange: (ids: string[]) => void };
|
|
578
|
-
}): JSX.Element;
|
|
579
|
-
export function KtThemeBar(props?: { variant?: "default" | "onPrimary" }): JSX.Element;
|
|
580
|
-
export function KtBrandBar(props: { title: string; themeBar?: boolean }): JSX.Element;
|
|
578
|
+
}): React.JSX.Element;
|
|
579
|
+
export function KtThemeBar(props?: { variant?: "default" | "onPrimary" }): React.JSX.Element;
|
|
580
|
+
export function KtBrandBar(props: { title: string; themeBar?: boolean }): React.JSX.Element;
|
|
581
581
|
|
|
582
582
|
export const EMPTY_KTL: string;
|
|
583
583
|
export const SAMPLE_A4_KTL: string;
|
|
@@ -731,8 +731,8 @@ export function InstanceFillSheet(props: {
|
|
|
731
731
|
pickedBagKey?: string | null;
|
|
732
732
|
face?: "entry" | "report";
|
|
733
733
|
onChange?: (code: string, val: string, meta?: { handEdit?: boolean; restore?: boolean; blur?: boolean; remove?: boolean }) => void;
|
|
734
|
-
}): JSX.Element;
|
|
735
|
-
export function InstanceFillLayout(props: any): JSX.Element;
|
|
734
|
+
}): React.JSX.Element;
|
|
735
|
+
export function InstanceFillLayout(props: any): React.JSX.Element;
|
|
736
736
|
// ---- C2b:宿主薄壳用纯函数 ----
|
|
737
737
|
export function applyComboMappingsToSheets(
|
|
738
738
|
valuesBySheet: Record<string, Record<string, string>>,
|
|
@@ -859,4 +859,4 @@ export function useFillLeftScope(
|
|
|
859
859
|
previewSheetId?: string;
|
|
860
860
|
onLeftScopeChange: (v: string) => void;
|
|
861
861
|
};
|
|
862
|
-
export function InstanceFillPreviewPane(props: any): JSX.Element;
|
|
862
|
+
export function InstanceFillPreviewPane(props: any): React.JSX.Element;
|