@nocobase/client 2.0.0-beta.4 → 2.0.0-beta.6

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.
@@ -0,0 +1,23 @@
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
+ type RouteOptions = {
10
+ id: string;
11
+ schemaUid: string;
12
+ children?: RouteOptions[];
13
+ };
14
+ export declare class RouteRepository {
15
+ protected ctx: any;
16
+ routes: Array<RouteOptions>;
17
+ constructor(ctx: any);
18
+ setRoutes(routes: Array<any>): void;
19
+ listAccessible(): RouteOptions[];
20
+ getRouteBySchemaUid(schemaUid: string): RouteOptions | undefined;
21
+ private findRoute;
22
+ }
23
+ export {};
@@ -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 aclCheckRefresh: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
@@ -25,6 +25,7 @@ export * from './layout';
25
25
  export * from './required';
26
26
  export * from './fieldComponent';
27
27
  export * from './aclCheck';
28
+ export * from './aclCheckRefresh';
28
29
  export * from './pattern';
29
30
  export * from './validation';
30
31
  export * from './columnFixed';
@@ -20,6 +20,7 @@ export interface TextAreaWithContextSelectorProps {
20
20
  onChange?: (v: string) => void;
21
21
  placeholder?: string;
22
22
  rows?: number;
23
+ maxRows?: number;
23
24
  style?: React.CSSProperties;
24
25
  }
25
26
  /**
@@ -0,0 +1,21 @@
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 { FlowModel } from '@nocobase/flow-engine';
10
+ import type { DispatchEventOptions } from '@nocobase/flow-engine';
11
+ /**
12
+ * 递归向子模型(及其 forks)分发指定事件。
13
+ * - 默认不包含自身(避免误触发当前层的其它逻辑)
14
+ * - 用于类似分页切换等“只需要刷新子层状态”的场景(例如 `paginationChange`)
15
+ */
16
+ export declare function dispatchEventDeep(root: FlowModel, eventName: string, inputArgs?: Record<string, any>, options?: {
17
+ debounce?: boolean;
18
+ } & DispatchEventOptions, deepOptions?: {
19
+ includeSelf?: boolean;
20
+ includeForks?: boolean;
21
+ }): Promise<void>;
@@ -7,3 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  export * from './blockUtils';
10
+ export * from './dispatchEventDeep';