@deviceinsight/ng-ui-scale-lib 9.26.0 → 10.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.
Files changed (71) hide show
  1. package/README.md +1 -1
  2. package/dist/AccessEditModal-x6TMxYkb.js +90 -0
  3. package/dist/AccessEditModal-x6TMxYkb.js.map +1 -0
  4. package/dist/BundleManagementContainer-B49bT5K-.js +16 -0
  5. package/dist/BundleManagementContainer-B49bT5K-.js.map +1 -0
  6. package/dist/BundlesContainer-BHzbWPe9.js +914 -0
  7. package/dist/BundlesContainer-BHzbWPe9.js.map +1 -0
  8. package/dist/DatapointImport-BSFXGuOh.js +293 -0
  9. package/dist/DatapointImport-BSFXGuOh.js.map +1 -0
  10. package/dist/FileUploadInput-Ccq_3cug.js +45 -0
  11. package/dist/FileUploadInput-Ccq_3cug.js.map +1 -0
  12. package/dist/Files-BniY5cJF.js +347 -0
  13. package/dist/Files-BniY5cJF.js.map +1 -0
  14. package/dist/GlobalPowerBiReports-CayA5Bqf.js +103 -0
  15. package/dist/GlobalPowerBiReports-CayA5Bqf.js.map +1 -0
  16. package/dist/Graph-BqYDNKEo.js +53 -0
  17. package/dist/Graph-BqYDNKEo.js.map +1 -0
  18. package/dist/JsonSettingWidget-pI5gCFnm.js +53 -0
  19. package/dist/JsonSettingWidget-pI5gCFnm.js.map +1 -0
  20. package/dist/LicensesEditPage-Bef9P-VO.js +145 -0
  21. package/dist/LicensesEditPage-Bef9P-VO.js.map +1 -0
  22. package/dist/LicensesList-Bwb2a9OS.js +149 -0
  23. package/dist/LicensesList-Bwb2a9OS.js.map +1 -0
  24. package/dist/PropertiesEditPage-OrwneFF4.js +373 -0
  25. package/dist/PropertiesEditPage-OrwneFF4.js.map +1 -0
  26. package/dist/{PropertiesList-59c05fe4.js → PropertiesList-DRYRjsEu.js} +56 -58
  27. package/dist/PropertiesList-DRYRjsEu.js.map +1 -0
  28. package/dist/TemplateEditPage-B9v3VwGH.js +508 -0
  29. package/dist/TemplateEditPage-B9v3VwGH.js.map +1 -0
  30. package/dist/TemplateTextInput-CZFJ0oAT.js +45 -0
  31. package/dist/TemplateTextInput-CZFJ0oAT.js.map +1 -0
  32. package/dist/TemplatesListPage-BIZ0egkq.js +330 -0
  33. package/dist/TemplatesListPage-BIZ0egkq.js.map +1 -0
  34. package/dist/UserGroupAssignments-Wk1S9obw.js +297 -0
  35. package/dist/UserGroupAssignments-Wk1S9obw.js.map +1 -0
  36. package/dist/{UserGroupTheme-6768666a.js → UserGroupTheme-BLBu4kUe.js} +51 -53
  37. package/dist/UserGroupTheme-BLBu4kUe.js.map +1 -0
  38. package/dist/api.d.ts +805 -802
  39. package/dist/api.js +73 -77
  40. package/dist/api.js.map +1 -0
  41. package/dist/{consts-012135e5.js → consts-CZ_QkIyI.js} +1 -2
  42. package/dist/consts-CZ_QkIyI.js.map +1 -0
  43. package/dist/{customFileCategories-1b64ed45.js → customFileCategories-bG5S9qSy.js} +1 -0
  44. package/dist/customFileCategories-bG5S9qSy.js.map +1 -0
  45. package/dist/index.d.ts +3 -7
  46. package/dist/index.js +4729 -17113
  47. package/dist/index.js.map +1 -0
  48. package/dist/setTitle-Ck-71vC0.js +39377 -0
  49. package/dist/setTitle-Ck-71vC0.js.map +1 -0
  50. package/dist/style.css +1 -1
  51. package/dist/{useCanDeleteBundleVersion-64f35949.js → useCanDeleteBundleVersion-CUD1pDJ0.js} +1 -0
  52. package/dist/useCanDeleteBundleVersion-CUD1pDJ0.js.map +1 -0
  53. package/package.json +85 -108
  54. package/dist/AccessEditModal-c2178ad5.js +0 -92
  55. package/dist/BundleManagementContainer-60c28e65.js +0 -20
  56. package/dist/BundlesContainer-b3ee1991.js +0 -912
  57. package/dist/ContextBarContext-a6c59c97.js +0 -88776
  58. package/dist/DatapointImport-f6bdbdbc.js +0 -864
  59. package/dist/FileUploadInput-81bb787f.js +0 -44
  60. package/dist/Files-dc240d97.js +0 -364
  61. package/dist/GlobalPowerBiReports-3b7feef9.js +0 -11081
  62. package/dist/Graph-f5463f47.js +0 -25012
  63. package/dist/JsonSettingWidget-307658b8.js +0 -56
  64. package/dist/LicensesEditPage-f62cca26.js +0 -146
  65. package/dist/LicensesList-85279448.js +0 -150
  66. package/dist/PropertiesEditPage-4edb93b7.js +0 -371
  67. package/dist/TemplateEditPage-fe1b5f44.js +0 -508
  68. package/dist/TemplateTextInput-34e4356f.js +0 -49
  69. package/dist/TemplatesListPage-cd3194a7.js +0 -330
  70. package/dist/UserGroupAssignments-291f29f0.js +0 -297
  71. package/dist/index-738ab9ab.js +0 -18679
