@nocobase/client 2.0.0-beta.5 → 2.0.0-beta.7

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 {};
@@ -29,6 +29,7 @@ export * from './aclCheckRefresh';
29
29
  export * from './pattern';
30
30
  export * from './validation';
31
31
  export * from './columnFixed';
32
+ export * from './linkageRulesRefresh';
32
33
  export { fieldLinkageRules, subFormFieldLinkageRules, detailsFieldLinkageRules, linkageSetDetailsFieldProps, actionLinkageRules, blockLinkageRules, linkageSetBlockProps, linkageSetActionProps, linkageSetFieldProps, subFormLinkageSetFieldProps, linkageAssignField, linkageRunjs, subFormLinkageAssignField, } from './linkageRules';
33
34
  export { displayFieldComponent } from './displayFieldComponent';
34
35
  export * from './overflowMode';
@@ -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 linkageRulesRefresh: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
@@ -13,6 +13,7 @@ export declare class PluginFlowEngine extends Plugin {
13
13
  export * from './components/filter';
14
14
  export * from './components/code-editor';
15
15
  export * from './components/TextAreaWithContextSelector';
16
+ export * from './components/SkeletonFallback';
16
17
  export * from './FlowModelRepository';
17
18
  export * from './FlowPage';
18
19
  export * from './models';
@@ -14,7 +14,7 @@ export declare class AssociationFieldGroupModel extends FlowModel {
14
14
  label: string;
15
15
  children: () => ({
16
16
  key: string;
17
- label: string;
17
+ label: any;
18
18
  type: string;
19
19
  children: {
20
20
  key: string;
@@ -33,6 +33,12 @@ export declare class GridModel<T extends {
33
33
  private readonly itemExtraToolbarItems;
34
34
  private dragState?;
35
35
  private _memoItemFlowSettings?;
36
+ protected deriveRowOrder(rows: Record<string, string[][]>, provided?: string[]): string[];
37
+ normalizeRowsWithOrder(rows: Record<string, string[][]>, provided?: string[]): {
38
+ rows: Record<string, string[][]>;
39
+ rowOrder: string[];
40
+ };
41
+ orderSizesByRowOrder(sizes: Record<string, number[]>, rowOrder: string[]): Record<string, number[]>;
36
42
  private getItemFlowSettings;
37
43
  onMount(): void;
38
44
  saveGridLayout(layout?: GridLayoutData): void;
@@ -10,8 +10,7 @@ import { FlowModel } from '@nocobase/flow-engine';
10
10
  import type { DispatchEventOptions } from '@nocobase/flow-engine';
11
11
  /**
12
12
  * 递归向子模型(及其 forks)分发指定事件。
13
- * - 默认不包含自身(避免误触发当前层的其它逻辑)
14
- * - 用于类似分页切换等“只需要刷新子层状态”的场景(例如 `paginationChange`)
13
+ * - 默认包含自身(用于类似分页切换等“整棵树状态刷新”的场景,例如 `paginationChange`)
15
14
  */
16
15
  export declare function dispatchEventDeep(root: FlowModel, eventName: string, inputArgs?: Record<string, any>, options?: {
17
16
  debounce?: boolean;