@nocobase/client 2.1.0-alpha.12 → 2.1.0-alpha.14

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.
@@ -13,7 +13,6 @@ export declare class MockFlowModelRepository implements IFlowModelRepository<Flo
13
13
  constructor(prefix?: string);
14
14
  get models(): Map<any, any>;
15
15
  findOne(query: any): Promise<any>;
16
- ensure(values: Record<string, any>): Promise<any>;
17
16
  loadByParentId(parentId: string): Promise<any>;
18
17
  load(uid: string): Promise<any>;
19
18
  save(model: FlowModel): Promise<Record<string, any>>;
@@ -28,12 +27,6 @@ export declare class FlowModelRepository implements IFlowModelRepository<FlowMod
28
27
  private inFlightFindOne;
29
28
  private buildFindOneKey;
30
29
  findOne(query: any): Promise<any>;
31
- ensure(values: Record<string, any>, options?: {
32
- includeAsyncNode?: boolean;
33
- }): Promise<any>;
34
- mutate(values: Record<string, any>, options?: {
35
- includeAsyncNode?: boolean;
36
- }): Promise<any>;
37
30
  save(model: FlowModel, options?: {
38
31
  onlyStepParams?: boolean;
39
32
  }): Promise<any>;
@@ -10,7 +10,7 @@ import React from 'react';
10
10
  import { type RunJSValue } from '@nocobase/flow-engine';
11
11
  export interface RunJSValueEditorProps {
12
12
  t?: (key: string) => string;
13
- value: unknown;
13
+ value?: unknown;
14
14
  onChange?: (value: RunJSValue) => void;
15
15
  height?: string;
16
16
  scene?: string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare const resolveTooltipParent: (element: HTMLElement | null) => HTMLElement;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare function inferRunJSScenesFromContext(hostCtx: any, explicitScene?: string | string[]): string[];
10
+ export declare function mergeRunJSScenes(explicitScene?: string | string[], autoScenes?: string[]): string[];
@@ -17,6 +17,13 @@ import { DetailsGridModel } from './DetailsGridModel';
17
17
  * @param idx Form.List 的索引
18
18
  */
19
19
  export declare function getValueWithIndex(record: any, fieldPath: string, idx?: string[]): any;
20
+ export declare function getDetailsItemValue(options: {
21
+ record: any;
22
+ currentObject?: any;
23
+ fieldPath: string;
24
+ prefixFieldPath?: string;
25
+ idx?: string[];
26
+ }): any;
20
27
  export declare class DetailsItemModel extends DisplayItemModel<{
21
28
  parent: DetailsGridModel;
22
29
  subModels: {
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import type { FlowModel } from '@nocobase/flow-engine';
10
+ import type { HookAPI } from 'antd/es/modal/useModal';
11
+ type PopupBeforeClosePayload = {
12
+ result?: any;
13
+ force?: boolean;
14
+ ignoredDirtyFormModelUids?: string[];
15
+ };
16
+ type PopupViewLike = {
17
+ beforeClose?: (payload: PopupBeforeClosePayload) => Promise<boolean | void> | boolean | void;
18
+ };
19
+ export declare function bindPopupSubTableBeforeClose({ view, model, modal, t, }: {
20
+ view: PopupViewLike;
21
+ model?: FlowModel | null;
22
+ modal: Pick<HookAPI, 'confirm'>;
23
+ t: (key: string) => string;
24
+ }): () => void;
25
+ export {};