@deviceinsight/ng-ui-scale-lib 9.14.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/README.md +194 -0
- package/dist/AccessEditModal-a5347dbd.js +91 -0
- package/dist/BundleManagementContainer-842bd582.js +17 -0
- package/dist/BundlesContainer-44da5cdf.js +908 -0
- package/dist/ContextBarContext-f745a63a.js +95534 -0
- package/dist/DatapointImport-139761c5.js +860 -0
- package/dist/FileUploadInput-6dc037cb.js +44 -0
- package/dist/Files-cd57769d.js +360 -0
- package/dist/GlobalPowerBiReports-b5b89de7.js +11078 -0
- package/dist/Graph-c912ea08.js +25009 -0
- package/dist/JsonSettingWidget-3d9a995d.js +54 -0
- package/dist/LicensesEditPage-22cc7d68.js +143 -0
- package/dist/LicensesList-1f3f08e2.js +146 -0
- package/dist/PropertiesEditPage-c84dc0d9.js +370 -0
- package/dist/PropertiesList-fe8aa64d.js +265 -0
- package/dist/TemplateEditPage-f163ea2f.js +505 -0
- package/dist/TemplateTextInput-1ba4e19b.js +47 -0
- package/dist/TemplatesListPage-a11b0d84.js +326 -0
- package/dist/UserGroupAssignments-8710d8e3.js +293 -0
- package/dist/UserGroupTheme-0d0d7d48.js +280 -0
- package/dist/api.js +84 -0
- package/dist/consts-012135e5.js +33 -0
- package/dist/customFileCategories-1b64ed45.js +11 -0
- package/dist/extends-0a3e0827.js +13 -0
- package/dist/index-4f55daa8.js +18658 -0
- package/dist/index.js +17373 -0
- package/dist/react-router-f15627c1.js +1152 -0
- package/dist/setupRuntimeEnv.js +27 -0
- package/dist/style.css +1 -0
- package/dist/useCanDeleteBundleVersion-64f35949.js +45 -0
- package/package.json +161 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { useState as t, useEffect as i } from "react";
|
|
2
|
+
let d = (e) => Promise.resolve({
|
|
3
|
+
canBeDeleted: !0
|
|
4
|
+
});
|
|
5
|
+
const g = (e) => (d = e, Promise.resolve()), D = (e) => d(e), v = (e) => {
|
|
6
|
+
const [n, c] = t(!0), [a, s] = t(!1), [l, u] = t();
|
|
7
|
+
return i(() => {
|
|
8
|
+
D(e).then((r) => {
|
|
9
|
+
s(r.canBeDeleted), u(r.error || void 0);
|
|
10
|
+
}).catch((r) => {
|
|
11
|
+
console.error("Error calling canDeleteBundle function", r), s(!1);
|
|
12
|
+
}).finally(() => {
|
|
13
|
+
c(!1);
|
|
14
|
+
});
|
|
15
|
+
}, [e]), {
|
|
16
|
+
canBeDeleted: a,
|
|
17
|
+
error: l,
|
|
18
|
+
processing: n
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
let B = (e, n) => Promise.resolve({
|
|
22
|
+
canBeDeleted: !0
|
|
23
|
+
});
|
|
24
|
+
const C = (e) => (B = e, Promise.resolve()), f = (e, n) => B(e, n), P = (e, n) => {
|
|
25
|
+
const [c, a] = t(!0), [s, l] = t(!1), [u, r] = t();
|
|
26
|
+
return i(() => {
|
|
27
|
+
f(e, n).then((o) => {
|
|
28
|
+
l(o.canBeDeleted), r(o.error || void 0);
|
|
29
|
+
}).catch((o) => {
|
|
30
|
+
console.error("Error calling canDeleteBundleVersion function", o), l(!1);
|
|
31
|
+
}).finally(() => {
|
|
32
|
+
a(!1);
|
|
33
|
+
});
|
|
34
|
+
}, [e, n]), {
|
|
35
|
+
canBeDeleted: s,
|
|
36
|
+
processing: c,
|
|
37
|
+
error: u
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
C as a,
|
|
42
|
+
v as b,
|
|
43
|
+
g as m,
|
|
44
|
+
P as u
|
|
45
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@deviceinsight/ng-ui-scale-lib",
|
|
3
|
+
"version": "9.14.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"type": "module",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./api": {
|
|
21
|
+
"import": "./dist/api.js",
|
|
22
|
+
"require": "./dist/api.js",
|
|
23
|
+
"types": "./dist/api.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./dist/style.css": "./dist/style.css"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"update-dependencies": "zx scripts/update-dependencies.mjs",
|
|
29
|
+
"prebuild": "sh scripts/prebuild.sh",
|
|
30
|
+
"build": "vite build",
|
|
31
|
+
"postbuild": "sh scripts/postbuild.sh",
|
|
32
|
+
"prepare-release": "./scripts/prepare-release.mts"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@deviceinsight/ng-ui-components": "^6.18.0",
|
|
36
|
+
"@deviceinsight/ng-ui-api-client": "10.36.0",
|
|
37
|
+
"@deviceinsight/ng-ui-basic-components": "3.14.0",
|
|
38
|
+
"react-router-dom": "5.3.4",
|
|
39
|
+
"react": "^18.2.0",
|
|
40
|
+
"react-dom": "^18.2.0"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@azure/msal-browser": "3.9.0",
|
|
44
|
+
"@azure/msal-react": "2.0.11",
|
|
45
|
+
"@codemirror/lang-javascript": "6.1.3",
|
|
46
|
+
"@dnd-kit/core": "6.0.5",
|
|
47
|
+
"@dnd-kit/modifiers": "6.0.0",
|
|
48
|
+
"@dnd-kit/sortable": "7.0.1",
|
|
49
|
+
"@googlemaps/js-api-loader": "1.16.2",
|
|
50
|
+
"@googlemaps/markerclustererplus": "1.2.10",
|
|
51
|
+
"@hookform/resolvers": "3.3.1",
|
|
52
|
+
"@stomp/stompjs": "5.4.4",
|
|
53
|
+
"@uiw/react-codemirror": "4.19.8",
|
|
54
|
+
"classnames": "2.3.1",
|
|
55
|
+
"codemirror": "6.0.1",
|
|
56
|
+
"color": "4.0.1",
|
|
57
|
+
"css": "3.0.0",
|
|
58
|
+
"dayjs": "1.11.0",
|
|
59
|
+
"dompurify": "3.2.4",
|
|
60
|
+
"emittery": "0.8.1",
|
|
61
|
+
"eventemitter3": "4.0.7",
|
|
62
|
+
"file-saver": "2.0.5",
|
|
63
|
+
"filesize": "6.1.0",
|
|
64
|
+
"flat": "6.0.1",
|
|
65
|
+
"i18next": "20.3.2",
|
|
66
|
+
"i18next-http-backend": "2.1.1",
|
|
67
|
+
"i18next-locize-backend": "1.9.0",
|
|
68
|
+
"jose": "5.1.2",
|
|
69
|
+
"js-base64": "3.6.0",
|
|
70
|
+
"js-cookie": "2.2.1",
|
|
71
|
+
"jwt-decode": "3.1.2",
|
|
72
|
+
"keyboardjs": "2.6.4",
|
|
73
|
+
"locize": "2.2.4",
|
|
74
|
+
"lodash": "4.17.21",
|
|
75
|
+
"lucene": "2.1.1",
|
|
76
|
+
"mark.js": "8.11.1",
|
|
77
|
+
"masonic": "3.7.0",
|
|
78
|
+
"node-js-marker-clusterer": "1.0.0",
|
|
79
|
+
"papaparse": "5.3.0",
|
|
80
|
+
"powerbi-client-react": "1.3.3",
|
|
81
|
+
"qrcode.react": "3.1.0",
|
|
82
|
+
"qs": "6.9.7",
|
|
83
|
+
"re-resizable": "6.9.9",
|
|
84
|
+
"react-draggable": "4.4.5",
|
|
85
|
+
"react-error-boundary": "4.0.11",
|
|
86
|
+
"react-flip-toolkit": "7.0.17",
|
|
87
|
+
"react-grid-layout": "1.4.3",
|
|
88
|
+
"react-helmet-async": "1.3.0",
|
|
89
|
+
"react-hook-form": "7.48.2",
|
|
90
|
+
"react-i18next": "12.3.1",
|
|
91
|
+
"react-select-event": "5.5.1",
|
|
92
|
+
"react-to-print": "2.14.11",
|
|
93
|
+
"tinyduration": "3.2.1",
|
|
94
|
+
"tsx": "4.19.3",
|
|
95
|
+
"ux4iot-react": "4.1.4",
|
|
96
|
+
"vis": "4.21.0",
|
|
97
|
+
"zod": "3.22.3"
|
|
98
|
+
},
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@rollup/plugin-url": "6.1.0",
|
|
101
|
+
"@svgr/rollup": "6.2.1",
|
|
102
|
+
"@testing-library/jest-dom": "5.16.5",
|
|
103
|
+
"@testing-library/react": "13.4.0",
|
|
104
|
+
"@testing-library/user-event": "14.4.3",
|
|
105
|
+
"@types/antlr4": "4.7.2",
|
|
106
|
+
"@types/color": "3.0.2",
|
|
107
|
+
"@types/css": "0.0.31",
|
|
108
|
+
"@types/dompurify": "2.2.2",
|
|
109
|
+
"@types/dotenv-flow": "3.2.0",
|
|
110
|
+
"@types/file-saver": "2.0.2",
|
|
111
|
+
"@types/google.maps": "3.53.6",
|
|
112
|
+
"@types/js-cookie": "2.2.6",
|
|
113
|
+
"@types/keyboardjs": "2.5.0",
|
|
114
|
+
"@types/lodash": "4.14.170",
|
|
115
|
+
"@types/lucene": "2.1.2",
|
|
116
|
+
"@types/mark.js": "8.11.5",
|
|
117
|
+
"@types/papaparse": "5.2.5",
|
|
118
|
+
"@types/qs": "6.9.6",
|
|
119
|
+
"@types/react": "18.0.27",
|
|
120
|
+
"@types/react-dom": "18.0.10",
|
|
121
|
+
"@types/react-grid-layout": "1.3.2",
|
|
122
|
+
"@types/react-helmet": "6.1.6",
|
|
123
|
+
"@types/react-loadable": "5.5.5",
|
|
124
|
+
"@types/react-router-dom": "5.3.3",
|
|
125
|
+
"@types/react-toastify": "4.1.0",
|
|
126
|
+
"@types/uniqid": "5.3.2",
|
|
127
|
+
"@types/vis": "4.21.21",
|
|
128
|
+
"@typescript-eslint/eslint-plugin": "5.51.0",
|
|
129
|
+
"@typescript-eslint/parser": "5.51.0",
|
|
130
|
+
"@vitejs/plugin-react": "4.0.4",
|
|
131
|
+
"@vitest/ui": "0.26.3",
|
|
132
|
+
"audit-ci": "6.3.0",
|
|
133
|
+
"chalk": "2.4.1",
|
|
134
|
+
"dotenv-flow": "3.2.0",
|
|
135
|
+
"eslint": "8.57.1",
|
|
136
|
+
"eslint-config-prettier": "8.6.0",
|
|
137
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
138
|
+
"eslint-plugin-react-hooks": "4.6.0",
|
|
139
|
+
"eslint-plugin-react-refresh": "^0.4.3",
|
|
140
|
+
"happy-dom": "9.20.3",
|
|
141
|
+
"husky": "8.0.1",
|
|
142
|
+
"jest-extended": "2.0.0",
|
|
143
|
+
"jsdom": "19.0.0",
|
|
144
|
+
"less": "4.1.1",
|
|
145
|
+
"license-report": "6.3.0",
|
|
146
|
+
"license-report-recursive": "6.2.0",
|
|
147
|
+
"lint-staged": "10.5.4",
|
|
148
|
+
"prettier": "3.2.5",
|
|
149
|
+
"readline-sync": "1.4.10",
|
|
150
|
+
"sass": "1.47.0",
|
|
151
|
+
"ts-node": "10.9.1",
|
|
152
|
+
"tsup": "^7.2.0",
|
|
153
|
+
"typescript": "^5.8.2",
|
|
154
|
+
"utility-types": "3.10.0",
|
|
155
|
+
"vite": "4.4.8",
|
|
156
|
+
"vite-plugin-environment": "1.1.3",
|
|
157
|
+
"vite-tsconfig-paths": "^4.2.1",
|
|
158
|
+
"vitest": "0.34.1",
|
|
159
|
+
"zx": "^7.2.3"
|
|
160
|
+
}
|
|
161
|
+
}
|