@qrvey/utils 1.17.0-3 → 1.17.0-4
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 +28 -9849
- package/dist/charts/adapters/endpointData.d.ts +13 -2
- package/dist/charts/adapters/endpointData.js +1 -2
- package/dist/charts/adapters/endpointDataGet.d.ts +1 -1
- package/dist/charts/adapters/endpointDataGet.js +2 -2
- package/dist/charts/helpers/getChartDimensions.js +2 -2
- package/dist/cjs/charts/adapters/endpointData.js +1 -2
- package/dist/cjs/charts/adapters/endpointDataGet.js +2 -2
- package/dist/cjs/charts/helpers/getChartDimensions.js +2 -2
- package/dist/cjs/column_format/helpers/defineXYChartFormat.js +1 -1
- package/dist/cjs/dates/relative/helpers/formatStatement.js +1 -1
- package/dist/cjs/filters/adapters/flatUIToOldLogic.js +1 -2
- package/dist/cjs/filters/constants/common/FILTER_SCOPE.js +1 -0
- package/dist/cjs/filters/constants/common/FILTER_SCOPES.js +1 -0
- package/dist/cjs/filters/constants/common/FILTER_SCOPE_INFO.js +8 -0
- package/dist/cjs/filters/constants/common/FILTER_SCOPE_LABEL.js +1 -0
- package/dist/cjs/filters/constants/settings/FILTER_SETTINGS_DEFAULT.js +24 -0
- package/dist/cjs/filters/helpers/common/getVerboseFilterValues.js +1 -1
- package/dist/cjs/filters/helpers/common/mergeValues.js +1 -1
- package/dist/cjs/filters/services/Filters.api.js +1 -0
- package/dist/cjs/format/definition.js +1 -1
- package/dist/cjs/format/localization.js +2 -1
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +1 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.js +1 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_SCOPE.js +1 -0
- package/dist/cjs/qrvey/helpers/getImageUploadHasAnalysis.js +1 -6
- package/dist/cjs/themes/helpers/lightOrDark.js +1 -1
- package/dist/column_format/helpers/defineXYChartFormat.js +2 -2
- package/dist/dates/relative/helpers/formatStatement.js +1 -1
- package/dist/filters/adapters/flatUIToOldLogic.js +1 -2
- package/dist/filters/constants/common/FILTER_SCOPE.d.ts +1 -0
- package/dist/filters/constants/common/FILTER_SCOPE.js +1 -0
- package/dist/filters/constants/common/FILTER_SCOPES.js +1 -0
- package/dist/filters/constants/common/FILTER_SCOPE_INFO.js +8 -0
- package/dist/filters/constants/common/FILTER_SCOPE_LABEL.d.ts +1 -0
- package/dist/filters/constants/common/FILTER_SCOPE_LABEL.js +1 -0
- package/dist/filters/constants/settings/FILTER_SETTINGS_DEFAULT.js +24 -0
- package/dist/filters/helpers/common/getVerboseFilterValues.js +1 -1
- package/dist/filters/helpers/common/mergeValues.js +1 -1
- package/dist/filters/interfaces/settings/IFSettingsScope.d.ts +1 -0
- package/dist/filters/services/Filters.api.js +1 -0
- package/dist/format/definition.d.ts +1 -1
- package/dist/format/definition.js +1 -1
- package/dist/format/localization.js +3 -2
- package/dist/general/object/mapValues.d.ts +1 -1
- package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTitle.d.ts +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.d.ts +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterScopes.d.ts +1 -0
- package/dist/globalization/labels/filters/I18N_FILTER.js +1 -0
- package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +1 -0
- package/dist/globalization/labels/filters/I18N_FILTER_SCOPE.js +1 -0
- package/dist/qrvey/helpers/getImageUploadHasAnalysis.js +1 -6
- package/dist/themes/helpers/lightOrDark.js +1 -1
- package/package.json +31 -21
|
@@ -9,7 +9,7 @@ import { isRGBAColor } from "./isRGBAColor";
|
|
|
9
9
|
export function lightOrDark(color, brightnessThreshold = 127.5, opacityThreshold = 0.5) {
|
|
10
10
|
if (isEmpty(color) || typeof color !== "string")
|
|
11
11
|
return COLOR_TYPE.LIGHT;
|
|
12
|
-
let rgbaChannel
|
|
12
|
+
let rgbaChannel;
|
|
13
13
|
const rgbaColor = isRGBAColor(color);
|
|
14
14
|
const hexadecimalColor = isHexadecimalColor(color);
|
|
15
15
|
if (rgbaColor) {
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qrvey/utils",
|
|
3
|
-
"version": "1.17.0-
|
|
3
|
+
"version": "1.17.0-4",
|
|
4
4
|
"description": "Helper, Utils for all Qrvey Projects",
|
|
5
5
|
"homepage": "https://bitbucket.org/qrvey/qrvey_utils/wiki/Home",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "tsc --project tsconfig.build.json && tsc --project tsconfig.cjs.json",
|
|
10
|
-
"build.clean": "node ./scripts/clean-build",
|
|
11
|
-
"
|
|
12
|
-
"compodoc
|
|
10
|
+
"build.clean": "node ./scripts/install-repro && node ./scripts/clean-build",
|
|
11
|
+
"install.clean.all": "node ./scripts/clean-install",
|
|
12
|
+
"compodoc": "typedoc && node ./scripts/inject-readme-modules.js",
|
|
13
|
+
"compodoc.server": "typedoc --watch",
|
|
13
14
|
"lint": "eslint \"{src,test}/**/*.ts\" --quiet --exit-on-fatal-error",
|
|
15
|
+
"lint.warnings": "eslint \"{src,test}/**/*.ts\" --exit-on-fatal-error",
|
|
14
16
|
"lint.dev": "eslint \"{src,test}/**/*.ts\" --debug",
|
|
15
17
|
"prepare": "husky",
|
|
16
18
|
"test": "jest test --verbose",
|
|
@@ -23,6 +25,10 @@
|
|
|
23
25
|
"engines": {
|
|
24
26
|
"node": ">=20"
|
|
25
27
|
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"qrvey",
|
|
30
|
+
"utils"
|
|
31
|
+
],
|
|
26
32
|
"exports": {
|
|
27
33
|
".": {
|
|
28
34
|
"types": "./dist/index.d.ts",
|
|
@@ -37,34 +43,38 @@
|
|
|
37
43
|
}
|
|
38
44
|
},
|
|
39
45
|
"devDependencies": {
|
|
40
|
-
"
|
|
46
|
+
"auto-changelog": "2.4.0",
|
|
47
|
+
"@commitlint/cli": "20.5.0",
|
|
48
|
+
"@commitlint/config-conventional": "20.5.0",
|
|
49
|
+
"@eslint/compat": "2.0.5",
|
|
50
|
+
"@eslint/eslintrc": "3.3.5",
|
|
51
|
+
"@eslint/js": "10.0.1",
|
|
41
52
|
"@types/jest": "30.0.0",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
43
|
-
"@typescript-eslint/parser": "8.
|
|
44
|
-
"
|
|
45
|
-
"@compodoc/compodoc": "1.2.1",
|
|
46
|
-
"eslint": "9.39.4",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "8.58.2",
|
|
54
|
+
"@typescript-eslint/parser": "8.58.2",
|
|
55
|
+
"eslint": "10.2.1",
|
|
47
56
|
"eslint-config-prettier": "10.1.8",
|
|
48
57
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
49
|
-
"eslint-plugin-import": "
|
|
50
|
-
"eslint-plugin-jsdoc": "62.
|
|
58
|
+
"eslint-plugin-import-x": "4.16.2",
|
|
59
|
+
"eslint-plugin-jsdoc": "62.9.0",
|
|
51
60
|
"eslint-plugin-prettier": "5.5.5",
|
|
52
|
-
"eslint-plugin-sonarjs": "4.0.1",
|
|
53
61
|
"eslint-plugin-tree-shaking": "1.12.2",
|
|
54
62
|
"husky": "9.1.7",
|
|
55
|
-
"jest": "30.
|
|
56
|
-
"jest-environment-jsdom": "30.
|
|
57
|
-
"lint-staged": "16.
|
|
58
|
-
"prettier": "3.8.
|
|
59
|
-
"ts-jest": "29.4.
|
|
63
|
+
"jest": "30.3.0",
|
|
64
|
+
"jest-environment-jsdom": "30.3.0",
|
|
65
|
+
"lint-staged": "16.4.0",
|
|
66
|
+
"prettier": "3.8.3",
|
|
67
|
+
"ts-jest": "29.4.9",
|
|
60
68
|
"tsc-files": "1.1.4",
|
|
61
|
-
"
|
|
69
|
+
"typedoc": "0.28.19",
|
|
70
|
+
"typedoc-plugin-markdown": "4.11.0",
|
|
71
|
+
"typescript": "6.0.3"
|
|
62
72
|
},
|
|
63
73
|
"dependencies": {
|
|
64
74
|
"@stencil/store": "2.2.2",
|
|
65
75
|
"d3-format": "2.0.0",
|
|
66
|
-
"dayjs": "1.11.
|
|
67
|
-
"i18next": "
|
|
76
|
+
"dayjs": "1.11.20",
|
|
77
|
+
"i18next": "26.0.6",
|
|
68
78
|
"tslib": "2.8.1",
|
|
69
79
|
"xss": "1.0.15"
|
|
70
80
|
},
|