ngx-core-components 0.3.20 → 0.3.22
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/ai/ai-chat/ai-chat.component.d.ts +2 -1
- package/ai/ngx-web-llm.service.d.ts +22 -0
- package/ai/public-api.d.ts +2 -0
- package/charts/gantt-chart/gantt-chart.component.d.ts +5 -1
- package/charts/line-chart/line-chart.component.d.ts +19 -1
- package/dialog/dialog-container.component.d.ts +4 -0
- package/dialog/dialog.service.d.ts +1 -0
- package/fesm2022/ngx-core-components-ai.mjs +173 -9
- package/fesm2022/ngx-core-components-ai.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +127 -18
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-dialog.mjs +78 -11
- package/fesm2022/ngx-core-components-dialog.mjs.map +1 -1
- package/fesm2022/ngx-core-components-feedback.mjs +8 -4
- package/fesm2022/ngx-core-components-feedback.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +261 -152
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-i18n.mjs +149 -0
- package/fesm2022/ngx-core-components-i18n.mjs.map +1 -0
- package/fesm2022/ngx-core-components-inputs.mjs +859 -78
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +12 -8
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
- package/fesm2022/ngx-core-components-navigation.mjs +19 -13
- package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +86 -20
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +3 -2
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/grid/data-grid/data-grid.component.d.ts +44 -105
- package/grid/data-grid/grid-export.service.d.ts +26 -0
- package/grid/data-grid/models.d.ts +105 -0
- package/grid/public-api.d.ts +2 -1
- package/i18n/index.d.ts +5 -0
- package/i18n/ngx-core-i18n.d.ts +111 -0
- package/i18n/public-api.d.ts +2 -0
- package/inputs/autocomplete/autocomplete.component.d.ts +3 -1
- package/inputs/date-picker/date-picker.component.d.ts +4 -2
- package/inputs/dropdown/dropdown.component.d.ts +3 -1
- package/inputs/file-upload/file-upload.component.d.ts +1 -0
- package/inputs/form-builder/form-builder.component.d.ts +20 -0
- package/inputs/form-builder/form-designer.component.d.ts +42 -0
- package/inputs/multi-select/multi-select.component.d.ts +3 -1
- package/inputs/public-api.d.ts +1 -0
- package/layout/accordion/accordion.component.d.ts +1 -0
- package/layout/drawer/drawer.component.d.ts +1 -0
- package/package.json +31 -13
- package/public-api.d.ts +5 -1
- package/schematics/collection.json +7 -1
- package/schematics/grid/index.js +68 -0
- package/schematics/grid/schema.json +19 -0
- package/schematics/ng-add/index.js +177 -9
- package/schematics/ng-add/schema.json +29 -0
- package/themes/theme.css +140 -26
- package/views/kanban/kanban.component.d.ts +1 -0
- package/views/list-view/list-view.component.d.ts +1 -0
- package/views/scheduler/scheduler.component.d.ts +2 -0
package/themes/theme.css
CHANGED
|
@@ -1,34 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ngx-core-components — Design Token System
|
|
3
|
+
*
|
|
4
|
+
* This file declares all CSS custom properties used across the library.
|
|
5
|
+
* Override these properties globally or scope them to specific selectors.
|
|
6
|
+
*/
|
|
7
|
+
|
|
1
8
|
:root {
|
|
2
|
-
/* Brand
|
|
3
|
-
--
|
|
4
|
-
--primary-hover: #4338ca;
|
|
5
|
-
--
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
--ngx-
|
|
9
|
-
--ngx-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
--ngx-
|
|
14
|
-
--ngx-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
/* ── 1. Global Brand & Semantic Colors ── */
|
|
10
|
+
--ngx-color-primary: #4f46e5;
|
|
11
|
+
--ngx-color-primary-hover: #4338ca;
|
|
12
|
+
--ngx-color-primary-light: #e0e7ff;
|
|
13
|
+
--ngx-color-secondary: #64748b;
|
|
14
|
+
--ngx-color-success: #10b981;
|
|
15
|
+
--ngx-color-warning: #f59e0b;
|
|
16
|
+
--ngx-color-danger: #ef4444;
|
|
17
|
+
--ngx-color-info: #06b6d4;
|
|
18
|
+
|
|
19
|
+
/* ── 2. Surface & Text Colors ── */
|
|
20
|
+
--ngx-color-surface: #ffffff;
|
|
21
|
+
--ngx-color-surface-alt: #f8fafc;
|
|
22
|
+
--ngx-color-surface-overlay: rgba(15, 23, 42, 0.05);
|
|
23
|
+
--ngx-color-border: #e2e8f0;
|
|
24
|
+
--ngx-color-text: #0f172a;
|
|
25
|
+
--ngx-color-text-secondary: #64748b;
|
|
26
|
+
--ngx-color-text-disabled: #94a3b8;
|
|
27
|
+
--ngx-color-text-inverse: #ffffff;
|
|
28
|
+
|
|
29
|
+
/* ── 3. Spacing Scale ── */
|
|
30
|
+
--ngx-space-xs: 0.25rem;
|
|
31
|
+
--ngx-space-sm: 0.5rem;
|
|
32
|
+
--ngx-space-md: 0.75rem;
|
|
33
|
+
--ngx-space-lg: 1rem;
|
|
34
|
+
--ngx-space-xl: 1.5rem;
|
|
35
|
+
--ngx-space-2xl: 2rem;
|
|
36
|
+
|
|
37
|
+
/* ── 4. Typography ── */
|
|
38
|
+
--ngx-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
39
|
+
--ngx-font-size-xs: 0.75rem;
|
|
40
|
+
--ngx-font-size-sm: 0.875rem;
|
|
41
|
+
--ngx-font-size-md: 1rem;
|
|
42
|
+
--ngx-font-size-lg: 1.125rem;
|
|
43
|
+
--ngx-font-size-xl: 1.25rem;
|
|
44
|
+
--ngx-font-weight-normal: 400;
|
|
45
|
+
--ngx-font-weight-medium: 500;
|
|
46
|
+
--ngx-font-weight-bold: 600;
|
|
47
|
+
--ngx-line-height-tight: 1.25;
|
|
48
|
+
--ngx-line-height-normal: 1.5;
|
|
49
|
+
--ngx-line-height-relaxed: 1.625;
|
|
50
|
+
|
|
51
|
+
/* ── 5. Borders & Radius ── */
|
|
52
|
+
--ngx-radius-sm: 0.125rem;
|
|
53
|
+
--ngx-radius-md: 0.25rem;
|
|
54
|
+
--ngx-radius-lg: 0.375rem;
|
|
55
|
+
--ngx-radius-xl: 0.5rem;
|
|
56
|
+
--ngx-radius-full: 9999px;
|
|
57
|
+
--ngx-border-width: 1px;
|
|
58
|
+
--ngx-border-color: var(--ngx-color-border);
|
|
59
|
+
|
|
60
|
+
/* ── 6. Shadows ── */
|
|
61
|
+
--ngx-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
62
|
+
--ngx-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
63
|
+
--ngx-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
64
|
+
--ngx-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
65
|
+
|
|
66
|
+
/* ── 7. Transitions ── */
|
|
67
|
+
--ngx-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
68
|
+
--ngx-transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
69
|
+
--ngx-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
70
|
+
|
|
71
|
+
/* ── 8. Focus Rings ── */
|
|
72
|
+
--ngx-focus-ring-color: var(--ngx-color-primary-light);
|
|
73
|
+
--ngx-focus-ring-width: 3px;
|
|
74
|
+
--ngx-focus-ring-offset: 1px;
|
|
75
|
+
|
|
76
|
+
/* ── 9. Component Specific Base Tokens ── */
|
|
77
|
+
--ngx-input-border: var(--ngx-color-border);
|
|
78
|
+
--ngx-input-bg: var(--ngx-color-surface);
|
|
79
|
+
--ngx-input-focus: var(--ngx-color-primary);
|
|
80
|
+
--ngx-input-radius: var(--ngx-radius-lg);
|
|
81
|
+
--ngx-input-height: 2.5rem;
|
|
82
|
+
|
|
83
|
+
--ngx-grid-border: var(--ngx-color-border);
|
|
84
|
+
--ngx-grid-header-bg: var(--ngx-color-surface-alt);
|
|
85
|
+
--ngx-grid-row-hover: var(--ngx-color-surface-alt);
|
|
86
|
+
--ngx-grid-stripe: rgba(15, 23, 42, 0.02);
|
|
87
|
+
|
|
88
|
+
--ngx-btn-padding: 0.5rem 1rem;
|
|
89
|
+
--ngx-btn-radius: var(--ngx-radius-lg);
|
|
90
|
+
--ngx-btn-font-weight: var(--ngx-font-weight-medium);
|
|
91
|
+
|
|
92
|
+
--ngx-dialog-overlay-bg: rgba(15, 23, 42, 0.4);
|
|
93
|
+
--ngx-dialog-radius: var(--ngx-radius-xl);
|
|
94
|
+
--ngx-dialog-shadow: var(--ngx-shadow-xl);
|
|
95
|
+
|
|
96
|
+
/* ── 10. Legacy Mapped / Compatibility Variables ── */
|
|
97
|
+
--primary-color: var(--ngx-color-primary);
|
|
98
|
+
--primary-hover: var(--ngx-color-primary-hover);
|
|
99
|
+
--secondary-color: var(--ngx-color-success);
|
|
100
|
+
|
|
101
|
+
--ngx-chart-text: var(--ngx-color-text);
|
|
102
|
+
--ngx-chart-axis-text: var(--ngx-color-text-secondary);
|
|
103
|
+
--ngx-chart-bg: var(--ngx-color-surface);
|
|
104
|
+
--ngx-chart-grid: #ebedf0;
|
|
105
|
+
--ngx-chart-axis: #ced4da;
|
|
106
|
+
|
|
17
107
|
--ngx-chart-tooltip-bg: rgba(15, 23, 42, 0.92);
|
|
18
108
|
--ngx-chart-tooltip-color: #f8fafc;
|
|
19
109
|
}
|
|
20
110
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
--ngx-
|
|
111
|
+
/* ── Dark Mode Presets ── */
|
|
112
|
+
body.dark, [data-theme="dark"] {
|
|
113
|
+
--ngx-color-surface: #0f172a;
|
|
114
|
+
--ngx-color-surface-alt: #1e293b;
|
|
115
|
+
--ngx-color-surface-overlay: rgba(255, 255, 255, 0.05);
|
|
116
|
+
--ngx-color-border: #334155;
|
|
117
|
+
--ngx-color-text: #f8fafc;
|
|
118
|
+
--ngx-color-text-secondary: #94a3b8;
|
|
119
|
+
--ngx-color-text-disabled: #64748b;
|
|
120
|
+
--ngx-color-text-inverse: #0f172a;
|
|
121
|
+
|
|
24
122
|
--ngx-chart-grid: rgba(255, 255, 255, 0.08);
|
|
25
123
|
--ngx-chart-axis: rgba(255, 255, 255, 0.15);
|
|
26
|
-
|
|
27
|
-
|
|
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;
|
|
124
|
+
|
|
125
|
+
--ngx-dialog-overlay-bg: rgba(0, 0, 0, 0.6);
|
|
34
126
|
}
|
|
127
|
+
|
|
128
|
+
/* ── 11. Accessibility Enhancements ── */
|
|
129
|
+
@media (prefers-reduced-motion: reduce) {
|
|
130
|
+
*,
|
|
131
|
+
*::before,
|
|
132
|
+
*::after {
|
|
133
|
+
animation-duration: 0.01ms !important;
|
|
134
|
+
animation-iteration-count: 1 !important;
|
|
135
|
+
transition-duration: 0.01ms !important;
|
|
136
|
+
scroll-behavior: auto !important;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@media (forced-colors: active) {
|
|
141
|
+
:root {
|
|
142
|
+
--ngx-color-primary: SelectedText;
|
|
143
|
+
--ngx-color-primary-hover: SelectedText;
|
|
144
|
+
--ngx-color-border: CanvasText;
|
|
145
|
+
--ngx-focus-ring-color: Highlight;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
@@ -37,6 +37,7 @@ export declare class KanbanComponent {
|
|
|
37
37
|
isWipReached(columnId: string, laneId?: string): boolean;
|
|
38
38
|
onDragStart(event: DragEvent, card: KanbanCard): void;
|
|
39
39
|
onDragEnd(): void;
|
|
40
|
+
onCardKeyDown(event: KeyboardEvent, card: KanbanCard, currentColumnId: string, laneId: string, currentIndex: number): void;
|
|
40
41
|
onColumnDragOver(event: DragEvent, columnId: string, laneId: string): void;
|
|
41
42
|
onCardDragOver(event: DragEvent): void;
|
|
42
43
|
onDragLeave(columnId: string, laneId: string): void;
|
|
@@ -14,6 +14,7 @@ export interface ListViewPageChangeEvent {
|
|
|
14
14
|
totalPages: number;
|
|
15
15
|
}
|
|
16
16
|
export declare class ListViewComponent<T = unknown> {
|
|
17
|
+
i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
17
18
|
items: import("@angular/core").InputSignal<T[]>;
|
|
18
19
|
selectable: import("@angular/core").InputSignal<boolean>;
|
|
19
20
|
multiselect: import("@angular/core").InputSignal<boolean>;
|
|
@@ -24,6 +24,8 @@ interface SchedulerEventLayout extends ResolvedSchedulerEvent {
|
|
|
24
24
|
width: number;
|
|
25
25
|
}
|
|
26
26
|
export declare class SchedulerComponent implements OnInit, OnDestroy {
|
|
27
|
+
i18n: import("ngx-core-components/i18n").NgxCoreI18n;
|
|
28
|
+
getViewModeLabel(mode: string): string;
|
|
27
29
|
readonly hourHeight = 60;
|
|
28
30
|
viewModes: ('day' | 'week' | 'month')[];
|
|
29
31
|
events: import("@angular/core").InputSignal<SchedulerEvent[]>;
|