lkd-web-kit 0.8.1 → 0.8.2
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/EmptyState/index.cjs +1 -1
- package/dist/components/Icon.cjs +1 -1
- package/dist/components/InfinityLoadMoreButton/index.cjs +1 -1
- package/dist/components/InfinitySelect/index.cjs +3 -3
- package/dist/components/InfinitySelect/index.js +1 -1
- package/dist/components/MyCheckboxGroup/index.cjs +1 -1
- package/dist/components/MyDateInput/index.cjs +1 -1
- package/dist/components/MyDatePickerInput/CalendarIcon.cjs +1 -1
- package/dist/components/MyDatePickerInput/index.cjs +1 -1
- package/dist/components/MyDateTimePicker/index.cjs +1 -1
- package/dist/components/MyMonthPickerInput/index.cjs +1 -1
- package/dist/components/MyMultiSelect/index.cjs +1 -1
- package/dist/components/MyNotifications/index.cjs +2 -2
- package/dist/components/MyNotifications/index.js +1 -1
- package/dist/components/MyNumberInput/index.cjs +1 -1
- package/dist/components/MyRadioGroup/index.cjs +1 -1
- package/dist/components/MySelect/index.cjs +1 -1
- package/dist/components/MyTextInput/index.cjs +1 -1
- package/dist/components/MyTextarea/index.cjs +1 -1
- package/dist/components/MyTimeInput/index.cjs +1 -1
- package/dist/components/NavItems.cjs +1 -1
- package/dist/contexts/NavigationHistoryContext/hook.cjs +1 -1
- package/dist/contexts/NavigationHistoryContext/index.cjs +1 -1
- package/dist/contexts/PageDataContext/index.cjs +1 -1
- package/dist/form/Form.cjs +1 -1
- package/dist/form/FormSubmitButton.cjs +1 -1
- package/dist/form/base/FormCheckbox.cjs +1 -1
- package/dist/form/base/FormCheckboxGroup.cjs +1 -1
- package/dist/form/base/FormDateInput.cjs +1 -1
- package/dist/form/base/FormDatePickerInput.cjs +1 -1
- package/dist/form/base/FormDateTimePicker.cjs +1 -1
- package/dist/form/base/FormMonthPickerInput.cjs +1 -1
- package/dist/form/base/FormMultiSelect.cjs +1 -1
- package/dist/form/base/FormNumberInput.cjs +1 -1
- package/dist/form/base/FormRadioGroup.cjs +1 -1
- package/dist/form/base/FormSelect.cjs +1 -1
- package/dist/form/base/FormSelectInfinity.cjs +1 -1
- package/dist/form/base/FormTextInput.cjs +1 -1
- package/dist/form/base/FormTextarea.cjs +1 -1
- package/dist/form/base/FormTimeInput.cjs +1 -1
- package/dist/form/utils/nullable-but-required.cjs +1 -1
- package/dist/form/utils/optional-but-required.cjs +1 -1
- package/dist/hocs/withController.cjs +1 -1
- package/dist/hocs/withModalManager.cjs +1 -1
- package/dist/hooks/useBreakpoint.cjs +1 -1
- package/dist/hooks/useOnScrollProgress.cjs +1 -1
- package/dist/hooks/useUpdateSearchParams.cjs +1 -1
- package/dist/hooks/useZodConfig.cjs +1 -1
- package/dist/mantine/my-default-theme.cjs +1 -1
- package/dist/utils/ky/addBodyJsonHook.cjs +1 -1
- package/package.json +4 -4
- package/dist/node_modules/@mantine/notifications/styles.css +0 -42
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +0 -39
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -37
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.cjs +0 -716
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -710
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.cjs +0 -55
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
//#region node_modules/@tanstack/virtual-core/dist/esm/utils.js
|
|
2
|
-
function memo(getDeps, fn, opts) {
|
|
3
|
-
let deps = opts.initialDeps ?? [];
|
|
4
|
-
let result;
|
|
5
|
-
let isInitial = true;
|
|
6
|
-
function memoizedFunction() {
|
|
7
|
-
var _a, _b, _c;
|
|
8
|
-
let depTime;
|
|
9
|
-
if (opts.key && ((_a = opts.debug) == null ? void 0 : _a.call(opts))) depTime = Date.now();
|
|
10
|
-
const newDeps = getDeps();
|
|
11
|
-
if (!(newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep))) return result;
|
|
12
|
-
deps = newDeps;
|
|
13
|
-
let resultTime;
|
|
14
|
-
if (opts.key && ((_b = opts.debug) == null ? void 0 : _b.call(opts))) resultTime = Date.now();
|
|
15
|
-
result = fn(...newDeps);
|
|
16
|
-
if (opts.key && ((_c = opts.debug) == null ? void 0 : _c.call(opts))) {
|
|
17
|
-
const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
|
|
18
|
-
const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
|
|
19
|
-
const resultFpsPercentage = resultEndTime / 16;
|
|
20
|
-
const pad = (str, num) => {
|
|
21
|
-
str = String(str);
|
|
22
|
-
while (str.length < num) str = " " + str;
|
|
23
|
-
return str;
|
|
24
|
-
};
|
|
25
|
-
console.info(`%c⏱ ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`, `
|
|
26
|
-
font-size: .6rem;
|
|
27
|
-
font-weight: bold;
|
|
28
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 * resultFpsPercentage, 120))}deg 100% 31%);`, opts == null ? void 0 : opts.key);
|
|
29
|
-
}
|
|
30
|
-
if ((opts == null ? void 0 : opts.onChange) && !(isInitial && opts.skipInitialOnChange)) opts.onChange(result);
|
|
31
|
-
isInitial = false;
|
|
32
|
-
return result;
|
|
33
|
-
}
|
|
34
|
-
memoizedFunction.updateDeps = (newDeps) => {
|
|
35
|
-
deps = newDeps;
|
|
36
|
-
};
|
|
37
|
-
return memoizedFunction;
|
|
38
|
-
}
|
|
39
|
-
function notUndefined(value, msg) {
|
|
40
|
-
if (value === void 0) throw new Error(`Unexpected undefined${msg ? `: ${msg}` : ""}`);
|
|
41
|
-
else return value;
|
|
42
|
-
}
|
|
43
|
-
var approxEqual = (a, b) => Math.abs(a - b) < 1.01;
|
|
44
|
-
var debounce = (targetWindow, fn, ms) => {
|
|
45
|
-
let timeoutId;
|
|
46
|
-
return function(...args) {
|
|
47
|
-
targetWindow.clearTimeout(timeoutId);
|
|
48
|
-
timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
//#endregion
|
|
52
|
-
exports.approxEqual = approxEqual;
|
|
53
|
-
exports.debounce = debounce;
|
|
54
|
-
exports.memo = memo;
|
|
55
|
-
exports.notUndefined = notUndefined;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
//#region node_modules/@tanstack/virtual-core/dist/esm/utils.js
|
|
2
|
-
function memo(getDeps, fn, opts) {
|
|
3
|
-
let deps = opts.initialDeps ?? [];
|
|
4
|
-
let result;
|
|
5
|
-
let isInitial = true;
|
|
6
|
-
function memoizedFunction() {
|
|
7
|
-
var _a, _b, _c;
|
|
8
|
-
let depTime;
|
|
9
|
-
if (opts.key && ((_a = opts.debug) == null ? void 0 : _a.call(opts))) depTime = Date.now();
|
|
10
|
-
const newDeps = getDeps();
|
|
11
|
-
if (!(newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep))) return result;
|
|
12
|
-
deps = newDeps;
|
|
13
|
-
let resultTime;
|
|
14
|
-
if (opts.key && ((_b = opts.debug) == null ? void 0 : _b.call(opts))) resultTime = Date.now();
|
|
15
|
-
result = fn(...newDeps);
|
|
16
|
-
if (opts.key && ((_c = opts.debug) == null ? void 0 : _c.call(opts))) {
|
|
17
|
-
const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
|
|
18
|
-
const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
|
|
19
|
-
const resultFpsPercentage = resultEndTime / 16;
|
|
20
|
-
const pad = (str, num) => {
|
|
21
|
-
str = String(str);
|
|
22
|
-
while (str.length < num) str = " " + str;
|
|
23
|
-
return str;
|
|
24
|
-
};
|
|
25
|
-
console.info(`%c⏱ ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`, `
|
|
26
|
-
font-size: .6rem;
|
|
27
|
-
font-weight: bold;
|
|
28
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 * resultFpsPercentage, 120))}deg 100% 31%);`, opts == null ? void 0 : opts.key);
|
|
29
|
-
}
|
|
30
|
-
if ((opts == null ? void 0 : opts.onChange) && !(isInitial && opts.skipInitialOnChange)) opts.onChange(result);
|
|
31
|
-
isInitial = false;
|
|
32
|
-
return result;
|
|
33
|
-
}
|
|
34
|
-
memoizedFunction.updateDeps = (newDeps) => {
|
|
35
|
-
deps = newDeps;
|
|
36
|
-
};
|
|
37
|
-
return memoizedFunction;
|
|
38
|
-
}
|
|
39
|
-
function notUndefined(value, msg) {
|
|
40
|
-
if (value === void 0) throw new Error(`Unexpected undefined${msg ? `: ${msg}` : ""}`);
|
|
41
|
-
else return value;
|
|
42
|
-
}
|
|
43
|
-
var approxEqual = (a, b) => Math.abs(a - b) < 1.01;
|
|
44
|
-
var debounce = (targetWindow, fn, ms) => {
|
|
45
|
-
let timeoutId;
|
|
46
|
-
return function(...args) {
|
|
47
|
-
targetWindow.clearTimeout(timeoutId);
|
|
48
|
-
timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
//#endregion
|
|
52
|
-
export { approxEqual, debounce, memo, notUndefined };
|