andoncloud-map-widget 1.1.7 → 1.1.9

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 (47) hide show
  1. package/dist/index.d.ts +36 -6
  2. package/dist/index.js +839 -4
  3. package/dist/index.js.map +1 -1
  4. package/dist/style.css +1077 -0
  5. package/package.json +26 -24
  6. package/dist/assets/map.png +0 -0
  7. package/dist/components/Map/Control/index.d.ts +0 -11
  8. package/dist/components/Map/LayerSettings/index.d.ts +0 -10
  9. package/dist/components/Map/index.d.ts +0 -7
  10. package/dist/components/Map/styles.d.ts +0 -3
  11. package/dist/components/Map/types.d.ts +0 -2
  12. package/dist/components/SettingsFormContent/index.d.ts +0 -5
  13. package/dist/components/SettingsFormContent/styles.d.ts +0 -3
  14. package/dist/components/Widget/index.d.ts +0 -5
  15. package/dist/components/Widget/utils.d.ts +0 -12
  16. package/dist/components/WidgetView/index.d.ts +0 -4
  17. package/dist/components/WidgetView/styles.d.ts +0 -3
  18. package/dist/cypress/support/component.d.ts +0 -9
  19. package/dist/cypress.config.d.ts +0 -2
  20. package/dist/i18n.d.ts +0 -2
  21. package/dist/index.css +0 -2
  22. package/dist/index.css.map +0 -1
  23. package/dist/locales/index.d.ts +0 -25
  24. package/dist/src/components/Map/Control/index.d.ts +0 -11
  25. package/dist/src/components/Map/LayerSettings/LayerSettings.cy.d.ts +0 -1
  26. package/dist/src/components/Map/LayerSettings/index.d.ts +0 -10
  27. package/dist/src/components/Map/Map.cy.d.ts +0 -1
  28. package/dist/src/components/Map/index.d.ts +0 -5
  29. package/dist/src/components/Map/leafletLocale.d.ts +0 -1
  30. package/dist/src/components/Map/styles.d.ts +0 -3
  31. package/dist/src/components/Map/types.d.ts +0 -2
  32. package/dist/src/components/Map/useMap.d.ts +0 -20
  33. package/dist/src/components/Map/utils.d.ts +0 -16
  34. package/dist/src/components/SettingsFormContent/SettingsFormContent.cy.d.ts +0 -1
  35. package/dist/src/components/SettingsFormContent/index.d.ts +0 -5
  36. package/dist/src/components/Widget/index.d.ts +0 -5
  37. package/dist/src/components/Widget/utils.cy.d.ts +0 -1
  38. package/dist/src/components/Widget/utils.d.ts +0 -12
  39. package/dist/src/components/WidgetView/index.d.ts +0 -4
  40. package/dist/src/index.d.ts +0 -6
  41. package/dist/src/locales/index.d.ts +0 -51
  42. package/dist/src/stories/Widget.stories.d.ts +0 -5
  43. package/dist/src/types.d.ts +0 -23
  44. package/dist/src/version.d.ts +0 -1
  45. package/dist/stories/Widget.stories.d.ts +0 -5
  46. package/dist/types.d.ts +0 -23
  47. package/dist/version.d.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,36 @@
1
- import './index.css';
2
- export { default as Widget } from './components/Widget';
3
- export declare const getDisplayName: (lang: "en" | "pl") => "Map" | "Mapa" | "map-widget";
4
- export declare const requiredFeatures: string[];
5
- export declare const extraPermissions: string[];
6
- export { LIBRARY_VERSION as version } from './version';
1
+ import { BaseWidgetData, BaseWidgetSettings, FilterValues, ListFloorPlans_FloorPlan, ListStatusChanges_StatusChange, ListWorkplaces_Workplace, WidgetProps } from "andoncloud-dashboard-toolkit";
2
+ import { LatLng } from "leaflet";
3
+
4
+ //#region src/types.d.ts
5
+ interface WidgetViewData {
6
+ workplaces: ListWorkplaces_Workplace[];
7
+ statusChanges: ListStatusChanges_StatusChange[];
8
+ }
9
+ interface WidgetSettingsData {
10
+ floorPlans: ListFloorPlans_FloorPlan[];
11
+ }
12
+ interface WidgetData extends BaseWidgetData, WidgetViewData, WidgetSettingsData {}
13
+ interface WidgetSettings extends BaseWidgetSettings {
14
+ floorPlanId: string;
15
+ center: LatLng;
16
+ zoom: number;
17
+ features: GeoJSON.Feature[];
18
+ }
19
+ //#endregion
20
+ //#region src/components/Widget/index.d.ts
21
+ declare const Widget: React.FC<WidgetProps<WidgetData, WidgetSettings>>;
22
+ //#endregion
23
+ //#region src/core/title.d.ts
24
+ declare const getDisplayName: (lang: string) => string;
25
+ declare const getTitle: (data: WidgetData | undefined, settings: WidgetSettings | undefined, _filters: FilterValues | undefined, lang: string) => string;
26
+ //#endregion
27
+ //#region src/version.d.ts
28
+ declare const LIBRARY_VERSION = "1.1.9";
29
+ //#endregion
30
+ //#region src/index.d.ts
31
+ declare const thumbnail: string | undefined;
32
+ declare const requiredFeatures: string[];
33
+ declare const extraPermissions: string[];
34
+ //#endregion
35
+ export { Widget, extraPermissions, getDisplayName, getTitle, requiredFeatures, thumbnail, LIBRARY_VERSION as version };
36
+ //# sourceMappingURL=index.d.ts.map