@deviceinsight/ng-ui-components 7.14.0 → 7.16.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/dist/index.cjs +3473 -3762
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3422 -3752
- package/dist/index.js.map +1 -1
- package/dist/style.css +830 -12
- package/dist/types/__mocks__/i18n.d.ts +7 -6
- package/dist/types/__mocks__/i18n.d.ts.map +1 -1
- package/dist/types/components/colorpicker/GridColorPicker.stories.d.ts +1 -1
- package/dist/types/components/input/DateInput.stories.d.ts.map +1 -1
- package/dist/types/components/input/DateTimeInput.stories.d.ts.map +1 -1
- package/dist/types/components/upload/FileUpload.stories.d.ts +3 -3
- package/dist/types/modules/messageBox/messageBox.d.ts +2 -1
- package/dist/types/modules/messageBox/messageBox.d.ts.map +1 -1
- package/package.json +47 -49
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { ComponentProps, ComponentType } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ComponentProps, ComponentType, ReactElement } from 'react';
|
|
2
|
+
import { Mock } from 'vitest';
|
|
3
|
+
declare const i18nMock: {
|
|
4
|
+
withTranslation: () => (Component: ComponentType<any>) => (props: any) => ReactElement;
|
|
5
|
+
Trans: (props: ComponentProps<any>) => any;
|
|
5
6
|
useTranslation: () => {
|
|
6
7
|
t: (key: string) => string;
|
|
7
8
|
i18n: {
|
|
8
|
-
exists:
|
|
9
|
+
exists: Mock;
|
|
9
10
|
};
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
|
-
export default
|
|
13
|
+
export default i18nMock;
|
|
13
14
|
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/__mocks__/i18n.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,aAAa,EAAC,MAAM,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/__mocks__/i18n.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,aAAa,EAAE,YAAY,EAAC,MAAM,OAAO,CAAC;AAClE,OAAO,EAAK,IAAI,EAAC,MAAM,QAAQ,CAAC;AAEhC,QAAA,MAAM,QAAQ,EAAE;IACf,eAAe,EAAE,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,KAAK,YAAY,CAAC;IACvF,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC;IAC3C,cAAc,EAAE,MAAM;QAAC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;QAAC,IAAI,EAAE;YAAC,MAAM,EAAE,IAAI,CAAA;SAAC,CAAA;KAAC,CAAC;CAYzE,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -5,7 +5,7 @@ declare const meta: {
|
|
|
5
5
|
component: typeof GridColorPicker;
|
|
6
6
|
render: (args: import("./GridColorPicker").Props) => import("react").JSX.Element;
|
|
7
7
|
args: {
|
|
8
|
-
onPick: import("
|
|
8
|
+
onPick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
9
9
|
colors: string[];
|
|
10
10
|
onOpenStateChange: undefined;
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/input/DateInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AACrD,OAAO,SAAS,MAAM,aAAa,CAAC;AAQpC,QAAA,MAAM,IAAI;;;;;
|
|
1
|
+
{"version":3,"file":"DateInput.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/input/DateInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AACrD,OAAO,SAAS,MAAM,aAAa,CAAC;AAQpC,QAAA,MAAM,IAAI;;;;;iEAiEoK,CAAC;;;;;;;;;;mBAvEvJ,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC;;;;;CAc5B,CAAC;AAEnC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAMF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAwBF,eAAO,MAAM,mBAAmB,EAAE,KAEjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeInput.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/input/DateTimeInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,wBAAwB,EAAC,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAErD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,KAAK,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,CAAC;AACxD,KAAK,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;AASlD,QAAA,MAAM,IAAI;;;mBAPc,IAAI;;;;;;;
|
|
1
|
+
{"version":3,"file":"DateTimeInput.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/input/DateTimeInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,wBAAwB,EAAC,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAErD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,KAAK,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,CAAC;AACxD,KAAK,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;AASlD,QAAA,MAAM,IAAI;;;mBAPc,IAAI;;;;;;;iEAiBd,CAAC;;;;;;;;;;;;CAKmB,CAAC;AAEnC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC"}
|
|
@@ -4,8 +4,8 @@ declare const meta: Meta<typeof FileUpload>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
export declare const BasicUpload: {
|
|
6
6
|
args: {
|
|
7
|
-
onRemoveFile: import("
|
|
8
|
-
onSelectFile: import("
|
|
7
|
+
onRemoveFile: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
8
|
+
onSelectFile: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
9
9
|
previewComponent: ({ file, onRemoveFile }: import("./FileUpload").PreviewComponentProps) => import("react").JSX.Element;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -19,7 +19,7 @@ export declare const UploadAndDownload: {
|
|
|
19
19
|
export declare const MultipleUploadAndDownload: {
|
|
20
20
|
args: {
|
|
21
21
|
multiple: true;
|
|
22
|
-
onChange: import("
|
|
22
|
+
onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
23
23
|
previewComponent: ({ file, onRemoveFile, onDownloadFile }: import("./FileUpload").PreviewComponentProps) => import("react").JSX.Element;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ToastContent, ToastOptions } from 'react-toastify';
|
|
1
|
+
import { ToastContent, ToastOptions } from 'react-toastify/unstyled';
|
|
2
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
2
3
|
import './react-toastify-custom.css';
|
|
3
4
|
export declare const setGlobalErrorMessageBoxOptions: (options: ToastOptions) => void;
|
|
4
5
|
export declare const messageBoxSuccess: (content: ToastContent, options?: ToastOptions, groupName?: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageBox.d.ts","sourceRoot":"","sources":["../../../../src/modules/messageBox/messageBox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAE,YAAY,EAAwB,MAAM,
|
|
1
|
+
{"version":3,"file":"messageBox.d.ts","sourceRoot":"","sources":["../../../../src/modules/messageBox/messageBox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAE,YAAY,EAAwB,MAAM,yBAAyB,CAAC;AAEjG,OAAO,uCAAuC,CAAC;AAC/C,OAAO,6BAA6B,CAAC;AAQrC,eAAO,MAAM,+BAA+B,GAAI,SAAS,YAAY,KAAG,IAEvE,CAAC;AAYF,eAAO,MAAM,iBAAiB,GAAI,SAAS,YAAY,EAAE,UAAU,YAAY,EAAE,YAAY,MAAM,KAAG,IAGrG,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,YAAY,EAAE,UAAU,YAAY,EAAE,YAAY,MAAM,KAAG,IAGlG,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,YAAY,EAAE,UAAU,YAAY,EAAE,YAAY,MAAM,KAAG,IAGlG,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,YAAY,EAAE,UAAU,YAAY,EAAE,YAAY,MAAM,KAAG,IAInG,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,IAAI,MAAM,KAAG,IAEpD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,WAAW,MAAM,KAAG,IAK1D,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,IAGvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,mCAE/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deviceinsight/ng-ui-components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.16.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": ["dist/"],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"scan": "npx --registry=https://registry.npmjs.org audit-ci
|
|
27
|
+
"scan": "npx --registry=https://registry.npmjs.org audit-ci@latest --low true --skip-dev --config scan-config.json5",
|
|
28
28
|
"clean": "rimraf dist",
|
|
29
29
|
"build": "npm run clean && vite build && tsc -p tsconfig.types.json",
|
|
30
30
|
"test": "vitest",
|
|
@@ -38,28 +38,28 @@
|
|
|
38
38
|
"build-storybook": "storybook build"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@deviceinsight/ng-ui-api-client": "10.
|
|
42
|
-
"@deviceinsight/ng-ui-basic-components": "7.
|
|
43
|
-
"@dnd-kit/core": "6.3.1",
|
|
44
|
-
"@dnd-kit/modifiers": "9.0.0",
|
|
45
|
-
"@dnd-kit/sortable": "10.0.0",
|
|
46
|
-
"@rc-component/slider": "1.
|
|
47
|
-
"@rc-component/tooltip": "1.4.0",
|
|
48
|
-
"@svgdotjs/svg.js": "3.2.5",
|
|
49
|
-
"classnames": "2.5.1",
|
|
50
|
-
"date-fns": "4.
|
|
51
|
-
"dayjs": "1.11.
|
|
52
|
-
"highcharts": "12.
|
|
53
|
-
"highcharts-react-official": "3.2.3",
|
|
54
|
-
"lodash": "4.18.1",
|
|
55
|
-
"nanoid": "5.1.
|
|
56
|
-
"pure-color": "1.3.0",
|
|
57
|
-
"react-colorful": "5.7.0",
|
|
58
|
-
"react-datepicker": "8.
|
|
59
|
-
"react-dropzone": "14.4.1",
|
|
60
|
-
"react-select": "5.10.2",
|
|
61
|
-
"react-select-async-paginate": "0.7.11",
|
|
62
|
-
"react-toastify": "11.1.0"
|
|
41
|
+
"@deviceinsight/ng-ui-api-client": "^10.50.0",
|
|
42
|
+
"@deviceinsight/ng-ui-basic-components": "^7.13.0",
|
|
43
|
+
"@dnd-kit/core": "^6.3.1",
|
|
44
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
45
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
46
|
+
"@rc-component/slider": "^1.1.1",
|
|
47
|
+
"@rc-component/tooltip": "^1.4.0",
|
|
48
|
+
"@svgdotjs/svg.js": "^3.2.5",
|
|
49
|
+
"classnames": "^2.5.1",
|
|
50
|
+
"date-fns": "^4.4.0",
|
|
51
|
+
"dayjs": "^1.11.21",
|
|
52
|
+
"highcharts": "^12.6.0",
|
|
53
|
+
"highcharts-react-official": "^3.2.3",
|
|
54
|
+
"lodash": "^4.18.1",
|
|
55
|
+
"nanoid": "^5.1.16",
|
|
56
|
+
"pure-color": "^1.3.0",
|
|
57
|
+
"react-colorful": "^5.7.0",
|
|
58
|
+
"react-datepicker": "^8.10.0",
|
|
59
|
+
"react-dropzone": "^14.4.1",
|
|
60
|
+
"react-select": "^5.10.2",
|
|
61
|
+
"react-select-async-paginate": "^0.7.11",
|
|
62
|
+
"react-toastify": "^11.1.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"i18next": "^25.10.10",
|
|
@@ -69,49 +69,47 @@
|
|
|
69
69
|
"react-router-dom": "^5.3.4"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@eslint/
|
|
73
|
-
"@
|
|
74
|
-
"@eslint/js": "9.39.4",
|
|
75
|
-
"@storybook/react-vite": "10.4.2",
|
|
72
|
+
"@eslint/js": "10.0.1",
|
|
73
|
+
"@storybook/react-vite": "10.4.6",
|
|
76
74
|
"@testing-library/dom": "10.4.1",
|
|
77
75
|
"@testing-library/jest-dom": "6.9.1",
|
|
78
|
-
"@testing-library/react": "16.3.
|
|
76
|
+
"@testing-library/react": "16.3.2",
|
|
79
77
|
"@testing-library/user-event": "14.6.1",
|
|
80
78
|
"@types/lodash": "4.17.24",
|
|
81
|
-
"@types/node": "22.
|
|
79
|
+
"@types/node": "22.20.0",
|
|
82
80
|
"@types/react": "19.2.17",
|
|
83
81
|
"@types/react-dom": "19.2.3",
|
|
84
82
|
"@types/react-router-dom": "5.3.3",
|
|
85
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
86
|
-
"@typescript-eslint/parser": "8.
|
|
87
|
-
"@vitejs/plugin-react": "5.
|
|
88
|
-
"eslint": "
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "8.62.0",
|
|
84
|
+
"@typescript-eslint/parser": "8.62.0",
|
|
85
|
+
"@vitejs/plugin-react": "5.2.0",
|
|
86
|
+
"eslint": "10.6.0",
|
|
89
87
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
90
|
-
"happy-dom": "20.
|
|
88
|
+
"happy-dom": "20.10.6",
|
|
91
89
|
"husky": "9.1.7",
|
|
92
90
|
"i18next": "25.10.10",
|
|
93
|
-
"lint-staged": "
|
|
94
|
-
"prettier": "3.
|
|
91
|
+
"lint-staged": "17.0.8",
|
|
92
|
+
"prettier": "3.9.1",
|
|
95
93
|
"prop-types": "15.8.1",
|
|
96
94
|
"react": "19.2.7",
|
|
97
95
|
"react-dom": "19.2.7",
|
|
98
96
|
"react-i18next": "16.6.6",
|
|
99
97
|
"react-router-dom": "5.3.4",
|
|
100
|
-
"rimraf": "6.1.
|
|
101
|
-
"storybook": "10.4.
|
|
102
|
-
"tsc-watch": "7.2.
|
|
98
|
+
"rimraf": "6.1.3",
|
|
99
|
+
"storybook": "10.4.6",
|
|
100
|
+
"tsc-watch": "7.2.1",
|
|
103
101
|
"typescript": "5.9.3",
|
|
104
|
-
"vitest": "4.
|
|
105
|
-
"eslint-plugin-storybook": "10.4.
|
|
102
|
+
"vitest": "4.1.9",
|
|
103
|
+
"eslint-plugin-storybook": "10.4.6"
|
|
106
104
|
},
|
|
107
105
|
"overrides": {
|
|
108
|
-
"follow-redirects": "1.16.0",
|
|
109
|
-
"uuid": "11.1.1",
|
|
106
|
+
"follow-redirects": "^1.16.0",
|
|
107
|
+
"uuid": "^11.1.1",
|
|
110
108
|
"ux4iot-admin-node": {
|
|
111
|
-
"form-data": "2.5.6"
|
|
109
|
+
"form-data": "^2.5.6"
|
|
112
110
|
},
|
|
113
|
-
"ws": "8.21.0",
|
|
114
|
-
"yaml": "2.9.0"
|
|
111
|
+
"ws": "^8.21.0",
|
|
112
|
+
"yaml": "^2.9.0"
|
|
115
113
|
},
|
|
116
114
|
"lint-staged": {
|
|
117
115
|
"{src/**/*.{ts,tsx},package.json,package-lock.json}": ["prettier --write"]
|
|
@@ -120,7 +118,7 @@
|
|
|
120
118
|
"extends": ["plugin:storybook/recommended"]
|
|
121
119
|
},
|
|
122
120
|
"engines": {
|
|
123
|
-
"node": "^24.
|
|
124
|
-
"npm": "^11.
|
|
121
|
+
"node": "^24.18.0",
|
|
122
|
+
"npm": "^11.16.0"
|
|
125
123
|
}
|
|
126
124
|
}
|