@evergis/react 4.0.120 → 4.0.121
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/LICENSE +21 -21
- package/README.md +7 -7
- package/dist/components/Dashboard/componentTypes.d.ts +1 -1
- package/dist/components/Dashboard/grid/GridEditSession/index.d.ts +2 -1
- package/dist/components/Dashboard/grid/index.d.ts +5 -0
- package/dist/components/Dashboard/index.d.ts +1 -0
- package/dist/components/Dashboard/types.d.ts +23 -0
- package/dist/index.js +2954 -2907
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +2915 -2908
- package/dist/react.esm.js.map +1 -1
- package/package.json +3 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Everpoint
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Everpoint
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# @evergis/react
|
|
2
|
-
|
|
3
|
-
В данном репозитории находятся специфичные (в отличии от `@evergis/uilib-gl`) для `Evergis Online`,
|
|
4
|
-
но в целом переиспользуемые на других проектах, построенных на Evergis API, React-компоненты.
|
|
5
|
-
|
|
6
|
-
***ВАЖНО!!!***: Разрабатываемые компоненты не должны иметь зависимостей
|
|
7
|
-
от системы поддержки мультиязычности `Evergis Online`!
|
|
1
|
+
# @evergis/react
|
|
2
|
+
|
|
3
|
+
В данном репозитории находятся специфичные (в отличии от `@evergis/uilib-gl`) для `Evergis Online`,
|
|
4
|
+
но в целом переиспользуемые на других проектах, построенных на Evergis API, React-компоненты.
|
|
5
|
+
|
|
6
|
+
***ВАЖНО!!!***: Разрабатываемые компоненты не должны иметь зависимостей
|
|
7
|
+
от системы поддержки мультиязычности `Evergis Online`!
|
|
@@ -192,7 +192,7 @@ export interface ChartContainerConfig extends Omit<ConfigContainerChild, "option
|
|
|
192
192
|
export interface ChartContainerProps extends Omit<ContainerProps, "elementConfig"> {
|
|
193
193
|
elementConfig?: ChartContainerConfig;
|
|
194
194
|
}
|
|
195
|
-
export type ContainersGroupContainerOptions = Pick<ConfigOptions, "column" | "expandable" | "expanded" | "alignItems" | "grid" | "editMode" | "gap"> & ContainerBoxOptions;
|
|
195
|
+
export type ContainersGroupContainerOptions = Pick<ConfigOptions, "column" | "expandable" | "expanded" | "alignItems" | "grid" | "editMode" | "fixedHeight" | "gap"> & ContainerBoxOptions;
|
|
196
196
|
export interface ContainersGroupContainerConfig extends Omit<ConfigContainerChild, "options" | "templateName"> {
|
|
197
197
|
templateName?: ContainerTemplate.ContainersGroup;
|
|
198
198
|
options?: ContainersGroupContainerOptions;
|
|
@@ -6,6 +6,7 @@ import { ContainerProps } from '../../types';
|
|
|
6
6
|
* Черновик отличается структурой от конфига, пришедшего сверху, поэтому `renderElement` из пропсов
|
|
7
7
|
* здесь не годится — он замкнут на исходный узел и не найдёт ячейки, созданные split/add. Вместо
|
|
8
8
|
* него строится собственный, замкнутый на черновик; всё дерево ниже получает его по цепочке
|
|
9
|
-
* рекурсии `getRenderElement`.
|
|
9
|
+
* рекурсии `getRenderElement`. Хост с собственным реестром содержимого отдаёт вместо этого
|
|
10
|
+
* фабрику `createRenderElement` — она получает черновик и строит рендер по нему.
|
|
10
11
|
*/
|
|
11
12
|
export declare const GridEditSession: FC<ContainerProps>;
|
|
@@ -198,6 +198,14 @@ export interface ConfigLayoutOptions {
|
|
|
198
198
|
* не имеет.
|
|
199
199
|
*/
|
|
200
200
|
editMode?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Высота сетки задана снаружи и не редактируется: у корневой строки не рендерится ручка
|
|
203
|
+
* нижней границы. Нужен сеткам, растянутым на бокс, которым распоряжается внешняя
|
|
204
|
+
* раскладка (панель фиксированного экрана, док) — там тянуть собственную высоту нечем
|
|
205
|
+
* и незачем. Читается у корневого узла сетки; на вложенные не влияет — у них ручки
|
|
206
|
+
* высоты нет и так.
|
|
207
|
+
*/
|
|
208
|
+
fixedHeight?: boolean;
|
|
201
209
|
twoColumns?: boolean;
|
|
202
210
|
/** Вписать график контейнера Chart в контейнер: по ширине всегда, по высоте — при заданной высоте (object-fit: contain). */
|
|
203
211
|
fill?: boolean;
|
|
@@ -655,6 +663,21 @@ export interface ContainerProps {
|
|
|
655
663
|
innerComponent?: FC<InnerContainerProps>;
|
|
656
664
|
renderElement?: RenderElementFunction;
|
|
657
665
|
onChange?: (config: ConfigContainerChild) => void;
|
|
666
|
+
/**
|
|
667
|
+
* Хостовый рендер треков сетки в режиме редактирования раскладки.
|
|
668
|
+
*
|
|
669
|
+
* Сессия правит собственный черновик, структура которого расходится с конфигом сверху, поэтому
|
|
670
|
+
* готовый `renderElement` там не годится — он замкнут на исходный узел и не найдёт ячейки,
|
|
671
|
+
* созданные split/add. Фабрика получает актуальный черновик и строит рендер по нему; без неё
|
|
672
|
+
* сессия рендерит содержимое штатным реестром контейнеров.
|
|
673
|
+
*/
|
|
674
|
+
createRenderElement?: (node: ConfigContainerChild) => RenderElementFunction;
|
|
675
|
+
/**
|
|
676
|
+
* Зеркало выделения ячеек сетки наружу: вызывается при каждой смене выделения списком id
|
|
677
|
+
* выделенных ячеек (пустой список — выделения нет). Само выделение живёт в сессии
|
|
678
|
+
* редактирования; колбэк ни на что не влияет, он только сообщает.
|
|
679
|
+
*/
|
|
680
|
+
onGridSelectionChange?: (cellIds: string[]) => void;
|
|
658
681
|
}
|
|
659
682
|
export type PieChartDisplayedData = Array<Omit<PieChartData, "value"> & {
|
|
660
683
|
value: string | number;
|