@infomaximum/widget-sdk 6.0.0-9 → 6.0.0-view-theme.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/CHANGELOG.md +91 -40
- package/README.md +3 -1
- package/dist/index.d.ts +39 -18
- package/dist/index.esm.js +156 -147
- package/dist/index.js +158 -147
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [6.0.0-view-theme.1](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-2508.4...v6.0.0-view-theme.1) (2025-10-01)
|
|
6
|
+
|
|
7
|
+
## [6.0.0-13](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-2508.3...v6.0.0-13) (2025-10-01)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* исправлены шаблоны формул и функции подготовки параметров наполнения шаблонов. Отказ от удаления однострочных и многострочных комментариев ([97332be](https://github.com/Infomaximum/widget-sdk/commit/97332be7bddd6942f3670ff806470b9c1a59c122))
|
|
13
|
+
|
|
14
|
+
## [6.0.0-view-theme.0](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-12...v6.0.0-view-theme.0) (2025-09-29)
|
|
15
|
+
|
|
16
|
+
## [6.0.0-12](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-11...v6.0.0-12) (2025-09-29)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* поддержен флаг для темы [BI-15496] ([5196fa6](https://github.com/Infomaximum/widget-sdk/commit/5196fa6c69a521c4529a355e674bcb1f8c1aac39))
|
|
22
|
+
|
|
23
|
+
## [6.0.0-11](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-2508.2...v6.0.0-11) (2025-09-23)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* для параметров действий образа добавлен id ([4b92d35](https://github.com/Infomaximum/widget-sdk/commit/4b92d3547a6048b8326db94ec360515d99e17b1a))
|
|
29
|
+
* удален флаг isBordered для IInputControl [BI-15461] ([d60c32d](https://github.com/Infomaximum/widget-sdk/commit/d60c32d02134c10b1aa799dc5a45e2656fe5aefd))
|
|
30
|
+
|
|
31
|
+
## [6.0.0-10](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-2508.1...v6.0.0-10) (2025-09-12)
|
|
32
|
+
|
|
5
33
|
## [6.0.0-9](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-8...v6.0.0-9) (2025-09-12)
|
|
6
34
|
|
|
7
35
|
|
|
@@ -9,116 +37,141 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
9
37
|
|
|
10
38
|
* исправлен баг с подстановкой значений в template строки ([12166b5](https://github.com/Infomaximum/widget-sdk/commit/12166b587b74e0ff912822b0d065463b8f23121e))
|
|
11
39
|
|
|
40
|
+
## [6.0.0-8](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-2508.0...v6.0.0-8) (2025-09-11)
|
|
41
|
+
|
|
42
|
+
## [6.0.0-13](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-12...v6.0.0-13) (2025-10-01)
|
|
43
|
+
|
|
44
|
+
### Bug Fixes
|
|
45
|
+
|
|
46
|
+
- исправлены шаблоны формул и функции подготовки параметров наполнения шаблонов. Отказ от удаления однострочных и многострочных комментариев ([97332be](https://github.com/Infomaximum/widget-sdk/commit/97332be7bddd6942f3670ff806470b9c1a59c122))
|
|
47
|
+
|
|
48
|
+
## [6.0.0-12](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-11...v6.0.0-12) (2025-09-29)
|
|
49
|
+
|
|
50
|
+
### Features
|
|
51
|
+
|
|
52
|
+
- для параметров действий образа добавлен id ([4b92d35](https://github.com/Infomaximum/widget-sdk/commit/4b92d3547a6048b8326db94ec360515d99e17b1a))
|
|
53
|
+
|
|
54
|
+
## [6.0.0-11](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-10...v6.0.0-11) (2025-09-23)
|
|
55
|
+
|
|
56
|
+
### Features
|
|
57
|
+
|
|
58
|
+
- удален флаг isBordered для IInputControl [BI-15461] ([d60c32d](https://github.com/Infomaximum/widget-sdk/commit/d60c32d02134c10b1aa799dc5a45e2656fe5aefd))
|
|
59
|
+
|
|
60
|
+
## [6.0.0-10](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-2508.1...v6.0.0-10) (2025-09-12)
|
|
61
|
+
|
|
62
|
+
## [6.0.0-9](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-8...v6.0.0-9) (2025-09-12)
|
|
63
|
+
|
|
64
|
+
### Bug Fixes
|
|
65
|
+
|
|
66
|
+
- исправлен баг с подстановкой значений в template строки ([12166b5](https://github.com/Infomaximum/widget-sdk/commit/12166b587b74e0ff912822b0d065463b8f23121e))
|
|
67
|
+
|
|
68
|
+
## [6.0.0-8](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-2508.0...v6.0.0-8) (2025-09-11)
|
|
69
|
+
|
|
70
|
+
## [6.0.0-9](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-8...v6.0.0-9) (2025-09-12)
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
74
|
+
- исправлен баг с подстановкой значений в template строки ([12166b5](https://github.com/Infomaximum/widget-sdk/commit/12166b587b74e0ff912822b0d065463b8f23121e))
|
|
75
|
+
|
|
12
76
|
## [6.0.0-8](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-7...v6.0.0-8) (2025-09-11)
|
|
13
77
|
|
|
14
78
|
## [6.0.0-7](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-6...v6.0.0-7) (2025-09-10)
|
|
15
79
|
|
|
16
|
-
|
|
17
80
|
### Bug Fixes
|
|
18
81
|
|
|
19
|
-
|
|
82
|
+
- исправлена проблема с подстановкой sql-комментариев в формулы. ([a07cbbe](https://github.com/Infomaximum/widget-sdk/commit/a07cbbe3d1597d9eb22bdeb0ee4621abecbd5740))
|
|
20
83
|
|
|
21
84
|
## [6.0.0-6](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-5...v6.0.0-6) (2025-09-02)
|
|
22
85
|
|
|
23
|
-
|
|
24
86
|
### ⚠ BREAKING CHANGES
|
|
25
87
|
|
|
26
|
-
|
|
88
|
+
- Удален formattingTemplate. Изменены поля формат и форматирование
|
|
27
89
|
|
|
28
90
|
### Features
|
|
29
91
|
|
|
30
|
-
|
|
92
|
+
- изменены формат и форматирование. Удален formattingTemplate. Добавлен новый контрол inputTemplated. ([7c3d230](https://github.com/Infomaximum/widget-sdk/commit/7c3d230c443f897d20be4ec4a23f6fe6b914a213))
|
|
31
93
|
|
|
32
94
|
## [6.0.0-5](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-4...v6.0.0-5) (2025-09-01)
|
|
33
95
|
|
|
34
|
-
|
|
35
96
|
### Features
|
|
36
97
|
|
|
37
|
-
|
|
38
|
-
|
|
98
|
+
- добавлена поддержка фильтрации шаблонов мер и агригатных разрезов [WD-1197] ([af49cc3](https://github.com/Infomaximum/widget-sdk/commit/af49cc3ff7840f0d7762c6c40eb1bf183a32d4b7))
|
|
99
|
+
- добавлена фильтрация шаблонов для процессных разрезов времяни [WD-1197] ([564cd57](https://github.com/Infomaximum/widget-sdk/commit/564cd5782276c4ec74c8d26de109f0d2e9deec50))
|
|
39
100
|
|
|
40
101
|
## [6.0.0-4](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-3...v6.0.0-4) (2025-08-29)
|
|
41
102
|
|
|
42
|
-
|
|
43
103
|
### ⚠ BREAKING CHANGES
|
|
44
104
|
|
|
45
|
-
|
|
46
|
-
|
|
105
|
+
- если виджеты использовали типы данных процесса, то теперь должны запрашивать их сами через type_calculator
|
|
106
|
+
- требуется поддержка в виджетах
|
|
47
107
|
|
|
48
108
|
### Features
|
|
49
109
|
|
|
50
|
-
|
|
51
|
-
|
|
110
|
+
- удален deprecated код в связи с переходом на widget-sdk 6 ([c1ce6cb](https://github.com/Infomaximum/widget-sdk/commit/c1ce6cb5f3838a4bfea3003ee2de0cb494477e8c))
|
|
111
|
+
- удалены типы данных из интерфейса процесса ([3b17150](https://github.com/Infomaximum/widget-sdk/commit/3b17150ef67facaf50e489ec308a69fad1d6db82))
|
|
52
112
|
|
|
53
113
|
## [6.0.0-3](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-2...v6.0.0-3) (2025-08-28)
|
|
54
114
|
|
|
55
|
-
|
|
56
115
|
### Features
|
|
57
116
|
|
|
58
|
-
|
|
117
|
+
- виджета дана возможность фильтровать таблицы в дропдаунах кнопок добавления индикаторов и фильтрации по процессам ([cb9fd22](https://github.com/Infomaximum/widget-sdk/commit/cb9fd22cbf6ebf12f0261949ab9d467edcaf0a36))
|
|
59
118
|
|
|
60
119
|
## [6.0.0-2](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-1...v6.0.0-2) (2025-08-26)
|
|
61
120
|
|
|
62
|
-
|
|
63
121
|
### ⚠ BREAKING CHANGES
|
|
64
122
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
123
|
+
- - Виджеты, использующие импорты, связанные со старым синтаксисом ссылок, будут работать некорректно в новой версии системы (dashboardLinkRegExp, workspaceLinkRegExp, parseIndicatorLink, getRuleColor, isValidColor).
|
|
124
|
+
|
|
125
|
+
* Функция escapeSpecialCharacters заменена на escapeDoubleQuoteLinkName.
|
|
126
|
+
* Константа linkNameRegExp удалена - вместо нее используется curlyBracketsContentPattern.
|
|
68
127
|
|
|
69
128
|
### Features
|
|
70
129
|
|
|
71
|
-
|
|
130
|
+
- добавлена поддержка нового синтаксиса ссылок на показатели ([7449482](https://github.com/Infomaximum/widget-sdk/commit/74494820ae4ca9e05f5d225ad243a57ca0a6d6aa))
|
|
72
131
|
|
|
73
132
|
## [6.0.0-1](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-0...v6.0.0-1) (2025-08-26)
|
|
74
133
|
|
|
75
|
-
|
|
76
134
|
### ⚠ BREAKING CHANGES
|
|
77
135
|
|
|
78
|
-
|
|
136
|
+
- если виджет использовал guid, то требуется поддержка
|
|
79
137
|
|
|
80
138
|
### Features
|
|
81
139
|
|
|
82
|
-
|
|
140
|
+
- удален guid из интерфейсов. ([f50d978](https://github.com/Infomaximum/widget-sdk/commit/f50d9781ab2fc41ed1deb3fafee262e4c4057db1))
|
|
83
141
|
|
|
84
142
|
## [6.0.0-0](https://github.com/Infomaximum/widget-sdk/compare/v5.33.1...v6.0.0-0) (2025-08-20)
|
|
85
143
|
|
|
86
|
-
|
|
87
144
|
### ⚠ BREAKING CHANGES
|
|
88
145
|
|
|
89
|
-
|
|
90
|
-
|
|
146
|
+
- получение ф-ии шаблона процессной агрегации для меры через константу "measureAggregationTemplates" заменено на получение через ф-ию "createAggregationFormulaByTemplateName"
|
|
147
|
+
- поле actions удалено из настроек виджетов
|
|
91
148
|
|
|
92
149
|
### Features
|
|
93
150
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
151
|
+
- отказ от поля actions в пользу actionButtons в настройках виджетов ([2ee361a](https://github.com/Infomaximum/widget-sdk/commit/2ee361a5ab1478e1b0ad90feae2256cf90d46058))
|
|
152
|
+
- расширен IInputControl полями hint и hintPlacement. Для запуска скрипта из действий по клику добавлена подсказка ([63d02d6](https://github.com/Infomaximum/widget-sdk/commit/63d02d68bc38bb6d6b1bb2dfd1898d4b948ee6fc))
|
|
97
153
|
|
|
98
|
-
|
|
154
|
+
- From BI-15231 into master (#92) ([8257237](https://github.com/Infomaximum/widget-sdk/commit/8257237e12b42ee403378408d0bb5007853c379d)), closes [#92](https://github.com/Infomaximum/widget-sdk/issues/92)
|
|
99
155
|
|
|
100
156
|
### [5.33.1](https://github.com/Infomaximum/widget-sdk/compare/v5.33.0...v5.33.1) (2025-08-15)
|
|
101
157
|
|
|
102
158
|
## [5.33.0](https://github.com/Infomaximum/widget-sdk/compare/v5.32.1...v5.33.0) (2025-08-06)
|
|
103
159
|
|
|
104
|
-
|
|
105
160
|
### Features
|
|
106
161
|
|
|
107
|
-
|
|
162
|
+
- расширены шаблоны процессных агрегаций ([f2bfbaf](https://github.com/Infomaximum/widget-sdk/commit/f2bfbafb557ba72ae605d906ae1341109adf3894))
|
|
108
163
|
|
|
109
164
|
### [5.32.1](https://github.com/Infomaximum/widget-sdk/compare/v5.32.0...v5.32.1) (2025-08-05)
|
|
110
165
|
|
|
111
|
-
|
|
112
166
|
### Bug Fixes
|
|
113
167
|
|
|
114
|
-
|
|
168
|
+
- исправлена типизация ответов вычислителей ([0453793](https://github.com/Infomaximum/widget-sdk/commit/04537930ba1916d300b279e658a7e9b8da191af4))
|
|
115
169
|
|
|
116
170
|
## [5.32.0](https://github.com/Infomaximum/widget-sdk/compare/v5.31.0...v5.32.0) (2025-07-31)
|
|
117
171
|
|
|
118
|
-
|
|
119
172
|
### Features
|
|
120
173
|
|
|
121
|
-
|
|
174
|
+
- добавлена возможность управления якорем для сохранения положения виджета ([3bd5610](https://github.com/Infomaximum/widget-sdk/commit/3bd561058e48055ec10f99c53f88f2fcddf18d94))
|
|
122
175
|
|
|
123
176
|
## [5.31.0](https://github.com/Infomaximum/widget-sdk/compare/v5.30.0...v5.31.0) (2025-07-17)
|
|
124
177
|
|
|
@@ -126,15 +179,13 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
126
179
|
|
|
127
180
|
## [5.29.0-0](https://github.com/Infomaximum/widget-sdk/compare/v5.28.0...v5.29.0-0) (2025-07-10)
|
|
128
181
|
|
|
129
|
-
|
|
130
182
|
### Features
|
|
131
183
|
|
|
132
|
-
|
|
133
|
-
|
|
184
|
+
- отказ от имени процесса ([4fa01d5](https://github.com/Infomaximum/widget-sdk/commit/4fa01d5c2602211810277d0b6aef6b4d5f62e19c))
|
|
134
185
|
|
|
135
186
|
### Bug Fixes
|
|
136
187
|
|
|
137
|
-
|
|
188
|
+
- deprecated поле processName для интерфейса IProcessGraphCalculatorInput сделано необзятельным ([859f959](https://github.com/Infomaximum/widget-sdk/commit/859f959ea963ea2ed9214ccc4a4dc43a8b49142c))
|
|
138
189
|
|
|
139
190
|
## [5.30.0](https://github.com/Infomaximum/widget-sdk/compare/v5.29.0...v5.30.0) (2025-07-15)
|
|
140
191
|
|
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -255,12 +255,13 @@ interface IBaseWidgetSettings {
|
|
|
255
255
|
markdownMeasures?: IMarkdownMeasure[];
|
|
256
256
|
markdownText?: string;
|
|
257
257
|
markdownTextSize?: number;
|
|
258
|
-
filters?:
|
|
258
|
+
filters?: TSettingsFilter[];
|
|
259
259
|
filterMode?: EWidgetFilterMode;
|
|
260
260
|
ignoreFilters?: boolean;
|
|
261
261
|
sorting?: IWidgetSortingIndicator[];
|
|
262
262
|
actionButtons?: IActionButton[];
|
|
263
263
|
paddings?: number | string;
|
|
264
|
+
viewTheme?: boolean;
|
|
264
265
|
}
|
|
265
266
|
|
|
266
267
|
declare enum ESortDirection {
|
|
@@ -554,11 +555,11 @@ type TWidgetIndicatorDurationValue = {
|
|
|
554
555
|
type TWidgetIndicatorTimeValue = {
|
|
555
556
|
templateName: string;
|
|
556
557
|
mode: EWidgetIndicatorValueModes.START_TIME | EWidgetIndicatorValueModes.END_TIME;
|
|
557
|
-
processKey: string;
|
|
558
|
-
eventName: string;
|
|
559
|
-
eventTimeFormula: string;
|
|
560
|
-
caseCaseIdFormula: string;
|
|
561
|
-
eventNameFormula: string;
|
|
558
|
+
processKey: string | null;
|
|
559
|
+
eventName: string | null;
|
|
560
|
+
eventTimeFormula: string | null;
|
|
561
|
+
caseCaseIdFormula: string | null;
|
|
562
|
+
eventNameFormula: string | null;
|
|
562
563
|
filters: TExtendedFormulaFilterValue[];
|
|
563
564
|
};
|
|
564
565
|
|
|
@@ -849,6 +850,24 @@ interface IFormulaFilterValue {
|
|
|
849
850
|
[EFormulaFilterFieldKeys.durationUnit]: EDurationUnit;
|
|
850
851
|
}>;
|
|
851
852
|
}
|
|
853
|
+
declare enum EDimensionProcessFilterTimeUnit {
|
|
854
|
+
YEARS = "YEARS",
|
|
855
|
+
MONTHS = "MONTHS",
|
|
856
|
+
HOURS = "HOURS",
|
|
857
|
+
DAYS = "DAYS",
|
|
858
|
+
MINUTES = "MINUTES"
|
|
859
|
+
}
|
|
860
|
+
interface IDimensionProcessFilter {
|
|
861
|
+
value: Extract<IFormulaControl["value"]["value"], {
|
|
862
|
+
mode: EWidgetIndicatorValueModes.AGGREGATION | EWidgetIndicatorValueModes.START_TIME | EWidgetIndicatorValueModes.END_TIME | EWidgetIndicatorValueModes.FORMULA;
|
|
863
|
+
}>;
|
|
864
|
+
dbDataType: string;
|
|
865
|
+
condition: {
|
|
866
|
+
filteringMethod: valueof<typeof formulaFilterMethods>;
|
|
867
|
+
timeUnit?: EDimensionProcessFilterTimeUnit;
|
|
868
|
+
values: (string | null)[];
|
|
869
|
+
};
|
|
870
|
+
}
|
|
852
871
|
type TExtendedFormulaFilterValue = {
|
|
853
872
|
formula: string;
|
|
854
873
|
} | IFormulaFilterValue;
|
|
@@ -907,7 +926,9 @@ interface IWidgetFiltration {
|
|
|
907
926
|
/** Удалить фильтр по этапам */
|
|
908
927
|
removeStagesFilter(widgetKey: string): void;
|
|
909
928
|
}
|
|
929
|
+
type TSettingsFilter = TExtendedFormulaFilterValue | IDimensionProcessFilter;
|
|
910
930
|
declare const isFormulaFilterValue: (value: TExtendedFormulaFilterValue) => value is IFormulaFilterValue;
|
|
931
|
+
declare const isDimensionProcessFilter: (filter: TSettingsFilter) => filter is IDimensionProcessFilter;
|
|
911
932
|
|
|
912
933
|
declare enum EWidgetActionInputMethod {
|
|
913
934
|
COLUMN = "COLUMN",
|
|
@@ -1122,7 +1143,7 @@ interface IActionButton extends IAutoIdentifiedArrayItem {
|
|
|
1122
1143
|
color: TColor;
|
|
1123
1144
|
hint?: string;
|
|
1124
1145
|
}
|
|
1125
|
-
type TViewActionParameter = (IParameterFromAggregation | IParameterFromVariable) & {
|
|
1146
|
+
type TViewActionParameter = (IParameterFromAggregation | IParameterFromVariable) & IAutoIdentifiedArrayItem & {
|
|
1126
1147
|
name: string;
|
|
1127
1148
|
};
|
|
1128
1149
|
interface IViewAction {
|
|
@@ -1313,7 +1334,6 @@ interface IInputControl {
|
|
|
1313
1334
|
type: EControlType.input;
|
|
1314
1335
|
value: string;
|
|
1315
1336
|
props: {
|
|
1316
|
-
isBordered?: boolean;
|
|
1317
1337
|
placeholder?: string;
|
|
1318
1338
|
/** Максимальное количество символов которое можно ввести в поле */
|
|
1319
1339
|
maxLength?: number;
|
|
@@ -1752,6 +1772,8 @@ interface ITypeCalculator extends ICalculator<ITypeCalculatorInput, ITypeCalcula
|
|
|
1752
1772
|
|
|
1753
1773
|
declare const prepareValuesForSql: (simpleType: ESimpleDataType, values: (string | null)[]) => (string | null)[];
|
|
1754
1774
|
|
|
1775
|
+
declare const mapSettingsFiltersToInputs: (filters: TSettingsFilter[]) => ICalculatorFilter[];
|
|
1776
|
+
|
|
1755
1777
|
declare function checkDisplayCondition(displayCondition: TNullable<TDisplayCondition>, variables: Map<string, TWidgetVariable>): boolean;
|
|
1756
1778
|
declare function getDisplayConditionFormula(displayCondition: TNullable<TDisplayCondition>): TNullable<string>;
|
|
1757
1779
|
declare const replaceDisplayCondition: <I extends IWidgetColumnIndicator>(dimension: I, displayCondition: TNullable<TDisplayCondition>) => TNullable<I>;
|
|
@@ -1910,6 +1932,9 @@ declare enum EDimensionTemplateNames {
|
|
|
1910
1932
|
declare const dimensionTemplateFormulas: Record<EDimensionTemplateNames, string>;
|
|
1911
1933
|
|
|
1912
1934
|
declare function getDimensionFormula({ value }: IWidgetDimension): string;
|
|
1935
|
+
declare function getProcessDimensionValueFormula(value: (TWidgetIndicatorAggregationValue & {
|
|
1936
|
+
innerTemplateName?: string;
|
|
1937
|
+
}) | TWidgetIndicatorTimeValue): string | undefined;
|
|
1913
1938
|
|
|
1914
1939
|
declare enum EDimensionAggregationTemplateName {
|
|
1915
1940
|
avg = "avg",
|
|
@@ -1934,7 +1959,6 @@ declare const prepareDimensionAggregationParams: (value: Extract<IWidgetDimensio
|
|
|
1934
1959
|
eventNameFormula: string;
|
|
1935
1960
|
caseCaseIdFormula: string;
|
|
1936
1961
|
eventName: string;
|
|
1937
|
-
objectFilters: string;
|
|
1938
1962
|
filters: string;
|
|
1939
1963
|
eventTimeFormula: string;
|
|
1940
1964
|
columnFormula: string;
|
|
@@ -1998,17 +2022,15 @@ declare const prepareMeasureAggregationParams: (value: Extract<IWidgetMeasure["v
|
|
|
1998
2022
|
eventNameFormula: string;
|
|
1999
2023
|
caseCaseIdFormula: string;
|
|
2000
2024
|
eventName: string;
|
|
2001
|
-
objectFilters: string;
|
|
2002
2025
|
filters: string;
|
|
2003
2026
|
eventTimeFormula: string;
|
|
2004
2027
|
columnFormula: string;
|
|
2005
2028
|
} | null;
|
|
2006
2029
|
|
|
2007
2030
|
/** Шаблон процессной метрики меры с режимом CONVERSION */
|
|
2008
|
-
declare const conversionTemplate = "countIf(\n process(\n minIf(\n {startEventTimeFormula}, \n {startEventNameFormula} =
|
|
2031
|
+
declare const conversionTemplate = "countIf(\n process(\n minIf(\n {startEventTimeFormula}, \n {startEventNameFormula} = {startEventName}{startEventFilters}\n ), \n {endCaseCaseIdFormula}\n ) < \n process(\n maxIf(\n {endEventTimeFormula}, \n {endEventNameFormula} = {endEventName}{endEventFilters}\n ), \n {endCaseCaseIdFormula}\n ) \n and \n process(\n countIf(\n {startEventNameFormula} = {startEventName}{startEventFilters}\n ) != 0, \n {endCaseCaseIdFormula}\n ) != 0\n) / countIf(\n process(\n countIf(\n {startEventNameFormula} = {startEventName}{startEventFilters}\n ) != 0, \n {endCaseCaseIdFormula}\n ) != 0\n)";
|
|
2009
2032
|
/** На основе значения режима CONVERSION подготовить параметры для подстановки в шаблонную формулу */
|
|
2010
2033
|
declare const prepareConversionParams: (value: TWidgetIndicatorConversionValue) => {
|
|
2011
|
-
objectFilters: string;
|
|
2012
2034
|
startEventTimeFormula: string;
|
|
2013
2035
|
startEventNameFormula: string;
|
|
2014
2036
|
startEventFilters: string;
|
|
@@ -2028,7 +2050,6 @@ declare function createAggregationTemplate(templateName: EMeasureAggregationTemp
|
|
|
2028
2050
|
declare const durationTemplates: Record<EDurationTemplateName, string>;
|
|
2029
2051
|
/** На основе значения режима DURATION подготовить параметры для подстановки в шаблонную формулу */
|
|
2030
2052
|
declare const prepareDurationParams: (value: TWidgetIndicatorDurationValue) => {
|
|
2031
|
-
objectFilters: string;
|
|
2032
2053
|
startEventTimeFormula: string;
|
|
2033
2054
|
startEventNameFormula: string;
|
|
2034
2055
|
startEventFilters: string;
|
|
@@ -2064,12 +2085,10 @@ declare const transitionMeasureTemplateFormulas: {
|
|
|
2064
2085
|
readonly medianTime: "medianExact(date_diff(second, begin({eventTimeFormula}), end({eventTimeFormula})))";
|
|
2065
2086
|
};
|
|
2066
2087
|
|
|
2067
|
-
declare const countExecutionsTemplate = "process(countIf({eventNameFormula} in
|
|
2088
|
+
declare const countExecutionsTemplate = "process(countIf({eventNameFormula} in {eventName}{filters}), {caseCaseIdFormula})";
|
|
2068
2089
|
|
|
2069
2090
|
/** @deprecated - следует использовать fillTemplateSql */
|
|
2070
2091
|
declare function fillTemplateString(templateString: string, params: Record<string, any>): string;
|
|
2071
|
-
/** Функция для безопасного заполнения SQL шаблонов с защитой от однострочных SQL комментариев в подставляемых значениях. */
|
|
2072
|
-
declare function fillTemplateSql(templateString: string, params: Record<string, string>): string;
|
|
2073
2092
|
|
|
2074
2093
|
declare function generateColumnFormula(tableName: string, columnName: string): string;
|
|
2075
2094
|
|
|
@@ -2306,6 +2325,8 @@ interface IPanelDescription<Settings extends object, GroupSettings extends IGrou
|
|
|
2306
2325
|
useTitle?: boolean;
|
|
2307
2326
|
/** Добавить поле настройки описания */
|
|
2308
2327
|
useMarkdown?: boolean;
|
|
2328
|
+
/** Добавить переключатель темы */
|
|
2329
|
+
useTheme?: boolean;
|
|
2309
2330
|
/** Конфигурация вкладки настроек данных */
|
|
2310
2331
|
dataRecords?: TWidgetLevelRecord<Settings>[];
|
|
2311
2332
|
/** Конфигурация вкладки настроек отображения */
|
|
@@ -2493,7 +2514,7 @@ type TContextMenuButtonOptions = {
|
|
|
2493
2514
|
|
|
2494
2515
|
/** Контекст с данными образа (будет заполняться по мере необходимости) */
|
|
2495
2516
|
interface IViewContext {
|
|
2496
|
-
filters:
|
|
2517
|
+
filters: TSettingsFilter[];
|
|
2497
2518
|
}
|
|
2498
2519
|
|
|
2499
2520
|
type TLaunchActionParams = {
|
|
@@ -2732,4 +2753,4 @@ declare global {
|
|
|
2732
2753
|
}
|
|
2733
2754
|
}
|
|
2734
2755
|
|
|
2735
|
-
export { EActionButtonsTypes, EActionTypes, EActivateConditionMode, EAutoUpdateMode, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDataModelOption, EDimensionAggregationTemplateName, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationTemplateName, EDurationUnit, EEventAppearances, EEventMeasureTemplateNames, EFontWeight, EFormatOrFormattingMode, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureAggregationTemplateName, EMeasureTemplateNames, EOuterAggregation, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionButton, type IActionGoToUrl, type IActionOnClickControl, type IActionRunScript, type IActionScript, type IActionUpdateVariable, type IAddButtonSelectOption, type IAddDurationOfTransitionFilter, type IAddPresenceOfEventFilter, type IAddPresenceOfTransitionFilter, type IAddRepetitionOfEventFilter, type IAutoIdentifiedArrayItem, type IBaseDimensionsAndMeasuresCalculator, type IBaseDimensionsAndMeasuresCalculatorInput, type IBaseDimensionsAndMeasuresCalculatorOutput, type IBaseWidgetSettings, type ICalculator, type ICalculatorDimensionInput, type ICalculatorDimensionOutput, type ICalculatorFactory, type ICalculatorFilter, type ICalculatorIndicatorInput, type ICalculatorIndicatorOutput, type ICalculatorMeasureInput, type ICalculatorMeasureOutput, type ICalculatorOptions, type ICollapseRecord, type IColorPickerControl, type IColoredValue, type ICommonDimensions, type ICommonMeasures, type ICommonState, type IControlRecord, type ICustomAddButtonProps, type ICustomWidgetProps, type IDefinition, type IDimensionSelection, type IDimensionSelectionByFormula, type IDisplayConditionControl, type IDisplayPredicate, type IDisplayRule, type IDivePanelDescription, type IDividerRecord, type IEdge, type IEventsColorControl, type IEventsPickerControl, type IExportColumnOrder, type IFillSettings, type IFilterControl, type IFormattingControl, type IFormattingTemplateControl, type IFormulaControl, type IFormulaFilterValue, type IGeneralCalculator, type IGeneralCalculatorExportInput, type IGeneralCalculatorInput, type IGeneralCalculatorOutput, type IGlobalContext, type IGraphElement, type IGroupSetDescription, type IGroupSetRecord, type IGroupSettings, type IHistogramBin, type IHistogramCalculator, type IHistogramCalculatorInput, type IHistogramCalculatorOutput, type IIndicatorLink, type IInitialSettings, type IInputControl, type IInputMarkdownControl, type IInputNumberControl, type IInputRangeControl, type IInputTemplatedControl, type ILens, type IMarkdownMeasure, type IMeasureAddButtonProps, type IPanelDescription, type IPanelDescriptionCreator, type IParameterColumnList, type IParameterFromAggregation, type IParameterFromColumn, type IParameterFromDynamicList, type IParameterFromEndEvent, type IParameterFromEvent, type IParameterFromFormula, type IParameterFromManualInput, type IParameterFromStartEvent, type IParameterFromStaticList, type IParameterFromVariable, type IParameterTableList, type IPieCalculator, type IPieCalculatorInput, type IPieCalculatorOutput, type IProcessEventFilterValue, type IProcessEventIndicator, type IProcessFilterPreviewParams, type IProcessGraphCalculator, type IProcessGraphCalculatorInput, type IProcessGraphCalculatorOutput, type IProcessIndicator, type IProcessTransitionFilterValue, type IProcessTransitionIndicator, type IRadioIconGroupControl, type IRange, type ISelectBranchOption, type ISelectControl, type ISelectDividerOption, type ISelectGroupOption, type ISelectLeafOption, type ISelectNode, type ISelectOption, type ISelectSystemOption, type ISettingsMigratorParams, type ISizeControl, type ISortOrder, type ISortingAddButtonProps, type IStagesFilterValue, type IStaticListLabeledOption, type ISwitchControl, type ITagSetControl, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type ITypeCalculatorOutputItem, type ITypedFormulaControl, type IVertex, type IViewAction, type IViewContext, type IWidget, type IWidgetAction, type IWidgetColumnIndicator, type IWidgetColumnListVariable, type IWidgetDimension, type IWidgetDimensionHierarchy, type IWidgetDynamicListVariable, type IWidgetEntity, type IWidgetFilter, type IWidgetFiltration, type IWidgetFormatting, type IWidgetIndicator, type IWidgetIndicatorAddButtonProps, type IWidgetManifest, type IWidgetMeasure, type IWidgetMigrator, type IWidgetPersistValue, type IWidgetPlaceholderController, type IWidgetPlaceholderValues, type IWidgetPresetSettings, type IWidgetProcess, type IWidgetProps, type IWidgetSortingIndicator, type IWidgetStaticListVariable, type IWidgetStaticVariable, type IWidgetStruct, type IWidgetTable, type IWidgetTableColumn, OuterAggregation, type TAction, type TActionOnClickParameter, type TActionOpenView, type TActionValidator, type TActionsOnClick, type TAddButton, type TBoundedContentWithIndicator, type TColor, type TColorBase, type TColorRule, type TColumnIndicatorValue, type TContextMenu, type TContextMenuButton, type TContextMenuButtonActions, type TContextMenuButtonApply, type TContextMenuButtonClose, type TContextMenuButtonCustom, type TContextMenuButtonGroup, type TContextMenuButtonOptions, type TContextMenuList, type TContextMenuPositionUnit, type TContextMenuRow, type TControlUnion, type TCustomAddButtonSelectOption, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TExtendedFormulaFilterValue, type TFiltrationAccessibility, type TGroupLevelRecord, type THintPlacement, type TLaunchActionParams, type TMeasureAddButtonSelectOption, type TMigrateProcessor, type TMigrationStruct, type TParameterFromDataModel, type TProcessIndicatorValue, type TRecordAccessor, type TSelectChildOptions, type TSelectFetchNodes, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TVersion, type TViewActionParameter, type TWidgetActionParameter, type TWidgetContainer, type TWidgetDimensionData, type TWidgetFilterValue, type TWidgetFiltering, type TWidgetIndicatorAggregationValue, type TWidgetIndicatorConversionValue, type TWidgetIndicatorDurationValue, type TWidgetIndicatorTimeValue, type TWidgetLevelRecord, type TWidgetMeasureData, type TWidgetSortingValue, type TWidgetVariable, applyIndexToArrayFormula, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas,
|
|
2756
|
+
export { EActionButtonsTypes, EActionTypes, EActivateConditionMode, EAutoUpdateMode, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDataModelOption, EDimensionAggregationTemplateName, EDimensionProcessFilterTimeUnit, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationTemplateName, EDurationUnit, EEventAppearances, EEventMeasureTemplateNames, EFontWeight, EFormatOrFormattingMode, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureAggregationTemplateName, EMeasureTemplateNames, EOuterAggregation, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionButton, type IActionGoToUrl, type IActionOnClickControl, type IActionRunScript, type IActionScript, type IActionUpdateVariable, type IAddButtonSelectOption, type IAddDurationOfTransitionFilter, type IAddPresenceOfEventFilter, type IAddPresenceOfTransitionFilter, type IAddRepetitionOfEventFilter, type IAutoIdentifiedArrayItem, type IBaseDimensionsAndMeasuresCalculator, type IBaseDimensionsAndMeasuresCalculatorInput, type IBaseDimensionsAndMeasuresCalculatorOutput, type IBaseWidgetSettings, type ICalculator, type ICalculatorDimensionInput, type ICalculatorDimensionOutput, type ICalculatorFactory, type ICalculatorFilter, type ICalculatorIndicatorInput, type ICalculatorIndicatorOutput, type ICalculatorMeasureInput, type ICalculatorMeasureOutput, type ICalculatorOptions, type ICollapseRecord, type IColorPickerControl, type IColoredValue, type ICommonDimensions, type ICommonMeasures, type ICommonState, type IControlRecord, type ICustomAddButtonProps, type ICustomWidgetProps, type IDefinition, type IDimensionProcessFilter, type IDimensionSelection, type IDimensionSelectionByFormula, type IDisplayConditionControl, type IDisplayPredicate, type IDisplayRule, type IDivePanelDescription, type IDividerRecord, type IEdge, type IEventsColorControl, type IEventsPickerControl, type IExportColumnOrder, type IFillSettings, type IFilterControl, type IFormattingControl, type IFormattingTemplateControl, type IFormulaControl, type IFormulaFilterValue, type IGeneralCalculator, type IGeneralCalculatorExportInput, type IGeneralCalculatorInput, type IGeneralCalculatorOutput, type IGlobalContext, type IGraphElement, type IGroupSetDescription, type IGroupSetRecord, type IGroupSettings, type IHistogramBin, type IHistogramCalculator, type IHistogramCalculatorInput, type IHistogramCalculatorOutput, type IIndicatorLink, type IInitialSettings, type IInputControl, type IInputMarkdownControl, type IInputNumberControl, type IInputRangeControl, type IInputTemplatedControl, type ILens, type IMarkdownMeasure, type IMeasureAddButtonProps, type IPanelDescription, type IPanelDescriptionCreator, type IParameterColumnList, type IParameterFromAggregation, type IParameterFromColumn, type IParameterFromDynamicList, type IParameterFromEndEvent, type IParameterFromEvent, type IParameterFromFormula, type IParameterFromManualInput, type IParameterFromStartEvent, type IParameterFromStaticList, type IParameterFromVariable, type IParameterTableList, type IPieCalculator, type IPieCalculatorInput, type IPieCalculatorOutput, type IProcessEventFilterValue, type IProcessEventIndicator, type IProcessFilterPreviewParams, type IProcessGraphCalculator, type IProcessGraphCalculatorInput, type IProcessGraphCalculatorOutput, type IProcessIndicator, type IProcessTransitionFilterValue, type IProcessTransitionIndicator, type IRadioIconGroupControl, type IRange, type ISelectBranchOption, type ISelectControl, type ISelectDividerOption, type ISelectGroupOption, type ISelectLeafOption, type ISelectNode, type ISelectOption, type ISelectSystemOption, type ISettingsMigratorParams, type ISizeControl, type ISortOrder, type ISortingAddButtonProps, type IStagesFilterValue, type IStaticListLabeledOption, type ISwitchControl, type ITagSetControl, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type ITypeCalculatorOutputItem, type ITypedFormulaControl, type IVertex, type IViewAction, type IViewContext, type IWidget, type IWidgetAction, type IWidgetColumnIndicator, type IWidgetColumnListVariable, type IWidgetDimension, type IWidgetDimensionHierarchy, type IWidgetDynamicListVariable, type IWidgetEntity, type IWidgetFilter, type IWidgetFiltration, type IWidgetFormatting, type IWidgetIndicator, type IWidgetIndicatorAddButtonProps, type IWidgetManifest, type IWidgetMeasure, type IWidgetMigrator, type IWidgetPersistValue, type IWidgetPlaceholderController, type IWidgetPlaceholderValues, type IWidgetPresetSettings, type IWidgetProcess, type IWidgetProps, type IWidgetSortingIndicator, type IWidgetStaticListVariable, type IWidgetStaticVariable, type IWidgetStruct, type IWidgetTable, type IWidgetTableColumn, OuterAggregation, type TAction, type TActionOnClickParameter, type TActionOpenView, type TActionValidator, type TActionsOnClick, type TAddButton, type TBoundedContentWithIndicator, type TColor, type TColorBase, type TColorRule, type TColumnIndicatorValue, type TContextMenu, type TContextMenuButton, type TContextMenuButtonActions, type TContextMenuButtonApply, type TContextMenuButtonClose, type TContextMenuButtonCustom, type TContextMenuButtonGroup, type TContextMenuButtonOptions, type TContextMenuList, type TContextMenuPositionUnit, type TContextMenuRow, type TControlUnion, type TCustomAddButtonSelectOption, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TExtendedFormulaFilterValue, type TFiltrationAccessibility, type TGroupLevelRecord, type THintPlacement, type TLaunchActionParams, type TMeasureAddButtonSelectOption, type TMigrateProcessor, type TMigrationStruct, type TParameterFromDataModel, type TProcessIndicatorValue, type TRecordAccessor, type TSelectChildOptions, type TSelectFetchNodes, type TSelectivePartial, type TSettingsFilter, type TSortDirection, type TUpdateSelection, type TValuePath, type TVersion, type TViewActionParameter, type TWidgetActionParameter, type TWidgetContainer, type TWidgetDimensionData, type TWidgetFilterValue, type TWidgetFiltering, type TWidgetIndicatorAggregationValue, type TWidgetIndicatorConversionValue, type TWidgetIndicatorDurationValue, type TWidgetIndicatorTimeValue, type TWidgetLevelRecord, type TWidgetMeasureData, type TWidgetSortingValue, type TWidgetVariable, applyIndexToArrayFormula, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getProcessDimensionValueFormula, getRuleColor, getTransitionMeasureFormula, isDimensionProcessFilter, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSettingsFiltersToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
|