ngx-core-components 0.0.3

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 (31) hide show
  1. package/README.md +158 -0
  2. package/fesm2022/ngx-core-components.mjs +3588 -0
  3. package/fesm2022/ngx-core-components.mjs.map +1 -0
  4. package/index.d.ts +5 -0
  5. package/lib/charts/bar-chart/bar-chart.component.d.ts +44 -0
  6. package/lib/charts/line-chart/line-chart.component.d.ts +45 -0
  7. package/lib/charts/pie-chart/pie-chart.component.d.ts +53 -0
  8. package/lib/charts/shared/chart-utils.d.ts +19 -0
  9. package/lib/charts/sparkline/sparkline.component.d.ts +26 -0
  10. package/lib/data-grid/data-grid.component.d.ts +61 -0
  11. package/lib/gantt-chart/gantt-chart.component.d.ts +81 -0
  12. package/lib/gantt-chart/models/gantt-config.model.d.ts +25 -0
  13. package/lib/gantt-chart/models/gantt-dependency.model.d.ts +13 -0
  14. package/lib/gantt-chart/models/gantt-event.model.d.ts +21 -0
  15. package/lib/gantt-chart/models/gantt-task.model.d.ts +14 -0
  16. package/lib/gantt-chart/models/index.d.ts +4 -0
  17. package/lib/gantt-chart/services/gantt-keyboard.service.d.ts +12 -0
  18. package/lib/gantt-chart/services/gantt-layout.service.d.ts +14 -0
  19. package/lib/gantt-chart/services/gantt-scale.service.d.ts +10 -0
  20. package/lib/gantt-chart/utils/date-utils.d.ts +18 -0
  21. package/lib/gantt-chart/utils/svg-utils.d.ts +8 -0
  22. package/lib/inputs/date-picker/date-picker.component.d.ts +35 -0
  23. package/lib/inputs/dropdown/dropdown.component.d.ts +30 -0
  24. package/lib/inputs/multi-select/multi-select.component.d.ts +32 -0
  25. package/lib/inputs/textbox/textbox.component.d.ts +19 -0
  26. package/lib/list-view/list-view.component.d.ts +29 -0
  27. package/lib/tooltip/popover.component.d.ts +12 -0
  28. package/lib/tooltip/tooltip.directive.d.ts +15 -0
  29. package/lib/tree-view/tree-view.component.d.ts +40 -0
  30. package/package.json +46 -0
  31. package/public-api.d.ts +25 -0
