@easyv/biz-components 2.1.4 → 2.1.6
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/lib/_virtual/index.es2.js +2 -2
- package/dist/lib/_virtual/index.es3.js +2 -2
- package/dist/lib/components/ai-components/mobile-voice-input/icon-button.es.js +1 -1
- package/dist/lib/components/ai-components/mobile-voice-input/mobile-voice-input.es.js +5 -5
- package/dist/lib/components/code-mirror-editor/code-mirror-editor.es.js +9 -9
- package/dist/lib/components/code-mirror-editor/code-mirror-editor.es.js.map +1 -1
- package/dist/lib/components/easyv-reactgrid-plus/easyv-react-grid-plus-context-menu.es.js +84 -0
- package/dist/lib/components/easyv-reactgrid-plus/easyv-react-grid-plus-context-menu.es.js.map +1 -0
- package/dist/lib/components/easyv-reactgrid-plus/easyv-react-grid-plus-editable-cell.es.js +58 -0
- package/dist/lib/components/easyv-reactgrid-plus/easyv-react-grid-plus-editable-cell.es.js.map +1 -0
- package/dist/lib/components/easyv-reactgrid-plus/easyv-react-grid-plus-selection.hook.es.js +97 -0
- package/dist/lib/components/easyv-reactgrid-plus/easyv-react-grid-plus-selection.hook.es.js.map +1 -0
- package/dist/lib/components/easyv-reactgrid-plus/easyv-react-grid-plus.es.js +1063 -0
- package/dist/lib/components/easyv-reactgrid-plus/easyv-react-grid-plus.es.js.map +1 -0
- package/dist/lib/components/easyv-reactgrid-plus/easyv-react-grid.module.less.es.js +7 -0
- package/dist/lib/components/easyv-reactgrid-plus/easyv-react-grid.module.less.es.js.map +1 -0
- package/dist/lib/components/easyv-reactgrid-plus/utils.es.js +93 -0
- package/dist/lib/components/easyv-reactgrid-plus/utils.es.js.map +1 -0
- package/dist/lib/easyv-biz-components/src/components/code-mirror-editor/code-mirror-editor.d.ts +2 -2
- package/dist/lib/easyv-biz-components/src/components/easyv-reactgrid-plus/easyv-react-grid-plus-context-menu.d.ts +14 -0
- package/dist/lib/easyv-biz-components/src/components/easyv-reactgrid-plus/easyv-react-grid-plus-editable-cell.d.ts +11 -0
- package/dist/lib/easyv-biz-components/src/components/easyv-reactgrid-plus/easyv-react-grid-plus-selection.hook.d.ts +16 -0
- package/dist/lib/easyv-biz-components/src/components/easyv-reactgrid-plus/easyv-react-grid-plus.d.ts +16 -0
- package/dist/lib/easyv-biz-components/src/components/easyv-reactgrid-plus/easyv-react-grid-plus.types.d.ts +18 -0
- package/dist/lib/easyv-biz-components/src/components/easyv-reactgrid-plus/index.d.ts +1 -0
- package/dist/lib/easyv-biz-components/src/components/easyv-reactgrid-plus/test/easyv-react-grid-plus.cy.d.ts +1 -0
- package/dist/lib/easyv-biz-components/src/components/easyv-reactgrid-plus/utils.d.ts +6 -0
- package/dist/lib/easyv-biz-components/src/components/index.d.ts +1 -0
- package/dist/lib/easyv-biz-components/src/utils/ai-agent-message-manager/constants.d.ts +3 -1
- package/dist/lib/easyv-biz-components/src/utils/ai-agent-message-manager/types.d.ts +1 -0
- package/dist/lib/easyv-biz-components/src/utils/ai-agent-message-manager/utils.d.ts +1 -0
- package/dist/lib/easyv-biz-components/src/utils/easy-fetch/easy-fetch.d.ts +13 -0
- package/dist/lib/easyv-biz-components/src/utils/easy-fetch/index.d.ts +1 -0
- package/dist/lib/easyv-biz-components/src/utils/easy-fetch/test/easy-fetch.cy.d.ts +1 -0
- package/dist/lib/easyv-biz-components/src/utils/easy-fetch/types.d.ts +6 -0
- package/dist/lib/easyv-biz-components/src/utils/easyv-gui-helper/component-dimension.d.ts +2 -0
- package/dist/lib/easyv-biz-components/src/utils/easyv-gui-helper/easyv-gui-helper.d.ts +3 -0
- package/dist/lib/easyv-biz-components/src/utils/easyv-gui-helper/types.d.ts +3 -0
- package/dist/lib/easyv-biz-components/src/utils/index.d.ts +2 -0
- package/dist/lib/easyv-biz-components/src/utils/twin/index.d.ts +1 -0
- package/dist/lib/easyv-biz-components/src/utils/twin/utils.d.ts +5 -0
- package/dist/lib/hooks/use-tencent-sentence-recognition/use-tencent-sentence-recognition.es.js +2 -2
- package/dist/lib/index.es.js +8 -1
- package/dist/lib/index.es.js.map +1 -1
- package/dist/lib/node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-table/build/lib/index.es.js +103 -0
- package/dist/lib/node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-table/build/lib/index.es.js.map +1 -0
- package/dist/lib/node_modules/.pnpm/@tanstack_react-virtual@3.13.23_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-virtual/dist/esm/index.es.js +53 -0
- package/dist/lib/node_modules/.pnpm/@tanstack_react-virtual@3.13.23_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-virtual/dist/esm/index.es.js.map +1 -0
- package/dist/lib/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.es.js +2672 -0
- package/dist/lib/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.es.js.map +1 -0
- package/dist/lib/node_modules/.pnpm/@tanstack_virtual-core@3.13.23/node_modules/@tanstack/virtual-core/dist/esm/index.es.js +871 -0
- package/dist/lib/node_modules/.pnpm/@tanstack_virtual-core@3.13.23/node_modules/@tanstack/virtual-core/dist/esm/index.es.js.map +1 -0
- package/dist/lib/node_modules/.pnpm/@tanstack_virtual-core@3.13.23/node_modules/@tanstack/virtual-core/dist/esm/utils.es.js +73 -0
- package/dist/lib/node_modules/.pnpm/@tanstack_virtual-core@3.13.23/node_modules/@tanstack/virtual-core/dist/esm/utils.es.js.map +1 -0
- package/dist/lib/node_modules/.pnpm/co-web-worker@1.0.1/node_modules/co-web-worker/index.es.js +1 -1
- package/dist/lib/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.es.js +11 -0
- package/dist/lib/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.es.js.map +1 -0
- package/dist/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js +1 -1
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/{button-Dip6wfc7.es.es.js → button-VOE5PncW.es.es.js} +2 -2
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/{button-Dip6wfc7.es.es.js.map → button-VOE5PncW.es.es.js.map} +1 -1
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/{index-EAFzPBke.es.es.js → index-6AIVHTQ0.es.es.js} +11 -11
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/{index-EAFzPBke.es.es.js.map → index-6AIVHTQ0.es.es.js.map} +1 -1
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/{index-zvVd1BJp.es.es.js → index-DttpqRHH.es.es.js} +596 -605
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/index-DttpqRHH.es.es.js.map +1 -0
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/{input-Dhdn9e9Z.es.es.js → input-CqQJPvav.es.es.js} +54 -54
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/{input-Dhdn9e9Z.es.es.js.map → input-CqQJPvav.es.es.js.map} +1 -1
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/{keycode-DOHuQiUY.es.es.js → keycode-cVKDBtW_.es.es.js} +4 -4
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/{keycode-DOHuQiUY.es.es.js.map → keycode-cVKDBtW_.es.es.js.map} +1 -1
- package/dist/lib/packages/easyv-arco/dist/lib/index.es.es.js.map +1 -1
- package/dist/lib/stats.html +1 -1
- package/dist/lib/style.pkg.css +1 -1
- package/dist/lib/utils/ai-agent-message-manager/ai-agent-message-manager.es.js +9 -1
- package/dist/lib/utils/ai-agent-message-manager/ai-agent-message-manager.es.js.map +1 -1
- package/dist/lib/utils/ai-agent-message-manager/constants.es.js +4 -2
- package/dist/lib/utils/ai-agent-message-manager/constants.es.js.map +1 -1
- package/dist/lib/utils/ai-agent-message-manager/types.es.js.map +1 -1
- package/dist/lib/utils/ai-agent-message-manager/utils.es.js +10 -0
- package/dist/lib/utils/ai-agent-message-manager/utils.es.js.map +1 -0
- package/dist/lib/utils/easy-fetch/easy-fetch.es.js +88 -0
- package/dist/lib/utils/easy-fetch/easy-fetch.es.js.map +1 -0
- package/dist/lib/utils/easyv-gui-helper/easyv-gui-helper.es.js +13 -4
- package/dist/lib/utils/easyv-gui-helper/easyv-gui-helper.es.js.map +1 -1
- package/dist/lib/utils/show-modal/show-modal.es.js +5 -5
- package/dist/lib/utils/twin/utils.es.js +30 -0
- package/dist/lib/utils/twin/utils.es.js.map +1 -0
- package/dist/tailwindcss.pkg.css +113 -0
- package/package.json +14 -8
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/index-zvVd1BJp.es.es.js.map +0 -1
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { createTable } from "../../../../../../@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.es.js";
|
|
3
|
+
import { ColumnFaceting, ColumnFiltering, ColumnGrouping, ColumnOrdering, ColumnPinning, ColumnSizing, ColumnVisibility, GlobalFaceting, GlobalFiltering, Headers, RowExpanding, RowPagination, RowPinning, RowSelection, RowSorting, _getVisibleLeafColumns, aggregationFns, buildHeaderGroups, createCell, createColumn, createRow, defaultColumnSizing, filterFns, flattenBy, functionalUpdate, getCoreRowModel, getMemoOptions, isFunction, isNumberArray, isRowSelected, isSubRowSelected, makeStateUpdater, memo, orderColumns, passiveEventSupported, reSplitAlphaNumeric, selectRowsFn, shouldAutoRemoveFilter, sortingFns } from "../../../../../../@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.es.js";
|
|
4
|
+
/**
|
|
5
|
+
* react-table
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) TanStack
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
11
|
+
*
|
|
12
|
+
* @license MIT
|
|
13
|
+
*/
|
|
14
|
+
function flexRender(Comp, props) {
|
|
15
|
+
return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ React.createElement(Comp, props) : Comp;
|
|
16
|
+
}
|
|
17
|
+
function isReactComponent(component) {
|
|
18
|
+
return isClassComponent(component) || typeof component === "function" || isExoticComponent(component);
|
|
19
|
+
}
|
|
20
|
+
function isClassComponent(component) {
|
|
21
|
+
return typeof component === "function" && (() => {
|
|
22
|
+
const proto = Object.getPrototypeOf(component);
|
|
23
|
+
return proto.prototype && proto.prototype.isReactComponent;
|
|
24
|
+
})();
|
|
25
|
+
}
|
|
26
|
+
function isExoticComponent(component) {
|
|
27
|
+
return typeof component === "object" && typeof component.$$typeof === "symbol" && ["react.memo", "react.forward_ref"].includes(component.$$typeof.description);
|
|
28
|
+
}
|
|
29
|
+
function useReactTable(options) {
|
|
30
|
+
const resolvedOptions = {
|
|
31
|
+
state: {},
|
|
32
|
+
// Dummy state
|
|
33
|
+
onStateChange: () => {
|
|
34
|
+
},
|
|
35
|
+
// noop
|
|
36
|
+
renderFallbackValue: null,
|
|
37
|
+
...options
|
|
38
|
+
};
|
|
39
|
+
const [tableRef] = React.useState(() => ({
|
|
40
|
+
current: createTable(resolvedOptions)
|
|
41
|
+
}));
|
|
42
|
+
const [state, setState] = React.useState(() => tableRef.current.initialState);
|
|
43
|
+
tableRef.current.setOptions((prev) => ({
|
|
44
|
+
...prev,
|
|
45
|
+
...options,
|
|
46
|
+
state: {
|
|
47
|
+
...state,
|
|
48
|
+
...options.state
|
|
49
|
+
},
|
|
50
|
+
// Similarly, we'll maintain both our internal state and any user-provided
|
|
51
|
+
// state.
|
|
52
|
+
onStateChange: (updater) => {
|
|
53
|
+
setState(updater);
|
|
54
|
+
options.onStateChange == null || options.onStateChange(updater);
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
return tableRef.current;
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
ColumnFaceting,
|
|
61
|
+
ColumnFiltering,
|
|
62
|
+
ColumnGrouping,
|
|
63
|
+
ColumnOrdering,
|
|
64
|
+
ColumnPinning,
|
|
65
|
+
ColumnSizing,
|
|
66
|
+
ColumnVisibility,
|
|
67
|
+
GlobalFaceting,
|
|
68
|
+
GlobalFiltering,
|
|
69
|
+
Headers,
|
|
70
|
+
RowExpanding,
|
|
71
|
+
RowPagination,
|
|
72
|
+
RowPinning,
|
|
73
|
+
RowSelection,
|
|
74
|
+
RowSorting,
|
|
75
|
+
_getVisibleLeafColumns,
|
|
76
|
+
aggregationFns,
|
|
77
|
+
buildHeaderGroups,
|
|
78
|
+
createCell,
|
|
79
|
+
createColumn,
|
|
80
|
+
createRow,
|
|
81
|
+
createTable,
|
|
82
|
+
defaultColumnSizing,
|
|
83
|
+
filterFns,
|
|
84
|
+
flattenBy,
|
|
85
|
+
flexRender,
|
|
86
|
+
functionalUpdate,
|
|
87
|
+
getCoreRowModel,
|
|
88
|
+
getMemoOptions,
|
|
89
|
+
isFunction,
|
|
90
|
+
isNumberArray,
|
|
91
|
+
isRowSelected,
|
|
92
|
+
isSubRowSelected,
|
|
93
|
+
makeStateUpdater,
|
|
94
|
+
memo,
|
|
95
|
+
orderColumns,
|
|
96
|
+
passiveEventSupported,
|
|
97
|
+
reSplitAlphaNumeric,
|
|
98
|
+
selectRowsFn,
|
|
99
|
+
shouldAutoRemoveFilter,
|
|
100
|
+
sortingFns,
|
|
101
|
+
useReactTable
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-table/build/lib/index.mjs"],"sourcesContent":["/**\n * react-table\n *\n * Copyright (c) TanStack\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport * as React from 'react';\nimport { createTable } from '@tanstack/table-core';\nexport * from '@tanstack/table-core';\n\n//\n\n/**\n * If rendering headers, cells, or footers with custom markup, use flexRender instead of `cell.getValue()` or `cell.renderValue()`.\n */\nfunction flexRender(Comp, props) {\n return !Comp ? null : isReactComponent(Comp) ? /*#__PURE__*/React.createElement(Comp, props) : Comp;\n}\nfunction isReactComponent(component) {\n return isClassComponent(component) || typeof component === 'function' || isExoticComponent(component);\n}\nfunction isClassComponent(component) {\n return typeof component === 'function' && (() => {\n const proto = Object.getPrototypeOf(component);\n return proto.prototype && proto.prototype.isReactComponent;\n })();\n}\nfunction isExoticComponent(component) {\n return typeof component === 'object' && typeof component.$$typeof === 'symbol' && ['react.memo', 'react.forward_ref'].includes(component.$$typeof.description);\n}\nfunction useReactTable(options) {\n // Compose in the generic options to the user options\n const resolvedOptions = {\n state: {},\n // Dummy state\n onStateChange: () => {},\n // noop\n renderFallbackValue: null,\n ...options\n };\n\n // Create a new table and store it in state\n const [tableRef] = React.useState(() => ({\n current: createTable(resolvedOptions)\n }));\n\n // By default, manage table state here using the table's initial state\n const [state, setState] = React.useState(() => tableRef.current.initialState);\n\n // Compose the default state above with any user state. This will allow the user\n // to only control a subset of the state if desired.\n tableRef.current.setOptions(prev => ({\n ...prev,\n ...options,\n state: {\n ...state,\n ...options.state\n },\n // Similarly, we'll maintain both our internal state and any user-provided\n // state.\n onStateChange: updater => {\n setState(updater);\n options.onStateChange == null || options.onStateChange(updater);\n }\n }));\n return tableRef.current;\n}\n\nexport { flexRender, useReactTable };\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBA,SAAS,WAAW,MAAM,OAAO;AAC/B,SAAO,CAAC,OAAO,OAAO,iBAAiB,IAAI,IAAiB,sBAAM,cAAc,MAAM,KAAK,IAAI;AACjG;AACA,SAAS,iBAAiB,WAAW;AACnC,SAAO,iBAAiB,SAAS,KAAK,OAAO,cAAc,cAAc,kBAAkB,SAAS;AACtG;AACA,SAAS,iBAAiB,WAAW;AACnC,SAAO,OAAO,cAAc,eAAe,MAAM;AAC/C,UAAM,QAAQ,OAAO,eAAe,SAAS;AAC7C,WAAO,MAAM,aAAa,MAAM,UAAU;AAAA,EAC9C,GAAM;AACN;AACA,SAAS,kBAAkB,WAAW;AACpC,SAAO,OAAO,cAAc,YAAY,OAAO,UAAU,aAAa,YAAY,CAAC,cAAc,mBAAmB,EAAE,SAAS,UAAU,SAAS,WAAW;AAC/J;AACA,SAAS,cAAc,SAAS;AAE9B,QAAM,kBAAkB;AAAA,IACtB,OAAO,CAAE;AAAA;AAAA,IAET,eAAe,MAAM;AAAA,IAAE;AAAA;AAAA,IAEvB,qBAAqB;AAAA,IACrB,GAAG;AAAA,EACJ;AAGD,QAAM,CAAC,QAAQ,IAAI,MAAM,SAAS,OAAO;AAAA,IACvC,SAAS,YAAY,eAAe;AAAA,EACxC,EAAI;AAGF,QAAM,CAAC,OAAO,QAAQ,IAAI,MAAM,SAAS,MAAM,SAAS,QAAQ,YAAY;AAI5E,WAAS,QAAQ,WAAW,WAAS;AAAA,IACnC,GAAG;AAAA,IACH,GAAG;AAAA,IACH,OAAO;AAAA,MACL,GAAG;AAAA,MACH,GAAG,QAAQ;AAAA,IACZ;AAAA;AAAA;AAAA,IAGD,eAAe,aAAW;AACxB,eAAS,OAAO;AAChB,cAAQ,iBAAiB,QAAQ,QAAQ,cAAc,OAAO;AAAA,IACpE;AAAA,EACA,EAAI;AACF,SAAO,SAAS;AAClB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { flushSync } from "react-dom";
|
|
3
|
+
import { Virtualizer, elementScroll, observeElementOffset, observeElementRect } from "../../../../../../@tanstack_virtual-core@3.13.23/node_modules/@tanstack/virtual-core/dist/esm/index.es.js";
|
|
4
|
+
import { defaultKeyExtractor, defaultRangeExtractor, measureElement } from "../../../../../../@tanstack_virtual-core@3.13.23/node_modules/@tanstack/virtual-core/dist/esm/index.es.js";
|
|
5
|
+
const useIsomorphicLayoutEffect = typeof document !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
6
|
+
function useVirtualizerBase({
|
|
7
|
+
useFlushSync = true,
|
|
8
|
+
...options
|
|
9
|
+
}) {
|
|
10
|
+
const rerender = React.useReducer(() => ({}), {})[1];
|
|
11
|
+
const resolvedOptions = {
|
|
12
|
+
...options,
|
|
13
|
+
onChange: (instance2, sync) => {
|
|
14
|
+
var _a;
|
|
15
|
+
if (useFlushSync && sync) {
|
|
16
|
+
flushSync(rerender);
|
|
17
|
+
} else {
|
|
18
|
+
rerender();
|
|
19
|
+
}
|
|
20
|
+
(_a = options.onChange) == null ? void 0 : _a.call(options, instance2, sync);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const [instance] = React.useState(
|
|
24
|
+
() => new Virtualizer(resolvedOptions)
|
|
25
|
+
);
|
|
26
|
+
instance.setOptions(resolvedOptions);
|
|
27
|
+
useIsomorphicLayoutEffect(() => {
|
|
28
|
+
return instance._didMount();
|
|
29
|
+
}, []);
|
|
30
|
+
useIsomorphicLayoutEffect(() => {
|
|
31
|
+
return instance._willUpdate();
|
|
32
|
+
});
|
|
33
|
+
return instance;
|
|
34
|
+
}
|
|
35
|
+
function useVirtualizer(options) {
|
|
36
|
+
return useVirtualizerBase({
|
|
37
|
+
observeElementRect,
|
|
38
|
+
observeElementOffset,
|
|
39
|
+
scrollToFn: elementScroll,
|
|
40
|
+
...options
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
Virtualizer,
|
|
45
|
+
defaultKeyExtractor,
|
|
46
|
+
defaultRangeExtractor,
|
|
47
|
+
elementScroll,
|
|
48
|
+
measureElement,
|
|
49
|
+
observeElementOffset,
|
|
50
|
+
observeElementRect,
|
|
51
|
+
useVirtualizer
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/@tanstack+react-virtual@3.13.23_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-virtual/dist/esm/index.js"],"sourcesContent":["import * as React from \"react\";\nimport { flushSync } from \"react-dom\";\nimport { Virtualizer, elementScroll, observeElementOffset, observeElementRect, windowScroll, observeWindowOffset, observeWindowRect } from \"@tanstack/virtual-core\";\nexport * from \"@tanstack/virtual-core\";\nconst useIsomorphicLayoutEffect = typeof document !== \"undefined\" ? React.useLayoutEffect : React.useEffect;\nfunction useVirtualizerBase({\n useFlushSync = true,\n ...options\n}) {\n const rerender = React.useReducer(() => ({}), {})[1];\n const resolvedOptions = {\n ...options,\n onChange: (instance2, sync) => {\n var _a;\n if (useFlushSync && sync) {\n flushSync(rerender);\n } else {\n rerender();\n }\n (_a = options.onChange) == null ? void 0 : _a.call(options, instance2, sync);\n }\n };\n const [instance] = React.useState(\n () => new Virtualizer(resolvedOptions)\n );\n instance.setOptions(resolvedOptions);\n useIsomorphicLayoutEffect(() => {\n return instance._didMount();\n }, []);\n useIsomorphicLayoutEffect(() => {\n return instance._willUpdate();\n });\n return instance;\n}\nfunction useVirtualizer(options) {\n return useVirtualizerBase({\n observeElementRect,\n observeElementOffset,\n scrollToFn: elementScroll,\n ...options\n });\n}\nfunction useWindowVirtualizer(options) {\n return useVirtualizerBase({\n getScrollElement: () => typeof document !== \"undefined\" ? window : null,\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset: () => typeof document !== \"undefined\" ? window.scrollY : 0,\n ...options\n });\n}\nexport {\n useVirtualizer,\n useWindowVirtualizer\n};\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;;AAIA,MAAM,4BAA4B,OAAO,aAAa,cAAc,MAAM,kBAAkB,MAAM;AAClG,SAAS,mBAAmB;AAAA,EAC1B,eAAe;AAAA,EACf,GAAG;AACL,GAAG;AACD,QAAM,WAAW,MAAM,WAAW,OAAO,CAAA,IAAK,CAAA,CAAE,EAAE,CAAC;AACnD,QAAM,kBAAkB;AAAA,IACtB,GAAG;AAAA,IACH,UAAU,CAAC,WAAW,SAAS;AAC7B,UAAI;AACJ,UAAI,gBAAgB,MAAM;AACxB,kBAAU,QAAQ;AAAA,MAC1B,OAAa;AACL,iBAAU;AAAA,MAClB;AACM,OAAC,KAAK,QAAQ,aAAa,OAAO,SAAS,GAAG,KAAK,SAAS,WAAW,IAAI;AAAA,IACjF;AAAA,EACG;AACD,QAAM,CAAC,QAAQ,IAAI,MAAM;AAAA,IACvB,MAAM,IAAI,YAAY,eAAe;AAAA,EACtC;AACD,WAAS,WAAW,eAAe;AACnC,4BAA0B,MAAM;AAC9B,WAAO,SAAS,UAAW;AAAA,EAC5B,GAAE,EAAE;AACL,4BAA0B,MAAM;AAC9B,WAAO,SAAS,YAAa;AAAA,EACjC,CAAG;AACD,SAAO;AACT;AACA,SAAS,eAAe,SAAS;AAC/B,SAAO,mBAAmB;AAAA,IACxB;AAAA,IACA;AAAA,IACA,YAAY;AAAA,IACZ,GAAG;AAAA,EACP,CAAG;AACH;","x_google_ignoreList":[0]}
|