ngx-core-components 0.3.6 → 0.3.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.
- package/charts/combo-chart/combo-chart.component.d.ts +58 -0
- package/charts/public-api.d.ts +3 -0
- package/charts/scatter-plot/scatter-plot.component.d.ts +66 -0
- package/fesm2022/ngx-core-components-charts.mjs +821 -1
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +2450 -269
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +545 -63
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-navigation.mjs +122 -1
- package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +1043 -445
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +5 -5
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/grid/data-grid/data-grid.component.d.ts +191 -6
- package/grid/pivot-grid/pivot-grid.component.d.ts +32 -0
- package/grid/public-api.d.ts +4 -2
- package/inputs/date-range-picker/date-range-picker.component.d.ts +41 -5
- package/inputs/form-builder/form-builder.component.d.ts +36 -0
- package/inputs/public-api.d.ts +3 -0
- package/inputs/signature-pad/signature-pad.component.d.ts +24 -0
- package/navigation/context-menu/context-menu.component.d.ts +23 -0
- package/navigation/public-api.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +13 -8
- package/views/json-viewer/json-viewer.component.d.ts +18 -0
- package/views/kanban/kanban.component.d.ts +38 -18
- package/views/kanban/models.d.ts +21 -0
- package/views/org-chart/org-chart.component.d.ts +18 -0
- package/views/public-api.d.ts +5 -2
- package/views/scheduler/models.d.ts +12 -1
- package/views/scheduler/scheduler.component.d.ts +58 -10
|
@@ -4,4 +4,6 @@ export { MenuComponent } from './menu/menu.component';
|
|
|
4
4
|
export type { MenuItem } from './menu/menu.component';
|
|
5
5
|
export { CommandPaletteComponent } from './command-palette/command-palette.component';
|
|
6
6
|
export type { CommandItem } from './command-palette/command-palette.component';
|
|
7
|
+
export { ContextMenuComponent } from './context-menu/context-menu.component';
|
|
8
|
+
export type { ContextMenuItem } from './context-menu/context-menu.component';
|
|
7
9
|
export { BackToTopComponent } from './back-to-top/back-to-top.component';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -26,28 +26,33 @@ export { FunnelChartComponent } from 'ngx-core-components/charts';
|
|
|
26
26
|
export type { FunnelItem } from 'ngx-core-components/charts';
|
|
27
27
|
export type { ChartSeries, ChartDataPoint } from 'ngx-core-components/charts';
|
|
28
28
|
export { CHART_COLORS } from 'ngx-core-components/charts';
|
|
29
|
+
export { ComboChartComponent } from 'ngx-core-components/charts';
|
|
30
|
+
export { ScatterPlotComponent } from 'ngx-core-components/charts';
|
|
31
|
+
export type { ScatterPoint } from 'ngx-core-components/charts';
|
|
29
32
|
export { GanttChartComponent } from 'ngx-core-components/charts';
|
|
30
33
|
export type { FlatRow } from 'ngx-core-components/charts';
|
|
31
34
|
export { GanttScaleService } from 'ngx-core-components/charts';
|
|
32
35
|
export type { GanttTask, GanttDependency, GanttConfig, GanttColumnDef, GanttTaskChangeEvent, GanttTaskClickEvent, GanttDependencyClickEvent, GanttScrollEvent, GanttGroup, GanttBaselineItem, GanttDragEvent, GanttLinkDragEvent, GanttLineClickEvent, GanttBarClickEvent, GanttSelectedEvent, GanttTableDragStartedEvent, GanttTableDragEndedEvent, GanttTableDragDroppedEvent, GanttLoadOnScrollEvent, GanttVirtualScrolledIndexChangeEvent, GanttViewChangeEvent, GanttExpandChangeEvent, GanttTooltipContext, } from 'ngx-core-components/charts';
|
|
33
36
|
export { ZoomLevel, DependencyType } from 'ngx-core-components/charts';
|
|
34
|
-
export { DataGridComponent } from 'ngx-core-components/grid';
|
|
35
|
-
export type { GridColumnDef, GridFilterState, GridGroupState, GridGroupResult, GridSortState, GridPageChangeEvent, GridSortChangeEvent, GridFilterChangeEvent, GridGroupChangeEvent, GridDataStateChangeEvent, GridRowClickEvent, GridRowUpdateEvent, GridHeaderTemplateContext, GridCellTemplateContext, GridRowTemplateContext, GridDetailTemplateContext, } from 'ngx-core-components/grid';
|
|
37
|
+
export { DataGridComponent, PivotGridComponent, NgxGridCellTemplateDirective, NgxGridEditCellTemplateDirective, NgxGridHeaderTemplateDirective, NgxGridFooterTemplateDirective, } from 'ngx-core-components/grid';
|
|
38
|
+
export type { GridColumnDef, GridFilterState, GridGroupState, GridGroupResult, GridSortState, GridPageChangeEvent, GridSortChangeEvent, GridFilterChangeEvent, GridGroupChangeEvent, GridDataStateChangeEvent, GridRowClickEvent, GridRowUpdateEvent, GridHeaderTemplateContext, GridCellTemplateContext, GridRowTemplateContext, GridDetailTemplateContext, GridFooterTemplateContext, PivotValueDef, } from 'ngx-core-components/grid';
|
|
36
39
|
export { TreeViewComponent } from 'ngx-core-components/views';
|
|
37
40
|
export type { TreeNode, TreeNodeEvent } from 'ngx-core-components/views';
|
|
38
41
|
export { ListViewComponent } from 'ngx-core-components/views';
|
|
39
42
|
export type { ListViewItemClickEvent, ListViewSelectionEvent, ListViewPageChangeEvent, } from 'ngx-core-components/views';
|
|
40
43
|
export { KanbanComponent } from 'ngx-core-components/views';
|
|
41
|
-
export type { KanbanCard, KanbanColumn } from 'ngx-core-components/views';
|
|
44
|
+
export type { KanbanCard, KanbanColumn, KanbanSwimlane, KanbanCardMoveEvent, KanbanMoveRejectedEvent, } from 'ngx-core-components/views';
|
|
42
45
|
export { TimelineComponent } from 'ngx-core-components/views';
|
|
43
46
|
export type { TimelineItem } from 'ngx-core-components/views';
|
|
44
47
|
export { SchedulerComponent } from 'ngx-core-components/views';
|
|
45
|
-
export type { SchedulerEvent, SchedulerSlotClickEvent, SchedulerEventChangeEvent } from 'ngx-core-components/views';
|
|
48
|
+
export type { SchedulerEvent, SchedulerRecurrence, SchedulerSlotClickEvent, SchedulerEventChangeEvent } from 'ngx-core-components/views';
|
|
46
49
|
export { VirtualListComponent } from 'ngx-core-components/views';
|
|
47
50
|
export type { VirtualListItem, VirtualListItemClickEvent } from 'ngx-core-components/views';
|
|
48
51
|
export { ImageCompareComponent } from 'ngx-core-components/views';
|
|
49
52
|
export { KeyValueListComponent } from 'ngx-core-components/views';
|
|
50
53
|
export type { KeyValueItem } from 'ngx-core-components/views';
|
|
54
|
+
export { OrgChartComponent, JsonViewerComponent } from 'ngx-core-components/views';
|
|
55
|
+
export type { OrgChartNode } from 'ngx-core-components/views';
|
|
51
56
|
export { DialogService } from 'ngx-core-components/dialog';
|
|
52
57
|
export type { DialogRef, DialogConfig } from 'ngx-core-components/dialog';
|
|
53
58
|
export { DialogContainerComponent } from 'ngx-core-components/dialog';
|
|
@@ -57,10 +62,10 @@ export { CardComponent, TabStripComponent, TabComponent, AccordionComponent, Ste
|
|
|
57
62
|
export type { CardVariant, AccordionItem, StepperStep, DashboardItem, DashboardLayoutChangeEvent, DashboardPanelActionEvent, } from 'ngx-core-components/layout';
|
|
58
63
|
export { BadgeComponent, ProgressBarComponent, SkeletonComponent, NotificationService, NotificationContainerComponent, AvatarComponent, AvatarGroupComponent, StatCardComponent, CountdownComponent, EmptyStateComponent, } from 'ngx-core-components/feedback';
|
|
59
64
|
export type { BadgeVariant, BadgePosition, ProgressVariant, SkeletonShape, NotificationOptions, NotificationType, NotificationPosition, AvatarSize, AvatarShape, AvatarStatus, AvatarItem, StatCardVariant, CountdownVariant, } from 'ngx-core-components/feedback';
|
|
60
|
-
export { BreadcrumbComponent, MenuComponent, CommandPaletteComponent, BackToTopComponent, } from 'ngx-core-components/navigation';
|
|
61
|
-
export type { BreadcrumbItem, MenuItem, CommandItem, } from 'ngx-core-components/navigation';
|
|
62
|
-
export { SliderComponent, SwitchComponent, RatingComponent, NumericTextBoxComponent, TextareaComponent, ColorPickerComponent, TimePickerComponent, DateRangePickerComponent, FileUploadComponent, TagInputComponent, FilePreviewComponent, SegmentedControlComponent, } from 'ngx-core-components/inputs';
|
|
63
|
-
export type { UploadFileItem, PreviewFileItem, SegmentedOption } from 'ngx-core-components/inputs';
|
|
65
|
+
export { BreadcrumbComponent, MenuComponent, CommandPaletteComponent, ContextMenuComponent, BackToTopComponent, } from 'ngx-core-components/navigation';
|
|
66
|
+
export type { BreadcrumbItem, MenuItem, CommandItem, ContextMenuItem, } from 'ngx-core-components/navigation';
|
|
67
|
+
export { SliderComponent, SwitchComponent, RatingComponent, NumericTextBoxComponent, TextareaComponent, ColorPickerComponent, TimePickerComponent, DateRangePickerComponent, FileUploadComponent, TagInputComponent, FilePreviewComponent, SegmentedControlComponent, FormBuilderComponent, SignaturePadComponent, } from 'ngx-core-components/inputs';
|
|
68
|
+
export type { UploadFileItem, PreviewFileItem, SegmentedOption, FormBuilderField, FormBuilderOption, } from 'ngx-core-components/inputs';
|
|
64
69
|
export { QrCodeComponent, BarcodeComponent } from 'ngx-core-components/barcodes';
|
|
65
70
|
export { AIChatComponent } from 'ngx-core-components/ai';
|
|
66
71
|
export type { AIMessage, AgentStep, AICard, AICardAction, QuickReply, } from 'ngx-core-components/ai';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class JsonViewerComponent {
|
|
3
|
+
data: import("@angular/core").InputSignal<unknown>;
|
|
4
|
+
rootName: import("@angular/core").InputSignal<string>;
|
|
5
|
+
expandedDepth: import("@angular/core").InputSignal<number>;
|
|
6
|
+
private toggled;
|
|
7
|
+
private expandedDefaults;
|
|
8
|
+
toggle(path: string): void;
|
|
9
|
+
isExpanded(path: string, depth: number): boolean;
|
|
10
|
+
isExpandable(value: unknown): boolean;
|
|
11
|
+
isString(value: unknown): boolean;
|
|
12
|
+
objectKeys(value: unknown): string[];
|
|
13
|
+
childValue(value: unknown, key: string): unknown;
|
|
14
|
+
summary(value: unknown): string;
|
|
15
|
+
formatPrimitive(value: unknown): string;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JsonViewerComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JsonViewerComponent, "ngx-json-viewer", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "rootName": { "alias": "rootName"; "required": false; "isSignal": true; }; "expandedDepth": { "alias": "expandedDepth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -1,41 +1,61 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { KanbanCard, KanbanColumn } from './models';
|
|
1
|
+
import { ElementRef, QueryList } from '@angular/core';
|
|
2
|
+
import { KanbanCard, KanbanCardMoveEvent, KanbanColumn, KanbanMoveRejectedEvent, KanbanSwimlane } from './models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
interface SwimlaneSection {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
isDefault: boolean;
|
|
9
|
+
}
|
|
4
10
|
export declare class KanbanComponent {
|
|
5
11
|
columns: import("@angular/core").InputSignal<KanbanColumn[]>;
|
|
6
12
|
cards: import("@angular/core").InputSignal<KanbanCard[]>;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
swimlanes: import("@angular/core").InputSignal<KanbanSwimlane[]>;
|
|
14
|
+
optimisticUpdates: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
dragHandleOnly: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
allowSameColumnReorder: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
cardMoved: import("@angular/core").OutputEmitterRef<KanbanCardMoveEvent>;
|
|
18
|
+
cardMoveRejected: import("@angular/core").OutputEmitterRef<KanbanMoveRejectedEvent>;
|
|
12
19
|
cardClicked: import("@angular/core").OutputEmitterRef<KanbanCard>;
|
|
13
20
|
cardAdded: import("@angular/core").OutputEmitterRef<{
|
|
14
21
|
columnId: string;
|
|
15
22
|
title: string;
|
|
23
|
+
swimlaneId?: string;
|
|
24
|
+
card: KanbanCard;
|
|
16
25
|
}>;
|
|
17
26
|
cardDeleted: import("@angular/core").OutputEmitterRef<string>;
|
|
18
27
|
cardsState: import("@angular/core").WritableSignal<KanbanCard[]>;
|
|
19
28
|
columnAddStates: import("@angular/core").WritableSignal<Record<string, boolean>>;
|
|
20
29
|
newCardTitles: import("@angular/core").WritableSignal<Record<string, string>>;
|
|
21
30
|
activeDraggingCardId: import("@angular/core").WritableSignal<string | null>;
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
activeDropTarget: import("@angular/core").WritableSignal<string | null>;
|
|
32
|
+
titleInputs?: QueryList<ElementRef<HTMLInputElement>>;
|
|
33
|
+
swimlaneSections: import("@angular/core").Signal<SwimlaneSection[]>;
|
|
24
34
|
constructor();
|
|
25
|
-
|
|
35
|
+
dropKey(columnId: string, laneId: string): string;
|
|
36
|
+
getCardsForColumn(columnId: string, laneId?: string): KanbanCard[];
|
|
37
|
+
isWipReached(columnId: string, laneId?: string): boolean;
|
|
26
38
|
onDragStart(event: DragEvent, card: KanbanCard): void;
|
|
27
39
|
onDragEnd(): void;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
onDragLeave(
|
|
31
|
-
|
|
40
|
+
onColumnDragOver(event: DragEvent, columnId: string, laneId: string): void;
|
|
41
|
+
onCardDragOver(event: DragEvent): void;
|
|
42
|
+
onDragLeave(columnId: string, laneId: string): void;
|
|
43
|
+
onColumnDrop(event: DragEvent, targetColumnId: string, targetLaneId: string): void;
|
|
44
|
+
onCardDrop(event: DragEvent, targetColumnId: string, targetLaneId: string, targetIndex: number): void;
|
|
32
45
|
onCardClick(card: KanbanCard): void;
|
|
33
|
-
toggleAddInput(columnId: string): void;
|
|
34
|
-
updateNewTitle(columnId: string, value: string): void;
|
|
35
|
-
addCard(columnId: string): void;
|
|
46
|
+
toggleAddInput(columnId: string, laneId?: string): void;
|
|
47
|
+
updateNewTitle(columnId: string, laneId: string, value: string): void;
|
|
48
|
+
addCard(columnId: string, laneId?: string): void;
|
|
36
49
|
deleteCard(event: MouseEvent, cardId: string): void;
|
|
37
50
|
isOverdue(dueDate: Date): boolean;
|
|
38
51
|
formatDueDate(date: Date): string;
|
|
52
|
+
private moveCard;
|
|
53
|
+
private reorderCards;
|
|
54
|
+
private draggedCardId;
|
|
55
|
+
private cardLaneId;
|
|
56
|
+
private focusAddInput;
|
|
57
|
+
private findLastIndex;
|
|
39
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<KanbanComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KanbanComponent, "ngx-kanban", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "cards": { "alias": "cards"; "required": false; "isSignal": true; }; }, { "cardMoved": "cardMoved"; "cardClicked": "cardClicked"; "cardAdded": "cardAdded"; "cardDeleted": "cardDeleted"; }, never, never, true, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KanbanComponent, "ngx-kanban", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "cards": { "alias": "cards"; "required": false; "isSignal": true; }; "swimlanes": { "alias": "swimlanes"; "required": false; "isSignal": true; }; "optimisticUpdates": { "alias": "optimisticUpdates"; "required": false; "isSignal": true; }; "dragHandleOnly": { "alias": "dragHandleOnly"; "required": false; "isSignal": true; }; "allowSameColumnReorder": { "alias": "allowSameColumnReorder"; "required": false; "isSignal": true; }; }, { "cardMoved": "cardMoved"; "cardMoveRejected": "cardMoveRejected"; "cardClicked": "cardClicked"; "cardAdded": "cardAdded"; "cardDeleted": "cardDeleted"; }, never, never, true, never>;
|
|
41
60
|
}
|
|
61
|
+
export {};
|
package/views/kanban/models.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export interface KanbanCard {
|
|
|
3
3
|
title: string;
|
|
4
4
|
description?: string;
|
|
5
5
|
columnId: string;
|
|
6
|
+
swimlaneId?: string;
|
|
6
7
|
priority?: 'low' | 'medium' | 'high';
|
|
7
8
|
tags?: string[];
|
|
8
9
|
assignee?: {
|
|
@@ -16,4 +17,24 @@ export interface KanbanColumn {
|
|
|
16
17
|
id: string;
|
|
17
18
|
title: string;
|
|
18
19
|
color?: string;
|
|
20
|
+
wipLimit?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface KanbanSwimlane {
|
|
23
|
+
id: string;
|
|
24
|
+
title: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface KanbanCardMoveEvent {
|
|
28
|
+
cardId: string;
|
|
29
|
+
fromColumnId: string;
|
|
30
|
+
toColumnId: string;
|
|
31
|
+
fromSwimlaneId?: string;
|
|
32
|
+
toSwimlaneId?: string;
|
|
33
|
+
fromIndex: number;
|
|
34
|
+
toIndex: number;
|
|
35
|
+
}
|
|
36
|
+
export interface KanbanMoveRejectedEvent {
|
|
37
|
+
cardId: string;
|
|
38
|
+
toColumnId: string;
|
|
39
|
+
reason: 'wip-limit';
|
|
19
40
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface OrgChartNode {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
avatarUrl?: string;
|
|
8
|
+
meta?: string;
|
|
9
|
+
children?: OrgChartNode[];
|
|
10
|
+
}
|
|
11
|
+
export declare class OrgChartComponent {
|
|
12
|
+
root: import("@angular/core").InputSignal<OrgChartNode | null>;
|
|
13
|
+
compact: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
nodeSelected: import("@angular/core").OutputEmitterRef<OrgChartNode>;
|
|
15
|
+
initials(label: string): string;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrgChartComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrgChartComponent, "ngx-org-chart", never, { "root": { "alias": "root"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; }, { "nodeSelected": "nodeSelected"; }, never, never, true, never>;
|
|
18
|
+
}
|
package/views/public-api.d.ts
CHANGED
|
@@ -3,13 +3,16 @@ export type { TreeNode, TreeNodeEvent } from './tree-view/tree-view.component';
|
|
|
3
3
|
export { ListViewComponent } from './list-view/list-view.component';
|
|
4
4
|
export type { ListViewItemClickEvent, ListViewSelectionEvent, ListViewPageChangeEvent, } from './list-view/list-view.component';
|
|
5
5
|
export { KanbanComponent } from './kanban/kanban.component';
|
|
6
|
-
export type { KanbanCard, KanbanColumn } from './kanban/models';
|
|
6
|
+
export type { KanbanCard, KanbanColumn, KanbanSwimlane, KanbanCardMoveEvent, KanbanMoveRejectedEvent, } from './kanban/models';
|
|
7
7
|
export { TimelineComponent } from './timeline/timeline.component';
|
|
8
8
|
export type { TimelineItem } from './timeline/timeline.component';
|
|
9
9
|
export { SchedulerComponent } from './scheduler/scheduler.component';
|
|
10
|
-
export type { SchedulerEvent, SchedulerSlotClickEvent, SchedulerEventChangeEvent } from './scheduler/models';
|
|
10
|
+
export type { SchedulerEvent, SchedulerRecurrence, SchedulerSlotClickEvent, SchedulerEventChangeEvent, } from './scheduler/models';
|
|
11
11
|
export { VirtualListComponent } from './virtual-list/virtual-list.component';
|
|
12
12
|
export type { VirtualListItem, VirtualListItemClickEvent } from './virtual-list/virtual-list.component';
|
|
13
13
|
export { ImageCompareComponent } from './image-compare/image-compare.component';
|
|
14
14
|
export { KeyValueListComponent } from './key-value-list/key-value-list.component';
|
|
15
15
|
export type { KeyValueItem } from './key-value-list/key-value-list.component';
|
|
16
|
+
export { OrgChartComponent } from './org-chart/org-chart.component';
|
|
17
|
+
export type { OrgChartNode } from './org-chart/org-chart.component';
|
|
18
|
+
export { JsonViewerComponent } from './json-viewer/json-viewer.component';
|
|
@@ -4,15 +4,26 @@ export interface SchedulerEvent {
|
|
|
4
4
|
description?: string;
|
|
5
5
|
start: Date;
|
|
6
6
|
end: Date;
|
|
7
|
-
category?: 'meeting' | 'task' | 'milestone' | 'personal' | 'important';
|
|
7
|
+
category?: 'meeting' | 'task' | 'milestone' | 'personal' | 'important' | 'warning';
|
|
8
8
|
color?: string;
|
|
9
|
+
recurrence?: SchedulerRecurrence;
|
|
10
|
+
}
|
|
11
|
+
export interface SchedulerRecurrence {
|
|
12
|
+
frequency: 'daily' | 'weekly' | 'monthly';
|
|
13
|
+
interval?: number;
|
|
14
|
+
count?: number;
|
|
15
|
+
until?: Date;
|
|
16
|
+
daysOfWeek?: number[];
|
|
9
17
|
}
|
|
10
18
|
export interface SchedulerSlotClickEvent {
|
|
11
19
|
date: Date;
|
|
12
20
|
hour: number;
|
|
21
|
+
minute?: number;
|
|
13
22
|
}
|
|
14
23
|
export interface SchedulerEventChangeEvent {
|
|
15
24
|
event: SchedulerEvent;
|
|
16
25
|
start: Date;
|
|
17
26
|
end: Date;
|
|
27
|
+
occurrenceStart?: Date;
|
|
28
|
+
occurrenceEnd?: Date;
|
|
18
29
|
}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
import { SchedulerEvent,
|
|
1
|
+
import { SchedulerEvent, SchedulerEventChangeEvent, SchedulerSlotClickEvent } from './models';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
interface TimeSlot {
|
|
4
|
+
hour: number;
|
|
5
|
+
minute: number;
|
|
6
|
+
key: string;
|
|
7
|
+
}
|
|
8
|
+
interface ResolvedSchedulerEvent {
|
|
9
|
+
id: string;
|
|
10
|
+
event: SchedulerEvent;
|
|
11
|
+
start: Date;
|
|
12
|
+
end: Date;
|
|
13
|
+
}
|
|
14
|
+
interface SchedulerEventLayout extends ResolvedSchedulerEvent {
|
|
15
|
+
top: number;
|
|
16
|
+
height: number;
|
|
17
|
+
left: number;
|
|
18
|
+
width: number;
|
|
19
|
+
}
|
|
3
20
|
export declare class SchedulerComponent {
|
|
21
|
+
readonly hourHeight = 60;
|
|
4
22
|
viewModes: ('day' | 'week' | 'month')[];
|
|
5
23
|
events: import("@angular/core").InputSignal<SchedulerEvent[]>;
|
|
6
24
|
currentDate: import("@angular/core").InputSignal<Date>;
|
|
@@ -8,29 +26,59 @@ export declare class SchedulerComponent {
|
|
|
8
26
|
theme: import("@angular/core").InputSignal<"light" | "dark">;
|
|
9
27
|
businessHoursStart: import("@angular/core").InputSignal<number>;
|
|
10
28
|
businessHoursEnd: import("@angular/core").InputSignal<number>;
|
|
29
|
+
weekStartsOn: import("@angular/core").InputSignal<0 | 2 | 1 | 3 | 4 | 5 | 6>;
|
|
30
|
+
timeZone: import("@angular/core").InputSignal<string | undefined>;
|
|
31
|
+
slotMinutes: import("@angular/core").InputSignal<number>;
|
|
11
32
|
eventClick: import("@angular/core").OutputEmitterRef<SchedulerEvent>;
|
|
12
33
|
slotClick: import("@angular/core").OutputEmitterRef<SchedulerSlotClickEvent>;
|
|
13
34
|
eventTimeChange: import("@angular/core").OutputEmitterRef<SchedulerEventChangeEvent>;
|
|
14
35
|
activeDate: import("@angular/core").WritableSignal<Date>;
|
|
15
36
|
activeMode: import("@angular/core").WritableSignal<"month" | "day" | "week">;
|
|
37
|
+
private activeDragEvent;
|
|
38
|
+
private resizeState;
|
|
16
39
|
constructor();
|
|
17
40
|
hours: import("@angular/core").Signal<number[]>;
|
|
41
|
+
timeSlots: import("@angular/core").Signal<TimeSlot[]>;
|
|
18
42
|
activeColumns: import("@angular/core").Signal<Date[]>;
|
|
43
|
+
weekDayLabels: import("@angular/core").Signal<string[]>;
|
|
19
44
|
periodLabel: import("@angular/core").Signal<string>;
|
|
45
|
+
slotHeight(): number;
|
|
20
46
|
navigate(direction: number): void;
|
|
21
47
|
goToToday(): void;
|
|
22
|
-
getEventsForDate(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
48
|
+
getEventsForDate(date: Date): ResolvedSchedulerEvent[];
|
|
49
|
+
getEventLayoutsForDate(date: Date): SchedulerEventLayout[];
|
|
50
|
+
clickEvent(event: SchedulerEvent): void;
|
|
51
|
+
clickSlot(date: Date, hour: number, minute?: number): void;
|
|
52
|
+
onSlotDragOver(event: DragEvent): void;
|
|
53
|
+
onEventDragStart(event: DragEvent, layout: SchedulerEventLayout): void;
|
|
54
|
+
onEventDragEnd(): void;
|
|
55
|
+
onSlotDrop(event: DragEvent, date: Date, hour: number, minute?: number): void;
|
|
56
|
+
startResize(event: PointerEvent, layout: SchedulerEventLayout, edge: 'start' | 'end'): void;
|
|
57
|
+
finishResize(event: PointerEvent): void;
|
|
58
|
+
cancelResize(): void;
|
|
59
|
+
isToday(date: Date): boolean;
|
|
60
|
+
isOtherMonth(date: Date): boolean;
|
|
61
|
+
formatHour(hour: number): string;
|
|
62
|
+
formatDate(date: Date, options: Intl.DateTimeFormatOptions): string;
|
|
63
|
+
formatEventTime(start: Date, end: Date): string;
|
|
64
|
+
eventTitle(layout: SchedulerEventLayout): string;
|
|
65
|
+
dateKey(date: Date): string;
|
|
66
|
+
private layoutOverlapGroup;
|
|
67
|
+
private resolveEventForDate;
|
|
68
|
+
private resolveRecurringOccurrence;
|
|
69
|
+
private getEventTop;
|
|
70
|
+
private getEventHeight;
|
|
30
71
|
private getStartOfWeek;
|
|
31
72
|
private getWeekDays;
|
|
32
73
|
private getMonthDays;
|
|
33
74
|
private isSameDate;
|
|
75
|
+
private startOfDay;
|
|
76
|
+
private endOfDay;
|
|
77
|
+
private rangesOverlap;
|
|
78
|
+
private normalizedStartHour;
|
|
79
|
+
private normalizedEndHour;
|
|
80
|
+
private normalizedSlotMinutes;
|
|
34
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<SchedulerComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SchedulerComponent, "ngx-scheduler", never, { "events": { "alias": "events"; "required": false; "isSignal": true; }; "currentDate": { "alias": "currentDate"; "required": false; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "businessHoursStart": { "alias": "businessHoursStart"; "required": false; "isSignal": true; }; "businessHoursEnd": { "alias": "businessHoursEnd"; "required": false; "isSignal": true; }; }, { "eventClick": "eventClick"; "slotClick": "slotClick"; "eventTimeChange": "eventTimeChange"; }, never, never, true, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SchedulerComponent, "ngx-scheduler", never, { "events": { "alias": "events"; "required": false; "isSignal": true; }; "currentDate": { "alias": "currentDate"; "required": false; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "businessHoursStart": { "alias": "businessHoursStart"; "required": false; "isSignal": true; }; "businessHoursEnd": { "alias": "businessHoursEnd"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "timeZone": { "alias": "timeZone"; "required": false; "isSignal": true; }; "slotMinutes": { "alias": "slotMinutes"; "required": false; "isSignal": true; }; }, { "eventClick": "eventClick"; "slotClick": "slotClick"; "eventTimeChange": "eventTimeChange"; }, never, never, true, never>;
|
|
36
83
|
}
|
|
84
|
+
export {};
|