@byteluck-fe/runtime-engine 7.0.0-beta.9 → 7.0.1-beta.1

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 (51) hide show
  1. package/dist/runtime-engine.js +15894 -63929
  2. package/dist/src/components/controls/index.d.ts +2 -1
  3. package/dist/src/entry_desktop/controls/components/subtable-ag-grid/hooks/useAgGrid.d.ts +2 -0
  4. package/dist/src/entry_desktop/controls/rok-amount/editorValue.d.ts +2 -0
  5. package/dist/src/entry_desktop/controls/rok-grid-table/detailGridPaginationMount.d.ts +5 -0
  6. package/dist/src/entry_desktop/controls/rok-grid-table/detailPaginationSyncBus.d.ts +13 -0
  7. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useColumns.d.ts +14 -5
  8. package/dist/src/entry_desktop/controls/rok-simple-search/layout.d.ts +46 -0
  9. package/dist/src/entry_desktop/controls/rok-simple-search/useSearchContainerHeight.d.ts +1 -0
  10. package/dist/src/entry_desktop/qiankun-entry.d.ts +2 -0
  11. package/dist/src/entry_desktop/setupQiankunBootstrap.d.ts +0 -0
  12. package/dist/src/entry_desktop/setupQiankunRuntimeGlobals.d.ts +1 -0
  13. package/dist/src/entry_desktop/utils/antdLocale.d.ts +2 -0
  14. package/dist/src/entry_mobile/controls/rok-attachment/hook-file-base.d.ts +4 -1
  15. package/dist/src/entry_mobile/controls/rok-date-picker/hook.d.ts +3 -2
  16. package/dist/src/hooks/controls/address/useAddress.d.ts +1 -1
  17. package/dist/src/hooks/controls/button/useButton.d.ts +1 -0
  18. package/dist/src/hooks/controls/chart/useChart.d.ts +3 -1
  19. package/dist/src/hooks/controls/listView/useListRows.d.ts +6 -1
  20. package/dist/src/hooks/controls/listView/useModel.d.ts +4 -0
  21. package/dist/src/hooks/controls/title/index.d.ts +1 -0
  22. package/dist/src/hooks/controls/title/useTitleStar.d.ts +14 -0
  23. package/dist/src/plugins/engine/ActionUtilsPlugin.d.ts +1 -0
  24. package/dist/src/plugins/engine/DataViewPlugin.d.ts +2 -2
  25. package/dist/src/plugins/engine/EventListenerPlugin/index.d.ts +2 -0
  26. package/dist/src/plugins/engine/EventListenerPlugin/type.d.ts +2 -1
  27. package/dist/src/plugins/engine/StatisticsPlugin.d.ts +1 -0
  28. package/dist/src/services/api.d.ts +4 -1
  29. package/dist/src/services/infoAuto.d.ts +10 -4
  30. package/dist/src/services/portalCustom.d.ts +22 -0
  31. package/dist/src/services/services.auto.d.ts +18 -0
  32. package/dist/src/utils/closeGuard.d.mts +4 -0
  33. package/dist/src/utils/controls/formCopy.d.ts +2 -0
  34. package/dist/src/utils/controls/gridColumnRuntimeControl.d.ts +13 -0
  35. package/dist/src/utils/controls/index.d.ts +1 -0
  36. package/dist/src/utils/controls/listViewConfigViews.d.ts +10 -0
  37. package/dist/src/utils/controls/listViewTitle.d.ts +1 -0
  38. package/dist/src/utils/controls/masterDetailHeaders.d.ts +15 -0
  39. package/dist/src/utils/controls/portalHome.d.ts +7 -0
  40. package/dist/src/utils/controls/preview.d.ts +1 -0
  41. package/dist/src/utils/controls/richText.d.ts +3 -0
  42. package/dist/src/utils/controls/selectOptions.d.ts +6 -0
  43. package/dist/src/utils/controls/subtableDealTableColumn.d.ts +2 -0
  44. package/dist/src/utils/controls/treeGroupHeader.d.ts +6 -0
  45. package/dist/src/utils/core/crossMessageProcessor.d.ts +1 -0
  46. package/dist/src/utils/core/customVariables.d.ts +4 -0
  47. package/dist/src/utils/core/index.d.ts +1 -0
  48. package/dist/src/utils/tools/getCachedApplyRender.d.ts +4 -1
  49. package/dist/src/utils/tools/getCachedCurrentUser.d.ts +1 -1
  50. package/dist/src/utils/vite/createGlobRequireContext.d.ts +7 -0
  51. package/package.json +7 -6
