andoncloud-workplaces-state-timelines-widget 1.2.4 → 1.2.6

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/dist/index.d.ts CHANGED
@@ -1,5 +1,32 @@
1
- export { default as Widget } from './components/Widget';
2
- export declare const getDisplayName: (lang: "en" | "pl") => "Status changes history for current shift" | "Historia zmian statusów dla obecnej zmiany" | "workplaces-state-timelines-widget";
3
- export declare const requiredFeatures: string[];
4
- export declare const extraPermissions: string[];
5
- export { LIBRARY_VERSION as version } from './version';
1
+ import { BaseWidgetData, BaseWidgetSettings, FilterValues, ListShifts_Shift, ListStatusChanges_StatusChange, ListWorkplaces_Workplace, WidgetProps } from "andoncloud-dashboard-toolkit";
2
+ //#region src/types.d.ts
3
+ interface WidgetViewData {
4
+ shifts: ListShifts_Shift[];
5
+ workplaces: ListWorkplaces_Workplace[];
6
+ statusChanges: ListStatusChanges_StatusChange[];
7
+ }
8
+ interface WidgetSettingsData {
9
+ workplaces: ListWorkplaces_Workplace[];
10
+ }
11
+ interface WidgetData extends BaseWidgetData, WidgetViewData, WidgetSettingsData {}
12
+ interface WidgetSettings extends BaseWidgetSettings {
13
+ workplacesIds: string[];
14
+ }
15
+ //#endregion
16
+ //#region src/components/Widget/index.d.ts
17
+ declare const Widget: React.FC<WidgetProps<WidgetData, WidgetSettings>>;
18
+ //#endregion
19
+ //#region src/core/title.d.ts
20
+ declare const getDisplayName: (lang: string) => string;
21
+ declare const getTitle: (data: WidgetData | undefined, _settings: WidgetSettings | undefined, _filters: FilterValues | undefined, lang: string) => string;
22
+ //#endregion
23
+ //#region src/version.d.ts
24
+ declare const LIBRARY_VERSION = "1.2.6";
25
+ //#endregion
26
+ //#region src/index.d.ts
27
+ declare const thumbnail: string | undefined;
28
+ declare const requiredFeatures: string[];
29
+ declare const extraPermissions: string[];
30
+ //#endregion
31
+ export { Widget, extraPermissions, getDisplayName, getTitle, requiredFeatures, thumbnail, LIBRARY_VERSION as version };
32
+ //# sourceMappingURL=index.d.ts.map