@natoora-libs/core 0.2.27 → 0.2.29
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/chunk-3UDYWCV6.js +67 -0
- package/dist/chunk-3UDYWCV6.js.map +1 -0
- package/dist/components/index.cjs +91 -29
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +47 -31
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/utils/index.cjs +49 -2
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +13 -1
- package/dist/utils/index.d.ts +13 -1
- package/dist/utils/index.js +5 -3
- package/package.json +3 -3
- package/dist/chunk-N3IUZVB7.js +0 -21
- package/dist/chunk-N3IUZVB7.js.map +0 -1
package/dist/components/index.js
CHANGED
|
@@ -7,16 +7,17 @@ import {
|
|
|
7
7
|
isDarkModeEnabled
|
|
8
8
|
} from "../chunk-CKW5LT7K.js";
|
|
9
9
|
import {
|
|
10
|
-
getFlattenedFiltersLabels
|
|
11
|
-
|
|
10
|
+
getFlattenedFiltersLabels,
|
|
11
|
+
getSelectOptionFromKeyPress
|
|
12
|
+
} from "../chunk-3UDYWCV6.js";
|
|
12
13
|
import {
|
|
13
14
|
__commonJS,
|
|
14
15
|
__toESM
|
|
15
16
|
} from "../chunk-5WRI5ZAA.js";
|
|
16
17
|
|
|
17
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
18
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js
|
|
18
19
|
var require_isObject = __commonJS({
|
|
19
|
-
"../node_modules/.pnpm/lodash@4.
|
|
20
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js"(exports, module) {
|
|
20
21
|
function isObject(value) {
|
|
21
22
|
var type = typeof value;
|
|
22
23
|
return value != null && (type == "object" || type == "function");
|
|
@@ -25,17 +26,17 @@ var require_isObject = __commonJS({
|
|
|
25
26
|
}
|
|
26
27
|
});
|
|
27
28
|
|
|
28
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
29
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js
|
|
29
30
|
var require_freeGlobal = __commonJS({
|
|
30
|
-
"../node_modules/.pnpm/lodash@4.
|
|
31
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js"(exports, module) {
|
|
31
32
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
32
33
|
module.exports = freeGlobal;
|
|
33
34
|
}
|
|
34
35
|
});
|
|
35
36
|
|
|
36
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
37
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js
|
|
37
38
|
var require_root = __commonJS({
|
|
38
|
-
"../node_modules/.pnpm/lodash@4.
|
|
39
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js"(exports, module) {
|
|
39
40
|
var freeGlobal = require_freeGlobal();
|
|
40
41
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
41
42
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
@@ -43,9 +44,9 @@ var require_root = __commonJS({
|
|
|
43
44
|
}
|
|
44
45
|
});
|
|
45
46
|
|
|
46
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
47
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/now.js
|
|
47
48
|
var require_now = __commonJS({
|
|
48
|
-
"../node_modules/.pnpm/lodash@4.
|
|
49
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/now.js"(exports, module) {
|
|
49
50
|
var root = require_root();
|
|
50
51
|
var now = function() {
|
|
51
52
|
return root.Date.now();
|
|
@@ -54,9 +55,9 @@ var require_now = __commonJS({
|
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
|
|
57
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
58
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_trimmedEndIndex.js
|
|
58
59
|
var require_trimmedEndIndex = __commonJS({
|
|
59
|
-
"../node_modules/.pnpm/lodash@4.
|
|
60
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_trimmedEndIndex.js"(exports, module) {
|
|
60
61
|
var reWhitespace = /\s/;
|
|
61
62
|
function trimmedEndIndex(string) {
|
|
62
63
|
var index = string.length;
|
|
@@ -68,9 +69,9 @@ var require_trimmedEndIndex = __commonJS({
|
|
|
68
69
|
}
|
|
69
70
|
});
|
|
70
71
|
|
|
71
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
72
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTrim.js
|
|
72
73
|
var require_baseTrim = __commonJS({
|
|
73
|
-
"../node_modules/.pnpm/lodash@4.
|
|
74
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTrim.js"(exports, module) {
|
|
74
75
|
var trimmedEndIndex = require_trimmedEndIndex();
|
|
75
76
|
var reTrimStart = /^\s+/;
|
|
76
77
|
function baseTrim(string) {
|
|
@@ -80,18 +81,18 @@ var require_baseTrim = __commonJS({
|
|
|
80
81
|
}
|
|
81
82
|
});
|
|
82
83
|
|
|
83
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
84
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js
|
|
84
85
|
var require_Symbol = __commonJS({
|
|
85
|
-
"../node_modules/.pnpm/lodash@4.
|
|
86
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js"(exports, module) {
|
|
86
87
|
var root = require_root();
|
|
87
88
|
var Symbol = root.Symbol;
|
|
88
89
|
module.exports = Symbol;
|
|
89
90
|
}
|
|
90
91
|
});
|
|
91
92
|
|
|
92
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
93
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js
|
|
93
94
|
var require_getRawTag = __commonJS({
|
|
94
|
-
"../node_modules/.pnpm/lodash@4.
|
|
95
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js"(exports, module) {
|
|
95
96
|
var Symbol = require_Symbol();
|
|
96
97
|
var objectProto = Object.prototype;
|
|
97
98
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
@@ -118,9 +119,9 @@ var require_getRawTag = __commonJS({
|
|
|
118
119
|
}
|
|
119
120
|
});
|
|
120
121
|
|
|
121
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
122
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js
|
|
122
123
|
var require_objectToString = __commonJS({
|
|
123
|
-
"../node_modules/.pnpm/lodash@4.
|
|
124
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js"(exports, module) {
|
|
124
125
|
var objectProto = Object.prototype;
|
|
125
126
|
var nativeObjectToString = objectProto.toString;
|
|
126
127
|
function objectToString(value) {
|
|
@@ -130,9 +131,9 @@ var require_objectToString = __commonJS({
|
|
|
130
131
|
}
|
|
131
132
|
});
|
|
132
133
|
|
|
133
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
134
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js
|
|
134
135
|
var require_baseGetTag = __commonJS({
|
|
135
|
-
"../node_modules/.pnpm/lodash@4.
|
|
136
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js"(exports, module) {
|
|
136
137
|
var Symbol = require_Symbol();
|
|
137
138
|
var getRawTag = require_getRawTag();
|
|
138
139
|
var objectToString = require_objectToString();
|
|
@@ -149,9 +150,9 @@ var require_baseGetTag = __commonJS({
|
|
|
149
150
|
}
|
|
150
151
|
});
|
|
151
152
|
|
|
152
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
153
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js
|
|
153
154
|
var require_isObjectLike = __commonJS({
|
|
154
|
-
"../node_modules/.pnpm/lodash@4.
|
|
155
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js"(exports, module) {
|
|
155
156
|
function isObjectLike(value) {
|
|
156
157
|
return value != null && typeof value == "object";
|
|
157
158
|
}
|
|
@@ -159,9 +160,9 @@ var require_isObjectLike = __commonJS({
|
|
|
159
160
|
}
|
|
160
161
|
});
|
|
161
162
|
|
|
162
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
163
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSymbol.js
|
|
163
164
|
var require_isSymbol = __commonJS({
|
|
164
|
-
"../node_modules/.pnpm/lodash@4.
|
|
165
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSymbol.js"(exports, module) {
|
|
165
166
|
var baseGetTag = require_baseGetTag();
|
|
166
167
|
var isObjectLike = require_isObjectLike();
|
|
167
168
|
var symbolTag = "[object Symbol]";
|
|
@@ -172,9 +173,9 @@ var require_isSymbol = __commonJS({
|
|
|
172
173
|
}
|
|
173
174
|
});
|
|
174
175
|
|
|
175
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
176
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toNumber.js
|
|
176
177
|
var require_toNumber = __commonJS({
|
|
177
|
-
"../node_modules/.pnpm/lodash@4.
|
|
178
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toNumber.js"(exports, module) {
|
|
178
179
|
var baseTrim = require_baseTrim();
|
|
179
180
|
var isObject = require_isObject();
|
|
180
181
|
var isSymbol = require_isSymbol();
|
|
@@ -205,9 +206,9 @@ var require_toNumber = __commonJS({
|
|
|
205
206
|
}
|
|
206
207
|
});
|
|
207
208
|
|
|
208
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
209
|
+
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/debounce.js
|
|
209
210
|
var require_debounce = __commonJS({
|
|
210
|
-
"../node_modules/.pnpm/lodash@4.
|
|
211
|
+
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/debounce.js"(exports, module) {
|
|
211
212
|
var isObject = require_isObject();
|
|
212
213
|
var now = require_now();
|
|
213
214
|
var toNumber = require_toNumber();
|
|
@@ -736,6 +737,20 @@ var SmartSelect = forwardRef(
|
|
|
736
737
|
onChange(selectedOption);
|
|
737
738
|
}
|
|
738
739
|
};
|
|
740
|
+
const handleKeyDown = (event) => {
|
|
741
|
+
if (event.ctrlKey || event.altKey || event.metaKey) {
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
const nextOption = getSelectOptionFromKeyPress({
|
|
745
|
+
key: event.key,
|
|
746
|
+
options: visibleOptions,
|
|
747
|
+
currentValue: value
|
|
748
|
+
});
|
|
749
|
+
if (nextOption) {
|
|
750
|
+
event.preventDefault();
|
|
751
|
+
onChange(nextOption);
|
|
752
|
+
}
|
|
753
|
+
};
|
|
739
754
|
const renderMenuContent = () => {
|
|
740
755
|
if (isFetching) {
|
|
741
756
|
return [
|
|
@@ -808,6 +823,7 @@ var SmartSelect = forwardRef(
|
|
|
808
823
|
value: value ?? "",
|
|
809
824
|
onChange: handleChange,
|
|
810
825
|
onOpen: handleOpen,
|
|
826
|
+
onKeyDown: handleKeyDown,
|
|
811
827
|
label: inputLabel,
|
|
812
828
|
MenuProps: menuProps,
|
|
813
829
|
children: renderMenuContent()
|
|
@@ -1389,7 +1405,7 @@ import {
|
|
|
1389
1405
|
Typography as Typography6
|
|
1390
1406
|
} from "@mui/material";
|
|
1391
1407
|
|
|
1392
|
-
// src/utils/resolveObjectType.ts
|
|
1408
|
+
// src/utils/resolveObjectType/resolveObjectType.ts
|
|
1393
1409
|
var resolveObjectType = (object, fieldName) => {
|
|
1394
1410
|
if (!object || typeof object !== "object") {
|
|
1395
1411
|
return object;
|