@evergis/uilib-gl 1.0.57 → 1.0.59

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 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,98 +1,98 @@
1
- # 🛴 Evergis UI
2
- ## Contributing
3
-
4
- 🏆 **Before start:**
5
-
6
- ```
7
- yarn
8
- ```
9
- Update webstorm to >2017.3.3
10
-
11
- Install Styled Components plugin [Jetbrains plugins](https://plugins.jetbrains.com/plugin/9997-styled-components)
12
-
13
- 🛠️ **Start dev:**
14
-
15
- ```
16
- yarn storybook
17
- ```
18
-
19
- Open in browser localhost:6006
20
-
21
- ✅ **Start tests:**
22
-
23
- ```
24
- yarn test
25
- ```
26
-
27
- ## How to release
28
-
29
- 1. Создать временную ветку (например, `publish`)
30
- 2. Изменить версию пакета в `package.json`
31
- 3. `yarn` - освежить все зависимости
32
- 4. `yarn lint:fix` - автопоправка eslint ошибок
33
- 5. `yarn build` - сборка
34
- 6. `npm publish` - паблиш
35
- 7. Создать МР из временной ветки в `master`
36
-
37
- ## How to link
38
-
39
- For testing uilib locally in client (or other projects)
40
- without rebuilding after every update use linking:
41
-
42
- 1. `yarn build` - сборка
43
- 2. `yarn link` - создаём глобальную ссылку на uilib
44
- 3. Открываем client или другой проект
45
- 4. `yarn link "@evergis/uilib-gl"` - привязываем uilib к проекту
46
- 5. `yarn start` - запускаем проект с привязанной uilib
47
- 6. `yarn build` - после изменений в uilib делаем его пересборку
48
-
49
- ### How to manage icons
50
-
51
- 1. https://icomoon.io/app/#/projects
52
- 2. Import Project из `src/fonts/selection.json`
53
- 3. Load
54
- 4. Клик по гамбургер набора EverCloud в правом верхнем углу Import to Set
55
- 5. Generate Font в правом нижнем углу
56
- 6. Замена файлов `src/fonts` на загруженные из архива (папка fonts и selection.json)
57
-
58
- ## Used libraries, languages and tools
59
-
60
- 1. Typescript [Docs](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html)
61
- 2. React [Docs](https://reactjs.org/docs/hello-world.html)
62
- 3. Styled-components [Docs](https://www.styled-components.com/docs)
63
- 4. Jest [Docs](https://facebook.github.io/jest/docs/en/using-matchers.html)
64
- 6. Storybook [Docs](https://storybook.js.org/basics/writing-stories/)
65
-
66
- ## Style Guide
67
- 1. Every component in separate directory
68
- 2. Test file in same directory, with name *.test.tsx
69
- 3. Do not write snapshot tests for components, for snapshot testing used stories, test only specific behavior and functions
70
- 4. Story file in same directory, with name *.story.tsx
71
- 5. Write stories for every possible component state
72
- 6. Every component must be working without any props
73
- 7. Do not create pull request with any linters or ts errors
74
- 8. File naming convention:
75
-
76
- 1. PascalCase for file exporting classes and Components
77
- 2. camelCase for file exporting objects and functions
78
- 3. kebab-case for module replacements
79
- 9. Do not use default exports
80
- 10. Write component description in source file
81
-
82
- ### Completed Component must include the following:
83
- 1. Stories for every possible component state
84
- 2. Tests for specific behaviors and functions
85
- 3. Declared Theme variables
86
- 4. Props type
87
- 5. Component description
88
-
89
- ## Project structure
90
- 1. Import "styled-components" maps to styled-with-theme.ts
91
- 2. theme is theme folder 🚢
92
- 3. Simple reusable styled components and html tags with style are located in atoms folder
93
- 4. Groups of atoms are located in molecules folder
94
- 5. Groups of atoms, molecules and other are located in organisms folder
95
-
96
- ## Todo
97
- 1. Upgrade tippy (tooltip) package version
98
- 2. Upgrade imask & react-imask packages version
1
+ # 🛴 Evergis UI
2
+ ## Contributing
3
+
4
+ 🏆 **Before start:**
5
+
6
+ ```
7
+ yarn
8
+ ```
9
+ Update webstorm to >2017.3.3
10
+
11
+ Install Styled Components plugin [Jetbrains plugins](https://plugins.jetbrains.com/plugin/9997-styled-components)
12
+
13
+ 🛠️ **Start dev:**
14
+
15
+ ```
16
+ yarn storybook
17
+ ```
18
+
19
+ Open in browser localhost:6006
20
+
21
+ ✅ **Start tests:**
22
+
23
+ ```
24
+ yarn test
25
+ ```
26
+
27
+ ## How to release
28
+
29
+ 1. Создать временную ветку (например, `publish`)
30
+ 2. Изменить версию пакета в `package.json`
31
+ 3. `yarn` - освежить все зависимости
32
+ 4. `yarn lint:fix` - автопоправка eslint ошибок
33
+ 5. `yarn build` - сборка
34
+ 6. `npm publish` - паблиш
35
+ 7. Создать МР из временной ветки в `master`
36
+
37
+ ## How to link
38
+
39
+ For testing uilib locally in client (or other projects)
40
+ without rebuilding after every update use linking:
41
+
42
+ 1. `yarn build` - сборка
43
+ 2. `yarn link` - создаём глобальную ссылку на uilib
44
+ 3. Открываем client или другой проект
45
+ 4. `yarn link "@evergis/uilib-gl"` - привязываем uilib к проекту
46
+ 5. `yarn start` - запускаем проект с привязанной uilib
47
+ 6. `yarn build` - после изменений в uilib делаем его пересборку
48
+
49
+ ### How to manage icons
50
+
51
+ 1. https://icomoon.io/app/#/projects
52
+ 2. Import Project из `src/fonts/selection.json`
53
+ 3. Load
54
+ 4. Клик по гамбургер набора EverCloud в правом верхнем углу Import to Set
55
+ 5. Generate Font в правом нижнем углу
56
+ 6. Замена файлов `src/fonts` на загруженные из архива (папка fonts и selection.json)
57
+
58
+ ## Used libraries, languages and tools
59
+
60
+ 1. Typescript [Docs](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html)
61
+ 2. React [Docs](https://reactjs.org/docs/hello-world.html)
62
+ 3. Styled-components [Docs](https://www.styled-components.com/docs)
63
+ 4. Jest [Docs](https://facebook.github.io/jest/docs/en/using-matchers.html)
64
+ 6. Storybook [Docs](https://storybook.js.org/basics/writing-stories/)
65
+
66
+ ## Style Guide
67
+ 1. Every component in separate directory
68
+ 2. Test file in same directory, with name *.test.tsx
69
+ 3. Do not write snapshot tests for components, for snapshot testing used stories, test only specific behavior and functions
70
+ 4. Story file in same directory, with name *.story.tsx
71
+ 5. Write stories for every possible component state
72
+ 6. Every component must be working without any props
73
+ 7. Do not create pull request with any linters or ts errors
74
+ 8. File naming convention:
75
+
76
+ 1. PascalCase for file exporting classes and Components
77
+ 2. camelCase for file exporting objects and functions
78
+ 3. kebab-case for module replacements
79
+ 9. Do not use default exports
80
+ 10. Write component description in source file
81
+
82
+ ### Completed Component must include the following:
83
+ 1. Stories for every possible component state
84
+ 2. Tests for specific behaviors and functions
85
+ 3. Declared Theme variables
86
+ 4. Props type
87
+ 5. Component description
88
+
89
+ ## Project structure
90
+ 1. Import "styled-components" maps to styled-with-theme.ts
91
+ 2. theme is theme folder 🚢
92
+ 3. Simple reusable styled components and html tags with style are located in atoms folder
93
+ 4. Groups of atoms are located in molecules folder
94
+ 5. Groups of atoms, molecules and other are located in organisms folder
95
+
96
+ ## Todo
97
+ 1. Upgrade tippy (tooltip) package version
98
+ 2. Upgrade imask & react-imask packages version
@@ -7,13 +7,11 @@ export declare const iconTypes: {
7
7
  menu_vertical: string;
8
8
  menu_horizontal: string;
9
9
  edit: string;
10
- settings: string;
11
10
  tools: string;
12
11
  filter: string;
13
12
  filter_apply: string;
14
13
  search: string;
15
14
  date: string;
16
- table: string;
17
15
  zoom_to: string;
18
16
  geom_raster: string;
19
17
  geom_point: string;
@@ -63,7 +61,6 @@ export declare const iconTypes: {
63
61
  phone: string;
64
62
  like: string;
65
63
  time: string;
66
- route: string;
67
64
  export_excel: string;
68
65
  location_coordinate: string;
69
66
  sorting_asc: string;
@@ -82,7 +79,6 @@ export declare const iconTypes: {
82
79
  social_fb_simple: string;
83
80
  social_google_simple: string;
84
81
  social_medium: string;
85
- open: string;
86
82
  label: string;
87
83
  geoprocessing: string;
88
84
  info: string;
@@ -94,7 +90,6 @@ export declare const iconTypes: {
94
90
  tree: string;
95
91
  key: string;
96
92
  data: string;
97
- updating: string;
98
93
  lock: string;
99
94
  unlock: string;
100
95
  users: string;
@@ -151,9 +146,7 @@ export declare const iconTypes: {
151
146
  filled: string;
152
147
  raster_visible: string;
153
148
  raster_invisible: string;
154
- editgeom_point_vertex: string;
155
149
  editgeom_point_addpart: string;
156
- editgeom_point_ungroup: string;
157
150
  divide: string;
158
151
  filter_layer: string;
159
152
  filter_table: string;
@@ -164,9 +157,9 @@ export declare const iconTypes: {
164
157
  textRight: string;
165
158
  textCenter: string;
166
159
  textJustify: string;
160
+ externalway: string;
167
161
  link: string;
168
162
  evergis: string;
169
- externalservice: string;
170
163
  geometryUnite: string;
171
164
  geometryCrop: string;
172
165
  roles: string;
@@ -192,7 +185,6 @@ export declare const iconTypes: {
192
185
  arc_gis: string;
193
186
  date_outside: string;
194
187
  wms_link: string;
195
- folder: string;
196
188
  object_size: string;
197
189
  stroke_width: string;
198
190
  select_point: string;
@@ -224,7 +216,6 @@ export declare const iconTypes: {
224
216
  local_tile_service: string;
225
217
  arcgis_service: string;
226
218
  wms_service: string;
227
- external_link: string;
228
219
  text_format: string;
229
220
  coordinates_actions: string;
230
221
  xy: string;
@@ -232,19 +223,16 @@ export declare const iconTypes: {
232
223
  ungroup_features: string;
233
224
  preview: string;
234
225
  points: string;
235
- switcher: string;
236
226
  triangle: string;
237
227
  rectangle: string;
238
228
  ellipse: string;
239
229
  themed_symbol: string;
240
230
  selection: string;
241
231
  table_link: string;
242
- geom_unknown: string;
243
232
  cell_size: string;
244
233
  symbol_library: string;
245
234
  globe: string;
246
235
  alert: string;
247
- tree_folder_closed: string;
248
236
  tree_folder_open: string;
249
237
  add_group: string;
250
238
  ungroup: string;
@@ -257,7 +245,6 @@ export declare const iconTypes: {
257
245
  suggestions: string;
258
246
  social_dzen: string;
259
247
  social_youtube: string;
260
- sorting: string;
261
248
  query: string;
262
249
  table_empty: string;
263
250
  param: string;
@@ -266,14 +253,12 @@ export declare const iconTypes: {
266
253
  file_catalog: string;
267
254
  attachment: string;
268
255
  stats: string;
269
- three_layers: string;
270
256
  grid: string;
271
257
  loading_circle: string;
272
258
  layer_option: string;
273
259
  change_geom: string;
274
260
  settings_horizontal: string;
275
261
  text_editor: string;
276
- dashboard_loading: string;
277
262
  dashboard_placeholder: string;
278
263
  sort: string;
279
264
  postgresql: string;
@@ -1,4 +1,4 @@
1
- import { Column, SlickgridReactInstance } from "slickgrid-react";
1
+ import { Column, GridOption, SlickgridReactInstance } from "slickgrid-react";
2
2
  import { SlickgridReactProps } from "slickgrid-react/dist/types/components/slickgridReactProps";
3
3
  export declare type Sort = "asc" | "desc";
4
4
  export interface DataGridProps {
@@ -8,6 +8,7 @@ export interface DataGridProps {
8
8
  columns?: Column[];
9
9
  height?: string | number;
10
10
  width?: string | number;
11
+ gridOptions?: GridOption;
11
12
  onSort?: (id: string, type: Sort) => void;
12
13
  onClick?: SlickgridReactProps["onClick"];
13
14
  onDblClick?: SlickgridReactProps["onDblClick"];