d2aura 26.0.7 → 26.0.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.
- package/api/eda/edaManagerApi.d.ts +26 -0
- package/api/eda/edaManagerApi.js +51 -0
- package/api/eda/edaManagerApi.js.map +1 -0
- package/api/eda/generated/events.d.ts +132 -0
- package/api/eda/generated/events.js +295 -0
- package/api/eda/generated/events.js.map +1 -0
- package/api/eda/generated/structures.d.ts +109 -0
- package/api/eda/generated/structures.js +2 -0
- package/api/eda/generated/structures.js.map +1 -0
- package/core/i18n/d2aura.en.json +40 -1
- package/core/i18n/d2aura.sk.json +87 -1
- package/coreui/components/edaManagerComponent/components/edaBasePanel.d.ts +16 -0
- package/coreui/components/edaManagerComponent/components/edaBasePanel.js +85 -0
- package/coreui/components/edaManagerComponent/components/edaBasePanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.d.ts +43 -0
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js +217 -0
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaDetailPanel.d.ts +16 -0
- package/coreui/components/edaManagerComponent/components/edaDetailPanel.js +25 -0
- package/coreui/components/edaManagerComponent/components/edaDetailPanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.d.ts +7 -0
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.js +393 -0
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaGroupDetailPanel.d.ts +18 -0
- package/coreui/components/edaManagerComponent/components/edaGroupDetailPanel.js +72 -0
- package/coreui/components/edaManagerComponent/components/edaGroupDetailPanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.d.ts +29 -0
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js +94 -0
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaScenarioDetailPanel.d.ts +18 -0
- package/coreui/components/edaManagerComponent/components/edaScenarioDetailPanel.js +86 -0
- package/coreui/components/edaManagerComponent/components/edaScenarioDetailPanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaTablePanel.d.ts +4 -0
- package/coreui/components/edaManagerComponent/components/edaTablePanel.js +73 -0
- package/coreui/components/edaManagerComponent/components/edaTablePanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.d.ts +34 -0
- package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.js +202 -0
- package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaTreeView.d.ts +61 -0
- package/coreui/components/edaManagerComponent/components/edaTreeView.js +399 -0
- package/coreui/components/edaManagerComponent/components/edaTreeView.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.d.ts +20 -0
- package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.js +162 -0
- package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/constants/edaTypes.d.ts +78 -0
- package/coreui/components/edaManagerComponent/constants/edaTypes.js +71 -0
- package/coreui/components/edaManagerComponent/constants/edaTypes.js.map +1 -0
- package/coreui/components/edaManagerComponent/constants/storageTypes.d.ts +5 -0
- package/coreui/components/edaManagerComponent/constants/storageTypes.js +7 -0
- package/coreui/components/edaManagerComponent/constants/storageTypes.js.map +1 -0
- package/coreui/components/edaManagerComponent/context/sharedSampleRange.d.ts +17 -0
- package/coreui/components/edaManagerComponent/context/sharedSampleRange.js +3 -0
- package/coreui/components/edaManagerComponent/context/sharedSampleRange.js.map +1 -0
- package/coreui/components/edaManagerComponent/context/sharedSampleRangeWrapper.d.ts +6 -0
- package/coreui/components/edaManagerComponent/context/sharedSampleRangeWrapper.js +14 -0
- package/coreui/components/edaManagerComponent/context/sharedSampleRangeWrapper.js.map +1 -0
- package/coreui/components/edaManagerComponent/edaDetail.d.ts +45 -0
- package/coreui/components/edaManagerComponent/edaDetail.js +173 -0
- package/coreui/components/edaManagerComponent/edaDetail.js.map +1 -0
- package/coreui/components/edaManagerComponent/edaManager.d.ts +20 -0
- package/coreui/components/edaManagerComponent/edaManager.js +33 -0
- package/coreui/components/edaManagerComponent/edaManager.js.map +1 -0
- package/coreui/components/edaManagerComponent/edaNavigator.d.ts +19 -0
- package/coreui/components/edaManagerComponent/edaNavigator.js +64 -0
- package/coreui/components/edaManagerComponent/edaNavigator.js.map +1 -0
- package/coreui/components/edaManagerComponent/edaSelect.d.ts +10 -0
- package/coreui/components/edaManagerComponent/edaSelect.js +9 -0
- package/coreui/components/edaManagerComponent/edaSelect.js.map +1 -0
- package/coreui/components/edaManagerComponent/icons/letterCFilled.d.ts +6 -0
- package/coreui/components/edaManagerComponent/icons/letterCFilled.js +6 -0
- package/coreui/components/edaManagerComponent/icons/letterCFilled.js.map +1 -0
- package/coreui/components/edaManagerComponent/icons/letterDFilled.d.ts +6 -0
- package/coreui/components/edaManagerComponent/icons/letterDFilled.js +6 -0
- package/coreui/components/edaManagerComponent/icons/letterDFilled.js.map +1 -0
- package/coreui/components/edaManagerComponent/icons/letterHFilled.d.ts +6 -0
- package/coreui/components/edaManagerComponent/icons/letterHFilled.js +6 -0
- package/coreui/components/edaManagerComponent/icons/letterHFilled.js.map +1 -0
- package/coreui/components/edaManagerComponent/icons/letterIFilled.d.ts +6 -0
- package/coreui/components/edaManagerComponent/icons/letterIFilled.js +6 -0
- package/coreui/components/edaManagerComponent/icons/letterIFilled.js.map +1 -0
- package/coreui/components/edaManagerComponent/icons/letterMFilled.d.ts +6 -0
- package/coreui/components/edaManagerComponent/icons/letterMFilled.js +6 -0
- package/coreui/components/edaManagerComponent/icons/letterMFilled.js.map +1 -0
- package/coreui/components/edaManagerComponent/icons/numberFifteenFilled.d.ts +6 -0
- package/coreui/components/edaManagerComponent/icons/numberFifteenFilled.js +7 -0
- package/coreui/components/edaManagerComponent/icons/numberFifteenFilled.js.map +1 -0
- package/coreui/components/edaManagerComponent/icons/pairOutlined.d.ts +6 -0
- package/coreui/components/edaManagerComponent/icons/pairOutlined.js +6 -0
- package/coreui/components/edaManagerComponent/icons/pairOutlined.js.map +1 -0
- package/coreui/components/edaManagerComponent/icons/periodicOutlined.d.ts +6 -0
- package/coreui/components/edaManagerComponent/icons/periodicOutlined.js +6 -0
- package/coreui/components/edaManagerComponent/icons/periodicOutlined.js.map +1 -0
- package/coreui/components/edaManagerComponent/utils/utils.d.ts +2 -0
- package/coreui/components/edaManagerComponent/utils/utils.js +8 -0
- package/coreui/components/edaManagerComponent/utils/utils.js.map +1 -0
- package/d2configuration/edaManager/DB.EM_EDA_Function.xml +65 -0
- package/d2configuration/edaManager/DB.EM_EDA_GroupVector.xml +65 -0
- package/d2configuration/edaManager/DB.EM_EDA_Scenario.xml +65 -0
- package/d2configuration/edaManager/DB.EM_EDA_Vector.xml +65 -0
- package/d2configuration/edaManager/DB.EM_EDA_VectorEx.xml +65 -0
- package/d2configuration/edaManager/DBC_EM_EDA.xml +51 -0
- package/d2configuration/edaManager/E.EM_DETAIL_IMPL.xml +124 -0
- package/d2configuration/edaManager/E.EM_DETAIL_UNIT.xml +202 -0
- package/d2configuration/edaManager/E.EM_NAVIGATOR_IMPL.xml +160 -0
- package/d2configuration/edaManager/E.EM_NAVIGATOR_SQL.xml +272 -0
- package/d2configuration/edaManager/E.EM_NAVIGATOR_UNIT.xml +346 -0
- package/d2configuration/edaManager/E.EM_VECTOR_IMPL.xml +92 -0
- package/d2configuration/edaManager/E.EM_VECTOR_MANAGER.xml +116 -0
- package/d2configuration/edaManager/E.EM_VECTOR_UNIT.xml +124 -0
- package/d2configuration/edaManager/EDA_CancelSession.xml +54 -0
- package/d2configuration/edaManager/EDA_GetSessionId.xml +54 -0
- package/d2configuration/edaManager/EDA_ReadValuesFromVektorRec.xml +54 -0
- package/d2configuration/edaManager/SD.EM_EDA_Function.xml +135 -0
- package/d2configuration/edaManager/SD.EM_EDA_GroupVector.xml +190 -0
- package/d2configuration/edaManager/SD.EM_EDA_ReadValuesFromVector_V1.xml +168 -0
- package/d2configuration/edaManager/SD.EM_EDA_Scenario.xml +322 -0
- package/d2configuration/edaManager/SD.EM_EDA_Vector.xml +465 -0
- package/d2configuration/edaManager/SD.EM_EDA_VectorEx.xml +80 -0
- package/d2configuration/edaManager/SD.EM_EDA_VectorValues.xml +58 -0
- package/d2configuration/edaManager/SD.EM_Tree_Item.xml +113 -0
- package/package.json +8 -6
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { UnixTime } from "d2core/types/unixTime";
|
|
2
|
+
export interface SD_EM_EDA_VectorValues {
|
|
3
|
+
Value: number;
|
|
4
|
+
}
|
|
5
|
+
export interface SD_EM_EDA_Scenario {
|
|
6
|
+
ID_SCENAR: number;
|
|
7
|
+
EDA_ID_SCENAR: number;
|
|
8
|
+
MENO: string;
|
|
9
|
+
POPIS: string;
|
|
10
|
+
IDX: number;
|
|
11
|
+
CAS_DLZKA: number;
|
|
12
|
+
CAS_POSUN: number;
|
|
13
|
+
CAS_JEMNOST: number;
|
|
14
|
+
AUTOR: string;
|
|
15
|
+
PRIVATE: number;
|
|
16
|
+
PRIST_PRAVA_R: number;
|
|
17
|
+
PRIST_PRAVA_W: number;
|
|
18
|
+
CESTA: string;
|
|
19
|
+
FILTER: string;
|
|
20
|
+
FILTER_USER: string;
|
|
21
|
+
FILTER_TYP: number;
|
|
22
|
+
ZOBRAZ_MENO: string;
|
|
23
|
+
ANO_PLATNY: number;
|
|
24
|
+
DIAGRAM: number;
|
|
25
|
+
ANO_DIAGRAM: number;
|
|
26
|
+
ANO_EDITACIA: number;
|
|
27
|
+
ANO_ZMENA: number;
|
|
28
|
+
ANO_GRAFXY: number;
|
|
29
|
+
ANO_MATICA: number;
|
|
30
|
+
ANO_PAIR: number;
|
|
31
|
+
}
|
|
32
|
+
export interface SD_EM_Tree_Item {
|
|
33
|
+
ID: number;
|
|
34
|
+
ParentID: number;
|
|
35
|
+
Name: string;
|
|
36
|
+
Path: string;
|
|
37
|
+
DisplayName: string;
|
|
38
|
+
Type: number;
|
|
39
|
+
}
|
|
40
|
+
export interface SD_EM_EDA_VectorEx {
|
|
41
|
+
ID_VEKTOR: number;
|
|
42
|
+
DATE_IN: UnixTime;
|
|
43
|
+
DATE_CH: UnixTime;
|
|
44
|
+
}
|
|
45
|
+
export interface SD_EM_EDA_Vector {
|
|
46
|
+
ID_VEKTOR: number;
|
|
47
|
+
ID_SKVEKTOR: number;
|
|
48
|
+
ID_FUNKCIA: number;
|
|
49
|
+
MENO: string;
|
|
50
|
+
POPIS: string;
|
|
51
|
+
TECH_JEDNOTKY: string;
|
|
52
|
+
TYP_HODNOTY: number;
|
|
53
|
+
TYP: number;
|
|
54
|
+
DATA_OD: UnixTime;
|
|
55
|
+
DATA_DO: UnixTime;
|
|
56
|
+
AUTOR: string;
|
|
57
|
+
PRIVATE: number;
|
|
58
|
+
PRIST_PRAVA_R: number;
|
|
59
|
+
PRIST_PRAVA_W: number;
|
|
60
|
+
INTEGRAL: number;
|
|
61
|
+
ZOBRAZ_MENO: string;
|
|
62
|
+
ANO_PLATNY: number;
|
|
63
|
+
VIEW_ROUND: number;
|
|
64
|
+
EXEC_ROUND: number;
|
|
65
|
+
VIEW_DEC_PL: number;
|
|
66
|
+
EXEC_DEC_PL: number;
|
|
67
|
+
USER_CH: string;
|
|
68
|
+
MENOEX: string;
|
|
69
|
+
ID_TABLESPACE: number;
|
|
70
|
+
DATA_OFFSET: number;
|
|
71
|
+
TIME_ZONE: string;
|
|
72
|
+
VERSIONED_SINCE: UnixTime;
|
|
73
|
+
ARCHIVE_NAME: string;
|
|
74
|
+
ARCHIVE_ROW: number;
|
|
75
|
+
ARCHIVE_COL: number;
|
|
76
|
+
LOG_ACCESS: number;
|
|
77
|
+
STATUS_TEXT: string;
|
|
78
|
+
ID_MASTER_ENTITY: number;
|
|
79
|
+
INTERVAL_STABLE: number;
|
|
80
|
+
PERIOD_BEGIN_TIME: UnixTime;
|
|
81
|
+
PERIOD_STEP_BASE: number;
|
|
82
|
+
PERIOD_STEP_COUNT: number;
|
|
83
|
+
ID_VALIDATOR: number;
|
|
84
|
+
}
|
|
85
|
+
export interface SD_EM_EDA_Function {
|
|
86
|
+
ID_VEKTOR: number;
|
|
87
|
+
TYP: number;
|
|
88
|
+
PERIODA: number;
|
|
89
|
+
POSUN: number;
|
|
90
|
+
PREPOCIT: number;
|
|
91
|
+
PREDV_OD: UnixTime;
|
|
92
|
+
PREDV_DO: UnixTime;
|
|
93
|
+
PRECALC_RQ: number;
|
|
94
|
+
}
|
|
95
|
+
export interface SD_EM_EDA_GroupVector {
|
|
96
|
+
ID_SKVEKTOR: number;
|
|
97
|
+
EDA_ID_SKVEKTOR: number;
|
|
98
|
+
MENO: string;
|
|
99
|
+
POPIS: string;
|
|
100
|
+
AUTOR: string;
|
|
101
|
+
PRIST_PRAVA_R: number;
|
|
102
|
+
PRIST_PRAVA_W: number;
|
|
103
|
+
CESTA: string;
|
|
104
|
+
ANO_PLATNY: number;
|
|
105
|
+
ZOBRAZ_MENO: string;
|
|
106
|
+
PRIVATE: number;
|
|
107
|
+
USERINPUTFLAG: number;
|
|
108
|
+
ANO_PAIR: number;
|
|
109
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structures.js","sourceRoot":"","sources":["../../../../../api/eda/generated/structures.ts"],"names":[],"mappings":"","sourcesContent":["/******************************************************\r\n * THIS FILE IS AUTOMATICALLY GENERATED! DO NOT EDIT! *\r\n ******************************************************/\r\n\r\n// @ts-ignore\r\nimport {UnixTime} from \"d2core/types/unixTime\";\r\n\r\nexport interface SD_EM_EDA_VectorValues {\r\n Value: number;\r\n}\r\n\r\nexport interface SD_EM_EDA_Scenario {\r\n ID_SCENAR: number;\r\n EDA_ID_SCENAR: number;\r\n MENO: string;\r\n POPIS: string;\r\n IDX: number;\r\n CAS_DLZKA: number;\r\n CAS_POSUN: number;\r\n CAS_JEMNOST: number;\r\n AUTOR: string;\r\n PRIVATE: number;\r\n PRIST_PRAVA_R: number;\r\n PRIST_PRAVA_W: number;\r\n CESTA: string;\r\n FILTER: string;\r\n FILTER_USER: string;\r\n FILTER_TYP: number;\r\n ZOBRAZ_MENO: string;\r\n ANO_PLATNY: number;\r\n DIAGRAM: number;\r\n ANO_DIAGRAM: number;\r\n ANO_EDITACIA: number;\r\n ANO_ZMENA: number;\r\n ANO_GRAFXY: number;\r\n ANO_MATICA: number;\r\n ANO_PAIR: number;\r\n}\r\n\r\nexport interface SD_EM_Tree_Item {\r\n ID: number;\r\n ParentID: number;\r\n Name: string;\r\n Path: string;\r\n DisplayName: string;\r\n Type: number;\r\n}\r\n\r\nexport interface SD_EM_EDA_VectorEx {\r\n ID_VEKTOR: number;\r\n DATE_IN: UnixTime;\r\n DATE_CH: UnixTime;\r\n}\r\n\r\nexport interface SD_EM_EDA_Vector {\r\n ID_VEKTOR: number;\r\n ID_SKVEKTOR: number;\r\n ID_FUNKCIA: number;\r\n MENO: string;\r\n POPIS: string;\r\n TECH_JEDNOTKY: string;\r\n TYP_HODNOTY: number;\r\n TYP: number;\r\n DATA_OD: UnixTime;\r\n DATA_DO: UnixTime;\r\n AUTOR: string;\r\n PRIVATE: number;\r\n PRIST_PRAVA_R: number;\r\n PRIST_PRAVA_W: number;\r\n INTEGRAL: number;\r\n ZOBRAZ_MENO: string;\r\n ANO_PLATNY: number;\r\n VIEW_ROUND: number;\r\n EXEC_ROUND: number;\r\n VIEW_DEC_PL: number;\r\n EXEC_DEC_PL: number;\r\n USER_CH: string;\r\n MENOEX: string;\r\n ID_TABLESPACE: number;\r\n DATA_OFFSET: number;\r\n TIME_ZONE: string;\r\n VERSIONED_SINCE: UnixTime;\r\n ARCHIVE_NAME: string;\r\n ARCHIVE_ROW: number;\r\n ARCHIVE_COL: number;\r\n LOG_ACCESS: number;\r\n STATUS_TEXT: string;\r\n ID_MASTER_ENTITY: number;\r\n INTERVAL_STABLE: number;\r\n PERIOD_BEGIN_TIME: UnixTime;\r\n PERIOD_STEP_BASE: number;\r\n PERIOD_STEP_COUNT: number;\r\n ID_VALIDATOR: number;\r\n}\r\n\r\nexport interface SD_EM_EDA_Function {\r\n ID_VEKTOR: number;\r\n TYP: number;\r\n PERIODA: number;\r\n POSUN: number;\r\n PREPOCIT: number;\r\n PREDV_OD: UnixTime;\r\n PREDV_DO: UnixTime;\r\n PRECALC_RQ: number;\r\n}\r\n\r\nexport interface SD_EM_EDA_GroupVector {\r\n ID_SKVEKTOR: number;\r\n EDA_ID_SKVEKTOR: number;\r\n MENO: string;\r\n POPIS: string;\r\n AUTOR: string;\r\n PRIST_PRAVA_R: number;\r\n PRIST_PRAVA_W: number;\r\n CESTA: string;\r\n ANO_PLATNY: number;\r\n ZOBRAZ_MENO: string;\r\n PRIVATE: number;\r\n USERINPUTFLAG: number;\r\n ANO_PAIR: number;\r\n}\r\n\r\n"]}
|
package/core/i18n/d2aura.en.json
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
1
|
{
|
|
2
|
-
"Title[degree]": "Title"
|
|
2
|
+
"Title[degree]": "Title",
|
|
3
|
+
"Name[Title]": "Name",
|
|
4
|
+
"WholeInterval": "Whole Interval",
|
|
5
|
+
"EdaVectorType_FifteenMinutes": "15-minute",
|
|
6
|
+
"EdaVectorType_Hour": "Hourly",
|
|
7
|
+
"EdaVectorType_Day": "Daily",
|
|
8
|
+
"EdaVectorType_Descriptive": "Descriptive",
|
|
9
|
+
"EdaVectorType_Interval": "Interval",
|
|
10
|
+
"EdaVectorType_FifteenMinutesCalc": "Calculated 15-minute",
|
|
11
|
+
"EdaVectorType_HourCalc": "Calculated hourly",
|
|
12
|
+
"EdaVectorType_DayCalc": "Calculated daily",
|
|
13
|
+
"EdaVectorType_Change": "Change",
|
|
14
|
+
"EdaVectorType_ChangeCalc": "Calculated Change",
|
|
15
|
+
"EdaVectorType_Pair": "Pair",
|
|
16
|
+
"EdaVectorType_Periodic": "Periodic",
|
|
17
|
+
"EdaVectorType_PeriodicCalc": "Calculated periodic",
|
|
18
|
+
"EdaVectorType_Functional": "Calculated functional",
|
|
19
|
+
"EdaValueClassType_Value": "Value",
|
|
20
|
+
"EdaValueClassType_Integral": "Integral",
|
|
21
|
+
"EdaRoundingType_NoRounding": "Absolute precision",
|
|
22
|
+
"EdaRoundingType_RoundToNearest": "Standard rounding",
|
|
23
|
+
"EdaRoundingType_Ceiling": "Round up",
|
|
24
|
+
"EdaRoundingType_Floor": "Round down",
|
|
25
|
+
"EdaAccessType_Public": "Public",
|
|
26
|
+
"EdaAccessType_Private": "Private",
|
|
27
|
+
"EdaUserInputFlagType_FlagA": "Flag A",
|
|
28
|
+
"EdaUserInputFlagType_FlagB": "Flag B",
|
|
29
|
+
"EdaUserInputFlagType_FlagC": "Flag C",
|
|
30
|
+
"EdaUserInputFlagType_FlagD": "Flag D",
|
|
31
|
+
"EdaSamplingType_Changes": "Change of value",
|
|
32
|
+
"EdaSamplingType_Default": "Default value",
|
|
33
|
+
"EdaSamplingType_FifteenMinutes": "15-minute value",
|
|
34
|
+
"EdaSamplingType_Hour": "Hourly value",
|
|
35
|
+
"EdaSamplingType_Day": "Daily value",
|
|
36
|
+
"EdaSamplingType_Week": "Weekly value",
|
|
37
|
+
"EdaSamplingType_Month": "Monthly value",
|
|
38
|
+
"EdaSamplingType_Quarter": "Quarterly value",
|
|
39
|
+
"EdaSamplingType_HalfYear": "Half-yearly value",
|
|
40
|
+
"EdaSamplingType_Year": "Yearly value",
|
|
41
|
+
"EdaSamplingType_Season": "Seasonal value"
|
|
3
42
|
}
|
package/core/i18n/d2aura.sk.json
CHANGED
|
@@ -322,5 +322,91 @@
|
|
|
322
322
|
null,
|
|
323
323
|
"Odstrániť %n vektorov?"
|
|
324
324
|
]
|
|
325
|
-
]
|
|
325
|
+
],
|
|
326
|
+
"Vector Type": "Typ vektora",
|
|
327
|
+
"Vector Code Generation": "Generovať kód vektora",
|
|
328
|
+
"Record Validity Indication": "Indikácia platnosti záznamu",
|
|
329
|
+
"Name[Title]": "Názov",
|
|
330
|
+
"Value Class": "Určenie hodnoty",
|
|
331
|
+
"Units": "Tech. jednotky",
|
|
332
|
+
"Filter": "Filter",
|
|
333
|
+
"Rounding": "Zaokrúhľovanie",
|
|
334
|
+
"View": "Pohľad",
|
|
335
|
+
"Decimal Places": "Počet des. miest",
|
|
336
|
+
"Calculation": "Pre výpočet",
|
|
337
|
+
"Time Values": "Časové hodnoty",
|
|
338
|
+
"Creation Date": "Dátum vytvorenia",
|
|
339
|
+
"Last Modified Date": "Dátum poslednej zmeny",
|
|
340
|
+
"Validity From": "Platný od",
|
|
341
|
+
"Validity To": "Platný do",
|
|
342
|
+
"Pre-calc From": "Predpočet od",
|
|
343
|
+
"Pre-calc To": "Predpočet do",
|
|
344
|
+
"Other Info": "Ďalšie informácie",
|
|
345
|
+
"Tablespace": "Priestor",
|
|
346
|
+
"Validation": "Validácia",
|
|
347
|
+
"Time Zone": "Časová zóna",
|
|
348
|
+
"Data Offset": "Posun",
|
|
349
|
+
"Access Type": "Typ prístupu",
|
|
350
|
+
"Owner": "Vlastník",
|
|
351
|
+
"Parameters": "Parametre",
|
|
352
|
+
"Versioning": "Verzie",
|
|
353
|
+
"No data provided": "Nie sú dostupné žiadne informácie",
|
|
354
|
+
"Show %{n} more (of %{o})": "Zobraz ďalších %{n} (z %{o})",
|
|
355
|
+
"Graph": "Graf",
|
|
356
|
+
"Groups": "Skupiny",
|
|
357
|
+
"Scenarios": "Scenáre",
|
|
358
|
+
"Pair": "Párová",
|
|
359
|
+
"Path": "Cesta",
|
|
360
|
+
"Manual Access Flag": "Príznak ručného vstupu",
|
|
361
|
+
"Scenario Access Definition": "Prístup na zmenu definície scenára",
|
|
362
|
+
"Scenario Access Items": "Prístup k editácii položiek scenára",
|
|
363
|
+
"Loading": "Načítava sa",
|
|
364
|
+
"Vector Time": "Čas vektora",
|
|
365
|
+
"Hourly": "Hodinovo",
|
|
366
|
+
"Daily": "Denne",
|
|
367
|
+
"Weekly": "Týždenne",
|
|
368
|
+
"Monthly": "Mesačne",
|
|
369
|
+
"Yearly": "Ročne",
|
|
370
|
+
"WholeInterval": "Celý interval",
|
|
371
|
+
"Show Legend": "Zobraziť legendu",
|
|
372
|
+
"Zoom": "Lupa",
|
|
373
|
+
"Restore": "Obnoviť",
|
|
374
|
+
"Export as PNG": "Exportovať ako PNG obrázok",
|
|
375
|
+
"EdaVectorType_FifteenMinutes": "15 - minútový",
|
|
376
|
+
"EdaVectorType_Hour": "Hodinový",
|
|
377
|
+
"EdaVectorType_Day": "Denný",
|
|
378
|
+
"EdaVectorType_Descriptive": "Popisný",
|
|
379
|
+
"EdaVectorType_Interval": "Intervalový",
|
|
380
|
+
"EdaVectorType_FifteenMinutesCalc": "Vypočítaný 15 - minútový",
|
|
381
|
+
"EdaVectorType_HourCalc": "Vypočítaný hodinový",
|
|
382
|
+
"EdaVectorType_DayCalc": "Vypočítaný denný",
|
|
383
|
+
"EdaVectorType_Change": "Zmenový",
|
|
384
|
+
"EdaVectorType_ChangeCalc": "Vypočítaný zmenový",
|
|
385
|
+
"EdaVectorType_Pair": "Párový",
|
|
386
|
+
"EdaVectorType_Periodic": "Periodický",
|
|
387
|
+
"EdaVectorType_PeriodicCalc": "Vypočítaný periodický",
|
|
388
|
+
"EdaVectorType_Functional": "Vypočítaný Funkčný",
|
|
389
|
+
"EdaValueClassType_Value": "Hodnota",
|
|
390
|
+
"EdaValueClassType_Integral": "Integrál",
|
|
391
|
+
"EdaRoundingType_NoRounding": "Absolútna presnosť",
|
|
392
|
+
"EdaRoundingType_RoundToNearest": "Zaokr. matematické",
|
|
393
|
+
"EdaRoundingType_Ceiling": "Celá časť - hore",
|
|
394
|
+
"EdaRoundingType_Floor": "Celá časť - dole",
|
|
395
|
+
"EdaAccessType_Public": "Verejný",
|
|
396
|
+
"EdaAccessType_Private": "Súkromný",
|
|
397
|
+
"EdaUserInputFlagType_FlagA": "Príznak A",
|
|
398
|
+
"EdaUserInputFlagType_FlagB": "Príznak B",
|
|
399
|
+
"EdaUserInputFlagType_FlagC": "Príznak C",
|
|
400
|
+
"EdaUserInputFlagType_FlagD": "Príznak D",
|
|
401
|
+
"EdaSamplingType_Changes": "Zmena hodnoty",
|
|
402
|
+
"EdaSamplingType_Default": "Prednastavená hodnota",
|
|
403
|
+
"EdaSamplingType_FifteenMinutes": "15 minútová hodnota",
|
|
404
|
+
"EdaSamplingType_Hour": "Hodinová hodnota",
|
|
405
|
+
"EdaSamplingType_Day": "Dňová hodnota",
|
|
406
|
+
"EdaSamplingType_Week": "Týždenná hodnota",
|
|
407
|
+
"EdaSamplingType_Month": "Mesačná hodnota",
|
|
408
|
+
"EdaSamplingType_Quarter": "Štvrťročná hodnota",
|
|
409
|
+
"EdaSamplingType_HalfYear": "Polročná hodnota",
|
|
410
|
+
"EdaSamplingType_Year": "Ročná hodnota",
|
|
411
|
+
"EdaSamplingType_Season": "Sezónna hodnota"
|
|
326
412
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GroupData, IdType, ScenarioData, VectorData } from "../constants/edaTypes";
|
|
3
|
+
import { AliasToken } from "antd/es/theme/interface";
|
|
4
|
+
export interface BaseProps {
|
|
5
|
+
data?: VectorData | GroupData | ScenarioData;
|
|
6
|
+
type?: IdType;
|
|
7
|
+
}
|
|
8
|
+
export interface BaseState {
|
|
9
|
+
}
|
|
10
|
+
export declare abstract class EdaBasePanel<P extends BaseProps, S extends BaseState> extends React.Component<P, S> {
|
|
11
|
+
protected constructor(props: Readonly<P>);
|
|
12
|
+
protected abstract renderPanel(theme: AliasToken, type: IdType, data: VectorData | GroupData | ScenarioData): React.ReactNode;
|
|
13
|
+
protected abstract getDefaultBaseState(props: Readonly<P>): S;
|
|
14
|
+
render(): React.JSX.Element;
|
|
15
|
+
private renderEmpty;
|
|
16
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Card, Empty } from "antd";
|
|
3
|
+
import { createStyles } from "antd-style";
|
|
4
|
+
import WithCss from "d2coreui/components/style/withCss";
|
|
5
|
+
import i18n from "d2core/i18n/i18n";
|
|
6
|
+
const useStyles = createStyles(({ css, token }) => {
|
|
7
|
+
return {
|
|
8
|
+
baseLayout: css `
|
|
9
|
+
display: flex;
|
|
10
|
+
height: 100%;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
border-top-left-radius: 0;
|
|
14
|
+
border-top-right-radius: 0;
|
|
15
|
+
|
|
16
|
+
> .ant-card-body {
|
|
17
|
+
height: 100%;
|
|
18
|
+
padding: ${token.paddingXS}px;
|
|
19
|
+
|
|
20
|
+
> div {
|
|
21
|
+
height: 100%;
|
|
22
|
+
overflow-x: hidden;
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ant-spin-nested-loading {
|
|
28
|
+
height: 100%;
|
|
29
|
+
width: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ant-spin-container {
|
|
33
|
+
display: flex;
|
|
34
|
+
height: 100%;
|
|
35
|
+
width: 100%;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
gap: ${token.paddingXXS}px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ant-spin-container > div {
|
|
42
|
+
flex: 0 0 auto;
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ant-spin-container > div:last-child {
|
|
48
|
+
width: 100%;
|
|
49
|
+
flex: 1 1 auto;
|
|
50
|
+
position: relative;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.eda-detail-no-data {
|
|
54
|
+
padding: ${token.padding}px;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center !important;
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.progress {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
}
|
|
67
|
+
`
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
export class EdaBasePanel extends React.Component {
|
|
71
|
+
constructor(props) {
|
|
72
|
+
super(props);
|
|
73
|
+
this.state = this.getDefaultBaseState(props);
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
const { type, data } = this.props;
|
|
77
|
+
return (React.createElement(WithCss, { useStyles: useStyles }, (css) => React.createElement(Card, { className: css.styles.baseLayout },
|
|
78
|
+
React.createElement("div", null, (type === undefined || data === undefined) ? this.renderEmpty() : this.renderPanel(css.theme, type, data)))));
|
|
79
|
+
}
|
|
80
|
+
renderEmpty() {
|
|
81
|
+
return React.createElement("div", { className: "eda-detail-no-data" },
|
|
82
|
+
React.createElement(Empty, { description: i18n("No data provided") }));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=edaBasePanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edaBasePanel.js","sourceRoot":"","sources":["../../../../../../coreui/components/edaManagerComponent/components/edaBasePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,IAAI,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AACjC,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AACxC,OAAO,OAAO,MAAM,mCAAmC,CAAC;AAExD,OAAO,IAAI,MAAM,kBAAkB,CAAC;AAGpC,MAAM,SAAS,GAAG,YAAY,CAAC,CAAC,EAAC,GAAG,EAAE,KAAK,EAAC,EAAG,EAAE;IAC7C,OAAO;QACH,UAAU,EAAE,GAAG,CAAA;;;;;;;;;;2BAUI,KAAK,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;uBAoBnB,KAAK,CAAC,UAAU;;;;;;;;;;;;;;;;2BAgBZ,KAAK,CAAC,OAAO;;;;;;;;;;;;;SAa/B;KACJ,CAAA;AACL,CAAC,CAAC,CAAC;AASH,MAAM,OAAgB,YAAuD,SAAQ,KAAK,CAAC,SAAe;IACtG,YAAsB,KAAkB;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;IAMD,MAAM;QACF,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAEhC,OAAO,CACH,oBAAC,OAAO,IAAC,SAAS,EAAE,SAAS,IACxB,CAAC,GAAG,EAAE,EAAE,CACL,oBAAC,IAAI,IAAC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU;YAClC,iCACK,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,KAAmB,EAAE,IAAI,EAAE,IAAI,CAAC,CACtH,CACH,CAEL,CACb,CAAA;IACL,CAAC;IAEO,WAAW;QACf,OAAO,6BAAK,SAAS,EAAE,oBAAoB;YAAE,oBAAC,KAAK,IAAC,WAAW,EAAE,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAM,CAAA;IACtG,CAAC;CACJ","sourcesContent":["import React from \"react\";\r\nimport {Card, Empty} from \"antd\";\r\nimport {createStyles} from \"antd-style\";\r\nimport WithCss from \"d2coreui/components/style/withCss\";\r\nimport {GroupData, IdType, ScenarioData, VectorData} from \"../constants/edaTypes\";\r\nimport i18n from \"d2core/i18n/i18n\";\r\nimport {AliasToken} from \"antd/es/theme/interface\";\r\n\r\nconst useStyles = createStyles(({css, token},) => {\r\n return {\r\n baseLayout: css`\r\n display: flex;\r\n height: 100%;\r\n flex-direction: column;\r\n justify-content: space-between;\r\n border-top-left-radius: 0;\r\n border-top-right-radius: 0;\r\n\r\n > .ant-card-body {\r\n height: 100%;\r\n padding: ${token.paddingXS}px;\r\n\r\n > div {\r\n height: 100%;\r\n overflow-x: hidden;\r\n overflow-y: auto;\r\n }\r\n }\r\n\r\n .ant-spin-nested-loading {\r\n height: 100%;\r\n width: 100%;\r\n }\r\n\r\n .ant-spin-container {\r\n display: flex;\r\n height: 100%;\r\n width: 100%;\r\n flex-direction: column;\r\n justify-content: space-between;\r\n gap: ${token.paddingXXS}px;\r\n }\r\n\r\n .ant-spin-container > div {\r\n flex: 0 0 auto;\r\n display: flex;\r\n justify-content: space-between;\r\n }\r\n\r\n .ant-spin-container > div:last-child {\r\n width: 100%;\r\n flex: 1 1 auto;\r\n position: relative;\r\n }\r\n\r\n .eda-detail-no-data {\r\n padding: ${token.padding}px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center !important;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n\r\n .progress {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n `\r\n }\r\n});\r\n\r\nexport interface BaseProps {\r\n data?: VectorData | GroupData | ScenarioData\r\n type?: IdType\r\n}\r\n\r\nexport interface BaseState {}\r\n\r\nexport abstract class EdaBasePanel<P extends BaseProps, S extends BaseState> extends React.Component<P, S> {\r\n protected constructor(props: Readonly<P>) {\r\n super(props);\r\n this.state = this.getDefaultBaseState(props);\r\n }\r\n\r\n protected abstract renderPanel(theme: AliasToken, type: IdType, data: VectorData | GroupData | ScenarioData): React.ReactNode;\r\n\r\n protected abstract getDefaultBaseState(props: Readonly<P>): S;\r\n\r\n render() {\r\n const {type, data} = this.props;\r\n\r\n return (\r\n <WithCss useStyles={useStyles}>\r\n {(css) =>\r\n <Card className={css.styles.baseLayout}>\r\n <div>\r\n {(type === undefined || data === undefined) ? this.renderEmpty() : this.renderPanel(css.theme as AliasToken, type, data)}\r\n </div>\r\n </Card>\r\n }\r\n </WithCss>\r\n )\r\n }\r\n\r\n private renderEmpty(): React.ReactNode {\r\n return <div className={\"eda-detail-no-data\"}><Empty description={i18n(\"No data provided\")}/></div>\r\n }\r\n}"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BaseProps, BaseState, EdaBasePanel } from "./edaBasePanel";
|
|
2
|
+
import { GroupData, IdType, ScenarioData, VectorData } from "../constants/edaTypes";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { AliasToken } from "antd/es/theme/interface";
|
|
5
|
+
import { SizeType } from "antd/lib/config-provider/SizeContext";
|
|
6
|
+
import EdaManagerApi, { VectorValue } from "../../../../api/eda/edaManagerApi";
|
|
7
|
+
import { SD_EM_Tree_Item } from "../../../../api/eda/generated/structures";
|
|
8
|
+
import { WithSharedSampleRangeWrapperProps } from "../context/sharedSampleRangeWrapper";
|
|
9
|
+
import { SharedSampleRange } from "../context/sharedSampleRange";
|
|
10
|
+
export interface BaseDataProps extends BaseProps, WithSharedSampleRangeWrapperProps {
|
|
11
|
+
api: EdaManagerApi;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
size?: SizeType;
|
|
14
|
+
showTimeWindow?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface BaseDataState extends BaseState {
|
|
17
|
+
needsReload: boolean;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
loadingPercentage: number;
|
|
20
|
+
loadingVector: string;
|
|
21
|
+
loadingCount: number;
|
|
22
|
+
}
|
|
23
|
+
export declare abstract class EdaBaseDataPanel<P extends BaseDataProps, S extends BaseDataState> extends EdaBasePanel<P, S> {
|
|
24
|
+
static contextType: React.Context<SharedSampleRange | undefined>;
|
|
25
|
+
context: SharedSampleRange;
|
|
26
|
+
private latestRequestId;
|
|
27
|
+
protected abstract renderContent(token: AliasToken): React.ReactNode;
|
|
28
|
+
protected abstract getDefaultDataBaseState(props: P): Omit<S, keyof BaseDataState>;
|
|
29
|
+
protected abstract onDataLoaded(data: {
|
|
30
|
+
[id: number]: VectorValue[];
|
|
31
|
+
}, vectors: SD_EM_Tree_Item[]): void;
|
|
32
|
+
protected onDataSourceChanged(): void;
|
|
33
|
+
protected onLoadVectors(vectors: SD_EM_Tree_Item[]): SD_EM_Tree_Item[];
|
|
34
|
+
componentDidMount(): Promise<void>;
|
|
35
|
+
componentDidUpdate(prevProps: Readonly<P>, _prevState: Readonly<S>): Promise<void>;
|
|
36
|
+
protected getDefaultBaseState(props: P): S;
|
|
37
|
+
protected renderPanel(token: AliasToken, _type: IdType, _data: VectorData | GroupData | ScenarioData): React.ReactNode;
|
|
38
|
+
protected loadVectorData(vectors: SD_EM_Tree_Item[]): Promise<void>;
|
|
39
|
+
private getDefaultState;
|
|
40
|
+
private renderIndicator;
|
|
41
|
+
private loadData;
|
|
42
|
+
private handleError;
|
|
43
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { EdaBasePanel } from "./edaBasePanel";
|
|
2
|
+
import { EdaSamplingType } from "../constants/edaTypes";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import Spin from "antd/lib/spin";
|
|
5
|
+
import { Progress, Typography } from "antd";
|
|
6
|
+
import { EdaSampleRangePickerPanel } from "./edaSampleRangePickerPanel";
|
|
7
|
+
import { EdaTimeWindowPickerPanel } from "./edaTimeWindowPickerPanel";
|
|
8
|
+
import { SharedSampleRangeContext } from "../context/sharedSampleRange";
|
|
9
|
+
export class EdaBaseDataPanel extends EdaBasePanel {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.latestRequestId = 0;
|
|
13
|
+
}
|
|
14
|
+
onDataSourceChanged() { }
|
|
15
|
+
onLoadVectors(vectors) {
|
|
16
|
+
return vectors;
|
|
17
|
+
}
|
|
18
|
+
async componentDidMount() {
|
|
19
|
+
if (this.props.type !== undefined && this.props.data) {
|
|
20
|
+
await this.loadData(this.props.type, this.props.data);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
async componentDidUpdate(prevProps, _prevState) {
|
|
24
|
+
const { rangeContext, showTimeWindow, type, data, isActive } = this.props;
|
|
25
|
+
const { needsReload } = this.state;
|
|
26
|
+
const { btWindow, etWindow, btTotal, etTotal, sampling, step, vectorPage } = rangeContext;
|
|
27
|
+
const dataSourceChanged = prevProps.type !== type || prevProps.data !== data;
|
|
28
|
+
const windowChanged = !prevProps.rangeContext.btWindow.isSame(btWindow) ||
|
|
29
|
+
!prevProps.rangeContext.etWindow.isSame(etWindow) ||
|
|
30
|
+
prevProps.rangeContext.step !== step;
|
|
31
|
+
const showTimeWindowChanged = prevProps.showTimeWindow !== showTimeWindow;
|
|
32
|
+
const rangeChanged = prevProps.rangeContext.sampling !== sampling ||
|
|
33
|
+
prevProps.rangeContext.vectorPage !== vectorPage ||
|
|
34
|
+
prevProps.rangeContext.btTotal !== btTotal ||
|
|
35
|
+
prevProps.rangeContext.etTotal !== etTotal;
|
|
36
|
+
const totalChanged = prevProps.rangeContext.btTotal !== btTotal || prevProps.rangeContext.etTotal !== etTotal;
|
|
37
|
+
const shouldReload = dataSourceChanged || windowChanged || rangeChanged || showTimeWindowChanged || (!showTimeWindow && totalChanged);
|
|
38
|
+
if (type !== undefined && data !== undefined) {
|
|
39
|
+
if (dataSourceChanged) {
|
|
40
|
+
this.context.updateValues(btTotal, etTotal, sampling, 1);
|
|
41
|
+
}
|
|
42
|
+
if (dataSourceChanged || (prevProps.rangeContext.vectorPage !== vectorPage)) {
|
|
43
|
+
this.onDataSourceChanged();
|
|
44
|
+
}
|
|
45
|
+
if (isActive) {
|
|
46
|
+
if ((!prevProps.isActive && needsReload) || shouldReload) {
|
|
47
|
+
this.setState({ needsReload: false });
|
|
48
|
+
await this.loadData(type, data);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
else if (shouldReload) {
|
|
52
|
+
this.setState({ needsReload: true });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
getDefaultBaseState(props) {
|
|
57
|
+
this.handleError = this.handleError.bind(this);
|
|
58
|
+
return {
|
|
59
|
+
...this.getDefaultState(),
|
|
60
|
+
...this.getDefaultDataBaseState(props),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
renderPanel(token, _type, _data) {
|
|
64
|
+
const { api, size, rangeContext, showTimeWindow } = this.props;
|
|
65
|
+
const { loading } = this.state;
|
|
66
|
+
const { btTotal, etTotal, sampling, vectorPage, totalCount, step } = rangeContext;
|
|
67
|
+
return (React.createElement(Spin, { spinning: loading, indicator: this.renderIndicator() },
|
|
68
|
+
React.createElement(React.Fragment, null,
|
|
69
|
+
React.createElement("div", null,
|
|
70
|
+
React.createElement(EdaSampleRangePickerPanel, { bt: btTotal, et: etTotal, sampling: sampling, totalCount: totalCount, pageSize: api.pageSize, loading: loading, size: size, page: vectorPage, onChange: (bt, et, step, page) => {
|
|
71
|
+
rangeContext.updateValues(bt, et, step, page);
|
|
72
|
+
} })),
|
|
73
|
+
showTimeWindow &&
|
|
74
|
+
React.createElement("div", null,
|
|
75
|
+
React.createElement(EdaTimeWindowPickerPanel, { start: btTotal, end: etTotal, step: step, size: size, disabled: sampling === EdaSamplingType.Changes, onTimeWindowChanged: (bt, et, step) => {
|
|
76
|
+
rangeContext.updateTimeWindow(bt, et, step);
|
|
77
|
+
} })),
|
|
78
|
+
this.renderContent(token))));
|
|
79
|
+
}
|
|
80
|
+
async loadVectorData(vectors) {
|
|
81
|
+
const { api } = this.props;
|
|
82
|
+
const currentRequestId = ++this.latestRequestId;
|
|
83
|
+
try {
|
|
84
|
+
const { rangeContext, showTimeWindow } = this.props;
|
|
85
|
+
const { btTotal, etTotal, sampling } = rangeContext;
|
|
86
|
+
const result = [];
|
|
87
|
+
let { btWindow, etWindow } = rangeContext;
|
|
88
|
+
this.setState({ loading: true, loadingPercentage: 0 });
|
|
89
|
+
if (!showTimeWindow) {
|
|
90
|
+
btWindow = btTotal;
|
|
91
|
+
etWindow = etTotal;
|
|
92
|
+
}
|
|
93
|
+
this.setState({ loadingCount: vectors.length });
|
|
94
|
+
if (currentRequestId !== this.latestRequestId) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
for (let i = 0; i < vectors.length; i++) {
|
|
98
|
+
const vector = vectors[i];
|
|
99
|
+
this.setState({ loadingVector: vector.DisplayName ?? "" });
|
|
100
|
+
result[vector.ID] = await api.readVectorValues(vector.ID, btWindow, etWindow, sampling).catch(this.handleError);
|
|
101
|
+
this.setState({ loadingPercentage: (i + 1) / vectors.length * 100 });
|
|
102
|
+
}
|
|
103
|
+
this.onDataLoaded?.(result, vectors);
|
|
104
|
+
this.setState({ loadingPercentage: 100, });
|
|
105
|
+
}
|
|
106
|
+
catch (e) {
|
|
107
|
+
console.error(e);
|
|
108
|
+
await api.cancelSession();
|
|
109
|
+
}
|
|
110
|
+
finally {
|
|
111
|
+
if (currentRequestId === this.latestRequestId) {
|
|
112
|
+
this.setState({ loading: false, loadingPercentage: 0 });
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
getDefaultState() {
|
|
117
|
+
return {
|
|
118
|
+
needsReload: false,
|
|
119
|
+
loading: false,
|
|
120
|
+
loadingPercentage: 0,
|
|
121
|
+
loadingVector: "",
|
|
122
|
+
loadingCount: 0,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
renderIndicator() {
|
|
126
|
+
const { loadingCount, loadingPercentage, loadingVector } = this.state;
|
|
127
|
+
return (React.createElement("div", { className: "progress" },
|
|
128
|
+
React.createElement("div", null,
|
|
129
|
+
React.createElement(Progress, { type: "dashboard", steps: loadingCount, percent: loadingPercentage, format: (percent) => Math.round(percent ?? 0) + "%", trailColor: "rgba(0, 0, 0, 0.06)" }),
|
|
130
|
+
React.createElement(Typography.Text, { style: { whiteSpace: "nowrap" } }, loadingVector))));
|
|
131
|
+
}
|
|
132
|
+
async loadData(type, data) {
|
|
133
|
+
const { api } = this.props;
|
|
134
|
+
const currentRequestId = ++this.latestRequestId;
|
|
135
|
+
try {
|
|
136
|
+
const { rangeContext, showTimeWindow } = this.props;
|
|
137
|
+
const { btTotal, etTotal, sampling, vectorPage } = rangeContext;
|
|
138
|
+
const result = [];
|
|
139
|
+
const columns = [];
|
|
140
|
+
let { btWindow, etWindow } = rangeContext;
|
|
141
|
+
this.setState({ loading: true, loadingPercentage: 0 });
|
|
142
|
+
if (!showTimeWindow) {
|
|
143
|
+
btWindow = btTotal;
|
|
144
|
+
etWindow = etTotal;
|
|
145
|
+
}
|
|
146
|
+
switch (type) {
|
|
147
|
+
case 1:
|
|
148
|
+
case 2: {
|
|
149
|
+
let vectors;
|
|
150
|
+
try {
|
|
151
|
+
if (type === 1) {
|
|
152
|
+
vectors = await api.getGroupVectors(data.data.ID_SKVEKTOR, (vectorPage - 1) * api.pageSize);
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
vectors = await api.getScenarioVectors(data.data.ID_SCENAR, (vectorPage - 1) * api.pageSize, undefined, true);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
console.error(error);
|
|
160
|
+
vectors = { items: [], leftCount: 0 };
|
|
161
|
+
}
|
|
162
|
+
vectors.items = this.onLoadVectors(vectors.items);
|
|
163
|
+
this.setState({ loadingCount: vectors.items.length });
|
|
164
|
+
if (vectorPage === 1) {
|
|
165
|
+
this.context.updateTotalCount(vectors.items.length + vectors.leftCount);
|
|
166
|
+
}
|
|
167
|
+
if (currentRequestId !== this.latestRequestId) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
for (let i = 0; i < vectors.items.length; i++) {
|
|
171
|
+
const vector = vectors.items[i];
|
|
172
|
+
this.setState({ loadingVector: vector.DisplayName ?? "" });
|
|
173
|
+
result[vector.ID] = await api.readVectorValues(vector.ID, btWindow, etWindow, sampling).catch(this.handleError);
|
|
174
|
+
columns.push(vector);
|
|
175
|
+
this.setState({ loadingPercentage: (i + 1) / vectors.items.length * 100 });
|
|
176
|
+
}
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
case 0: {
|
|
180
|
+
const column = data.data;
|
|
181
|
+
const id = data.data.ID_VEKTOR;
|
|
182
|
+
this.setState({ loadingCount: 1, loadingVector: column.ZOBRAZ_MENO });
|
|
183
|
+
result[id] = await api.readVectorValues(id, btWindow, etWindow, sampling).catch(this.handleError);
|
|
184
|
+
if (currentRequestId !== this.latestRequestId) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
columns.push({
|
|
188
|
+
ID: column.ID_VEKTOR,
|
|
189
|
+
DisplayName: column.ZOBRAZ_MENO,
|
|
190
|
+
Name: column.MENO,
|
|
191
|
+
ParentID: column.ID_SKVEKTOR,
|
|
192
|
+
Path: "",
|
|
193
|
+
Type: 0
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
this.onDataLoaded?.(result, columns);
|
|
198
|
+
this.setState({ loadingPercentage: 100, });
|
|
199
|
+
}
|
|
200
|
+
catch (e) {
|
|
201
|
+
console.error(e);
|
|
202
|
+
await api.cancelSession();
|
|
203
|
+
}
|
|
204
|
+
finally {
|
|
205
|
+
if (currentRequestId === this.latestRequestId) {
|
|
206
|
+
this.setState({ loading: false, loadingPercentage: 0 });
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
async handleError(error) {
|
|
211
|
+
console.error(error);
|
|
212
|
+
await this.props.api.cancelSession();
|
|
213
|
+
return [];
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
EdaBaseDataPanel.contextType = SharedSampleRangeContext;
|
|
217
|
+
//# sourceMappingURL=edaDataBasePanel.js.map
|