@nocobase/client 2.0.0-beta.1 → 2.0.0-beta.11

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.
package/.dumirc.ts CHANGED
@@ -156,6 +156,10 @@ export default defineConfig({
156
156
  title: '生命周期',
157
157
  link: '/examples/flow-models/lifecycle',
158
158
  },
159
+ {
160
+ title: 'scheduleModelOperation',
161
+ link: '/examples/flow-models/schedule-model-operation',
162
+ },
159
163
  {
160
164
  title: 'hidden 属性演示',
161
165
  link: '/examples/flow-model-hidden',
@@ -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,9 +25,11 @@ 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';
32
+ export * from './linkageRulesRefresh';
31
33
  export { fieldLinkageRules, subFormFieldLinkageRules, detailsFieldLinkageRules, linkageSetDetailsFieldProps, actionLinkageRules, blockLinkageRules, linkageSetBlockProps, linkageSetActionProps, linkageSetFieldProps, subFormLinkageSetFieldProps, linkageAssignField, linkageRunjs, subFormLinkageAssignField, } from './linkageRules';
32
34
  export { displayFieldComponent } from './displayFieldComponent';
33
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>;
@@ -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
  /**
@@ -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;
@@ -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 registerFontSize: (Quill: any) => void;
@@ -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 registerImageResize: (Quill: any) => void;
@@ -0,0 +1,12 @@
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 registerSmartBreak: (Quill: any) => void;
10
+ export declare function lineBreakMatcher(node: any, delta: any): any;
11
+ export declare function handleLinebreak(range: any, context: any): boolean;
12
+ export declare function handleEnter(range: any, context: any): boolean;
@@ -0,0 +1,20 @@
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
+ * - 默认包含自身(用于类似分页切换等“整棵树状态刷新”的场景,例如 `paginationChange`)
14
+ */
15
+ export declare function dispatchEventDeep(root: FlowModel, eventName: string, inputArgs?: Record<string, any>, options?: {
16
+ debounce?: boolean;
17
+ } & DispatchEventOptions, deepOptions?: {
18
+ includeSelf?: boolean;
19
+ includeForks?: boolean;
20
+ }): 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';