@gnwebsoft/ui 2.18.25 → 2.18.26
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.
|
@@ -443,7 +443,13 @@ var Component4 = function TextFieldElement(props) {
|
|
|
443
443
|
error: !!error,
|
|
444
444
|
helperText: error ? error.message : helperText,
|
|
445
445
|
inputRef: handleInputRef,
|
|
446
|
-
size: "small"
|
|
446
|
+
size: "small",
|
|
447
|
+
sx: {
|
|
448
|
+
"& .MuiInputBase-input": {
|
|
449
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
450
|
+
},
|
|
451
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
452
|
+
}
|
|
447
453
|
}
|
|
448
454
|
);
|
|
449
455
|
};
|
|
@@ -694,6 +700,7 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
694
700
|
getOptionKey: (option) => option.Value,
|
|
695
701
|
isOptionEqualToValue: (option, val) => option.Value === val.Value,
|
|
696
702
|
autoComplete: true,
|
|
703
|
+
disabled,
|
|
697
704
|
includeInputInList: true,
|
|
698
705
|
options,
|
|
699
706
|
value: selectedOption,
|
|
@@ -718,6 +725,12 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
718
725
|
params.InputProps.endAdornment
|
|
719
726
|
] })
|
|
720
727
|
}
|
|
728
|
+
},
|
|
729
|
+
sx: {
|
|
730
|
+
"& .MuiInputBase-input": {
|
|
731
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
732
|
+
},
|
|
733
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
721
734
|
}
|
|
722
735
|
}
|
|
723
736
|
),
|
|
@@ -902,6 +915,12 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
902
915
|
params.InputProps.endAdornment
|
|
903
916
|
] })
|
|
904
917
|
}
|
|
918
|
+
},
|
|
919
|
+
sx: {
|
|
920
|
+
"& .MuiInputBase-input": {
|
|
921
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
922
|
+
},
|
|
923
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
905
924
|
}
|
|
906
925
|
}
|
|
907
926
|
),
|
|
@@ -1003,7 +1022,13 @@ var Component8 = function SelectElement(props) {
|
|
|
1003
1022
|
helperText: error ? error.message : "",
|
|
1004
1023
|
placeholder,
|
|
1005
1024
|
label,
|
|
1006
|
-
variant: "outlined"
|
|
1025
|
+
variant: "outlined",
|
|
1026
|
+
sx: {
|
|
1027
|
+
"& .MuiInputBase-input": {
|
|
1028
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
1029
|
+
},
|
|
1030
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1031
|
+
}
|
|
1007
1032
|
}
|
|
1008
1033
|
)
|
|
1009
1034
|
}
|
|
@@ -1204,7 +1229,13 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1204
1229
|
helperText: error ? error.message : "",
|
|
1205
1230
|
placeholder,
|
|
1206
1231
|
label,
|
|
1207
|
-
variant: "outlined"
|
|
1232
|
+
variant: "outlined",
|
|
1233
|
+
sx: {
|
|
1234
|
+
"& .MuiInputBase-input": {
|
|
1235
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
1236
|
+
},
|
|
1237
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1238
|
+
}
|
|
1208
1239
|
}
|
|
1209
1240
|
)
|
|
1210
1241
|
}
|
|
@@ -443,7 +443,13 @@ var Component4 = function TextFieldElement(props) {
|
|
|
443
443
|
error: !!error,
|
|
444
444
|
helperText: error ? error.message : helperText,
|
|
445
445
|
inputRef: handleInputRef,
|
|
446
|
-
size: "small"
|
|
446
|
+
size: "small",
|
|
447
|
+
sx: {
|
|
448
|
+
"& .MuiInputBase-input": {
|
|
449
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
450
|
+
},
|
|
451
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
452
|
+
}
|
|
447
453
|
}
|
|
448
454
|
);
|
|
449
455
|
};
|
|
@@ -694,6 +700,7 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
694
700
|
getOptionKey: (option) => option.Value,
|
|
695
701
|
isOptionEqualToValue: (option, val) => option.Value === val.Value,
|
|
696
702
|
autoComplete: true,
|
|
703
|
+
disabled,
|
|
697
704
|
includeInputInList: true,
|
|
698
705
|
options,
|
|
699
706
|
value: selectedOption,
|
|
@@ -718,6 +725,12 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
718
725
|
params.InputProps.endAdornment
|
|
719
726
|
] })
|
|
720
727
|
}
|
|
728
|
+
},
|
|
729
|
+
sx: {
|
|
730
|
+
"& .MuiInputBase-input": {
|
|
731
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
732
|
+
},
|
|
733
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
721
734
|
}
|
|
722
735
|
}
|
|
723
736
|
),
|
|
@@ -902,6 +915,12 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
902
915
|
params.InputProps.endAdornment
|
|
903
916
|
] })
|
|
904
917
|
}
|
|
918
|
+
},
|
|
919
|
+
sx: {
|
|
920
|
+
"& .MuiInputBase-input": {
|
|
921
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
922
|
+
},
|
|
923
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
905
924
|
}
|
|
906
925
|
}
|
|
907
926
|
),
|
|
@@ -1003,7 +1022,13 @@ var Component8 = function SelectElement(props) {
|
|
|
1003
1022
|
helperText: error ? error.message : "",
|
|
1004
1023
|
placeholder,
|
|
1005
1024
|
label,
|
|
1006
|
-
variant: "outlined"
|
|
1025
|
+
variant: "outlined",
|
|
1026
|
+
sx: {
|
|
1027
|
+
"& .MuiInputBase-input": {
|
|
1028
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
1029
|
+
},
|
|
1030
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1031
|
+
}
|
|
1007
1032
|
}
|
|
1008
1033
|
)
|
|
1009
1034
|
}
|
|
@@ -1204,7 +1229,13 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1204
1229
|
helperText: error ? error.message : "",
|
|
1205
1230
|
placeholder,
|
|
1206
1231
|
label,
|
|
1207
|
-
variant: "outlined"
|
|
1232
|
+
variant: "outlined",
|
|
1233
|
+
sx: {
|
|
1234
|
+
"& .MuiInputBase-input": {
|
|
1235
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
1236
|
+
},
|
|
1237
|
+
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1238
|
+
}
|
|
1208
1239
|
}
|
|
1209
1240
|
)
|
|
1210
1241
|
}
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ require('./chunk-7M2VOCYN.js');
|
|
|
13
13
|
require('./chunk-6BGQA4BQ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkEG7YMWA5js = require('./chunk-EG7YMWA5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
@@ -1471,4 +1471,4 @@ var Field_default2 = Field2;
|
|
|
1471
1471
|
|
|
1472
1472
|
|
|
1473
1473
|
|
|
1474
|
-
exports.AuthorizedView = _chunkQA44AL2Xjs.AuthorizedView_default; exports.ClearButton = _chunkQA44AL2Xjs.ClearButton_default; exports.Field =
|
|
1474
|
+
exports.AuthorizedView = _chunkQA44AL2Xjs.AuthorizedView_default; exports.ClearButton = _chunkQA44AL2Xjs.ClearButton_default; exports.Field = _chunkEG7YMWA5js.Field_default; exports.Field2 = Field_default2; exports.FilterButton = _chunkQA44AL2Xjs.FilterButton_default; exports.FilterWrapper = _chunkQA44AL2Xjs.FilterWrapper_default; exports.FormWrapper = _chunkQA44AL2Xjs.FormWrapper_default; exports.LabelText = _chunkQA44AL2Xjs.LabelText_default; exports.ListWrapper = _chunkQA44AL2Xjs.ListWrapper_default; exports.SimpleButton = _chunkQA44AL2Xjs.SimpleButton_default; exports.SimpleToolbar = _chunkQA44AL2Xjs.SimpleToolbar_default; exports.api = _chunkDKBPCLECjs.api; exports.api2 = _chunkDKBPCLECjs.api2; exports.flattenObjectKeys = _chunkDKBPCLECjs.flattenObjectKeys; exports.getTimezone = _chunkDKBPCLECjs.getTimezone; exports.handleServerErrors = _chunkDKBPCLECjs.handleServerErrors; exports.propertyExists = _chunkDKBPCLECjs.propertyExists; exports.readValueAsDate = _chunkDKBPCLECjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkDKBPCLECjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkDKBPCLECjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
|
package/dist/index.mjs
CHANGED
package/dist/wrappers/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkEG7YMWA5js = require('../chunk-EG7YMWA5.js');
|
|
4
4
|
require('../chunk-6JZ35VQJ.js');
|
|
5
5
|
require('../chunk-DKBPCLEC.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.Field =
|
|
8
|
+
exports.Field = _chunkEG7YMWA5js.Field_default;
|
package/dist/wrappers/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@gnwebsoft/ui",
|
|
3
|
-
"version": "2.18.
|
|
4
|
-
"description": "A set of reusable wrappers for MUI v6",
|
|
5
|
-
"author": "GNWebsoft Private Limited",
|
|
6
|
-
"license": "",
|
|
7
|
-
"keywords": [
|
|
8
|
-
"MUI"
|
|
9
|
-
],
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"registry": "https://registry.npmjs.org/",
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"link:self": "pnpm link --global",
|
|
16
|
-
"package": "npm publish --access public --scope=@gnwebsoft",
|
|
17
|
-
"types": "tsup src/index.ts --sourcemap inline",
|
|
18
|
-
"clean": "rimraf ./dist/* --glob --no-verbose --no-interactive",
|
|
19
|
-
"check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
|
|
20
|
-
"build": "pnpm run clean && tsup"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist"
|
|
24
|
-
],
|
|
25
|
-
"packageManager": "pnpm@10.11.0",
|
|
26
|
-
"engines": {
|
|
27
|
-
"node": ">=22.0.0"
|
|
28
|
-
},
|
|
29
|
-
"exports": {
|
|
30
|
-
".": {
|
|
31
|
-
"import": "./dist/index.mjs",
|
|
32
|
-
"require": "./dist/index.js"
|
|
33
|
-
},
|
|
34
|
-
"./components": {
|
|
35
|
-
"import": "./dist/components/index.mjs",
|
|
36
|
-
"require": "./dist/components/index.js"
|
|
37
|
-
},
|
|
38
|
-
"./hooks": {
|
|
39
|
-
"import": "./dist/hooks/index.mjs",
|
|
40
|
-
"require": "./dist/hooks/index.js"
|
|
41
|
-
},
|
|
42
|
-
"./types": {
|
|
43
|
-
"import": "./dist/types/index.mjs",
|
|
44
|
-
"require": "./dist/types/index.js"
|
|
45
|
-
},
|
|
46
|
-
"./utils": {
|
|
47
|
-
"import": "./dist/utils/index.mjs",
|
|
48
|
-
"require": "./dist/utils/index.js"
|
|
49
|
-
},
|
|
50
|
-
"./wrappers": {
|
|
51
|
-
"import": "./dist/wrappers/index.mjs",
|
|
52
|
-
"require": "./dist/wrappers/index.js"
|
|
53
|
-
},
|
|
54
|
-
"./wrappers2": {
|
|
55
|
-
"import": "./dist/wrappers2/index.mjs",
|
|
56
|
-
"require": "./dist/wrappers2/index.js"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"@arethetypeswrong/cli": "^0.17.2",
|
|
61
|
-
"@types/autosuggest-highlight": "^3.2.3",
|
|
62
|
-
"@types/lodash": "^4.17.13",
|
|
63
|
-
"@types/node": "22.10.3",
|
|
64
|
-
"@types/react": "^18.3.18",
|
|
65
|
-
"@types/react-dom": "^18.3.5",
|
|
66
|
-
"rimraf": "^6.0.1",
|
|
67
|
-
"tslib": "^2.8.1",
|
|
68
|
-
"tsup": "^8.4.0"
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"@emotion/cache": "^11.14.0",
|
|
72
|
-
"@emotion/react": "^11.14.0",
|
|
73
|
-
"@emotion/styled": "^11.14.0",
|
|
74
|
-
"@fontsource/roboto": "^5.1.1",
|
|
75
|
-
"@hookform/resolvers": "^3.9.1",
|
|
76
|
-
"@mui/icons-material": "^6.4.11",
|
|
77
|
-
"@mui/lab": "^6.0.0-beta.21",
|
|
78
|
-
"@mui/material": "6.4.11",
|
|
79
|
-
"@mui/x-data-grid": "^7.23.5",
|
|
80
|
-
"@mui/x-date-pickers": "^7.28.3",
|
|
81
|
-
"@mui/x-tree-view": "^7.23.2",
|
|
82
|
-
"autosuggest-highlight": "^3.3.4",
|
|
83
|
-
"axios": "^1.8.4",
|
|
84
|
-
"dayjs": "^1.11.13",
|
|
85
|
-
"es-toolkit": "^1.31.0",
|
|
86
|
-
"lodash": "^4.17.21",
|
|
87
|
-
"react": "^18.3.1",
|
|
88
|
-
"react-dom": "^18.3.1",
|
|
89
|
-
"react-hook-form": "^7.54.2",
|
|
90
|
-
"react-router-dom": "^7.1.1",
|
|
91
|
-
"sonner": "1.5.0",
|
|
92
|
-
"typescript": "5.8.3",
|
|
93
|
-
"zod": "^3.24.1",
|
|
94
|
-
"zustand": "^5.0.2"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@gnwebsoft/ui",
|
|
3
|
+
"version": "2.18.26",
|
|
4
|
+
"description": "A set of reusable wrappers for MUI v6",
|
|
5
|
+
"author": "GNWebsoft Private Limited",
|
|
6
|
+
"license": "",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"MUI"
|
|
9
|
+
],
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"registry": "https://registry.npmjs.org/",
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"link:self": "pnpm link --global",
|
|
16
|
+
"package": "npm publish --access public --scope=@gnwebsoft",
|
|
17
|
+
"types": "tsup src/index.ts --sourcemap inline",
|
|
18
|
+
"clean": "rimraf ./dist/* --glob --no-verbose --no-interactive",
|
|
19
|
+
"check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
|
|
20
|
+
"build": "pnpm run clean && tsup"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"packageManager": "pnpm@10.11.0",
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=22.0.0"
|
|
28
|
+
},
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"import": "./dist/index.mjs",
|
|
32
|
+
"require": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./components": {
|
|
35
|
+
"import": "./dist/components/index.mjs",
|
|
36
|
+
"require": "./dist/components/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./hooks": {
|
|
39
|
+
"import": "./dist/hooks/index.mjs",
|
|
40
|
+
"require": "./dist/hooks/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./types": {
|
|
43
|
+
"import": "./dist/types/index.mjs",
|
|
44
|
+
"require": "./dist/types/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./utils": {
|
|
47
|
+
"import": "./dist/utils/index.mjs",
|
|
48
|
+
"require": "./dist/utils/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./wrappers": {
|
|
51
|
+
"import": "./dist/wrappers/index.mjs",
|
|
52
|
+
"require": "./dist/wrappers/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./wrappers2": {
|
|
55
|
+
"import": "./dist/wrappers2/index.mjs",
|
|
56
|
+
"require": "./dist/wrappers2/index.js"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@arethetypeswrong/cli": "^0.17.2",
|
|
61
|
+
"@types/autosuggest-highlight": "^3.2.3",
|
|
62
|
+
"@types/lodash": "^4.17.13",
|
|
63
|
+
"@types/node": "22.10.3",
|
|
64
|
+
"@types/react": "^18.3.18",
|
|
65
|
+
"@types/react-dom": "^18.3.5",
|
|
66
|
+
"rimraf": "^6.0.1",
|
|
67
|
+
"tslib": "^2.8.1",
|
|
68
|
+
"tsup": "^8.4.0"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"@emotion/cache": "^11.14.0",
|
|
72
|
+
"@emotion/react": "^11.14.0",
|
|
73
|
+
"@emotion/styled": "^11.14.0",
|
|
74
|
+
"@fontsource/roboto": "^5.1.1",
|
|
75
|
+
"@hookform/resolvers": "^3.9.1",
|
|
76
|
+
"@mui/icons-material": "^6.4.11",
|
|
77
|
+
"@mui/lab": "^6.0.0-beta.21",
|
|
78
|
+
"@mui/material": "6.4.11",
|
|
79
|
+
"@mui/x-data-grid": "^7.23.5",
|
|
80
|
+
"@mui/x-date-pickers": "^7.28.3",
|
|
81
|
+
"@mui/x-tree-view": "^7.23.2",
|
|
82
|
+
"autosuggest-highlight": "^3.3.4",
|
|
83
|
+
"axios": "^1.8.4",
|
|
84
|
+
"dayjs": "^1.11.13",
|
|
85
|
+
"es-toolkit": "^1.31.0",
|
|
86
|
+
"lodash": "^4.17.21",
|
|
87
|
+
"react": "^18.3.1",
|
|
88
|
+
"react-dom": "^18.3.1",
|
|
89
|
+
"react-hook-form": "^7.54.2",
|
|
90
|
+
"react-router-dom": "^7.1.1",
|
|
91
|
+
"sonner": "1.5.0",
|
|
92
|
+
"typescript": "5.8.3",
|
|
93
|
+
"zod": "^3.24.1",
|
|
94
|
+
"zustand": "^5.0.2"
|
|
95
|
+
}
|
|
96
|
+
}
|