@byteluck-fe/runtime-engine 7.0.0-beta.25 → 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.
@@ -7,7 +7,7 @@ export default function (props: any, emit: any): {
7
7
  updateDateValue: (val: string | number | '') => void;
8
8
  disabledDate: (current: any) => boolean;
9
9
  disabledYear: (year: any) => any;
10
- formatValue: (value: string | undefined | number) => string;
10
+ formatValue: (value: string | undefined | number) => any;
11
11
  handleYearChange: (value: any) => void;
12
12
  handlePickerClick: () => void;
13
13
  handleDateChange: (value: any) => void;
@@ -15,7 +15,7 @@ export default function (params: {
15
15
  isOpen: Ref<boolean>;
16
16
  labelValue: (val: any) => string;
17
17
  handleOpenChange: (status: boolean) => void;
18
- formatValue: (value: any) => string[];
18
+ formatValue: (value: any) => any[];
19
19
  handleDateChange: (val: any) => void;
20
20
  handlePanelChange: (val: any[], modeType: any) => void;
21
21
  onOpenChange: (visible: boolean) => void;
@@ -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",
@@ -37,7 +37,7 @@ export declare const searchDateRangeSettingList: () => ({
37
37
  time: number[];
38
38
  exclude?: undefined;
39
39
  })[];
40
- declare const formatDateValue: (value: any) => string;
40
+ declare const formatDateValue: (value: any) => any;
41
41
  declare const computedDisabledDate: (current: any, limitDateList: any, dateType: 'date' | 'datetime' | 'datemin' | 'datehour' | 'month' | 'year' | string) => any;
42
42
  declare const boundaryTime: (value: number | string, type?: string) => string[] | "";
43
43
  declare const boundaryRange: (range: any, type: any) => 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.25",
3
+ "version": "7.0.0-beta.26",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-engine.js",