@siemens/element-ng 48.8.0 → 48.10.0

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.
@@ -0,0 +1,162 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnDestroy, EnvironmentProviders } from '@angular/core';
3
+ import { IDateComp, IDateParams, INoRowsOverlayParams, GridOptions, Theme } from 'ag-grid-community';
4
+
5
+ /**
6
+ * Copyright (c) Siemens 2016 - 2025
7
+ * SPDX-License-Identifier: MIT
8
+ */
9
+
10
+ /**
11
+ * Custom AG Grid date component using Element datepicker.
12
+ * This component replaces the native HTML date input with the Element design system datepicker.
13
+ */
14
+ declare class AgDateInputComponent implements IDateComp, OnDestroy {
15
+ private elementRef;
16
+ /**
17
+ * The selected date value.
18
+ */
19
+ date: Date | undefined;
20
+ /**
21
+ * AG Grid date filter parameters.
22
+ * @internal
23
+ */
24
+ private params;
25
+ /**
26
+ * Document click event listener for calendar overlay.
27
+ * @internal
28
+ */
29
+ private documentClickListener?;
30
+ /**
31
+ * Notifies AG Grid when the date value changes.
32
+ * @internal
33
+ */
34
+ onDateChange(): void;
35
+ /**
36
+ * Lifecycle hook called after the component GUI is attached.
37
+ * Sets up event listeners to prevent filter popup from closing when interacting with calendar.
38
+ */
39
+ afterGuiAttached(): void;
40
+ ngOnDestroy(): void;
41
+ agInit(params: IDateParams): void;
42
+ getDate(): Date | null;
43
+ getGui(): HTMLElement;
44
+ setDate(date: Date | null): void;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgDateInputComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<AgDateInputComponent, "si-ag-date-input", never, {}, {}, never, never, true, never>;
47
+ }
48
+
49
+ /**
50
+ * Custom AG Grid no rows overlay component using Element Empty State.
51
+ * This component is displayed when the grid has no data to show.
52
+ *
53
+ * @example
54
+ * Using with custom parameters
55
+ * ```typescript
56
+ * <ag-grid-angular
57
+ * [noRowsOverlayComponent]="AgNoRowsOverlayComponent"
58
+ * [noRowsOverlayComponentParams]="{
59
+ * icon: 'element-technical-search',
60
+ * heading: 'No results found',
61
+ * content: 'Try adjusting your filters.'
62
+ * }"
63
+ * />
64
+ * ```
65
+ */
66
+ declare class AgNoRowsOverlayComponent {
67
+ /**
68
+ * Icon to display in the empty state.
69
+ *
70
+ */
71
+ protected readonly icon: i0.WritableSignal<string>;
72
+ /**
73
+ * Heading text for the empty state.
74
+ *
75
+ */
76
+ protected readonly heading: i0.WritableSignal<string>;
77
+ /**
78
+ * Description text for the empty state.
79
+ *
80
+ */
81
+ protected readonly content: i0.WritableSignal<string | undefined>;
82
+ agInit(params: INoRowsOverlayParams & {
83
+ icon: string;
84
+ heading: string;
85
+ content?: string;
86
+ }): void;
87
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgNoRowsOverlayComponent, never>;
88
+ static ɵcmp: i0.ɵɵComponentDeclaration<AgNoRowsOverlayComponent, "si-ag-no-rows-overlay", never, {}, {}, never, never, true, never>;
89
+ }
90
+
91
+ /**
92
+ * Copyright (c) Siemens 2016 - 2025
93
+ * SPDX-License-Identifier: MIT
94
+ */
95
+
96
+ /**
97
+ * Provides AG Grid global configuration with Element design system theme.
98
+ *
99
+ * This provider configures AG Grid with the Element theme, custom components,
100
+ * and density-specific styling. Use it in your application providers.
101
+ *
102
+ * @param density - The density variant to use. Options:
103
+ * - 'compact': Minimal spacing (28px row height, 32px header height, 4px spacing)
104
+ * - 'standard': Default spacing (42px row height, 48px header height, 8px spacing)
105
+ * - 'comfort': Generous spacing (84px row height, 96px header height, 12px spacing)
106
+ * @param gridOptions - Optional AG Grid options to merge with Element defaults.
107
+ * These options will override Element defaults if specified.
108
+ * @returns Environment providers for dependency injection
109
+ *
110
+ * @example
111
+ * ```typescript
112
+ * // In app.config.ts
113
+ * export const appConfig: ApplicationConfig = {
114
+ * providers: [
115
+ * provideSiAgGridConfig()
116
+ * ]
117
+ * };
118
+ *
119
+ * // With custom options
120
+ * export const appConfig: ApplicationConfig = {
121
+ * providers: [
122
+ * provideSiAgGridConfig('compact', {
123
+ * rowHeight: 30,
124
+ * suppressMenuHide: true
125
+ * })
126
+ * ]
127
+ * };
128
+ * ```
129
+ */
130
+ declare const provideSiAgGridConfig: (density?: "compact" | "comfort" | "standard", gridOptions?: GridOptions) => EnvironmentProviders;
131
+
132
+ /**
133
+ * Copyright (c) Siemens 2016 - 2025
134
+ * SPDX-License-Identifier: MIT
135
+ */
136
+
137
+ /**
138
+ * Standard density Element AG Grid theme.
139
+ * Provides balanced spacing suitable for most use cases.
140
+ * - Row height: 42px
141
+ * - Header height: 48px
142
+ * - Spacing: 8px
143
+ */
144
+ declare const elementTheme: Theme;
145
+ /**
146
+ * Compact density Element AG Grid theme.
147
+ * Optimized for displaying more data in limited space.
148
+ * - Row height: 28px
149
+ * - Header height: 32px
150
+ * - Spacing: 4px
151
+ */
152
+ declare const elementThemeCompact: Theme;
153
+ /**
154
+ * Comfort density Element AG Grid theme.
155
+ * Provides generous spacing for enhanced readability and touch interactions.
156
+ * - Row height: 84px
157
+ * - Header height: 96px
158
+ * - Spacing: 12px
159
+ */
160
+ declare const elementThemeComfort: Theme;
161
+
162
+ export { AgDateInputComponent, AgNoRowsOverlayComponent, elementTheme, elementThemeComfort, elementThemeCompact, provideSiAgGridConfig };
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/siemens-element-ng-ag-grid.mjs"
3
+ }