@acorex/platform 19.3.0-next.5 → 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.
Files changed (112) hide show
  1. package/common/lib/app/index.d.ts +0 -1
  2. package/common/lib/common.module.d.ts +1 -1
  3. package/common/lib/configs/app.config.d.ts +12 -3
  4. package/common/lib/home-page/home-page.service.d.ts +6 -0
  5. package/common/lib/layout/logo/logo.component.d.ts +4 -0
  6. package/common/lib/settings/settings.service.d.ts +4 -1
  7. package/common/lib/utils/index.d.ts +0 -1
  8. package/common/lib/utils/regional-util.service.d.ts +2 -2
  9. package/common/lib/utils/regional.types.d.ts +6 -16
  10. package/core/lib/index.d.ts +1 -0
  11. package/{common/lib/app → core/lib/startup}/app-startup.service.d.ts +1 -5
  12. package/core/lib/startup/app-startup.types.d.ts +6 -0
  13. package/core/lib/startup/index.d.ts +2 -0
  14. package/core/lib/types/logo.types.d.ts +5 -9
  15. package/fesm2022/acorex-platform-auth.mjs +5 -1
  16. package/fesm2022/acorex-platform-auth.mjs.map +1 -1
  17. package/fesm2022/acorex-platform-common.mjs +130 -218
  18. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  19. package/fesm2022/acorex-platform-core.mjs +42 -13
  20. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  21. package/fesm2022/acorex-platform-layout-builder.mjs +17 -0
  22. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  23. package/fesm2022/acorex-platform-layout-components.mjs +247 -0
  24. package/fesm2022/acorex-platform-layout-components.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-layout-designer.mjs +2 -2
  26. package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
  27. package/fesm2022/acorex-platform-layout-entity.mjs +44 -20
  28. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  29. package/fesm2022/acorex-platform-layout-search.mjs +4 -3
  30. package/fesm2022/acorex-platform-layout-search.mjs.map +1 -1
  31. package/fesm2022/acorex-platform-layout-setting.mjs +5 -4
  32. package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
  33. package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CuyWAi6X.mjs → acorex-platform-themes-default-entity-master-list-view.component-Ol8haGqF.mjs} +5 -4
  34. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-Ol8haGqF.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-themes-default.mjs +18 -20
  36. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  37. package/fesm2022/acorex-platform-themes-shared.mjs +22 -18
  38. package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
  39. package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-CybYV1Kf.mjs → acorex-platform-widgets-tabular-data-edit-popup.component-1IseEVXQ.mjs} +2 -2
  40. package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-1IseEVXQ.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-widgets.mjs +35 -3775
  42. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  43. package/layout/builder/lib/builder/context-store.service.d.ts +2 -1
  44. package/layout/builder/lib/builder/widget-base.component.d.ts +1 -0
  45. package/layout/builder/lib/builder/widget-container.component.d.ts +1 -0
  46. package/layout/builder/lib/builder/widget-map.d.ts +1 -0
  47. package/layout/builder/lib/builder/widget-renderer.directive.d.ts +1 -0
  48. package/layout/components/README.md +3 -0
  49. package/layout/components/index.d.ts +1 -0
  50. package/layout/components/lib/user-avatar/index.d.ts +4 -0
  51. package/layout/components/lib/user-avatar/user-avatar.component.d.ts +27 -0
  52. package/layout/components/lib/user-avatar/user-avatar.provider.d.ts +3 -0
  53. package/layout/components/lib/user-avatar/user-avatar.service.d.ts +42 -0
  54. package/layout/components/lib/user-avatar/user-avatar.types.d.ts +12 -0
  55. package/layout/entity/lib/entity-master-single.viewmodel.d.ts +1 -0
  56. package/layout/entity/lib/entity.module.d.ts +1 -1
  57. package/layout/entity/lib/widgets/lookup-widget/lookup-widget-column.component.d.ts +1 -1
  58. package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +1 -0
  59. package/layout/entity/lib/widgets/lookup-widget/lookup-widget.config.d.ts +0 -5
  60. package/layout/search/lib/search.module.d.ts +1 -1
  61. package/layout/setting/lib/settings.module.d.ts +1 -1
  62. package/package.json +8 -2
  63. package/themes/default/lib/layouts/root-layout/components/header/header.component.d.ts +12 -3
  64. package/themes/default/lib/layouts/root-layout/horizontal/horizontal-layout.component.d.ts +12 -6
  65. package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +2 -1
  66. package/themes/default/lib/layouts/root-layout/vertical/vertical-layout.component.d.ts +14 -5
  67. package/themes/shared/lib/shared.module.d.ts +1 -1
  68. package/widgets/lib/widgets/index.d.ts +0 -9
  69. package/common/lib/utils/data-generator.d.ts +0 -26
  70. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CuyWAi6X.mjs.map +0 -1
  71. package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-CybYV1Kf.mjs.map +0 -1
  72. package/widgets/lib/widgets/charts/bar-chart/bar-chart-widget.component.d.ts +0 -41
  73. package/widgets/lib/widgets/charts/bar-chart/bar-chart-widget.config.d.ts +0 -7
  74. package/widgets/lib/widgets/charts/bar-chart/bar-chart.type.d.ts +0 -34
  75. package/widgets/lib/widgets/charts/bar-chart/index.d.ts +0 -2
  76. package/widgets/lib/widgets/charts/chart.type.d.ts +0 -3
  77. package/widgets/lib/widgets/charts/clock-calendar/clock-calendar-widget.component.d.ts +0 -40
  78. package/widgets/lib/widgets/charts/clock-calendar/clock-calendar-widget.config.d.ts +0 -7
  79. package/widgets/lib/widgets/charts/clock-calendar/clock-calendar.types.d.ts +0 -50
  80. package/widgets/lib/widgets/charts/clock-calendar/index.d.ts +0 -3
  81. package/widgets/lib/widgets/charts/donut-chart/donut-chart-widget.component.d.ts +0 -58
  82. package/widgets/lib/widgets/charts/donut-chart/donut-chart-widget.config.d.ts +0 -7
  83. package/widgets/lib/widgets/charts/donut-chart/donut-chart.type.d.ts +0 -67
  84. package/widgets/lib/widgets/charts/donut-chart/index.d.ts +0 -2
  85. package/widgets/lib/widgets/charts/gauge-chart/gauge-chart-widget.component.d.ts +0 -69
  86. package/widgets/lib/widgets/charts/gauge-chart/gauge-chart-widget.config.d.ts +0 -7
  87. package/widgets/lib/widgets/charts/gauge-chart/gauge-chart.type.d.ts +0 -29
  88. package/widgets/lib/widgets/charts/gauge-chart/index.d.ts +0 -3
  89. package/widgets/lib/widgets/charts/notification/index.d.ts +0 -3
  90. package/widgets/lib/widgets/charts/notification/notification-widget.component.d.ts +0 -54
  91. package/widgets/lib/widgets/charts/notification/notification-widget.config.d.ts +0 -10
  92. package/widgets/lib/widgets/charts/notification/notification.type.d.ts +0 -47
  93. package/widgets/lib/widgets/charts/shared/chart-base.component.d.ts +0 -44
  94. package/widgets/lib/widgets/charts/shared/chart-base.type.d.ts +0 -37
  95. package/widgets/lib/widgets/charts/shared/components/chart-tooltip/chart-tooltip.component.d.ts +0 -28
  96. package/widgets/lib/widgets/charts/shared/components/chart-tooltip/index.d.ts +0 -1
  97. package/widgets/lib/widgets/charts/sticky-note/index.d.ts +0 -2
  98. package/widgets/lib/widgets/charts/sticky-note/sticky-note-widget.component.d.ts +0 -21
  99. package/widgets/lib/widgets/charts/sticky-note/sticky-note-widget.config.d.ts +0 -7
  100. package/widgets/lib/widgets/charts/tasklist/index.d.ts +0 -3
  101. package/widgets/lib/widgets/charts/tasklist/tasklist-widget.component.d.ts +0 -34
  102. package/widgets/lib/widgets/charts/tasklist/tasklist-widget.config.d.ts +0 -7
  103. package/widgets/lib/widgets/charts/tasklist/tasklist.type.d.ts +0 -36
  104. package/widgets/lib/widgets/charts/weather/index.d.ts +0 -4
  105. package/widgets/lib/widgets/charts/weather/weather-services/index.d.ts +0 -3
  106. package/widgets/lib/widgets/charts/weather/weather-services/weather-api.abstract.d.ts +0 -174
  107. package/widgets/lib/widgets/charts/weather/weather-services/weather-api.key.d.ts +0 -2
  108. package/widgets/lib/widgets/charts/weather/weather-services/weather-api.mock.service.d.ts +0 -47
  109. package/widgets/lib/widgets/charts/weather/weather-services/weather-api.service.d.ts +0 -48
  110. package/widgets/lib/widgets/charts/weather/weather-widget.component.d.ts +0 -109
  111. package/widgets/lib/widgets/charts/weather/weather-widget.config.d.ts +0 -14
  112. package/widgets/lib/widgets/charts/weather/weather.module.d.ts +0 -11
