@oj-module/cli 0.2.64 → 0.2.66
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/devkit/README.md +9 -3
- package/devkit/SKILL.md +5 -2
- package/devkit/framework-dev.md +12 -7
- package/devkit/manual.md +123 -56
- package/devkit/menu-rules.md +4 -1
- package/package.json +3 -2
- package/shell-dist/assets/ahooks.2l850ymmh0.js +18 -0
- package/shell-dist/assets/antd-es-locale-zh_CN.1gjjsvxbf0.js +1 -0
- package/shell-dist/assets/antd-img-crop.196rkty480.js +99 -0
- package/shell-dist/assets/antd-locale-en_US.561tozx860.js +1 -0
- package/shell-dist/assets/antd-locale-zh_CN.1cmpmgzh70.js +1 -0
- package/shell-dist/assets/antd.uw1coq15l0.js +348 -0
- package/shell-dist/assets/clsx.jotilrt2e0.js +1 -0
- package/shell-dist/assets/contract-errors.2o17vz9u50.js +1 -0
- package/shell-dist/assets/contract.3h327o3mj0.js +57 -0
- package/shell-dist/assets/cssinjs.atgmhan7m0.js +3 -0
- package/shell-dist/assets/dayjs-plugin-advancedFormat.3vsyd2eis0.js +1 -0
- package/shell-dist/assets/dayjs-plugin-customParseFormat.13xhghv1d0.js +1 -0
- package/shell-dist/assets/dayjs-plugin-isoWeek.1fn1tw82p0.js +1 -0
- package/shell-dist/assets/dayjs-plugin-localeData.2rwbjp9nk0.js +1 -0
- package/shell-dist/assets/dayjs-plugin-quarterOfYear.2oqo1lcx80.js +1 -0
- package/shell-dist/assets/dayjs-plugin-relativeTime.2pqs3et4y0.js +1 -0
- package/shell-dist/assets/dayjs-plugin-weekOfYear.gvn9iph080.js +1 -0
- package/shell-dist/assets/dayjs-plugin-weekYear.2u78l3ex10.js +1 -0
- package/shell-dist/assets/dayjs-plugin-weekday.2d56a4tml0.js +1 -0
- package/shell-dist/assets/dayjs.pa60l6wjo0.js +1 -0
- package/shell-dist/assets/dnd-kit-core.1xyreig6r0.js +5 -0
- package/shell-dist/assets/dnd-kit-sortable.s94qciuft0.js +1 -0
- package/shell-dist/assets/dnd-kit-utilities.1umw4xphb0.js +1 -0
- package/shell-dist/assets/i18next.33zqofapj0.js +1 -0
- package/shell-dist/assets/icons-es-components-Context.365qmflwg0.js +1 -0
- package/shell-dist/assets/icons.159wjwals0.js +57 -0
- package/shell-dist/assets/jsx-dev-runtime.3uibuc82f0.js +14 -0
- package/shell-dist/assets/jsx-runtime.h40xu4o5b0.js +14 -0
- package/shell-dist/assets/keepalive-for-react.xenu5vam70.js +1 -0
- package/shell-dist/assets/kit.37kr8ui390.js +1 -0
- package/shell-dist/assets/ky.1cgch7gu60.js +6 -0
- package/shell-dist/assets/motion-react.pjsxytvjs0.js +12 -0
- package/shell-dist/assets/motion.21tciqutg0.js +4 -0
- package/shell-dist/assets/nprogress.2nz76n9ny0.js +7 -0
- package/shell-dist/assets/ojm-dayjs-locale-zh-cn.3vr3beiyp0.js +9 -0
- package/shell-dist/assets/pinyin-pro.3v0mnxczn0.js +1 -0
- package/shell-dist/assets/pro-components.2kyot1vcl0.js +83 -0
- package/shell-dist/assets/react-countup.2x8idnr8y0.js +10 -0
- package/shell-dist/assets/react-dom-client.ick0v05ob0.js +43 -0
- package/shell-dist/assets/react-dom.2so9uxg3f0.js +22 -0
- package/shell-dist/assets/react-error-boundary.2dncdfj3b0.js +1 -0
- package/shell-dist/assets/react-i18next.auhvjhqv00.js +1 -0
- package/shell-dist/assets/react-jss.1ei6dr9e00.js +29 -0
- package/shell-dist/assets/react-query.3rln45ow00.js +1 -0
- package/shell-dist/assets/react-router-dom.3c6zld8h40.js +44 -0
- package/shell-dist/assets/react-router.2h9rebcv50.js +56 -0
- package/shell-dist/assets/react.1ew63mwts0.js +14 -0
- package/shell-dist/assets/runtime.1xfsxcajj0.js +21702 -0
- package/shell-dist/assets/simplebar-react.2g739uvai0.js +1 -0
- package/shell-dist/assets/spin-delay.yjeyj6iwp0.js +9 -0
- package/shell-dist/assets/tailwind-merge.125ehiqjw0.js +1 -0
- package/shell-dist/assets/use-sync-external-store-shim.1nz1pi9bb0.js +22 -0
- package/shell-dist/assets/zustand-middleware.1xaxjueme0.js +6 -0
- package/shell-dist/assets/zustand-react-shallow.pybayv1hx0.js +1 -0
- package/shell-dist/assets/zustand-react.9fsl9brxy0.js +1 -0
- package/shell-dist/assets/zustand-shallow.6cz0yyv9x0.js +1 -0
- package/shell-dist/assets/zustand-vanilla-shallow.3424monv50.js +1 -0
- package/shell-dist/assets/zustand-vanilla.1mo3ka3g30.js +1 -0
- package/shell-dist/assets/zustand.3gjgzlnqo0.js +1 -0
- package/shell-dist/index.html +67 -118
- package/shell-dist/versions.json +3 -3
- package/src/esm-exports.ts +152 -70
- package/src/shared-deps.ts +69 -19
- package/src/site-base.ts +4 -0
- package/templates/src/app/web/home/pages/components/bar-chart.tsx +5 -3
- package/templates/src/app/web/home/pages/components/echarts-setup.ts +30 -0
- package/templates/src/app/web/home/pages/components/line-chart.tsx +5 -3
- package/templates/src/app/web/home/pages/components/pie-chart.tsx +6 -3
- package/templates/src/app/web/home/pages/index.tsx +3 -2
- package/templates/src/app/web/home/routes.ts +3 -2
- package/vendor/host-versions.json +3 -3
- package/shell-dist/assets/ahooks.js +0 -6909
- package/shell-dist/assets/antd-es-locale-zh_CN.js +0 -257
- package/shell-dist/assets/antd-img-crop.js +0 -1495
- package/shell-dist/assets/antd-locale-en_US.js +0 -374
- package/shell-dist/assets/antd-locale-zh_CN.js +0 -379
- package/shell-dist/assets/antd.js +0 -106874
- package/shell-dist/assets/clsx.js +0 -33
- package/shell-dist/assets/contract-errors.js +0 -30
- package/shell-dist/assets/contract.js +0 -18900
- package/shell-dist/assets/cssinjs.js +0 -2595
- package/shell-dist/assets/dayjs-plugin-advancedFormat.js +0 -98
- package/shell-dist/assets/dayjs-plugin-customParseFormat.js +0 -173
- package/shell-dist/assets/dayjs-plugin-isoWeek.js +0 -77
- package/shell-dist/assets/dayjs-plugin-localeData.js +0 -126
- package/shell-dist/assets/dayjs-plugin-quarterOfYear.js +0 -77
- package/shell-dist/assets/dayjs-plugin-relativeTime.js +0 -92
- package/shell-dist/assets/dayjs-plugin-weekOfYear.js +0 -73
- package/shell-dist/assets/dayjs-plugin-weekYear.js +0 -63
- package/shell-dist/assets/dayjs-plugin-weekday.js +0 -63
- package/shell-dist/assets/dayjs.js +0 -326
- package/shell-dist/assets/dnd-kit-core.js +0 -3601
- package/shell-dist/assets/dnd-kit-sortable.js +0 -717
- package/shell-dist/assets/dnd-kit-utilities.js +0 -340
- package/shell-dist/assets/i18next.js +0 -2321
- package/shell-dist/assets/icons-es-components-Context.js +0 -20
- package/shell-dist/assets/icons.js +0 -34961
- package/shell-dist/assets/jsx-dev-runtime.js +0 -75
- package/shell-dist/assets/jsx-runtime.js +0 -97
- package/shell-dist/assets/keepalive-for-react.js +0 -283
- package/shell-dist/assets/kit.js +0 -151
- package/shell-dist/assets/ky.js +0 -1427
- package/shell-dist/assets/motion-react.js +0 -13589
- package/shell-dist/assets/motion.js +0 -9959
- package/shell-dist/assets/nprogress.js +0 -314
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-BarsOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-CalendarOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-CaretDownFilled.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-CaretDownOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-CaretUpOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-CheckCircleFilled.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-CheckOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-ClockCircleOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-CloseCircleFilled.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-CloseOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-CopyOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-DeleteOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-DoubleLeftOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-DoubleRightOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-DownOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-DownloadOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-EditOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-EllipsisOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-EnterOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-ExclamationCircleFilled.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-EyeInvisibleOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-EyeOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-FileOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-FileTextOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-FilterFilled.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-FolderOpenOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-FolderOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-HolderOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-InfoCircleFilled.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-LeftOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-LoadingOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-MinusOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-MinusSquareOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-PaperClipOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-PictureOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-PlusOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-PlusSquareOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-QuestionCircleOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-ReloadOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-RightOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-RotateLeftOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-RotateRightOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-SearchOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-StarFilled.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-SwapOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-SwapRightOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-UpOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-VerticalAlignTopOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-WarningFilled.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-ZoomInOutlined.js +0 -7
- package/shell-dist/assets/ojm--ant-design-icons-es-icons-ZoomOutOutlined.js +0 -7
- package/shell-dist/assets/ojm-dayjs-locale-zh-cn.js +0 -81
- package/shell-dist/assets/pinyin-pro.js +0 -25175
- package/shell-dist/assets/pro-components.js +0 -44627
- package/shell-dist/assets/react-countup.js +0 -525
- package/shell-dist/assets/react-dom-client.js +0 -12134
- package/shell-dist/assets/react-dom.js +0 -266
- package/shell-dist/assets/react-error-boundary.js +0 -141
- package/shell-dist/assets/react-i18next.js +0 -1773
- package/shell-dist/assets/react-jss.js +0 -4089
- package/shell-dist/assets/react-query.js +0 -3072
- package/shell-dist/assets/react-router-dom.js +0 -9927
- package/shell-dist/assets/react-router.js +0 -14584
- package/shell-dist/assets/react.js +0 -590
- package/shell-dist/assets/runtime.js +0 -28311
- package/shell-dist/assets/simplebar-react.js +0 -1119
- package/shell-dist/assets/spin-delay.js +0 -111
- package/shell-dist/assets/tailwind-merge.js +0 -3364
- package/shell-dist/assets/use-sync-external-store-shim.js +0 -130
- package/shell-dist/assets/zustand-middleware.js +0 -513
- package/shell-dist/assets/zustand-react-shallow.js +0 -27
- package/shell-dist/assets/zustand-react.js +0 -39
- package/shell-dist/assets/zustand-shallow.js +0 -22
- package/shell-dist/assets/zustand-vanilla-shallow.js +0 -71
- package/shell-dist/assets/zustand-vanilla.js +0 -40
- package/shell-dist/assets/zustand.js +0 -32
- /package/shell-dist/assets/{index-xZhmujjM.js → index.i0kqbxp050.js} +0 -0
- /package/shell-dist/assets/{nprogress-css.js → nprogress-css.1cq2pzkre0.js} +0 -0
- /package/shell-dist/assets/{ojm-antd-es-button.js → ojm-antd-es-button.2uriphio50.js} +0 -0
- /package/shell-dist/assets/{ojm-antd-es-modal.js → ojm-antd-es-modal.bf3tgdh8v0.js} +0 -0
- /package/shell-dist/assets/{ojm-antd-es-slider.js → ojm-antd-es-slider.xyvptuhid0.js} +0 -0
- /package/shell-dist/assets/{ojm-antd-es-upload.js → ojm-antd-es-upload.13gx45e0g0.js} +0 -0
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __export = (target, all) => {
|
|
3
|
-
for (var name in all)
|
|
4
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
// ../../node_modules/.pnpm/@dnd-kit+utilities@3.2.2_react@19.2.8/node_modules/@dnd-kit/utilities/dist/utilities.esm.js
|
|
8
|
-
var utilities_esm_exports = {};
|
|
9
|
-
__export(utilities_esm_exports, {
|
|
10
|
-
CSS: () => CSS,
|
|
11
|
-
add: () => add,
|
|
12
|
-
canUseDOM: () => canUseDOM,
|
|
13
|
-
findFirstFocusableNode: () => findFirstFocusableNode,
|
|
14
|
-
getEventCoordinates: () => getEventCoordinates,
|
|
15
|
-
getOwnerDocument: () => getOwnerDocument,
|
|
16
|
-
getWindow: () => getWindow,
|
|
17
|
-
hasViewportRelativeCoordinates: () => hasViewportRelativeCoordinates,
|
|
18
|
-
isDocument: () => isDocument,
|
|
19
|
-
isHTMLElement: () => isHTMLElement,
|
|
20
|
-
isKeyboardEvent: () => isKeyboardEvent,
|
|
21
|
-
isNode: () => isNode,
|
|
22
|
-
isSVGElement: () => isSVGElement,
|
|
23
|
-
isTouchEvent: () => isTouchEvent,
|
|
24
|
-
isWindow: () => isWindow,
|
|
25
|
-
subtract: () => subtract,
|
|
26
|
-
useCombinedRefs: () => useCombinedRefs,
|
|
27
|
-
useEvent: () => useEvent,
|
|
28
|
-
useInterval: () => useInterval,
|
|
29
|
-
useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect,
|
|
30
|
-
useLatestValue: () => useLatestValue,
|
|
31
|
-
useLazyMemo: () => useLazyMemo,
|
|
32
|
-
useNodeRef: () => useNodeRef,
|
|
33
|
-
usePrevious: () => usePrevious,
|
|
34
|
-
useUniqueId: () => useUniqueId
|
|
35
|
-
});
|
|
36
|
-
import { useMemo, useLayoutEffect, useEffect, useRef, useCallback } from "react";
|
|
37
|
-
function useCombinedRefs() {
|
|
38
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
39
|
-
refs[_key] = arguments[_key];
|
|
40
|
-
}
|
|
41
|
-
return useMemo(
|
|
42
|
-
() => (node) => {
|
|
43
|
-
refs.forEach((ref) => ref(node));
|
|
44
|
-
},
|
|
45
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
46
|
-
refs
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
var canUseDOM = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
50
|
-
function isWindow(element) {
|
|
51
|
-
const elementString = Object.prototype.toString.call(element);
|
|
52
|
-
return elementString === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
53
|
-
elementString === "[object global]";
|
|
54
|
-
}
|
|
55
|
-
function isNode(node) {
|
|
56
|
-
return "nodeType" in node;
|
|
57
|
-
}
|
|
58
|
-
function getWindow(target) {
|
|
59
|
-
var _target$ownerDocument, _target$ownerDocument2;
|
|
60
|
-
if (!target) {
|
|
61
|
-
return window;
|
|
62
|
-
}
|
|
63
|
-
if (isWindow(target)) {
|
|
64
|
-
return target;
|
|
65
|
-
}
|
|
66
|
-
if (!isNode(target)) {
|
|
67
|
-
return window;
|
|
68
|
-
}
|
|
69
|
-
return (_target$ownerDocument = (_target$ownerDocument2 = target.ownerDocument) == null ? void 0 : _target$ownerDocument2.defaultView) != null ? _target$ownerDocument : window;
|
|
70
|
-
}
|
|
71
|
-
function isDocument(node) {
|
|
72
|
-
const {
|
|
73
|
-
Document
|
|
74
|
-
} = getWindow(node);
|
|
75
|
-
return node instanceof Document;
|
|
76
|
-
}
|
|
77
|
-
function isHTMLElement(node) {
|
|
78
|
-
if (isWindow(node)) {
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
return node instanceof getWindow(node).HTMLElement;
|
|
82
|
-
}
|
|
83
|
-
function isSVGElement(node) {
|
|
84
|
-
return node instanceof getWindow(node).SVGElement;
|
|
85
|
-
}
|
|
86
|
-
function getOwnerDocument(target) {
|
|
87
|
-
if (!target) {
|
|
88
|
-
return document;
|
|
89
|
-
}
|
|
90
|
-
if (isWindow(target)) {
|
|
91
|
-
return target.document;
|
|
92
|
-
}
|
|
93
|
-
if (!isNode(target)) {
|
|
94
|
-
return document;
|
|
95
|
-
}
|
|
96
|
-
if (isDocument(target)) {
|
|
97
|
-
return target;
|
|
98
|
-
}
|
|
99
|
-
if (isHTMLElement(target) || isSVGElement(target)) {
|
|
100
|
-
return target.ownerDocument;
|
|
101
|
-
}
|
|
102
|
-
return document;
|
|
103
|
-
}
|
|
104
|
-
var useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;
|
|
105
|
-
function useEvent(handler) {
|
|
106
|
-
const handlerRef = useRef(handler);
|
|
107
|
-
useIsomorphicLayoutEffect(() => {
|
|
108
|
-
handlerRef.current = handler;
|
|
109
|
-
});
|
|
110
|
-
return useCallback(function() {
|
|
111
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
112
|
-
args[_key] = arguments[_key];
|
|
113
|
-
}
|
|
114
|
-
return handlerRef.current == null ? void 0 : handlerRef.current(...args);
|
|
115
|
-
}, []);
|
|
116
|
-
}
|
|
117
|
-
function useInterval() {
|
|
118
|
-
const intervalRef = useRef(null);
|
|
119
|
-
const set = useCallback((listener, duration) => {
|
|
120
|
-
intervalRef.current = setInterval(listener, duration);
|
|
121
|
-
}, []);
|
|
122
|
-
const clear = useCallback(() => {
|
|
123
|
-
if (intervalRef.current !== null) {
|
|
124
|
-
clearInterval(intervalRef.current);
|
|
125
|
-
intervalRef.current = null;
|
|
126
|
-
}
|
|
127
|
-
}, []);
|
|
128
|
-
return [set, clear];
|
|
129
|
-
}
|
|
130
|
-
function useLatestValue(value, dependencies) {
|
|
131
|
-
if (dependencies === void 0) {
|
|
132
|
-
dependencies = [value];
|
|
133
|
-
}
|
|
134
|
-
const valueRef = useRef(value);
|
|
135
|
-
useIsomorphicLayoutEffect(() => {
|
|
136
|
-
if (valueRef.current !== value) {
|
|
137
|
-
valueRef.current = value;
|
|
138
|
-
}
|
|
139
|
-
}, dependencies);
|
|
140
|
-
return valueRef;
|
|
141
|
-
}
|
|
142
|
-
function useLazyMemo(callback, dependencies) {
|
|
143
|
-
const valueRef = useRef();
|
|
144
|
-
return useMemo(
|
|
145
|
-
() => {
|
|
146
|
-
const newValue = callback(valueRef.current);
|
|
147
|
-
valueRef.current = newValue;
|
|
148
|
-
return newValue;
|
|
149
|
-
},
|
|
150
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
151
|
-
[...dependencies]
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
function useNodeRef(onChange) {
|
|
155
|
-
const onChangeHandler = useEvent(onChange);
|
|
156
|
-
const node = useRef(null);
|
|
157
|
-
const setNodeRef = useCallback(
|
|
158
|
-
(element) => {
|
|
159
|
-
if (element !== node.current) {
|
|
160
|
-
onChangeHandler == null ? void 0 : onChangeHandler(element, node.current);
|
|
161
|
-
}
|
|
162
|
-
node.current = element;
|
|
163
|
-
},
|
|
164
|
-
//eslint-disable-next-line
|
|
165
|
-
[]
|
|
166
|
-
);
|
|
167
|
-
return [node, setNodeRef];
|
|
168
|
-
}
|
|
169
|
-
function usePrevious(value) {
|
|
170
|
-
const ref = useRef();
|
|
171
|
-
useEffect(() => {
|
|
172
|
-
ref.current = value;
|
|
173
|
-
}, [value]);
|
|
174
|
-
return ref.current;
|
|
175
|
-
}
|
|
176
|
-
var ids = {};
|
|
177
|
-
function useUniqueId(prefix, value) {
|
|
178
|
-
return useMemo(() => {
|
|
179
|
-
if (value) {
|
|
180
|
-
return value;
|
|
181
|
-
}
|
|
182
|
-
const id = ids[prefix] == null ? 0 : ids[prefix] + 1;
|
|
183
|
-
ids[prefix] = id;
|
|
184
|
-
return prefix + "-" + id;
|
|
185
|
-
}, [prefix, value]);
|
|
186
|
-
}
|
|
187
|
-
function createAdjustmentFn(modifier) {
|
|
188
|
-
return function(object) {
|
|
189
|
-
for (var _len = arguments.length, adjustments = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
190
|
-
adjustments[_key - 1] = arguments[_key];
|
|
191
|
-
}
|
|
192
|
-
return adjustments.reduce((accumulator, adjustment) => {
|
|
193
|
-
const entries = Object.entries(adjustment);
|
|
194
|
-
for (const [key, valueAdjustment] of entries) {
|
|
195
|
-
const value = accumulator[key];
|
|
196
|
-
if (value != null) {
|
|
197
|
-
accumulator[key] = value + modifier * valueAdjustment;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
return accumulator;
|
|
201
|
-
}, {
|
|
202
|
-
...object
|
|
203
|
-
});
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
var add = /* @__PURE__ */ createAdjustmentFn(1);
|
|
207
|
-
var subtract = /* @__PURE__ */ createAdjustmentFn(-1);
|
|
208
|
-
function hasViewportRelativeCoordinates(event) {
|
|
209
|
-
return "clientX" in event && "clientY" in event;
|
|
210
|
-
}
|
|
211
|
-
function isKeyboardEvent(event) {
|
|
212
|
-
if (!event) {
|
|
213
|
-
return false;
|
|
214
|
-
}
|
|
215
|
-
const {
|
|
216
|
-
KeyboardEvent
|
|
217
|
-
} = getWindow(event.target);
|
|
218
|
-
return KeyboardEvent && event instanceof KeyboardEvent;
|
|
219
|
-
}
|
|
220
|
-
function isTouchEvent(event) {
|
|
221
|
-
if (!event) {
|
|
222
|
-
return false;
|
|
223
|
-
}
|
|
224
|
-
const {
|
|
225
|
-
TouchEvent
|
|
226
|
-
} = getWindow(event.target);
|
|
227
|
-
return TouchEvent && event instanceof TouchEvent;
|
|
228
|
-
}
|
|
229
|
-
function getEventCoordinates(event) {
|
|
230
|
-
if (isTouchEvent(event)) {
|
|
231
|
-
if (event.touches && event.touches.length) {
|
|
232
|
-
const {
|
|
233
|
-
clientX: x,
|
|
234
|
-
clientY: y
|
|
235
|
-
} = event.touches[0];
|
|
236
|
-
return {
|
|
237
|
-
x,
|
|
238
|
-
y
|
|
239
|
-
};
|
|
240
|
-
} else if (event.changedTouches && event.changedTouches.length) {
|
|
241
|
-
const {
|
|
242
|
-
clientX: x,
|
|
243
|
-
clientY: y
|
|
244
|
-
} = event.changedTouches[0];
|
|
245
|
-
return {
|
|
246
|
-
x,
|
|
247
|
-
y
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
if (hasViewportRelativeCoordinates(event)) {
|
|
252
|
-
return {
|
|
253
|
-
x: event.clientX,
|
|
254
|
-
y: event.clientY
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
return null;
|
|
258
|
-
}
|
|
259
|
-
var CSS = /* @__PURE__ */ Object.freeze({
|
|
260
|
-
Translate: {
|
|
261
|
-
toString(transform) {
|
|
262
|
-
if (!transform) {
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
const {
|
|
266
|
-
x,
|
|
267
|
-
y
|
|
268
|
-
} = transform;
|
|
269
|
-
return "translate3d(" + (x ? Math.round(x) : 0) + "px, " + (y ? Math.round(y) : 0) + "px, 0)";
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
Scale: {
|
|
273
|
-
toString(transform) {
|
|
274
|
-
if (!transform) {
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
const {
|
|
278
|
-
scaleX,
|
|
279
|
-
scaleY
|
|
280
|
-
} = transform;
|
|
281
|
-
return "scaleX(" + scaleX + ") scaleY(" + scaleY + ")";
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
Transform: {
|
|
285
|
-
toString(transform) {
|
|
286
|
-
if (!transform) {
|
|
287
|
-
return;
|
|
288
|
-
}
|
|
289
|
-
return [CSS.Translate.toString(transform), CSS.Scale.toString(transform)].join(" ");
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
Transition: {
|
|
293
|
-
toString(_ref) {
|
|
294
|
-
let {
|
|
295
|
-
property,
|
|
296
|
-
duration,
|
|
297
|
-
easing
|
|
298
|
-
} = _ref;
|
|
299
|
-
return property + " " + duration + "ms " + easing;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
var SELECTOR = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
304
|
-
function findFirstFocusableNode(element) {
|
|
305
|
-
if (element.matches(SELECTOR)) {
|
|
306
|
-
return element;
|
|
307
|
-
}
|
|
308
|
-
return element.querySelector(SELECTOR);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
// shell/.ojm-shim-dnd-kit-utilities.mjs
|
|
312
|
-
var ojm_shim_dnd_kit_utilities_default = void 0 ?? utilities_esm_exports;
|
|
313
|
-
export {
|
|
314
|
-
CSS,
|
|
315
|
-
add,
|
|
316
|
-
canUseDOM,
|
|
317
|
-
ojm_shim_dnd_kit_utilities_default as default,
|
|
318
|
-
findFirstFocusableNode,
|
|
319
|
-
getEventCoordinates,
|
|
320
|
-
getOwnerDocument,
|
|
321
|
-
getWindow,
|
|
322
|
-
hasViewportRelativeCoordinates,
|
|
323
|
-
isDocument,
|
|
324
|
-
isHTMLElement,
|
|
325
|
-
isKeyboardEvent,
|
|
326
|
-
isNode,
|
|
327
|
-
isSVGElement,
|
|
328
|
-
isTouchEvent,
|
|
329
|
-
isWindow,
|
|
330
|
-
subtract,
|
|
331
|
-
useCombinedRefs,
|
|
332
|
-
useEvent,
|
|
333
|
-
useInterval,
|
|
334
|
-
useIsomorphicLayoutEffect,
|
|
335
|
-
useLatestValue,
|
|
336
|
-
useLazyMemo,
|
|
337
|
-
useNodeRef,
|
|
338
|
-
usePrevious,
|
|
339
|
-
useUniqueId
|
|
340
|
-
};
|