piral-dashboard 0.15.7-beta.5155 → 0.15.8-beta.5168

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 - 2022 smapiot
3
+ Copyright (c) 2019 - 2023 smapiot
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -4,4 +4,8 @@ import { TileRegistration } from './types';
4
4
  export interface DashboardProps extends RouteComponentProps {
5
5
  filter?(tile: TileRegistration): boolean;
6
6
  }
7
+ /**
8
+ * The dashboard component. Integrate this as a page or in a component
9
+ * where dashboard information (tiles) should be shown.
10
+ */
7
11
  export declare const Dashboard: React.FC<DashboardProps>;
package/esm/Dashboard.js CHANGED
@@ -1,6 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { useGlobalState } from 'piral-core';
3
3
  import { PiralDashboardContainer, PiralDashboardTile } from './components';
4
+ /**
5
+ * The dashboard component. Integrate this as a page or in a component
6
+ * where dashboard information (tiles) should be shown.
7
+ */
4
8
  export const Dashboard = (props) => {
5
9
  const tiles = useGlobalState((s) => s.registry.tiles);
6
10
  const { filter = () => true } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../src/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAO3E,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,KAAK,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,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AE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,EAAE,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,CAAC;IACtC,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;SAChC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;SACrC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACZ,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,EAAE,cAAc,GAAG,CAAC,EAAE,WAAW,GAAG,CAAC,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,WAAW,CAAC;QAC/E,OAAO,CACL,oBAAC,kBAAkB,IACjB,GAAG,EAAE,IAAI,EACT,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,WAAW;YACjB,oBAAC,SAAS,IAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,GAAI,CACtC,CACtB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEL,OAAO,oBAAC,uBAAuB,oBAAK,KAAK,IAAE,QAAQ,EAAE,QAAQ,IAAI,CAAC;AACpE,CAAC,CAAC;AACF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC"}
@@ -4,4 +4,8 @@ import { TileRegistration } from './types';
4
4
  export interface DashboardProps extends RouteComponentProps {
5
5
  filter?(tile: TileRegistration): boolean;
6
6
  }
7
+ /**
8
+ * The dashboard component. Integrate this as a page or in a component
9
+ * where dashboard information (tiles) should be shown.
10
+ */
7
11
  export declare const Dashboard: React.FC<DashboardProps>;
package/lib/Dashboard.js CHANGED
@@ -4,6 +4,10 @@ exports.Dashboard = void 0;
4
4
  const React = require("react");
5
5
  const piral_core_1 = require("piral-core");
6
6
  const components_1 = require("./components");
7
+ /**
8
+ * The dashboard component. Integrate this as a page or in a component
9
+ * where dashboard information (tiles) should be shown.
10
+ */
7
11
  const Dashboard = (props) => {
8
12
  const tiles = (0, piral_core_1.useGlobalState)((s) => s.registry.tiles);
9
13
  const { filter = () => true } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../src/Dashboard.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,2CAA4C;AAC5C,6CAA2E;AAOpE,MAAM,SAAS,GAA6B,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,KAAK,GAAG,IAAA,2BAAc,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,EAAE,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,CAAC;IACtC,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;SAChC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;SACrC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACZ,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,EAAE,cAAc,GAAG,CAAC,EAAE,WAAW,GAAG,CAAC,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,WAAW,CAAC;QAC/E,OAAO,CACL,oBAAC,+BAAkB,IACjB,GAAG,EAAE,IAAI,EACT,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,WAAW;YACjB,oBAAC,SAAS,IAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,GAAI,CACtC,CACtB,CAA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AAC,CAAC;IAEL,OAAO,oBAAC,oCAAuB,oBAAK,KAAK,IAAE,QAAQ,EAAE,QAAQ,IAAI,CAAC;AACpE,CAAC,CAAC;AArBW,QAAA,SAAS,aAqBpB;AACF,iBAAS,CAAC,WAAW,GAAG,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-dashboard",
3
- "version": "0.15.7-beta.5155",
3
+ "version": "0.15.8-beta.5168",
4
4
  "description": "Plugin for creating a centralized dashboard in Piral.",
5
5
  "keywords": [
6
6
  "piral",
@@ -63,12 +63,12 @@
63
63
  "devDependencies": {
64
64
  "@types/react": "^18.0.0",
65
65
  "@types/react-router-dom": "^5.1.6",
66
- "piral-core": "0.15.7-beta.5155",
66
+ "piral-core": "0.15.8-beta.5168",
67
67
  "react": "^18.0.0"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "piral-core": "0.14.x || 0.15.x",
71
71
  "react": ">=16.8.0"
72
72
  },
73
- "gitHead": "f4d7b20a348a2474a0b7c5bfbb265e544732865c"
73
+ "gitHead": "43b50df63d9d3f75b2c07911d8275786157ffabf"
74
74
  }
package/src/Dashboard.tsx CHANGED
@@ -8,6 +8,10 @@ export interface DashboardProps extends RouteComponentProps {
8
8
  filter?(tile: TileRegistration): boolean;
9
9
  }
10
10
 
11
+ /**
12
+ * The dashboard component. Integrate this as a page or in a component
13
+ * where dashboard information (tiles) should be shown.
14
+ */
11
15
  export const Dashboard: React.FC<DashboardProps> = (props) => {
12
16
  const tiles = useGlobalState((s) => s.registry.tiles);
13
17
  const { filter = () => true } = props;