@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.
Files changed (60) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +6 -0
  3. package/README.zh-CN.md +5 -0
  4. package/client.d.ts +2 -0
  5. package/client.js +1 -0
  6. package/dist/client/calendar/Calendar.Designer.d.ts +2 -0
  7. package/dist/client/calendar/Calendar.d.ts +5 -0
  8. package/dist/client/calendar/DeleteEvent.d.ts +3 -0
  9. package/dist/client/calendar/Event.d.ts +2 -0
  10. package/dist/client/calendar/Nav.d.ts +2 -0
  11. package/dist/client/calendar/Title.d.ts +2 -0
  12. package/dist/client/calendar/Today.d.ts +2 -0
  13. package/dist/client/calendar/ViewSelect.d.ts +2 -0
  14. package/dist/client/calendar/components/Header.d.ts +11 -0
  15. package/dist/client/calendar/context.d.ts +6 -0
  16. package/dist/client/calendar/global.style.d.ts +3 -0
  17. package/dist/client/calendar/index.d.ts +2 -0
  18. package/dist/client/calendar/style.d.ts +2 -0
  19. package/dist/client/calendar/utils.d.ts +9 -0
  20. package/dist/client/collection-templates/calendar.d.ts +2 -0
  21. package/dist/client/index.d.ts +5 -0
  22. package/dist/client/index.js +94 -0
  23. package/dist/client/schema-initializer/CalendarBlockProvider.d.ts +9 -0
  24. package/dist/client/schema-initializer/initializers/CalendarActionInitializers.d.ts +2 -0
  25. package/dist/client/schema-initializer/initializers/CalendarFormActionInitializers.d.ts +2 -0
  26. package/dist/client/schema-initializer/initializers/index.d.ts +2 -0
  27. package/dist/client/schema-initializer/items/CalendarBlockInitializer.d.ts +2 -0
  28. package/dist/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +2 -0
  29. package/dist/client/schema-initializer/items/index.d.ts +2 -0
  30. package/dist/client/schema-initializer/utils.d.ts +57 -0
  31. package/dist/externalVersion.js +16 -0
  32. package/dist/index.d.ts +1 -0
  33. package/dist/index.js +33 -0
  34. package/dist/locale/en_US.d.ts +46 -0
  35. package/dist/locale/en_US.js +67 -0
  36. package/dist/locale/es_ES.d.ts +46 -0
  37. package/dist/locale/es_ES.js +67 -0
  38. package/dist/locale/fr_FR.d.ts +46 -0
  39. package/dist/locale/fr_FR.js +67 -0
  40. package/dist/locale/index.d.ts +4 -0
  41. package/dist/locale/index.js +44 -0
  42. package/dist/locale/ja_JP.d.ts +33 -0
  43. package/dist/locale/ja_JP.js +54 -0
  44. package/dist/locale/pt_BR.d.ts +43 -0
  45. package/dist/locale/pt_BR.js +64 -0
  46. package/dist/locale/ru_RU.d.ts +32 -0
  47. package/dist/locale/ru_RU.js +53 -0
  48. package/dist/locale/tr_TR.d.ts +32 -0
  49. package/dist/locale/tr_TR.js +53 -0
  50. package/dist/locale/uk_UA.d.ts +46 -0
  51. package/dist/locale/uk_UA.js +67 -0
  52. package/dist/locale/zh-CN.d.ts +47 -0
  53. package/dist/locale/zh-CN.js +68 -0
  54. package/dist/server/index.d.ts +1 -0
  55. package/dist/server/index.js +33 -0
  56. package/dist/server/server.d.ts +3 -0
  57. package/dist/server/server.js +25 -0
  58. package/package.json +38 -0
  59. package/server.d.ts +3 -0
  60. package/server.js +1 -0
package/client.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/client/index.js');
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CalendarDesigner: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const DeleteEventContext: React.Context<{
3
+ close: () => void;
4
+ }>;
5
+ export declare const Calendar: any;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const DeleteEvent: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
3
+ export default DeleteEvent;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Event: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Nav: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Title: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Today: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ViewSelect: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
@@ -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,3 @@
1
+ /// <reference types="react" />
2
+ declare const GlobalStyle: import("react").NamedExoticComponent<object>;
3
+ export default GlobalStyle;
@@ -0,0 +1,2 @@
1
+ declare const CalendarV2: any;
2
+ export { CalendarV2 };
@@ -0,0 +1,2 @@
1
+ declare const _default: (props?: any) => import("@nocobase/client/es/schema-component/antd/__builtins__").UseComponentStyleResult;
2
+ export default _default;
@@ -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;
@@ -0,0 +1,2 @@
1
+ import { ICollectionTemplate } from '@nocobase/client';
2
+ export declare const calendar: ICollectionTemplate;
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '@nocobase/client';
2
+ export declare class PluginCalendarClient extends Plugin {
3
+ load(): Promise<void>;
4
+ }
5
+ export default PluginCalendarClient;