@dashadmin/dash-components 1.3.25 → 1.3.28
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 +35 -0
- package/dist/components/AuditLog/AuditLog.js +345 -1
- package/dist/components/AuditLog/index.js +4 -1
- package/dist/components/AutoCompleteArrayInput/AutoCompleteCheckBoxInput.js +630 -3
- package/dist/components/AutoCompleteArrayInput/AutocompleteCheckBoxArrayInput.js +53 -1
- package/dist/components/AutoCompleteArrayInputAutoSearch/AutoCompleteCheckBoxInput.js +647 -3
- package/dist/components/AutoCompleteArrayInputAutoSearch/AutocompleteCheckBoxArrayInput.js +53 -1
- package/dist/components/Json/Json.js +235 -1
- package/dist/components/JsonColorSelector/JsonColorSelector.js +1172 -1
- package/dist/components/JsonColorSelector/JsonColorSelectorEnhanced.js +863 -2
- package/dist/components/JsonColorSelector/JsonCssVarValues.js +738 -1
- package/dist/components/JsonColorSelector/components/ColorEditDialog.js +426 -1
- package/dist/components/JsonColorSelector/components/ColorPaletteItem.js +75 -1
- package/dist/components/JsonColorSelector/components/ImageColorExtractor.js +283 -1
- package/dist/components/JsonColorSelector/helpers/functions.js +101 -1
- package/dist/components/JsonColorSelector/useAsyncColorThief.js +105 -1
- package/dist/components/ListActive/ListActive.js +126 -1
- package/dist/components/ListActive/ListBoolean.js +124 -1
- package/dist/components/NotificationPreferences/NotificationPreferences.js +317 -1
- package/dist/components/NotificationPreferences/index.js +7 -1
- package/dist/components/SearchableSelects/RASearchableSelect.js +236 -1
- package/dist/components/SearchableSelects/RASearchableSelectCheckboxes.js +479 -1
- package/dist/components/SearchableSelects/RASearchableSelectChips.js +465 -1
- package/dist/components/SearchableSelects/RASearchableSelectChipsRecordContext.js +295 -1
- package/dist/components/SearchableSelects/SearchableSelect.js +202 -1
- package/dist/components/SearchableSelects/SearchableSelectCheckboxes.js +290 -1
- package/dist/components/SortableDataGrid/SortableDataGrid.js +72 -1
- package/dist/components/SortableDataGrid/SortableDataGridBody.js +167 -1
- package/dist/components/SortableDataGrid/SortableDataGridHeader.js +109 -1
- package/dist/components/SortableDataGrid/SortableDataGridRow.js +283 -1
- package/dist/components/Upload/SingleImageUploader.js +40 -1
- package/dist/components/custom/PackageCopyMethod.js +78 -1
- package/dist/components/custom/PackageRadioButtonGroup.js +45 -1
- package/dist/components/dialog/Basic.js +8 -1
- package/dist/components/dialog/Correct.js +14 -1
- package/dist/components/dialog/Error.js +14 -1
- package/dist/components/dialog/Info.js +14 -1
- package/dist/components/dialog/InfoV2.js +21 -1
- package/dist/components/dialog/NotFound.js +14 -1
- package/dist/components/dialog/QuickSearch.js +117 -1
- package/dist/components/notifications/NotificationsCenter.js +597 -1
- package/dist/components/notifications/index.js +24 -1
- package/dist/components/tables/PaginationComponent.js +36 -1
- package/dist/components/theme/AppLoadingFallback.js +38 -2
- package/dist/components/theme/ErrorBoundary.js +52 -1
- package/dist/components/theme/InitialLoader.js +13 -1
- package/dist/components/theme/NotFound.js +136 -1
- package/dist/components/theme/NotResults.js +38 -1
- package/dist/hooks/useDraggable.js +6 -1
- package/dist/hooks/useNotifications.js +8 -1
- package/dist/hooks/useQuickSearch.js +26 -1
- package/dist/index.js +66 -5567
- package/dist/utils/setNativeValue.js +17 -1
- package/package.json +148 -132
- package/src/components/AuditLog/AuditLog.tsx +476 -0
- package/src/components/AuditLog/index.ts +2 -0
- package/src/components/AutoCompleteArrayInput/AutoCompleteCheckBoxInput.tsx +917 -0
- package/src/components/AutoCompleteArrayInput/AutocompleteCheckBoxArrayInput.tsx +39 -0
- package/src/components/AutoCompleteArrayInputAutoSearch/AutoCompleteCheckBoxInput.tsx +916 -0
- package/src/components/AutoCompleteArrayInputAutoSearch/AutocompleteCheckBoxArrayInput.tsx +44 -0
- package/src/components/Json/Json.tsx +312 -0
- package/src/components/JsonColorSelector/JsonColorSelector.tsx +1435 -0
- package/src/components/JsonColorSelector/JsonColorSelectorEnhanced.tsx +1029 -0
- package/src/components/JsonColorSelector/JsonCssVarValues.tsx +863 -0
- package/src/components/JsonColorSelector/components/ColorEditDialog.tsx +491 -0
- package/src/components/JsonColorSelector/components/ColorPaletteItem.tsx +80 -0
- package/src/components/JsonColorSelector/components/ImageColorExtractor.tsx +328 -0
- package/src/components/JsonColorSelector/helpers/functions.tsx +123 -0
- package/src/components/JsonColorSelector/interfaces/interfaces.tsx +22 -0
- package/src/components/JsonColorSelector/useAsyncColorThief.tsx +97 -0
- package/src/components/ListActive/ListActive.tsx +106 -0
- package/src/components/ListActive/ListBoolean.tsx +96 -0
- package/src/components/NotificationPreferences/NotificationPreferences.tsx +463 -0
- package/src/components/NotificationPreferences/index.tsx +2 -0
- package/src/components/SearchableSelects/RASearchableSelect.tsx +300 -0
- package/src/components/SearchableSelects/RASearchableSelectCheckboxes.tsx +604 -0
- package/src/components/SearchableSelects/RASearchableSelectChips.tsx +558 -0
- package/src/components/SearchableSelects/RASearchableSelectChipsRecordContext.tsx +362 -0
- package/src/components/SearchableSelects/SearchableSelect.tsx +321 -0
- package/src/components/SearchableSelects/SearchableSelectCheckboxes.tsx +355 -0
- package/src/components/SortableDataGrid/SortableDataGrid.tsx +56 -0
- package/src/components/SortableDataGrid/SortableDataGridBody.tsx +175 -0
- package/src/components/SortableDataGrid/SortableDataGridHeader.tsx +171 -0
- package/src/components/SortableDataGrid/SortableDataGridRow.tsx +247 -0
- package/src/components/Upload/SingleImageUploader.tsx +55 -0
- package/src/components/custom/PackageCopyMethod.tsx +109 -0
- package/src/components/custom/PackageRadioButtonGroup.tsx +47 -0
- package/src/components/dialog/Basic.tsx +11 -0
- package/src/components/dialog/Correct.tsx +16 -0
- package/src/components/dialog/Error.tsx +15 -0
- package/src/components/dialog/Info.tsx +15 -0
- package/src/components/dialog/InfoV2.tsx +35 -0
- package/src/components/dialog/NotFound.tsx +18 -0
- package/src/components/dialog/QuickSearch.tsx +115 -0
- package/src/components/notifications/NotificationsCenter.tsx +792 -0
- package/src/components/notifications/index.ts +42 -0
- package/src/components/tables/PaginationComponent.tsx +17 -0
- package/src/components/theme/AppLoadingFallback.tsx +42 -0
- package/src/components/theme/ErrorBoundary.tsx +57 -0
- package/src/components/theme/InitialLoader.tsx +16 -0
- package/src/components/theme/NotFound.tsx +124 -0
- package/src/components/theme/NotResults.tsx +54 -0
- package/src/hooks/useDraggable.ts +11 -0
- package/src/hooks/useNotifications.ts +14 -0
- package/src/hooks/useQuickSearch.tsx +29 -0
- package/src/index.tsx +77 -0
- package/src/utils/setNativeValue.tsx +23 -0
- package/dist/color-thief-CTwGFhOB.js +0 -272
- /package/{dist → src}/components/AutoCompleteArrayInputAutoSearch/AutocompleteCheckBoxArrayAutoSearch.tsx.wip +0 -0
- /package/{dist → src}/components/JsonColorSelector/JsonColorSelector.tsx.bkup +0 -0
- /package/{dist → src}/components/SortableDataGrid/README.md +0 -0
- /package/{dist → src}/styles/index.less +0 -0
|
@@ -1 +1,17 @@
|
|
|
1
|
-
const
|
|
1
|
+
const setNativeValue = (element, value) => {
|
|
2
|
+
if (!element) {
|
|
3
|
+
return;
|
|
4
|
+
}
|
|
5
|
+
let lastValue = element.value;
|
|
6
|
+
element.value = value;
|
|
7
|
+
let event = new Event("input", { target: element, bubbles: true });
|
|
8
|
+
let tracker = element._valueTracker;
|
|
9
|
+
if (tracker) {
|
|
10
|
+
tracker.setValue(lastValue);
|
|
11
|
+
}
|
|
12
|
+
element.dispatchEvent(event);
|
|
13
|
+
};
|
|
14
|
+
var setNativeValue_default = setNativeValue;
|
|
15
|
+
export {
|
|
16
|
+
setNativeValue_default as default
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -1,133 +1,149 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
2
|
+
"name": "@dashadmin/dash-components",
|
|
3
|
+
"version": "1.3.28",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"lint": "eslint --ext .ts,.tsx .",
|
|
8
|
+
"format": "pnpm prettier --write . && pnpm format-check && pnpm lint",
|
|
9
|
+
"lint:check": "pnpm prettier --check .",
|
|
10
|
+
"lint:fix": "pnpm prettier --write .",
|
|
11
|
+
"check-updates": "pnpm npm-check-updates",
|
|
12
|
+
"updates-packages": "pnpm npm-check-updates -u",
|
|
13
|
+
"build": "tsup"
|
|
14
|
+
},
|
|
15
|
+
"browserslist": {
|
|
16
|
+
"production": [
|
|
17
|
+
">0.2%",
|
|
18
|
+
"not dead",
|
|
19
|
+
"not op_mini all"
|
|
20
|
+
],
|
|
21
|
+
"development": [
|
|
22
|
+
"last 1 chrome version",
|
|
23
|
+
"last 1 firefox version",
|
|
24
|
+
"last 1 safari version"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@emotion/react": "latest",
|
|
29
|
+
"@emotion/styled": "latest",
|
|
30
|
+
"@hello-pangea/dnd": "^18.0.1",
|
|
31
|
+
"@mui/material": "^7.3.10",
|
|
32
|
+
"@rollup/plugin-alias": "latest",
|
|
33
|
+
"@rollup/plugin-commonjs": "latest",
|
|
34
|
+
"@rollup/plugin-node-resolve": "latest",
|
|
35
|
+
"@rollup/plugin-replace": "latest",
|
|
36
|
+
"@rollup/plugin-typescript": "latest",
|
|
37
|
+
"@dashadmin/dash-auto-admin": "workspace:*",
|
|
38
|
+
"@dashadmin/dash-dialog": "workspace:*",
|
|
39
|
+
"@dashadmin/dash-modal": "workspace:*",
|
|
40
|
+
"@dashadmin/dash-utils": "workspace:*",
|
|
41
|
+
"numeral": "^2.0.6",
|
|
42
|
+
"react-number-format": "^5.4.4",
|
|
43
|
+
"@dashadmin/dash-auth": "workspace:*",
|
|
44
|
+
"@dashadmin/dash-admin-state": "workspace:*",
|
|
45
|
+
"@dashadmin/dash-axios-hook": "workspace:*",
|
|
46
|
+
"@dashadmin/dash-interfaces": "workspace:*",
|
|
47
|
+
"@dashadmin/dash-styles": "workspace:*",
|
|
48
|
+
"query-string": "latest",
|
|
49
|
+
"react-admin": "5.14.6",
|
|
50
|
+
"react-color": "^2.19.3",
|
|
51
|
+
"react-custom-scrollbars-2": "latest",
|
|
52
|
+
"react-hook-form": "latest",
|
|
53
|
+
"react-loading-overlay-ts": "latest",
|
|
54
|
+
"react-query": "latest",
|
|
55
|
+
"react-redux": "latest",
|
|
56
|
+
"react-router": "^7.9.6",
|
|
57
|
+
"react-router-dom": "^7.9.6",
|
|
58
|
+
"react-spinners": "latest",
|
|
59
|
+
"react-toastify": "latest",
|
|
60
|
+
"rollup-plugin-cleaner": "latest",
|
|
61
|
+
"rollup-plugin-dts": "latest",
|
|
62
|
+
"rollup-plugin-peer-deps-external": "latest",
|
|
63
|
+
"rollup-plugin-svg": "latest"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@babel/core": "latest",
|
|
67
|
+
"@babel/preset-env": "latest",
|
|
68
|
+
"@babel/preset-react": "latest",
|
|
69
|
+
"@babel/preset-typescript": "latest",
|
|
70
|
+
"@commitlint/config-conventional": "latest",
|
|
71
|
+
"@types/node": "latest",
|
|
72
|
+
"@types/react": "latest",
|
|
73
|
+
"@types/react-dom": "latest",
|
|
74
|
+
"@zerollup/ts-transform-paths": "latest",
|
|
75
|
+
"babel-loader": "latest",
|
|
76
|
+
"@dashadmin/dash-eslint": "workspace:*",
|
|
77
|
+
"@dashadmin/dash-tsconfig": "workspace:*",
|
|
78
|
+
"eslint": "latest",
|
|
79
|
+
"eslint-config-airbnb": "latest",
|
|
80
|
+
"eslint-config-airbnb-typescript": "latest",
|
|
81
|
+
"eslint-config-prettier": "latest",
|
|
82
|
+
"eslint-import-resolver-typescript": "latest",
|
|
83
|
+
"eslint-plugin-html": "latest",
|
|
84
|
+
"eslint-plugin-import": "latest",
|
|
85
|
+
"eslint-plugin-jsdoc": "latest",
|
|
86
|
+
"eslint-plugin-json": "latest",
|
|
87
|
+
"eslint-plugin-jsx-a11y": "latest",
|
|
88
|
+
"eslint-plugin-prettier": "latest",
|
|
89
|
+
"eslint-plugin-react": "latest",
|
|
90
|
+
"eslint-plugin-react-hooks": "latest",
|
|
91
|
+
"eslint-plugin-storybook": "latest",
|
|
92
|
+
"@dashadmin/dash-prettier": "workspace:*",
|
|
93
|
+
"query-string": "latest",
|
|
94
|
+
"react-dom": "latest",
|
|
95
|
+
"rollup": "latest",
|
|
96
|
+
"rollup-plugin-copy-assets": "latest",
|
|
97
|
+
"rollup-plugin-external-globals": "latest",
|
|
98
|
+
"rollup-plugin-includepaths": "latest",
|
|
99
|
+
"rollup-plugin-less": "latest",
|
|
100
|
+
"rollup-plugin-node-resolve": "latest",
|
|
101
|
+
"rollup-plugin-postcss": "latest",
|
|
102
|
+
"rollup-plugin-sourcemaps": "latest",
|
|
103
|
+
"rollup-plugin-typescript2": "latest",
|
|
104
|
+
"tsc": "latest",
|
|
105
|
+
"tsc-alias": "latest",
|
|
106
|
+
"typescript": "latest"
|
|
107
|
+
},
|
|
108
|
+
"peerDependencies": {
|
|
109
|
+
"react": "latest",
|
|
110
|
+
"react-custom-scrollbars-2": "^4.5.0",
|
|
111
|
+
"react-dom": "latest"
|
|
112
|
+
},
|
|
113
|
+
"eslintConfig": {
|
|
114
|
+
"extends": "react-app"
|
|
115
|
+
},
|
|
116
|
+
"module": "dist/index.js",
|
|
117
|
+
"types": "./src/index.tsx",
|
|
118
|
+
"exports": {
|
|
119
|
+
".": "./dist/index.js",
|
|
120
|
+
"./components/AuditLog": "./dist/components/AuditLog/index.js",
|
|
121
|
+
"./src/components/AuditLog": "./dist/components/AuditLog/index.js",
|
|
122
|
+
"./components/NotificationPreferences": "./dist/components/NotificationPreferences/index.js",
|
|
123
|
+
"./src/components/NotificationPreferences": "./dist/components/NotificationPreferences/index.js",
|
|
124
|
+
"./components/notifications": "./dist/components/notifications/index.js",
|
|
125
|
+
"./src/components/notifications": "./dist/components/notifications/index.js",
|
|
126
|
+
"./*": "./dist/*.js",
|
|
127
|
+
"./src/*": "./dist/*.js"
|
|
128
|
+
},
|
|
129
|
+
"publishConfig": {
|
|
130
|
+
"access": "public",
|
|
131
|
+
"registry": "https://registry.npmjs.org"
|
|
132
|
+
},
|
|
133
|
+
"files": [
|
|
134
|
+
"dist",
|
|
135
|
+
"src"
|
|
136
|
+
],
|
|
137
|
+
"typesVersions": {
|
|
138
|
+
"*": {
|
|
139
|
+
"src/*": [
|
|
140
|
+
"src/*",
|
|
141
|
+
"src/*/index"
|
|
142
|
+
],
|
|
143
|
+
"*": [
|
|
144
|
+
"src/*",
|
|
145
|
+
"src/*/index"
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|