@natoora-libs/core 0.2.47 → 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.
@@ -10,295 +10,6 @@ import {
10
10
  getFlattenedFiltersLabels,
11
11
  getSelectOptionFromKeyPress
12
12
  } from "../chunk-3UDYWCV6.js";
13
- import {
14
- __commonJS,
15
- __toESM
16
- } from "../chunk-5WRI5ZAA.js";
17
-
18
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js
19
- var require_isObject = __commonJS({
20
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js"(exports, module) {
21
- function isObject(value) {
22
- var type = typeof value;
23
- return value != null && (type == "object" || type == "function");
24
- }
25
- module.exports = isObject;
26
- }
27
- });
28
-
29
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js
30
- var require_freeGlobal = __commonJS({
31
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js"(exports, module) {
32
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
33
- module.exports = freeGlobal;
34
- }
35
- });
36
-
37
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js
38
- var require_root = __commonJS({
39
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js"(exports, module) {
40
- var freeGlobal = require_freeGlobal();
41
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
42
- var root = freeGlobal || freeSelf || Function("return this")();
43
- module.exports = root;
44
- }
45
- });
46
-
47
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js
48
- var require_now = __commonJS({
49
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js"(exports, module) {
50
- var root = require_root();
51
- var now = function() {
52
- return root.Date.now();
53
- };
54
- module.exports = now;
55
- }
56
- });
57
-
58
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js
59
- var require_trimmedEndIndex = __commonJS({
60
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js"(exports, module) {
61
- var reWhitespace = /\s/;
62
- function trimmedEndIndex(string) {
63
- var index = string.length;
64
- while (index-- && reWhitespace.test(string.charAt(index))) {
65
- }
66
- return index;
67
- }
68
- module.exports = trimmedEndIndex;
69
- }
70
- });
71
-
72
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js
73
- var require_baseTrim = __commonJS({
74
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js"(exports, module) {
75
- var trimmedEndIndex = require_trimmedEndIndex();
76
- var reTrimStart = /^\s+/;
77
- function baseTrim(string) {
78
- return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
79
- }
80
- module.exports = baseTrim;
81
- }
82
- });
83
-
84
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js
85
- var require_Symbol = __commonJS({
86
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js"(exports, module) {
87
- var root = require_root();
88
- var Symbol = root.Symbol;
89
- module.exports = Symbol;
90
- }
91
- });
92
-
93
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js
94
- var require_getRawTag = __commonJS({
95
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js"(exports, module) {
96
- var Symbol = require_Symbol();
97
- var objectProto = Object.prototype;
98
- var hasOwnProperty = objectProto.hasOwnProperty;
99
- var nativeObjectToString = objectProto.toString;
100
- var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
101
- function getRawTag(value) {
102
- var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
103
- try {
104
- value[symToStringTag] = void 0;
105
- var unmasked = true;
106
- } catch (e) {
107
- }
108
- var result = nativeObjectToString.call(value);
109
- if (unmasked) {
110
- if (isOwn) {
111
- value[symToStringTag] = tag;
112
- } else {
113
- delete value[symToStringTag];
114
- }
115
- }
116
- return result;
117
- }
118
- module.exports = getRawTag;
119
- }
120
- });
121
-
122
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js
123
- var require_objectToString = __commonJS({
124
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js"(exports, module) {
125
- var objectProto = Object.prototype;
126
- var nativeObjectToString = objectProto.toString;
127
- function objectToString(value) {
128
- return nativeObjectToString.call(value);
129
- }
130
- module.exports = objectToString;
131
- }
132
- });
133
-
134
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js
135
- var require_baseGetTag = __commonJS({
136
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js"(exports, module) {
137
- var Symbol = require_Symbol();
138
- var getRawTag = require_getRawTag();
139
- var objectToString = require_objectToString();
140
- var nullTag = "[object Null]";
141
- var undefinedTag = "[object Undefined]";
142
- var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
143
- function baseGetTag(value) {
144
- if (value == null) {
145
- return value === void 0 ? undefinedTag : nullTag;
146
- }
147
- return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
148
- }
149
- module.exports = baseGetTag;
150
- }
151
- });
152
-
153
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js
154
- var require_isObjectLike = __commonJS({
155
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js"(exports, module) {
156
- function isObjectLike(value) {
157
- return value != null && typeof value == "object";
158
- }
159
- module.exports = isObjectLike;
160
- }
161
- });
162
-
163
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js
164
- var require_isSymbol = __commonJS({
165
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js"(exports, module) {
166
- var baseGetTag = require_baseGetTag();
167
- var isObjectLike = require_isObjectLike();
168
- var symbolTag = "[object Symbol]";
169
- function isSymbol(value) {
170
- return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
171
- }
172
- module.exports = isSymbol;
173
- }
174
- });
175
-
176
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js
177
- var require_toNumber = __commonJS({
178
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js"(exports, module) {
179
- var baseTrim = require_baseTrim();
180
- var isObject = require_isObject();
181
- var isSymbol = require_isSymbol();
182
- var NAN = 0 / 0;
183
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
184
- var reIsBinary = /^0b[01]+$/i;
185
- var reIsOctal = /^0o[0-7]+$/i;
186
- var freeParseInt = parseInt;
187
- function toNumber(value) {
188
- if (typeof value == "number") {
189
- return value;
190
- }
191
- if (isSymbol(value)) {
192
- return NAN;
193
- }
194
- if (isObject(value)) {
195
- var other = typeof value.valueOf == "function" ? value.valueOf() : value;
196
- value = isObject(other) ? other + "" : other;
197
- }
198
- if (typeof value != "string") {
199
- return value === 0 ? value : +value;
200
- }
201
- value = baseTrim(value);
202
- var isBinary = reIsBinary.test(value);
203
- return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
204
- }
205
- module.exports = toNumber;
206
- }
207
- });
208
-
209
- // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js
210
- var require_debounce = __commonJS({
211
- "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js"(exports, module) {
212
- var isObject = require_isObject();
213
- var now = require_now();
214
- var toNumber = require_toNumber();
215
- var FUNC_ERROR_TEXT = "Expected a function";
216
- var nativeMax = Math.max;
217
- var nativeMin = Math.min;
218
- function debounce2(func, wait, options) {
219
- var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
220
- if (typeof func != "function") {
221
- throw new TypeError(FUNC_ERROR_TEXT);
222
- }
223
- wait = toNumber(wait) || 0;
224
- if (isObject(options)) {
225
- leading = !!options.leading;
226
- maxing = "maxWait" in options;
227
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
228
- trailing = "trailing" in options ? !!options.trailing : trailing;
229
- }
230
- function invokeFunc(time) {
231
- var args = lastArgs, thisArg = lastThis;
232
- lastArgs = lastThis = void 0;
233
- lastInvokeTime = time;
234
- result = func.apply(thisArg, args);
235
- return result;
236
- }
237
- function leadingEdge(time) {
238
- lastInvokeTime = time;
239
- timerId = setTimeout(timerExpired, wait);
240
- return leading ? invokeFunc(time) : result;
241
- }
242
- function remainingWait(time) {
243
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
244
- return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
245
- }
246
- function shouldInvoke(time) {
247
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
248
- return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
249
- }
250
- function timerExpired() {
251
- var time = now();
252
- if (shouldInvoke(time)) {
253
- return trailingEdge(time);
254
- }
255
- timerId = setTimeout(timerExpired, remainingWait(time));
256
- }
257
- function trailingEdge(time) {
258
- timerId = void 0;
259
- if (trailing && lastArgs) {
260
- return invokeFunc(time);
261
- }
262
- lastArgs = lastThis = void 0;
263
- return result;
264
- }
265
- function cancel() {
266
- if (timerId !== void 0) {
267
- clearTimeout(timerId);
268
- }
269
- lastInvokeTime = 0;
270
- lastArgs = lastCallTime = lastThis = timerId = void 0;
271
- }
272
- function flush() {
273
- return timerId === void 0 ? result : trailingEdge(now());
274
- }
275
- function debounced() {
276
- var time = now(), isInvoking = shouldInvoke(time);
277
- lastArgs = arguments;
278
- lastThis = this;
279
- lastCallTime = time;
280
- if (isInvoking) {
281
- if (timerId === void 0) {
282
- return leadingEdge(lastCallTime);
283
- }
284
- if (maxing) {
285
- clearTimeout(timerId);
286
- timerId = setTimeout(timerExpired, wait);
287
- return invokeFunc(lastCallTime);
288
- }
289
- }
290
- if (timerId === void 0) {
291
- timerId = setTimeout(timerExpired, wait);
292
- }
293
- return result;
294
- }
295
- debounced.cancel = cancel;
296
- debounced.flush = flush;
297
- return debounced;
298
- }
299
- module.exports = debounce2;
300
- }
301
- });
302
13
 
