ngx-core-components 0.3.16 → 0.3.17

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.
@@ -23,6 +23,7 @@ export declare class DropdownComponent implements ControlValueAccessor {
23
23
  private _cvaActive;
24
24
  private _onChange;
25
25
  private _onTouched;
26
+ uid: string;
26
27
  private el;
27
28
  _activeValue: import("@angular/core").Signal<unknown>;
28
29
  selectedLabel: import("@angular/core").Signal<string>;
@@ -33,6 +33,7 @@ export declare class FileUploadComponent {
33
33
  }>;
34
34
  isDragOver: import("@angular/core").WritableSignal<boolean>;
35
35
  fileQueue: import("@angular/core").WritableSignal<UploadFileItem[]>;
36
+ onDropzoneKeyDown(event: KeyboardEvent): void;
36
37
  onDragOver(event: DragEvent): void;
37
38
  onDragLeave(event: DragEvent): void;
38
39
  onDrop(event: DragEvent): void;
@@ -28,6 +28,8 @@ export declare class AccordionComponent {
28
28
  collapseAll(): void;
29
29
  expandItem(index: number): void;
30
30
  collapseItem(index: number): void;
31
+ handleKeydown(event: KeyboardEvent, index: number): void;
32
+ private isItemDisabled;
31
33
  static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
32
34
  static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "ngx-accordion", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "multi": { "alias": "multi"; "required": false; "isSignal": true; }; }, {}, ["accordionItems"], never, true, never>;
33
35
  }
@@ -1,15 +1,18 @@
1
1
  import { AfterContentInit, ElementRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TabComponent {
4
+ id: import("@angular/core").InputSignal<string>;
4
5
  title: import("@angular/core").InputSignal<string>;
5
6
  icon: import("@angular/core").InputSignal<string>;
6
7
  disabled: import("@angular/core").InputSignal<boolean>;
7
8
  badge: import("@angular/core").InputSignal<string | number>;
8
9
  closable: import("@angular/core").InputSignal<boolean>;
9
10
  isActive: import("@angular/core").WritableSignal<boolean>;
11
+ tabPanelId: import("@angular/core").WritableSignal<string>;
12
+ tabButtonId: import("@angular/core").WritableSignal<string>;
10
13
  tabClose: import("@angular/core").OutputEmitterRef<void>;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "ngx-tab", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; }, { "tabClose": "tabClose"; }, never, ["*"], true, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "ngx-tab", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; }, { "tabClose": "tabClose"; }, never, ["*"], true, never>;
13
16
  }
