@nocobase/plugin-calendar 2.1.0-alpha.20 → 2.1.0-alpha.21

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.
@@ -46,7 +46,6 @@ export declare class CalendarBlockModel extends CollectionBlockModel {
46
46
  getDefaultStartFieldName(): string;
47
47
  getDefaultEndFieldName(): string;
48
48
  getDefaultView(): any;
49
- getEventOpenMode(): "dialog" | "drawer" | "embed";
50
49
  getWeekStart(): 1 | 0;
51
50
  getFieldNames(): {
52
51
  id: string;
@@ -60,7 +59,25 @@ export declare class CalendarBlockModel extends CollectionBlockModel {
60
59
  getQuickCreateAction(): any;
61
60
  getEventViewAction(): any;
62
61
  getPopupActionUid(actionKey: 'quickCreateAction' | 'eventViewAction'): string;
63
- syncPopupActionOpenMode(action: any): Promise<void>;
62
+ getPopupSettingsDefaults(actionUid?: string): {
63
+ mode: string;
64
+ size: string;
65
+ pageModelClass: string;
66
+ uid: string;
67
+ collectionName: any;
68
+ dataSourceKey: any;
69
+ };
70
+ getPopupSettingsPropKey(actionKey: 'quickCreateAction' | 'eventViewAction'): "quickCreatePopupSettings" | "eventPopupSettings";
71
+ getStoredPopupSettings(actionKey: 'quickCreateAction' | 'eventViewAction'): any;
72
+ normalizePopupSettings(actionKey: 'quickCreateAction' | 'eventViewAction', popupSettings?: Record<string, any>): {
73
+ [x: string]: any;
74
+ };
75
+ setPopupSettings(actionKey: 'quickCreateAction' | 'eventViewAction', popupSettings?: Record<string, any>): {
76
+ [x: string]: any;
77
+ };
78
+ getPopupSettings(action: any, actionKey: 'quickCreateAction' | 'eventViewAction', actionUid?: string): any;
79
+ syncPopupActionSettings(action: any, actionKey: 'quickCreateAction' | 'eventViewAction'): Promise<void>;
80
+ loadPopupAction(actionKey: 'quickCreateAction' | 'eventViewAction'): Promise<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
64
81
  ensurePopupAction(actionKey: 'quickCreateAction' | 'eventViewAction'): Promise<any>;
65
82
  openQuickCreate(slotInfo: any): Promise<void>;
66
83
  openEvent(record: any): Promise<void>;
@@ -11,7 +11,6 @@ import React from 'react';
11
11
  export declare class CalendarCollectionActionGroupModel extends CollectionActionGroupModel {
12
12
  }
13
13
  export declare class CalendarTodayActionModel extends ActionModel {
14
- static scene: "collection";
15
14
  defaultProps: {
16
15
  type: "default";
17
16
  title: string;
@@ -19,7 +18,6 @@ export declare class CalendarTodayActionModel extends ActionModel {
19
18
  render(): React.JSX.Element;
20
19
  }
21
20
  export declare class CalendarNavActionModel extends ActionModel {
22
- static scene: "collection";
23
21
  enableEditTooltip: boolean;
24
22
  enableEditTitle: boolean;
25
23
  enableEditIcon: boolean;
@@ -28,7 +26,6 @@ export declare class CalendarNavActionModel extends ActionModel {
28
26
  render(): React.JSX.Element;
29
27
  }
30
28
  export declare class CalendarTitleActionModel extends ActionModel {
31
- static scene: "collection";
32
29
  enableEditTooltip: boolean;
33
30
  enableEditTitle: boolean;
34
31
  enableEditIcon: boolean;
@@ -37,7 +34,6 @@ export declare class CalendarTitleActionModel extends ActionModel {
37
34
  render(): React.JSX.Element;
38
35
  }
39
36
  export declare class CalendarViewSelectActionModel extends ActionModel {
40
- static scene: "collection";
41
37
  enableEditTooltip: boolean;
42
38
  enableEditTitle: boolean;
43
39
  enableEditIcon: boolean;
@@ -6,7 +6,7 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { AddNewActionModel, ViewActionModel } from '@nocobase/client';
9
+ import { PopupActionModel } from '@nocobase/client';
10
10
  export declare const createCalendarQuickCreateActionOptions: (uid?: string) => {
11
11
  uid: string;
12
12
  use: string;
@@ -15,9 +15,33 @@ export declare const createCalendarEventViewActionOptions: (uid?: string) => {
15
15
  uid: string;
16
16
  use: string;
17
17
  };
18
- export declare class CalendarQuickCreateActionModel extends AddNewActionModel {
18
+ export declare const buildCalendarSlotFormData: ({ slotInfo, collection, popupAction, fieldNames, }: {
19
+ slotInfo?: {
20
+ start?: unknown;
21
+ end?: unknown;
22
+ };
23
+ collection?: any;
24
+ popupAction?: any;
25
+ fieldNames?: {
26
+ start?: string | string[];
27
+ end?: string | string[];
28
+ };
29
+ }) => Record<string, any>;
30
+ declare class CalendarPopupActionModel extends PopupActionModel {
31
+ get collection(): any;
32
+ getInputArgs(): {
33
+ dataSourceKey: any;
34
+ collectionName: any;
35
+ };
36
+ }
37
+ export declare class CalendarQuickCreateActionModel extends CalendarPopupActionModel {
38
+ static scene: import("@nocobase/client").ActionSceneType;
19
39
  defaultPopupTitle: string;
40
+ getAclActionName(): any;
20
41
  }
21
- export declare class CalendarEventViewActionModel extends ViewActionModel {
42
+ export declare class CalendarEventViewActionModel extends CalendarPopupActionModel {
43
+ static scene: import("@nocobase/client").ActionSceneType;
22
44
  defaultPopupTitle: string;
45
+ getAclActionName(): any;
23
46
  }
47
+ export {};
@@ -8,16 +8,16 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.1.0-alpha.20",
11
+ "@nocobase/client": "2.1.0-alpha.21",
12
12
  "react": "18.2.0",
13
13
  "react-i18next": "11.18.6",
14
- "@nocobase/server": "2.1.0-alpha.20",
15
- "@nocobase/test": "2.1.0-alpha.20",
14
+ "@nocobase/server": "2.1.0-alpha.21",
15
+ "@nocobase/test": "2.1.0-alpha.21",
16
16
  "@ant-design/icons": "5.6.1",
17
17
  "@formily/react": "2.3.7",
18
18
  "dayjs": "1.11.13",
19
19
  "lodash": "4.18.1",
20
- "@nocobase/flow-engine": "2.1.0-alpha.20",
20
+ "@nocobase/flow-engine": "2.1.0-alpha.21",
21
21
  "antd": "5.24.2",
22
22
  "react-dom": "18.2.0",
23
23
  "antd-style": "3.7.1",
@@ -25,7 +25,9 @@
25
25
  "End date field": "End date field",
26
26
  "Event": "Event",
27
27
  "Event open mode": "Event open mode",
28
+ "Event popup settings": "Event popup settings",
28
29
  "Filter": "Filter",
30
+ "Monday": "Monday",
29
31
  "Month": "Month",
30
32
  "Monthly": "Monthly",
31
33
  "None": "None",
@@ -33,6 +35,7 @@
33
35
  "Popup": "Popup",
34
36
  "Print": "Print",
35
37
  "Quick create event": "Quick create event",
38
+ "Quick create popup settings": "Quick create popup settings",
36
39
  "Repeats": "Repeats",
37
40
  "Select view": "Select view",
38
41
  "Show lunar": "Show lunar",
@@ -52,5 +55,6 @@
52
55
  "Weekly": "Weekly",
53
56
  "Work week": "Work week",
54
57
  "Yearly": "Yearly",
58
+ "Sunday": "Sunday",
55
59
  "{{count}} more items": "{{count}} more items"
56
60
  }
@@ -25,7 +25,9 @@
25
25
  "End date field": "结束日期字段",
26
26
  "Event": "事件",
27
27
  "Event open mode": "事项打开方式",
28
+ "Event popup settings": "事项弹窗设置",
28
29
  "Filter": "筛选",
30
+ "Monday": "周一",
29
31
  "Month": "月",
30
32
  "Monthly": "每月",
31
33
  "None": "无",
@@ -33,6 +35,7 @@
33
35
  "Popup": "弹窗",
34
36
  "Print": "打印",
35
37
  "Quick create event": "快速创建事项",
38
+ "Quick create popup settings": "快速创建弹窗设置",
36
39
  "Repeats": "重复",
37
40
  "Select view": "切换视图",
38
41
  "Show lunar": "展示农历",
@@ -52,5 +55,6 @@
52
55
  "Weekly": "每周",
53
56
  "Work week": "工作日",
54
57
  "Yearly": "每年",
58
+ "Sunday": "周日",
55
59
  "{{count}} more items": "{{count}} 更多事项"
56
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-calendar",
3
- "version": "2.1.0-alpha.20",
3
+ "version": "2.1.0-alpha.21",
4
4
  "displayName": "Calendar",
5
5
  "displayName.ru-RU": "Календарь",
6
6
  "displayName.zh-CN": "日历",
@@ -39,7 +39,7 @@
39
39
  "url": "git+https://github.com/nocobase/nocobase.git",
40
40
  "directory": "packages/plugins/calendar"
41
41
  },
42
- "gitHead": "3d1535db6bf93ca23257faf474afee0d565f54c6",
42
+ "gitHead": "b4c2b469f321ecaec7863a8ae371a02fe6a35aa2",
43
43
  "keywords": [
44
44
  "Collections",
45
45
  "Blocks"