@@ -43,3 +43,4 @@ export {
43
43
  g as m,
44
44
  P as u
45
45
  };
46
+ //# sourceMappingURL=useCanDeleteBundleVersion-CUD1pDJ0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCanDeleteBundleVersion-CUD1pDJ0.js","sources":["../ng-ui-scale/src/modules/bundleManagement/utils/useCanDeleteBundle.ts","../ng-ui-scale/src/modules/bundleManagement/utils/useCanDeleteBundleVersion.ts"],"sourcesContent":["import {useEffect, useState} from 'react';\n\nimport type {Bundle} from '@deviceinsight/ng-ui-api-client';\n\nimport type {CanDeleteResult} from './helpers';\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nlet canDeleteBundleFn = (bundle: Bundle): Promise<CanDeleteResult> =>\n\tPromise.resolve({\n\t\tcanBeDeleted: true,\n\t});\n\n/**\n * Allows to define a custom function for determining if a bundle can be deleted or not.\n * @param {function(bundle: Bundle): Promise<CanDeleteResult>} modifier The custom function for determining if a bundle can be deleted or not.\n */\nexport const modifyCanDeleteBundle = (\n\tcustomCanDeleteBundle: (arg0: Bundle) => Promise<CanDeleteResult>,\n): Promise<void> => {\n\tcanDeleteBundleFn = customCanDeleteBundle;\n\treturn Promise.resolve();\n};\n\nconst canDeleteBundle = (bundle: Bundle) => canDeleteBundleFn(bundle);\n\nexport const useCanDeleteBundle = (bundle: Bundle) => {\n\tconst [processing, setProcessing] = useState<boolean>(true);\n\tconst [canBeDeleted, setCanBeDeleted] = useState<boolean>(false);\n\tconst [error, setError] = useState<string | null | undefined>();\n\n\tuseEffect(() => {\n\t\tcanDeleteBundle(bundle)\n\t\t\t.then(response => {\n\t\t\t\tsetCanBeDeleted(response.canBeDeleted);\n\t\t\t\tsetError(response.error || undefined);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tconsole.error('Error calling canDeleteBundle function', err);\n\t\t\t\tsetCanBeDeleted(false);\n\t\t\t})\n\t\t\t.finally(() => {\n\t\t\t\tsetProcessing(false);\n\t\t\t});\n\t}, [bundle]);\n\treturn {\n\t\tcanBeDeleted,\n\t\terror,\n\t\tprocessing,\n\t};\n};\n","import type * as React from 'react';\nimport {useEffect, useState} from 'react';\n\nimport type {Bundle, BundleVersion} from '@deviceinsight/ng-ui-api-client';\n\nimport type {CanDeleteResult} from './helpers';\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nlet canDeleteBundleVersionFn = (bundle: Bundle, version: BundleVersion): Promise<CanDeleteResult> =>\n\tPromise.resolve({\n\t\tcanBeDeleted: true,\n\t});\n\n/**\n * Allows to define a custom function for determining if a bundle version can be deleted or not.\n * @param {function(bundle: Bundle, version: BundleVersion): Promise<CanDeleteResult>} modifier The custom function for determining if a bundle version can be deleted or not.\n */\nexport const modifyCanDeleteBundleVersion = (\n\tcustomCanDeleteBundleVersion: (bundle: Bundle, version: BundleVersion) => Promise<CanDeleteResult>,\n): Promise<void> => {\n\tcanDeleteBundleVersionFn = customCanDeleteBundleVersion;\n\treturn Promise.resolve();\n};\n\nconst canDeleteBundleVersion = (bundle: Bundle, version: BundleVersion) => canDeleteBundleVersionFn(bundle, version);\n\nexport const useCanDeleteBundleVersion = (\n\tbundle: Bundle,\n\tversion: BundleVersion,\n): {\n\tcanBeDeleted: boolean;\n\terror: React.ReactNode | null | undefined;\n\tprocessing: boolean;\n} => {\n\tconst [processing, setProcessing] = useState<boolean>(true);\n\tconst [canBeDeleted, setCanBeDeleted] = useState<boolean>(false);\n\tconst [error, setError] = useState<string | null | undefined>();\n\n\tuseEffect(() => {\n\t\tcanDeleteBundleVersion(bundle, version)\n\t\t\t.then(response => {\n\t\t\t\tsetCanBeDeleted(response.canBeDeleted);\n\t\t\t\tsetError(response.error || undefined);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tconsole.error('Error calling canDeleteBundleVersion function', err);\n\t\t\t\tsetCanBeDeleted(false);\n\t\t\t})\n\t\t\t.finally(() => {\n\t\t\t\tsetProcessing(false);\n\t\t\t});\n\t}, [bundle, version]);\n\treturn {\n\t\tcanBeDeleted,\n\t\tprocessing,\n\t\terror,\n\t};\n};\n"],"names":["canDeleteBundleFn","bundle","modifyCanDeleteBundle","customCanDeleteBundle","canDeleteBundle","useCanDeleteBundle","processing","setProcessing","useState","canBeDeleted","setCanBeDeleted","error","setError","useEffect","response","err","canDeleteBundleVersionFn","version","modifyCanDeleteBundleVersion","customCanDeleteBundleVersion","canDeleteBundleVersion","useCanDeleteBundleVersion"],"mappings":";AAOA,IAAIA,IAAoB,CAACC,MACxB,QAAQ,QAAQ;AAAA,EACf,cAAc;AACf,CAAC;AAMK,MAAMC,IAAwB,CACpCC,OAEAH,IAAoBG,GACb,QAAQ,QAAA,IAGVC,IAAkB,CAACH,MAAmBD,EAAkBC,CAAM,GAEvDI,IAAqB,CAACJ,MAAmB;AACrD,QAAM,CAACK,GAAYC,CAAa,IAAIC,EAAkB,EAAI,GACpD,CAACC,GAAcC,CAAe,IAAIF,EAAkB,EAAK,GACzD,CAACG,GAAOC,CAAQ,IAAIJ,EAAA;AAE1B,SAAAK,EAAU,MAAM;AACf,IAAAT,EAAgBH,CAAM,EACpB,KAAK,CAAAa,MAAY;AACjB,MAAAJ,EAAgBI,EAAS,YAAY,GACrCF,EAASE,EAAS,SAAS,MAAS;AAAA,IACrC,CAAC,EACA,MAAM,CAAAC,MAAO;AACb,cAAQ,MAAM,0CAA0CA,CAAG,GAC3DL,EAAgB,EAAK;AAAA,IACtB,CAAC,EACA,QAAQ,MAAM;AACd,MAAAH,EAAc,EAAK;AAAA,IACpB,CAAC;AAAA,EACH,GAAG,CAACN,CAAM,CAAC,GACJ;AAAA,IACN,cAAAQ;AAAA,IACA,OAAAE;AAAA,IACA,YAAAL;AAAA,EAAA;AAEF;ACzCA,IAAIU,IAA2B,CAACf,GAAgBgB,MAC/C,QAAQ,QAAQ;AAAA,EACf,cAAc;AACf,CAAC;AAMK,MAAMC,IAA+B,CAC3CC,OAEAH,IAA2BG,GACpB,QAAQ,QAAA,IAGVC,IAAyB,CAACnB,GAAgBgB,MAA2BD,EAAyBf,GAAQgB,CAAO,GAEtGI,IAA4B,CACxCpB,GACAgB,MAKI;AACJ,QAAM,CAACX,GAAYC,CAAa,IAAIC,EAAkB,EAAI,GACpD,CAACC,GAAcC,CAAe,IAAIF,EAAkB,EAAK,GACzD,CAACG,GAAOC,CAAQ,IAAIJ,EAAA;AAE1B,SAAAK,EAAU,MAAM;AACf,IAAAO,EAAuBnB,GAAQgB,CAAO,EACpC,KAAK,CAAAH,MAAY;AACjB,MAAAJ,EAAgBI,EAAS,YAAY,GACrCF,EAASE,EAAS,SAAS,MAAS;AAAA,IACrC,CAAC,EACA,MAAM,CAAAC,MAAO;AACb,cAAQ,MAAM,iDAAiDA,CAAG,GAClEL,EAAgB,EAAK;AAAA,IACtB,CAAC,EACA,QAAQ,MAAM;AACd,MAAAH,EAAc,EAAK;AAAA,IACpB,CAAC;AAAA,EACH,GAAG,CAACN,GAAQgB,CAAO,CAAC,GACb;AAAA,IACN,cAAAR;AAAA,IACA,YAAAH;AAAA,IACA,OAAAK;AAAA,EAAA;AAEF;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deviceinsight/ng-ui-scale-lib",
3
- "version": "9.26.0",
3
+ "version": "10.0.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -10,18 +10,18 @@
10
10
  ],
