@byteluck-fe/runtime-engine 7.0.0-beta.24 → 7.0.0-beta.26

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.
@@ -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: () => {
@@ -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<{
@@ -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 {};
@@ -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",
@@ -0,0 +1,4 @@
1
+ export function createCloseGuard(): {
2
+ begin(): boolean;
3
+ reset(): void;
4
+ };
@@ -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;
@@ -1 +1,2 @@
1
+ export declare function isRuntimePreviewPath(pathname?: string): boolean;
1
2
  export declare const isPreview: boolean;
@@ -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;
@@ -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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-engine",
3
- "version": "7.0.0-beta.24",
3
+ "version": "7.0.0-beta.26",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-engine.js",