@deviceinsight/ng-ui-components 7.21.0 → 7.22.1
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 +137 -63
- package/dist/index.cjs +21 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -122
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/chart/Chart.d.ts +11 -3
- package/dist/types/components/chart/Chart.d.ts.map +1 -1
- package/dist/types/components/slider/RcSliderWithTooltip.d.ts.map +1 -1
- package/package.json +23 -16
package/dist/style.css
CHANGED
|
@@ -637,7 +637,7 @@ a .di.label:active {background-color:rgba(0,0,0,.1);}
|
|
|
637
637
|
margin-right: 0;
|
|
638
638
|
padding: 7px 10px;
|
|
639
639
|
}
|
|
640
|
-
|
|
640
|
+
/*$vite$:1*/.rc-tooltip.rc-tooltip-zoom-appear,
|
|
641
641
|
.rc-tooltip.rc-tooltip-zoom-enter {
|
|
642
642
|
opacity: 0;
|
|
643
643
|
}
|
|
@@ -3,6 +3,9 @@ type Item = {
|
|
|
3
3
|
label: string;
|
|
4
4
|
value: number;
|
|
5
5
|
};
|
|
6
|
+
type ChartState = {
|
|
7
|
+
titleApplied: boolean;
|
|
8
|
+
};
|
|
6
9
|
export type Props = {
|
|
7
10
|
/** 'pie' | 'column'*/
|
|
8
11
|
type: 'pie' | 'column';
|
|
@@ -24,12 +27,17 @@ export type Props = {
|
|
|
24
27
|
/**
|
|
25
28
|
* Displays the provided data in form of the column chart or pie chart.
|
|
26
29
|
*/
|
|
27
|
-
export default class Chart extends Component<Props,
|
|
28
|
-
state:
|
|
30
|
+
export default class Chart extends Component<Props, ChartState> {
|
|
31
|
+
state: ChartState;
|
|
29
32
|
chart: any;
|
|
30
33
|
ro: ResizeObserver | null | undefined;
|
|
34
|
+
titleTimeoutId: ReturnType<typeof setTimeout> | undefined;
|
|
31
35
|
componentDidMount(): void;
|
|
32
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Builds the Highcharts configuration from the props. Everything here is derived, so it is
|
|
38
|
+
* rebuilt while rendering rather than mirrored into state.
|
|
39
|
+
*/
|
|
40
|
+
buildOptions(): Record<string, any>;
|
|
33
41
|
componentWillUnmount(): void;
|
|
34
42
|
handleChart: (chart: any) => void;
|
|
35
43
|
render(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chart.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/Chart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Chart.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/Chart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AA8DhC,KAAK,IAAI,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,UAAU,GAAG;IACjB,YAAY,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IACnB,sBAAsB;IACtB,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAC;IAEvB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,uDAAuD;IACvD,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAEnB,gEAAgE;IAChE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAE3C,6BAA6B;IAC7B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAElC,cAAc;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oEAAoE;IACpE,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtE,CAAC;AAmBF;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,SAAS,CAAC,KAAK,EAAE,UAAU,CAAC;IAG9D,KAAK,EAAE,UAAU,CAAyB;IAC1C,KAAK,EAAE,GAAG,CAAQ;IAClB,EAAE,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAQ;IAC7C,cAAc,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAa;IAEtE,iBAAiB;IAMjB;;;OAGG;IACH,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAsCnC,oBAAoB;IASpB,WAAW,GAAI,OAAO,GAAG,UAMvB;IAEF,MAAM;CAcN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RcSliderWithTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/slider/RcSliderWithTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,aAAa,EAAE,EAAE,EAAgB,SAAS,EAAC,MAAM,OAAO,CAAC;AACpF,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"RcSliderWithTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/slider/RcSliderWithTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,aAAa,EAAE,EAAE,EAAgB,SAAS,EAAC,MAAM,OAAO,CAAC;AACpF,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAGtD,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAmD5C,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,cAAc,CAIpD,CAAC;AAEF,UAAU,kBAAmB,SAAQ,WAAW;IAC/C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAC5C,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,OAAO,CAAC,CAAC;CACzC;AAED,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAazC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deviceinsight/ng-ui-components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.22.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
@@ -22,11 +22,14 @@
|
|
|
22
22
|
},
|
|
23
23
|
"./style.css": "./dist/style.css"
|
|
24
24
|
},
|
|
25
|
-
"files": [
|
|
25
|
+
"files": [
|
|
26
|
+
"dist/"
|
|
27
|
+
],
|
|
26
28
|
"scripts": {
|
|
27
29
|
"scan": "npx --registry=https://registry.npmjs.org audit-ci@latest --low true --skip-dev --config scan-config.json5",
|
|
28
30
|
"clean": "rimraf dist",
|
|
29
|
-
"build": "npm run clean && vite build && tsc -p tsconfig.types.json",
|
|
31
|
+
"build": "npm run clean && vite build && npm run check:dist && tsc -p tsconfig.types.json",
|
|
32
|
+
"check:dist": "node scripts/check-dist-interop.mjs",
|
|
30
33
|
"test": "vitest",
|
|
31
34
|
"eslint": "eslint \"**/*.{ts,tsx}\"",
|
|
32
35
|
"prettier": "prettier --write \"{src/**/*.ts,src/**/*.tsx,src/**/*.mdx}\"",
|
|
@@ -38,8 +41,8 @@
|
|
|
38
41
|
"build-storybook": "storybook build"
|
|
39
42
|
},
|
|
40
43
|
"dependencies": {
|
|
41
|
-
"@deviceinsight/ng-ui-api-client": "^10.
|
|
42
|
-
"@deviceinsight/ng-ui-basic-components": "^7.
|
|
44
|
+
"@deviceinsight/ng-ui-api-client": "^10.55.0",
|
|
45
|
+
"@deviceinsight/ng-ui-basic-components": "^7.19.0",
|
|
43
46
|
"@dnd-kit/core": "^6.3.1",
|
|
44
47
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
45
48
|
"@dnd-kit/sortable": "^10.0.0",
|
|
@@ -62,23 +65,23 @@
|
|
|
62
65
|
"react-toastify": "^11.1.0"
|
|
63
66
|
},
|
|
64
67
|
"peerDependencies": {
|
|
65
|
-
"i18next": "^
|
|
68
|
+
"i18next": "^26.3.6",
|
|
66
69
|
"react": "^19.2.8",
|
|
67
70
|
"react-dom": "^19.2.8",
|
|
68
|
-
"react-i18next": "^
|
|
71
|
+
"react-i18next": "^17.0.11",
|
|
69
72
|
"react-router-dom": "^5.3.4"
|
|
70
73
|
},
|
|
71
74
|
"devDependencies": {
|
|
72
75
|
"@eslint/js": "10.0.1",
|
|
73
|
-
"@storybook/react-vite": "10.5.
|
|
76
|
+
"@storybook/react-vite": "10.5.10",
|
|
74
77
|
"@testing-library/dom": "10.4.1",
|
|
75
|
-
"@testing-library/jest-dom": "
|
|
78
|
+
"@testing-library/jest-dom": "7.0.1",
|
|
76
79
|
"@testing-library/react": "16.3.2",
|
|
77
80
|
"@testing-library/user-event": "14.6.3",
|
|
78
81
|
"@types/lodash": "4.17.25",
|
|
79
82
|
"@types/node": "24.13.3",
|
|
80
83
|
"@types/react": "19.2.18",
|
|
81
|
-
"@types/react-dom": "19.2.
|
|
84
|
+
"@types/react-dom": "19.2.5",
|
|
82
85
|
"@types/react-router-dom": "5.3.3",
|
|
83
86
|
"@typescript-eslint/eslint-plugin": "8.66.0",
|
|
84
87
|
"@typescript-eslint/parser": "8.66.0",
|
|
@@ -87,21 +90,21 @@
|
|
|
87
90
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
88
91
|
"happy-dom": "20.11.2",
|
|
89
92
|
"husky": "9.1.7",
|
|
90
|
-
"i18next": "
|
|
93
|
+
"i18next": "26.3.6",
|
|
91
94
|
"lint-staged": "17.3.0",
|
|
92
95
|
"prettier": "3.9.6",
|
|
93
96
|
"prop-types": "15.8.1",
|
|
94
97
|
"react": "19.2.8",
|
|
95
98
|
"react-dom": "19.2.8",
|
|
96
|
-
"react-i18next": "
|
|
99
|
+
"react-i18next": "17.0.11",
|
|
97
100
|
"react-router-dom": "5.3.4",
|
|
98
101
|
"rimraf": "6.1.3",
|
|
99
|
-
"storybook": "10.5.
|
|
102
|
+
"storybook": "10.5.10",
|
|
100
103
|
"tsc-watch": "7.2.1",
|
|
101
104
|
"typescript": "5.9.3",
|
|
102
105
|
"vite": "8.1.5",
|
|
103
106
|
"vitest": "4.1.10",
|
|
104
|
-
"eslint-plugin-storybook": "10.5.
|
|
107
|
+
"eslint-plugin-storybook": "10.5.10"
|
|
105
108
|
},
|
|
106
109
|
"overrides": {
|
|
107
110
|
"follow-redirects": "^1.16.0",
|
|
@@ -113,10 +116,14 @@
|
|
|
113
116
|
"yaml": "^2.9.0"
|
|
114
117
|
},
|
|
115
118
|
"lint-staged": {
|
|
116
|
-
"{src/**/*.{ts,tsx},package.json,package-lock.json}": [
|
|
119
|
+
"{src/**/*.{ts,tsx},package.json,package-lock.json}": [
|
|
120
|
+
"prettier --write"
|
|
121
|
+
]
|
|
117
122
|
},
|
|
118
123
|
"eslintConfig": {
|
|
119
|
-
"extends": [
|
|
124
|
+
"extends": [
|
|
125
|
+
"plugin:storybook/recommended"
|
|
126
|
+
]
|
|
120
127
|
},
|
|
121
128
|
"engines": {
|
|
122
129
|
"node": "^24.18.0"
|