zegantt 0.1.0 → 0.2.1
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/dist/index.d.ts +28 -0
- package/dist/zegantt.css +1 -0
- package/dist/zegantt.js +1749 -1251
- package/dist/zegantt.umd.cjs +1 -1
- package/package.json +3 -5
package/dist/index.d.ts
CHANGED
|
@@ -73,6 +73,29 @@ export declare interface GanttTask {
|
|
|
73
73
|
progress: number;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
export declare function NoteModal({ isOpen, onClose, availableMilestones, initialDate, translations, onSaveNote }: NoteModalProps): JSX.Element | null;
|
|
77
|
+
|
|
78
|
+
export declare interface NoteModalProps {
|
|
79
|
+
isOpen: boolean;
|
|
80
|
+
onClose: () => void;
|
|
81
|
+
availableMilestones?: {
|
|
82
|
+
id: string;
|
|
83
|
+
name: string;
|
|
84
|
+
}[];
|
|
85
|
+
initialDate?: string;
|
|
86
|
+
/** Translation map or lookup function. Falls back to English defaults. */
|
|
87
|
+
translations?: Record<string, string> | ((key: string, fallback: string) => string);
|
|
88
|
+
onSaveNote: (data: {
|
|
89
|
+
title: string;
|
|
90
|
+
description: string;
|
|
91
|
+
color: string;
|
|
92
|
+
date: string;
|
|
93
|
+
predecessorId: string;
|
|
94
|
+
dependencyType: DependencyType;
|
|
95
|
+
files: File[];
|
|
96
|
+
}) => Promise<void>;
|
|
97
|
+
}
|
|
98
|
+
|
|
76
99
|
export declare type PredecessorType = "STEP" | "MILESTONE";
|
|
77
100
|
|
|
78
101
|
export declare function ProjectGantt(props: ProjectGanttProps): JSX.Element;
|
|
@@ -85,6 +108,8 @@ export declare interface ProjectGanttProps {
|
|
|
85
108
|
dependencies?: GanttDependency[];
|
|
86
109
|
loading?: boolean;
|
|
87
110
|
projectName?: string;
|
|
111
|
+
/** BCP 47 locale tag used for date formatting (default: 'en') */
|
|
112
|
+
locale?: string;
|
|
88
113
|
/** Object containing localized strings or a translation function */
|
|
89
114
|
translations?: Record<string, string> | ((key: string, fallback?: string) => string);
|
|
90
115
|
/** When true renders one project-header row per project and groups tasks by project */
|
|
@@ -111,4 +136,7 @@ export declare interface ProjectGanttProps {
|
|
|
111
136
|
}) => Promise<void>;
|
|
112
137
|
}
|
|
113
138
|
|
|
139
|
+
/** Portuguese (Brazil) translation strings for ZeGantt */
|
|
140
|
+
export declare const ptBR: Record<string, string>;
|
|
141
|
+
|
|
114
142
|
export { }
|
package/dist/zegantt.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@keyframes zg-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes zg-dash{to{stroke-dashoffset:-13}}.zg-no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.zg-no-scrollbar::-webkit-scrollbar{display:none}.zg-popup-btn{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:7px;border:none;background:transparent;cursor:pointer;font-size:13px;font-weight:500;color:#4f4f4f;text-align:left;transition:background .12s}.zg-popup-btn:hover{background:#f2f5f3}.zg-popup-btn-danger{color:#ef4444}.zg-popup-btn-danger:hover{background:#fef2f2}
|