11
11
  "type": "module",
12
12
  "types": "./dist/index.d.ts",
13
- "module": "./dist/index.js",
14
13
  "main": "./dist/index.js",
14
+ "engines": {
15
+ "node": ">=22.0.0"
16
+ },
15
17
  "exports": {
16
18
  ".": {
17
- "import": "./dist/index.js",
18
- "require": "./dist/index.js",
19
- "types": "./dist/index.d.ts"
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js"
20
21
  },
21
22
  "./api": {
22
- "import": "./dist/api.js",
23
- "require": "./dist/api.js",
24
- "types": "./dist/api.d.ts"
23
+ "types": "./dist/api.d.ts",
24
+ "import": "./dist/api.js"
25
25
  },
26
26
  "./dist/style.css": "./dist/style.css"
27
27
  },
@@ -29,136 +29,113 @@
29
29
  "update-dependencies": "zx scripts/update-dependencies.mjs",
30
30
  "prebuild": "sh scripts/prebuild.sh",
31
31
  "build": "vite build",
32
+ "build:dev": "npm run prebuild && vite build --minify false && npm run postbuild",
32
33
  "postbuild": "sh scripts/postbuild.sh",
33
34
  "prepare-release": "./scripts/prepare-release.mts"
34
35
  },
35
36
  "peerDependencies": {
36
- "@deviceinsight/ng-ui-components": "^6.23.0",
37
- "@deviceinsight/ng-ui-api-client": "10.40.0",
38
- "@deviceinsight/ng-ui-basic-components": "3.16.0",
39
- "react-router-dom": "5.3.4",
40
- "ux4iot-react": "4.1.4",
41
- "i18next": "20.3.2",
42
- "react-i18next": "12.3.1",
43
- "react": "^18.2.0",
44
- "react-dom": "^18.2.0"
37
+ "react": "^19",
38
+ "react-dom": "^19"
45
39
  },