@@ -1,2 +1,3 @@
1
- declare const rokComPonentContext: any;
1
+ import { GlobRequireContext } from '../../utils/vite/createGlobRequireContext';
2
+ declare const rokComPonentContext: GlobRequireContext;
2
3
  export default rokComPonentContext;
@@ -55,8 +55,10 @@ export default function useAgGrid(props: BasicType, emit: any): {
55
55
  }>>, {}, {}>;
56
56
  };
57
57
  } & {
58
+ pagination?: boolean | undefined;
58
59
  paginationPageSize?: number | undefined;
59
60
  onPaginationChanged?: ((event: any) => void) | undefined;
61
+ singleClickEdit?: boolean | undefined;
60
62
  };
61
63
  subtableHeight: ComputedRef<string | String>;
62
64
  getRowStyle: () => {
@@ -0,0 +1,2 @@
1
+ export type AmountEditorValue = number | '';
2
+ export declare function normalizeAmountEditorValue(value: unknown, handlePrecision: (value: string) => number | string): AmountEditorValue;
@@ -0,0 +1,5 @@
1
+ import { GridApi } from '@ag-grid-community/core';
2
+
3
+ /** Master/Detail 嵌套网格:挂载与主表一致的 Ant Pagination */
4
+ export declare function mountMasterDetailAntPagination(api: GridApi<any>): void;
5
+ export declare function unmountMasterDetailAntPagination(api: GridApi<any>): void;
@@ -0,0 +1,13 @@
1
+ import { GridApi } from '@ag-grid-community/core';
2
+
3
+ export type DetailPaginationMeta = {
4
+ current: number;
5
+ pageSize: number;
6
+ total: number;
7
+ };
8
+ export declare function registerDetailPaginationUISync(api: GridApi<any>, sync: () => void): void;
9
+ export declare function unregisterDetailPaginationUISync(api: GridApi<any>): void;
10
+ export declare function setDetailPaginationMeta(api: GridApi<any>, meta: Partial<DetailPaginationMeta>): void;
11
+ export declare function getDetailPaginationMeta(api: GridApi<any>): DetailPaginationMeta | undefined;
12
+ /** 服务端分页回调更新 total 等后刷新 Ant Pagination 展示 */
13
+ export declare function notifyDetailPaginationUISync(api: GridApi<any>): void;
@@ -1,4 +1,4 @@
1
- import { ComputedRef, Ref, ShallowRef } from 'vue';
1
+ import { ComputedRef, Ref, ShallowRef, MaybeRef } from 'vue';
2
2
  import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
3
3
  import { DragStoppedEvent, GridApi, ColDef, ColumnResizedEvent } from '@ag-grid-community/core';
4
4
 
@@ -8,6 +8,10 @@ import { DragStoppedEvent, GridApi, ColDef, ColumnResizedEvent } from '@ag-grid-
8
8
  interface ExtendedColDef extends ColDef {
9
9
  children?: ExtendedColDef[];
10
10
  }
11
+ type ColumnBuildOptions = {
12
+ headers?: any[];
13
+ isDetail?: boolean;
14
+ };
11
15
  export declare function useColumns(params: {
12
16
  instance: ControlRuntimeInstance<'grid-table'> | ComputedRef<ControlRuntimeInstance<'grid-table'>>;
13
17
  isShowSelection?: ComputedRef<boolean>;
@@ -16,6 +20,14 @@ export declare function useColumns(params: {
16
20
  isShowJoinRelation?: boolean;
17
21
  isMuitiSelection?: ComputedRef<boolean>;
18
22
  isShowCustomColumns?: ComputedRef<boolean>;
23
+ /** 与 rok-list-view 的 :control 一致,用于读取 isMasterDetail / masterDetail(勿仅依赖 instance.parent) */
24
+ listViewControl?: MaybeRef<ControlRuntimeInstance<'list-view'> | undefined>;
25
+ /** 主表 reactive gridInterface,子表同步 defaultColDef / overlay 等 */
26
+ gridInterface?: Record<string, unknown>;
27
+ /** 与主表一致的行高、表头高 */
28
+ detailRowHeight?: MaybeRef<number | undefined>;
29
+ /** 主表 ag-grid 的 context(含 engineId、exposeParams),子表 Header/Cell 依赖;在 setup 稍后赋值 */
30
+ masterGridAgContext?: ShallowRef<Record<string, unknown> | null>;
19
31
  }): {
20
32
  columns: ShallowRef<ColDef<any, any>[]>;
21
33
  detailCellRendererParams: Ref<any>;
@@ -29,10 +41,7 @@ export declare function useColumns(params: {
29
41
  viewConfigs: ComputedRef<ViewConfigType>;
30
42
  customColumns: ShallowRef<any>;
31
43
  fullColumns: any[];
32
- getColumns: (viewFieldCode?: string[], type?: 'reset', options?: {
33
- headers: any[];
34
- isDetail: boolean;
35
- } | undefined) => Promise<void>;
44
+ getColumns: (viewFieldCode?: string[], type?: 'reset', options?: ColumnBuildOptions) => Promise<ColDef<any, any>[] | undefined>;
36
45
  groupDefaultExpanded: ComputedRef<0 | -1>;
37
46
  autoGroupColumnDef: ComputedRef<any>;
38
47
  isTreeData: ComputedRef<boolean | undefined>;
@@ -0,0 +1,46 @@
1
+ export type SimpleSearchLayoutParams = {
2
+ searchWidth?: number;
3
+ childMinWidth?: number;
4
+ colGap?: number;
5
+ childrenCount: number;
6
+ buttonWidth?: number;
7
+ };
8
+ export type SimpleSearchKeepOneLineLayout = {
9
+ keepOneLineCount?: number;
10
+ buttonColumnSpan: number;
11
+ };
12
+ export type SimpleSearchGridRowsParams = {
13
+ fieldCount: number;
14
+ columnCount?: number;
15
+ buttonColumnSpan?: number;
16
+ };
17
+ export type SimpleSearchGridRows = {
18
+ rowCount: number;
19
+ buttonOnOwnRow: boolean;
20
+ };
21
+ export declare function getSimpleSearchFirstRowFieldCount(params: {
22
+ columnCount?: number;
23
+ buttonColumnSpan?: number;
24
+ fieldCount?: number;
25
+ }): number;
26
+ export declare function getSimpleSearchLayoutOrder(params: {
27
+ fieldCount?: number;
28
+ columnCount?: number;
29
+ buttonColumnSpan?: number;
30
+ }): {
31
+ firstRowFieldCount: number;
32
+ remainingFieldCount: number;
33
+ };
34
+ export declare function getSimpleSearchColumnCount(params: {
35
+ searchWidth?: number;
36
+ childMinWidth?: number;
37
+ colGap?: number;
38
+ }): number;
39
+ export declare function getSimpleSearchButtonColumnSpan(params: {
40
+ buttonWidth?: number;
41
+ childMinWidth?: number;
42
+ colGap?: number;
43
+ columnCount?: number;
44
+ }): number;
45
+ export declare function getSimpleSearchKeepOneLineLayout(params: SimpleSearchLayoutParams): SimpleSearchKeepOneLineLayout;
46
+ export declare function getSimpleSearchGridRows(params: SimpleSearchGridRowsParams): SimpleSearchGridRows;
@@ -3,4 +3,5 @@ import { Ref } from 'vue';
3
3
  export declare function useSearchContainerHeight(params: {
4
4
  props: any;
5
5
  searchRef: Ref<any>;
6
+ buttonColumnSpan?: Ref<number>;
6
7
  }): void;
@@ -0,0 +1,2 @@
1
+
2
+ export { bootstrap, mount, unmount, update } from './main';
@@ -0,0 +1,2 @@
1
+ export declare const getAntdLocaleName: (locale?: string | null) => string;
2
+ export declare const loadAntdLocale: (locale?: string | null) => Promise<unknown>;
@@ -7,6 +7,7 @@ import { default as __DTS_DEFAULT_3__ } from '../../../services/infoAuto';
7
7
  import { default as __DTS_DEFAULT_4__ } from '../../../services/widgets';
8
8
  import { default as __DTS_DEFAULT_5__ } from '../../../services/template';
9
9
  import { default as __DTS_DEFAULT_6__ } from '../../../services/appsCustom';
10
+ import { default as __DTS_DEFAULT_7__ } from '../../../services/portalCustom';
10
11
  import { FetchService } from '@byteluck-fe/global-shared';
11
12
  import { Engine } from '@byteluck-fe/model-driven-engine';
12
13
 
@@ -15,10 +16,12 @@ export default function (instanceProps: ShallowRef<ControlPropertyInstance<'atta
15
16
  default: __DTS_DEFAULT_0__;
16
17
  portal: __DTS_DEFAULT_1__;
17
18
  baseAuto: __DTS_DEFAULT_2__;
18
- baseInfo: __DTS_DEFAULT_3__;
19
+ baseInfo: __DTS_DEFAULT_2__;
20
+ infoAuto: __DTS_DEFAULT_3__;
19
21
  widgetsAuto: __DTS_DEFAULT_4__;
20
22
  templateAuto: __DTS_DEFAULT_5__;
21
23
  appsCustomAuto: __DTS_DEFAULT_6__;
24
+ portalCustomAuto: __DTS_DEFAULT_7__;
22
25
  httpClient: FetchService;
23
26
  };
24
27
  context: Ref<Engine> | undefined;
@@ -1,12 +1,13 @@
1
1
  import { ShallowRef, ComputedRef, Ref } from 'vue';
2
- import { ControlPropertyInstance, ControlRuntimeInstance, PAGE_STATUS, DateType, PropertyRuntimeRules, LimitDate } from '@byteluck-fe/model-driven-core-all';
2
+ import { ControlPropertyInstance, ControlRuntimeInstance, PAGE_STATUS, PropertyRuntimeRules, LimitDate } from '@byteluck-fe/model-driven-core-all';
3
3
 
4
+ export declare const parseDatePickerValue: (value: string | undefined | number) => number | undefined;
4
5
  export default function (instanceProps: ShallowRef<ControlPropertyInstance<'date-picker'>>, instance: ControlRuntimeInstance<'date-picker'>, value: string | undefined, rowIndex: number | undefined): {
5
6
  pageStatus: ComputedRef<PAGE_STATUS>;
6
7
  isDisabled: ComputedRef<boolean>;
7
8
  placeholder: ComputedRef<any>;
8
9
  isEditable: ComputedRef<boolean>;
9
- dateType: ComputedRef<DateType>;
10
+ dateType: ComputedRef<"datetime" | "datemin" | "datehour" | "date" | "month" | "year">;
10
11
  updateValue: (value: string | number | object | string[] | number[]) => void;
11
12
  formatValue: (value: string | undefined | number) => string;
12
13
  minDate: Ref<{
@@ -1,3 +1,3 @@
1
1
  export default function useAddress(addressType?: any): {
2
- handleDealData: (value?: any) => string;
2
+ handleDealData: (value?: any, currentAddressType?: any) => string;
3
3
  };
@@ -30,4 +30,5 @@ export declare function useButton(props: PropsInstanceType<CONTROL_TYPE.BUTTON>,
30
30
  buttonContent: ComputedRef<string>;
31
31
  clickHandle: (event: Event) => void;
32
32
  isLoading: Ref<boolean>;
33
+ isOperateDisabled: Ref<boolean>;
33
34
  };
@@ -2,9 +2,11 @@ import { Ref, ShallowRef, ComputedRef } from 'vue';
2
2
  import { PropsInstanceType } from '../../../constant';
3
3
 
4
4
  type ChartProps = PropsInstanceType<'bar-chart'> | PropsInstanceType<'line-chart'> | PropsInstanceType<'pie-chart'>;
5
- export declare function useChart(props: ChartProps, defaultTemplate: string): {
5
+ type ChartOptionEnhancer = (option: Record<string, any>) => Record<string, any>;
6
+ export declare function useChart(props: ChartProps, defaultTemplate: string, enhanceChartOption?: ChartOptionEnhancer): {
6
7
  formItemRef: ShallowRef<null>;
7
8
  chartRef: Ref<HTMLDivElement | null>;
9
+ chartOption: ComputedRef<Record<string, any>>;
8
10
  renderError: Ref<string>;
9
11
  formItemInstanceProps: ComputedRef<{
10
12
  caption: any;
@@ -1,5 +1,10 @@
1
1
  import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
2
2
 
3
+ /**
4
+ * 嵌套子表:设计器列 field_code(如 num1)与 nest 接口 rows_header(如 num)不一致时,从别名/去尾数字段补值。
5
+ * 同时写入顶层与 data_value_map,保证 valueGetter 与 CellRendererFramework 一致。
6
+ */
7
+ export declare function applyDetailRowFieldAliasesFromHeaders(rows: any[], headersFlat: any[]): void;
3
8
  export declare function useListRows(gridInstance: ControlRuntimeInstance<'grid-table'> | any): {
4
- getRowsFromResult: (result: any, blListViewData?: any, type?: string) => any;
9
+ getRowsFromResult: (result: any, blListViewData?: any, type?: string, headersOverride?: any[]) => {}[];
5
10
  };
@@ -48,6 +48,10 @@ export declare function useListViewModel(params: listViewModelParams): {
48
48
  fetchTableList: ({ paginationInfo, ordersInfo, queryInfo, filtersInfo, isFilter, clear, isPost, isPageChange, isSerach, isViewSearch, }: fetchTableListParams, options?: {
49
49
  token: Number;
50
50
  }) => Promise<void>;
51
+ fetchDetailTableList: (props: any) => Promise<{
52
+ rows: {}[];
53
+ total: number;
54
+ }>;
51
55
  isShowAgGridFooterStatistics: Ref<boolean>;
52
56
  deleteTableRow: (record: Recordable<unknown>, condition?: any) => Promise<void>;
53
57
  getNoCountListMaxSize: ({ paginationInfo, ordersInfo, queryInfo, filtersInfo, isFilter, clear, }: fetchTableListParams) => Promise<{} | undefined>;
@@ -1 +1,2 @@
1
1
  export * from './useTitleCopyDocument';
2
+ export * from './useTitleStar';
@@ -0,0 +1,14 @@
1
+ import { Ref, ComputedRef } from 'vue';
2
+
3
+ export declare function useTitleStar(options?: Recordable<any>): {
4
+ canStar: ComputedRef<boolean>;
5
+ isCollection: Ref<boolean>;
6
+ starLoading: Ref<boolean>;
7
+ starDialogVisible: Ref<boolean>;
8
+ starFormName: Ref<string>;
9
+ starFormIcon: Ref<string>;
10
+ starIconOptions: Ref<string[]>;
11
+ cancelStarDialog: () => void;
12
+ confirmStarDialog: () => Promise<void>;
13
+ toggleStar: () => Promise<void>;
14
+ };
@@ -12,6 +12,7 @@ type ActionUtilType = {
12
12
  isPreview: boolean;
13
13
  customLocal?: any;
14
14
  };
15
+ export declare function formatDisplayData(data: any): any[];
15
16
  interface ToastOptions {
16
17
  type?: 'info' | 'success' | 'error' | 'warning';
17
18
  onClose?: () => void;
@@ -35,13 +35,13 @@ export declare class DataViewPlugin implements Plugin {
35
35
  handlerFormSubmit(payload: EventPayload & {
36
36
  instance: ControlRuntimeInstance<'data-view'>;
37
37
  isSubmit?: any;
38
- }): Promise<false | typing.PlainResult$OptResDto$ | undefined>;
38
+ }): Promise<typing.PlainResult$OptResDto$ | undefined>;
39
39
  private onBeforeSubmit;
40
40
  private onBeforeSubmitFormatParams;
41
41
  private onAfterSubmit;
42
42
  resetIsShow(): void;
43
43
  onClickHandle(payload: Required<EventPayload> & {
44
44
  instance: ControlRuntimeInstance<'data-view'>;
45
- }): Promise<false | typing.PlainResult$OptResDto$ | undefined>;
45
+ }): Promise<typing.PlainResult$OptResDto$ | undefined>;
46
46
  }
47
47
  export {};
@@ -17,6 +17,7 @@ export declare class EventListenerPlugin implements Plugin {
17
17
  private openPageRelationControlIds;
18
18
  private route;
19
19
  private router;
20
+ private readonly actionBarClickWaitInterval;
20
21
  constructor(config: ControlsEvent, app_id: string, userInfo: typing.CurrentUserInfo, store: any, route: RouteLocationNormalizedLoaded, router: Router);
21
22
  apply(engine: Engine): void;
22
23
  private getAllEventList;
@@ -24,6 +25,7 @@ export declare class EventListenerPlugin implements Plugin {
24
25
  private configCamelizeKeys;
25
26
  private formatConfig;
26
27
  private engineAddEventListener;
28
+ private scheduleCheckToRunClickPayloadOfActionBar;
27
29
  private checkToRunClickPayloadOfActionBar;
28
30
  private checkIsNeedSaveActionBarClickPayload;
29
31
  private checkHasEventListener;
@@ -88,7 +88,8 @@ export declare enum RuleType {
88
88
  form = "form",
89
89
  system = "system",
90
90
  fx = "fx",
91
- page = "page"
91
+ page = "page",
92
+ customVariable = "custom-variable"
92
93
  }
93
94
  export declare enum OpenMode {
94
95
  newTab = "newTab",
@@ -30,6 +30,7 @@ export declare class StatisticsPlugin implements Plugin {
30
30
  */
31
31
  private checkToFetchDataByParams;
32
32
  private fetchData;
33
+ private getErrorMessage;
33
34
  private changeCountTipStatus;
34
35
  /**
35
36
  * @description 监听事件,触发显隐
@@ -5,6 +5,7 @@ import { default as infoAuto } from './infoAuto';
5
5
  import { default as Widgets } from './widgets';
6
6
  import { default as template } from './template';
7
7
  import { default as AppsCustom } from './appsCustom';
8
+ import { default as PortalCustom } from './portalCustom';
8
9
  import { FetchService } from '../utils';
9
10
 
10
11
  export declare class HttpServiceRunningInterceptor {
@@ -25,9 +26,11 @@ export declare function apiInit(): {
25
26
  default: ServiceAuto;
26
27
  portal: PortalServiceAuto;
27
28
  baseAuto: BaseAuto;
28
- baseInfo: infoAuto;
29
+ baseInfo: BaseAuto;
30
+ infoAuto: infoAuto;
29
31
  widgetsAuto: Widgets;
30
32
  templateAuto: template;
31
33
  appsCustomAuto: AppsCustom;
34
+ portalCustomAuto: PortalCustom;
32
35
  httpClient: FetchService;
33
36
  };
@@ -9,9 +9,15 @@ export default class {
9
9
  http: FetchService;
10
10
  constructor(http: FetchService);
11
11
  /**
12
- * 获取当前登陆人信息
13
- * @method
14
- * @name #GetCurrentUserUserPrivateV1GET
15
- */
12
+ * 只返回用户基本信息,不返回是否是应用管理员、管控台管理员
13
+ * @method
14
+ * @name #GetCurrentUserEmployeePrivateV1POST
15
+ */
16
+ GetCurrentUserEmployeePrivateV1POST(params?: {}): Promise<any>;
17
+ /**
18
+ * 获取当前登陆人信息
19
+ * @method
20
+ * @name #GetCurrentUserUserPrivateV1GET
21
+ */
16
22
  GetCurrentUserUserPrivateV1GET(params?: {}): Promise<any>;
17
23
  }
@@ -0,0 +1,22 @@
1
+ import { FetchService } from '../utils';
2
+
3
+ export default class {
4
+ http: FetchService;
5
+ constructor(http: FetchService);
6
+ SaveCollectUserPrivateV2POST(params: {
7
+ payload?: {
8
+ app_id?: string;
9
+ resource_id?: string;
10
+ resource_name?: string;
11
+ resource_type?: 'form' | 'list';
12
+ op_type?: '1' | '0';
13
+ icon?: string;
14
+ };
15
+ }): Promise<typing.portal.PlainResult>;
16
+ CollectResourceCollectedUserPrivateV2POST(params: {
17
+ payload?: {
18
+ app_id?: string;
19
+ resource_id?: string;
20
+ };
21
+ }): Promise<typing.portal.PlainResult>;
22
+ }
@@ -1736,6 +1736,24 @@ export default class {
1736
1736
  SimplifyListPagePrivateV1ApiAppsPOST(params: {
1737
1737
  payload?: typing.FormDataPageRequest$List$PageListDataQuery$$_2;
1738
1738
  }, options?: any): Promise<typing.PlainResult$SimplifyRowsResp$>;
1739
+ /**
1740
+ * 主子表展开:嵌套列表接口(子表数据)
1741
+ * @method
1742
+ * @name #NestSimplifyListPagePrivateV1ApiAppsPOST
1743
+ * @param payload app_id, data_uid, form_key, data_code, page
1744
+ */
1745
+ NestSimplifyListPagePrivateV1ApiAppsPOST(params: {
1746
+ payload?: {
1747
+ app_id?: string;
1748
+ data_uid?: string;
1749
+ form_key?: string;
1750
+ data_code?: string;
1751
+ page?: {
1752
+ page_index?: number;
1753
+ page_size?: number;
1754
+ };
1755
+ };
1756
+ }, options?: any): Promise<typing.PlainResult$SimplifyRowsResp$>;
1739
1757
  /**
1740
1758
  * 传入:查询条件(JSON格式)
1741
1759
  * @method
@@ -0,0 +1,4 @@
1
+ export function createCloseGuard(): {
2
+ begin(): boolean;
3
+ reset(): void;
4
+ };
@@ -2,8 +2,10 @@ export declare const formCopy: {
2
2
  clearValueFieldCodeStates: {
3
3
  dataCode: string;
4
4
  fieldCode: string;
5
+ clearOnlyWhenEmpty?: boolean | undefined;
5
6
  }[];
6
7
  isCopy(type?: string): boolean;
8
+ isEmptyValue(value: unknown): boolean;
7
9
  setClearValueFieldCode(schema: any): void;
8
10
  resetDataSet(dataSet: any): void;
9
11
  };
@@ -0,0 +1,13 @@
1
+ import { ColDef } from '@ag-grid-community/core';
2
+ import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
3
+
4
+ export declare function attachGridColumnControlInstance(colDef: ColDef, controlInstance: ControlRuntimeInstance<any> | undefined): ColDef<any, any>;
5
+ export declare function getGridColumnControlInstance(colDef: ColDef | undefined): any;
6
+ export declare function resolveGridColumnControlInstance(params: {
7
+ colDef?: ColDef;
8
+ context?: Record<string, unknown> & {
9
+ engineId?: string;
10
+ };
11
+ } | undefined, engine?: {
12
+ getInstance?: (id: string) => ControlRuntimeInstance<any>;
13
+ }): ControlRuntimeInstance<any> | Record<string, unknown> | undefined;
@@ -14,3 +14,4 @@ export * from './subtable';
14
14
  export * from './formCopy';
15
15
  export * from './scrollIntoDomView';
16
16
  export * from './getListInstance';
17
+ export * from './masterDetailHeaders';
@@ -0,0 +1,10 @@
1
+ export interface ListViewConfigView {
2
+ id?: string;
3
+ title?: unknown;
4
+ headers?: unknown[];
5
+ filters?: unknown[];
6
+ isCustom?: boolean;
7
+ [key: string]: unknown;
8
+ }
9
+ export declare function getListViewConfigNavList(systemViews?: ListViewConfigView[], customViews?: ListViewConfigView[]): ListViewConfigView[];
10
+ export declare function getInitialListViewConfigView(defaultViewId: string | undefined, systemViews?: ListViewConfigView[], customViews?: ListViewConfigView[]): ListViewConfigView;
@@ -0,0 +1 @@
1
+ export declare function normalizeListViewTitle(title: unknown, fallback?: string): string;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * list-view 主子表:子表列定义在 props.master_detail.headers(或 header),
3
+ * 主表列在 grid-table 的 props.headers(个别文档写作 columns)。
4
+ * 与 applyRender schema 一致,同时兼容 snake_case / camelCase。
5
+ */
6
+ export declare function pickMasterDetailHeaderList(masterDetail: unknown): unknown[] | undefined;
7
+ /** 在列头树(含分组 children)中按控件 id 查找 */
8
+ export declare function findHeaderByControlIdInTree(headers: unknown[] | undefined, controlId: string | undefined): Record<string, unknown> | undefined;
9
+ /**
10
+ * 从 AG Grid context 解析 list-view 下 master_detail 中的列 schema。
11
+ * context.exposeParams.listViewInstanceProps | list_view_instance_props
12
+ */
13
+ export declare function findMasterDetailHeaderByContext(context: Record<string, unknown> | undefined, controlId: string | undefined): Record<string, unknown> | undefined;
14
+ /** 主表 grid-table:headers 或 columns */
15
+ export declare function findMainGridHeaderByControlId(gridTableProps: Record<string, unknown> | undefined, controlId: string | undefined): Record<string, unknown> | undefined;
@@ -0,0 +1,7 @@
1
+ type TenantDetailLike = {
2
+ tenant_custom_config_map?: {
3
+ portal_home_switch_mode?: unknown;
4
+ };
5
+ } | null | undefined;
6
+ export declare function isPortalHomeSwitchModeNew(tenant: TenantDetailLike): boolean;
7
+ export {};
@@ -1 +1,2 @@
1
+ export declare function isRuntimePreviewPath(pathname?: string): boolean;
1
2
  export declare const isPreview: boolean;
@@ -0,0 +1,3 @@
1
+ export declare const RICH_TEXT_PRINT_EMPTY_VALUE = "--";
2
+ export declare const isRichTextEmptyValue: (value: unknown) => boolean;
3
+ export declare const getPrintRichTextValue: (value: unknown) => string;
@@ -0,0 +1,6 @@
1
+ export type SelectOptionLike = {
2
+ label?: unknown;
3
+ value?: unknown;
4
+ [key: string]: unknown;
5
+ };
6
+ export declare function filterSelectOptionsByLabel<T extends SelectOptionLike>(options: T[], query: string): T[];
@@ -32,8 +32,10 @@ export declare const subTableCellRenderColumn: (subtableRow?: ControlRuntimeInst
32
32
  comRowRecord(): {};
33
33
  rowIndex(): any;
34
34
  instance(): any;
35
+ popoverOverlayClassName(): string;
35
36
  }, {
36
37
  getState(): any;
38
+ syncControlValue(): void;
37
39
  getValue(): any;
38
40
  openVirtuallyModel(params: any): void;
39
41
  getPopupContainer(): Element | undefined;
@@ -0,0 +1,6 @@
1
+ type TreeGroupHeaderOptions = {
2
+ modelId?: string;
3
+ i18nLocal?: Record<string, Record<string, unknown>>;
4
+ };
5
+ export declare function resolveTreeGroupHeaderName(listViewProps: any, options?: TreeGroupHeaderOptions): string;
6
+ export {};
@@ -5,6 +5,7 @@ type CrossDomainMessageType = {
5
5
  options: any;
6
6
  };
7
7
  export declare function tryRefreshOpener(message: CrossDomainMessageType): void;
8
+ export declare function closeProcessCenterFormPageModal(): void;
8
9
  export declare function refreshListByPath(listPath: string | undefined, options?: {
9
10
  clearSelectedRows?: boolean;
10
11
  source?: string;
@@ -0,0 +1,4 @@
1
+ export declare const CUSTOM_VARIABLE_RIGHT_VALUE_TYPE = "custom-variable";
2
+ export type CustomVariables = Record<string, unknown>;
3
+ export declare function normalizeCustomVariables<T extends Record<string, any>>(params: T): T;
4
+ export declare function hasCustomVariables(params?: Record<string, any> | null): any;
@@ -3,6 +3,7 @@ export * from './cacheRequest';
3
3
  export * from './setFormData';
4
4
  export * from './setSubtableData';
5
5
  export * from './buildFiltersToDataSetValues';
6
+ export * from './customVariables';
6
7
  export * from './math';
7
8
  export { default as vueApp } from './vueApp';
8
9
  export { default as Mitt } from './tinyMitt';
@@ -5,15 +5,18 @@ import { default as __DTS_DEFAULT_3__ } from '../../services/infoAuto';
5
5
  import { default as __DTS_DEFAULT_4__ } from '../../services/widgets';
6
6
  import { default as __DTS_DEFAULT_5__ } from '../../services/template';
7
7
  import { default as __DTS_DEFAULT_6__ } from '../../services/appsCustom';
8
+ import { default as __DTS_DEFAULT_7__ } from '../../services/portalCustom';
8
9
  import { FetchService } from '@byteluck-fe/global-shared';
9
10
  declare const api: {
10
11
  default: __DTS_DEFAULT_0__;
11
12
  portal: __DTS_DEFAULT_1__;
12
13
  baseAuto: __DTS_DEFAULT_2__;
13
- baseInfo: __DTS_DEFAULT_3__;
14
+ baseInfo: __DTS_DEFAULT_2__;
15
+ infoAuto: __DTS_DEFAULT_3__;
14
16
  widgetsAuto: __DTS_DEFAULT_4__;
15
17
  templateAuto: __DTS_DEFAULT_5__;
16
18
  appsCustomAuto: __DTS_DEFAULT_6__;
19
+ portalCustomAuto: __DTS_DEFAULT_7__;
17
20
  httpClient: FetchService;
18
21
  };
19
22
  export declare function getCachedApplyRender(method: typeof api.default.ApplyRenderCodeShortPagePrivateV1ApiAppsPOST | typeof api.default.ApplyRenderPagePrivateV1ApiAppsPOST, args: any, modalInForm?: boolean): Promise<typing.PlainResult$ApplyPageBo$>;
@@ -1 +1 @@
1
- export declare function getCachedCurrentUser(): Promise<typing.PlainResult$CurrentUserInfo$>;
1
+ export declare function getCachedCurrentUser(): Promise<any>;
@@ -0,0 +1,7 @@
1
+ type GlobModuleMap = Record<string, unknown>;
2
+ export interface GlobRequireContext {
3
+ (key: string): unknown;
4
+ keys(): string[];
5
+ }
6
+ export declare function createGlobRequireContext(modules: GlobModuleMap): GlobRequireContext;
7
+ export {};
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-engine",
3
- "version": "7.0.0-beta.9",
3
+ "version": "7.0.1-beta.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-engine.js",
7
7
  "types": "./dist/packages/runtime-engine/src/index.d.ts",
8
8
  "scripts": {
9
9
  "test": "echo \"Error: no test specified\" && exit 1",
10
- "build": "vite build",
11
- "lint": "vue-cli-service lint",
12
- "release:patch": "vite build && standard-version --release-as patch",
13
- "release:minor": "vite build && standard-version --release-as minor",
14
- "release:major": "vite build && standard-version --release-as major"
10
+ "build": "vite build --mode ego",
11
+ "build:testEnv": "vite build --mode testEnv",
12
+ "lint": "eslint . --ext .ts,.tsx,.vue",
13
+ "release:patch": "pnpm build && standard-version --release-as patch",
14
+ "release:minor": "pnpm build && standard-version --release-as minor",
15
+ "release:major": "pnpm build && standard-version --release-as major"
15
16
  },
16
17
  "files": [
17
18
  "dist"