14
17
  export declare class TabStripComponent implements AfterContentInit {
15
18
  position: import("@angular/core").InputSignal<"top" | "bottom" | "left" | "right">;
@@ -27,6 +30,7 @@ export declare class TabStripComponent implements AfterContentInit {
27
30
  selectTab(index: number): void;
28
31
  closeTab(event: MouseEvent, index: number): void;
29
32
  updateIndicator(index: number): void;
33
+ handleKeydown(event: KeyboardEvent, index: number): void;
30
34
  private _syncActiveTabs;
31
35
  static ɵfac: i0.ɵɵFactoryDeclaration<TabStripComponent, never>;
32
36
  static ɵcmp: i0.ɵɵComponentDeclaration<TabStripComponent, "ngx-tab-strip", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; }, { "tabChange": "tabChange"; "tabClose": "tabClose"; }, ["tabs"], ["*"], true, never>;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "ngx-core-components",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
+ "schematics": "./schematics/collection.json",
4
5
  "description": "Angular component library featuring a full-featured SVG Gantt Chart with drag/resize, dependencies, zoom, tree hierarchy, and theming.",
5
6
  "keywords": [
6
7
  "angular",
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Add ngx-core-components to the project.",
6
+ "factory": "./ng-add/index#ngAdd"
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,64 @@
1
+ function ngAdd(options) {
2
+ return (tree, context) => {
3
+ context.logger.info('📦 Configuring ngx-core-components in your Angular project...');
4
+
5
+ // 1. Add dependency to package.json
6
+ if (tree.exists('package.json')) {
7
+ const packageJsonContent = tree.read('package.json').toString('utf-8');
8
+ const json = JSON.parse(packageJsonContent);
9
+ if (!json.dependencies) {
10
+ json.dependencies = {};
11
+ }
12
+ if (!json.dependencies['ngx-core-components']) {
13
+ json.dependencies['ngx-core-components'] = '^0.3.15';
14
+ tree.overwrite('package.json', JSON.stringify(json, null, 2) + '\n');
15
+ context.logger.info('✅ Added ngx-core-components to dependencies in package.json');
16
+ }
17
+ }
18
+
19
+ // 2. Add style asset to angular.json
20
+ if (tree.exists('angular.json')) {
21
+ try {
22
+ const angularJsonContent = tree.read('angular.json').toString('utf-8');
23
+ const json = JSON.parse(angularJsonContent);
24
+ const projects = json.projects;
25
+
26
+ // Find default project or first available project
27
+ const projectName = json.defaultProject || Object.keys(projects)[0];
28
+ const project = projects[projectName];
29
+
30
+ if (project && project.architect && project.architect.build && project.architect.build.options) {
31
+ const options = project.architect.build.options;
32
+ if (!options.styles) {
33
+ options.styles = [];
34
+ }
35
+ const styleAsset = 'node_modules/ngx-core-components/themes/theme.css';
36
+
37
+ // Check if style asset is already added
38
+ const styleExists = options.styles.some(s => {
39
+ if (typeof s === 'string') {
40
+ return s === styleAsset;
41
+ }
42
+ return s.input === styleAsset;
43
+ });
44
+
45
+ if (!styleExists) {
46
+ options.styles.push(styleAsset);
47
+ tree.overwrite('angular.json', JSON.stringify(json, null, 2) + '\n');
48
+ context.logger.info('🎨 Added core styling CSS variables to angular.json styles');
49
+ }
50
+ }
51
+ } catch (err) {
52
+ context.logger.warn('⚠️ Could not configure angular.json automatically: ' + err.message);
53
+ }
54
+ }
55
+
56
+ context.logger.info('🎉 Successfully configured ngx-core-components!');
57
+ context.logger.info('💡 Note: All components are standalone! You can import them directly in your component files, for example:');
58
+ context.logger.info(' import { GanttChartComponent } from \'ngx-core-components/charts\';');
59
+
60
+ return tree;
61
+ };
62
+ }
63
+
64
+ module.exports = { ngAdd };
@@ -0,0 +1,34 @@
1
+ :root {
2
+ /* Brand Accent Colors */
3
+ --primary-color: #4f46e5; /* Primary Indigo */
4
+ --primary-hover: #4338ca;
5
+ --secondary-color: #10b981; /* Success Green */
6
+
7
+ /* Text System Colors */
8
+ --ngx-chart-text: #0f172a; /* Slate 900 */
9
+ --ngx-chart-axis-text: #64748b; /* Slate 500 */
10
+
11
+ /* Canvas Background & Layouts */
12
+ --ngx-chart-bg: #ffffff;
13
+ --ngx-chart-grid: #ebedf0; /* Grid lines color */
14
+ --ngx-chart-axis: #ced4da; /* Base axis lines */
15
+
16
+ /* Glassmorphic Tooltips */
17
+ --ngx-chart-tooltip-bg: rgba(15, 23, 42, 0.92);
18
+ --ngx-chart-tooltip-color: #f8fafc;
19
+ }
20
+
21
+ body.dark {
22
+ /* Dark Canvas Base */
23
+ --ngx-chart-bg: #0f172a; /* Slate 900 */
24
+ --ngx-chart-grid: rgba(255, 255, 255, 0.08);
25
+ --ngx-chart-axis: rgba(255, 255, 255, 0.15);
26
+
27
+ /* Text Overrides */
28
+ --ngx-chart-text: #f8fafc; /* Slate 50 */
29
+ --ngx-chart-axis-text: #94a3b8; /* Slate 400 */
30
+
31
+ /* Tooltip Adjustments */
32
+ --ngx-chart-tooltip-bg: rgba(15, 23, 42, 0.96);
33
+ --ngx-chart-tooltip-color: #f8fafc;
34
+ }