@@ -1,69 +0,0 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
- import { AXPChartBaseComponent } from '../shared/chart-base.component';
3
- import { AXPGaugeChartValue } from './gauge-chart.type';
4
- import * as i0 from "@angular/core";
5
- export declare class AXPGaugeChartWidgetViewComponent extends AXPChartBaseComponent<AXPGaugeChartValue> {
6
- protected cdr: ChangeDetectorRef;
7
- private chartContainerEl;
8
- private chartEl;
9
- protected backgroundColor: string;
10
- protected baseColor: string;
11
- protected labelFontSize: number;
12
- protected showValue: boolean;
13
- protected valueColor: string;
14
- protected valueFontSize: number;
15
- protected minValue: import("@angular/core").Signal<any>;
16
- protected maxValue: import("@angular/core").Signal<any>;
17
- protected thresholds: import("@angular/core").Signal<any>;
18
- protected label: import("@angular/core").Signal<any>;
19
- protected width: import("@angular/core").Signal<any>;
20
- protected height: import("@angular/core").Signal<any>;
21
- protected gaugeWidth: import("@angular/core").Signal<any>;
22
- protected cornerRadius: import("@angular/core").Signal<any>;
23
- protected createChart(): void;
24
- protected updateChart(): void;
25
- protected cleanupChart(): void;
26
- /**
27
- * Create gradient definitions for thresholds
28
- */
29
- private createGradients;
30
- /**
31
- * Draw the background arc.
32
- */
33
- private drawBackgroundArc;
34
- /**
35
- * Draw the threshold arcs and labels.
36
- */
37
- private drawThresholds;
38
- /**
39
- * Draw tick marks around the gauge
40
- */
41
- private drawTicks;
42
- /**
43
- * Draw the value display in the center
44
- */
45
- private drawValueDisplay;
46
- /**
47
- * Draw the dial/needle with animation.
48
- */
49
- private drawDial;
50
- /**
51
- * Create a path for the needle
52
- */
53
- private createNeedlePath;
54
- /**
55
- * Draw the chart label.
56
- */
57
- private drawLabel;
58
- /**
59
- * Scale a value to an angle for the gauge chart.
60
- */
61
- private scaleValueToAngle;
62
- private scaleValueToColorAngle;
63
- /**
64
- * Convert radians to degrees.
65
- */
66
- private radiansToDegrees;
67
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPGaugeChartWidgetViewComponent, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPGaugeChartWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
69
- }
@@ -1,7 +0,0 @@
1
- import { AXPWidgetConfig } from '@acorex/platform/layout/builder';
2
- export declare const AXPGaugeChartWidget: AXPWidgetConfig;
3
- declare module '@acorex/platform/layout/builder' {
4
- interface AXPWidgetTypesMap {
5
- gaugeChart: 'gauge-chart';
6
- }
7
- }
@@ -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,3 +0,0 @@
1
- export * from './gauge-chart-widget.component';
2
- export * from './gauge-chart-widget.config';
3
- export * from './gauge-chart.type';
@@ -1,3 +0,0 @@
1
- export * from './notification-widget.component';
2
- export * from './notification-widget.config';
3
- export * from './notification.type';
@@ -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>;
@@ -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,2 +0,0 @@
1
- export * from './sticky-note-widget.component';
2
- export * from './sticky-note-widget.config';
@@ -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,7 +0,0 @@
1
- import { AXPWidgetConfig } from '@acorex/platform/layout/builder';
2
- export declare const AXPStickyNoteWidget: AXPWidgetConfig;
3
- declare module '@acorex/platform/layout/builder' {
4
- interface AXPWidgetTypesMap {
5
- stickyNote: 'sticky-note';
6
- }
7
- }
@@ -1,3 +0,0 @@
1
- export * from './tasklist-widget.component';
2
- export * from './tasklist-widget.config';
3
- export * from './tasklist.type';
@@ -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,7 +0,0 @@
1
- import { AXPWidgetConfig } from '@acorex/platform/layout/builder';
2
- export declare const AXPTaskListWidget: AXPWidgetConfig;
3
- declare module '@acorex/platform/layout/builder' {
4
- interface AXPWidgetTypesMap {
5
- taskList: 'task-list';
6
- }
7
- }
@@ -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
- }
@@ -1,4 +0,0 @@
1
- export * from './weather-services';
2
- export * from './weather-widget.component';
3
- export * from './weather-widget.config';
4
- export * from './weather.module';
@@ -1,3 +0,0 @@
1
- export * from './weather-api.abstract';
2
- export * from './weather-api.mock.service';
3
- export * from './weather-api.service';
@@ -1,174 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Weather location information
5
- */
6
- export interface AXPWeatherLocation {
7
- /** City name */
8
- city: string;
9
- /** Country name */
10
- country: string;
11
- /** Formatted location display name */
12
- displayName: string;
13
- }
14
- /**
15
- * Weather current condition information
16
- */
17
- export interface AXPWeatherCondition {
18
- /** Condition text */
19
- condition: string;
20
- /** Condition code */
21
- conditionCode: number;
22
- /** Icon URL */
23
- iconUrl: string;
24
- /** Temperature in Celsius */
25
- tempC: number;
26
- /** Temperature in Fahrenheit */
27
- tempF: number;
28
- /** Feels like temperature in Celsius */
29
- feelsLikeC: number;
30
- /** Feels like temperature in Fahrenheit */
31
- feelsLikeF: number;
32
- /** Humidity percentage */
33
- humidity: number;
34
- /** Wind speed in km/h */
35
- windKph: number;
36
- /** Wind speed in mph */
37
- windMph: number;
38
- /** Wind direction */
39
- windDirection: string;
40
- /** UV index */
41
- uv: number;
42
- /** Last updated timestamp */
43
- lastUpdated: string;
44
- }
45
- /**
46
- * Weather forecast data for a single day
47
- */
48
- export interface AXPWeatherForecastDay {
49
- /** Date string */
50
- date: string;
51
- /** Day name (e.g., "Mon", "Tue") */
52
- day: string;
53
- /** Weather condition code */
54
- condition: string;
55
- /** Weather icon URL */
56
- iconUrl: string;
57
- /** Max temperature in Celsius */
58
- maxTempC: number;
59
- /** Max temperature in Fahrenheit */
60
- maxTempF: number;
61
- /** Min temperature in Celsius */
62
- minTempC: number;
63
- /** Min temperature in Fahrenheit */
64
- minTempF: number;
65
- }
66
- /**
67
- * Complete weather data response
68
- */
69
- export interface AXPWeatherData {
70
- /** Location information */
71
- location: AXPWeatherLocation;
72
- /** Current weather data */
73
- current: AXPWeatherCondition;
74
- /** Forecast data */
75
- forecast: AXPWeatherForecastDay[];
76
- }
77
- /**
78
- * Weather API request options
79
- */
80
- export interface AXPWeatherRequestOptions {
81
- /** Temperature unit */
82
- tempUnit?: string;
83
- /** Location query */
84
- location?: string;
85
- /** Use mock data */
86
- useMockData?: boolean;
87
- }
88
- /**
89
- * Weather UI condition display info
90
- */
91
- export interface AXPWeatherConditionDisplay {
92
- /** Condition unique ID */
93
- id: string;
94
- /** Display name */
95
- name: string;
96
- /** Icon class (Font Awesome) */
97
- icon: string;
98
- /** Associated color */
99
- color: string;
100
- }
101
- /**
102
- * Abstract Weather API Service
103
- * Base class that defines the interface and common functionality
104
- * for weather data providers
105
- */
106
- export declare abstract class AXPWeatherApiAbstract {
107
- /** Weather condition definitions mapping */
108
- protected weatherConditions: Record<string, AXPWeatherConditionDisplay>;
109
- /** Day of week mapping */
110
- protected readonly dayNames: string[];
111
- /**
112
- * Get weather condition info by ID
113
- * @param id Condition ID
114
- * @returns Weather condition info or default if not found
115
- */
116
- getCondition(id: string): AXPWeatherConditionDisplay;
117
- /**
118
- * Get current weather data for given location
119
- * @param options Weather request options
120
- * @returns Observable with weather data
121
- */
122
- abstract getWeather(options: AXPWeatherRequestOptions): Observable<AXPWeatherData>;
123
- /**
124
- * Get weather forecast for a location
125
- * @param options Weather request options with days
126
- * @returns Observable of weather data with forecast
127
- */
128
- abstract getForecast(options: AXPWeatherRequestOptions & {
129
- days?: number;
130
- }): Observable<AXPWeatherData>;
131
- /**
132
- * Parse location string into city and display components
133
- * @param location Location query string
134
- * @returns Parsed location parts
135
- */
136
- protected parseLocation(location: string): {
137
- city: string;
138
- country: string;
139
- display: string;
140
- };
141
- /**
142
- * Format location name for display
143
- * @param locationParts Parsed location parts
144
- * @returns Formatted location name
145
- */
146
- protected formatLocationName(locationParts: {
147
- city: string;
148
- country: string;
149
- display: string;
150
- }): string;
151
- /**
152
- * Map API condition text to our internal condition IDs
153
- * @param conditionText Condition text from API
154
- * @returns Internal condition ID
155
- */
156
- protected mapApiConditionToId(conditionText: string): string;
157
- /**
158
- * Generate random integer between min and max (inclusive)
159
- * Helper method for implementations
160
- * @param min Minimum value
161
- * @param max Maximum value
162
- * @returns Random integer
163
- */
164
- protected getRandomInt(min: number, max: number): number;
165
- /**
166
- * Set the API key for the weather service
167
- * This is only used by the real API implementation,
168
- * but is defined in the abstract class for consistency
169
- * @param key The API key
170
- */
171
- abstract setApiKey(key: string): void;
172
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPWeatherApiAbstract, never>;
173
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPWeatherApiAbstract>;
174
- }
@@ -1,2 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const AXP_WEATHER_API_KEY: InjectionToken<string>;