46
40
  "dependencies": {
47
- "@azure/msal-browser": "3.9.0",
48
- "@azure/msal-react": "2.0.11",
49
- "@codemirror/lang-javascript": "6.1.3",
50
- "@dnd-kit/core": "6.0.5",
51
- "@dnd-kit/modifiers": "6.0.0",
52
- "@dnd-kit/sortable": "7.0.1",
53
- "@googlemaps/js-api-loader": "1.16.2",
54
- "@googlemaps/markerclustererplus": "1.2.10",
55
- "@hookform/resolvers": "3.3.1",
56
- "@stomp/stompjs": "5.4.4",
57
- "@uiw/react-codemirror": "4.19.8",
41
+ "@azure/msal-browser": "4.26.2",
42
+ "@azure/msal-react": "3.0.22",
43
+ "@codemirror/lang-javascript": "6.2.4",
44
+ "@deviceinsight/ng-ui-api-client": "10.43.0",
45
+ "@deviceinsight/ng-ui-basic-components": "7.1.0",
46
+ "@deviceinsight/ng-ui-components": "7.1.0",
47
+ "@dnd-kit/core": "6.3.1",
48
+ "@dnd-kit/modifiers": "9.0.0",
49
+ "@dnd-kit/sortable": "10.0.0",
50
+ "@googlemaps/js-api-loader": "2.0.1",
51
+ "@googlemaps/markerclusterer": "2.6.2",
52
+ "@hookform/resolvers": "5.2.2",
53
+ "@uiw/react-codemirror": "4.25.3",
54
+ "axios": "1.13.5",
58
55
  "axios-retry": "4.5.0",
59
- "classnames": "2.3.1",
60
- "codemirror": "6.0.1",
61
- "color": "4.0.1",
56
+ "classnames": "2.5.1",
57
+ "codemirror": "6.0.2",
58
+ "color": "5.0.3",
62
59
  "css": "3.0.0",
63
- "dayjs": "1.11.0",
64
- "dompurify": "3.2.4",
65
- "emittery": "0.8.1",
66
- "eventemitter3": "4.0.7",
60
+ "dayjs": "1.11.19",
61
+ "dompurify": "3.3.0",
62
+ "emittery": "1.2.0",
63
+ "eventemitter3": "5.0.1",
67
64
  "file-saver": "2.0.5",
68
- "filesize": "6.1.0",
65
+ "filesize": "11.0.13",
69
66
  "flat": "6.0.1",
70
- "i18next-http-backend": "2.1.1",
67
+ "i18next": "^25.6.0",
68
+ "i18next-http-backend": "3.0.2",
71
69
  "i18next-locize-backend": "1.9.0",
72
- "jose": "5.1.2",
73
- "js-base64": "3.6.0",
74
- "js-cookie": "2.2.1",
75
- "jwt-decode": "3.1.2",
76
- "keyboardjs": "2.6.4",
77
- "locize": "2.2.4",
78
- "lodash": "4.17.21",
70
+ "jose": "6.1.2",
71
+ "js-base64": "3.7.8",
72
+ "js-cookie": "3.0.5",
73
+ "keyboardjs": "2.7.0",
74
+ "locize": "4.0.14",
75
+ "lodash": "4.17.23",
79
76
  "lucene": "2.1.1",
80
77
  "mark.js": "8.11.1",
81
- "masonic": "3.7.0",
78
+ "masonic": "4.1.0",
82
79
  "node-js-marker-clusterer": "1.0.0",
83
- "papaparse": "5.3.0",
80
+ "papaparse": "5.5.3",
81
+ "powerbi-client": "2.23.9",
84
82
  "powerbi-client-react": "1.3.3",
85
- "qrcode.react": "3.1.0",
86
- "qs": "6.9.7",
87
- "re-resizable": "6.9.9",
88
- "react-draggable": "4.4.5",
89
- "react-error-boundary": "4.0.11",
90
- "react-flip-toolkit": "7.0.17",
91
- "react-grid-layout": "1.4.3",
92
- "react-helmet-async": "1.3.0",
93
- "react-hook-form": "7.48.2",
83
+ "qrcode.react": "4.2.0",
84
+ "qs": "6.15.0",
85
+ "re-resizable": "6.11.2",
86
+ "react-draggable": "4.5.0",
87
+ "react-error-boundary": "6.0.0",
88
+ "react-flip-toolkit": "7.2.4",
89
+ "react-grid-layout": "1.5.2",
90
+ "react-hook-form": "7.66.1",
91
+ "react-i18next": "16.2.4",
92
+ "react-router-dom": "5.3.4",
94
93
  "react-select-event": "5.5.1",
95
- "react-to-print": "2.14.11",
96
- "tinyduration": "3.2.1",
97
- "tsx": "4.19.3",
94
+ "react-to-print": "3.2.0",
95
+ "react-toastify": "^11.0.5",
96
+ "tinyduration": "3.4.1",
97
+ "ux4iot-react": "4.1.5",
98
98
  "vis": "4.21.0",
99
- "zod": "3.22.3",
100
- "zustand": "^5.0.8"
99
+ "zod": "4.1.12",
100
+ "zustand": "5.0.8"
101
101
  },