303
14
  // src/components/ActiveFiltersIconButton/ActiveFiltersIconButton.tsx
304
15
  import { memo } from "react";
@@ -8658,7 +8369,6 @@ var SmartTableHeader = memo22(
8658
8369
  );
8659
8370
 
8660
8371
  // src/components/Table/Table.tsx
8661
- var import_debounce = __toESM(require_debounce(), 1);
8662
8372
  import { useLayoutEffect, useState as useState18 } from "react";
8663
8373
  import {
8664
8374
  Box as Box44,
@@ -8671,6 +8381,7 @@ import {
8671
8381
  TableRow as TableRow2,
8672
8382
  TableSortLabel as TableSortLabel2
8673
8383
  } from "@mui/material";
8384
+ import debounce from "lodash/debounce";
8674
8385
  import { makeStyles as makeStyles44 } from "tss-react/mui";
8675
8386
  import { v4 as uuidv4 } from "uuid";
8676
8387
 
@@ -8790,7 +8501,7 @@ var Table = ({
8790
8501
  setRowsPerPage(newRowsPerPage);
8791
8502
  }
8792
8503
  updateRowsPerPage();
8793
- const debounced = (0, import_debounce.default)(updateRowsPerPage, 150);
8504
+ const debounced = debounce(updateRowsPerPage, 150);
8794
8505
  window.addEventListener("resize", debounced);
8795
8506
  return () => {
8796
8507
  window.removeEventListener("resize", debounced);
@@ -9877,9 +9588,10 @@ var TableDesktopEditableField = ({
9877
9588
  {
9878
9589
  defaultValue: editInitialValue ? moment2(editInitialValue, "HH:mm:ss") : void 0,
9879
9590
  label: inputLabel,
9591
+ format: "DD/MM/YYYY",
9880
9592
  onAccept: (value) => {
9881
9593
  const formattedValue = value?.format("YYYY-MM-DD") ?? null;
9882
- const formattedLabel = value?.format("L") ?? null;
9594
+ const formattedLabel = value?.format("DD/MM/YYYY") ?? null;
9883
9595
  onUpdateEditableCell?.({
9884
9596
  rowId,
9885
9597
  columnId,