@acorex/platform 19.3.0 → 19.3.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/common/lib/utils/index.d.ts +0 -1
- package/fesm2022/acorex-platform-common.mjs +1 -134
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +247 -0
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-CybYV1Kf.mjs → acorex-platform-widgets-tabular-data-edit-popup.component-1IseEVXQ.mjs} +2 -2
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-1IseEVXQ.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +8 -4395
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/components/README.md +3 -0
- package/layout/components/index.d.ts +1 -0
- package/layout/components/lib/user-avatar/index.d.ts +4 -0
- package/layout/components/lib/user-avatar/user-avatar.component.d.ts +27 -0
- package/layout/components/lib/user-avatar/user-avatar.provider.d.ts +3 -0
- package/layout/components/lib/user-avatar/user-avatar.service.d.ts +42 -0
- package/layout/components/lib/user-avatar/user-avatar.types.d.ts +12 -0
- package/package.json +5 -1
- package/widgets/lib/widgets/index.d.ts +0 -11
- package/common/lib/utils/data-generator.d.ts +0 -26
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-CybYV1Kf.mjs.map +0 -1
- package/widgets/lib/widgets/charts/bar-chart/bar-chart-widget.component.d.ts +0 -72
- package/widgets/lib/widgets/charts/bar-chart/bar-chart-widget.config.d.ts +0 -7
- package/widgets/lib/widgets/charts/bar-chart/bar-chart.type.d.ts +0 -34
- package/widgets/lib/widgets/charts/bar-chart/index.d.ts +0 -2
- package/widgets/lib/widgets/charts/chart.type.d.ts +0 -3
- package/widgets/lib/widgets/charts/clock-calendar/clock-calendar-widget.component.d.ts +0 -40
- package/widgets/lib/widgets/charts/clock-calendar/clock-calendar-widget.config.d.ts +0 -7
- package/widgets/lib/widgets/charts/clock-calendar/clock-calendar.types.d.ts +0 -50
- package/widgets/lib/widgets/charts/clock-calendar/index.d.ts +0 -3
- package/widgets/lib/widgets/charts/donut-chart/donut-chart-widget.component.d.ts +0 -58
- package/widgets/lib/widgets/charts/donut-chart/donut-chart-widget.config.d.ts +0 -7
- package/widgets/lib/widgets/charts/donut-chart/donut-chart.type.d.ts +0 -67
- package/widgets/lib/widgets/charts/donut-chart/index.d.ts +0 -2
- package/widgets/lib/widgets/charts/gauge-chart/gauge-chart-widget.component.d.ts +0 -75
- package/widgets/lib/widgets/charts/gauge-chart/gauge-chart-widget.config.d.ts +0 -7
- package/widgets/lib/widgets/charts/gauge-chart/gauge-chart.type.d.ts +0 -29
- package/widgets/lib/widgets/charts/gauge-chart/index.d.ts +0 -3
- package/widgets/lib/widgets/charts/index.d.ts +0 -11
- package/widgets/lib/widgets/charts/line-chart/index.d.ts +0 -3
- package/widgets/lib/widgets/charts/line-chart/line-chart-widget.component.d.ts +0 -76
- package/widgets/lib/widgets/charts/line-chart/line-chart-widget.config.d.ts +0 -7
- package/widgets/lib/widgets/charts/line-chart/line-chart.type.d.ts +0 -41
- package/widgets/lib/widgets/charts/notification/index.d.ts +0 -3
- package/widgets/lib/widgets/charts/notification/notification-widget.component.d.ts +0 -54
- package/widgets/lib/widgets/charts/notification/notification-widget.config.d.ts +0 -10
- package/widgets/lib/widgets/charts/notification/notification.type.d.ts +0 -47
- package/widgets/lib/widgets/charts/shared/chart-base.component.d.ts +0 -44
- package/widgets/lib/widgets/charts/shared/chart-base.type.d.ts +0 -37
- package/widgets/lib/widgets/charts/shared/components/chart-tooltip/chart-tooltip.component.d.ts +0 -28
- package/widgets/lib/widgets/charts/shared/components/chart-tooltip/index.d.ts +0 -1
- package/widgets/lib/widgets/charts/shared/index.d.ts +0 -3
- package/widgets/lib/widgets/charts/sticky-note/index.d.ts +0 -2
- package/widgets/lib/widgets/charts/sticky-note/sticky-note-widget.component.d.ts +0 -21
- package/widgets/lib/widgets/charts/sticky-note/sticky-note-widget.config.d.ts +0 -7
- package/widgets/lib/widgets/charts/tasklist/index.d.ts +0 -3
- package/widgets/lib/widgets/charts/tasklist/tasklist-widget.component.d.ts +0 -34
- package/widgets/lib/widgets/charts/tasklist/tasklist-widget.config.d.ts +0 -7
- package/widgets/lib/widgets/charts/tasklist/tasklist.type.d.ts +0 -36
- package/widgets/lib/widgets/charts/weather/index.d.ts +0 -3
- package/widgets/lib/widgets/charts/weather/weather-services/index.d.ts +0 -3
- package/widgets/lib/widgets/charts/weather/weather-services/weather-api.abstract.d.ts +0 -174
- package/widgets/lib/widgets/charts/weather/weather-services/weather-api.key.d.ts +0 -2
- package/widgets/lib/widgets/charts/weather/weather-services/weather-api.mock.service.d.ts +0 -47
- package/widgets/lib/widgets/charts/weather/weather-services/weather-api.service.d.ts +0 -48
- package/widgets/lib/widgets/charts/weather/weather-widget.component.d.ts +0 -109
- package/widgets/lib/widgets/charts/weather/weather-widget.config.d.ts +0 -14
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AXPChartDataBase, AXPChartOptionBase } from '../shared/chart-base.type';
|
|
2
|
-
/**
|
|
3
|
-
* Gauge chart data item interface
|
|
4
|
-
*/
|
|
5
|
-
export interface AXPGaugeChartData extends AXPChartDataBase {
|
|
6
|
-
value: number;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Gauge chart options interface
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
export interface AXPGaugeChartOption extends AXPChartOptionBase {
|
|
13
|
-
minValue: number;
|
|
14
|
-
maxValue: number;
|
|
15
|
-
width?: number;
|
|
16
|
-
height?: number;
|
|
17
|
-
gaugeWidth?: number;
|
|
18
|
-
cornerRadius?: number;
|
|
19
|
-
thresholds?: {
|
|
20
|
-
value: number;
|
|
21
|
-
color: string;
|
|
22
|
-
}[];
|
|
23
|
-
label?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Gauge chart data type returned by getValue()
|
|
27
|
-
* Represents a single gauge value
|
|
28
|
-
*/
|
|
29
|
-
export type AXPGaugeChartValue = number;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './bar-chart';
|
|
2
|
-
export * from './chart.type';
|
|
3
|
-
export * from './clock-calendar';
|
|
4
|
-
export * from './donut-chart';
|
|
5
|
-
export * from './gauge-chart';
|
|
6
|
-
export * from './line-chart';
|
|
7
|
-
export * from './notification';
|
|
8
|
-
export * from './shared';
|
|
9
|
-
export * from './sticky-note';
|
|
10
|
-
export * from './tasklist';
|
|
11
|
-
export * from './weather';
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { AXPChartBaseComponent } from '../shared/chart-base.component';
|
|
2
|
-
import { AXPChartTooltipData } from '../shared/components/chart-tooltip';
|
|
3
|
-
import { AXPLineChartData, AXPLineChartValue } from './line-chart.type';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Line Chart Widget Component
|
|
7
|
-
* Renders data as lines with interactive hover effects and animations
|
|
8
|
-
*/
|
|
9
|
-
export declare class AXPLineChartWidgetViewComponent extends AXPChartBaseComponent<AXPLineChartValue> {
|
|
10
|
-
pointClick: import("@angular/core").OutputEmitterRef<AXPLineChartData>;
|
|
11
|
-
private readonly chartContainerEl;
|
|
12
|
-
private svg;
|
|
13
|
-
private chart;
|
|
14
|
-
private xScale;
|
|
15
|
-
private yScale;
|
|
16
|
-
private xAxis;
|
|
17
|
-
private yAxis;
|
|
18
|
-
private width;
|
|
19
|
-
private height;
|
|
20
|
-
private margin;
|
|
21
|
-
private _tooltipVisible;
|
|
22
|
-
private _tooltipPosition;
|
|
23
|
-
private _tooltipData;
|
|
24
|
-
protected tooltipVisible: import("@angular/core").Signal<boolean>;
|
|
25
|
-
protected tooltipPosition: import("@angular/core").Signal<{
|
|
26
|
-
x: number;
|
|
27
|
-
y: number;
|
|
28
|
-
}>;
|
|
29
|
-
protected tooltipData: import("@angular/core").Signal<AXPChartTooltipData>;
|
|
30
|
-
protected lineWidth: import("@angular/core").Signal<any>;
|
|
31
|
-
protected showPoints: import("@angular/core").Signal<boolean>;
|
|
32
|
-
protected pointRadius: import("@angular/core").Signal<any>;
|
|
33
|
-
protected smoothLine: import("@angular/core").Signal<boolean>;
|
|
34
|
-
protected fillArea: import("@angular/core").Signal<boolean>;
|
|
35
|
-
protected fillOpacity: import("@angular/core").Signal<number>;
|
|
36
|
-
/**
|
|
37
|
-
* Creates the line chart SVG and renders all elements
|
|
38
|
-
*/
|
|
39
|
-
protected createChart(): void;
|
|
40
|
-
protected updateChart(): void;
|
|
41
|
-
protected cleanupChart(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Sets up chart dimensions and creates SVG with responsive attributes
|
|
44
|
-
*/
|
|
45
|
-
private setupDimensions;
|
|
46
|
-
/**
|
|
47
|
-
* Creates x and y scales for the chart
|
|
48
|
-
*/
|
|
49
|
-
private setupScales;
|
|
50
|
-
/**
|
|
51
|
-
* Creates x and y axes with grid lines
|
|
52
|
-
*/
|
|
53
|
-
private createAxes;
|
|
54
|
-
/**
|
|
55
|
-
* Renders the lines with animations
|
|
56
|
-
*/
|
|
57
|
-
private renderLines;
|
|
58
|
-
/**
|
|
59
|
-
* Handles point hover event and shows tooltip
|
|
60
|
-
*/
|
|
61
|
-
private handlePointHover;
|
|
62
|
-
/**
|
|
63
|
-
* Updates tooltip position based on mouse coordinates
|
|
64
|
-
*/
|
|
65
|
-
private updateTooltipPosition;
|
|
66
|
-
/**
|
|
67
|
-
* Handles point click event
|
|
68
|
-
*/
|
|
69
|
-
private handlePointClick;
|
|
70
|
-
/**
|
|
71
|
-
* Shows a message when no data is available
|
|
72
|
-
*/
|
|
73
|
-
private showNoDataMessage;
|
|
74
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPLineChartWidgetViewComponent, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPLineChartWidgetViewComponent, "ng-component", never, {}, { "pointClick": "pointClick"; }, never, never, true, never>;
|
|
76
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { AXPChartDataBase, AXPChartOptionBase } from '../shared/chart-base.type';
|
|
2
|
-
/**
|
|
3
|
-
* Line chart data point interface
|
|
4
|
-
*/
|
|
5
|
-
export interface AXPLineChartData extends AXPChartDataBase {
|
|
6
|
-
id: string;
|
|
7
|
-
label: string;
|
|
8
|
-
value: number;
|
|
9
|
-
xValue: string | number;
|
|
10
|
-
seriesName?: string;
|
|
11
|
-
color?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Line chart options interface
|
|
15
|
-
*/
|
|
16
|
-
export interface AXPLineChartOption extends AXPChartOptionBase {
|
|
17
|
-
width?: number;
|
|
18
|
-
height?: number;
|
|
19
|
-
margin?: {
|
|
20
|
-
top: number;
|
|
21
|
-
right: number;
|
|
22
|
-
bottom: number;
|
|
23
|
-
left: number;
|
|
24
|
-
};
|
|
25
|
-
showXAxis?: boolean;
|
|
26
|
-
showYAxis?: boolean;
|
|
27
|
-
showGrid?: boolean;
|
|
28
|
-
showTooltip?: boolean;
|
|
29
|
-
lineWidth?: number;
|
|
30
|
-
showPoints?: boolean;
|
|
31
|
-
pointRadius?: number;
|
|
32
|
-
smoothLine?: boolean;
|
|
33
|
-
fillArea?: boolean;
|
|
34
|
-
fillOpacity?: number;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Line chart data type returned by getValue()
|
|
38
|
-
* Supports both single series (array of data points) and
|
|
39
|
-
* multi-series (array of arrays of data points)
|
|
40
|
-
*/
|
|
41
|
-
export type AXPLineChartValue = AXPLineChartData[] | AXPLineChartData[][];
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { AXTabStripChangedEvent } from '@acorex/components/tabs';
|
|
2
|
-
import { AXPValueWidgetComponent } from '@acorex/platform/layout/builder';
|
|
3
|
-
import { AXPNotificationData, AXPNotificationValue } from './notification.type';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Notification Widget Component
|
|
7
|
-
* Displays notifications in a card with tabs
|
|
8
|
-
*/
|
|
9
|
-
export declare class AXPNotificationWidgetViewComponent extends AXPValueWidgetComponent<AXPNotificationValue> {
|
|
10
|
-
notificationClick: import("@angular/core").OutputEmitterRef<AXPNotificationData>;
|
|
11
|
-
markAsRead: import("@angular/core").OutputEmitterRef<AXPNotificationData>;
|
|
12
|
-
private readonly cdr;
|
|
13
|
-
private readonly datePipe;
|
|
14
|
-
protected activeTab: import("@angular/core").WritableSignal<"all" | "new">;
|
|
15
|
-
protected readonly maxItems: import("@angular/core").Signal<any>;
|
|
16
|
-
protected readonly showAvatar: import("@angular/core").Signal<any>;
|
|
17
|
-
protected readonly showDate: import("@angular/core").Signal<any>;
|
|
18
|
-
protected readonly notificationItems: import("@angular/core").Signal<AXPNotificationData[]>;
|
|
19
|
-
/**
|
|
20
|
-
* Get the count of new messages for the badge
|
|
21
|
-
*/
|
|
22
|
-
protected getNewMessageCount(): number;
|
|
23
|
-
/**
|
|
24
|
-
* Handle tab change event from ax-tabs component
|
|
25
|
-
* @param index The index of the tab that was activated
|
|
26
|
-
*/
|
|
27
|
-
protected handleTabChange(data: AXTabStripChangedEvent): void;
|
|
28
|
-
/**
|
|
29
|
-
* Mark all notifications as read
|
|
30
|
-
*/
|
|
31
|
-
protected markAllAsRead(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Change the active tab
|
|
34
|
-
*/
|
|
35
|
-
protected onTabChange(tabName: 'new' | 'all'): void;
|
|
36
|
-
/**
|
|
37
|
-
* Handle notification click event
|
|
38
|
-
*/
|
|
39
|
-
protected onNotificationClick(notification: AXPNotificationData): void;
|
|
40
|
-
/**
|
|
41
|
-
* Format the timestamp in a user-friendly way
|
|
42
|
-
*/
|
|
43
|
-
protected formatTime(date: Date | string | undefined): string;
|
|
44
|
-
/**
|
|
45
|
-
* Mark notification as read if needed
|
|
46
|
-
*/
|
|
47
|
-
private markAsReadIfNeeded;
|
|
48
|
-
/**
|
|
49
|
-
* Calculate days difference from now
|
|
50
|
-
*/
|
|
51
|
-
private getDaysDifference;
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPNotificationWidgetViewComponent, never>;
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPNotificationWidgetViewComponent, "ng-component", never, {}, { "notificationClick": "notificationClick"; "markAsRead": "markAsRead"; }, never, never, true, never>;
|
|
54
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AXPWidgetConfig } from '@acorex/platform/layout/builder';
|
|
2
|
-
/**
|
|
3
|
-
* Configuration for the Notification Widget
|
|
4
|
-
*/
|
|
5
|
-
export declare const AXPNotificationWidget: AXPWidgetConfig;
|
|
6
|
-
declare module '@acorex/platform/layout/builder' {
|
|
7
|
-
interface AXPWidgetTypesMap {
|
|
8
|
-
notification: 'notification';
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { AXPWidgetDataSource } from '@acorex/platform/layout/builder';
|
|
2
|
-
export type AXPNotificationChannel = 'InApp' | 'Email' | 'SMS';
|
|
3
|
-
export type AXPNotificationCategory = 'Inbox' | 'Archive';
|
|
4
|
-
export type AXPNotificationPriority = 'Warning' | 'Danger' | 'Notice';
|
|
5
|
-
export type AXPNotificationType = 'File' | 'Person' | 'Notification';
|
|
6
|
-
export type AXPNotificationActionType = 'Link' | 'Entity' | 'Popup';
|
|
7
|
-
/**
|
|
8
|
-
* Notification item data structure
|
|
9
|
-
*/
|
|
10
|
-
export interface AXPNotificationData {
|
|
11
|
-
id: string;
|
|
12
|
-
title: string;
|
|
13
|
-
body: string;
|
|
14
|
-
channel: AXPNotificationChannel;
|
|
15
|
-
content: {
|
|
16
|
-
type: AXPNotificationType;
|
|
17
|
-
data: object;
|
|
18
|
-
};
|
|
19
|
-
action?: {
|
|
20
|
-
type: AXPNotificationActionType;
|
|
21
|
-
data: {
|
|
22
|
-
[key: string]: unknown;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
user: {
|
|
26
|
-
id: string;
|
|
27
|
-
name: string;
|
|
28
|
-
image: string;
|
|
29
|
-
};
|
|
30
|
-
template: {
|
|
31
|
-
category: AXPNotificationCategory;
|
|
32
|
-
priority: AXPNotificationPriority;
|
|
33
|
-
icon: string;
|
|
34
|
-
isPinned: boolean;
|
|
35
|
-
};
|
|
36
|
-
readAt: Date | null;
|
|
37
|
-
createdAt: Date;
|
|
38
|
-
entityName?: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Notification widget value structure
|
|
42
|
-
*/
|
|
43
|
-
export interface AXPNotificationValue {
|
|
44
|
-
data: AXPNotificationData[];
|
|
45
|
-
dataSource?: AXPWidgetDataSource;
|
|
46
|
-
total?: number;
|
|
47
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { AXPValueWidgetComponent } from '@acorex/platform/layout/builder';
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Base component class for all chart components with common chart functionality
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class AXPChartBaseComponent<TData> extends AXPValueWidgetComponent<TData> implements OnInit, AfterViewInit, OnDestroy {
|
|
8
|
-
protected cdr: ChangeDetectorRef;
|
|
9
|
-
protected d3: typeof import('d3');
|
|
10
|
-
private injector;
|
|
11
|
-
protected isInitialized: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
-
protected isRendered: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
-
protected _internalData: import("@angular/core").WritableSignal<TData | null>;
|
|
14
|
-
protected chartData: import("@angular/core").Signal<TData>;
|
|
15
|
-
protected _lastOptionsSnapshot: string;
|
|
16
|
-
private effectRef;
|
|
17
|
-
constructor(cdr: ChangeDetectorRef);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
ngAfterViewInit(): void;
|
|
20
|
-
ngOnDestroy(): void;
|
|
21
|
-
/**
|
|
22
|
-
* Load D3.js library asynchronously
|
|
23
|
-
*/
|
|
24
|
-
protected loadD3(): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Set up reactive effects to track data and option changes
|
|
27
|
-
*/
|
|
28
|
-
protected setupEffects(): void;
|
|
29
|
-
/**
|
|
30
|
-
* Abstract methods that child classes must implement
|
|
31
|
-
*/
|
|
32
|
-
protected abstract createChart(): void;
|
|
33
|
-
protected abstract updateChart(): void;
|
|
34
|
-
protected abstract cleanupChart(): void;
|
|
35
|
-
/**
|
|
36
|
-
* Get dimensions of the container element
|
|
37
|
-
*/
|
|
38
|
-
protected getContainerDimensions(containerElement: ElementRef<HTMLElement>): {
|
|
39
|
-
width: number;
|
|
40
|
-
height: number;
|
|
41
|
-
};
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPChartBaseComponent<any>, never>;
|
|
43
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPChartBaseComponent<any>, never, never, {}, {}, never, never, true, never>;
|
|
44
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Common base types and utilities for all chart components
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Base chart data interface that all chart data types extend
|
|
6
|
-
*/
|
|
7
|
-
export interface AXPChartDataBase {
|
|
8
|
-
id: string;
|
|
9
|
-
color?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Base chart options interface with common properties
|
|
13
|
-
*/
|
|
14
|
-
export interface AXPChartOptionBase {
|
|
15
|
-
width?: number;
|
|
16
|
-
height?: number;
|
|
17
|
-
animationEnabled?: boolean;
|
|
18
|
-
animationDuration?: number;
|
|
19
|
-
showTooltip?: boolean;
|
|
20
|
-
tooltipPosition?: 'auto' | 'fixed';
|
|
21
|
-
showLegend?: boolean;
|
|
22
|
-
legendPosition?: 'bottom' | 'right' | 'top' | 'left';
|
|
23
|
-
theme?: 'light' | 'dark' | 'auto';
|
|
24
|
-
colorScheme?: string | string[];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Color utility functions for charts
|
|
28
|
-
*/
|
|
29
|
-
export declare const AXPChartColors: {
|
|
30
|
-
defaultColors: string[];
|
|
31
|
-
getColor: (index: number, customPalette?: string[]) => string;
|
|
32
|
-
generatePalette: (baseColor: string, count: number) => string[];
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Shared utility for loading D3.js dynamically
|
|
36
|
-
*/
|
|
37
|
-
export declare function loadD3(): Promise<any>;
|
package/widgets/lib/widgets/charts/shared/components/chart-tooltip/chart-tooltip.component.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export interface AXPChartTooltipData {
|
|
3
|
-
title: string;
|
|
4
|
-
value: number | string;
|
|
5
|
-
percentage?: string;
|
|
6
|
-
color?: string;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}
|
|
9
|
-
export declare class AXPChartTooltipComponent {
|
|
10
|
-
data: import("@angular/core").InputSignal<AXPChartTooltipData | null>;
|
|
11
|
-
position: import("@angular/core").InputSignal<{
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
}>;
|
|
15
|
-
visible: import("@angular/core").InputSignal<boolean>;
|
|
16
|
-
/**
|
|
17
|
-
* Whether to show the tooltip's percentage badge
|
|
18
|
-
*/
|
|
19
|
-
showPercentage: import("@angular/core").InputSignal<boolean>;
|
|
20
|
-
/**
|
|
21
|
-
* Optional custom styling for the tooltip
|
|
22
|
-
*/
|
|
23
|
-
style: import("@angular/core").InputSignal<{
|
|
24
|
-
[key: string]: string;
|
|
25
|
-
}>;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPChartTooltipComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPChartTooltipComponent, "ax-chart-tooltip", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "showPercentage": { "alias": "showPercentage"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './chart-tooltip.component';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AXValueChangedEvent } from '@acorex/components/common';
|
|
2
|
-
import { AXPValueWidgetComponent } from '@acorex/platform/layout/builder';
|
|
3
|
-
import { OnInit } from '@angular/core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AXPStickyNoteWidgetViewComponent extends AXPValueWidgetComponent<string> implements OnInit {
|
|
6
|
-
protected isEditing: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
-
private wysiwyg;
|
|
8
|
-
protected value: import("@angular/core").Signal<string>;
|
|
9
|
-
protected date: import("@angular/core").Signal<any>;
|
|
10
|
-
protected bgColor: import("@angular/core").Signal<any>;
|
|
11
|
-
protected color: import("@angular/core").WritableSignal<string>;
|
|
12
|
-
private el;
|
|
13
|
-
protected colorPresets: string[];
|
|
14
|
-
handleClickOutside(event: MouseEvent): void;
|
|
15
|
-
protected activateEdit(): void;
|
|
16
|
-
protected saveChanges(): void;
|
|
17
|
-
protected setColor(color: string): void;
|
|
18
|
-
protected valueChange(event: AXValueChangedEvent<any>): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPStickyNoteWidgetViewComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPStickyNoteWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { AXPValueWidgetComponent } from '@acorex/platform/layout/builder';
|
|
2
|
-
import { AXPTaskData, AXPTaskListValue } from './tasklist.type';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Task List Widget Component
|
|
6
|
-
* Displays a list of tasks with checkboxes and filtering options
|
|
7
|
-
*/
|
|
8
|
-
export declare class AXPTaskListWidgetViewComponent extends AXPValueWidgetComponent<AXPTaskListValue> {
|
|
9
|
-
taskClick: import("@angular/core").OutputEmitterRef<AXPTaskData>;
|
|
10
|
-
taskCompleted: import("@angular/core").OutputEmitterRef<AXPTaskData>;
|
|
11
|
-
private readonly cdr;
|
|
12
|
-
private readonly datePipe;
|
|
13
|
-
protected readonly maxItems: import("@angular/core").Signal<any>;
|
|
14
|
-
protected readonly showDate: import("@angular/core").Signal<any>;
|
|
15
|
-
protected readonly showAssignee: import("@angular/core").Signal<any>;
|
|
16
|
-
protected readonly showPriority: import("@angular/core").Signal<any>;
|
|
17
|
-
protected readonly allowMarkComplete: import("@angular/core").Signal<any>;
|
|
18
|
-
protected readonly showCategories: import("@angular/core").Signal<any>;
|
|
19
|
-
protected readonly taskItems: import("@angular/core").Signal<AXPTaskData[]>;
|
|
20
|
-
protected getPendingTaskCount(): number;
|
|
21
|
-
protected getCompletedTaskCount(): number;
|
|
22
|
-
protected hasCategories(): boolean;
|
|
23
|
-
protected getCategories(): string[];
|
|
24
|
-
protected getTasksByCategory(category: string): AXPTaskData[];
|
|
25
|
-
protected getCategoryTaskCount(category: string): number;
|
|
26
|
-
protected onTaskClick(task: AXPTaskData): void;
|
|
27
|
-
protected onTaskCompletionChange(task: AXPTaskData, isCompleted: boolean): void;
|
|
28
|
-
protected formatDueDate(date: Date | string | undefined): string;
|
|
29
|
-
protected getPriorityColor(priority: string | undefined): string;
|
|
30
|
-
private getFilteredTasks;
|
|
31
|
-
protected getDaysDifference(date: Date): number;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPTaskListWidgetViewComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPTaskListWidgetViewComponent, "ng-component", never, {}, { "taskClick": "taskClick"; "taskCompleted": "taskCompleted"; }, never, never, true, never>;
|
|
34
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task List Data structure
|
|
3
|
-
*/
|
|
4
|
-
export interface AXPTaskData {
|
|
5
|
-
id: string;
|
|
6
|
-
title: string;
|
|
7
|
-
completed: boolean;
|
|
8
|
-
priority?: 'low' | 'medium' | 'high';
|
|
9
|
-
dueDate?: Date | string;
|
|
10
|
-
category?: string;
|
|
11
|
-
assignedTo?: {
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
image?: string;
|
|
15
|
-
};
|
|
16
|
-
createdAt: Date | string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Task List Widget Value
|
|
20
|
-
*/
|
|
21
|
-
export interface AXPTaskListValue {
|
|
22
|
-
data: AXPTaskData[];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Task List Widget Options
|
|
26
|
-
*/
|
|
27
|
-
export interface AXPTaskListOptions {
|
|
28
|
-
maxItems?: number;
|
|
29
|
-
showDate?: boolean;
|
|
30
|
-
showAssignee?: boolean;
|
|
31
|
-
showCategory?: boolean;
|
|
32
|
-
showPriority?: boolean;
|
|
33
|
-
groupByCategory?: boolean;
|
|
34
|
-
groupByPriority?: boolean;
|
|
35
|
-
allowMarkComplete?: boolean;
|
|
36
|
-
}
|