102
102
  "devDependencies": {
103
- "@rollup/plugin-url": "6.1.0",
104
- "@svgr/rollup": "6.2.1",
105
- "@testing-library/jest-dom": "5.16.5",
106
- "@testing-library/react": "13.4.0",
107
- "@testing-library/user-event": "14.4.3",
103
+ "@rollup/plugin-url": "8.0.2",
104
+ "@svgr/rollup": "8.1.0",
108
105
  "@types/antlr4": "4.7.2",
109
106
  "@types/color": "3.0.2",
110
- "@types/css": "0.0.31",
107
+ "@types/css": "0.0.38",
111
108
  "@types/dompurify": "2.2.2",
112
- "@types/dotenv-flow": "3.2.0",
113
- "@types/file-saver": "2.0.2",
109
+ "@types/dotenv-flow": "3.3.3",
110
+ "@types/file-saver": "2.0.7",
114
111
  "@types/google.maps": "3.53.6",
115
- "@types/js-cookie": "2.2.6",
116
- "@types/keyboardjs": "2.5.0",
117
- "@types/lodash": "4.14.170",
118
- "@types/lucene": "2.1.2",
119
- "@types/mark.js": "8.11.5",
120
- "@types/papaparse": "5.2.5",
121
- "@types/qs": "6.9.6",
122
- "@types/react": "18.0.27",
123
- "@types/react-dom": "18.0.10",
124
- "@types/react-grid-layout": "1.3.2",
112
+ "@types/js-cookie": "3.0.6",
113
+ "@types/keyboardjs": "2.5.3",
114
+ "@types/lodash": "4.17.23",
115
+ "@types/lucene": "2.1.7",
116
+ "@types/mark.js": "8.11.12",
117
+ "@types/papaparse": "5.5.0",
118
+ "@types/qs": "6.14.0",
119
+ "@types/react": "^19.2.2",
120
+ "@types/react-dom": "^19.2.2",
121
+ "@types/react-grid-layout": "1.3.5",
125
122
  "@types/react-helmet": "6.1.6",
126
123
  "@types/react-loadable": "5.5.5",
127
124
  "@types/react-router-dom": "5.3.3",
125
+ "@types/readline-sync": "1.4.8",
128
126
  "@types/uniqid": "5.3.2",
129
- "@types/vis": "4.21.21",
130
- "@typescript-eslint/eslint-plugin": "5.51.0",
131
- "@typescript-eslint/parser": "5.51.0",
132
- "@vitejs/plugin-react": "4.0.4",
127
+ "@types/vis": "4.21.27",
128
+ "@vitejs/plugin-react": "5.1.1",
133
129
  "@vitest/ui": "0.26.3",
134
- "audit-ci": "6.3.0",
135
- "chalk": "2.4.1",
136
- "dotenv-flow": "3.2.0",
137
- "eslint": "8.57.1",
138
- "eslint-config-prettier": "8.6.0",
139
- "eslint-plugin-prettier": "4.2.1",
140
- "eslint-plugin-react-hooks": "4.6.0",
141
- "eslint-plugin-react-refresh": "^0.4.3",
142
- "happy-dom": "9.20.3",
143
- "husky": "8.0.1",
144
- "jest-extended": "2.0.0",
145
- "jsdom": "19.0.0",
146
- "less": "4.1.1",
147
- "license-report": "6.3.0",
148
- "license-report-recursive": "6.2.0",
149
- "lint-staged": "10.5.4",
150
- "prettier": "3.2.5",
151
- "react-toastify": "^7.0.3",
152
- "readline-sync": "1.4.10",
153
- "sass": "1.47.0",
154
- "ts-node": "10.9.1",
130
+ "es-toolkit": "^1.42.0",
131
+ "less": "4.4.2",
132
+ "sass": "1.94.2",
155
133
  "tsup": "^7.2.0",
156
134
  "typescript": "^5.8.2",
157
- "utility-types": "3.10.0",
158
- "vite": "4.4.8",
135
+ "utility-types": "3.11.0",
136
+ "vite": "7.2.4",
159
137
  "vite-plugin-environment": "1.1.3",
160
- "vite-tsconfig-paths": "^4.2.1",
161
- "vitest": "0.34.1",
162
- "zx": "^7.2.3"
138
+ "vite-tsconfig-paths": "5.1.4",
139
+ "zx": "^8.8.5"
163
140
  }
