@j2inn/fin5-ui-utils 8.1.1-beta.5 → 8.1.1
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/fin5Top/fin5Top.d.ts +43 -2
- package/dist/fin5Top/fin5Top.js +8 -0
- package/dist/fin5Top/fin5Top.js.map +1 -1
- package/dist/fin5Top/openFin5Alarm.d.ts +1 -1
- package/dist/fin5Top/openFin5Historian.d.ts +2 -2
- package/dist/react/app/Fin5AppContainer.js +2 -18
- package/dist/react/app/Fin5AppContainer.js.map +1 -1
- package/dist/react/app/Fin5AppRootStore.d.ts +0 -2
- package/dist/react/app/Fin5AppRootStore.js +0 -24
- package/dist/react/app/Fin5AppRootStore.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/fin5Top/fin5Top.d.ts +43 -2
- package/dist_es/fin5Top/fin5Top.js +8 -0
- package/dist_es/fin5Top/fin5Top.js.map +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 +2 -18
- package/dist_es/react/app/Fin5AppContainer.js.map +1 -1
- package/dist_es/react/app/Fin5AppRootStore.d.ts +0 -2
- package/dist_es/react/app/Fin5AppRootStore.js +1 -25
- package/dist_es/react/app/Fin5AppRootStore.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
|
@@ -80,6 +80,34 @@ export interface Fin5App {
|
|
|
80
80
|
* @param {HistorianArgs} args is the array/string for point ids, the query id or the raw query string
|
|
81
81
|
*/
|
|
82
82
|
OpenHistorianWithOptions: (type: HistorianType, args: HistorianArgs) => void;
|
|
83
|
+
/**
|
|
84
|
+
* Removes the remove-content-popup from the screen identified by the id.
|
|
85
|
+
* If the id is not specified, then removes the last popup added remote popup object.
|
|
86
|
+
* @param {string} [id] - is the id/identifier of the popup. The <code>id</code> of the HTML element should give you the id
|
|
87
|
+
*/
|
|
88
|
+
RemoveRemotePopup: (id?: string) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Open the Alarms application with the specified targetRef.
|
|
91
|
+
* @since FIN 5.2.0
|
|
92
|
+
* @param {TargetRef} [targetRef] - id of the target to be shown in the alarms app. If not provided, it will open with the current target ref.
|
|
93
|
+
*/
|
|
94
|
+
OpenAlarms: (targetRef?: TargetRef) => Promise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* Open the Schedules application with the specified targetRef and params
|
|
97
|
+
* @since FIN 5.2.0
|
|
98
|
+
* @param {TargetRef} [targetRef] - id of the target to be shown in the schedules app. If not provided, it will open with the current target ref.
|
|
99
|
+
* @param {ScheduleParams} [params] - additional parameters for the schedules app (id, appId, message).
|
|
100
|
+
*/
|
|
101
|
+
OpenSchedules: (targetRef?: TargetRef, params?: SchedulesParams) => Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Navigates to the Charts App and loads the appropriate chart
|
|
104
|
+
* based on the chart id parameter. Removes any previous charts
|
|
105
|
+
* URL params.
|
|
106
|
+
* @since FIN 5.2.0
|
|
107
|
+
* @param {string} chartId - the id of the chart to be opened. If not provided, it will open the charts app without any chart loaded.
|
|
108
|
+
* @param {TargetRef} targetRef - id of the target to be shown in the charts app. If not provided, it will open with the current target ref.
|
|
109
|
+
*/
|
|
110
|
+
OpenCharts: (chartId?: string, targetRef?: TargetRef) => Promise<void>;
|
|
83
111
|
findComponent: (name: string) => Fin5AppComponent;
|
|
84
112
|
/**
|
|
85
113
|
* @see https://ractive.js.org/api/#ractiveobserve
|
|
@@ -104,10 +132,18 @@ export declare enum Fin5AppNames {
|
|
|
104
132
|
SCHEDULE_LIST = "scheduleList",
|
|
105
133
|
HISTORIAN = "trends",
|
|
106
134
|
TREND_LIST = "trendList",
|
|
135
|
+
CHARTS = "charts",
|
|
136
|
+
CHART_LIST = "chartList",
|
|
107
137
|
SEARCH = "search",
|
|
108
138
|
LOGOUT = "logout",
|
|
109
139
|
GENERIC = "generic",
|
|
110
|
-
REPORTS = "reports"
|
|
140
|
+
REPORTS = "reports",
|
|
141
|
+
FLOOR = "floor",
|
|
142
|
+
BUILDER = "builder",
|
|
143
|
+
FILES = "files",
|
|
144
|
+
HOME = "home",
|
|
145
|
+
DASHBOARD = "dashboard",
|
|
146
|
+
SETTINGS = "settings"
|
|
111
147
|
}
|
|
112
148
|
interface LanguageManager {
|
|
113
149
|
currentLang: string;
|
|
@@ -115,7 +151,12 @@ interface LanguageManager {
|
|
|
115
151
|
interface Fin5AppComponent {
|
|
116
152
|
set: (value: unknown) => Promise<undefined>;
|
|
117
153
|
}
|
|
118
|
-
export type TargetRef = string | null | undefined;
|
|
154
|
+
export declare type TargetRef = string | null | undefined;
|
|
155
|
+
export interface SchedulesParams {
|
|
156
|
+
id?: string;
|
|
157
|
+
appId?: string;
|
|
158
|
+
message?: string;
|
|
159
|
+
}
|
|
119
160
|
export interface ColorScheme {
|
|
120
161
|
primary: string;
|
|
121
162
|
bodyBackground: string;
|
package/dist/fin5Top/fin5Top.js
CHANGED
|
@@ -46,9 +46,17 @@ var Fin5AppNames;
|
|
|
46
46
|
Fin5AppNames["SCHEDULE_LIST"] = "scheduleList";
|
|
47
47
|
Fin5AppNames["HISTORIAN"] = "trends";
|
|
48
48
|
Fin5AppNames["TREND_LIST"] = "trendList";
|
|
49
|
+
Fin5AppNames["CHARTS"] = "charts";
|
|
50
|
+
Fin5AppNames["CHART_LIST"] = "chartList";
|
|
49
51
|
Fin5AppNames["SEARCH"] = "search";
|
|
50
52
|
Fin5AppNames["LOGOUT"] = "logout";
|
|
51
53
|
Fin5AppNames["GENERIC"] = "generic";
|
|
52
54
|
Fin5AppNames["REPORTS"] = "reports";
|
|
55
|
+
Fin5AppNames["FLOOR"] = "floor";
|
|
56
|
+
Fin5AppNames["BUILDER"] = "builder";
|
|
57
|
+
Fin5AppNames["FILES"] = "files";
|
|
58
|
+
Fin5AppNames["HOME"] = "home";
|
|
59
|
+
Fin5AppNames["DASHBOARD"] = "dashboard";
|
|
60
|
+
Fin5AppNames["SETTINGS"] = "settings";
|
|
53
61
|
})(Fin5AppNames = exports.Fin5AppNames || (exports.Fin5AppNames = {}));
|
|
54
62
|
//# sourceMappingURL=fin5Top.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fin5Top.js","sourceRoot":"","sources":["../../src/fin5Top/fin5Top.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAKH,MAAM,gBAAgB;IACb,MAAM,CAAC,QAAQ,CAAgB;IAEvC,MAAM,KAAK,OAAO;QACjB,OAAO,IAAI,CAAC,UAAU,EAAE,CAAA;IACzB,CAAC;IACD,MAAM,CAAC,UAAU,GAAG,CAAC,aAA0B,EAAkB,EAAE;QAClE,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;YAChC,IAAI,CAAC,QAAQ,GAAG,eAAe,CAAC,aAAa,CAAC;gBAC7C,CAAC,CAAE,MAAM,CAAC,GAA0B,CAAC,uEA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Q,EAAE;YAChD,OAAO,IAAI,CAAA;SACX;KACD;IAAC,MAAM,GAAE;IACV,aAAa,EAAE,EAAE,CAAA;IACjB,OAAO,KAAK,CAAA;AACb,CAAC;AATD,0CASC;AA2JD,IAAY,YAyBX;AAzBD,WAAY,YAAY;IACvB,+BAAe,CAAA;IACf,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,8CAA8B,CAAA;IAC9B,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,8CAA8B,CAAA;IAC9B,oCAAoB,CAAA;IACpB,wCAAwB,CAAA;IACxB,iCAAiB,CAAA;IACjB,wCAAwB,CAAA;IACxB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,6BAAa,CAAA;IACb,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;AACtB,CAAC,EAzBW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAyBvB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type HistorianType = 'point' | 'query' | 'string';
|
|
2
|
-
export type HistorianArgs = string | (string | undefined)[];
|
|
1
|
+
export declare type HistorianType = 'point' | 'query' | 'string';
|
|
2
|
+
export declare type HistorianArgs = string | (string | undefined)[];
|
|
3
3
|
export declare const openFin5HistorianApp: (queryType?: HistorianType, args?: HistorianArgs) => Promise<void>;
|
|
@@ -45,11 +45,6 @@ const haystack_core_1 = require("haystack-core");
|
|
|
45
45
|
const ErrorBoundary_1 = require("../components/ErrorBoundary");
|
|
46
46
|
const Loader_1 = __importDefault(require("../components/Loader"));
|
|
47
47
|
const PATH_PREFIX = 'finApp';
|
|
48
|
-
/**
|
|
49
|
-
* The Ractive keypath used to observe target reference changes on fin5Top.app.
|
|
50
|
-
* @see https://ractive.js.org/api/#ractiveobserve
|
|
51
|
-
*/
|
|
52
|
-
const FIN5_TARGET_KEYPATH = 'currentId';
|
|
53
48
|
const getServiceUrl = ({ origin, path }) => `${origin}/${PATH_PREFIX}/api/${path}`;
|
|
54
49
|
const getOpUrl = ({ origin, project, op }) => `${origin}/api/${project}/${op}`;
|
|
55
50
|
const getHaystackServiceUrl = ({ origin, project, path, }) => `${origin}/${PATH_PREFIX}/api/haystack${project ? `/${project}` : ''}/${path}`;
|
|
@@ -86,6 +81,8 @@ exports.Fin5AppContainer = (0, mobx_react_lite_1.observer)(({ children, appStore
|
|
|
86
81
|
if (!rootStore.allLocales.includes(locale)) {
|
|
87
82
|
rootStore.allLocales.push(locale);
|
|
88
83
|
}
|
|
84
|
+
const target = fin5Top_1.fin5Top?.app?.TargetRef?.() || '';
|
|
85
|
+
rootStore.target = target ? haystack_core_1.HRef.make(target).value : '';
|
|
89
86
|
const initialized = hasInitialized(appStore)
|
|
90
87
|
? appStore.initialized
|
|
91
88
|
: false;
|
|
@@ -100,19 +97,6 @@ exports.Fin5AppContainer = (0, mobx_react_lite_1.observer)(({ children, appStore
|
|
|
100
97
|
getHostServiceUrl,
|
|
101
98
|
});
|
|
102
99
|
const [containerClient, setContainerClient] = (0, react_1.useState)(getClient);
|
|
103
|
-
// Primary: set initial value from fin5Top.app and subscribe to changes via Ractive observe
|
|
104
|
-
(0, react_1.useEffect)(() => {
|
|
105
|
-
if (!fin5Top_1.fin5Top?.app)
|
|
106
|
-
return;
|
|
107
|
-
const initial = fin5Top_1.fin5Top.app.TargetRef?.() ?? '';
|
|
108
|
-
rootStore.setTarget(initial ? haystack_core_1.HRef.make(initial).value : '');
|
|
109
|
-
const observer = fin5Top_1.fin5Top.app.observe(FIN5_TARGET_KEYPATH, (newValue) => {
|
|
110
|
-
const value = String(newValue);
|
|
111
|
-
const target = value ?? '';
|
|
112
|
-
rootStore.setTarget(target ? haystack_core_1.HRef.make(target).value : '');
|
|
113
|
-
});
|
|
114
|
-
return () => observer.cancel();
|
|
115
|
-
}, []);
|
|
116
100
|
(0, react_1.useEffect)(() => {
|
|
117
101
|
setLoading(true);
|
|
118
102
|
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
|
|
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;AAEvC,MAAM,QAAQ,GAAqB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,EAAU,EAAE,CACtE,GAAG,MAAM,QAAQ,OAAO,IAAI,EAAE,EAAE,CAAA;AAEjC,MAAM,qBAAqB,GAAkC,CAAC,EAC7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AAK,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"}
|
|
@@ -26,8 +26,6 @@ export declare class Fin5AppRootStore implements AppRootStore {
|
|
|
26
26
|
readonly apps: App[];
|
|
27
27
|
readonly history: CustomHistory;
|
|
28
28
|
readonly historySidebar: CustomHistory;
|
|
29
|
-
setTarget(target: string): void;
|
|
30
|
-
setTargetSidebar(targetSidebar: string): void;
|
|
31
29
|
constructor();
|
|
32
30
|
openAppInNewWindow(): void;
|
|
33
31
|
open(appId: string, state?: Record<string, unknown>): void;
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
/*
|
|
3
3
|
* Copyright (c) 2022, J2 Innovations. All Rights Reserved
|
|
4
4
|
*/
|
|
5
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
-
};
|
|
11
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
6
|
exports.Fin5AppRootStore = void 0;
|
|
13
7
|
const mobx_1 = require("mobx");
|
|
@@ -47,12 +41,6 @@ class Fin5AppRootStore {
|
|
|
47
41
|
this.historySidebar.state = state;
|
|
48
42
|
},
|
|
49
43
|
};
|
|
50
|
-
setTarget(target) {
|
|
51
|
-
this.target = target;
|
|
52
|
-
}
|
|
53
|
-
setTargetSidebar(targetSidebar) {
|
|
54
|
-
this.targetSidebar = targetSidebar;
|
|
55
|
-
}
|
|
56
44
|
constructor() {
|
|
57
45
|
(0, mobx_1.makeAutoObservable)(this, {
|
|
58
46
|
currentUser: mobx_1.observable.ref,
|
|
@@ -99,17 +87,5 @@ class Fin5AppRootStore {
|
|
|
99
87
|
return false;
|
|
100
88
|
}
|
|
101
89
|
}
|
|
102
|
-
__decorate([
|
|
103
|
-
mobx_1.observable
|
|
104
|
-
], Fin5AppRootStore.prototype, "target", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
mobx_1.observable
|
|
107
|
-
], Fin5AppRootStore.prototype, "targetSidebar", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
mobx_1.action
|
|
110
|
-
], Fin5AppRootStore.prototype, "setTarget", null);
|
|
111
|
-
__decorate([
|
|
112
|
-
mobx_1.action
|
|
113
|
-
], Fin5AppRootStore.prototype, "setTargetSidebar", null);
|
|
114
90
|
exports.Fin5AppRootStore = Fin5AppRootStore;
|
|
115
91
|
//# sourceMappingURL=Fin5AppRootStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fin5AppRootStore.js","sourceRoot":"","sources":["../../../src/react/app/Fin5AppRootStore.ts"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"Fin5AppRootStore.js","sourceRoot":"","sources":["../../../src/react/app/Fin5AppRootStore.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAMH,+BAAqD;AAErD;;GAEG;AACH,MAAa,gBAAgB;IAC5B,OAAO,GAAG,EAAE,CAAA;IACZ,WAAW,GAAG,KAAK,CAAA;IACnB,MAAM,GAAG,EAAE,C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,KAAU,CAAC;IAC3B,kBAAkB,KAAU,CAAC;IAC7B,kBAAkB,KAAU,CAAC;IAC7B,oBAAoB,KAAU,CAAC;IAC/B,YAAY,GAAG,CAAC,KAAa,EAAW,EAAE;QACzC,4DAA4D;QAC5D,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAA;QAC7B,IAAI,IAAI,EAAE;YACT,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;gBAC1B,OAAO,KAAK,CAAA;aACZ;YAED,IAAI,IAAI,CAAC,GAAG,CAAO,UAAU,CAAC,EAAE,KAAK,KAAK,IAAI,EAAE;gBAC/C,OAAO,IAAI,CAAA;aACX;YAED,wDAAwD;YACxD,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;gBAC1B,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAO,WAAW,CAAC,EAAE,KAAK,CAAA;gBACpD,MAAM,IAAI,GAAG,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;gBAClC,OAAO,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAA;aACrC;iBAAM;gBACN,OAAO,IAAI,CAAA;aACX;SACD;QAED,OAAO,KAAK,CAAA;IACb,CAAC,CAAA;IACD,UAAU;QACT,OAAO,KAAK,CAAA;IACb,CAAC;CACD;AAtFD,4CAsFC"}
|
|
@@ -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) =>
|
|
20
|
+
export declare const RecordImage: ({ imageRef, fallbackComponent, imgProps, }: RecordImageProps) => 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 type StackedColumnChartInterfaceColors = {
|
|
5
|
+
export declare 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?:
|
|
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 type PieChartInterfaceColors = {
|
|
4
|
+
export declare 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?:
|
|
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 type SliceAdapter<T extends keyof am5.ISliceSettings = keyof am5.ISliceSettings> = [
|
|
80
|
+
export declare 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 type HeaderSiderLayoutProps<T extends MenuPage> = Omit<BasicLayoutProps<T>, 'mobileHeaderProps'> & {
|
|
5
|
+
export declare 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 type MenuPage<T = Record<string, unknown>> = ItemType & Page<T>;
|
|
6
|
+
export declare 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 type ReactRouterMenuPage = MenuPage & {
|
|
6
|
+
export declare 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" />
|
|
1
2
|
import { ParametersOfSection, UiElementData } from '@j2inn/resolvable-ui-elements';
|
|
2
3
|
import { HDict } from 'haystack-core';
|
|
3
|
-
|
|
4
|
-
type Layout = 'horizontal' | 'vertical';
|
|
4
|
+
declare 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>) =>
|
|
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;
|
|
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>) =>
|
|
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;
|
|
27
27
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
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) =>
|
|
15
|
+
export declare const ConfigurationFormEntry: ({ name, value, onChange, disabled, options, className, }: ConfigurationFormEntryProps) => JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -80,6 +80,34 @@ export interface Fin5App {
|
|
|
80
80
|
* @param {HistorianArgs} args is the array/string for point ids, the query id or the raw query string
|
|
81
81
|
*/
|
|
82
82
|
OpenHistorianWithOptions: (type: HistorianType, args: HistorianArgs) => void;
|
|
83
|
+
/**
|
|
84
|
+
* Removes the remove-content-popup from the screen identified by the id.
|
|
85
|
+
* If the id is not specified, then removes the last popup added remote popup object.
|
|
86
|
+
* @param {string} [id] - is the id/identifier of the popup. The <code>id</code> of the HTML element should give you the id
|
|
87
|
+
*/
|
|
88
|
+
RemoveRemotePopup: (id?: string) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Open the Alarms application with the specified targetRef.
|
|
91
|
+
* @since FIN 5.2.0
|
|
92
|
+
* @param {TargetRef} [targetRef] - id of the target to be shown in the alarms app. If not provided, it will open with the current target ref.
|
|
93
|
+
*/
|
|
94
|
+
OpenAlarms: (targetRef?: TargetRef) => Promise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* Open the Schedules application with the specified targetRef and params
|
|
97
|
+
* @since FIN 5.2.0
|
|
98
|
+
* @param {TargetRef} [targetRef] - id of the target to be shown in the schedules app. If not provided, it will open with the current target ref.
|
|
99
|
+
* @param {ScheduleParams} [params] - additional parameters for the schedules app (id, appId, message).
|
|
100
|
+
*/
|
|
101
|
+
OpenSchedules: (targetRef?: TargetRef, params?: SchedulesParams) => Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Navigates to the Charts App and loads the appropriate chart
|
|
104
|
+
* based on the chart id parameter. Removes any previous charts
|
|
105
|
+
* URL params.
|
|
106
|
+
* @since FIN 5.2.0
|
|
107
|
+
* @param {string} chartId - the id of the chart to be opened. If not provided, it will open the charts app without any chart loaded.
|
|
108
|
+
* @param {TargetRef} targetRef - id of the target to be shown in the charts app. If not provided, it will open with the current target ref.
|
|
109
|
+
*/
|
|
110
|
+
OpenCharts: (chartId?: string, targetRef?: TargetRef) => Promise<void>;
|
|
83
111
|
findComponent: (name: string) => Fin5AppComponent;
|
|
84
112
|
/**
|
|
85
113
|
* @see https://ractive.js.org/api/#ractiveobserve
|
|
@@ -104,10 +132,18 @@ export declare enum Fin5AppNames {
|
|
|
104
132
|
SCHEDULE_LIST = "scheduleList",
|
|
105
133
|
HISTORIAN = "trends",
|
|
106
134
|
TREND_LIST = "trendList",
|
|
135
|
+
CHARTS = "charts",
|
|
136
|
+
CHART_LIST = "chartList",
|
|
107
137
|
SEARCH = "search",
|
|
108
138
|
LOGOUT = "logout",
|
|
109
139
|
GENERIC = "generic",
|
|
110
|
-
REPORTS = "reports"
|
|
140
|
+
REPORTS = "reports",
|
|
141
|
+
FLOOR = "floor",
|
|
142
|
+
BUILDER = "builder",
|
|
143
|
+
FILES = "files",
|
|
144
|
+
HOME = "home",
|
|
145
|
+
DASHBOARD = "dashboard",
|
|
146
|
+
SETTINGS = "settings"
|
|
111
147
|
}
|
|
112
148
|
interface LanguageManager {
|
|
113
149
|
currentLang: string;
|
|
@@ -115,7 +151,12 @@ interface LanguageManager {
|
|
|
115
151
|
interface Fin5AppComponent {
|
|
116
152
|
set: (value: unknown) => Promise<undefined>;
|
|
117
153
|
}
|
|
118
|
-
export type TargetRef = string | null | undefined;
|
|
154
|
+
export declare type TargetRef = string | null | undefined;
|
|
155
|
+
export interface SchedulesParams {
|
|
156
|
+
id?: string;
|
|
157
|
+
appId?: string;
|
|
158
|
+
message?: string;
|
|
159
|
+
}
|
|
119
160
|
export interface ColorScheme {
|
|
120
161
|
primary: string;
|
|
121
162
|
bodyBackground: string;
|
|
@@ -42,9 +42,17 @@ export var Fin5AppNames;
|
|
|
42
42
|
Fin5AppNames["SCHEDULE_LIST"] = "scheduleList";
|
|
43
43
|
Fin5AppNames["HISTORIAN"] = "trends";
|
|
44
44
|
Fin5AppNames["TREND_LIST"] = "trendList";
|
|
45
|
+
Fin5AppNames["CHARTS"] = "charts";
|
|
46
|
+
Fin5AppNames["CHART_LIST"] = "chartList";
|
|
45
47
|
Fin5AppNames["SEARCH"] = "search";
|
|
46
48
|
Fin5AppNames["LOGOUT"] = "logout";
|
|
47
49
|
Fin5AppNames["GENERIC"] = "generic";
|
|
48
50
|
Fin5AppNames["REPORTS"] = "reports";
|
|
51
|
+
Fin5AppNames["FLOOR"] = "floor";
|
|
52
|
+
Fin5AppNames["BUILDER"] = "builder";
|
|
53
|
+
Fin5AppNames["FILES"] = "files";
|
|
54
|
+
Fin5AppNames["HOME"] = "home";
|
|
55
|
+
Fin5AppNames["DASHBOARD"] = "dashboard";
|
|
56
|
+
Fin5AppNames["SETTINGS"] = "settings";
|
|
49
57
|
})(Fin5AppNames || (Fin5AppNames = {}));
|
|
50
58
|
//# sourceMappingURL=fin5Top.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fin5Top.js","sourceRoot":"","sources":["../../src/fin5Top/fin5Top.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,MAAM,gBAAgB;IACb,MAAM,CAAC,QAAQ,CAAgB;IAEvC,MAAM,KAAK,OAAO;QACjB,OAAO,IAAI,CAAC,UAAU,EAAE,CAAA;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,CAAA;;AAGF,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,UAAU,CAAA;AAErD,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAA;AAE/C,MAAM,UAAU,eAAe,CAAC,aAA0B;IACzD,IAAI;QACH,MAAM,EAAE,GAAG,EAAE,MAAM,CAAA;QACnB,IAAK,MAAM,CAAC,GAA0B,CAAC,QAAQ,EAAE;YAChD,OAAO,IAAI,CAAA;SACX;KACD;IAAC,MAAM,GAAE;IACV,aAAa,EAAE,EAAE,CAAA;IACjB,OAAO,KAAK,CAAA;AACb,CAAC;AA2JD,MAAM,CAAN,IAAY,YAyBX;AAzBD,WAAY,YAAY;IACvB,+BAAe,CAAA;IACf,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,8CAA8B,CAAA;IAC9B,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,8CAA8B,CAAA;IAC9B,oCAAoB,CAAA;IACpB,wCAAwB,CAAA;IACxB,iCAAiB,CAAA;IACjB,wCAAwB,CAAA;IACxB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,6BAAa,CAAA;IACb,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;AACtB,CAAC,EAzBW,YAAY,KAAZ,YAAY,QAyBvB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type HistorianType = 'point' | 'query' | 'string';
|
|
2
|
-
export type HistorianArgs = string | (string | undefined)[];
|
|
1
|
+
export declare type HistorianType = 'point' | 'query' | 'string';
|
|
2
|
+
export declare type HistorianArgs = string | (string | undefined)[];
|
|
3
3
|
export declare const openFin5HistorianApp: (queryType?: HistorianType, args?: HistorianArgs) => Promise<void>;
|
|
@@ -16,11 +16,6 @@ import { HRef } from 'haystack-core';
|
|
|
16
16
|
import { ErrorBoundary } from '../components/ErrorBoundary';
|
|
17
17
|
import Loader from '../components/Loader';
|
|
18
18
|
const PATH_PREFIX = 'finApp';
|
|
19
|
-
/**
|
|
20
|
-
* The Ractive keypath used to observe target reference changes on fin5Top.app.
|
|
21
|
-
* @see https://ractive.js.org/api/#ractiveobserve
|
|
22
|
-
*/
|
|
23
|
-
const FIN5_TARGET_KEYPATH = 'currentId';
|
|
24
19
|
const getServiceUrl = ({ origin, path }) => `${origin}/${PATH_PREFIX}/api/${path}`;
|
|
25
20
|
const getOpUrl = ({ origin, project, op }) => `${origin}/api/${project}/${op}`;
|
|
26
21
|
const getHaystackServiceUrl = ({ origin, project, path, }) => `${origin}/${PATH_PREFIX}/api/haystack${project ? `/${project}` : ''}/${path}`;
|
|
@@ -57,6 +52,8 @@ export const Fin5AppContainer = observer(({ children, appStore, client, project,
|
|
|
57
52
|
if (!rootStore.allLocales.includes(locale)) {
|
|
58
53
|
rootStore.allLocales.push(locale);
|
|
59
54
|
}
|
|
55
|
+
const target = fin5Top?.app?.TargetRef?.() || '';
|
|
56
|
+
rootStore.target = target ? HRef.make(target).value : '';
|
|
60
57
|
const initialized = hasInitialized(appStore)
|
|
61
58
|
? appStore.initialized
|
|
62
59
|
: false;
|
|
@@ -71,19 +68,6 @@ export const Fin5AppContainer = observer(({ children, appStore, client, project,
|
|
|
71
68
|
getHostServiceUrl,
|
|
72
69
|
});
|
|
73
70
|
const [containerClient, setContainerClient] = useState(getClient);
|
|
74
|
-
// Primary: set initial value from fin5Top.app and subscribe to changes via Ractive observe
|
|
75
|
-
useEffect(() => {
|
|
76
|
-
if (!fin5Top?.app)
|
|
77
|
-
return;
|
|
78
|
-
const initial = fin5Top.app.TargetRef?.() ?? '';
|
|
79
|
-
rootStore.setTarget(initial ? HRef.make(initial).value : '');
|
|
80
|
-
const observer = fin5Top.app.observe(FIN5_TARGET_KEYPATH, (newValue) => {
|
|
81
|
-
const value = String(newValue);
|
|
82
|
-
const target = value ?? '';
|
|
83
|
-
rootStore.setTarget(target ? HRef.make(target).value : '');
|
|
84
|
-
});
|
|
85
|
-
return () => observer.cancel();
|
|
86
|
-
}, []);
|
|
87
71
|
useEffect(() => {
|
|
88
72
|
setLoading(true);
|
|
89
73
|
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,sBAAsB,CAAA;AAEzC,MAAM,WAAW,GAAG,QAAQ,CAAA;AAE5B
|
|
1
|
+
{"version":3,"file":"Fin5AppContainer.js","sourceRoot":"","sources":["../../../src/react/app/Fin5AppContainer.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C,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"}
|
|
@@ -26,8 +26,6 @@ export declare class Fin5AppRootStore implements AppRootStore {
|
|
|
26
26
|
readonly apps: App[];
|
|
27
27
|
readonly history: CustomHistory;
|
|
28
28
|
readonly historySidebar: CustomHistory;
|
|
29
|
-
setTarget(target: string): void;
|
|
30
|
-
setTargetSidebar(targetSidebar: string): void;
|
|
31
29
|
constructor();
|
|
32
30
|
openAppInNewWindow(): void;
|
|
33
31
|
open(appId: string, state?: Record<string, unknown>): void;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Copyright (c) 2022, J2 Innovations. All Rights Reserved
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9
|
-
};
|
|
10
|
-
import { action, makeAutoObservable, observable } from 'mobx';
|
|
4
|
+
import { makeAutoObservable, observable } from 'mobx';
|
|
11
5
|
/**
|
|
12
6
|
* An application root store for use with FIN5.
|
|
13
7
|
*/
|
|
@@ -44,12 +38,6 @@ export class Fin5AppRootStore {
|
|
|
44
38
|
this.historySidebar.state = state;
|
|
45
39
|
},
|
|
46
40
|
};
|
|
47
|
-
setTarget(target) {
|
|
48
|
-
this.target = target;
|
|
49
|
-
}
|
|
50
|
-
setTargetSidebar(targetSidebar) {
|
|
51
|
-
this.targetSidebar = targetSidebar;
|
|
52
|
-
}
|
|
53
41
|
constructor() {
|
|
54
42
|
makeAutoObservable(this, {
|
|
55
43
|
currentUser: observable.ref,
|
|
@@ -96,16 +84,4 @@ export class Fin5AppRootStore {
|
|
|
96
84
|
return false;
|
|
97
85
|
}
|
|
98
86
|
}
|
|
99
|
-
__decorate([
|
|
100
|
-
observable
|
|
101
|
-
], Fin5AppRootStore.prototype, "target", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
observable
|
|
104
|
-
], Fin5AppRootStore.prototype, "targetSidebar", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
action
|
|
107
|
-
], Fin5AppRootStore.prototype, "setTarget", null);
|
|
108
|
-
__decorate([
|
|
109
|
-
action
|
|
110
|
-
], Fin5AppRootStore.prototype, "setTargetSidebar", null);
|
|
111
87
|
//# sourceMappingURL=Fin5AppRootStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fin5AppRootStore.js","sourceRoot":"","sources":["../../../src/react/app/Fin5AppRootStore.ts"],"names":[],"mappings":"AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"Fin5AppRootStore.js","sourceRoot":"","sources":["../../../src/react/app/Fin5AppRootStore.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AAErD;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAC5B,OAAO,GAAG,EAAE,CAAA;IACZ,WAAW,GAAG,KAAK,CAAA;IACnB,MAAM,GAAG,EAAE,CAAA;IACX,UAAU,GAAa,EAAE,CAAA;IACzB,MAAM,GAAG,EAAE,CAAA;IACX,aAAa,GAAG,EAAE,CAAA;IAClB,WAAW,CAAmB;IAC9B,IAAI,GAAG;QAGN,OAAO,SAAS,CAAA;IACjB,CAAC;IACD,IAAI,OAAO;QAGV,OAAO,SAAS,CA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AI,IAAI,EAAE;YACT,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;gBAC1B,OAAO,KAAK,CAAA;aACZ;YAED,IAAI,IAAI,CAAC,GAAG,CAAO,UAAU,CAAC,EAAE,KAAK,KAAK,IAAI,EAAE;gBAC/C,OAAO,IAAI,CAAA;aACX;YAED,wDAAwD;YACxD,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;gBAC1B,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAO,WAAW,CAAC,EAAE,KAAK,CAAA;gBACpD,MAAM,IAAI,GAAG,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;gBAClC,OAAO,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAA;aACrC;iBAAM;gBACN,OAAO,IAAI,CAAA;aACX;SACD;QAED,OAAO,KAAK,CAAA;IACb,CAAC,CAAA;IACD,UAAU;QACT,OAAO,KAAK,CAAA;IACb,CAAC;CACD"}
|
|
@@ -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) =>
|
|
20
|
+
export declare const RecordImage: ({ imageRef, fallbackComponent, imgProps, }: RecordImageProps) => 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 type StackedColumnChartInterfaceColors = {
|
|
5
|
+
export declare 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?:
|
|
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 type PieChartInterfaceColors = {
|
|
4
|
+
export declare 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?:
|
|
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 type SliceAdapter<T extends keyof am5.ISliceSettings = keyof am5.ISliceSettings> = [
|
|
80
|
+
export declare 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 type HeaderSiderLayoutProps<T extends MenuPage> = Omit<BasicLayoutProps<T>, 'mobileHeaderProps'> & {
|
|
5
|
+
export declare 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 type MenuPage<T = Record<string, unknown>> = ItemType & Page<T>;
|
|
6
|
+
export declare 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 type ReactRouterMenuPage = MenuPage & {
|
|
6
|
+
export declare 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" />
|
|
1
2
|
import { ParametersOfSection, UiElementData } from '@j2inn/resolvable-ui-elements';
|
|
2
3
|
import { HDict } from 'haystack-core';
|
|
3
|
-
|
|
4
|
-
type Layout = 'horizontal' | 'vertical';
|
|
4
|
+
declare 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>) =>
|
|
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;
|
|
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>) =>
|
|
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;
|
|
27
27
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
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) =>
|
|
15
|
+
export declare const ConfigurationFormEntry: ({ name, value, onChange, disabled, options, className, }: ConfigurationFormEntryProps) => JSX.Element;
|
|
16
16
|
export {};
|
package/package.json
CHANGED