@natoora-libs/core 0.2.46 → 0.2.48-dev-doug-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/dist/components/index.cjs +9 -308
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +1 -3
- package/dist/components/index.d.ts +1 -3
- package/dist/components/index.js +79 -379
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/index.js +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/providers/index.js +0 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/utils/index.js +0 -1
- package/package.json +9 -15
- package/dist/chunk-5WRI5ZAA.js +0 -31
- package/dist/chunk-5WRI5ZAA.js.map +0 -1
|
@@ -4,9 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
-
};
|
|
10
7
|
var __export = (target, all) => {
|
|
11
8
|
for (var name in all)
|
|
12
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -29,291 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
26
|
));
|
|
30
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
28
|
|
|
32
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js
|
|
33
|
-
var require_isObject = __commonJS({
|
|
34
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js"(exports2, module2) {
|
|
35
|
-
function isObject(value) {
|
|
36
|
-
var type = typeof value;
|
|
37
|
-
return value != null && (type == "object" || type == "function");
|
|
38
|
-
}
|
|
39
|
-
module2.exports = isObject;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js
|
|
44
|
-
var require_freeGlobal = __commonJS({
|
|
45
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js"(exports2, module2) {
|
|
46
|
-
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
47
|
-
module2.exports = freeGlobal;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js
|
|
52
|
-
var require_root = __commonJS({
|
|
53
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js"(exports2, module2) {
|
|
54
|
-
var freeGlobal = require_freeGlobal();
|
|
55
|
-
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
56
|
-
var root = freeGlobal || freeSelf || Function("return this")();
|
|
57
|
-
module2.exports = root;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/now.js
|
|
62
|
-
var require_now = __commonJS({
|
|
63
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/now.js"(exports2, module2) {
|
|
64
|
-
var root = require_root();
|
|
65
|
-
var now = function() {
|
|
66
|
-
return root.Date.now();
|
|
67
|
-
};
|
|
68
|
-
module2.exports = now;
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_trimmedEndIndex.js
|
|
73
|
-
var require_trimmedEndIndex = __commonJS({
|
|
74
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_trimmedEndIndex.js"(exports2, module2) {
|
|
75
|
-
var reWhitespace = /\s/;
|
|
76
|
-
function trimmedEndIndex(string) {
|
|
77
|
-
var index = string.length;
|
|
78
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
79
|
-
}
|
|
80
|
-
return index;
|
|
81
|
-
}
|
|
82
|
-
module2.exports = trimmedEndIndex;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTrim.js
|
|
87
|
-
var require_baseTrim = __commonJS({
|
|
88
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTrim.js"(exports2, module2) {
|
|
89
|
-
var trimmedEndIndex = require_trimmedEndIndex();
|
|
90
|
-
var reTrimStart = /^\s+/;
|
|
91
|
-
function baseTrim(string) {
|
|
92
|
-
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
93
|
-
}
|
|
94
|
-
module2.exports = baseTrim;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js
|
|
99
|
-
var require_Symbol = __commonJS({
|
|
100
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js"(exports2, module2) {
|
|
101
|
-
var root = require_root();
|
|
102
|
-
var Symbol2 = root.Symbol;
|
|
103
|
-
module2.exports = Symbol2;
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js
|
|
108
|
-
var require_getRawTag = __commonJS({
|
|
109
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js"(exports2, module2) {
|
|
110
|
-
var Symbol2 = require_Symbol();
|
|
111
|
-
var objectProto = Object.prototype;
|
|
112
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
113
|
-
var nativeObjectToString = objectProto.toString;
|
|
114
|
-
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
|
115
|
-
function getRawTag(value) {
|
|
116
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
117
|
-
try {
|
|
118
|
-
value[symToStringTag] = void 0;
|
|
119
|
-
var unmasked = true;
|
|
120
|
-
} catch (e) {
|
|
121
|
-
}
|
|
122
|
-
var result = nativeObjectToString.call(value);
|
|
123
|
-
if (unmasked) {
|
|
124
|
-
if (isOwn) {
|
|
125
|
-
value[symToStringTag] = tag;
|
|
126
|
-
} else {
|
|
127
|
-
delete value[symToStringTag];
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return result;
|
|
131
|
-
}
|
|
132
|
-
module2.exports = getRawTag;
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js
|
|
137
|
-
var require_objectToString = __commonJS({
|
|
138
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js"(exports2, module2) {
|
|
139
|
-
var objectProto = Object.prototype;
|
|
140
|
-
var nativeObjectToString = objectProto.toString;
|
|
141
|
-
function objectToString(value) {
|
|
142
|
-
return nativeObjectToString.call(value);
|
|
143
|
-
}
|
|
144
|
-
module2.exports = objectToString;
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js
|
|
149
|
-
var require_baseGetTag = __commonJS({
|
|
150
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js"(exports2, module2) {
|
|
151
|
-
var Symbol2 = require_Symbol();
|
|
152
|
-
var getRawTag = require_getRawTag();
|
|
153
|
-
var objectToString = require_objectToString();
|
|
154
|
-
var nullTag = "[object Null]";
|
|
155
|
-
var undefinedTag = "[object Undefined]";
|
|
156
|
-
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
|
157
|
-
function baseGetTag(value) {
|
|
158
|
-
if (value == null) {
|
|
159
|
-
return value === void 0 ? undefinedTag : nullTag;
|
|
160
|
-
}
|
|
161
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
162
|
-
}
|
|
163
|
-
module2.exports = baseGetTag;
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js
|
|
168
|
-
var require_isObjectLike = __commonJS({
|
|
169
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js"(exports2, module2) {
|
|
170
|
-
function isObjectLike(value) {
|
|
171
|
-
return value != null && typeof value == "object";
|
|
172
|
-
}
|
|
173
|
-
module2.exports = isObjectLike;
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSymbol.js
|
|
178
|
-
var require_isSymbol = __commonJS({
|
|
179
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSymbol.js"(exports2, module2) {
|
|
180
|
-
var baseGetTag = require_baseGetTag();
|
|
181
|
-
var isObjectLike = require_isObjectLike();
|
|
182
|
-
var symbolTag = "[object Symbol]";
|
|
183
|
-
function isSymbol(value) {
|
|
184
|
-
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
185
|
-
}
|
|
186
|
-
module2.exports = isSymbol;
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toNumber.js
|
|
191
|
-
var require_toNumber = __commonJS({
|
|
192
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toNumber.js"(exports2, module2) {
|
|
193
|
-
var baseTrim = require_baseTrim();
|
|
194
|
-
var isObject = require_isObject();
|
|
195
|
-
var isSymbol = require_isSymbol();
|
|
196
|
-
var NAN = 0 / 0;
|
|
197
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
198
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
199
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
200
|
-
var freeParseInt = parseInt;
|
|
201
|
-
function toNumber(value) {
|
|
202
|
-
if (typeof value == "number") {
|
|
203
|
-
return value;
|
|
204
|
-
}
|
|
205
|
-
if (isSymbol(value)) {
|
|
206
|
-
return NAN;
|
|
207
|
-
}
|
|
208
|
-
if (isObject(value)) {
|
|
209
|
-
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
210
|
-
value = isObject(other) ? other + "" : other;
|
|
211
|
-
}
|
|
212
|
-
if (typeof value != "string") {
|
|
213
|
-
return value === 0 ? value : +value;
|
|
214
|
-
}
|
|
215
|
-
value = baseTrim(value);
|
|
216
|
-
var isBinary = reIsBinary.test(value);
|
|
217
|
-
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
218
|
-
}
|
|
219
|
-
module2.exports = toNumber;
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
|
|
223
|
-
// ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/debounce.js
|
|
224
|
-
var require_debounce = __commonJS({
|
|
225
|
-
"../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/debounce.js"(exports2, module2) {
|
|
226
|
-
var isObject = require_isObject();
|
|
227
|
-
var now = require_now();
|
|
228
|
-
var toNumber = require_toNumber();
|
|
229
|
-
var FUNC_ERROR_TEXT = "Expected a function";
|
|
230
|
-
var nativeMax = Math.max;
|
|
231
|
-
var nativeMin = Math.min;
|
|
232
|
-
function debounce2(func, wait, options) {
|
|
233
|
-
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
234
|
-
if (typeof func != "function") {
|
|
235
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
236
|
-
}
|
|
237
|
-
wait = toNumber(wait) || 0;
|
|
238
|
-
if (isObject(options)) {
|
|
239
|
-
leading = !!options.leading;
|
|
240
|
-
maxing = "maxWait" in options;
|
|
241
|
-
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
242
|
-
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
243
|
-
}
|
|
244
|
-
function invokeFunc(time) {
|
|
245
|
-
var args = lastArgs, thisArg = lastThis;
|
|
246
|
-
lastArgs = lastThis = void 0;
|
|
247
|
-
lastInvokeTime = time;
|
|
248
|
-
result = func.apply(thisArg, args);
|
|
249
|
-
return result;
|
|
250
|
-
}
|
|
251
|
-
function leadingEdge(time) {
|
|
252
|
-
lastInvokeTime = time;
|
|
253
|
-
timerId = setTimeout(timerExpired, wait);
|
|
254
|
-
return leading ? invokeFunc(time) : result;
|
|
255
|
-
}
|
|
256
|
-
function remainingWait(time) {
|
|
257
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
258
|
-
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
259
|
-
}
|
|
260
|
-
function shouldInvoke(time) {
|
|
261
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
262
|
-
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
263
|
-
}
|
|
264
|
-
function timerExpired() {
|
|
265
|
-
var time = now();
|
|
266
|
-
if (shouldInvoke(time)) {
|
|
267
|
-
return trailingEdge(time);
|
|
268
|
-
}
|
|
269
|
-
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
270
|
-
}
|
|
271
|
-
function trailingEdge(time) {
|
|
272
|
-
timerId = void 0;
|
|
273
|
-
if (trailing && lastArgs) {
|
|
274
|
-
return invokeFunc(time);
|
|
275
|
-
}
|
|
276
|
-
lastArgs = lastThis = void 0;
|
|
277
|
-
return result;
|
|
278
|
-
}
|
|
279
|
-
function cancel() {
|
|
280
|
-
if (timerId !== void 0) {
|
|
281
|
-
clearTimeout(timerId);
|
|
282
|
-
}
|
|
283
|
-
lastInvokeTime = 0;
|
|
284
|
-
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
285
|
-
}
|
|
286
|
-
function flush() {
|
|
287
|
-
return timerId === void 0 ? result : trailingEdge(now());
|
|
288
|
-
}
|
|
289
|
-
function debounced() {
|
|
290
|
-
var time = now(), isInvoking = shouldInvoke(time);
|
|
291
|
-
lastArgs = arguments;
|
|
292
|
-
lastThis = this;
|
|
293
|
-
lastCallTime = time;
|
|
294
|
-
if (isInvoking) {
|
|
295
|
-
if (timerId === void 0) {
|
|
296
|
-
return leadingEdge(lastCallTime);
|
|
297
|
-
}
|
|
298
|
-
if (maxing) {
|
|
299
|
-
clearTimeout(timerId);
|
|
300
|
-
timerId = setTimeout(timerExpired, wait);
|
|
301
|
-
return invokeFunc(lastCallTime);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
if (timerId === void 0) {
|
|
305
|
-
timerId = setTimeout(timerExpired, wait);
|
|
306
|
-
}
|
|
307
|
-
return result;
|
|
308
|
-
}
|
|
309
|
-
debounced.cancel = cancel;
|
|
310
|
-
debounced.flush = flush;
|
|
311
|
-
return debounced;
|
|
312
|
-
}
|
|
313
|
-
module2.exports = debounce2;
|
|
314
|
-
}
|
|
315
|
-
});
|
|
316
|
-
|
|
317
29
|
// src/components/index.ts
|
|
318
30
|
var components_exports = {};
|
|
319
31
|
__export(components_exports, {
|
|
@@ -6974,18 +6686,11 @@ var useStyles34 = (0, import_mui36.makeStyles)()((theme) => ({
|
|
|
6974
6686
|
borderRadius: "0 0 4px 4px",
|
|
6975
6687
|
width: "100%",
|
|
6976
6688
|
height: paginationHeight,
|
|
6977
|
-
overflow: "hidden",
|
|
6978
6689
|
"& > *": {
|
|
6979
6690
|
margin: theme.spacing(2)
|
|
6980
6691
|
},
|
|
6981
|
-
"& .
|
|
6982
|
-
|
|
6983
|
-
},
|
|
6984
|
-
"& .MuiPagination-ul": {
|
|
6985
|
-
flexWrap: "nowrap"
|
|
6986
|
-
},
|
|
6987
|
-
"& .MuiPaginationItem-root": {
|
|
6988
|
-
flexShrink: 0
|
|
6692
|
+
"& .MuiTypography-body1": {
|
|
6693
|
+
fontSize: ".850rem"
|
|
6989
6694
|
}
|
|
6990
6695
|
},
|
|
6991
6696
|
fixed: {
|
|
@@ -7005,9 +6710,7 @@ var PaginationForTable = ({
|
|
|
7005
6710
|
pagination,
|
|
7006
6711
|
position = "relative",
|
|
7007
6712
|
style,
|
|
7008
|
-
updateFilters
|
|
7009
|
-
siblingCount = 1,
|
|
7010
|
-
boundaryCount = 1
|
|
6713
|
+
updateFilters
|
|
7011
6714
|
}) => {
|
|
7012
6715
|
const { classes, cx } = useStyles34();
|
|
7013
6716
|
const handleChange = (event, value) => {
|
|
@@ -7015,7 +6718,7 @@ var PaginationForTable = ({
|
|
|
7015
6718
|
};
|
|
7016
6719
|
const isFixed = position === "fixed";
|
|
7017
6720
|
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_material54.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
7018
|
-
|
|
6721
|
+
"div",
|
|
7019
6722
|
{
|
|
7020
6723
|
style,
|
|
7021
6724
|
className: cx(classes.root, className, {
|
|
@@ -7026,16 +6729,14 @@ var PaginationForTable = ({
|
|
|
7026
6729
|
"Page: ",
|
|
7027
6730
|
page
|
|
7028
6731
|
] }),
|
|
7029
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6732
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
7030
6733
|
import_material54.Pagination,
|
|
7031
6734
|
{
|
|
7032
6735
|
count: pagination.num_pages,
|
|
7033
|
-
page
|
|
7034
|
-
onChange: handleChange
|
|
7035
|
-
siblingCount,
|
|
7036
|
-
boundaryCount
|
|
6736
|
+
page,
|
|
6737
|
+
onChange: handleChange
|
|
7037
6738
|
}
|
|
7038
|
-
)
|
|
6739
|
+
)
|
|
7039
6740
|
]
|
|
7040
6741
|
}
|
|
7041
6742
|
) });
|
|
@@ -8923,7 +8624,7 @@ var SmartTableHeader = (0, import_react42.memo)(
|
|
|
8923
8624
|
// src/components/Table/Table.tsx
|
|
8924
8625
|
var import_react43 = require("react");
|
|
8925
8626
|
var import_material74 = require("@mui/material");
|
|
8926
|
-
var import_debounce = __toESM(
|
|
8627
|
+
var import_debounce = __toESM(require("lodash/debounce"), 1);
|
|
8927
8628
|
var import_mui51 = require("tss-react/mui");
|
|
8928
8629
|
var import_uuid = require("uuid");
|
|
8929
8630
|
|