@opengeoweb/cap 19.2.0 → 19.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/cap",
3
- "version": "19.2.0",
3
+ "version": "19.3.0",
4
4
  "description": "GeoWeb Common Alerting Protocol (CAP) library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -22,7 +22,6 @@
22
22
  "dependencies": {
23
23
  "@opengeoweb/api": "*",
24
24
  "@opengeoweb/core": "*",
25
- "frappe-gantt": "^0.6.1",
26
25
  "@opengeoweb/shared": "*",
27
26
  "@opengeoweb/store": "*",
28
27
  "react-redux": "^9.2.0",
@@ -1,40 +0,0 @@
1
- import Gantt from 'frappe-gantt';
2
- import type { Task } from './Task';
3
- import { ViewMode } from './ViewMode';
4
- interface Options {
5
- view_mode?: ViewMode;
6
- header_height?: number;
7
- column_width?: number;
8
- bar_height?: number;
9
- language?: string;
10
- step?: number;
11
- date_format?: string;
12
- bar_corner_radius?: number;
13
- arrow_curve?: number;
14
- padding?: number;
15
- popup_trigger?: string;
16
- custom_popup_html?: (task: Task) => string;
17
- on_click?: (task: Task) => void;
18
- on_view_change?: (mode: ViewMode) => void;
19
- on_progress_change?: (task: Task, progress: number) => void;
20
- on_date_change?: (task: Task, start: Date, end: Date) => void;
21
- view_modes?: string[];
22
- }
23
- export default class CustomGantt extends Gantt {
24
- private options;
25
- private gantt_start;
26
- private gantt_end;
27
- private tasks;
28
- constructor(wrapper: SVGSVGElement, tasks: Task[], options: Options);
29
- update_view_scale(view_mode: ViewMode): void;
30
- setup_gantt_dates(): void;
31
- get_date_info(date: Date, newLastDate: Date, i: number): {
32
- upper_text: string;
33
- lower_text: string;
34
- upper_x: number;
35
- upper_y: number;
36
- lower_x: number;
37
- lower_y: number;
38
- };
39
- }
40
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { CapPresets } from '../types';
3
- interface GanttModuleProps {
4
- capWarningPresets: CapPresets;
5
- }
6
- declare const GanttModule: React.FC<GanttModuleProps>;
7
- export default GanttModule;
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import { Task } from './Task';
3
- import { ViewMode } from './ViewMode';
4
- export declare const renderDate: (date: Date) => string;
5
- export declare const renderTime: (date: Date) => string;
6
- interface GanttReactWrapperProps {
7
- tasks: Task[];
8
- viewMode?: ViewMode;
9
- onTasksChange?: (tasks: Task[]) => void;
10
- onClick?: (task: Task) => void;
11
- onDateChange?: (task: Task, start: Date, end: Date) => void;
12
- onProgressChange?: (task: Task, progress: number) => void;
13
- onViewChange?: (mode: ViewMode) => void;
14
- }
15
- interface FrappeGanttState {
16
- viewMode: ViewMode;
17
- tasks: Task[];
18
- }
19
- export declare class GanttReactWrapper extends React.Component<GanttReactWrapperProps, FrappeGanttState> {
20
- private _target;
21
- private _svg;
22
- private _gantt;
23
- static defaultProps: {
24
- viewMode: ViewMode;
25
- onTasksChange: () => void;
26
- onClick: () => void;
27
- onDateChange: () => void;
28
- onProgressChange: () => void;
29
- onViewChange: () => void;
30
- };
31
- constructor(props: GanttReactWrapperProps);
32
- static getDerivedStateFromProps(nextProps: GanttReactWrapperProps): FrappeGanttState;
33
- componentDidMount(): void;
34
- componentDidUpdate(): void;
35
- render(): React.ReactElement;
36
- }
37
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { Task } from './Task';
3
- import { ViewMode } from './ViewMode';
4
- interface GantWrapperProps {
5
- tasks: Task[];
6
- defaultViewMode?: ViewMode;
7
- }
8
- declare const GantWrapper: React.FC<GantWrapperProps>;
9
- export default GantWrapper;
@@ -1,29 +0,0 @@
1
- export declare class Task {
2
- private _dependencies;
3
- id: string;
4
- name: string;
5
- start: string;
6
- end: string;
7
- _end: Date;
8
- _start: Date;
9
- severity: 'Minor' | 'Moderate' | 'Severe' | 'Extreme';
10
- title: string;
11
- description: string;
12
- author: string;
13
- area: string;
14
- phenomenon: string;
15
- constructor(options?: Partial<Task>);
16
- /**
17
- * Progress in percentage
18
- */
19
- private _progress;
20
- get progress(): number;
21
- set progress(value: number);
22
- /**
23
- * A css custom class for the task chart bar
24
- */
25
- custom_class?: string;
26
- setDependencies(value: string | string[]): void;
27
- set dependencies(value: string[] | string);
28
- get dependencies(): string[] | string;
29
- }
@@ -1,9 +0,0 @@
1
- export declare enum ViewMode {
2
- Hour = "Hour",
3
- QuarterDay = "Quarter Day",
4
- HalfDay = "Half Day",
5
- Day = "Day",
6
- Week = "Week",
7
- Month = "Month",
8
- Year = "Year"
9
- }
@@ -1,2 +0,0 @@
1
- import type { Task } from './Task';
2
- export declare const tasks: Task[];
@@ -1,5 +0,0 @@
1
- import type { CustomFeature } from '../types';
2
- import type { Task } from './Task';
3
- export declare const convertSeverityToColorClass: (severity: Task["severity"]) => string;
4
- export declare const getEndDateFromHeadline: (headline: string) => Date;
5
- export declare const convertFeaturesToTasks: (features: CustomFeature[]) => Task[];