@j2inn/fin5-ui-utils 8.0.4 → 8.1.1-beta.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/fantomProps/createFin5Props/runCreateFin5Props.js +6 -2
- package/dist/fantomProps/createFin5Props/runCreateFin5Props.js.map +1 -1
- package/dist/fin5Top/fin5Top.d.ts +1 -1
- package/dist/fin5Top/openFin5Alarm.d.ts +1 -1
- package/dist/fin5Top/openFin5Historian.d.ts +2 -2
- package/dist/react/app/Fin5AppContainer.js +5 -2
- package/dist/react/app/Fin5AppContainer.js.map +1 -1
- package/dist/react/components/RecordImage.d.ts +1 -1
- package/dist/react/components/charts/line-bar/Chart.d.ts +2 -2
- package/dist/react/components/charts/pie/PieChart.d.ts +3 -3
- package/dist/react/components/navigation/HeaderSiderLayout.d.ts +1 -1
- package/dist/react/components/navigation/MenuPage.d.ts +1 -1
- package/dist/react/components/navigation/ReactRouterLayout.d.ts +1 -1
- package/dist/react/components/resolvable/configurationForm/ConfigurationForm.d.ts +4 -4
- package/dist/react/components/resolvable/configurationForm/ConfigurationFormEntry.d.ts +2 -2
- package/dist_es/fantomProps/createFin5Props/runCreateFin5Props.js +6 -2
- package/dist_es/fantomProps/createFin5Props/runCreateFin5Props.js.map +1 -1
- package/dist_es/fin5Top/fin5Top.d.ts +1 -1
- package/dist_es/fin5Top/openFin5Alarm.d.ts +1 -1
- package/dist_es/fin5Top/openFin5Historian.d.ts +2 -2
- package/dist_es/react/app/Fin5AppContainer.js +5 -2
- package/dist_es/react/app/Fin5AppContainer.js.map +1 -1
- package/dist_es/react/components/RecordImage.d.ts +1 -1
- package/dist_es/react/components/charts/line-bar/Chart.d.ts +2 -2
- package/dist_es/react/components/charts/pie/PieChart.d.ts +3 -3
- package/dist_es/react/components/navigation/HeaderSiderLayout.d.ts +1 -1
- package/dist_es/react/components/navigation/MenuPage.d.ts +1 -1
- package/dist_es/react/components/navigation/ReactRouterLayout.d.ts +1 -1
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationForm.d.ts +4 -4
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationFormEntry.d.ts +2 -2
- package/package.json +1 -1
|
@@ -12,6 +12,10 @@ const path_1 = __importDefault(require("path"));
|
|
|
12
12
|
/**
|
|
13
13
|
* Run the creation of the FIN5 properties as a script.
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
const srcDir = process.argv[2] ? path_1.default.resolve(process.argv[2]) : path_1.default.resolve();
|
|
16
|
+
const outDir = process.argv[3]
|
|
17
|
+
? path_1.default.resolve(process.argv[3])
|
|
18
|
+
: path_1.default.resolve('fin5/locale');
|
|
19
|
+
console.log(`Creating FIN5 property language files from '${srcDir}' to '${outDir}'...`);
|
|
20
|
+
(0, _1.default)(srcDir, outDir).then(() => console.log('Successfully completed property file creation'), (error) => console.error('Failed to create property file', error));
|
|
17
21
|
//# sourceMappingURL=runCreateFin5Props.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runCreateFin5Props.js","sourceRoot":"","sources":["../../../src/fantomProps/createFin5Props/runCreateFin5Props.ts"],"names":[],"mappings":";;;;;;AAEA,yCAA+B;AAC/B,gDAAuB;AAEvB;;GAEG;AAEH;;GAEG;AAEH,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"runCreateFin5Props.js","sourceRoot":"","sources":["../../../src/fantomProps/createFin5Props/runCreateFin5Props.ts"],"names":[],"mappings":";;;;;;AAEA,yCAA+B;AAC/B,gDAAuB;AAEvB;;GAEG;AAEH;;GAEG;AAEH,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAI,CAAC,OAAO,EAAE,CAAA;AAC/E,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC,cAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;AAE9B,OAAO,CAAC,GAAG,CACV,+CAA+C,MAAM,SAAS,MAAM,MAAM,CAC1E,CAAA;AACD,IAAA,UAAe,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CACnC,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,+CAA+C,CAAC,EAClE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,CAAC,CACjE,CAAA"}
|
|
@@ -115,7 +115,7 @@ interface LanguageManager {
|
|
|
115
115
|
interface Fin5AppComponent {
|
|
116
116
|
set: (value: unknown) => Promise<undefined>;
|
|
117
117
|
}
|
|
118
|
-
export
|
|
118
|
+
export type TargetRef = string | null | undefined;
|
|
119
119
|
export interface ColorScheme {
|
|
120
120
|
primary: string;
|
|
121
121
|
bodyBackground: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type HistorianType = 'point' | 'query' | 'string';
|
|
2
|
+
export type HistorianArgs = string | (string | undefined)[];
|
|
3
3
|
export declare const openFin5HistorianApp: (queryType?: HistorianType, args?: HistorianArgs) => Promise<void>;
|
|
@@ -76,13 +76,12 @@ exports.Fin5AppContainer = (0, mobx_react_lite_1.observer)(({ children, appStore
|
|
|
76
76
|
const rootStore = rootStoreRef.current;
|
|
77
77
|
const [hashProjName] = (0, useFin5AppURLHashParameter_1.useFin5AppURLHashParameter)('projectName');
|
|
78
78
|
const containerProject = project || hashProjName || fin5Top_1.fin5Top?.finstack?.projectName || '';
|
|
79
|
+
const [hashTargetRef] = (0, useFin5AppURLHashParameter_1.useFin5AppURLHashParameter)('targetRef');
|
|
79
80
|
const locale = fin5Top_1.fin5Top?.languageManager?.currentLang ?? navigator?.language;
|
|
80
81
|
rootStore.locale = locale;
|
|
81
82
|
if (!rootStore.allLocales.includes(locale)) {
|
|
82
83
|
rootStore.allLocales.push(locale);
|
|
83
84
|
}
|
|
84
|
-
const target = fin5Top_1.fin5Top?.app?.TargetRef?.() || '';
|
|
85
|
-
rootStore.target = target ? haystack_core_1.HRef.make(target).value : '';
|
|
86
85
|
const initialized = hasInitialized(appStore)
|
|
87
86
|
? appStore.initialized
|
|
88
87
|
: false;
|
|
@@ -97,6 +96,10 @@ exports.Fin5AppContainer = (0, mobx_react_lite_1.observer)(({ children, appStore
|
|
|
97
96
|
getHostServiceUrl,
|
|
98
97
|
});
|
|
99
98
|
const [containerClient, setContainerClient] = (0, react_1.useState)(getClient);
|
|
99
|
+
(0, react_1.useEffect)(() => {
|
|
100
|
+
const target = hashTargetRef || '';
|
|
101
|
+
rootStore.target = target ? haystack_core_1.HRef.make(target).value : '';
|
|
102
|
+
}, [hashTargetRef]);
|
|
100
103
|
(0, react_1.useEffect)(() => {
|
|
101
104
|
setLoading(true);
|
|
102
105
|
const newClient = getClient();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fin5AppContainer.js","sourceRoot":"","sources":["../../../src/react/app/Fin5AppContainer.tsx"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAA0D;AAE1D,gDAAuE;AACvE,qDAA0C;AAC1C,yDAAqD;AACrD,uDAMyB;AACzB,mDAA8C;AAC9C,wCAA2C;AAC3C,yCAAyC;AACzC,kCAAkE;AAClE,mDAA+C;AAC/C,yFAAqF;AACrF,iDAAoC;AACpC,+DAA8E;AAC9E,kEAAyC;AAEzC,MAAM,WAAW,GAAG,QAAQ,CAAA;AAE5B,MAAM,aAAa,GAA0B,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAU,EAAE,CACzE,GAAG,MAAM,IAAI,WAAW,QAAQ,IAAI,EAAE,CAAA;AAE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Ae,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ;YACxC,8BAAC,8BAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,eAAe;gBAC7C,8BAAC,oBAAY,IACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc;oBAC1B,8BAAC,yBAAa,IAAC,KAAK,EAAE,KAAK;wBAC1B,8BAAC,gBAAM,IAAC,OAAO,EAAE,OAAO,IAAI,WAAW;4BACtC,8BAAC,6BAAa,IACb,IAAI,6CACH,QAAQ,CACM,CACR,CACM,CACF,CACS,CACC,CACG,CAC/B,CAAA;AACF,CAAC,CACD,CAAA"}
|
|
@@ -17,4 +17,4 @@ export interface RecordImageProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* Displays an image from a bin record or a fallback if the given imageRef is not valid or if the image can't be found.
|
|
19
19
|
*/
|
|
20
|
-
export declare const RecordImage: ({ imageRef, fallbackComponent, imgProps, }: RecordImageProps) => JSX.Element;
|
|
20
|
+
export declare const RecordImage: ({ imageRef, fallbackComponent, imgProps, }: RecordImageProps) => React.JSX.Element;
|
|
@@ -2,7 +2,7 @@ import * as am5 from '@amcharts/amcharts5';
|
|
|
2
2
|
import { ITimeInterval } from '@amcharts/amcharts5/.internal/core/util/Time';
|
|
3
3
|
import * as am5xy from '@amcharts/amcharts5/xy';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
export
|
|
5
|
+
export type StackedColumnChartInterfaceColors = {
|
|
6
6
|
[Property in keyof am5.IInterfaceColorsSettings]: string;
|
|
7
7
|
};
|
|
8
8
|
export interface StackedColumnChartColorPalette {
|
|
@@ -97,7 +97,7 @@ export interface ChartProps {
|
|
|
97
97
|
/**
|
|
98
98
|
* amcharts5 theme classes to be used by the chart @see https://www.amcharts.com/docs/v5/concepts/themes/
|
|
99
99
|
*/
|
|
100
|
-
chartThemes?: typeof am5.Theme[];
|
|
100
|
+
chartThemes?: (typeof am5.Theme)[];
|
|
101
101
|
/**
|
|
102
102
|
* Settings for chart customization @see https://www.amcharts.com/docs/v5/reference/xychart/#Settings
|
|
103
103
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as am5 from '@amcharts/amcharts5';
|
|
2
2
|
import * as am5percent from '@amcharts/amcharts5/percent';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
export
|
|
4
|
+
export type PieChartInterfaceColors = {
|
|
5
5
|
[Property in keyof am5.IInterfaceColorsSettings]: string;
|
|
6
6
|
};
|
|
7
7
|
export interface PieChartColorPalette {
|
|
@@ -28,7 +28,7 @@ export interface PieChartProps {
|
|
|
28
28
|
/**
|
|
29
29
|
* amcharts5 theme classes to be used by the chart @see https://www.amcharts.com/docs/v5/concepts/themes/
|
|
30
30
|
*/
|
|
31
|
-
chartThemes?: typeof am5.Theme[];
|
|
31
|
+
chartThemes?: (typeof am5.Theme)[];
|
|
32
32
|
/**
|
|
33
33
|
* Settings for chart customization @see https://www.amcharts.com/docs/v5/reference/piechart/#Settings
|
|
34
34
|
* The function accepts the chart root as a parameter to allow layout configuration.
|
|
@@ -77,7 +77,7 @@ export interface PieChartProps {
|
|
|
77
77
|
*/
|
|
78
78
|
DOMtargetId?: string | HTMLElement;
|
|
79
79
|
}
|
|
80
|
-
export
|
|
80
|
+
export type SliceAdapter<T extends keyof am5.ISliceSettings = keyof am5.ISliceSettings> = [
|
|
81
81
|
T,
|
|
82
82
|
(context: {
|
|
83
83
|
root: am5.Root;
|
|
@@ -2,7 +2,7 @@ import { LayoutProps } from 'antd';
|
|
|
2
2
|
import React, { ReactElement } from 'react';
|
|
3
3
|
import { BasicLayoutProps } from './BasicLayout';
|
|
4
4
|
import { MenuPage } from './MenuPage';
|
|
5
|
-
export
|
|
5
|
+
export type HeaderSiderLayoutProps<T extends MenuPage> = Omit<BasicLayoutProps<T>, 'mobileHeaderProps'> & {
|
|
6
6
|
header?: React.ReactNode;
|
|
7
7
|
headerProps?: LayoutProps;
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren } from 'react';
|
|
|
3
3
|
/**
|
|
4
4
|
* Menu page has both the data required by the menu and the data required to actually render the page.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type MenuPage<T = Record<string, unknown>> = ItemType & Page<T>;
|
|
7
7
|
/**
|
|
8
8
|
* Menu Item that represents an application page
|
|
9
9
|
*/
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { NavigateFunction } from 'react-router';
|
|
4
4
|
import { BasicLayoutProps } from './BasicLayout';
|
|
5
5
|
import { MenuPage } from './MenuPage';
|
|
6
|
-
export
|
|
6
|
+
export type ReactRouterMenuPage = MenuPage & {
|
|
7
7
|
route: string;
|
|
8
8
|
};
|
|
9
9
|
export interface ReactRouterLayoutProps extends BasicLayoutProps<ReactRouterMenuPage> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ParametersOfSection, UiElementData } from '@j2inn/resolvable-ui-elements';
|
|
3
2
|
import { HDict } from 'haystack-core';
|
|
4
|
-
|
|
3
|
+
import React from 'react';
|
|
4
|
+
type Layout = 'horizontal' | 'vertical';
|
|
5
5
|
interface ConfigurationFormProps<T extends UiElementData> {
|
|
6
6
|
section: T;
|
|
7
7
|
params: ParametersOfSection<T>;
|
|
@@ -16,12 +16,12 @@ interface ConfigurationFormProps<T extends UiElementData> {
|
|
|
16
16
|
saveBtnClassName?: string;
|
|
17
17
|
animateSaveButton?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare const ConfigurationForm: <T extends UiElementData<import("@j2inn/resolvable-ui-elements/dist/resolvableElements/elements/UiElement").UiElementMeta>>({ section, params, readOnlySection, onSave, formatKey, saveText, options, layout, className, entryClassName, saveBtnClassName, animateSaveButton, }: ConfigurationFormProps<T>) => JSX.Element;
|
|
19
|
+
export declare const ConfigurationForm: <T extends UiElementData<import("@j2inn/resolvable-ui-elements/dist/resolvableElements/elements/UiElement").UiElementMeta>>({ section, params, readOnlySection, onSave, formatKey, saveText, options, layout, className, entryClassName, saveBtnClassName, animateSaveButton, }: ConfigurationFormProps<T>) => React.JSX.Element;
|
|
20
20
|
interface ConfigurationFormReadOnlyEntriesProps<T extends UiElementData> {
|
|
21
21
|
params: ParametersOfSection<T>;
|
|
22
22
|
readOnlySection: T;
|
|
23
23
|
formatKey?: (key: string) => string;
|
|
24
24
|
className?: string;
|
|
25
25
|
}
|
|
26
|
-
export declare const ConfigurationFormReadOnlyEntries: <T extends UiElementData<import("@j2inn/resolvable-ui-elements/dist/resolvableElements/elements/UiElement").UiElementMeta>>({ readOnlySection, params, formatKey, className, }: ConfigurationFormReadOnlyEntriesProps<T>) => JSX.Element;
|
|
26
|
+
export declare const ConfigurationFormReadOnlyEntries: <T extends UiElementData<import("@j2inn/resolvable-ui-elements/dist/resolvableElements/elements/UiElement").UiElementMeta>>({ readOnlySection, params, formatKey, className, }: ConfigurationFormReadOnlyEntriesProps<T>) => React.JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { HDict, HGrid, HNum, HRef, HStr, HVal } from 'haystack-core';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export interface ConfigurationFormEntryOption extends HDict {
|
|
4
4
|
value: HStr | HNum | HRef;
|
|
5
5
|
label: HStr;
|
|
@@ -12,5 +12,5 @@ interface ConfigurationFormEntryProps {
|
|
|
12
12
|
options?: HGrid<ConfigurationFormEntryOption>;
|
|
13
13
|
className?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare const ConfigurationFormEntry: ({ name, value, onChange, disabled, options, className, }: ConfigurationFormEntryProps) => JSX.Element;
|
|
15
|
+
export declare const ConfigurationFormEntry: ({ name, value, onChange, disabled, options, className, }: ConfigurationFormEntryProps) => React.JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -7,6 +7,10 @@ import path from 'path';
|
|
|
7
7
|
/**
|
|
8
8
|
* Run the creation of the FIN5 properties as a script.
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const srcDir = process.argv[2] ? path.resolve(process.argv[2]) : path.resolve();
|
|
11
|
+
const outDir = process.argv[3]
|
|
12
|
+
? path.resolve(process.argv[3])
|
|
13
|
+
: path.resolve('fin5/locale');
|
|
14
|
+
console.log(`Creating FIN5 property language files from '${srcDir}' to '${outDir}'...`);
|
|
15
|
+
createFin5Props(srcDir, outDir).then(() => console.log('Successfully completed property file creation'), (error) => console.error('Failed to create property file', error));
|
|
12
16
|
//# sourceMappingURL=runCreateFin5Props.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runCreateFin5Props.js","sourceRoot":"","sources":["../../../src/fantomProps/createFin5Props/runCreateFin5Props.ts"],"names":[],"mappings":";AAEA,OAAO,eAAe,MAAM,GAAG,CAAA;AAC/B,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB;;GAEG;AAEH;;GAEG;AAEH,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"runCreateFin5Props.js","sourceRoot":"","sources":["../../../src/fantomProps/createFin5Props/runCreateFin5Props.ts"],"names":[],"mappings":";AAEA,OAAO,eAAe,MAAM,GAAG,CAAA;AAC/B,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB;;GAEG;AAEH;;GAEG;AAEH,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAA;AAC/E,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;AAE9B,OAAO,CAAC,GAAG,CACV,+CAA+C,MAAM,SAAS,MAAM,MAAM,CAC1E,CAAA;AACD,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CACnC,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,+CAA+C,CAAC,EAClE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,CAAC,CACjE,CAAA"}
|
|
@@ -115,7 +115,7 @@ interface LanguageManager {
|
|
|
115
115
|
interface Fin5AppComponent {
|
|
116
116
|
set: (value: unknown) => Promise<undefined>;
|
|
117
117
|
}
|
|
118
|
-
export
|
|
118
|
+
export type TargetRef = string | null | undefined;
|
|
119
119
|
export interface ColorScheme {
|
|
120
120
|
primary: string;
|
|
121
121
|
bodyBackground: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type HistorianType = 'point' | 'query' | 'string';
|
|
2
|
+
export type HistorianArgs = string | (string | undefined)[];
|
|
3
3
|
export declare const openFin5HistorianApp: (queryType?: HistorianType, args?: HistorianArgs) => Promise<void>;
|
|
@@ -47,13 +47,12 @@ export const Fin5AppContainer = observer(({ children, appStore, client, project,
|
|
|
47
47
|
const rootStore = rootStoreRef.current;
|
|
48
48
|
const [hashProjName] = useFin5AppURLHashParameter('projectName');
|
|
49
49
|
const containerProject = project || hashProjName || fin5Top?.finstack?.projectName || '';
|
|
50
|
+
const [hashTargetRef] = useFin5AppURLHashParameter('targetRef');
|
|
50
51
|
const locale = fin5Top?.languageManager?.currentLang ?? navigator?.language;
|
|
51
52
|
rootStore.locale = locale;
|
|
52
53
|
if (!rootStore.allLocales.includes(locale)) {
|
|
53
54
|
rootStore.allLocales.push(locale);
|
|
54
55
|
}
|
|
55
|
-
const target = fin5Top?.app?.TargetRef?.() || '';
|
|
56
|
-
rootStore.target = target ? HRef.make(target).value : '';
|
|
57
56
|
const initialized = hasInitialized(appStore)
|
|
58
57
|
? appStore.initialized
|
|
59
58
|
: false;
|
|
@@ -68,6 +67,10 @@ export const Fin5AppContainer = observer(({ children, appStore, client, project,
|
|
|
68
67
|
getHostServiceUrl,
|
|
69
68
|
});
|
|
70
69
|
const [containerClient, setContainerClient] = useState(getClient);
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
const target = hashTargetRef || '';
|
|
72
|
+
rootStore.target = target ? HRef.make(target).value : '';
|
|
73
|
+
}, [hashTargetRef]);
|
|
71
74
|
useEffect(() => {
|
|
72
75
|
setLoading(true);
|
|
73
76
|
const newClient = getClient();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fin5AppContainer.js","sourceRoot":"","sources":["../../../src/react/app/Fin5AppContainer.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EACN,MAAM,GAKN,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAY,MAAM,WAAW,CAAA;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAA;AACrF,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,aAAa,EAAqB,MAAM,6BAA6B,CAAA;AAC9E,OAAO,MAAM,MAAM,s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;oBAClB,MAAM,EAAE,SAAS,EAAE;oBACnB,YAAY,EAAE,SAAS;iBACvB,CAAC,CAAA;aACF;QACF,CAAC,CAAA;QACD,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;QAC7C,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;IAC9D,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,SAAS,CAAC,GAAG,EAAE;QACd,mCAAmC;QACnC,IAAI,WAAW,EAAE;YAChB,OAAO,EAAE,WAAW,CAAC;gBACpB,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,KAAK;aACd,CAAC,CAAA;SACF;IACF,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;IAEjB,OAAO,CACN,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,SAAS;QAC7C,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ;YACxC,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,eAAe;gBAC7C,oBAAC,YAAY,IACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc;oBAC1B,oBAAC,aAAa,IAAC,KAAK,EAAE,KAAK;wBAC1B,oBAAC,MAAM,IAAC,OAAO,EAAE,OAAO,IAAI,WAAW;4BACtC,oBAAC,aAAa,IACb,IAAI,6CACH,QAAQ,CACM,CACR,CACM,CACF,CACS,CACC,CACG,CAC/B,CAAA;AACF,CAAC,CACD,CAAA"}
|
|
@@ -17,4 +17,4 @@ export interface RecordImageProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* Displays an image from a bin record or a fallback if the given imageRef is not valid or if the image can't be found.
|
|
19
19
|
*/
|
|
20
|
-
export declare const RecordImage: ({ imageRef, fallbackComponent, imgProps, }: RecordImageProps) => JSX.Element;
|
|
20
|
+
export declare const RecordImage: ({ imageRef, fallbackComponent, imgProps, }: RecordImageProps) => React.JSX.Element;
|
|
@@ -2,7 +2,7 @@ import * as am5 from '@amcharts/amcharts5';
|
|
|
2
2
|
import { ITimeInterval } from '@amcharts/amcharts5/.internal/core/util/Time';
|
|
3
3
|
import * as am5xy from '@amcharts/amcharts5/xy';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
export
|
|
5
|
+
export type StackedColumnChartInterfaceColors = {
|
|
6
6
|
[Property in keyof am5.IInterfaceColorsSettings]: string;
|
|
7
7
|
};
|
|
8
8
|
export interface StackedColumnChartColorPalette {
|
|
@@ -97,7 +97,7 @@ export interface ChartProps {
|
|
|
97
97
|
/**
|
|
98
98
|
* amcharts5 theme classes to be used by the chart @see https://www.amcharts.com/docs/v5/concepts/themes/
|
|
99
99
|
*/
|
|
100
|
-
chartThemes?: typeof am5.Theme[];
|
|
100
|
+
chartThemes?: (typeof am5.Theme)[];
|
|
101
101
|
/**
|
|
102
102
|
* Settings for chart customization @see https://www.amcharts.com/docs/v5/reference/xychart/#Settings
|
|
103
103
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as am5 from '@amcharts/amcharts5';
|
|
2
2
|
import * as am5percent from '@amcharts/amcharts5/percent';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
export
|
|
4
|
+
export type PieChartInterfaceColors = {
|
|
5
5
|
[Property in keyof am5.IInterfaceColorsSettings]: string;
|
|
6
6
|
};
|
|
7
7
|
export interface PieChartColorPalette {
|
|
@@ -28,7 +28,7 @@ export interface PieChartProps {
|
|
|
28
28
|
/**
|
|
29
29
|
* amcharts5 theme classes to be used by the chart @see https://www.amcharts.com/docs/v5/concepts/themes/
|
|
30
30
|
*/
|
|
31
|
-
chartThemes?: typeof am5.Theme[];
|
|
31
|
+
chartThemes?: (typeof am5.Theme)[];
|
|
32
32
|
/**
|
|
33
33
|
* Settings for chart customization @see https://www.amcharts.com/docs/v5/reference/piechart/#Settings
|
|
34
34
|
* The function accepts the chart root as a parameter to allow layout configuration.
|
|
@@ -77,7 +77,7 @@ export interface PieChartProps {
|
|
|
77
77
|
*/
|
|
78
78
|
DOMtargetId?: string | HTMLElement;
|
|
79
79
|
}
|
|
80
|
-
export
|
|
80
|
+
export type SliceAdapter<T extends keyof am5.ISliceSettings = keyof am5.ISliceSettings> = [
|
|
81
81
|
T,
|
|
82
82
|
(context: {
|
|
83
83
|
root: am5.Root;
|
|
@@ -2,7 +2,7 @@ import { LayoutProps } from 'antd';
|
|
|
2
2
|
import React, { ReactElement } from 'react';
|
|
3
3
|
import { BasicLayoutProps } from './BasicLayout';
|
|
4
4
|
import { MenuPage } from './MenuPage';
|
|
5
|
-
export
|
|
5
|
+
export type HeaderSiderLayoutProps<T extends MenuPage> = Omit<BasicLayoutProps<T>, 'mobileHeaderProps'> & {
|
|
6
6
|
header?: React.ReactNode;
|
|
7
7
|
headerProps?: LayoutProps;
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren } from 'react';
|
|
|
3
3
|
/**
|
|
4
4
|
* Menu page has both the data required by the menu and the data required to actually render the page.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type MenuPage<T = Record<string, unknown>> = ItemType & Page<T>;
|
|
7
7
|
/**
|
|
8
8
|
* Menu Item that represents an application page
|
|
9
9
|
*/
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { NavigateFunction } from 'react-router';
|
|
4
4
|
import { BasicLayoutProps } from './BasicLayout';
|
|
5
5
|
import { MenuPage } from './MenuPage';
|
|
6
|
-
export
|
|
6
|
+
export type ReactRouterMenuPage = MenuPage & {
|
|
7
7
|
route: string;
|
|
8
8
|
};
|
|
9
9
|
export interface ReactRouterLayoutProps extends BasicLayoutProps<ReactRouterMenuPage> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ParametersOfSection, UiElementData } from '@j2inn/resolvable-ui-elements';
|
|
3
2
|
import { HDict } from 'haystack-core';
|
|
4
|
-
|
|
3
|
+
import React from 'react';
|
|
4
|
+
type Layout = 'horizontal' | 'vertical';
|
|
5
5
|
interface ConfigurationFormProps<T extends UiElementData> {
|
|
6
6
|
section: T;
|
|
7
7
|
params: ParametersOfSection<T>;
|
|
@@ -16,12 +16,12 @@ interface ConfigurationFormProps<T extends UiElementData> {
|
|
|
16
16
|
saveBtnClassName?: string;
|
|
17
17
|
animateSaveButton?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare const ConfigurationForm: <T extends UiElementData<import("@j2inn/resolvable-ui-elements/dist/resolvableElements/elements/UiElement").UiElementMeta>>({ section, params, readOnlySection, onSave, formatKey, saveText, options, layout, className, entryClassName, saveBtnClassName, animateSaveButton, }: ConfigurationFormProps<T>) => JSX.Element;
|
|
19
|
+
export declare const ConfigurationForm: <T extends UiElementData<import("@j2inn/resolvable-ui-elements/dist/resolvableElements/elements/UiElement").UiElementMeta>>({ section, params, readOnlySection, onSave, formatKey, saveText, options, layout, className, entryClassName, saveBtnClassName, animateSaveButton, }: ConfigurationFormProps<T>) => React.JSX.Element;
|
|
20
20
|
interface ConfigurationFormReadOnlyEntriesProps<T extends UiElementData> {
|
|
21
21
|
params: ParametersOfSection<T>;
|
|
22
22
|
readOnlySection: T;
|
|
23
23
|
formatKey?: (key: string) => string;
|
|
24
24
|
className?: string;
|
|
25
25
|
}
|
|
26
|
-
export declare const ConfigurationFormReadOnlyEntries: <T extends UiElementData<import("@j2inn/resolvable-ui-elements/dist/resolvableElements/elements/UiElement").UiElementMeta>>({ readOnlySection, params, formatKey, className, }: ConfigurationFormReadOnlyEntriesProps<T>) => JSX.Element;
|
|
26
|
+
export declare const ConfigurationFormReadOnlyEntries: <T extends UiElementData<import("@j2inn/resolvable-ui-elements/dist/resolvableElements/elements/UiElement").UiElementMeta>>({ readOnlySection, params, formatKey, className, }: ConfigurationFormReadOnlyEntriesProps<T>) => React.JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { HDict, HGrid, HNum, HRef, HStr, HVal } from 'haystack-core';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export interface ConfigurationFormEntryOption extends HDict {
|
|
4
4
|
value: HStr | HNum | HRef;
|
|
5
5
|
label: HStr;
|
|
@@ -12,5 +12,5 @@ interface ConfigurationFormEntryProps {
|
|
|
12
12
|
options?: HGrid<ConfigurationFormEntryOption>;
|
|
13
13
|
className?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare const ConfigurationFormEntry: ({ name, value, onChange, disabled, options, className, }: ConfigurationFormEntryProps) => JSX.Element;
|
|
15
|
+
export declare const ConfigurationFormEntry: ({ name, value, onChange, disabled, options, className, }: ConfigurationFormEntryProps) => React.JSX.Element;
|
|
16
16
|
export {};
|
package/package.json
CHANGED