ngx-core-components 0.3.20 → 0.3.21

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 (46) hide show
  1. package/charts/gantt-chart/gantt-chart.component.d.ts +1 -0
  2. package/dialog/dialog-container.component.d.ts +4 -0
  3. package/dialog/dialog.service.d.ts +1 -0
  4. package/fesm2022/ngx-core-components-charts.mjs +8 -6
  5. package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
  6. package/fesm2022/ngx-core-components-dialog.mjs +78 -11
  7. package/fesm2022/ngx-core-components-dialog.mjs.map +1 -1
  8. package/fesm2022/ngx-core-components-feedback.mjs +8 -4
  9. package/fesm2022/ngx-core-components-feedback.mjs.map +1 -1
  10. package/fesm2022/ngx-core-components-grid.mjs +143 -115
  11. package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
  12. package/fesm2022/ngx-core-components-i18n.mjs +149 -0
  13. package/fesm2022/ngx-core-components-i18n.mjs.map +1 -0
  14. package/fesm2022/ngx-core-components-inputs.mjs +145 -75
  15. package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
  16. package/fesm2022/ngx-core-components-layout.mjs +12 -8
  17. package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
  18. package/fesm2022/ngx-core-components-views.mjs +86 -20
  19. package/fesm2022/ngx-core-components-views.mjs.map +1 -1
  20. package/fesm2022/ngx-core-components.mjs +1 -0
  21. package/fesm2022/ngx-core-components.mjs.map +1 -1
  22. package/grid/data-grid/data-grid.component.d.ts +4 -104
  23. package/grid/data-grid/grid-export.service.d.ts +26 -0
  24. package/grid/data-grid/models.d.ts +105 -0
  25. package/grid/public-api.d.ts +2 -1
  26. package/i18n/index.d.ts +5 -0
  27. package/i18n/ngx-core-i18n.d.ts +111 -0
  28. package/i18n/public-api.d.ts +2 -0
  29. package/inputs/autocomplete/autocomplete.component.d.ts +3 -1
  30. package/inputs/date-picker/date-picker.component.d.ts +4 -2
  31. package/inputs/dropdown/dropdown.component.d.ts +3 -1
  32. package/inputs/file-upload/file-upload.component.d.ts +1 -0
  33. package/inputs/multi-select/multi-select.component.d.ts +3 -1
  34. package/layout/accordion/accordion.component.d.ts +1 -0
  35. package/layout/drawer/drawer.component.d.ts +1 -0
  36. package/package.json +30 -12
  37. package/public-api.d.ts +2 -0
  38. package/schematics/collection.json +7 -1
  39. package/schematics/grid/index.js +68 -0
  40. package/schematics/grid/schema.json +19 -0
  41. package/schematics/ng-add/index.js +177 -9
  42. package/schematics/ng-add/schema.json +29 -0
  43. package/themes/theme.css +118 -26
  44. package/views/kanban/kanban.component.d.ts +1 -0
  45. package/views/list-view/list-view.component.d.ts +1 -0
  46. package/views/scheduler/scheduler.component.d.ts +2 -0
@@ -4,6 +4,7 @@ import { FlatRow } from './services/gantt-layout.service';
4
4
  import { GanttKeyboardService } from './services/gantt-keyboard.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class GanttChartComponent {
7
+ i18n: import("ngx-core-components/i18n").NgxCoreI18n;
7
8
  tasks: import("@angular/core").InputSignal<GanttTask[]>;
8
9
  dependencies: import("@angular/core").InputSignal<GanttDependency[]>;
9
10
  config: import("@angular/core").InputSignal<Partial<GanttConfig>>;
@@ -17,8 +17,12 @@ export declare class DialogContainerComponent {
17
17
  panelClass: string;
18
18
  backdropClick: (() => void) | null;
19
19
  private cdr;
20
+ private elRef;
20
21
  attachContent(view: ViewRef): void;
21
22
  onBackdropClick(): void;
23
+ onKeydown(event: KeyboardEvent): void;
24
+ private handleTab;
25
+ private getFocusableElements;
22
26
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogContainerComponent, never>;
23
27
  static ɵcmp: i0.ɵɵComponentDeclaration<DialogContainerComponent, "ngx-dialog-container", never, {}, {}, never, never, true, never>;
24
28
  }
