@visns-studio/visns-components 5.27.0 → 6.0.0

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/package.json CHANGED
@@ -5,8 +5,6 @@
5
5
  "@dnd-kit/utilities": "^3.2.2",
6
6
  "@emotion/is-prop-valid": "^1.4.0",
7
7
  "@fontsource/barlow": "^5.2.8",
8
- "@inovua/reactdatagrid-community": "^5.10.2",
9
- "@inovua/reactdatagrid-enterprise": "^5.10.2",
10
8
  "@mapbox/mapbox-gl-geocoder": "^5.1.2",
11
9
  "@nivo/bar": "^0.87.0",
12
10
  "@nivo/core": "^0.87.0",
@@ -17,8 +15,8 @@
17
15
  "@tinymce/miniature": "^6.0.0",
18
16
  "@tinymce/tinymce-react": "^6.3.0",
19
17
  "@uiw/react-color": "^2.10.1",
20
- "@visns-studio/visns-datagrid-community": "1.1.0",
21
- "@visns-studio/visns-datagrid-enterprise": "1.1.0",
18
+ "@visns-studio/visns-datagrid-community": "1.2.0",
19
+ "@visns-studio/visns-datagrid-enterprise": "1.2.0",
22
20
  "@vitejs/plugin-react": "^4.7.0",
23
21
  "add": "^2.0.6",
24
22
  "array-move": "^4.0.0",
@@ -93,7 +91,7 @@
93
91
  "react-dom": "^17.0.0 || ^18.0.0"
94
92
  },
95
93
  "name": "@visns-studio/visns-components",
96
- "version": "5.27.0",
94
+ "version": "6.0.0",
97
95
  "description": "Various packages to assist in the development of our Custom Applications.",
98
96
  "main": "src/index.js",
99
97
  "files": [
@@ -114,5 +112,9 @@
114
112
  "url": "https://github.com/visnsstudio/visns-components/issues"
115
113
  },
116
114
  "homepage": "https://github.com/visnsstudio/visns-components#readme",
117
- "packageManager": "yarn@4.9.2"
115
+ "packageManager": "yarn@4.9.2",
116
+ "resolutions": {
117
+ "@visns-studio/visns-datagrid-community": "portal:../visns-datagrid/lib/community-edition",
118
+ "@visns-studio/visns-datagrid-enterprise": "portal:../visns-datagrid/lib/enterprise-edition"
119
+ }
118
120
  }
@@ -11,6 +11,7 @@ import {
11
11
  UserSearch,
12
12
  ClipboardCheck,
13
13
  LogOut,
14
+ Settings,
14
15
  Shield,
15
16
  Image,
16
17
  Phone,
@@ -238,6 +239,7 @@ function Navigation({
238
239
  phone: Phone,
239
240
  shield: Shield,
240
241
  signOut: LogOut,
242
+ settings: Settings,
241
243
  search: Search,
242
244
  userSearch: UserSearch,
243
245
  clipboardCheck: ClipboardCheck,
@@ -259,7 +261,6 @@ function Navigation({
259
261
  return (
260
262
  <li>
261
263
  <button
262
- title="Scan Business Card"
263
264
  data-tooltip-id="system-tooltip"
264
265
  data-tooltip-content="Scan Business Card"
265
266
  onClick={() => setShowBusinessCardOcr(true)}
@@ -284,7 +285,6 @@ function Navigation({
284
285
  return (
285
286
  <li>
286
287
  <button
287
- title={n.label}
288
288
  data-tooltip-id="system-tooltip"
289
289
  data-tooltip-content={n.label}
290
290
  onClick={handleLogout}
@@ -305,7 +305,6 @@ function Navigation({
305
305
  data-tooltip-content={n.label}
306
306
  className={`${activeClass}`}
307
307
  target={n.target ? n.target : '_self'}
308
- title={n.label}
309
308
  >
310
309
  {IconComponent && (
311
310
  <IconComponent size={19} strokeWidth={2} />
@@ -373,7 +373,19 @@ function TableFilter({
373
373
  )
374
374
  )
375
375
  ) {
376
- window.open(url);
376
+ // Items with target "_self" navigate in the same tab; the
377
+ // default remains a new window for backward compatibility.
378
+ const clickedItem =
379
+ filters.find((f) => f.id === id) ||
380
+ filters
381
+ .flatMap((f) => f.children || [])
382
+ .find((c) => c.id === id);
383
+
384
+ if (clickedItem?.target === '_self') {
385
+ window.location.assign(url);
386
+ } else {
387
+ window.open(url);
388
+ }
377
389
  }
378
390
 
379
391
  // Calculate the updated settings
@@ -2994,6 +2994,14 @@ function GenericDetail({
2994
2994
  {activeTabConfig.export && (
2995
2995
  <button
2996
2996
  className={styles.btn}
2997
+ style={{
2998
+ display: 'inline-flex',
2999
+ alignItems: 'center',
3000
+ justifyContent: 'center',
3001
+ gap: '7px',
3002
+ minWidth: '92px',
3003
+ height: '42px',
3004
+ }}
2997
3005
  onClick={() =>
2998
3006
  handleExport(
2999
3007
  activeTabConfig.export
@@ -3008,6 +3016,14 @@ function GenericDetail({
3008
3016
  {activeTabConfig.customAction && (
3009
3017
  <button
3010
3018
  className={styles.btn}
3019
+ style={{
3020
+ display: 'inline-flex',
3021
+ alignItems: 'center',
3022
+ justifyContent: 'center',
3023
+ gap: '7px',
3024
+ minWidth: '92px',
3025
+ height: '42px',
3026
+ }}
3011
3027
  onClick={() =>
3012
3028
  handleCustomAction(
3013
3029
  activeTabConfig.customAction
@@ -3025,6 +3041,14 @@ function GenericDetail({
3025
3041
  <button
3026
3042
  key={index}
3027
3043
  className={styles.btn}
3044
+ style={{
3045
+ display: 'inline-flex',
3046
+ alignItems: 'center',
3047
+ justifyContent: 'center',
3048
+ gap: '7px',
3049
+ minWidth: '92px',
3050
+ height: '42px',
3051
+ }}
3028
3052
  onClick={() =>
3029
3053
  handleCustomAction(customAction)
3030
3054
  }
@@ -211,7 +211,6 @@
211
211
  border-radius: var(--br);
212
212
  outline: none;
213
213
  transition: all 0.2s cubic-bezier(0.85, 0, 0.15, 1) 0s;
214
- font-size: 1.25em;
215
214
  }
216
215
 
217
216
  .btn:hover:not(:disabled) {