@@ -0,0 +1,29 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface ListViewItemClickEvent<T = unknown> {
4
+ item: T;
5
+ index: number;
6
+ }
7
+ export interface ListViewSelectionEvent<T = unknown> {
8
+ selectedItems: T[];
9
+ }
10
+ export declare class ListViewComponent<T = unknown> {
11
+ items: import("@angular/core").InputSignal<T[]>;
12
+ selectable: import("@angular/core").InputSignal<boolean>;
13
+ multiselect: import("@angular/core").InputSignal<boolean>;
14
+ loading: import("@angular/core").InputSignal<boolean>;
15
+ labelField: import("@angular/core").InputSignal<string>;
16
+ itemClick: import("@angular/core").OutputEmitterRef<ListViewItemClickEvent<T>>;
17
+ selectionChange: import("@angular/core").OutputEmitterRef<ListViewSelectionEvent<T>>;
18
+ itemTemplate?: TemplateRef<{
19
+ $implicit: T;
20
+ index: number;
21
+ }>;
22
+ selectedItems: import("@angular/core").WritableSignal<Set<T>>;
23
+ isSelected(item: T): boolean;
24
+ onItemClick(item: T, index: number): void;
25
+ getLabel(item: T): string;
26
+ trackFn(item: T, index: number): string;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListViewComponent<any>, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListViewComponent<any>, "ngx-list-view", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "multiselect": { "alias": "multiselect"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "labelField": { "alias": "labelField"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; "selectionChange": "selectionChange"; }, ["itemTemplate"], ["[listHeader]", "[listFooter]"], true, never>;
29
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class PopoverComponent {
3
+ title: import("@angular/core").InputSignal<string>;
4
+ position: import("@angular/core").InputSignal<"left" | "right" | "top" | "bottom">;
5
+ isOpen: import("@angular/core").WritableSignal<boolean>;
6
+ toggle(): void;
7
+ close(): void;
8
+ private el;
9
+ onDocClick(e: MouseEvent): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopoverComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "ngx-popover", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, ["[popoverTrigger]", "[popoverBody]"], true, never>;
12
+ }
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
3
+ export declare class TooltipDirective {
4
+ ngxTooltip: import("@angular/core").InputSignal<string>;
5
+ tooltipPosition: import("@angular/core").InputSignal<TooltipPosition>;
6
+ private el;
7
+ private renderer;
8
+ private tooltipEl;
9
+ onMouseEnter(): void;
10
+ onMouseLeave(): void;
11
+ private showTooltip;
12
+ private hideTooltip;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[ngxTooltip]", never, { "ngxTooltip": { "alias": "ngxTooltip"; "required": false; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
+ }
@@ -0,0 +1,40 @@
1
+ import * as i0 from "@angular/core";
2
+ export interface TreeNode {
3
+ id: string;
4
+ label: string;
5
+ icon?: string;
6
+ children?: TreeNode[];
7
+ hasChildren?: boolean;
8
+ data?: unknown;
9
+ }
10
+ export interface TreeNodeEvent {
11
+ node: TreeNode;
12
+ }
13
+ export declare class TreeViewComponent {
14
+ nodes: import("@angular/core").InputSignal<TreeNode[]>;
15
+ selectable: import("@angular/core").InputSignal<boolean>;
16
+ checkable: import("@angular/core").InputSignal<boolean>;
17
+ selectedId: import("@angular/core").InputSignal<string | null>;
18
+ expandedIds: import("@angular/core").InputSignal<string[]>;
19
+ nodeSelect: import("@angular/core").OutputEmitterRef<TreeNodeEvent>;
20
+ nodeExpand: import("@angular/core").OutputEmitterRef<TreeNodeEvent>;
21
+ nodeCollapse: import("@angular/core").OutputEmitterRef<TreeNodeEvent>;
22
+ checkChange: import("@angular/core").OutputEmitterRef<{
23
+ node: TreeNode;
24
+ checked: boolean;
25
+ }>;
26
+ private expandedSet;
27
+ private checkedSet;
28
+ focusedId: import("@angular/core").WritableSignal<string | null>;
29
+ isExpanded(id: string): boolean;
30
+ isChecked(id: string): boolean;
31
+ hasNodeChildren(node: TreeNode): boolean;
32
+ onNodeClick(node: TreeNode, e: MouseEvent): void;
33
+ toggleExpand(node: TreeNode, e: MouseEvent): void;
34
+ onCheck(node: TreeNode): void;
35
+ onKeyDown(e: KeyboardEvent): void;
36
+ private flatVisibleIds;
37
+ private findNode;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeViewComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<TreeViewComponent, "ngx-tree-view", never, { "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "checkable": { "alias": "checkable"; "required": false; "isSignal": true; }; "selectedId": { "alias": "selectedId"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; }, { "nodeSelect": "nodeSelect"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "checkChange": "checkChange"; }, never, never, true, never>;
40
+ }
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "ngx-core-components",
3
+ "version": "0.0.3",
4
+ "description": "Angular component library featuring a full-featured SVG Gantt Chart with drag/resize, dependencies, zoom, tree hierarchy, and theming.",
5
+ "keywords": [
6
+ "angular",
7
+ "gantt",
8
+ "chart",
9
+ "svg",
10
+ "component",
11
+ "timeline",
12
+ "project-management",
13
+ "gantt-chart",
14
+ "ng",
15
+ "ngx"
16
+ ],
17
+ "license": "MIT",
18
+ "author": "ngx-core-components contributors",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/prachi2274/ngx-core-components.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/prachi2274/ngx-core-components/issues"
25
+ },
26
+ "homepage": "https://github.com/prachi2274/ngx-core-components#readme",
27
+ "peerDependencies": {
28
+ "@angular/common": "^19.0.0",
29
+ "@angular/core": "^19.0.0"
30
+ },
31
+ "dependencies": {
32
+ "tslib": "^2.3.0"
33
+ },
34
+ "sideEffects": false,
35
+ "module": "fesm2022/ngx-core-components.mjs",
36
+ "typings": "index.d.ts",
37
+ "exports": {
38
+ "./package.json": {
39
+ "default": "./package.json"
40
+ },
41
+ ".": {
42
+ "types": "./index.d.ts",
43
+ "default": "./fesm2022/ngx-core-components.mjs"
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,25 @@
1
+ export { GanttChartComponent } from './lib/gantt-chart/gantt-chart.component';
2
+ export * from './lib/gantt-chart/models';
3
+ export { GanttScaleService } from './lib/gantt-chart/services/gantt-scale.service';
4
+ export type { FlatRow } from './lib/gantt-chart/services/gantt-layout.service';
5
+ export * from './lib/gantt-chart/utils/date-utils';
6
+ export { BarChartComponent } from './lib/charts/bar-chart/bar-chart.component';
7
+ export { LineChartComponent } from './lib/charts/line-chart/line-chart.component';
8
+ export { PieChartComponent } from './lib/charts/pie-chart/pie-chart.component';
9
+ export { SparklineComponent } from './lib/charts/sparkline/sparkline.component';
10
+ export type { ChartSeries, ChartDataPoint } from './lib/charts/shared/chart-utils';
11
+ export { CHART_COLORS } from './lib/charts/shared/chart-utils';
12
+ export { TextBoxComponent } from './lib/inputs/textbox/textbox.component';
13
+ export { DropdownComponent } from './lib/inputs/dropdown/dropdown.component';
14
+ export type { DropdownOption } from './lib/inputs/dropdown/dropdown.component';
15
+ export { DatePickerComponent } from './lib/inputs/date-picker/date-picker.component';
16
+ export { MultiSelectComponent } from './lib/inputs/multi-select/multi-select.component';
17
+ export { DataGridComponent } from './lib/data-grid/data-grid.component';
18
+ export type { GridColumnDef, GridSortState, GridPageChangeEvent, GridSortChangeEvent, GridRowClickEvent, } from './lib/data-grid/data-grid.component';
19
+ export { TreeViewComponent } from './lib/tree-view/tree-view.component';
20
+ export type { TreeNode, TreeNodeEvent } from './lib/tree-view/tree-view.component';
21
+ export { ListViewComponent } from './lib/list-view/list-view.component';
22
+ export type { ListViewItemClickEvent, ListViewSelectionEvent, } from './lib/list-view/list-view.component';
23
+ export { TooltipDirective } from './lib/tooltip/tooltip.directive';
24
+ export type { TooltipPosition } from './lib/tooltip/tooltip.directive';
25
+ export { PopoverComponent } from './lib/tooltip/popover.component';