@natoora-libs/core 0.2.48 → 0.2.49-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.
@@ -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.18.1/node_modules/lodash/isObject.js
33
- var require_isObject = __commonJS({
34
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/_freeGlobal.js
44
- var require_freeGlobal = __commonJS({
45
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/_root.js
52
- var require_root = __commonJS({
53
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/now.js
62
- var require_now = __commonJS({
63
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/_trimmedEndIndex.js
73
- var require_trimmedEndIndex = __commonJS({
74
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/_baseTrim.js
87
- var require_baseTrim = __commonJS({
88
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/_Symbol.js
99
- var require_Symbol = __commonJS({
100
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/_getRawTag.js
108
- var require_getRawTag = __commonJS({
109
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/_objectToString.js
137
- var require_objectToString = __commonJS({
138
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/_baseGetTag.js
149
- var require_baseGetTag = __commonJS({
150
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/isObjectLike.js
168
- var require_isObjectLike = __commonJS({
169
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/isSymbol.js
178
- var require_isSymbol = __commonJS({
179
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/toNumber.js
191
- var require_toNumber = __commonJS({
192
- "../node_modules/.pnpm/lodash@4.18.1/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.18.1/node_modules/lodash/debounce.js
224
- var require_debounce = __commonJS({
225
- "../node_modules/.pnpm/lodash@4.18.1/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,11 +6686,18 @@ var useStyles34 = (0, import_mui36.makeStyles)()((theme) => ({
6974
6686
  borderRadius: "0 0 4px 4px",
6975
6687
  width: "100%",
6976
6688
  height: paginationHeight,
6689
+ overflow: "hidden",
6977
6690
  "& > *": {
6978
6691
  margin: theme.spacing(2)
6979
6692
  },
6980
- "& .MuiTypography-body1": {
6981
- fontSize: ".850rem"
6693
+ "& .MuiPagination-root": {
6694
+ minWidth: 0
6695
+ },
6696
+ "& .MuiPagination-ul": {
6697
+ flexWrap: "nowrap"
6698
+ },
6699
+ "& .MuiPaginationItem-root": {
6700
+ flexShrink: 0
6982
6701
  }
6983
6702
  },
6984
6703
  fixed: {
@@ -6998,7 +6717,9 @@ var PaginationForTable = ({
6998
6717
  pagination,
6999
6718
  position = "relative",
7000
6719
  style,
7001
- updateFilters
6720
+ updateFilters,
6721
+ siblingCount = 1,
6722
+ boundaryCount = 1
7002
6723
  }) => {
7003
6724
  const { classes, cx } = useStyles34();
7004
6725
  const handleChange = (event, value) => {
@@ -7006,7 +6727,7 @@ var PaginationForTable = ({
7006
6727
  };
7007
6728
  const isFixed = position === "fixed";
7008
6729
  return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_material54.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
7009
- "div",
6730
+ import_material54.Box,
7010
6731
  {
7011
6732
  style,
7012
6733
  className: cx(classes.root, className, {
@@ -7017,14 +6738,16 @@ var PaginationForTable = ({
7017
6738
  "Page: ",
7018
6739
  page
7019
6740
  ] }),
7020
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6741
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_material54.Box, { style: { overflowX: "auto", maxWidth: 400 }, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
7021
6742
  import_material54.Pagination,
7022
6743
  {
7023
6744
  count: pagination.num_pages,
7024
- page,
7025
- onChange: handleChange
6745
+ page: Number(page),
6746
+ onChange: handleChange,
6747
+ siblingCount,
6748
+ boundaryCount
7026
6749
  }
7027
- )
6750
+ ) })
7028
6751
  ]
7029
6752
  }
7030
6753
  ) });
@@ -8912,7 +8635,7 @@ var SmartTableHeader = (0, import_react42.memo)(
8912
8635
  // src/components/Table/Table.tsx
8913
8636
  var import_react43 = require("react");
8914
8637
  var import_material74 = require("@mui/material");
8915
- var import_debounce = __toESM(require_debounce(), 1);
8638
+ var import_debounce = __toESM(require("lodash/debounce"), 1);
8916
8639
  var import_mui51 = require("tss-react/mui");
8917
8640
  var import_uuid = require("uuid");
8918
8641