@@ -31,6 +31,7 @@ export interface DialogRef<R = unknown> {
31
31
  export declare class DialogService {
32
32
  private appRef;
33
33
  private injector;
34
+ private platformId;
34
35
  open<C, D = unknown, R = unknown>(component: Type<C>, config?: DialogConfig<D>): DialogRef<R>;
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
36
37
  static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { input, output, viewChild, signal, computed, inject, ElementRef, DestroyRef, HostListener, ChangeDetectionStrategy, Component, Injectable, effect } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, NgTemplateOutlet } from '@angular/common';
5
+ import { NGX_CORE_I18N } from 'ngx-core-components/i18n';
5
6
 
6
7
  // Shared chart utilities and constants
7
8
  const CHART_COLORS = [
@@ -2391,6 +2392,7 @@ function computeCurvePath(startX, startY, endX, endY, type, offset) {
2391
2392
  }
2392
2393
 
2393
2394
  class GanttChartComponent {
2395
+ i18n = inject(NGX_CORE_I18N);
2394
2396
  tasks = input.required();
2395
2397
  dependencies = input([]);
2396
2398
  config = input({});
@@ -3565,14 +3567,14 @@ class GanttChartComponent {
3565
3567
  }
3566
3568
  </div>
3567
3569
  <div class="k-toolbar-group">
3568
- <button class="k-toolbar-btn" (click)="scrollToToday()" title="Go to Today">Today</button>
3570
+ <button class="k-toolbar-btn" (click)="scrollToToday()" [title]="i18n.gantt.today">{{ i18n.gantt.today }}</button>
3569
3571
  @if (mergedConfig().collapsible) {
3570
3572
  <button class="k-toolbar-btn" (click)="expandAll()">Expand</button>
3571
3573
  <button class="k-toolbar-btn" (click)="collapseAll()">Collapse</button>
3572
3574
  }
3573
3575
  </div>
3574
3576
  <div class="k-toolbar-group">
3575
- <button class="k-toolbar-btn" [class.k-active]="showCriticalPath()" (click)="toggleCriticalPath()" title="Toggle Critical Path Highlighting">📌 Critical Path</button>
3577
+ <button class="k-toolbar-btn" [class.k-active]="showCriticalPath()" (click)="toggleCriticalPath()" [title]="i18n.gantt.criticalPath">📌 {{ i18n.gantt.criticalPath }}</button>
3576
3578
  </div>
3577
3579
  @if (isDragToZoomEnabled()) {
3578
3580
  <div class="k-toolbar-group k-toolbar-zoom" style="margin-left: auto;">
@@ -3819,7 +3821,7 @@ class GanttChartComponent {
3819
3821
  </div>
3820
3822
 
3821
3823
  @if (showLoading()) {
3822
- <div class="k-loading-overlay"><div class="k-loading-spinner"><div class="k-spinner-circle"></div><span class="k-loading-text">Loading\u2026</span></div></div>
3824
+ <div class="k-loading-overlay"><div class="k-loading-spinner"><div class="k-spinner-circle"></div><span class="k-loading-text">{{ i18n.common.loading }}</span></div></div>
3823
3825
  }
3824
3826
  </div>
3825
3827
 
@@ -3878,14 +3880,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
3878
3880
  }
3879
3881
  </div>
3880
3882
  <div class="k-toolbar-group">
3881
- <button class="k-toolbar-btn" (click)="scrollToToday()" title="Go to Today">Today</button>
3883
+ <button class="k-toolbar-btn" (click)="scrollToToday()" [title]="i18n.gantt.today">{{ i18n.gantt.today }}</button>
3882
3884
  @if (mergedConfig().collapsible) {
3883
3885
  <button class="k-toolbar-btn" (click)="expandAll()">Expand</button>
3884
3886
  <button class="k-toolbar-btn" (click)="collapseAll()">Collapse</button>
3885
3887
  }
3886
3888
  </div>
3887
3889
  <div class="k-toolbar-group">
3888
- <button class="k-toolbar-btn" [class.k-active]="showCriticalPath()" (click)="toggleCriticalPath()" title="Toggle Critical Path Highlighting">📌 Critical Path</button>
3890
+ <button class="k-toolbar-btn" [class.k-active]="showCriticalPath()" (click)="toggleCriticalPath()" [title]="i18n.gantt.criticalPath">📌 {{ i18n.gantt.criticalPath }}</button>
3889
3891
  </div>
3890
3892
  @if (isDragToZoomEnabled()) {
3891
3893
  <div class="k-toolbar-group k-toolbar-zoom" style="margin-left: auto;">
@@ -4132,7 +4134,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
4132
4134
  </div>
4133
4135
 
4134
4136
  @if (showLoading()) {
4135
- <div class="k-loading-overlay"><div class="k-loading-spinner"><div class="k-spinner-circle"></div><span class="k-loading-text">Loading\u2026</span></div></div>
4137
+ <div class="k-loading-overlay"><div class="k-loading-spinner"><div class="k-spinner-circle"></div><span class="k-loading-text">{{ i18n.common.loading }}</span></div></div>
4136
4138
  }
4137
4139
  </div>
4138
4140