164
141
  }
@@ -1,92 +0,0 @@
1
- import { ay as A, ah as j, aY as w, ax as e, ag as r, bQ as I, dk as U, dl as O, dm as _, cj as b, dn as m } from "./ContextBarContext-a6c59c97.js";
2
- import { useState as f, useContext as E, useMemo as M } from "react";
3
- import { Modal as k, SpinnerContainer as K, Button as x } from "@deviceinsight/ng-ui-basic-components";
4
- import { InfoBox as F } from "@deviceinsight/ng-ui-components";
5
- import { searchUserGroups as W } from "@deviceinsight/ng-ui-api-client";
6
- const L = "usergroupsWithoutAccessToTemplate";
7
- function N(o) {
8
- return {
9
- fields: b,
10
- search: (s, t) => W(o(s), t)
11
- };
12
- }
13
- function R(o, s) {
14
- return s ? m(
15
- s.filter((t) => !o.includes(t)),
16
- !1
17
- ) : m(o, !0);
18
- }
19
- function q({ onSave: o, onCancel: s, loading: t, template: n }) {
20
- const [i, T] = f([]), [a, S] = f(!0), { user: u } = E(A), l = n && n.accountGroupsWithAccess || [], C = a ? u.accountGroupIds ?? [] : null, G = M(
21
- () => Math.random(),
22
- // eslint-disable-next-line react-hooks/exhaustive-deps
23
- [a]
24
- ), { t: d } = j(), h = w(["ACCESS_TO_ALL_NOTIFICATION_TEMPLATES"]), g = (n == null ? void 0 : n.accountGroupsWithAccess) ?? [], p = [...i, ...g].some(
25
- (c) => u.accountGroupIds.includes(c)
26
- ), y = !h && !p || t;
27
- return /* @__PURE__ */ e.jsx(
28
- k,
29
- {
30
- onOutsideClick: s,
31
- header: /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplate.access.modal.title", children: "Authorize User Groups to access this template" }),
32
- content: /* @__PURE__ */ e.jsxs(K, { show: t, children: [
33
- /* @__PURE__ */ e.jsx("h2", { children: /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplate.access.modal.headline", children: "Add User Groups" }) }),
34
- !h && !p && /* @__PURE__ */ e.jsx(
35
- F,
36
- {
37
- type: "warning",
38
- icon: I,
39
- message: d("notificationTemplate.access.modal.ownUserGroupRequired", {
40
- defaultValue: "You have to at least select one of your own groups, to not lose access to the notification template."
41
- })
42
- }
43
- ),
44
- /* @__PURE__ */ e.jsx(
45
- U,
46
- {
47
- searchContext: L,
48
- searchConfig: N(R(l, C)),
49
- columnDefinitions: O(!0),
50
- uniqueItemKey: (c) => c.id,
51
- pageSize: 5,
52
- onSelectSome: T,
53
- updateTrigger: G,
54
- extraHeaderComponent: () => /* @__PURE__ */ e.jsx(
55
- _,
56
- {
57
- style: {
58
- flexGrow: 1,
59
- marginLeft: "50px"
60
- },
61
- value: a,
62
- onChange: S,
63
- label: d("notificationTemplate.access.modal.showOnlyMyGroups", {
64
- defaultValue: "Show only my groups"
65
- }),
66
- horizontal: !0
67
- }
68
- ),
69
- searchInputScope: "notification-template-access-modal",
70
- tableName: "notification-template-access-modal-table"
71
- }
72
- ),
73
- /* @__PURE__ */ e.jsx(r, { i18nKey: "notificationTemplate.access.modal.note", children: "Please select User Groups to authorise them to access and work with this template." })
74
- ] }),
75
- footer: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
76
- /* @__PURE__ */ e.jsx(
77
- x,
78
- {
79
- primary: !0,
80
- disabled: y,
81
- onClick: () => o([...l, ...i], n),
82
- children: /* @__PURE__ */ e.jsx(r, { i18nKey: "general.actions.save", children: "Save" })
83
- }
84
- ),
85
- /* @__PURE__ */ e.jsx(x, { onClick: () => s(), children: /* @__PURE__ */ e.jsx(r, { i18nKey: "general.actions.cancel", children: "Cancel" }) })
86
- ] })
87
- }
88
- );
89
- }
90
- export {
91
- q as A
92
- };
@@ -1,20 +0,0 @@
1
- import { bx as n, ax as r } from "./ContextBarContext-a6c59c97.js";
2
- import { useContext as m, useEffect as s } from "react";
3
- import { useLocation as i } from "react-router-dom";
4
- import { messageBoxDismissGroup as a } from "@deviceinsight/ng-ui-components";
5
- import { M as p } from "./consts-012135e5.js";
6
- import "react-dom";
7
- import "@deviceinsight/ng-ui-basic-components";
8
- import "react-i18next";
9
- import "i18next";
10
- import "@deviceinsight/ng-ui-api-client";
11
- import "ux4iot-react";
12
- function I({ children: o }) {
13
- const { setContextInfo: t } = m(n), { pathname: e } = i();
14
- return s(() => (t(), () => {
15
- a(p), t();
16
- }), [e, t]), /* @__PURE__ */ r.jsx("div", { children: o });
17
- }
18
- export {
19
- I as default
20
- };