@nocobase/plugin-calendar 0.18.0-alpha.2
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/LICENSE +661 -0
- package/README.md +6 -0
- package/README.zh-CN.md +5 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/calendar/Calendar.Designer.d.ts +2 -0
- package/dist/client/calendar/Calendar.d.ts +5 -0
- package/dist/client/calendar/DeleteEvent.d.ts +3 -0
- package/dist/client/calendar/Event.d.ts +2 -0
- package/dist/client/calendar/Nav.d.ts +2 -0
- package/dist/client/calendar/Title.d.ts +2 -0
- package/dist/client/calendar/Today.d.ts +2 -0
- package/dist/client/calendar/ViewSelect.d.ts +2 -0
- package/dist/client/calendar/components/Header.d.ts +11 -0
- package/dist/client/calendar/context.d.ts +6 -0
- package/dist/client/calendar/global.style.d.ts +3 -0
- package/dist/client/calendar/index.d.ts +2 -0
- package/dist/client/calendar/style.d.ts +2 -0
- package/dist/client/calendar/utils.d.ts +9 -0
- package/dist/client/collection-templates/calendar.d.ts +2 -0
- package/dist/client/index.d.ts +5 -0
- package/dist/client/index.js +94 -0
- package/dist/client/schema-initializer/CalendarBlockProvider.d.ts +9 -0
- package/dist/client/schema-initializer/initializers/CalendarActionInitializers.d.ts +2 -0
- package/dist/client/schema-initializer/initializers/CalendarFormActionInitializers.d.ts +2 -0
- package/dist/client/schema-initializer/initializers/index.d.ts +2 -0
- package/dist/client/schema-initializer/items/CalendarBlockInitializer.d.ts +2 -0
- package/dist/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +2 -0
- package/dist/client/schema-initializer/items/index.d.ts +2 -0
- package/dist/client/schema-initializer/utils.d.ts +57 -0
- package/dist/externalVersion.js +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +33 -0
- package/dist/locale/en_US.d.ts +46 -0
- package/dist/locale/en_US.js +67 -0
- package/dist/locale/es_ES.d.ts +46 -0
- package/dist/locale/es_ES.js +67 -0
- package/dist/locale/fr_FR.d.ts +46 -0
- package/dist/locale/fr_FR.js +67 -0
- package/dist/locale/index.d.ts +4 -0
- package/dist/locale/index.js +44 -0
- package/dist/locale/ja_JP.d.ts +33 -0
- package/dist/locale/ja_JP.js +54 -0
- package/dist/locale/pt_BR.d.ts +43 -0
- package/dist/locale/pt_BR.js +64 -0
- package/dist/locale/ru_RU.d.ts +32 -0
- package/dist/locale/ru_RU.js +53 -0
- package/dist/locale/tr_TR.d.ts +32 -0
- package/dist/locale/tr_TR.js +53 -0
- package/dist/locale/uk_UA.d.ts +46 -0
- package/dist/locale/uk_UA.js +67 -0
- package/dist/locale/zh-CN.d.ts +47 -0
- package/dist/locale/zh-CN.js +68 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +33 -0
- package/dist/server/server.d.ts +3 -0
- package/dist/server/server.js +25 -0
- package/package.json +38 -0
- package/server.d.ts +3 -0
- package/server.js +1 -0
package/client.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/client/index.js');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Header: ({ date, label, drilldownView, onDrillDown, showLunar, type, localizer }: {
|
|
3
|
+
date: any;
|
|
4
|
+
label: any;
|
|
5
|
+
drilldownView: any;
|
|
6
|
+
onDrillDown: any;
|
|
7
|
+
showLunar?: boolean;
|
|
8
|
+
type: any;
|
|
9
|
+
localizer: any;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export default Header;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ToolbarProps } from './types';
|
|
3
|
+
export declare const CalendarToolbarContext: import("react").Context<ToolbarProps>;
|
|
4
|
+
export declare const CalendarContext: import("react").Context<any>;
|
|
5
|
+
export declare const DeleteEventContext: import("react").Context<any>;
|
|
6
|
+
export declare const useDeleteEvent: () => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
export declare const toEvents: (data: any[], fieldNames: any) => {
|
|
3
|
+
id: any;
|
|
4
|
+
title: any;
|
|
5
|
+
start: Date;
|
|
6
|
+
end: Date;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const getLunarDay: (date: dayjs.Dayjs | string) => string | number;
|
|
9
|
+
export declare const formatDate: (date: dayjs.Dayjs) => string;
|