@tongfun/ui 0.0.1-alpha.14 → 0.0.1-alpha.15
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/dashboard-data-table/types.d.ts +10 -0
- package/dist/{exceljs.min-DX7ZugTn.js → exceljs.min--w2Gnf2S.js} +1 -1
- package/dist/{index-PN-orn0y.js → index-DeFCl1SX.js} +96625 -92594
- package/dist/index.d.ts +25 -0
- package/dist/{index.es-M1zIpo9U.js → index.es-DwBVhTTr.js} +2 -2
- package/dist/index.js +588 -579
- package/dist/{jspdf.es.min-B3HXbylA.js → jspdf.es.min-DNbeD7Ag.js} +2 -2
- package/dist/lowcode-agent/index.js +96 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -9136,7 +9136,7 @@ function(n) {
|
|
|
9136
9136
|
});
|
|
9137
9137
|
}
|
|
9138
9138
|
function t() {
|
|
9139
|
-
return (Kt.DOMPurify ? Promise.resolve(Kt.DOMPurify) : import("./index-
|
|
9139
|
+
return (Kt.DOMPurify ? Promise.resolve(Kt.DOMPurify) : import("./index-DeFCl1SX.js").then((l) => l.n0)).catch(function(l) {
|
|
9140
9140
|
return Promise.reject(new Error("Could not load dompurify: " + l));
|
|
9141
9141
|
}).then(function(l) {
|
|
9142
9142
|
return l.default ? l.default : l;
|
|
@@ -9889,7 +9889,7 @@ function(n) {
|
|
|
9889
9889
|
var d = h.getContext("2d");
|
|
9890
9890
|
d.fillStyle = "#fff", d.fillRect(0, 0, h.width, h.height);
|
|
9891
9891
|
var m = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, _ = this;
|
|
9892
|
-
return (Kt.canvg ? Promise.resolve(Kt.canvg) : import("./index.es-
|
|
9892
|
+
return (Kt.canvg ? Promise.resolve(Kt.canvg) : import("./index.es-DwBVhTTr.js")).catch(function(k) {
|
|
9893
9893
|
return Promise.reject(new Error("Could not load canvg: " + k));
|
|
9894
9894
|
}).then(function(k) {
|
|
9895
9895
|
return k.default ? k.default : k;
|
|
@@ -10298,6 +10298,11 @@ const q = "0.1.0", T = {
|
|
|
10298
10298
|
default: "—",
|
|
10299
10299
|
description: "下拉选择配置(fieldType === 'select' 时生效) */"
|
|
10300
10300
|
},
|
|
10301
|
+
enumType: {
|
|
10302
|
+
type: "string",
|
|
10303
|
+
default: "—",
|
|
10304
|
+
description: "系统通用枚举类型编码(fieldId 为空且 fieldType === 'select' 时使用) */"
|
|
10305
|
+
},
|
|
10301
10306
|
applicationId: {
|
|
10302
10307
|
type: "string | number",
|
|
10303
10308
|
default: "—",
|
|
@@ -10410,7 +10415,12 @@ const q = "0.1.0", T = {
|
|
|
10410
10415
|
fieldId: {
|
|
10411
10416
|
type: "string | number",
|
|
10412
10417
|
default: "—",
|
|
10413
|
-
description: "远程加载选项的字段 ID(不提供时使用 static options) */"
|
|
10418
|
+
description: "远程加载选项的字段 ID(不提供时使用 enumType 或 static options) */"
|
|
10419
|
+
},
|
|
10420
|
+
enumType: {
|
|
10421
|
+
type: "string",
|
|
10422
|
+
default: "—",
|
|
10423
|
+
description: "系统通用枚举类型编码(fieldId 为空时使用) */"
|
|
10414
10424
|
},
|
|
10415
10425
|
applicationId: {
|
|
10416
10426
|
type: "string | number",
|
|
@@ -41119,6 +41129,21 @@ const q = "0.1.0", T = {
|
|
|
41119
41129
|
order: 40,
|
|
41120
41130
|
inspectorTab: "business"
|
|
41121
41131
|
},
|
|
41132
|
+
{
|
|
41133
|
+
name: "baselineFilters",
|
|
41134
|
+
title: "固定筛选条件",
|
|
41135
|
+
type: "Array<Record<string, unknown>>",
|
|
41136
|
+
control: "baseline-filters-editor",
|
|
41137
|
+
fallbackControl: "json",
|
|
41138
|
+
bindable: !0,
|
|
41139
|
+
advanced: !1,
|
|
41140
|
+
hidden: !1,
|
|
41141
|
+
required: !1,
|
|
41142
|
+
description: "固定基线筛选条件(ComplexFilterItem[]):始终并入查询 complexFilterList 并位于用户筛选之前,与用户筛选/目录导航条件 AND 叠加、界面不可改。编辑器 UI 落地前可用 JSON 配置。",
|
|
41143
|
+
group: "query",
|
|
41144
|
+
order: 48,
|
|
41145
|
+
inspectorTab: "business"
|
|
41146
|
+
},
|
|
41122
41147
|
{
|
|
41123
41148
|
name: "complexFilter",
|
|
41124
41149
|
title: "外挂复杂筛选条件",
|
|
@@ -54071,7 +54096,7 @@ const q = "0.1.0", T = {
|
|
|
54071
54096
|
},
|
|
54072
54097
|
customTypes: {
|
|
54073
54098
|
ListFilterFieldType: "'input' | 'select' | 'basicData' | 'date' | 'dateTime' | 'decimal' | 'integer' | 'textarea'",
|
|
54074
|
-
ListFilterField: "{ field: string; label: string; fieldType: ListFilterFieldType; group?: string; options?: Array<{label:string;value:string|number}>; fieldId?: string|number; applicationId?: string|number; basicDataConfig?: Record<string, unknown> }",
|
|
54099
|
+
ListFilterField: "{ field: string; label: string; fieldType: ListFilterFieldType; group?: string; options?: Array<{label:string;value:string|number}>; fieldId?: string|number; enumType?: string; applicationId?: string|number; basicDataConfig?: Record<string, unknown> }",
|
|
54075
54100
|
ComplexFilterItem: "{ leftBracket: string; field: string; label: string; operator: string; valueIsField: boolean; value: string; valueLabel: string; rightBracket: string; logicOperator: 'AND'|'OR' }",
|
|
54076
54101
|
ListFilterScheme: "{ id: string|number; name: string; config: ComplexFilterItem[]; defaultFilter?: boolean; isShare?: boolean; isAllUser?: boolean; userIds?: Array<string|number>; shareUserNames?: string[]; sharedToMe?: boolean; isGlobal?: boolean; origin?: 'mine'|'sharedByMe'|'sharedWithMe'|'global'|'draft'; canEdit?: boolean; enabled?: boolean; sort?: number; hasUnsavedChanges?: boolean; persistedConfig?: ComplexFilterItem[]; sortRules?: ListFilterSortRule[] }",
|
|
54077
54102
|
ListFilterSchemeUser: "{ id: string|number; name: string; department?: string; email?: string }",
|
|
@@ -55246,6 +55271,11 @@ const q = "0.1.0", T = {
|
|
|
55246
55271
|
default: "—",
|
|
55247
55272
|
description: "下拉选择配置(fieldType === 'select' 时生效) */"
|
|
55248
55273
|
},
|
|
55274
|
+
enumType: {
|
|
55275
|
+
type: "string",
|
|
55276
|
+
default: "—",
|
|
55277
|
+
description: "系统通用枚举类型编码(fieldId 为空且 fieldType === 'select' 时使用) */"
|
|
55278
|
+
},
|
|
55249
55279
|
applicationId: {
|
|
55250
55280
|
type: "string | number",
|
|
55251
55281
|
default: "—",
|
|
@@ -55360,6 +55390,11 @@ const q = "0.1.0", T = {
|
|
|
55360
55390
|
default: "—",
|
|
55361
55391
|
description: "远程加载选项的字段 ID(不提供时使用 static options) */"
|
|
55362
55392
|
},
|
|
55393
|
+
enumType: {
|
|
55394
|
+
type: "string",
|
|
55395
|
+
default: "—",
|
|
55396
|
+
description: "系统通用枚举类型编码(fieldId 为空时使用) */"
|
|
55397
|
+
},
|
|
55363
55398
|
applicationId: {
|
|
55364
55399
|
type: "string | number",
|
|
55365
55400
|
default: "—",
|
|
@@ -61264,6 +61299,11 @@ const q = "0.1.0", T = {
|
|
|
61264
61299
|
default: "—",
|
|
61265
61300
|
description: "下拉选择配置(fieldType === 'select' 时生效) */"
|
|
61266
61301
|
},
|
|
61302
|
+
enumType: {
|
|
61303
|
+
type: "string",
|
|
61304
|
+
default: "—",
|
|
61305
|
+
description: "系统通用枚举类型编码(fieldId 为空且 fieldType === 'select' 时使用) */"
|
|
61306
|
+
},
|
|
61267
61307
|
applicationId: {
|
|
61268
61308
|
type: "string | number",
|
|
61269
61309
|
default: "—",
|
|
@@ -61373,7 +61413,12 @@ const q = "0.1.0", T = {
|
|
|
61373
61413
|
fieldId: {
|
|
61374
61414
|
type: "string | number",
|
|
61375
61415
|
default: "—",
|
|
61376
|
-
description: "远程加载选项的字段 ID(不提供时使用 static options) */"
|
|
61416
|
+
description: "远程加载选项的字段 ID(不提供时使用 enumType 或 static options) */"
|
|
61417
|
+
},
|
|
61418
|
+
enumType: {
|
|
61419
|
+
type: "string",
|
|
61420
|
+
default: "—",
|
|
61421
|
+
description: "系统通用枚举类型编码(fieldId 为空时使用) */"
|
|
61377
61422
|
},
|
|
61378
61423
|
applicationId: {
|
|
61379
61424
|
type: "string | number",
|
|
@@ -74880,6 +74925,15 @@ const q = "0.1.0", T = {
|
|
|
74880
74925
|
payload: {
|
|
74881
74926
|
tab: "'metrics'"
|
|
74882
74927
|
}
|
|
74928
|
+
},
|
|
74929
|
+
{
|
|
74930
|
+
name: "drillThrough",
|
|
74931
|
+
eventName: "drill-through",
|
|
74932
|
+
title: "drill-through",
|
|
74933
|
+
payload: {
|
|
74934
|
+
widgetId: "string",
|
|
74935
|
+
target: "DrillTarget"
|
|
74936
|
+
}
|
|
74883
74937
|
}
|
|
74884
74938
|
],
|
|
74885
74939
|
slots: [],
|
|
@@ -75171,6 +75225,18 @@ const q = "0.1.0", T = {
|
|
|
75171
75225
|
default: "eq",
|
|
75172
75226
|
description: "过滤运算符小写协议;读取历史大写值时兼容归一化,保存和请求只输出小写"
|
|
75173
75227
|
},
|
|
75228
|
+
DashboardDrillConfig: {
|
|
75229
|
+
type: "{ enabled?: boolean; levels: string[] }",
|
|
75230
|
+
description: "模块下钻层级链:levels 为有序维度编码(2~10),当前展示层由 xAxis/tableDimensions 决定;仅指标平台数据源可用"
|
|
75231
|
+
},
|
|
75232
|
+
DashboardDrillStep: {
|
|
75233
|
+
type: "{ levelCode: string; value: string; label: string }",
|
|
75234
|
+
description: "运行时下钻栈的一步(不落报表配置):层级维度编码、点击值原文、面包屑显示名"
|
|
75235
|
+
},
|
|
75236
|
+
DrillTarget: {
|
|
75237
|
+
type: "{ name?: string; path?: string; params?: Record<string, string | number>; query?: Record<string, string | number | boolean>; label?: string }",
|
|
75238
|
+
description: "一跳穿透目标(复用 metric 的 canonical 类型);组件只上抛,跳转由宿主执行"
|
|
75239
|
+
},
|
|
75174
75240
|
DashboardContentBlock: {
|
|
75175
75241
|
id: {
|
|
75176
75242
|
type: "string",
|
|
@@ -83216,8 +83282,8 @@ const q = "0.1.0", T = {
|
|
|
83216
83282
|
advanced: !0,
|
|
83217
83283
|
hidden: !1,
|
|
83218
83284
|
required: !1,
|
|
83219
|
-
default: !
|
|
83220
|
-
description: "是否显示 L1 条件组 / L2 子条件组 / L3
|
|
83285
|
+
default: !1,
|
|
83286
|
+
description: "是否显示 L1 条件组 / L2 子条件组 / L3 孙条件组徽标。默认不显示:组盒子底色深浅已表达层级。"
|
|
83221
83287
|
},
|
|
83222
83288
|
{
|
|
83223
83289
|
name: "entities",
|
|
@@ -85454,9 +85520,31 @@ const q = "0.1.0", T = {
|
|
|
85454
85520
|
hidden: !1,
|
|
85455
85521
|
required: !1,
|
|
85456
85522
|
description: "当前 module 的字段元数据目录(报表详情 moduleFieldMeta[].fields)。undefined=旧后端兼容 filterFields;null/[]=明确无字段配置,按 column.dataType 推断简单类型;数组=按当前列匹配 fieldType/sourceFieldId/relation/extraConfig。"
|
|
85523
|
+
},
|
|
85524
|
+
{
|
|
85525
|
+
name: "drillFields",
|
|
85526
|
+
title: "drillFields",
|
|
85527
|
+
type: "string[]",
|
|
85528
|
+
control: "json",
|
|
85529
|
+
bindable: !1,
|
|
85530
|
+
advanced: !0,
|
|
85531
|
+
hidden: !1,
|
|
85532
|
+
required: !1,
|
|
85533
|
+
default: [],
|
|
85534
|
+
description: "可下钻字段(列字段名)。声明后对应单元格呈现手型光标与「点击下钻」提示,单击发出 cell-click;未声明列行为不变。"
|
|
85457
85535
|
}
|
|
85458
85536
|
],
|
|
85459
85537
|
events: [
|
|
85538
|
+
{
|
|
85539
|
+
name: "cell-click",
|
|
85540
|
+
eventName: "cell-click",
|
|
85541
|
+
title: "cell-click",
|
|
85542
|
+
payload: {
|
|
85543
|
+
row: "Record<string, unknown>",
|
|
85544
|
+
field: "string",
|
|
85545
|
+
rowIndex: "number"
|
|
85546
|
+
}
|
|
85547
|
+
},
|
|
85460
85548
|
{
|
|
85461
85549
|
name: "update:selectedDimensionCodes",
|
|
85462
85550
|
eventName: "update:selectedDimensionCodes",
|
|
@@ -85500,7 +85588,7 @@ const q = "0.1.0", T = {
|
|
|
85500
85588
|
DashboardDataTableMetric: "指标候选(code/field/name/dataType/aggregationType)",
|
|
85501
85589
|
DashboardDataTableColumn: "列元数据(name/label/columnType/dataType)",
|
|
85502
85590
|
DashboardTableMetric: "指标候选别名",
|
|
85503
|
-
DashboardTableFieldMeta: "后端过滤字段元数据(field/label/fieldType/dataType/sourceFieldId/relation/extraConfig/options/basicDataConfig 等);relation 与 extraConfig 可为对象或 JSON 字符串",
|
|
85591
|
+
DashboardTableFieldMeta: "后端过滤字段元数据(field/label/fieldType/dataType/sourceFieldId/relation/extraConfig/options/fieldId/applicationId/basicDataConfig/enumType 等);relation 与 extraConfig 可为对象或 JSON 字符串",
|
|
85504
85592
|
DashboardTableSchemeContext: "方案隔离上下文(判别联合):{ kind?: 'list', applicationId, pageId, entityId, sceneCode? } 或 { kind: 'report', reportCode, moduleId }",
|
|
85505
85593
|
DashboardTableQuery: "宿主查询参数 { widgetId, selectedDimensions, selectedMetrics, conditions };dashboard 路径不会因指标勾选发出 query",
|
|
85506
85594
|
ComplexFilterItem: "与通用列表一致的扁平过滤条件",
|
|
@@ -91951,7 +92039,7 @@ const q = "0.1.0", T = {
|
|
|
91951
92039
|
props: [
|
|
91952
92040
|
{
|
|
91953
92041
|
name: "open",
|
|
91954
|
-
title: "
|
|
92042
|
+
title: "展开",
|
|
91955
92043
|
type: "boolean",
|
|
91956
92044
|
control: "switch",
|
|
91957
92045
|
bindable: !0,
|
|
@@ -91987,7 +92075,7 @@ const q = "0.1.0", T = {
|
|
|
91987
92075
|
{
|
|
91988
92076
|
name: "close",
|
|
91989
92077
|
eventName: "close",
|
|
91990
|
-
title: "
|
|
92078
|
+
title: "关闭",
|
|
91991
92079
|
payload: {}
|
|
91992
92080
|
},
|
|
91993
92081
|
{
|