@siemens/dashboards-ng 47.9.0 → 48.0.0-next.2
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/fesm2022/siemens-dashboards-ng-module-federation.mjs.map +1 -1
- package/fesm2022/siemens-dashboards-ng.mjs +81 -83
- package/fesm2022/siemens-dashboards-ng.mjs.map +1 -1
- package/index.d.ts +1070 -3
- package/module-federation/index.d.ts +3 -1
- package/package.json +5 -5
- package/translate/index.d.ts +43 -2
- package/components/dashboard-toolbar/si-dashboard-toolbar.component.d.ts +0 -80
- package/components/flexible-dashboard/si-flexible-dashboard.component.d.ts +0 -151
- package/components/grid/si-grid.component.d.ts +0 -189
- package/components/gridstack-wrapper/si-gridstack-wrapper.component.d.ts +0 -70
- package/components/web-component-wrapper/si-web-component-editor-wrapper.component.d.ts +0 -27
- package/components/web-component-wrapper/si-web-component-wrapper-base.component.d.ts +0 -18
- package/components/web-component-wrapper/si-web-component-wrapper.component.d.ts +0 -27
- package/components/widget-catalog/si-widget-catalog.component.d.ts +0 -101
- package/components/widget-host/si-widget-host.component.d.ts +0 -80
- package/components/widget-instance-editor-dialog/si-widget-instance-editor-dialog.component.d.ts +0 -73
- package/model/configuration.d.ts +0 -22
- package/model/gridstack.model.d.ts +0 -15
- package/model/si-dashboard-toolbar.model.d.ts +0 -37
- package/model/si-widget-storage.d.ts +0 -78
- package/model/widgets.model.d.ts +0 -316
- package/public-api.d.ts +0 -16
- package/public-api.module.d.ts +0 -38
- package/services/si-grid.service.d.ts +0 -17
- package/translate/si-translatable-keys.interface.d.ts +0 -35
- package/translate/si-translatable-overrides.provider.d.ts +0 -7
- package/widget-loader.d.ts +0 -18
package/model/widgets.model.d.ts
DELETED
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Siemens 2016 - 2025
|
|
3
|
-
* SPDX-License-Identifier: MIT
|
|
4
|
-
*/
|
|
5
|
-
import { EventEmitter, InputSignal, OutputEmitterRef, TemplateRef } from '@angular/core';
|
|
6
|
-
import { AccentLineType, MenuItem as MenuItemLegacy } from '@siemens/element-ng/common';
|
|
7
|
-
import { ContentActionBarMainItem, ViewType } from '@siemens/element-ng/content-action-bar';
|
|
8
|
-
import { MenuItem } from '@siemens/element-ng/menu';
|
|
9
|
-
import { Subject } from 'rxjs';
|
|
10
|
-
/**
|
|
11
|
-
* Widgets describe the entries within the widget catalog and holds all
|
|
12
|
-
* default configuration and factory functionality to instantiate a widget
|
|
13
|
-
* instance, represented as {@link WidgetConfig} objects.
|
|
14
|
-
*/
|
|
15
|
-
export interface Widget {
|
|
16
|
-
/** A unique id of the widget. */
|
|
17
|
-
id: string;
|
|
18
|
-
/** An optional version string. */
|
|
19
|
-
version?: string;
|
|
20
|
-
/** The name of the widget that is presented in the widget catalog. */
|
|
21
|
-
name: string;
|
|
22
|
-
/** An optional description that is visible in the widget catalog. */
|
|
23
|
-
description?: string;
|
|
24
|
-
/** A CSS icon class that specifies the widget icon, displayed in the catalog. */
|
|
25
|
-
iconClass?: string;
|
|
26
|
-
/** The factory to instantiate a widget instance component that is added to the dashboard. */
|
|
27
|
-
componentFactory: WidgetComponentFactory;
|
|
28
|
-
/** Optional default values that can be set to widget instances. */
|
|
29
|
-
defaults?: Pick<WidgetConfig, 'width' | 'height' | 'minWidth' | 'minHeight' | 'heading' | 'expandable' | 'immutable' | 'image' | 'accentLine'>;
|
|
30
|
-
/** Optional default payload object that is copied into every widget instance {@link WidgetConfig}. */
|
|
31
|
-
payload?: any;
|
|
32
|
-
}
|
|
33
|
-
/** Factory type that is either a {@link WidgetComponentTypeFactory}, {@link FederatedModule} or {@link WebComponent}. */
|
|
34
|
-
export type WidgetComponentFactory = WidgetComponentTypeFactory | FederatedModule | WebComponent;
|
|
35
|
-
type CommonFactoryFields = {
|
|
36
|
-
componentName: string;
|
|
37
|
-
editorComponentName?: string;
|
|
38
|
-
/**
|
|
39
|
-
* CSS class that is added to the modal dialog when component editor dialog is shown.
|
|
40
|
-
* Provides the option to change the size if the dialog.
|
|
41
|
-
*/
|
|
42
|
-
editorModalClass?: string;
|
|
43
|
-
};
|
|
44
|
-
export type WidgetComponentTypeFactory = CommonFactoryFields & {
|
|
45
|
-
factoryType?: 'default';
|
|
46
|
-
moduleName: string;
|
|
47
|
-
moduleLoader: (name: string) => Promise<any>;
|
|
48
|
-
[index: string]: any;
|
|
49
|
-
};
|
|
50
|
-
export type FederatedModule = CommonFactoryFields & LoadRemoteModuleOptions & {
|
|
51
|
-
factoryType: 'module-federation';
|
|
52
|
-
[index: string]: any;
|
|
53
|
-
};
|
|
54
|
-
export type WebComponent = CommonFactoryFields & {
|
|
55
|
-
factoryType: 'web-component';
|
|
56
|
-
url: string;
|
|
57
|
-
[index: string]: any;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* ObjectFit configuration options for a widget image.
|
|
61
|
-
* @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit}
|
|
62
|
-
*/
|
|
63
|
-
export type ObjectFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
64
|
-
/**
|
|
65
|
-
* Image is used to configure an image to be displayed on a widget instance.
|
|
66
|
-
*/
|
|
67
|
-
export interface WidgetImage {
|
|
68
|
-
/**
|
|
69
|
-
* The image URL (See [<img>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#src)).
|
|
70
|
-
*/
|
|
71
|
-
src: string;
|
|
72
|
-
/**
|
|
73
|
-
* The HTMLImageElement property [alt](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt#usage_notes)
|
|
74
|
-
* provides fallback (alternate) text to display when the image specified by the <img> element is not loaded.
|
|
75
|
-
*/
|
|
76
|
-
alt: string;
|
|
77
|
-
/**
|
|
78
|
-
* Defines if an image is placed on top or start (left) of the card.
|
|
79
|
-
*/
|
|
80
|
-
dir?: 'horizontal' | 'vertical';
|
|
81
|
-
/**
|
|
82
|
-
* Sets the image [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property.
|
|
83
|
-
*/
|
|
84
|
-
objectFit?: ObjectFit;
|
|
85
|
-
/**
|
|
86
|
-
* Sets the image [object-position](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) CSS property.
|
|
87
|
-
*/
|
|
88
|
-
objectPosition?: string;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* A {@link WidgetConfig} holds the configuration of a widget instance component that is visible on a dashboard.
|
|
92
|
-
* It can be persisted and used to restore a dashboards state.
|
|
93
|
-
*/
|
|
94
|
-
export interface WidgetConfig {
|
|
95
|
-
/** A unique id of a widget instance */
|
|
96
|
-
id: string;
|
|
97
|
-
/**
|
|
98
|
-
* The id of the widget descriptor that was used to instantiate
|
|
99
|
-
* the `WidgetConfig` and the widget instance component.
|
|
100
|
-
*/
|
|
101
|
-
widgetId: string;
|
|
102
|
-
/**
|
|
103
|
-
* Optionally, the version widget description that was used to create the widget config.
|
|
104
|
-
*/
|
|
105
|
-
version?: string;
|
|
106
|
-
/**
|
|
107
|
-
* Width of the grid item, where number represents how many columns it spans (default?: 1)
|
|
108
|
-
*/
|
|
109
|
-
width?: number;
|
|
110
|
-
/**
|
|
111
|
-
* Height of the grid item, where number represents how many rows it takes. (default?: 1)
|
|
112
|
-
*/
|
|
113
|
-
height?: number;
|
|
114
|
-
/**
|
|
115
|
-
* Grid item position on x axis of the grid (default?: 0)
|
|
116
|
-
*/
|
|
117
|
-
x?: number;
|
|
118
|
-
/**
|
|
119
|
-
* Grid item position on y axis of the grid (default?: 0)
|
|
120
|
-
*/
|
|
121
|
-
y?: number;
|
|
122
|
-
/**
|
|
123
|
-
* minimum width allowed during resize/creation (default?: undefined = un-constrained)
|
|
124
|
-
*/
|
|
125
|
-
minWidth?: number;
|
|
126
|
-
/**
|
|
127
|
-
* maximum height allowed during resize/creation (default?: undefined = un-constrained)
|
|
128
|
-
*/
|
|
129
|
-
minHeight?: number;
|
|
130
|
-
/**
|
|
131
|
-
* grid item header text.
|
|
132
|
-
*/
|
|
133
|
-
heading?: string;
|
|
134
|
-
/** Defines whether the widget instance component can be expanded and enlarged over the dashboard. */
|
|
135
|
-
expandable?: boolean;
|
|
136
|
-
/** A widget specific payload object. Placeholder to pass in additional configuration. */
|
|
137
|
-
payload?: any;
|
|
138
|
-
actionBarViewType?: ViewType;
|
|
139
|
-
isNotRemovable?: boolean;
|
|
140
|
-
immutable?: boolean;
|
|
141
|
-
/**
|
|
142
|
-
* Widget instance editor components can use this property to indicate an invalid configuration.
|
|
143
|
-
* True if the config is invalid. False, undefined or null indicate a valid configuration.
|
|
144
|
-
*
|
|
145
|
-
* @deprecated Use the statusChanges emitter to notify about configuration status changes.
|
|
146
|
-
*/
|
|
147
|
-
invalid?: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Optional configuration for an image to be displayed on the widget instance.
|
|
150
|
-
*/
|
|
151
|
-
image?: WidgetImage;
|
|
152
|
-
/**
|
|
153
|
-
* Optional type of the accent line.
|
|
154
|
-
*/
|
|
155
|
-
accentLine?: AccentLineType;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Object is used to inform the editor hosting component about configuration
|
|
159
|
-
* changes to configure (e.g. enable/disable) the control buttons accordingly.
|
|
160
|
-
*/
|
|
161
|
-
export interface WidgetConfigStatus {
|
|
162
|
-
/**
|
|
163
|
-
* Indicates that the configuration was changed. If true, canceling
|
|
164
|
-
* the editor will first show a dialog to confirm the discard.
|
|
165
|
-
*/
|
|
166
|
-
modified: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* If true, save or add button will be disabled.
|
|
169
|
-
*/
|
|
170
|
-
invalid: boolean;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* An editor component for a widget instance need to implement this interface.
|
|
174
|
-
* After initializing the instance editor component, with widget configuration
|
|
175
|
-
* is set. Optionally, the component can emit changes during editing to control
|
|
176
|
-
* e.g. the dialog behavior like disabling the save button.
|
|
177
|
-
*/
|
|
178
|
-
export interface WidgetInstanceEditor {
|
|
179
|
-
/**
|
|
180
|
-
* The hosting component of the widget instance editor sets the configuration
|
|
181
|
-
* after initialization. The editor component should use the configuration as
|
|
182
|
-
* input and persist all relevant changes within the config. The hosting component
|
|
183
|
-
* takes the config after adding of saving the widget instance and updates the
|
|
184
|
-
* dashboard.
|
|
185
|
-
*/
|
|
186
|
-
config: WidgetConfig | Omit<WidgetConfig, 'id'> | InputSignal<WidgetConfig | Omit<WidgetConfig, 'id'>>;
|
|
187
|
-
/**
|
|
188
|
-
* Optionally, emit updated widget configuration using an event emitter.
|
|
189
|
-
*/
|
|
190
|
-
configChange?: Subject<WidgetConfig | Omit<WidgetConfig, 'id'>> | OutputEmitterRef<WidgetConfig | Omit<WidgetConfig, 'id'>>;
|
|
191
|
-
/**
|
|
192
|
-
* Optionally, inform the hosting component about widget configuration status changes.
|
|
193
|
-
*/
|
|
194
|
-
statusChanges?: Subject<Partial<WidgetConfigStatus>> | OutputEmitterRef<Partial<WidgetConfigStatus>>;
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* State to control the behavior of a widget instance editor wizard.
|
|
198
|
-
* The wizard state is used to control the behavior of the dialog buttons
|
|
199
|
-
* provided by the catalog and editor components.
|
|
200
|
-
*/
|
|
201
|
-
export interface WidgetInstanceEditorWizardState {
|
|
202
|
-
hasNext: boolean;
|
|
203
|
-
hasPrevious: boolean;
|
|
204
|
-
disableNext?: boolean;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* A widget instance editor component that shall support a multi-page
|
|
208
|
-
* widget configuration can implement this interface. The wizard-like
|
|
209
|
-
* page state {@link WidgetInstanceEditorWizardState} needs to be managed
|
|
210
|
-
* by the editor itself and is used to control wizard dialog buttons
|
|
211
|
-
* that are provided by the catalog and editor component.
|
|
212
|
-
*/
|
|
213
|
-
export interface WidgetInstanceEditorWizard extends WidgetInstanceEditor {
|
|
214
|
-
/**
|
|
215
|
-
* The current state of the multi-page widget instance editor. The state
|
|
216
|
-
* is access after `#next()` or `#previous()` is invoked.
|
|
217
|
-
*/
|
|
218
|
-
state: WidgetInstanceEditorWizardState;
|
|
219
|
-
/**
|
|
220
|
-
* Emit changes as needed during the user interaction with the editor.
|
|
221
|
-
*/
|
|
222
|
-
stateChange?: Subject<WidgetInstanceEditorWizardState> | OutputEmitterRef<WidgetInstanceEditorWizardState>;
|
|
223
|
-
/**
|
|
224
|
-
* Is invoked from the next button. Display next page as consequence.
|
|
225
|
-
* For web components, implementing `next()` requires adding an event listener
|
|
226
|
-
* for the `next` event on the element.
|
|
227
|
-
*/
|
|
228
|
-
next(): void;
|
|
229
|
-
/**
|
|
230
|
-
* Is invoked from the previous button. Display previous page as consequence.
|
|
231
|
-
* For web components, implementing `previous()` requires adding an event listener
|
|
232
|
-
* for the `previous` event on the element.
|
|
233
|
-
*/
|
|
234
|
-
previous(): void;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Event type used when a widget config is changed from within
|
|
238
|
-
* a widget instance. For example, a widget instance component
|
|
239
|
-
* may assign and change the primary actions. It needs to publish the
|
|
240
|
-
* change so that the UI in the hosting dashboard card can be updated.
|
|
241
|
-
*/
|
|
242
|
-
export type WidgetConfigEvent = {
|
|
243
|
-
/** Primary actions that are visible in normal view mode. */
|
|
244
|
-
primaryActions?: (MenuItemLegacy | ContentActionBarMainItem)[];
|
|
245
|
-
/** Secondary (collapsed) actions that are visible in normal view mode. */
|
|
246
|
-
secondaryActions?: (MenuItemLegacy | MenuItem)[];
|
|
247
|
-
/** Primary actions that are visible in editable dashboard mode. */
|
|
248
|
-
primaryEditActions?: (MenuItemLegacy | ContentActionBarMainItem)[];
|
|
249
|
-
/** Secondary (collapsed) actions that are visible in editable dashboard mode. */
|
|
250
|
-
secondaryEditActions?: (MenuItemLegacy | MenuItem)[];
|
|
251
|
-
};
|
|
252
|
-
/**
|
|
253
|
-
* Every widget component implementation needs to implement the {@link WidgetInstance}
|
|
254
|
-
* interface. It provides the interface between the component implementation and the
|
|
255
|
-
* dashboard.
|
|
256
|
-
*/
|
|
257
|
-
export interface WidgetInstance {
|
|
258
|
-
/** The WidgetConfig is set after instantiating the widget component. */
|
|
259
|
-
config: WidgetConfig | InputSignal<WidgetConfig>;
|
|
260
|
-
/**
|
|
261
|
-
* The dashboard will set the editable property to `true`, if the dashboard
|
|
262
|
-
* enters the editable mode. The attribute is used to inform every
|
|
263
|
-
* widget instance.
|
|
264
|
-
*/
|
|
265
|
-
editable?: boolean;
|
|
266
|
-
/** Primary actions that are visible in normal view mode. */
|
|
267
|
-
primaryActions?: (MenuItemLegacy | ContentActionBarMainItem)[];
|
|
268
|
-
/** Secondary (collapsed) actions that are visible in normal view mode. */
|
|
269
|
-
secondaryActions?: (MenuItemLegacy | MenuItem)[];
|
|
270
|
-
/** Primary actions that are visible in editable dashboard mode. */
|
|
271
|
-
primaryEditActions?: (MenuItemLegacy | ContentActionBarMainItem)[];
|
|
272
|
-
/** Secondary (collapsed) actions that are visible in editable dashboard mode. */
|
|
273
|
-
secondaryEditActions?: (MenuItemLegacy | MenuItem)[];
|
|
274
|
-
/** {@link WidgetInstance} component implementations should emit change
|
|
275
|
-
* events after changing the instance configuration like the actions.
|
|
276
|
-
*/
|
|
277
|
-
configChange?: EventEmitter<WidgetConfigEvent>;
|
|
278
|
-
/**
|
|
279
|
-
* An optional footer template that is added into the dashboard card's footer.
|
|
280
|
-
*/
|
|
281
|
-
footer?: TemplateRef<unknown>;
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* Type to define the position of a widget instance, consisting of
|
|
285
|
-
* the instance id and x, y, width and height.
|
|
286
|
-
*/
|
|
287
|
-
export type WidgetPositionConfig = Pick<WidgetConfig, 'id' | 'x' | 'y' | 'width' | 'height'>;
|
|
288
|
-
/**
|
|
289
|
-
* Function creates a new {@link WidgetConfig} without id from a {@link Widget} and
|
|
290
|
-
* copies all default values into the {@link WidgetConfig}.
|
|
291
|
-
* @param widget - The source to create the new {@link WidgetConfig} from.
|
|
292
|
-
* @returns The created {@link WidgetConfig} without id.
|
|
293
|
-
*/
|
|
294
|
-
export declare const createWidgetConfig: (widget: Widget) => Omit<WidgetConfig, "id">;
|
|
295
|
-
/**
|
|
296
|
-
* The Remote Module definition is based on `@angular-architects`.
|
|
297
|
-
* We take it over into this file to prevent adding a hard dependency.
|
|
298
|
-
*/
|
|
299
|
-
export type LoadRemoteModuleOptions = LoadRemoteModuleScriptOptions | LoadRemoteModuleEsmOptions | LoadRemoteModuleManifestOptions;
|
|
300
|
-
export type LoadRemoteModuleScriptOptions = {
|
|
301
|
-
type?: 'script';
|
|
302
|
-
remoteEntry?: string;
|
|
303
|
-
remoteName: string;
|
|
304
|
-
exposedModule: string;
|
|
305
|
-
};
|
|
306
|
-
export type LoadRemoteModuleEsmOptions = {
|
|
307
|
-
type: 'module';
|
|
308
|
-
remoteEntry: string;
|
|
309
|
-
exposedModule: string;
|
|
310
|
-
};
|
|
311
|
-
export type LoadRemoteModuleManifestOptions = {
|
|
312
|
-
type: 'manifest';
|
|
313
|
-
remoteName: string;
|
|
314
|
-
exposedModule: string;
|
|
315
|
-
};
|
|
316
|
-
export {};
|
package/public-api.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Siemens 2016 - 2025
|
|
3
|
-
* SPDX-License-Identifier: MIT
|
|
4
|
-
*/
|
|
5
|
-
export * from './components/flexible-dashboard/si-flexible-dashboard.component';
|
|
6
|
-
export * from './components/grid/si-grid.component';
|
|
7
|
-
export * from './components/widget-catalog/si-widget-catalog.component';
|
|
8
|
-
export * from './components/widget-instance-editor-dialog/si-widget-instance-editor-dialog.component';
|
|
9
|
-
export * from './model/configuration';
|
|
10
|
-
export * from './model/gridstack.model';
|
|
11
|
-
export * from './model/si-widget-storage';
|
|
12
|
-
export * from './model/widgets.model';
|
|
13
|
-
export * from './model/si-dashboard-toolbar.model';
|
|
14
|
-
export * from './widget-loader';
|
|
15
|
-
export * from '@siemens/dashboards-ng/translate';
|
|
16
|
-
export * from './public-api.module';
|
package/public-api.module.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Siemens 2016 - 2025
|
|
3
|
-
* SPDX-License-Identifier: MIT
|
|
4
|
-
*/
|
|
5
|
-
import { ModuleWithProviders, Provider } from '@angular/core';
|
|
6
|
-
import { Config } from './model/configuration';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "./components/flexible-dashboard/si-flexible-dashboard.component";
|
|
9
|
-
import * as i2 from "./components/grid/si-grid.component";
|
|
10
|
-
import * as i3 from "./components/widget-catalog/si-widget-catalog.component";
|
|
11
|
-
import * as i4 from "./components/widget-instance-editor-dialog/si-widget-instance-editor-dialog.component";
|
|
12
|
-
export declare class SiDashboardsNgModule {
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated The module configuration `forRoot` is not needed any more. You can use the injection tokens
|
|
15
|
-
* `SI_DASHBOARD_CONFIGURATION` and `SI_WIDGET_STORE` direct in your app configuration. We migrated to standalone
|
|
16
|
-
* components already and will delete this module definition later.
|
|
17
|
-
*/
|
|
18
|
-
static forRoot({ config, dashboardApi }: {
|
|
19
|
-
config?: Config;
|
|
20
|
-
/**
|
|
21
|
-
* Provide a custom widget storage.
|
|
22
|
-
*
|
|
23
|
-
* @deprecated Use the provider tokens in your app config instead.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```typescript
|
|
27
|
-
* const appConfig: ApplicationConfig = {
|
|
28
|
-
* providers: [{provide: SI_WIDGET_STORE, useClass: YourWidgetStorage}]
|
|
29
|
-
* }
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
dashboardApi?: Provider;
|
|
33
|
-
}): ModuleWithProviders<SiDashboardsNgModule>;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SiDashboardsNgModule, never>;
|
|
35
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SiDashboardsNgModule, never, [typeof i1.SiFlexibleDashboardComponent, typeof i2.SiGridComponent, typeof i3.SiWidgetCatalogComponent, typeof i4.SiWidgetInstanceEditorDialogComponent], [typeof i1.SiFlexibleDashboardComponent, typeof i2.SiGridComponent, typeof i3.SiWidgetCatalogComponent, typeof i4.SiWidgetInstanceEditorDialogComponent]>;
|
|
36
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SiDashboardsNgModule>;
|
|
37
|
-
}
|
|
38
|
-
export { SiDashboardsNgModule as SimplDashboardsNgModule };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import { Widget } from '../model/widgets.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SiGridService {
|
|
5
|
-
/** @defaultValue [] */
|
|
6
|
-
widgetCatalog: Widget[];
|
|
7
|
-
/**
|
|
8
|
-
* Observable that emits true if si-grid is set to editable.
|
|
9
|
-
* The owner of the editable state is the si-grid component.
|
|
10
|
-
* This subject is used to propagate these state changes via
|
|
11
|
-
* the si-widget-host components to the widgets.
|
|
12
|
-
*/
|
|
13
|
-
editable$: BehaviorSubject<boolean>;
|
|
14
|
-
getWidget(id: string): Widget | undefined;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SiGridService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SiGridService>;
|
|
17
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface SiTranslatableKeys {
|
|
2
|
-
'DASHBOARD.ADD_WIDGET'?: string;
|
|
3
|
-
'DASHBOARD.CANCEL'?: string;
|
|
4
|
-
'DASHBOARD.EDIT'?: string;
|
|
5
|
-
'DASHBOARD.REMOVE_WIDGET_CONFIRMATION_DIALOG.CANCEL'?: string;
|
|
6
|
-
'DASHBOARD.REMOVE_WIDGET_CONFIRMATION_DIALOG.HEADING'?: string;
|
|
7
|
-
'DASHBOARD.REMOVE_WIDGET_CONFIRMATION_DIALOG.MESSAGE'?: string;
|
|
8
|
-
'DASHBOARD.REMOVE_WIDGET_CONFIRMATION_DIALOG.REMOVE'?: string;
|
|
9
|
-
'DASHBOARD.SAVE'?: string;
|
|
10
|
-
'DASHBOARD.WIDGET.EDIT'?: string;
|
|
11
|
-
'DASHBOARD.WIDGET.EXPAND'?: string;
|
|
12
|
-
'DASHBOARD.WIDGET.REMOVE'?: string;
|
|
13
|
-
'DASHBOARD.WIDGET.RESTORE'?: string;
|
|
14
|
-
'DASHBOARD.WIDGET_EDITOR_DIALOG.CANCEL'?: string;
|
|
15
|
-
'DASHBOARD.WIDGET_EDITOR_DIALOG.DISCARD_CONFIG_CHANGE_DIALOG.CANCEL'?: string;
|
|
16
|
-
'DASHBOARD.WIDGET_EDITOR_DIALOG.DISCARD_CONFIG_CHANGE_DIALOG.DISCARD'?: string;
|
|
17
|
-
'DASHBOARD.WIDGET_EDITOR_DIALOG.DISCARD_CONFIG_CHANGE_DIALOG.HEADING'?: string;
|
|
18
|
-
'DASHBOARD.WIDGET_EDITOR_DIALOG.DISCARD_CONFIG_CHANGE_DIALOG.MESSAGE'?: string;
|
|
19
|
-
'DASHBOARD.WIDGET_EDITOR_DIALOG.DISCARD_CONFIG_CHANGE_DIALOG.SAVE'?: string;
|
|
20
|
-
'DASHBOARD.WIDGET_EDITOR_DIALOG.NEXT'?: string;
|
|
21
|
-
'DASHBOARD.WIDGET_EDITOR_DIALOG.PREVIOUS'?: string;
|
|
22
|
-
'DASHBOARD.WIDGET_EDITOR_DIALOG.SAVE'?: string;
|
|
23
|
-
'DASHBOARD.WIDGET_EDITOR_DIALOG.TITLE'?: string;
|
|
24
|
-
'DASHBOARD.WIDGET_LIBRARY.ADD'?: string;
|
|
25
|
-
'DASHBOARD.WIDGET_LIBRARY.CANCEL'?: string;
|
|
26
|
-
'DASHBOARD.WIDGET_LIBRARY.DISCARD_CONFIG_CHANGE_DIALOG.CANCEL'?: string;
|
|
27
|
-
'DASHBOARD.WIDGET_LIBRARY.DISCARD_CONFIG_CHANGE_DIALOG.DISCARD'?: string;
|
|
28
|
-
'DASHBOARD.WIDGET_LIBRARY.DISCARD_CONFIG_CHANGE_DIALOG.HEADING'?: string;
|
|
29
|
-
'DASHBOARD.WIDGET_LIBRARY.DISCARD_CONFIG_CHANGE_DIALOG.MESSAGE'?: string;
|
|
30
|
-
'DASHBOARD.WIDGET_LIBRARY.EMPTY'?: string;
|
|
31
|
-
'DASHBOARD.WIDGET_LIBRARY.NEXT'?: string;
|
|
32
|
-
'DASHBOARD.WIDGET_LIBRARY.PREVIOUS'?: string;
|
|
33
|
-
'DASHBOARD.WIDGET_LIBRARY.SEARCH_PLACEHOLDER'?: string;
|
|
34
|
-
'DASHBOARD.WIDGET_LIBRARY.TITLE'?: string;
|
|
35
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Siemens 2016 - 2025
|
|
3
|
-
* SPDX-License-Identifier: MIT
|
|
4
|
-
*/
|
|
5
|
-
import { Provider } from '@angular/core';
|
|
6
|
-
import { SiTranslatableKeys } from './si-translatable-keys.interface';
|
|
7
|
-
export declare const provideSiDashboardsTranslatableOverrides: (values: SiTranslatableKeys) => Provider;
|
package/widget-loader.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Siemens 2016 - 2025
|
|
3
|
-
* SPDX-License-Identifier: MIT
|
|
4
|
-
*/
|
|
5
|
-
import { ComponentRef, EnvironmentInjector, Injector, ViewContainerRef } from '@angular/core';
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
|
-
import { WidgetComponentFactory, WidgetInstance, WidgetInstanceEditor } from './model/widgets.model';
|
|
8
|
-
export type SetupComponentFn = <T>(factory: WidgetComponentFactory, componentName: string, host: ViewContainerRef, injector: Injector, envInjector: EnvironmentInjector) => Observable<ComponentRef<T>>;
|
|
9
|
-
export declare const widgetFactoryRegistry: {
|
|
10
|
-
_factories: {
|
|
11
|
-
[key: string]: SetupComponentFn;
|
|
12
|
-
};
|
|
13
|
-
register(name: string, factoryFn: SetupComponentFn): void;
|
|
14
|
-
getFactoryFn(name: string): SetupComponentFn;
|
|
15
|
-
hasFactoryFn(name: string): boolean;
|
|
16
|
-
};
|
|
17
|
-
export declare const setupWidgetInstance: (widgetComponentFactory: WidgetComponentFactory, host: ViewContainerRef, injector: Injector, envInjector: EnvironmentInjector) => Observable<ComponentRef<WidgetInstance>>;
|
|
18
|
-
export declare const setupWidgetEditor: (widgetComponentFactory: WidgetComponentFactory, host: ViewContainerRef, injector: Injector, envInjector: EnvironmentInjector) => Observable<ComponentRef<WidgetInstanceEditor>>;
|