@tachybase/plugin-block-calendar 0.23.8

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 (66) hide show
  1. package/.turbo/turbo-build.log +14 -0
  2. package/LICENSE +201 -0
  3. package/README.md +6 -0
  4. package/README.zh-CN.md +5 -0
  5. package/client.d.ts +2 -0
  6. package/client.js +1 -0
  7. package/dist/client/calendar/Calendar.Designer.d.ts +2 -0
  8. package/dist/client/calendar/Calendar.d.ts +5 -0
  9. package/dist/client/calendar/Calender.Settings.d.ts +4 -0
  10. package/dist/client/calendar/DeleteEvent.d.ts +3 -0
  11. package/dist/client/calendar/Event.d.ts +2 -0
  12. package/dist/client/calendar/Nav.d.ts +2 -0
  13. package/dist/client/calendar/Title.d.ts +2 -0
  14. package/dist/client/calendar/Today.d.ts +2 -0
  15. package/dist/client/calendar/ViewSelect.d.ts +2 -0
  16. package/dist/client/calendar/components/Header.d.ts +11 -0
  17. package/dist/client/calendar/context.d.ts +5 -0
  18. package/dist/client/calendar/global.style.d.ts +2 -0
  19. package/dist/client/calendar/index.d.ts +2 -0
  20. package/dist/client/calendar/style.d.ts +2 -0
  21. package/dist/client/calendar/utils.d.ts +9 -0
  22. package/dist/client/collection-templates/calendar.d.ts +39 -0
  23. package/dist/client/hooks/useCalendarBlockDecoratorProps.d.ts +4 -0
  24. package/dist/client/hooks/useCalendarBlockParams.d.ts +1 -0
  25. package/dist/client/index.d.ts +5 -0
  26. package/dist/client/index.js +93 -0
  27. package/dist/client/schema-initializer/CalendarBlockProvider.d.ts +9 -0
  28. package/dist/client/schema-initializer/createCalendarBlockUISchema.d.ts +7 -0
  29. package/dist/client/schema-initializer/initializers/CalendarActionInitializers.d.ts +2 -0
  30. package/dist/client/schema-initializer/initializers/CalendarFormActionInitializers.d.ts +7 -0
  31. package/dist/client/schema-initializer/initializers/index.d.ts +2 -0
  32. package/dist/client/schema-initializer/items/CalendarBlockInitializer.d.ts +17 -0
  33. package/dist/client/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +7 -0
  34. package/dist/client/schema-initializer/items/index.d.ts +2 -0
  35. package/dist/externalVersion.js +14 -0
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.js +33 -0
  38. package/dist/locale/en_US.d.ts +46 -0
  39. package/dist/locale/en_US.js +67 -0
  40. package/dist/locale/es_ES.d.ts +46 -0
  41. package/dist/locale/es_ES.js +67 -0
  42. package/dist/locale/fr_FR.d.ts +46 -0
  43. package/dist/locale/fr_FR.js +67 -0
  44. package/dist/locale/index.d.ts +4 -0
  45. package/dist/locale/index.js +44 -0
  46. package/dist/locale/ja_JP.d.ts +33 -0
  47. package/dist/locale/ja_JP.js +54 -0
  48. package/dist/locale/ko_KR.d.ts +47 -0
  49. package/dist/locale/ko_KR.js +68 -0
  50. package/dist/locale/pt_BR.d.ts +43 -0
  51. package/dist/locale/pt_BR.js +64 -0
  52. package/dist/locale/ru_RU.d.ts +32 -0
  53. package/dist/locale/ru_RU.js +53 -0
  54. package/dist/locale/tr_TR.d.ts +32 -0
  55. package/dist/locale/tr_TR.js +53 -0
  56. package/dist/locale/uk_UA.d.ts +46 -0
  57. package/dist/locale/uk_UA.js +67 -0
  58. package/dist/locale/zh-CN.d.ts +47 -0
  59. package/dist/locale/zh-CN.js +68 -0
  60. package/dist/server/index.d.ts +1 -0
  61. package/dist/server/index.js +33 -0
  62. package/dist/server/server.d.ts +3 -0
  63. package/dist/server/server.js +25 -0
  64. package/package.json +38 -0
  65. package/server.d.ts +3 -0
  66. package/server.js +1 -0
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export declare const CalendarBlockContext: React.Context<any>;
3
+ export declare const CalendarBlockProvider: React.FunctionComponent<any>;
4
+ export declare const useCalendarBlockContext: () => any;
5
+ export declare const useCalendarBlockProps: () => {
6
+ fieldNames: any;
7
+ showLunar: any;
8
+ fixedBlock: any;
9
+ };
@@ -0,0 +1,7 @@
1
+ import { ISchema } from '@tachybase/schema';
2
+ export declare const createCalendarBlockUISchema: (options: {
3
+ dataSource: string;
4
+ fieldNames: object;
5
+ collectionName?: string;
6
+ association?: string;
7
+ }) => ISchema;
@@ -0,0 +1,2 @@
1
+ import { SchemaInitializer } from '@tachybase/client';
2
+ export declare const calendarActionInitializers: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -0,0 +1,7 @@
1
+ import { SchemaInitializer, SchemaInitializerItemType } from '@tachybase/client';
2
+ export declare const deleteEventActionInitializer: SchemaInitializerItemType<any>;
3
+ /**
4
+ * @deprecated
5
+ * 表单的操作配置
6
+ */
7
+ export declare const CalendarFormActionInitializers: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -0,0 +1,2 @@
1
+ export * from './CalendarActionInitializers';
2
+ export * from './CalendarFormActionInitializers';
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { Collection, CollectionFieldOptions } from '@tachybase/client';
3
+ export declare const CalendarBlockInitializer: ({ filterCollections, onlyCurrentDataSource, hideSearch, createBlockSchema, showAssociationFields, }: {
4
+ filterCollections: (options: {
5
+ collection?: Collection;
6
+ associationField?: CollectionFieldOptions;
7
+ }) => boolean;
8
+ onlyCurrentDataSource: boolean;
9
+ hideSearch?: boolean;
10
+ createBlockSchema?: (options: any) => any;
11
+ showAssociationFields?: boolean;
12
+ }) => React.JSX.Element;
13
+ export declare const useCreateCalendarBlock: () => {
14
+ createCalendarBlock: ({ item }: {
15
+ item: any;
16
+ }) => Promise<void>;
17
+ };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const RecordAssociationCalendarBlockInitializer: () => React.JSX.Element;
3
+ export declare function useCreateAssociationCalendarBlock(): {
4
+ createAssociationCalendarBlock: ({ item }: {
5
+ item: any;
6
+ }) => Promise<void>;
7
+ };
@@ -0,0 +1,2 @@
1
+ export * from './CalendarBlockInitializer';
2
+ export * from './RecordAssociationCalendarBlockInitializer';
@@ -0,0 +1,14 @@
1
+ module.exports = {
2
+ "@tachybase/client": "0.23.8",
3
+ "react-i18next": "15.2.0",
4
+ "@tachybase/server": "0.23.8",
5
+ "@tachybase/test": "0.23.8",
6
+ "react": "18.3.1",
7
+ "@tachybase/schema": "0.23.8",
8
+ "@ant-design/icons": "5.3.7",
9
+ "dayjs": "1.11.13",
10
+ "lodash": "4.17.21",
11
+ "antd": "5.22.5",
12
+ "react-dom": "18.3.1",
13
+ "@tachybase/components": "0.23.8"
14
+ };
@@ -0,0 +1 @@
1
+ export { default } from './server';
package/dist/index.js ADDED
@@ -0,0 +1,33 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var src_exports = {};
29
+ __export(src_exports, {
30
+ default: () => import_server.default
31
+ });
32
+ module.exports = __toCommonJS(src_exports);
33
+ var import_server = __toESM(require("./server"));
@@ -0,0 +1,46 @@
1
+ declare const _default: {
2
+ "Configure calendar": string;
3
+ "Title field": string;
4
+ "Custom title": string;
5
+ "Show lunar": string;
6
+ "Start date field": string;
7
+ "End date field": string;
8
+ "Work week": string;
9
+ Today: string;
10
+ Day: string;
11
+ Agenda: string;
12
+ Date: string;
13
+ Time: string;
14
+ Event: string;
15
+ None: string;
16
+ Calendar: string;
17
+ "Delete events": string;
18
+ "This event": string;
19
+ "This and following events": string;
20
+ "All events": string;
21
+ "Delete this event?": string;
22
+ "Delete Event": string;
23
+ "Calendar collection": string;
24
+ "Create calendar block": string;
25
+ Filter: string;
26
+ "Configure actions": string;
27
+ "Enable actions": string;
28
+ "Turn pages": string;
29
+ "Select view": string;
30
+ "Add new": string;
31
+ "View record": string;
32
+ Details: string;
33
+ Customize: string;
34
+ Popup: string;
35
+ "Updated successfully": string;
36
+ "Custom request": string;
37
+ Edit: string;
38
+ Delete: string;
39
+ Print: string;
40
+ Daily: string;
41
+ Weekly: string;
42
+ Monthly: string;
43
+ Yearly: string;
44
+ Repeats: string;
45
+ };
46
+ export default _default;
@@ -0,0 +1,67 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var en_US_exports = {};
19
+ __export(en_US_exports, {
20
+ default: () => en_US_default
21
+ });
22
+ module.exports = __toCommonJS(en_US_exports);
23
+ var en_US_default = {
24
+ "Configure calendar": "Configure calendar",
25
+ "Title field": "Title field",
26
+ "Custom title": "Custom title",
27
+ "Show lunar": "Show lunar",
28
+ "Start date field": "Start date field",
29
+ "End date field": "End date field",
30
+ "Work week": "Work week",
31
+ "Today": "Today",
32
+ "Day": "Day",
33
+ "Agenda": "Agenda",
34
+ "Date": "Date",
35
+ "Time": "Time",
36
+ "Event": "Event",
37
+ "None": "None",
38
+ "Calendar": "Calendar",
39
+ "Delete events": "Delete events",
40
+ "This event": "This event",
41
+ "This and following events": "This and following events",
42
+ "All events": "All events",
43
+ "Delete this event?": "Delete this event?",
44
+ "Delete Event": "Delete Event",
45
+ "Calendar collection": "Calendar collection",
46
+ "Create calendar block": "Create calendar block",
47
+ "Filter": "Filter",
48
+ "Configure actions": "Configure actions",
49
+ "Enable actions": "Enable actions",
50
+ "Turn pages": "Turn pages",
51
+ "Select view": "Select view",
52
+ "Add new": "Add new",
53
+ "View record": "View record",
54
+ "Details": "Details",
55
+ "Customize": "Customize",
56
+ "Popup": "Popup",
57
+ "Updated successfully": "Updated successfully",
58
+ "Custom request": "Custom request",
59
+ "Edit": "Edit",
60
+ "Delete": "Delete",
61
+ "Print": "Print",
62
+ "Daily": "Daily",
63
+ "Weekly": "Weekly",
64
+ "Monthly": "Monthly",
65
+ "Yearly": "Yearly",
66
+ "Repeats": "Repeats"
67
+ };
@@ -0,0 +1,46 @@
1
+ declare const _default: {
2
+ "Configure calendar": string;
3
+ "Title field": string;
4
+ "Custom title": string;
5
+ "Show lunar": string;
6
+ "Start date field": string;
7
+ "End date field": string;
8
+ "Work week": string;
9
+ Today: string;
10
+ Day: string;
11
+ Agenda: string;
12
+ Date: string;
13
+ Time: string;
14
+ Event: string;
15
+ None: string;
16
+ Calendar: string;
17
+ "Delete events": string;
18
+ "This event": string;
19
+ "This and following events": string;
20
+ "All events": string;
21
+ "Delete this event?": string;
22
+ "Delete Event": string;
23
+ "Calendar collection": string;
24
+ "Create calendar block": string;
25
+ Filter: string;
26
+ "Configure actions": string;
27
+ "Enable actions": string;
28
+ "Turn pages": string;
29
+ "Select view": string;
30
+ "Add new": string;
31
+ "View record": string;
32
+ Details: string;
33
+ Customize: string;
34
+ Popup: string;
35
+ "Updated successfully": string;
36
+ "Custom request": string;
37
+ Edit: string;
38
+ Delete: string;
39
+ Print: string;
40
+ Daily: string;
41
+ Weekly: string;
42
+ Monthly: string;
43
+ Yearly: string;
44
+ Repeats: string;
45
+ };
46
+ export default _default;
@@ -0,0 +1,67 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var es_ES_exports = {};
19
+ __export(es_ES_exports, {
20
+ default: () => es_ES_default
21
+ });
22
+ module.exports = __toCommonJS(es_ES_exports);
23
+ var es_ES_default = {
24
+ "Configure calendar": "Configurar calendario",
25
+ "Title field": "Campo de t\xEDtulo",
26
+ "Custom title": "T\xEDtulo personalizado",
27
+ "Show lunar": "Mostrar lunar",
28
+ "Start date field": "Campo de fecha de inicio",
29
+ "End date field": "Campo de fecha de final",
30
+ "Work week": "Semana de trabajo",
31
+ "Today": "Hoy",
32
+ "Day": "D\xEDa",
33
+ "Agenda": "Agenda",
34
+ "Date": "Fecha",
35
+ "Time": "Hora",
36
+ "Event": "Evento",
37
+ "None": "Ninguno",
38
+ "Calendar": "Calendario",
39
+ "Delete events": "Borrar eventos",
40
+ "This event": "Este evento",
41
+ "This and following events": "Este y los siguientes eventos",
42
+ "All events": "Todos los eventos",
43
+ "Delete this event?": "\xBFBorrar este evento?",
44
+ "Delete Event": "Borrar evento",
45
+ "Calendar collection": "Colecci\xF3n de calendarios",
46
+ "Create calendar block": "Crear bloque de calendario",
47
+ "Filter": "Filtro",
48
+ "Configure actions": "Configurar acciones",
49
+ "Enable actions": "Activar acciones",
50
+ "Turn pages": "Pasar p\xE1ginas",
51
+ "Select view": "Seleccionar vista",
52
+ "Add new": "A\xF1adir nuevo",
53
+ "View record": "Ver registro",
54
+ "Details": "Detalles",
55
+ "Customize": "Personalizar",
56
+ "Popup": "Popup",
57
+ "Updated successfully": "Actualizado correctamente",
58
+ "Custom request": "Petici\xF3n personalizada",
59
+ "Edit": "Editar",
60
+ "Delete": "Borrar",
61
+ "Print": "Imprimir",
62
+ "Daily": "Diario",
63
+ "Weekly": "Semanal",
64
+ "Monthly": "Mensual",
65
+ "Yearly": "Anual",
66
+ "Repeats": "se repite"
67
+ };
@@ -0,0 +1,46 @@
1
+ declare const _default: {
2
+ "Configure calendar": string;
3
+ "Title field": string;
4
+ "Custom title": string;
5
+ "Show lunar": string;
6
+ "Start date field": string;
7
+ "End date field": string;
8
+ "Work week": string;
9
+ Today: string;
10
+ Day: string;
11
+ Agenda: string;
12
+ Date: string;
13
+ Time: string;
14
+ Event: string;
15
+ None: string;
16
+ Calendar: string;
17
+ "Delete events": string;
18
+ "This event": string;
19
+ "This and following events": string;
20
+ "All events": string;
21
+ "Delete this event?": string;
22
+ "Delete Event": string;
23
+ "Calendar collection": string;
24
+ "Create calendar block": string;
25
+ Filter: string;
26
+ "Configure actions": string;
27
+ "Enable actions": string;
28
+ "Turn pages": string;
29
+ "Select view": string;
30
+ "Add new": string;
31
+ "View record": string;
32
+ Details: string;
33
+ Customize: string;
34
+ Popup: string;
35
+ "Updated successfully": string;
36
+ "Custom request": string;
37
+ Edit: string;
38
+ Delete: string;
39
+ Print: string;
40
+ Daily: string;
41
+ Weekly: string;
42
+ Monthly: string;
43
+ Yearly: string;
44
+ Repeats: string;
45
+ };
46
+ export default _default;
@@ -0,0 +1,67 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var fr_FR_exports = {};
19
+ __export(fr_FR_exports, {
20
+ default: () => fr_FR_default
21
+ });
22
+ module.exports = __toCommonJS(fr_FR_exports);
23
+ var fr_FR_default = {
24
+ "Configure calendar": "Configurer le calendrier",
25
+ "Title field": "Champ de titre",
26
+ "Custom title": "Titre personnalis\xE9",
27
+ "Show lunar": "Afficher le calendrier lunaire",
28
+ "Start date field": "Champ de date de d\xE9but",
29
+ "End date field": "Champ de date de fin",
30
+ "Work week": "Semaine de travail",
31
+ "Today": "Aujourd'hui",
32
+ "Day": "Jour",
33
+ "Agenda": "Agenda",
34
+ "Date": "Date",
35
+ "Time": "Heure",
36
+ "Event": "\xC9v\xE9nement",
37
+ "None": "Aucun",
38
+ "Calendar": "Calendrier",
39
+ "Delete events": "Supprimer les \xE9v\xE9nements",
40
+ "This event": "Cet \xE9v\xE9nement",
41
+ "This and following events": "Cet \xE9v\xE9nement et les suivants",
42
+ "All events": "Tous les \xE9v\xE9nements",
43
+ "Delete this event?": "Supprimer cet \xE9v\xE9nement ?",
44
+ "Delete Event": "Supprimer l'\xE9v\xE9nement",
45
+ "Calendar collection": "Collection de calendrier",
46
+ "Create calendar block": "Cr\xE9er un bloc de calendrier",
47
+ "Filter": "Filtrer",
48
+ "Configure actions": "Configurer les actions",
49
+ "Enable actions": "Activer les actions",
50
+ "Turn pages": "Tourner les pages",
51
+ "Select view": "S\xE9lectionner la vue",
52
+ "Add new": "Ajouter nouveau",
53
+ "View record": "Voir l'enregistrement",
54
+ "Details": "D\xE9tails",
55
+ "Customize": "Personnaliser",
56
+ "Popup": "Popup",
57
+ "Updated successfully": "Mis \xE0 jour avec succ\xE8s",
58
+ "Custom request": "Requ\xEAte personnalis\xE9e",
59
+ "Edit": "Modifier",
60
+ "Delete": "Supprimer",
61
+ "Print": "Imprimer",
62
+ "Daily": "Quotidien",
63
+ "Weekly": "Hebdomadaire",
64
+ "Monthly": "Mensuel",
65
+ "Yearly": "Annuel",
66
+ "Repeats": "R\xE9p\xE9titions"
67
+ };
@@ -0,0 +1,4 @@
1
+ export declare const NAMESPACE = "calendar";
2
+ export declare function i18nt(key: string, options?: any): string;
3
+ export declare function generateNTemplate(key: string): string;
4
+ export declare function useTranslation(): import("react-i18next").UseTranslationResponse<"calendar", undefined>;
@@ -0,0 +1,44 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var locale_exports = {};
19
+ __export(locale_exports, {
20
+ NAMESPACE: () => NAMESPACE,
21
+ generateNTemplate: () => generateNTemplate,
22
+ i18nt: () => i18nt,
23
+ useTranslation: () => useTranslation
24
+ });
25
+ module.exports = __toCommonJS(locale_exports);
26
+ var import_client = require("@tachybase/client");
27
+ var import_react_i18next = require("react-i18next");
28
+ const NAMESPACE = "calendar";
29
+ function i18nt(key, options = {}) {
30
+ return import_client.i18n.t(key, { ns: NAMESPACE, ...options });
31
+ }
32
+ function generateNTemplate(key) {
33
+ return `{{t('${key}', { ns: '${NAMESPACE}' })}}`;
34
+ }
35
+ function useTranslation() {
36
+ return (0, import_react_i18next.useTranslation)(NAMESPACE);
37
+ }
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ NAMESPACE,
41
+ generateNTemplate,
42
+ i18nt,
43
+ useTranslation
44
+ });
@@ -0,0 +1,33 @@
1
+ declare const _default: {
2
+ "Configure calendar": string;
3
+ "Title field": string;
4
+ "Start date field": string;
5
+ "End date field": string;
6
+ "Work week": string;
7
+ Today: string;
8
+ Day: string;
9
+ Agenda: string;
10
+ Date: string;
11
+ Time: string;
12
+ Event: string;
13
+ None: string;
14
+ Calendar: string;
15
+ "Calendar collection": string;
16
+ "Create calendar block": string;
17
+ Filter: string;
18
+ "Configure actions": string;
19
+ "Enable actions": string;
20
+ "Turn pages": string;
21
+ "Select view": string;
22
+ "Add new": string;
23
+ "View record": string;
24
+ Details: string;
25
+ Customize: string;
26
+ Popup: string;
27
+ "Updated successfully": string;
28
+ "Custom request": string;
29
+ Edit: string;
30
+ Delete: string;
31
+ Print: string;
32
+ };
33
+ export default _default;
@@ -0,0 +1,54 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var ja_JP_exports = {};
19
+ __export(ja_JP_exports, {
20
+ default: () => ja_JP_default
21
+ });
22
+ module.exports = __toCommonJS(ja_JP_exports);
23
+ var ja_JP_default = {
24
+ "Configure calendar": "\u30AB\u30EC\u30F3\u30C0\u30FC\u306E\u8A2D\u5B9A",
25
+ "Title field": "\u30BF\u30A4\u30C8\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9",
26
+ "Start date field": "\u958B\u59CB\u65E5\u30D5\u30A3\u30FC\u30EB\u30C9",
27
+ "End date field": "\u7D42\u4E86\u65E5\u30D5\u30A3\u30FC\u30EB\u30C9",
28
+ "Work week": "\u7A3C\u50CD\u65E5",
29
+ "Today": "\u4ECA\u65E5",
30
+ "Day": "\u65E5",
31
+ "Agenda": "\u30A2\u30B8\u30A7\u30F3\u30C0",
32
+ "Date": "\u65E5\u4ED8",
33
+ "Time": "\u6642\u9593",
34
+ "Event": "\u30A4\u30D9\u30F3\u30C8",
35
+ "None": "\u306A\u3057",
36
+ "Calendar": "\u30AB\u30EC\u30F3\u30C0\u30FC",
37
+ "Calendar collection": "\u30AB\u30EC\u30F3\u30C0\u30C7\u30FC\u30BF\u30C6\u30FC\u30D6\u30EB",
38
+ "Create calendar block": "\u30AB\u30EC\u30F3\u30C0\u30FC\u30D6\u30ED\u30C3\u30AF\u306E\u4F5C\u6210",
39
+ "Filter": "\u30D5\u30A3\u30EB\u30BF\u30FC",
40
+ "Configure actions": "\u64CD\u4F5C\u306E\u8A2D\u5B9A",
41
+ "Enable actions": "\u6709\u52B9\u306A\u64CD\u4F5C",
42
+ "Turn pages": "\u30DA\u30FC\u30B8\u3092\u3081\u304F\u308B",
43
+ "Select view": "\u30D3\u30E5\u30FC\u306E\u5207\u308A\u66FF\u3048",
44
+ "Add new": "\u8FFD\u52A0",
45
+ "View record": "\u30EC\u30B3\u30FC\u30C9\u3092\u898B\u308B",
46
+ "Details": "\u8A73\u7D30",
47
+ "Customize": "\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA",
48
+ "Popup": "\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7",
49
+ "Updated successfully": "\u66F4\u65B0\u6210\u529F",
50
+ "Custom request": "\u30AB\u30B9\u30BF\u30E0\u30EA\u30AF\u30A8\u30B9\u30C8",
51
+ "Edit": "\u7DE8\u96C6",
52
+ "Delete": "\u524A\u9664",
53
+ "Print": "Print"
54
+ };
@@ -0,0 +1,47 @@
1
+ declare const _default: {
2
+ "Configure calendar": string;
3
+ "Title field": string;
4
+ "Custom title": string;
5
+ "Show lunar": string;
6
+ "Start date field": string;
7
+ "End date field": string;
8
+ "Work week": string;
9
+ Today: string;
10
+ Day: string;
11
+ Agenda: string;
12
+ Date: string;
13
+ Time: string;
14
+ Event: string;
15
+ None: string;
16
+ Calendar: string;
17
+ "Delete events": string;
18
+ "This event": string;
19
+ "This and following events": string;
20
+ "All events": string;
21
+ "Delete this event?": string;
22
+ "Delete Event": string;
23
+ "Calendar collection": string;
24
+ "Create calendar block": string;
25
+ Filter: string;
26
+ "Configure actions": string;
27
+ "Enable actions": string;
28
+ "Turn pages": string;
29
+ "Select view": string;
30
+ "Add new": string;
31
+ "View record": string;
32
+ Details: string;
33
+ Customize: string;
34
+ "Update record": string;
35
+ Popup: string;
36
+ "Updated successfully": string;
37
+ "Custom request": string;
38
+ Edit: string;
39
+ Delete: string;
40
+ Print: string;
41
+ Daily: string;
42
+ Weekly: string;
43
+ Monthly: string;
44
+ Yearly: string;
45
+ Repeats: string;
46
+ };
47
+ export default _default;