andoncloud-workplaces-state-timelines-widget 1.1.8 → 1.2.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.
- package/dist/components/Loading/index.d.ts +3 -0
- package/dist/components/SettingsForm/index.d.ts +4 -0
- package/dist/components/SettingsFormContent/index.d.ts +5 -5
- package/dist/components/Timeline/index.d.ts +10 -10
- package/dist/components/Timeline/styled.d.ts +10 -11
- package/dist/components/TimelineLoader/index.d.ts +3 -3
- package/dist/components/Widget/index.d.ts +5 -5
- package/dist/components/Widget/utils.d.ts +12 -0
- package/dist/components/WidgetSettings/index.d.ts +4 -0
- package/dist/components/WidgetView/index.d.ts +4 -4
- package/dist/helpers.d.ts +3 -3
- package/dist/i18n.d.ts +2 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/locales/index.d.ts +25 -25
- package/dist/stories/Widget.stories.d.ts +5 -3
- package/dist/types.d.ts +18 -18
- package/dist/utils/graphql-sdk.d.ts +142 -0
- package/dist/version.d.ts +1 -1
- package/package.json +24 -22
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SettingsFormContentProps } from 'andoncloud-widget-base';
|
|
3
|
-
import { WidgetData, WidgetSettings } from '@/types';
|
|
4
|
-
declare const SettingsFormContent: React.FC<SettingsFormContentProps<WidgetData, WidgetSettings>>;
|
|
5
|
-
export default SettingsFormContent;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SettingsFormContentProps } from 'andoncloud-widget-base';
|
|
3
|
+
import { WidgetData, WidgetSettings } from '@/types';
|
|
4
|
+
declare const SettingsFormContent: React.FC<SettingsFormContentProps<WidgetData, WidgetSettings>>;
|
|
5
|
+
export default SettingsFormContent;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface TimelineProps {
|
|
4
|
-
title: string;
|
|
5
|
-
shift: NormalizedShift | null;
|
|
6
|
-
statusChanges:
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const Timeline: React.FC<TimelineProps>;
|
|
10
|
-
export default Timeline;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ListStatusChanges_StatusChange, NormalizedShift } from 'andoncloud-dashboard-toolkit';
|
|
3
|
+
export interface TimelineProps {
|
|
4
|
+
title: string;
|
|
5
|
+
shift: NormalizedShift | null;
|
|
6
|
+
statusChanges: ListStatusChanges_StatusChange[];
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Timeline: React.FC<TimelineProps>;
|
|
10
|
+
export default Timeline;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const TimelineElement: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & TimelineElementProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1
|
+
import { AndonLightColor } from 'andoncloud-dashboard-toolkit';
|
|
2
|
+
export interface TimelineElementProps {
|
|
3
|
+
percentWidth: number;
|
|
4
|
+
color?: AndonLightColor;
|
|
5
|
+
}
|
|
6
|
+
export declare const TimelineRow: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const TimelineWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export declare const TimelineTimeInfoContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const TimelineTimeInfo: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
+
export declare const TimelineElement: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & TimelineElementProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const TimelineLoader: () => React.JSX.Element;
|
|
3
|
-
export default TimelineLoader;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const TimelineLoader: () => React.JSX.Element;
|
|
3
|
+
export default TimelineLoader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WidgetProps } from 'andoncloud-dashboard-toolkit';
|
|
3
|
-
import { WidgetData, WidgetSettings } from '@/types';
|
|
4
|
-
declare const Widget: React.FC<WidgetProps<WidgetData, WidgetSettings>>;
|
|
5
|
-
export default Widget;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetProps } from 'andoncloud-dashboard-toolkit';
|
|
3
|
+
import { WidgetData, WidgetSettings } from '@/types';
|
|
4
|
+
declare const Widget: React.FC<WidgetProps<WidgetData, WidgetSettings>>;
|
|
5
|
+
export default Widget;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
export declare const getSettingsFormProps: (t: TFunction) => {
|
|
4
|
+
initialValues: {
|
|
5
|
+
workplacesIds: never[];
|
|
6
|
+
};
|
|
7
|
+
validationSchema: yup.ObjectSchema<{
|
|
8
|
+
workplacesIds: (string | undefined)[];
|
|
9
|
+
}, yup.AnyObject, {
|
|
10
|
+
workplacesIds: "";
|
|
11
|
+
}, "">;
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WidgetViewProps } from '@/types';
|
|
3
|
-
declare const WidgetView: React.FC<WidgetViewProps>;
|
|
4
|
-
export default WidgetView;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetViewProps } from '@/types';
|
|
3
|
+
declare const WidgetView: React.FC<WidgetViewProps>;
|
|
4
|
+
export default WidgetView;
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AndonLightColor,
|
|
2
|
-
export declare const durationSeconds: (shift: NormalizedShift, statusChange:
|
|
3
|
-
export declare const mapTimelineColor: (color: AndonLightColor) => string;
|
|
1
|
+
import { AndonLightColor, ListStatusChanges_StatusChange, NormalizedShift } from 'andoncloud-dashboard-toolkit';
|
|
2
|
+
export declare const durationSeconds: (shift: NormalizedShift, statusChange: ListStatusChanges_StatusChange, currentDate: Date) => number;
|
|
3
|
+
export declare const mapTimelineColor: (color: AndonLightColor) => string;
|
package/dist/i18n.d.ts
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Widget } from './components/Widget';
|
|
2
|
-
export declare const getDisplayName: (lang:
|
|
3
|
-
export declare const permissions: never[];
|
|
4
|
-
export { LIBRARY_VERSION as version } from './version';
|
|
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 permissions: never[];
|
|
4
|
+
export { LIBRARY_VERSION as version } from './version';
|