fast-element-plus 1.0.21 → 2.0.0
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/CHANGELOG.md +36 -0
- package/CONTRIBUTING.md +83 -0
- package/README.md +74 -115
- package/README.zh.md +74 -115
- package/SECURITY.md +34 -0
- package/dist/_virtual/_rolldown/runtime.mjs +13 -0
- package/dist/component.d.ts +4 -0
- package/dist/component.mjs +56 -0
- package/dist/component.mjs.map +1 -0
- package/dist/components/avatar/index.d.ts +15 -0
- package/dist/components/avatar/index.mjs +9 -0
- package/dist/components/avatar/index.mjs.map +1 -0
- package/dist/components/avatar/src/avatar.d.ts +128 -0
- package/dist/components/avatar/src/avatar.mjs +64 -0
- package/dist/components/avatar/src/avatar.mjs.map +1 -0
- package/dist/components/button/index.d.ts +14 -0
- package/dist/components/button/index.mjs +9 -0
- package/dist/components/button/index.mjs.map +1 -0
- package/dist/components/button/src/button.d.ts +180 -0
- package/dist/components/button/src/button.mjs +108 -0
- package/dist/components/button/src/button.mjs.map +1 -0
- package/dist/components/carNumber/index.d.ts +8 -0
- package/dist/components/carNumber/index.mjs +10 -0
- package/dist/components/carNumber/index.mjs.map +1 -0
- package/dist/components/carNumber/src/carNumber.d.ts +230 -0
- package/dist/components/carNumber/src/carNumber.mjs +149 -0
- package/dist/components/carNumber/src/carNumber.mjs.map +1 -0
- package/dist/components/carNumber/src/common.d.ts +15 -0
- package/dist/components/carNumber/src/common.mjs +97 -0
- package/dist/components/carNumber/src/common.mjs.map +1 -0
- package/dist/components/contextMenu/index.d.ts +8 -0
- package/dist/components/contextMenu/index.mjs +9 -0
- package/dist/components/contextMenu/index.mjs.map +1 -0
- package/dist/components/contextMenu/src/contextMenu.d.ts +32 -0
- package/dist/components/contextMenu/src/contextMenu.mjs +79 -0
- package/dist/components/contextMenu/src/contextMenu.mjs.map +1 -0
- package/dist/components/contextMenu/src/contextMenu.type.d.ts +31 -0
- package/dist/components/dialog/index.d.ts +14 -0
- package/dist/components/dialog/index.mjs +9 -0
- package/dist/components/dialog/index.mjs.map +1 -0
- package/dist/components/dialog/src/dialog.d.ts +472 -0
- package/dist/components/dialog/src/dialog.mjs +287 -0
- package/dist/components/dialog/src/dialog.mjs.map +1 -0
- package/dist/components/drawer/index.d.ts +15 -0
- package/dist/components/drawer/index.mjs +9 -0
- package/dist/components/drawer/index.mjs.map +1 -0
- package/dist/components/drawer/src/drawer.d.ts +470 -0
- package/dist/components/drawer/src/drawer.mjs +297 -0
- package/dist/components/drawer/src/drawer.mjs.map +1 -0
- package/dist/components/form/index.d.ts +23 -0
- package/dist/components/form/index.mjs +13 -0
- package/dist/components/form/index.mjs.map +1 -0
- package/dist/components/form/src/form.d.ts +208 -0
- package/dist/components/form/src/form.mjs +120 -0
- package/dist/components/form/src/form.mjs.map +1 -0
- package/dist/components/form/src/formItem.d.ts +208 -0
- package/dist/components/form/src/formItem.mjs +86 -0
- package/dist/components/form/src/formItem.mjs.map +1 -0
- package/dist/components/form/utils/form.d.ts +83 -0
- package/dist/components/form/utils/form.mjs +176 -0
- package/dist/components/form/utils/form.mjs.map +1 -0
- package/dist/components/formItemTip/index.d.ts +12 -0
- package/dist/components/formItemTip/index.mjs +9 -0
- package/dist/components/formItemTip/index.mjs.map +1 -0
- package/dist/components/formItemTip/src/formItemTip.d.ts +24 -0
- package/dist/components/formItemTip/src/formItemTip.mjs +30 -0
- package/dist/components/formItemTip/src/formItemTip.mjs.map +1 -0
- package/dist/components/icon/index.d.ts +12 -0
- package/dist/components/icon/index.mjs +9 -0
- package/dist/components/icon/index.mjs.map +1 -0
- package/dist/components/icon/src/icon.d.ts +40 -0
- package/dist/components/icon/src/icon.mjs +54 -0
- package/dist/components/icon/src/icon.mjs.map +1 -0
- package/dist/components/iconSelector/index.d.ts +7 -0
- package/dist/components/iconSelector/index.mjs +9 -0
- package/dist/components/iconSelector/index.mjs.map +1 -0
- package/dist/components/iconSelector/src/iconSelector.d.ts +35 -0
- package/dist/components/iconSelector/src/iconSelector.mjs +147 -0
- package/dist/components/iconSelector/src/iconSelector.mjs.map +1 -0
- package/dist/components/image/index.d.ts +12 -0
- package/dist/components/image/index.mjs +9 -0
- package/dist/components/image/index.mjs.map +1 -0
- package/dist/components/image/src/image.d.ts +277 -0
- package/dist/components/image/src/image.mjs +97 -0
- package/dist/components/image/src/image.mjs.map +1 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.mjs +124 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/components/inputDialogPage/index.d.ts +14 -0
- package/dist/components/inputDialogPage/index.mjs +9 -0
- package/dist/components/inputDialogPage/index.mjs.map +1 -0
- package/dist/components/inputDialogPage/src/inputDialogPage.d.ts +134 -0
- package/dist/components/inputDialogPage/src/inputDialogPage.mjs +154 -0
- package/dist/components/inputDialogPage/src/inputDialogPage.mjs.map +1 -0
- package/dist/components/layoutGrid/index.d.ts +17 -0
- package/dist/components/layoutGrid/index.mjs +12 -0
- package/dist/components/layoutGrid/index.mjs.map +1 -0
- package/dist/components/layoutGrid/src/layoutGrid.d.ts +61 -0
- package/dist/components/layoutGrid/src/layoutGrid.mjs +163 -0
- package/dist/components/layoutGrid/src/layoutGrid.mjs.map +1 -0
- package/dist/components/layoutGrid/src/layoutGrid.type.d.ts +7 -0
- package/dist/components/layoutGrid/src/layoutGridItem.d.ts +101 -0
- package/dist/components/layoutGrid/src/layoutGridItem.mjs +85 -0
- package/dist/components/layoutGrid/src/layoutGridItem.mjs.map +1 -0
- package/dist/components/select/index.d.ts +23 -0
- package/dist/components/select/index.mjs +12 -0
- package/dist/components/select/index.mjs.map +1 -0
- package/dist/components/select/src/select.d.ts +618 -0
- package/dist/components/select/src/select.mjs +349 -0
- package/dist/components/select/src/select.mjs.map +1 -0
- package/dist/components/select/src/select.type.d.ts +32 -0
- package/dist/components/select/src/selectOption.d.ts +59 -0
- package/dist/components/select/src/selectOption.mjs +69 -0
- package/dist/components/select/src/selectOption.mjs.map +1 -0
- package/dist/components/selectPage/index.d.ts +14 -0
- package/dist/components/selectPage/index.mjs +9 -0
- package/dist/components/selectPage/index.mjs.map +1 -0
- package/dist/components/selectPage/src/selectPage.d.ts +583 -0
- package/dist/components/selectPage/src/selectPage.mjs +388 -0
- package/dist/components/selectPage/src/selectPage.mjs.map +1 -0
- package/dist/components/selectV2/index.d.ts +15 -0
- package/dist/components/selectV2/index.mjs +9 -0
- package/dist/components/selectV2/index.mjs.map +1 -0
- package/dist/components/selectV2/src/selectV2.d.ts +1477 -0
- package/dist/components/selectV2/src/selectV2.mjs +649 -0
- package/dist/components/selectV2/src/selectV2.mjs.map +1 -0
- package/dist/components/table/images/artwork.mjs +6 -0
- package/dist/components/table/images/artwork.mjs.map +1 -0
- package/dist/components/table/images/notImage.mjs +6 -0
- package/dist/components/table/images/notImage.mjs.map +1 -0
- package/dist/components/table/index.d.ts +34 -0
- package/dist/components/table/index.mjs +25 -0
- package/dist/components/table/index.mjs.map +1 -0
- package/dist/components/table/src/page.type.d.ts +145 -0
- package/dist/components/table/src/page.type.mjs +45 -0
- package/dist/components/table/src/page.type.mjs.map +1 -0
- package/dist/components/table/src/table.d.ts +1522 -0
- package/dist/components/table/src/table.mjs +1012 -0
- package/dist/components/table/src/table.mjs.map +1 -0
- package/dist/components/table/src/table.state.d.ts +113 -0
- package/dist/components/table/src/table.type.d.ts +266 -0
- package/dist/components/table/src/table.type.mjs +20 -0
- package/dist/components/table/src/table.type.mjs.map +1 -0
- package/dist/components/table/src/tableColumn.d.ts +666 -0
- package/dist/components/table/src/tableColumn.mjs +604 -0
- package/dist/components/table/src/tableColumn.mjs.map +1 -0
- package/dist/components/table/src/tableColumnSettingDialog.d.ts +18 -0
- package/dist/components/table/src/tableColumnSettingDialog.mjs +307 -0
- package/dist/components/table/src/tableColumnSettingDialog.mjs.map +1 -0
- package/dist/components/table/src/tablePagination.d.ts +24 -0
- package/dist/components/table/src/tablePagination.mjs +58 -0
- package/dist/components/table/src/tablePagination.mjs.map +1 -0
- package/dist/components/table/src/tableSearchForm.d.ts +86 -0
- package/dist/components/table/src/tableSearchForm.mjs +229 -0
- package/dist/components/table/src/tableSearchForm.mjs.map +1 -0
- package/dist/components/table/src/tableSearchFormItem.d.ts +35 -0
- package/dist/components/table/src/tableSearchFormItem.mjs +216 -0
- package/dist/components/table/src/tableSearchFormItem.mjs.map +1 -0
- package/dist/components/table/src/useTable.d.ts +44 -0
- package/dist/components/table/src/useTable.mjs +408 -0
- package/dist/components/table/src/useTable.mjs.map +1 -0
- package/dist/components/table/utils/table.d.ts +46 -0
- package/dist/components/table/utils/table.mjs +113 -0
- package/dist/components/table/utils/table.mjs.map +1 -0
- package/dist/components/tree/index.d.ts +15 -0
- package/dist/components/tree/index.mjs +9 -0
- package/dist/components/tree/index.mjs.map +1 -0
- package/dist/components/tree/src/tree.d.ts +579 -0
- package/dist/components/tree/src/tree.mjs +339 -0
- package/dist/components/tree/src/tree.mjs.map +1 -0
- package/dist/components/tree/src/tree.props.d.ts +33 -0
- package/dist/components/tree/src/tree.type.d.ts +38 -0
- package/dist/components/treeSelect/index.d.ts +14 -0
- package/dist/components/treeSelect/index.mjs +9 -0
- package/dist/components/treeSelect/index.mjs.map +1 -0
- package/dist/components/treeSelect/src/treeSelect.d.ts +1036 -0
- package/dist/components/treeSelect/src/treeSelect.mjs +463 -0
- package/dist/components/treeSelect/src/treeSelect.mjs.map +1 -0
- package/dist/components/upload/index.d.ts +14 -0
- package/dist/components/upload/index.mjs +9 -0
- package/dist/components/upload/index.mjs.map +1 -0
- package/dist/components/upload/src/upload.d.ts +488 -0
- package/dist/components/upload/src/upload.mjs +136 -0
- package/dist/components/upload/src/upload.mjs.map +1 -0
- package/dist/components/upload/src/useUpload.d.ts +35 -0
- package/dist/components/upload/src/useUpload.mjs +170 -0
- package/dist/components/upload/src/useUpload.mjs.map +1 -0
- package/dist/components/upload/utils/upload.d.ts +34 -0
- package/dist/components/upload/utils/upload.mjs +108 -0
- package/dist/components/upload/utils/upload.mjs.map +1 -0
- package/dist/components/uploadImage/index.d.ts +14 -0
- package/dist/components/uploadImage/index.mjs +9 -0
- package/dist/components/uploadImage/index.mjs.map +1 -0
- package/dist/components/uploadImage/src/uploadImage.d.ts +538 -0
- package/dist/components/uploadImage/src/uploadImage.mjs +203 -0
- package/dist/components/uploadImage/src/uploadImage.mjs.map +1 -0
- package/dist/components/uploadImages/index.d.ts +15 -0
- package/dist/components/uploadImages/index.mjs +9 -0
- package/dist/components/uploadImages/index.mjs.map +1 -0
- package/dist/components/uploadImages/src/uploadImages.d.ts +507 -0
- package/dist/components/uploadImages/src/uploadImages.mjs +186 -0
- package/dist/components/uploadImages/src/uploadImages.mjs.map +1 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/mime.d.ts +59 -0
- package/dist/constants/mime.mjs +64 -0
- package/dist/constants/mime.mjs.map +1 -0
- package/dist/constants/regex.d.ts +76 -0
- package/dist/constants/regex.mjs +81 -0
- package/dist/constants/regex.mjs.map +1 -0
- package/dist/directive.d.ts +4 -0
- package/dist/directive.mjs +20 -0
- package/dist/directive.mjs.map +1 -0
- package/dist/directives/click-copy/index.d.ts +3 -0
- package/dist/directives/click-copy/index.mjs +39 -0
- package/dist/directives/click-copy/index.mjs.map +1 -0
- package/dist/directives/click-debounce/index.d.ts +7 -0
- package/dist/directives/click-debounce/index.mjs +17 -0
- package/dist/directives/click-debounce/index.mjs.map +1 -0
- package/dist/directives/click-draggable/index.d.ts +3 -0
- package/dist/directives/click-draggable/index.mjs +31 -0
- package/dist/directives/click-draggable/index.mjs.map +1 -0
- package/dist/directives/click-icon-copy/index.d.ts +3 -0
- package/dist/directives/click-icon-copy/index.mjs +47 -0
- package/dist/directives/click-icon-copy/index.mjs.map +1 -0
- package/dist/directives/click-longpress/index.d.ts +3 -0
- package/dist/directives/click-longpress/index.mjs +31 -0
- package/dist/directives/click-longpress/index.mjs.map +1 -0
- package/dist/directives/click-throttle/index.d.ts +7 -0
- package/dist/directives/click-throttle/index.mjs +26 -0
- package/dist/directives/click-throttle/index.mjs.map +1 -0
- package/dist/directives/index.d.ts +6 -0
- package/dist/element-plus.d.ts +8 -0
- package/dist/element-plus.mjs +172 -0
- package/dist/element-plus.mjs.map +1 -0
- package/dist/global.d.ts +58 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/use-loading/index.d.ts +7 -0
- package/dist/hooks/use-loading/index.mjs +43 -0
- package/dist/hooks/use-loading/index.mjs.map +1 -0
- package/dist/hooks/use-overlay/index.d.ts +11 -0
- package/dist/hooks/use-overlay/index.mjs +33 -0
- package/dist/hooks/use-overlay/index.mjs.map +1 -0
- package/dist/hooks/use-screenFull/index.d.ts +15 -0
- package/dist/hooks/use-screenFull/index.mjs +56 -0
- package/dist/hooks/use-screenFull/index.mjs.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.global.min.js +23 -0
- package/dist/index.global.min.js.map +1 -0
- package/dist/index.mjs +71 -0
- package/dist/index.mjs.map +1 -0
- package/dist/make-installer.d.ts +8 -0
- package/dist/make-installer.mjs +28 -0
- package/dist/make-installer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.mjs +100 -0
- package/dist/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.mjs +25 -0
- package/dist/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.mjs +1997 -0
- package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.mjs +30 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.mjs +30 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.mjs +30 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.mjs +23 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.mjs +27 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.mjs +26 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.mjs +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.mjs +23 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.mjs +118 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.mjs +27 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.mjs +31 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.mjs +26 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.mjs +61 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.mjs +37 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.mjs +47 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.mjs +23 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.mjs +25 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.mjs +29 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnset.mjs +31 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnset.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.mjs +16 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.mjs +27 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.mjs +30 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_customOmitClone.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_customOmitClone.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.mjs +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.mjs +57 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.mjs +77 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.mjs +56 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.mjs +38 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.mjs +45 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.mjs +16 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.mjs +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.mjs +27 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.mjs +66 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.mjs +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.mjs +16 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.mjs +16 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.mjs +25 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.mjs +23 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.mjs +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.mjs +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.mjs +28 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_parent.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_parent.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.mjs +16 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.mjs +29 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.mjs +35 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.mjs +25 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.mjs +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.mjs +25 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.mjs +29 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.mjs +40 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.mjs +23 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.mjs +36 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.mjs +29 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.mjs +35 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBoolean.mjs +29 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBoolean.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.mjs +31 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.mjs +37 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.mjs +34 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.mjs +36 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.mjs +27 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNil.mjs +28 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNil.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNull.mjs +25 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNull.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNumber.mjs +38 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNumber.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.mjs +34 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.mjs +32 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.mjs +54 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.mjs +27 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isString.mjs +30 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isString.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.mjs +29 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.mjs +27 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.mjs +25 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.mjs +39 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.mjs +34 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.mjs +23 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.mjs +65 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/omit.mjs +52 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/omit.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.mjs +26 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.mjs +30 -0
- package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.mjs.map +1 -0
- package/dist/node_modules/.pnpm/screenfull@6.0.2/node_modules/screenfull/index.mjs +120 -0
- package/dist/node_modules/.pnpm/screenfull@6.0.2/node_modules/screenfull/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.mjs +1925 -0
- package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.mjs.map +1 -0
- package/dist/utils/async/index.d.ts +35 -0
- package/dist/utils/async/index.mjs +94 -0
- package/dist/utils/async/index.mjs.map +1 -0
- package/dist/utils/date/index.d.ts +74 -0
- package/dist/utils/date/index.mjs +190 -0
- package/dist/utils/date/index.mjs.map +1 -0
- package/dist/utils/dom/index.d.ts +9 -0
- package/dist/utils/dom/index.mjs +35 -0
- package/dist/utils/dom/index.mjs.map +1 -0
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/string/index.d.ts +20 -0
- package/dist/utils/string/index.mjs +101 -0
- package/dist/utils/string/index.mjs.map +1 -0
- package/dist/utils/vue/emits.d.ts +23 -0
- package/dist/utils/vue/emits.mjs +47 -0
- package/dist/utils/vue/emits.mjs.map +1 -0
- package/dist/utils/vue/expose.d.ts +8 -0
- package/dist/utils/vue/expose.mjs +16 -0
- package/dist/utils/vue/expose.mjs.map +1 -0
- package/dist/utils/vue/func.d.ts +10 -0
- package/dist/utils/vue/func.mjs +16 -0
- package/dist/utils/vue/func.mjs.map +1 -0
- package/dist/utils/vue/index.d.ts +13 -0
- package/dist/utils/vue/install.d.ts +47 -0
- package/dist/utils/vue/install.mjs +123 -0
- package/dist/utils/vue/install.mjs.map +1 -0
- package/dist/utils/vue/props.d.ts +19 -0
- package/dist/utils/vue/props.mjs +41 -0
- package/dist/utils/vue/props.mjs.map +1 -0
- package/dist/utils/vue/render.d.ts +8 -0
- package/dist/utils/vue/render.mjs +17 -0
- package/dist/utils/vue/render.mjs.map +1 -0
- package/dist/utils/vue/slots.d.ts +18 -0
- package/dist/utils/vue/slots.mjs +13 -0
- package/dist/utils/vue/slots.mjs.map +1 -0
- package/dist/utils/vue/with.d.ts +8 -0
- package/dist/utils/vue/with.mjs +15 -0
- package/dist/utils/vue/with.mjs.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.mjs +7 -0
- package/dist/version.mjs.map +1 -0
- package/package.json +91 -101
- package/dist/index.full.js +0 -27745
- package/dist/index.full.js.map +0 -1
- package/dist/index.full.min.js +0 -11042
- package/dist/index.full.min.js.map +0 -1
- package/dist/index.full.min.mjs +0 -11033
- package/dist/index.full.min.mjs.map +0 -1
- package/dist/index.full.mjs +0 -27737
- package/dist/index.full.mjs.map +0 -1
- package/dist/styles/index.css +0 -1003
- package/dist/styles/index.css.map +0 -1
- package/es/_virtual/_rolldown/runtime.mjs +0 -1
- package/es/component.d.ts +0 -3
- package/es/component.mjs +0 -2
- package/es/component.mjs.map +0 -1
- package/es/components/avatar/index.d.ts +0 -14
- package/es/components/avatar/index.mjs +0 -2
- package/es/components/avatar/index.mjs.map +0 -1
- package/es/components/avatar/src/avatar.d.ts +0 -125
- package/es/components/avatar/src/avatar.mjs +0 -2
- package/es/components/avatar/src/avatar.mjs.map +0 -1
- package/es/components/button/index.d.ts +0 -15
- package/es/components/button/index.mjs +0 -2
- package/es/components/button/index.mjs.map +0 -1
- package/es/components/button/src/button.d.ts +0 -177
- package/es/components/button/src/button.mjs +0 -2
- package/es/components/button/src/button.mjs.map +0 -1
- package/es/components/carNumber/index.d.ts +0 -9
- package/es/components/carNumber/index.mjs +0 -2
- package/es/components/carNumber/index.mjs.map +0 -1
- package/es/components/carNumber/src/carNumber.d.ts +0 -228
- package/es/components/carNumber/src/carNumber.mjs +0 -2
- package/es/components/carNumber/src/carNumber.mjs.map +0 -1
- package/es/components/carNumber/src/common.d.ts +0 -15
- package/es/components/carNumber/src/common.mjs +0 -2
- package/es/components/carNumber/src/common.mjs.map +0 -1
- package/es/components/contextMenu/index.d.ts +0 -9
- package/es/components/contextMenu/index.mjs +0 -2
- package/es/components/contextMenu/index.mjs.map +0 -1
- package/es/components/contextMenu/src/contextMenu.d.ts +0 -32
- package/es/components/contextMenu/src/contextMenu.mjs +0 -2
- package/es/components/contextMenu/src/contextMenu.mjs.map +0 -1
- package/es/components/contextMenu/src/contextMenu.type.d.ts +0 -33
- package/es/components/dialog/index.d.ts +0 -14
- package/es/components/dialog/index.mjs +0 -2
- package/es/components/dialog/index.mjs.map +0 -1
- package/es/components/dialog/src/dialog.d.ts +0 -454
- package/es/components/dialog/src/dialog.mjs +0 -2
- package/es/components/dialog/src/dialog.mjs.map +0 -1
- package/es/components/drawer/index.d.ts +0 -14
- package/es/components/drawer/index.mjs +0 -2
- package/es/components/drawer/index.mjs.map +0 -1
- package/es/components/drawer/src/drawer.d.ts +0 -458
- package/es/components/drawer/src/drawer.mjs +0 -2
- package/es/components/drawer/src/drawer.mjs.map +0 -1
- package/es/components/form/index.d.ts +0 -23
- package/es/components/form/index.mjs +0 -2
- package/es/components/form/index.mjs.map +0 -1
- package/es/components/form/src/form.d.ts +0 -194
- package/es/components/form/src/form.mjs +0 -2
- package/es/components/form/src/form.mjs.map +0 -1
- package/es/components/form/src/formItem.d.ts +0 -204
- package/es/components/form/src/formItem.mjs +0 -2
- package/es/components/form/src/formItem.mjs.map +0 -1
- package/es/components/form/utils/form.d.ts +0 -81
- package/es/components/form/utils/form.mjs +0 -2
- package/es/components/form/utils/form.mjs.map +0 -1
- package/es/components/formItemTip/index.d.ts +0 -12
- package/es/components/formItemTip/index.mjs +0 -2
- package/es/components/formItemTip/index.mjs.map +0 -1
- package/es/components/formItemTip/src/formItemTip.d.ts +0 -22
- package/es/components/formItemTip/src/formItemTip.mjs +0 -2
- package/es/components/formItemTip/src/formItemTip.mjs.map +0 -1
- package/es/components/icon/index.d.ts +0 -12
- package/es/components/icon/index.mjs +0 -2
- package/es/components/icon/index.mjs.map +0 -1
- package/es/components/icon/src/icon.d.ts +0 -39
- package/es/components/icon/src/icon.mjs +0 -2
- package/es/components/icon/src/icon.mjs.map +0 -1
- package/es/components/iconSelector/index.d.ts +0 -7
- package/es/components/iconSelector/index.mjs +0 -2
- package/es/components/iconSelector/index.mjs.map +0 -1
- package/es/components/iconSelector/src/iconSelector.d.ts +0 -23
- package/es/components/iconSelector/src/iconSelector.mjs +0 -2
- package/es/components/iconSelector/src/iconSelector.mjs.map +0 -1
- package/es/components/image/index.d.ts +0 -12
- package/es/components/image/index.mjs +0 -2
- package/es/components/image/index.mjs.map +0 -1
- package/es/components/image/src/image.d.ts +0 -232
- package/es/components/image/src/image.mjs +0 -2
- package/es/components/image/src/image.mjs.map +0 -1
- package/es/components/index.d.ts +0 -22
- package/es/components/index.mjs +0 -2
- package/es/components/index.mjs.map +0 -1
- package/es/components/inputDialogPage/index.d.ts +0 -14
- package/es/components/inputDialogPage/index.mjs +0 -2
- package/es/components/inputDialogPage/index.mjs.map +0 -1
- package/es/components/inputDialogPage/src/inputDialogPage.d.ts +0 -132
- package/es/components/inputDialogPage/src/inputDialogPage.mjs +0 -2
- package/es/components/inputDialogPage/src/inputDialogPage.mjs.map +0 -1
- package/es/components/layoutGrid/index.d.ts +0 -16
- package/es/components/layoutGrid/index.mjs +0 -2
- package/es/components/layoutGrid/index.mjs.map +0 -1
- package/es/components/layoutGrid/src/layoutGrid.d.ts +0 -60
- package/es/components/layoutGrid/src/layoutGrid.mjs +0 -2
- package/es/components/layoutGrid/src/layoutGrid.mjs.map +0 -1
- package/es/components/layoutGrid/src/layoutGrid.type.d.ts +0 -12
- package/es/components/layoutGrid/src/layoutGrid.type.mjs +0 -0
- package/es/components/layoutGrid/src/layoutGridItem.d.ts +0 -100
- package/es/components/layoutGrid/src/layoutGridItem.mjs +0 -2
- package/es/components/layoutGrid/src/layoutGridItem.mjs.map +0 -1
- package/es/components/select/index.d.ts +0 -22
- package/es/components/select/index.mjs +0 -2
- package/es/components/select/index.mjs.map +0 -1
- package/es/components/select/src/select.d.ts +0 -1206
- package/es/components/select/src/select.mjs +0 -2
- package/es/components/select/src/select.mjs.map +0 -1
- package/es/components/select/src/select.type.d.ts +0 -28
- package/es/components/select/src/select.type.mjs +0 -0
- package/es/components/select/src/selectOption.d.ts +0 -99
- package/es/components/select/src/selectOption.mjs +0 -2
- package/es/components/select/src/selectOption.mjs.map +0 -1
- package/es/components/selectPage/index.d.ts +0 -14
- package/es/components/selectPage/index.mjs +0 -2
- package/es/components/selectPage/index.mjs.map +0 -1
- package/es/components/selectPage/src/selectPage.d.ts +0 -609
- package/es/components/selectPage/src/selectPage.mjs +0 -2
- package/es/components/selectPage/src/selectPage.mjs.map +0 -1
- package/es/components/selectV2/index.d.ts +0 -14
- package/es/components/selectV2/index.mjs +0 -2
- package/es/components/selectV2/index.mjs.map +0 -1
- package/es/components/selectV2/src/selectV2.d.ts +0 -1399
- package/es/components/selectV2/src/selectV2.mjs +0 -2
- package/es/components/selectV2/src/selectV2.mjs.map +0 -1
- package/es/components/table/images/artwork.mjs +0 -2
- package/es/components/table/images/artwork.mjs.map +0 -1
- package/es/components/table/images/index.d.ts +0 -4
- package/es/components/table/images/notImage.mjs +0 -2
- package/es/components/table/images/notImage.mjs.map +0 -1
- package/es/components/table/index.d.ts +0 -35
- package/es/components/table/index.mjs +0 -2
- package/es/components/table/index.mjs.map +0 -1
- package/es/components/table/src/page.type.d.ts +0 -145
- package/es/components/table/src/page.type.mjs +0 -2
- package/es/components/table/src/page.type.mjs.map +0 -1
- package/es/components/table/src/table.d.ts +0 -1439
- package/es/components/table/src/table.mjs +0 -2
- package/es/components/table/src/table.mjs.map +0 -1
- package/es/components/table/src/table.state.d.ts +0 -111
- package/es/components/table/src/table.state.mjs +0 -0
- package/es/components/table/src/table.type.d.ts +0 -261
- package/es/components/table/src/table.type.mjs +0 -2
- package/es/components/table/src/table.type.mjs.map +0 -1
- package/es/components/table/src/tableColumn.d.ts +0 -658
- package/es/components/table/src/tableColumn.mjs +0 -2
- package/es/components/table/src/tableColumn.mjs.map +0 -1
- package/es/components/table/src/tableColumnSettingDialog.d.ts +0 -18
- package/es/components/table/src/tableColumnSettingDialog.mjs +0 -2
- package/es/components/table/src/tableColumnSettingDialog.mjs.map +0 -1
- package/es/components/table/src/tablePagination.d.ts +0 -24
- package/es/components/table/src/tablePagination.mjs +0 -2
- package/es/components/table/src/tablePagination.mjs.map +0 -1
- package/es/components/table/src/tableSearchForm.d.ts +0 -88
- package/es/components/table/src/tableSearchForm.mjs +0 -2
- package/es/components/table/src/tableSearchForm.mjs.map +0 -1
- package/es/components/table/src/tableSearchFormItem.d.ts +0 -37
- package/es/components/table/src/tableSearchFormItem.mjs +0 -2
- package/es/components/table/src/tableSearchFormItem.mjs.map +0 -1
- package/es/components/table/src/useTable.d.ts +0 -32
- package/es/components/table/src/useTable.mjs +0 -2
- package/es/components/table/src/useTable.mjs.map +0 -1
- package/es/components/table/utils/table.d.ts +0 -45
- package/es/components/table/utils/table.mjs +0 -2
- package/es/components/table/utils/table.mjs.map +0 -1
- package/es/components/tree/index.d.ts +0 -15
- package/es/components/tree/index.mjs +0 -2
- package/es/components/tree/index.mjs.map +0 -1
- package/es/components/tree/src/tree.d.ts +0 -562
- package/es/components/tree/src/tree.mjs +0 -2
- package/es/components/tree/src/tree.mjs.map +0 -1
- package/es/components/tree/src/tree.props.d.ts +0 -81
- package/es/components/tree/src/tree.props.mjs +0 -2
- package/es/components/tree/src/tree.props.mjs.map +0 -1
- package/es/components/tree/src/tree.type.d.ts +0 -36
- package/es/components/tree/src/tree.type.mjs +0 -0
- package/es/components/treeSelect/index.d.ts +0 -14
- package/es/components/treeSelect/index.mjs +0 -2
- package/es/components/treeSelect/index.mjs.map +0 -1
- package/es/components/treeSelect/src/treeSelect.d.ts +0 -965
- package/es/components/treeSelect/src/treeSelect.mjs +0 -2
- package/es/components/treeSelect/src/treeSelect.mjs.map +0 -1
- package/es/components/upload/index.d.ts +0 -15
- package/es/components/upload/index.mjs +0 -2
- package/es/components/upload/index.mjs.map +0 -1
- package/es/components/upload/src/upload.d.ts +0 -529
- package/es/components/upload/src/upload.mjs +0 -2
- package/es/components/upload/src/upload.mjs.map +0 -1
- package/es/components/upload/src/useUpload.d.ts +0 -65
- package/es/components/upload/src/useUpload.mjs +0 -2
- package/es/components/upload/src/useUpload.mjs.map +0 -1
- package/es/components/upload/utils/upload.d.ts +0 -30
- package/es/components/upload/utils/upload.mjs +0 -2
- package/es/components/upload/utils/upload.mjs.map +0 -1
- package/es/components/uploadImage/index.d.ts +0 -14
- package/es/components/uploadImage/index.mjs +0 -2
- package/es/components/uploadImage/index.mjs.map +0 -1
- package/es/components/uploadImage/src/uploadImage.d.ts +0 -579
- package/es/components/uploadImage/src/uploadImage.mjs +0 -2
- package/es/components/uploadImage/src/uploadImage.mjs.map +0 -1
- package/es/components/uploadImages/index.d.ts +0 -14
- package/es/components/uploadImages/index.mjs +0 -2
- package/es/components/uploadImages/index.mjs.map +0 -1
- package/es/components/uploadImages/src/uploadImages.d.ts +0 -548
- package/es/components/uploadImages/src/uploadImages.mjs +0 -2
- package/es/components/uploadImages/src/uploadImages.mjs.map +0 -1
- package/es/constants/index.d.ts +0 -2
- package/es/constants/index.mjs +0 -1
- package/es/constants/mime.d.ts +0 -61
- package/es/constants/mime.mjs +0 -2
- package/es/constants/mime.mjs.map +0 -1
- package/es/constants/regex.d.ts +0 -78
- package/es/constants/regex.mjs +0 -2
- package/es/constants/regex.mjs.map +0 -1
- package/es/directive.d.ts +0 -2
- package/es/directive.mjs +0 -2
- package/es/directive.mjs.map +0 -1
- package/es/directives/click-copy/index.d.ts +0 -2
- package/es/directives/click-copy/index.mjs +0 -2
- package/es/directives/click-copy/index.mjs.map +0 -1
- package/es/directives/click-debounce/index.d.ts +0 -2
- package/es/directives/click-debounce/index.mjs +0 -2
- package/es/directives/click-debounce/index.mjs.map +0 -1
- package/es/directives/click-draggable/index.d.ts +0 -2
- package/es/directives/click-draggable/index.mjs +0 -2
- package/es/directives/click-draggable/index.mjs.map +0 -1
- package/es/directives/click-icon-copy/index.d.ts +0 -2
- package/es/directives/click-icon-copy/index.mjs +0 -2
- package/es/directives/click-icon-copy/index.mjs.map +0 -1
- package/es/directives/click-longpress/index.d.ts +0 -2
- package/es/directives/click-longpress/index.mjs +0 -2
- package/es/directives/click-longpress/index.mjs.map +0 -1
- package/es/directives/click-throttle/index.d.ts +0 -2
- package/es/directives/click-throttle/index.mjs +0 -2
- package/es/directives/click-throttle/index.mjs.map +0 -1
- package/es/directives/index.d.ts +0 -6
- package/es/directives/index.mjs +0 -1
- package/es/element-plus.d.ts +0 -2
- package/es/element-plus.mjs +0 -2
- package/es/element-plus.mjs.map +0 -1
- package/es/hooks/index.d.ts +0 -3
- package/es/hooks/index.mjs +0 -1
- package/es/hooks/use-loading/index.d.ts +0 -4
- package/es/hooks/use-loading/index.mjs +0 -2
- package/es/hooks/use-loading/index.mjs.map +0 -1
- package/es/hooks/use-overlay/index.d.ts +0 -4
- package/es/hooks/use-overlay/index.mjs +0 -2
- package/es/hooks/use-overlay/index.mjs.map +0 -1
- package/es/hooks/use-screenFull/index.d.ts +0 -7
- package/es/hooks/use-screenFull/index.mjs +0 -2
- package/es/hooks/use-screenFull/index.mjs.map +0 -1
- package/es/index.d.ts +0 -14
- package/es/index.es.d.ts +0 -6
- package/es/index.mjs +0 -2
- package/es/index.mjs.map +0 -1
- package/es/make-installer.d.ts +0 -6
- package/es/make-installer.mjs +0 -2
- package/es/make-installer.mjs.map +0 -1
- package/es/version.d.ts +0 -1
- package/es/version.mjs +0 -2
- package/es/version.mjs.map +0 -1
- package/global.d.ts +0 -2
- package/lib/_virtual/_rolldown/runtime.js +0 -1
- package/lib/component.d.ts +0 -3
- package/lib/component.js +0 -2
- package/lib/component.js.map +0 -1
- package/lib/components/avatar/index.d.ts +0 -14
- package/lib/components/avatar/index.js +0 -2
- package/lib/components/avatar/index.js.map +0 -1
- package/lib/components/avatar/src/avatar.d.ts +0 -125
- package/lib/components/avatar/src/avatar.js +0 -2
- package/lib/components/avatar/src/avatar.js.map +0 -1
- package/lib/components/button/index.d.ts +0 -15
- package/lib/components/button/index.js +0 -2
- package/lib/components/button/index.js.map +0 -1
- package/lib/components/button/src/button.d.ts +0 -177
- package/lib/components/button/src/button.js +0 -2
- package/lib/components/button/src/button.js.map +0 -1
- package/lib/components/carNumber/index.d.ts +0 -9
- package/lib/components/carNumber/index.js +0 -2
- package/lib/components/carNumber/index.js.map +0 -1
- package/lib/components/carNumber/src/carNumber.d.ts +0 -228
- package/lib/components/carNumber/src/carNumber.js +0 -2
- package/lib/components/carNumber/src/carNumber.js.map +0 -1
- package/lib/components/carNumber/src/common.d.ts +0 -15
- package/lib/components/carNumber/src/common.js +0 -2
- package/lib/components/carNumber/src/common.js.map +0 -1
- package/lib/components/contextMenu/index.d.ts +0 -9
- package/lib/components/contextMenu/index.js +0 -2
- package/lib/components/contextMenu/index.js.map +0 -1
- package/lib/components/contextMenu/src/contextMenu.d.ts +0 -32
- package/lib/components/contextMenu/src/contextMenu.js +0 -2
- package/lib/components/contextMenu/src/contextMenu.js.map +0 -1
- package/lib/components/contextMenu/src/contextMenu.type.d.ts +0 -33
- package/lib/components/contextMenu/src/contextMenu.type.js +0 -0
- package/lib/components/dialog/index.d.ts +0 -14
- package/lib/components/dialog/index.js +0 -2
- package/lib/components/dialog/index.js.map +0 -1
- package/lib/components/dialog/src/dialog.d.ts +0 -454
- package/lib/components/dialog/src/dialog.js +0 -2
- package/lib/components/dialog/src/dialog.js.map +0 -1
- package/lib/components/drawer/index.d.ts +0 -14
- package/lib/components/drawer/index.js +0 -2
- package/lib/components/drawer/index.js.map +0 -1
- package/lib/components/drawer/src/drawer.d.ts +0 -458
- package/lib/components/drawer/src/drawer.js +0 -2
- package/lib/components/drawer/src/drawer.js.map +0 -1
- package/lib/components/form/index.d.ts +0 -23
- package/lib/components/form/index.js +0 -2
- package/lib/components/form/index.js.map +0 -1
- package/lib/components/form/src/form.d.ts +0 -194
- package/lib/components/form/src/form.js +0 -2
- package/lib/components/form/src/form.js.map +0 -1
- package/lib/components/form/src/formItem.d.ts +0 -204
- package/lib/components/form/src/formItem.js +0 -2
- package/lib/components/form/src/formItem.js.map +0 -1
- package/lib/components/form/utils/form.d.ts +0 -81
- package/lib/components/form/utils/form.js +0 -2
- package/lib/components/form/utils/form.js.map +0 -1
- package/lib/components/formItemTip/index.d.ts +0 -12
- package/lib/components/formItemTip/index.js +0 -2
- package/lib/components/formItemTip/index.js.map +0 -1
- package/lib/components/formItemTip/src/formItemTip.d.ts +0 -22
- package/lib/components/formItemTip/src/formItemTip.js +0 -2
- package/lib/components/formItemTip/src/formItemTip.js.map +0 -1
- package/lib/components/icon/index.d.ts +0 -12
- package/lib/components/icon/index.js +0 -2
- package/lib/components/icon/index.js.map +0 -1
- package/lib/components/icon/src/icon.d.ts +0 -39
- package/lib/components/icon/src/icon.js +0 -2
- package/lib/components/icon/src/icon.js.map +0 -1
- package/lib/components/iconSelector/index.d.ts +0 -7
- package/lib/components/iconSelector/index.js +0 -2
- package/lib/components/iconSelector/index.js.map +0 -1
- package/lib/components/iconSelector/src/iconSelector.d.ts +0 -23
- package/lib/components/iconSelector/src/iconSelector.js +0 -2
- package/lib/components/iconSelector/src/iconSelector.js.map +0 -1
- package/lib/components/image/index.d.ts +0 -12
- package/lib/components/image/index.js +0 -2
- package/lib/components/image/index.js.map +0 -1
- package/lib/components/image/src/image.d.ts +0 -232
- package/lib/components/image/src/image.js +0 -2
- package/lib/components/image/src/image.js.map +0 -1
- package/lib/components/index.d.ts +0 -22
- package/lib/components/index.js +0 -2
- package/lib/components/index.js.map +0 -1
- package/lib/components/inputDialogPage/index.d.ts +0 -14
- package/lib/components/inputDialogPage/index.js +0 -2
- package/lib/components/inputDialogPage/index.js.map +0 -1
- package/lib/components/inputDialogPage/src/inputDialogPage.d.ts +0 -132
- package/lib/components/inputDialogPage/src/inputDialogPage.js +0 -2
- package/lib/components/inputDialogPage/src/inputDialogPage.js.map +0 -1
- package/lib/components/layoutGrid/index.d.ts +0 -16
- package/lib/components/layoutGrid/index.js +0 -2
- package/lib/components/layoutGrid/index.js.map +0 -1
- package/lib/components/layoutGrid/src/layoutGrid.d.ts +0 -60
- package/lib/components/layoutGrid/src/layoutGrid.js +0 -2
- package/lib/components/layoutGrid/src/layoutGrid.js.map +0 -1
- package/lib/components/layoutGrid/src/layoutGrid.type.d.ts +0 -12
- package/lib/components/layoutGrid/src/layoutGrid.type.js +0 -0
- package/lib/components/layoutGrid/src/layoutGridItem.d.ts +0 -100
- package/lib/components/layoutGrid/src/layoutGridItem.js +0 -2
- package/lib/components/layoutGrid/src/layoutGridItem.js.map +0 -1
- package/lib/components/select/index.d.ts +0 -22
- package/lib/components/select/index.js +0 -2
- package/lib/components/select/index.js.map +0 -1
- package/lib/components/select/src/select.d.ts +0 -1206
- package/lib/components/select/src/select.js +0 -2
- package/lib/components/select/src/select.js.map +0 -1
- package/lib/components/select/src/select.type.d.ts +0 -28
- package/lib/components/select/src/select.type.js +0 -0
- package/lib/components/select/src/selectOption.d.ts +0 -99
- package/lib/components/select/src/selectOption.js +0 -2
- package/lib/components/select/src/selectOption.js.map +0 -1
- package/lib/components/selectPage/index.d.ts +0 -14
- package/lib/components/selectPage/index.js +0 -2
- package/lib/components/selectPage/index.js.map +0 -1
- package/lib/components/selectPage/src/selectPage.d.ts +0 -609
- package/lib/components/selectPage/src/selectPage.js +0 -2
- package/lib/components/selectPage/src/selectPage.js.map +0 -1
- package/lib/components/selectV2/index.d.ts +0 -14
- package/lib/components/selectV2/index.js +0 -2
- package/lib/components/selectV2/index.js.map +0 -1
- package/lib/components/selectV2/src/selectV2.d.ts +0 -1399
- package/lib/components/selectV2/src/selectV2.js +0 -2
- package/lib/components/selectV2/src/selectV2.js.map +0 -1
- package/lib/components/table/images/artwork.js +0 -2
- package/lib/components/table/images/artwork.js.map +0 -1
- package/lib/components/table/images/index.d.ts +0 -4
- package/lib/components/table/images/notImage.js +0 -2
- package/lib/components/table/images/notImage.js.map +0 -1
- package/lib/components/table/index.d.ts +0 -35
- package/lib/components/table/index.js +0 -2
- package/lib/components/table/index.js.map +0 -1
- package/lib/components/table/src/page.type.d.ts +0 -145
- package/lib/components/table/src/page.type.js +0 -2
- package/lib/components/table/src/page.type.js.map +0 -1
- package/lib/components/table/src/table.d.ts +0 -1439
- package/lib/components/table/src/table.js +0 -2
- package/lib/components/table/src/table.js.map +0 -1
- package/lib/components/table/src/table.state.d.ts +0 -111
- package/lib/components/table/src/table.state.js +0 -0
- package/lib/components/table/src/table.type.d.ts +0 -261
- package/lib/components/table/src/table.type.js +0 -2
- package/lib/components/table/src/table.type.js.map +0 -1
- package/lib/components/table/src/tableColumn.d.ts +0 -658
- package/lib/components/table/src/tableColumn.js +0 -2
- package/lib/components/table/src/tableColumn.js.map +0 -1
- package/lib/components/table/src/tableColumnSettingDialog.d.ts +0 -18
- package/lib/components/table/src/tableColumnSettingDialog.js +0 -2
- package/lib/components/table/src/tableColumnSettingDialog.js.map +0 -1
- package/lib/components/table/src/tablePagination.d.ts +0 -24
- package/lib/components/table/src/tablePagination.js +0 -2
- package/lib/components/table/src/tablePagination.js.map +0 -1
- package/lib/components/table/src/tableSearchForm.d.ts +0 -88
- package/lib/components/table/src/tableSearchForm.js +0 -2
- package/lib/components/table/src/tableSearchForm.js.map +0 -1
- package/lib/components/table/src/tableSearchFormItem.d.ts +0 -37
- package/lib/components/table/src/tableSearchFormItem.js +0 -2
- package/lib/components/table/src/tableSearchFormItem.js.map +0 -1
- package/lib/components/table/src/useTable.d.ts +0 -32
- package/lib/components/table/src/useTable.js +0 -2
- package/lib/components/table/src/useTable.js.map +0 -1
- package/lib/components/table/utils/table.d.ts +0 -45
- package/lib/components/table/utils/table.js +0 -2
- package/lib/components/table/utils/table.js.map +0 -1
- package/lib/components/tree/index.d.ts +0 -15
- package/lib/components/tree/index.js +0 -2
- package/lib/components/tree/index.js.map +0 -1
- package/lib/components/tree/src/tree.d.ts +0 -562
- package/lib/components/tree/src/tree.js +0 -2
- package/lib/components/tree/src/tree.js.map +0 -1
- package/lib/components/tree/src/tree.props.d.ts +0 -81
- package/lib/components/tree/src/tree.props.js +0 -2
- package/lib/components/tree/src/tree.props.js.map +0 -1
- package/lib/components/tree/src/tree.type.d.ts +0 -36
- package/lib/components/tree/src/tree.type.js +0 -0
- package/lib/components/treeSelect/index.d.ts +0 -14
- package/lib/components/treeSelect/index.js +0 -2
- package/lib/components/treeSelect/index.js.map +0 -1
- package/lib/components/treeSelect/src/treeSelect.d.ts +0 -965
- package/lib/components/treeSelect/src/treeSelect.js +0 -2
- package/lib/components/treeSelect/src/treeSelect.js.map +0 -1
- package/lib/components/upload/index.d.ts +0 -15
- package/lib/components/upload/index.js +0 -2
- package/lib/components/upload/index.js.map +0 -1
- package/lib/components/upload/src/upload.d.ts +0 -529
- package/lib/components/upload/src/upload.js +0 -2
- package/lib/components/upload/src/upload.js.map +0 -1
- package/lib/components/upload/src/useUpload.d.ts +0 -65
- package/lib/components/upload/src/useUpload.js +0 -2
- package/lib/components/upload/src/useUpload.js.map +0 -1
- package/lib/components/upload/utils/upload.d.ts +0 -30
- package/lib/components/upload/utils/upload.js +0 -2
- package/lib/components/upload/utils/upload.js.map +0 -1
- package/lib/components/uploadImage/index.d.ts +0 -14
- package/lib/components/uploadImage/index.js +0 -2
- package/lib/components/uploadImage/index.js.map +0 -1
- package/lib/components/uploadImage/src/uploadImage.d.ts +0 -579
- package/lib/components/uploadImage/src/uploadImage.js +0 -2
- package/lib/components/uploadImage/src/uploadImage.js.map +0 -1
- package/lib/components/uploadImages/index.d.ts +0 -14
- package/lib/components/uploadImages/index.js +0 -2
- package/lib/components/uploadImages/index.js.map +0 -1
- package/lib/components/uploadImages/src/uploadImages.d.ts +0 -548
- package/lib/components/uploadImages/src/uploadImages.js +0 -2
- package/lib/components/uploadImages/src/uploadImages.js.map +0 -1
- package/lib/constants/index.d.ts +0 -2
- package/lib/constants/index.js +0 -1
- package/lib/constants/mime.d.ts +0 -61
- package/lib/constants/mime.js +0 -2
- package/lib/constants/mime.js.map +0 -1
- package/lib/constants/regex.d.ts +0 -78
- package/lib/constants/regex.js +0 -2
- package/lib/constants/regex.js.map +0 -1
- package/lib/directive.d.ts +0 -2
- package/lib/directive.js +0 -2
- package/lib/directive.js.map +0 -1
- package/lib/directives/click-copy/index.d.ts +0 -2
- package/lib/directives/click-copy/index.js +0 -2
- package/lib/directives/click-copy/index.js.map +0 -1
- package/lib/directives/click-debounce/index.d.ts +0 -2
- package/lib/directives/click-debounce/index.js +0 -2
- package/lib/directives/click-debounce/index.js.map +0 -1
- package/lib/directives/click-draggable/index.d.ts +0 -2
- package/lib/directives/click-draggable/index.js +0 -2
- package/lib/directives/click-draggable/index.js.map +0 -1
- package/lib/directives/click-icon-copy/index.d.ts +0 -2
- package/lib/directives/click-icon-copy/index.js +0 -2
- package/lib/directives/click-icon-copy/index.js.map +0 -1
- package/lib/directives/click-longpress/index.d.ts +0 -2
- package/lib/directives/click-longpress/index.js +0 -2
- package/lib/directives/click-longpress/index.js.map +0 -1
- package/lib/directives/click-throttle/index.d.ts +0 -2
- package/lib/directives/click-throttle/index.js +0 -2
- package/lib/directives/click-throttle/index.js.map +0 -1
- package/lib/directives/index.d.ts +0 -6
- package/lib/directives/index.js +0 -1
- package/lib/element-plus.d.ts +0 -2
- package/lib/element-plus.js +0 -2
- package/lib/element-plus.js.map +0 -1
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.js +0 -1
- package/lib/hooks/use-loading/index.d.ts +0 -4
- package/lib/hooks/use-loading/index.js +0 -2
- package/lib/hooks/use-loading/index.js.map +0 -1
- package/lib/hooks/use-overlay/index.d.ts +0 -4
- package/lib/hooks/use-overlay/index.js +0 -2
- package/lib/hooks/use-overlay/index.js.map +0 -1
- package/lib/hooks/use-screenFull/index.d.ts +0 -7
- package/lib/hooks/use-screenFull/index.js +0 -2
- package/lib/hooks/use-screenFull/index.js.map +0 -1
- package/lib/index.d.ts +0 -14
- package/lib/index.es.d.ts +0 -6
- package/lib/index.js +0 -2
- package/lib/index.js.map +0 -1
- package/lib/make-installer.d.ts +0 -6
- package/lib/make-installer.js +0 -2
- package/lib/make-installer.js.map +0 -1
- package/lib/version.d.ts +0 -1
- package/lib/version.js +0 -2
- package/lib/version.js.map +0 -1
- package/styles/common/animation.scss +0 -46
- package/styles/common/common.scss +0 -44
- package/styles/common/loading.scss +0 -29
- package/styles/common/overlay.scss +0 -12
- package/styles/components/carNumber.scss +0 -44
- package/styles/components/contextMenu.scss +0 -34
- package/styles/components/dialog.scss +0 -88
- package/styles/components/drawer.scss +0 -87
- package/styles/components/form.scss +0 -44
- package/styles/components/formItemTip.scss +0 -7
- package/styles/components/image.scss +0 -19
- package/styles/components/select.scss +0 -35
- package/styles/components/selectPage.scss +0 -44
- package/styles/components/selectV2.scss +0 -22
- package/styles/components/table.scss +0 -440
- package/styles/components/tree.scss +0 -115
- package/styles/components/uploadImage.scss +0 -61
- package/styles/components/uploadImages.scss +0 -9
- package/styles/index.scss +0 -19
- package/types/components.d.ts +0 -145
- package/types/env.d.ts +0 -17
- /package/{es/components/contextMenu/src/contextMenu.type.mjs → dist/global.mjs} +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { useGlobalSize } from "element-plus";
|
|
2
|
+
import { type makeSlots } from "../../../utils";
|
|
3
|
+
import type { PagedInput } from "./page.type";
|
|
4
|
+
import type { FaTableSlots, faTableEmits, faTableProps } from "./table";
|
|
5
|
+
import type { FaTableRow, FaTableState } from "./table.state";
|
|
6
|
+
import type { FaTableColumnCtx, FaTableEnumColumnCtx } from "./table.type";
|
|
7
|
+
import type { TableInstance } from "element-plus";
|
|
8
|
+
import type { ExtractPropTypes, InjectionKey, Ref, SetupContext } from "vue";
|
|
9
|
+
/** FaTable 状态的依赖注入键。 */
|
|
10
|
+
export declare const tableStateKey: InjectionKey<FaTableState>;
|
|
11
|
+
/** FaTable 枚举映射的依赖注入键。 */
|
|
12
|
+
export declare const enumMapKey: InjectionKey<Map<string, FaTableEnumColumnCtx[]>>;
|
|
13
|
+
type TableSetupContext = SetupContext<typeof faTableEmits, ReturnType<typeof makeSlots<FaTableSlots>>>;
|
|
14
|
+
interface TableComposable {
|
|
15
|
+
_globalSize: ReturnType<typeof useGlobalSize>;
|
|
16
|
+
state: FaTableState;
|
|
17
|
+
elementRef: Ref<HTMLElement | undefined>;
|
|
18
|
+
tableRef: Ref<TableInstance | undefined>;
|
|
19
|
+
handleTableColumnAutoWidth: () => void;
|
|
20
|
+
getRequestParam: () => PagedInput;
|
|
21
|
+
loadTableColumns: () => void;
|
|
22
|
+
handleSizeChange: (pageSize: number) => void;
|
|
23
|
+
handlePaginationChange: (value: number) => void;
|
|
24
|
+
defaultSearchTime: () => void;
|
|
25
|
+
tableSearch: () => Promise<void>;
|
|
26
|
+
tableReset: () => Promise<void>;
|
|
27
|
+
doRender: () => Promise<void>;
|
|
28
|
+
doLoading: (loadingFunction: () => void | Promise<void>, loadingText?: string) => void;
|
|
29
|
+
handleCustomCellClick: (emitName: string, context: {
|
|
30
|
+
row: FaTableRow;
|
|
31
|
+
column: FaTableColumnCtx;
|
|
32
|
+
$index: number;
|
|
33
|
+
}) => void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 创建 FaTable 的状态和操作方法。
|
|
37
|
+
*
|
|
38
|
+
* @param props - FaTable 的 Props。
|
|
39
|
+
* @param slots - FaTable 的插槽。
|
|
40
|
+
* @param emit - FaTable 的事件触发器。
|
|
41
|
+
* @returns FaTable 的状态、引用和操作方法。
|
|
42
|
+
*/
|
|
43
|
+
export declare const useTable: (props: ExtractPropTypes<typeof faTableProps>, slots: TableSetupContext["slots"], emit: TableSetupContext["emit"]) => TableComposable;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
import { debounce } from "../../../utils/async/index.mjs";
|
|
2
|
+
import { callOptionalFunction } from "../../../utils/vue/func.mjs";
|
|
3
|
+
import isArray from "../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.mjs";
|
|
4
|
+
import isFunction from "../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.mjs";
|
|
5
|
+
import { tableUtil } from "../utils/table.mjs";
|
|
6
|
+
import { getTableDefaultSlots } from "./table.type.mjs";
|
|
7
|
+
import { computed, nextTick, provide, reactive, ref, watch } from "vue";
|
|
8
|
+
import { dayjs, useGlobalSize } from "element-plus";
|
|
9
|
+
//#region src/components/table/src/useTable.ts
|
|
10
|
+
/** FaTable 状态的依赖注入键。 */
|
|
11
|
+
const tableStateKey = Symbol("tableState");
|
|
12
|
+
/** FaTable 枚举映射的依赖注入键。 */
|
|
13
|
+
const enumMapKey = Symbol("enumMap");
|
|
14
|
+
/**
|
|
15
|
+
* 创建 FaTable 的状态和操作方法。
|
|
16
|
+
*
|
|
17
|
+
* @param props - FaTable 的 Props。
|
|
18
|
+
* @param slots - FaTable 的插槽。
|
|
19
|
+
* @param emit - FaTable 的事件触发器。
|
|
20
|
+
* @returns FaTable 的状态、引用和操作方法。
|
|
21
|
+
*/
|
|
22
|
+
const useTable = (props, slots, emit) => {
|
|
23
|
+
const _globalSize = useGlobalSize();
|
|
24
|
+
const elementRef = ref();
|
|
25
|
+
const tableRef = ref();
|
|
26
|
+
/**
|
|
27
|
+
* 定义 enumMap 存储 enum 值(避免异步请求无法格式化单元格内容 || 无法填充搜索下拉选择)
|
|
28
|
+
*/
|
|
29
|
+
const enumMap = reactive(/* @__PURE__ */ new Map());
|
|
30
|
+
provide(enumMapKey, enumMap);
|
|
31
|
+
const state = reactive({
|
|
32
|
+
loading: false,
|
|
33
|
+
loadingText: "加载中...",
|
|
34
|
+
orgColumns: [],
|
|
35
|
+
tableColumns: computed(() => state.orgColumns.filter((f) => f.prop && !f.pureSearch)),
|
|
36
|
+
searchColumns: computed(() => state.orgColumns.filter((item) => item.pureSearch === true || item.search !== void 0).sort((a, b) => {
|
|
37
|
+
return (a.search?.order ?? 0) - (b.search?.order ?? 0);
|
|
38
|
+
})),
|
|
39
|
+
spanColumns: computed(() => [...state.orgColumns.flatMap((column) => column.spanProp ? [{
|
|
40
|
+
prop: column.prop ?? "",
|
|
41
|
+
spanProp: column.spanProp
|
|
42
|
+
}] : []), ...props.props.span ? [
|
|
43
|
+
{
|
|
44
|
+
prop: "__table-index",
|
|
45
|
+
spanProp: props.props.span
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
prop: "__table-selection",
|
|
49
|
+
spanProp: props.props.span
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
prop: "__table-operation",
|
|
53
|
+
spanProp: props.props.span
|
|
54
|
+
}
|
|
55
|
+
] : []]),
|
|
56
|
+
tableData: [],
|
|
57
|
+
tableSpanData: computed(() => {
|
|
58
|
+
if (state.spanColumns?.length > 0 && state.tableData?.length > 0) {
|
|
59
|
+
const result = {};
|
|
60
|
+
const spanIndexes = {};
|
|
61
|
+
state.spanColumns.forEach((item) => {
|
|
62
|
+
result[item.prop] = new Array(state.tableData.length).fill(1, 0, 1).fill(0, 1);
|
|
63
|
+
spanIndexes[item.prop] = 0;
|
|
64
|
+
});
|
|
65
|
+
for (let i = 1; i < state.tableData.length; i++) state.spanColumns.forEach((item) => {
|
|
66
|
+
const currentRow = state.tableData[i];
|
|
67
|
+
const previousRow = state.tableData[i - 1];
|
|
68
|
+
const spanValues = result[item.prop];
|
|
69
|
+
const spanIndex = spanIndexes[item.prop];
|
|
70
|
+
if (currentRow === void 0 || previousRow === void 0 || spanValues === void 0 || spanIndex === void 0) return;
|
|
71
|
+
if (currentRow[item.spanProp] === previousRow[item.spanProp]) spanValues[spanIndex] = (spanValues[spanIndex] ?? 0) + 1;
|
|
72
|
+
else {
|
|
73
|
+
spanIndexes[item.prop] = i;
|
|
74
|
+
spanValues[i] = 1;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
return result;
|
|
78
|
+
}
|
|
79
|
+
return {};
|
|
80
|
+
}),
|
|
81
|
+
tablePagination: {
|
|
82
|
+
pageIndex: 1,
|
|
83
|
+
pageSize: 20,
|
|
84
|
+
totalRows: 0
|
|
85
|
+
},
|
|
86
|
+
initParam: {},
|
|
87
|
+
searchParam: {},
|
|
88
|
+
searchValueUpdate: "",
|
|
89
|
+
searchForm: props.searchForm,
|
|
90
|
+
selected: false,
|
|
91
|
+
selectedList: [],
|
|
92
|
+
selectedListIds: computed(() => state.selectedList.flatMap((item) => {
|
|
93
|
+
const rowKey = isFunction(props.rowKey) ? props.rowKey(item) : tableUtil.handleRowAccordingToProp(item, props.rowKey);
|
|
94
|
+
return typeof rowKey === "string" || typeof rowKey === "number" ? [rowKey] : [];
|
|
95
|
+
})),
|
|
96
|
+
indeterminateSelectedListIds: [],
|
|
97
|
+
operationColumnWidth: computed(() => {
|
|
98
|
+
const findAutoCol = state.autoColumnWidth.find((f) => f.prop === "__table-operation");
|
|
99
|
+
if (findAutoCol) return `${findAutoCol.width}px`;
|
|
100
|
+
switch (_globalSize.value) {
|
|
101
|
+
case "large":
|
|
102
|
+
case "default": return "54px";
|
|
103
|
+
case "small": return "42px";
|
|
104
|
+
default: return "auto";
|
|
105
|
+
}
|
|
106
|
+
}),
|
|
107
|
+
imagePreview: false,
|
|
108
|
+
previewList: [],
|
|
109
|
+
tableWidth: 0,
|
|
110
|
+
tableHeight: 0,
|
|
111
|
+
autoColumnWidth: []
|
|
112
|
+
});
|
|
113
|
+
let requestVersion = 0;
|
|
114
|
+
provide(tableStateKey, state);
|
|
115
|
+
const handleTableColumnAutoWidth = () => {
|
|
116
|
+
state.loading = true;
|
|
117
|
+
state.loadingText = "加载中...";
|
|
118
|
+
state.autoColumnWidth = [];
|
|
119
|
+
const autoWidthColumns = state.tableColumns.filter((f) => f.autoWidth);
|
|
120
|
+
if (slots?.operation) autoWidthColumns.push({ prop: "__table-operation" });
|
|
121
|
+
if (autoWidthColumns.length > 0) {
|
|
122
|
+
const otherWidth = _globalSize.value === "default" ? 25 : 17;
|
|
123
|
+
nextTick(() => {
|
|
124
|
+
const tableDom = document.querySelector(`.fa-table__${props.tableKey}`);
|
|
125
|
+
if (tableDom) autoWidthColumns.forEach((item) => {
|
|
126
|
+
const headerColumnDom = tableDom.querySelector(`.__fa-table__auto-width-column__cell-header__${item?.prop}`);
|
|
127
|
+
const cellColumnDoms = tableDom.querySelectorAll(`.__fa-table__auto-width-column__cell__${item?.prop}`);
|
|
128
|
+
let maxWidth = 0;
|
|
129
|
+
if (headerColumnDom) {
|
|
130
|
+
maxWidth = Math.ceil(headerColumnDom.scrollWidth) + otherWidth;
|
|
131
|
+
if (item?.sortable) maxWidth += 24;
|
|
132
|
+
}
|
|
133
|
+
cellColumnDoms.forEach((cellDom) => {
|
|
134
|
+
const curWidth = Math.ceil(cellDom.scrollWidth) + otherWidth;
|
|
135
|
+
if (curWidth > maxWidth) maxWidth = curWidth;
|
|
136
|
+
});
|
|
137
|
+
const findInfo = state.autoColumnWidth.find((f) => f.prop === item?.prop);
|
|
138
|
+
if (findInfo) findInfo.width = Math.max(findInfo.width, maxWidth);
|
|
139
|
+
else if (item.prop) state.autoColumnWidth.push({
|
|
140
|
+
prop: item.prop,
|
|
141
|
+
width: maxWidth
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}).finally(() => {
|
|
145
|
+
state.loading = false;
|
|
146
|
+
});
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
state.loading = false;
|
|
150
|
+
};
|
|
151
|
+
const handleTableData = (data) => {
|
|
152
|
+
if (props.treeData) {
|
|
153
|
+
const result = [];
|
|
154
|
+
data.forEach((row) => {
|
|
155
|
+
const rowList = row[props.props.children ?? "children"];
|
|
156
|
+
if (isArray(rowList)) rowList.forEach((childRow) => {
|
|
157
|
+
result.push(typeof childRow === "object" && childRow !== null ? {
|
|
158
|
+
...row,
|
|
159
|
+
...childRow
|
|
160
|
+
} : row);
|
|
161
|
+
});
|
|
162
|
+
else result.push(typeof rowList === "object" && rowList !== null ? {
|
|
163
|
+
...row,
|
|
164
|
+
...rowList
|
|
165
|
+
} : row);
|
|
166
|
+
});
|
|
167
|
+
return result;
|
|
168
|
+
} else return data;
|
|
169
|
+
};
|
|
170
|
+
const getRequestParam = () => {
|
|
171
|
+
const params = {
|
|
172
|
+
...state.searchParam,
|
|
173
|
+
...props.pagination ? state.tablePagination : {}
|
|
174
|
+
};
|
|
175
|
+
delete params.totalRows;
|
|
176
|
+
return params;
|
|
177
|
+
};
|
|
178
|
+
const loadData = async () => {
|
|
179
|
+
const currentRequestVersion = ++requestVersion;
|
|
180
|
+
state.loading = true;
|
|
181
|
+
state.loadingText = "加载中...";
|
|
182
|
+
if (props.requestApi) {
|
|
183
|
+
const params = getRequestParam();
|
|
184
|
+
emit("refresh", params);
|
|
185
|
+
let pageData;
|
|
186
|
+
try {
|
|
187
|
+
const resData = await props.requestApi(params);
|
|
188
|
+
if (currentRequestVersion !== requestVersion) return;
|
|
189
|
+
props.dataCallback?.(resData);
|
|
190
|
+
if (props.pagination) {
|
|
191
|
+
if (isArray(resData)) {
|
|
192
|
+
pageData = resData;
|
|
193
|
+
state.tablePagination.totalRows = resData.length;
|
|
194
|
+
} else {
|
|
195
|
+
const pageRes = resData;
|
|
196
|
+
pageData = pageRes.rows ?? [];
|
|
197
|
+
Object.assign(state.tablePagination, {
|
|
198
|
+
pageIndex: pageRes.pageIndex ?? state.tablePagination.pageIndex,
|
|
199
|
+
pageSize: pageRes.pageSize ?? state.tablePagination.pageSize,
|
|
200
|
+
totalRows: pageRes.totalRows ?? pageData.length
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
} else {
|
|
204
|
+
pageData = resData;
|
|
205
|
+
Object.assign(state.tablePagination, {
|
|
206
|
+
pageIndex: 1,
|
|
207
|
+
pageSize: 0,
|
|
208
|
+
totalRows: pageData.length
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
state.tableData = handleTableData(pageData);
|
|
212
|
+
} catch (error) {
|
|
213
|
+
if (currentRequestVersion !== requestVersion) return;
|
|
214
|
+
state.tableData = [];
|
|
215
|
+
throw error;
|
|
216
|
+
} finally {
|
|
217
|
+
if (currentRequestVersion === requestVersion) state.loading = false;
|
|
218
|
+
}
|
|
219
|
+
} else {
|
|
220
|
+
emit("refresh", { searchValue: state.searchParam.searchValue });
|
|
221
|
+
let _value = handleTableData([...props.data]);
|
|
222
|
+
_value = _value.filter((f) => {
|
|
223
|
+
const searchValue = state.searchParam.searchValue;
|
|
224
|
+
if (typeof searchValue !== "string" || searchValue.length === 0) return true;
|
|
225
|
+
return state.tableColumns.some((col) => {
|
|
226
|
+
const value = tableUtil.handleRowAccordingToProp(f, col.prop ?? "");
|
|
227
|
+
return (typeof value === "string" || typeof value === "number" || typeof value === "bigint" || typeof value === "boolean" ? String(value) : "").toLowerCase().includes(searchValue.toLowerCase());
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
if (isArray(state.searchParam.sortList) && state.searchParam.sortList.length > 0) _value = _value.sort(tableUtil.arrayDynamicSort(state.searchParam.sortList));
|
|
231
|
+
if (props.pagination) {
|
|
232
|
+
Object.assign(state.tablePagination, { totalRows: _value.length });
|
|
233
|
+
const pageStart = (state.tablePagination.pageIndex - 1) * state.tablePagination.pageSize;
|
|
234
|
+
const pageEnd = pageStart + state.tablePagination.pageSize;
|
|
235
|
+
state.tableData = _value.slice(pageStart, pageEnd);
|
|
236
|
+
} else {
|
|
237
|
+
state.tableData = _value;
|
|
238
|
+
Object.assign(state.tablePagination, {
|
|
239
|
+
pageIndex: 1,
|
|
240
|
+
pageSize: 0,
|
|
241
|
+
totalRows: _value.length
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
state.loading = false;
|
|
245
|
+
}
|
|
246
|
+
handleTableColumnAutoWidth();
|
|
247
|
+
};
|
|
248
|
+
const cloneColumns = (columns) => columns.map((column) => ({
|
|
249
|
+
...column,
|
|
250
|
+
...column.search && { search: {
|
|
251
|
+
...column.search,
|
|
252
|
+
...column.search.props && { props: { ...column.search.props } }
|
|
253
|
+
} },
|
|
254
|
+
...column._children && { _children: cloneColumns(column._children) }
|
|
255
|
+
}));
|
|
256
|
+
const loadTableColumns = () => {
|
|
257
|
+
let columns = props.columns ? cloneColumns(props.columns) : [];
|
|
258
|
+
columns.forEach((col) => {
|
|
259
|
+
if (col.pureSearch || col.search) {
|
|
260
|
+
col.search ??= { el: "" };
|
|
261
|
+
col.search.key ??= col.prop;
|
|
262
|
+
col.search.label ??= col.label;
|
|
263
|
+
if (col.search.key && col.search.defaultValue !== void 0) state.searchParam[col.search.key] = col.search.defaultValue;
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
columns = columns.sort((a, b) => {
|
|
267
|
+
return (a.order ?? 0) - (b.order ?? 0);
|
|
268
|
+
});
|
|
269
|
+
state.orgColumns = tableUtil.flatColumns(columns, enumMap);
|
|
270
|
+
};
|
|
271
|
+
const handleSizeChange = (pageSize) => {
|
|
272
|
+
state.tablePagination.pageIndex = 1;
|
|
273
|
+
state.tablePagination.pageSize = pageSize;
|
|
274
|
+
emit("sizeChange", pageSize);
|
|
275
|
+
emit("paginationChange", 1, pageSize);
|
|
276
|
+
loadData();
|
|
277
|
+
};
|
|
278
|
+
const handlePaginationChange = (val) => {
|
|
279
|
+
state.tablePagination.pageIndex = val;
|
|
280
|
+
emit("paginationChange", val, state.tablePagination.pageSize);
|
|
281
|
+
loadData();
|
|
282
|
+
};
|
|
283
|
+
const updatedTotalParam = () => {
|
|
284
|
+
const newSearchParam = {};
|
|
285
|
+
for (const key in state.searchParam) if (state.searchParam[key] || state.searchParam[key] === false || state.searchParam[key] === 0) newSearchParam[key] = state.searchParam[key];
|
|
286
|
+
else if (!state.searchParam[key]) delete state.searchParam[key];
|
|
287
|
+
Object.assign(state.searchParam, newSearchParam);
|
|
288
|
+
};
|
|
289
|
+
const defaultSearchTime = () => {
|
|
290
|
+
if (props.hideSearchTime) state.searchParam.searchTimeList = void 0;
|
|
291
|
+
else {
|
|
292
|
+
const end = /* @__PURE__ */ new Date();
|
|
293
|
+
const start = /* @__PURE__ */ new Date();
|
|
294
|
+
if (props.futureSearchTime) switch (props.dataSearchRange) {
|
|
295
|
+
case "Past1D":
|
|
296
|
+
end.setDate(end.getDate() + 1);
|
|
297
|
+
break;
|
|
298
|
+
case "Past3D":
|
|
299
|
+
end.setDate(end.getDate() + 3);
|
|
300
|
+
break;
|
|
301
|
+
case "Past1W":
|
|
302
|
+
end.setDate(end.getDate() + 7);
|
|
303
|
+
break;
|
|
304
|
+
case "Past1M":
|
|
305
|
+
end.setMonth(end.getMonth() + 1);
|
|
306
|
+
break;
|
|
307
|
+
case "Past3M":
|
|
308
|
+
end.setMonth(end.getMonth() + 3);
|
|
309
|
+
break;
|
|
310
|
+
case "Past6M":
|
|
311
|
+
end.setMonth(end.getMonth() + 6);
|
|
312
|
+
break;
|
|
313
|
+
case "Past1Y":
|
|
314
|
+
end.setFullYear(end.getFullYear() + 1);
|
|
315
|
+
break;
|
|
316
|
+
case "Past3Y": end.setFullYear(end.getFullYear() + 3);
|
|
317
|
+
}
|
|
318
|
+
else switch (props.dataSearchRange) {
|
|
319
|
+
case "Past1D":
|
|
320
|
+
start.setDate(start.getDate() - 1);
|
|
321
|
+
break;
|
|
322
|
+
case "Past3D":
|
|
323
|
+
start.setDate(start.getDate() - 3);
|
|
324
|
+
break;
|
|
325
|
+
case "Past1W":
|
|
326
|
+
start.setDate(start.getDate() - 7);
|
|
327
|
+
break;
|
|
328
|
+
case "Past1M":
|
|
329
|
+
start.setMonth(start.getMonth() - 1);
|
|
330
|
+
break;
|
|
331
|
+
case "Past3M":
|
|
332
|
+
start.setMonth(start.getMonth() - 3);
|
|
333
|
+
break;
|
|
334
|
+
case "Past6M":
|
|
335
|
+
start.setMonth(start.getMonth() - 6);
|
|
336
|
+
break;
|
|
337
|
+
case "Past1Y":
|
|
338
|
+
start.setFullYear(start.getFullYear() - 1);
|
|
339
|
+
break;
|
|
340
|
+
case "Past3Y": start.setFullYear(start.getFullYear() - 3);
|
|
341
|
+
}
|
|
342
|
+
state.searchParam.searchTimeList = [dayjs(start).format("YYYY-MM-DD 00:00:00"), dayjs(end).format("YYYY-MM-DD 23:59:59")];
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
const tableSearch = async () => {
|
|
346
|
+
state.tablePagination.pageIndex = 1;
|
|
347
|
+
updatedTotalParam();
|
|
348
|
+
await loadData();
|
|
349
|
+
};
|
|
350
|
+
const renderTable = debounce(() => {
|
|
351
|
+
loadTableColumns();
|
|
352
|
+
return tableSearch();
|
|
353
|
+
}, 300);
|
|
354
|
+
const tableReset = async () => {
|
|
355
|
+
state.tablePagination.pageIndex = 1;
|
|
356
|
+
state.searchParam = {};
|
|
357
|
+
defaultSearchTime();
|
|
358
|
+
if (typeof state.initParam === "object" && state.initParam !== null) Object.assign(state.searchParam, state.initParam);
|
|
359
|
+
emit("reset", state.searchParam);
|
|
360
|
+
await loadData();
|
|
361
|
+
};
|
|
362
|
+
const doRender = async () => {
|
|
363
|
+
state.orgColumns = [];
|
|
364
|
+
state.autoColumnWidth = [];
|
|
365
|
+
state.tableData = [];
|
|
366
|
+
await renderTable();
|
|
367
|
+
};
|
|
368
|
+
const doLoading = (loadingFunction, loadingText = "加载中...") => {
|
|
369
|
+
state.loading = true;
|
|
370
|
+
state.loadingText = loadingText;
|
|
371
|
+
callOptionalFunction(loadingFunction).finally(() => {
|
|
372
|
+
state.loading = false;
|
|
373
|
+
});
|
|
374
|
+
};
|
|
375
|
+
const handleCustomCellClick = (emitName, { row, column, $index }) => {
|
|
376
|
+
emit("customCellClick", emitName, {
|
|
377
|
+
row,
|
|
378
|
+
column,
|
|
379
|
+
$index,
|
|
380
|
+
...getTableDefaultSlots(state)
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
watch(() => props.tableKey, () => doRender());
|
|
384
|
+
watch(() => props.searchForm, (newValue) => {
|
|
385
|
+
state.searchForm = newValue;
|
|
386
|
+
});
|
|
387
|
+
return {
|
|
388
|
+
_globalSize,
|
|
389
|
+
state,
|
|
390
|
+
elementRef,
|
|
391
|
+
tableRef,
|
|
392
|
+
handleTableColumnAutoWidth,
|
|
393
|
+
getRequestParam,
|
|
394
|
+
loadTableColumns,
|
|
395
|
+
handleSizeChange,
|
|
396
|
+
handlePaginationChange,
|
|
397
|
+
defaultSearchTime,
|
|
398
|
+
tableSearch,
|
|
399
|
+
tableReset,
|
|
400
|
+
doRender,
|
|
401
|
+
doLoading,
|
|
402
|
+
handleCustomCellClick
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
//#endregion
|
|
406
|
+
export { enumMapKey, tableStateKey, useTable };
|
|
407
|
+
|
|
408
|
+
//# sourceMappingURL=useTable.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTable.mjs","names":[],"sources":["../../../../src/components/table/src/useTable.ts"],"sourcesContent":["import { computed, nextTick, provide, reactive, ref, watch } from \"vue\";\nimport { dayjs, useGlobalSize } from \"element-plus\";\nimport { isArray, isFunction } from \"lodash-unified\";\nimport { callOptionalFunction, debounce, type makeSlots } from \"../../../utils\";\nimport { tableUtil } from \"../utils/table\";\nimport { getTableDefaultSlots } from \"./table.type\";\nimport type { PagedInput, PagedResult } from \"./page.type\";\nimport type { FaTableSlots, faTableEmits, faTableProps } from \"./table\";\nimport type { FaTableRow, FaTableState } from \"./table.state\";\nimport type { FaTableColumnCtx, FaTableEnumColumnCtx } from \"./table.type\";\nimport type { TableInstance } from \"element-plus\";\nimport type { ExtractPropTypes, InjectionKey, Ref, SetupContext } from \"vue\";\n\n/** FaTable 状态的依赖注入键。 */\nexport const tableStateKey: InjectionKey<FaTableState> = Symbol(\"tableState\");\n/** FaTable 枚举映射的依赖注入键。 */\nexport const enumMapKey: InjectionKey<Map<string, FaTableEnumColumnCtx[]>> = Symbol(\"enumMap\");\n\ntype TableSetupContext = SetupContext<typeof faTableEmits, ReturnType<typeof makeSlots<FaTableSlots>>>;\n\ninterface TableComposable {\n\t_globalSize: ReturnType<typeof useGlobalSize>;\n\tstate: FaTableState;\n\telementRef: Ref<HTMLElement | undefined>;\n\ttableRef: Ref<TableInstance | undefined>;\n\thandleTableColumnAutoWidth: () => void;\n\tgetRequestParam: () => PagedInput;\n\tloadTableColumns: () => void;\n\thandleSizeChange: (pageSize: number) => void;\n\thandlePaginationChange: (value: number) => void;\n\tdefaultSearchTime: () => void;\n\ttableSearch: () => Promise<void>;\n\ttableReset: () => Promise<void>;\n\tdoRender: () => Promise<void>;\n\tdoLoading: (loadingFunction: () => void | Promise<void>, loadingText?: string) => void;\n\thandleCustomCellClick: (emitName: string, context: { row: FaTableRow; column: FaTableColumnCtx; $index: number }) => void;\n}\n\n/**\n * 创建 FaTable 的状态和操作方法。\n *\n * @param props - FaTable 的 Props。\n * @param slots - FaTable 的插槽。\n * @param emit - FaTable 的事件触发器。\n * @returns FaTable 的状态、引用和操作方法。\n */\nexport const useTable = (\n\tprops: ExtractPropTypes<typeof faTableProps>,\n\tslots: TableSetupContext[\"slots\"],\n\temit: TableSetupContext[\"emit\"]\n): TableComposable => {\n\tconst _globalSize = useGlobalSize();\n\n\tconst elementRef = ref<HTMLElement>();\n\tconst tableRef = ref<TableInstance>();\n\n\t/**\n\t * 定义 enumMap 存储 enum 值(避免异步请求无法格式化单元格内容 || 无法填充搜索下拉选择)\n\t */\n\tconst enumMap = reactive(new Map<string, FaTableEnumColumnCtx[]>());\n\tprovide(enumMapKey, enumMap);\n\n\tconst state: FaTableState = reactive({\n\t\tloading: false,\n\t\tloadingText: \"加载中...\",\n\t\torgColumns: [],\n\t\ttableColumns: computed(() => state.orgColumns.filter((f) => f.prop && !f.pureSearch)),\n\t\tsearchColumns: computed(() =>\n\t\t\tstate.orgColumns\n\t\t\t\t.filter((item) => item.pureSearch === true || item.search !== undefined)\n\t\t\t\t.sort((a, b) => {\n\t\t\t\t\treturn (a.search?.order ?? 0) - (b.search?.order ?? 0);\n\t\t\t\t})\n\t\t),\n\t\tspanColumns: computed(() => [\n\t\t\t...state.orgColumns.flatMap((column) => (column.spanProp ? [{ prop: column.prop ?? \"\", spanProp: column.spanProp }] : [])),\n\t\t\t...(props.props.span\n\t\t\t\t? [\n\t\t\t\t\t\t{ prop: \"__table-index\", spanProp: props.props.span },\n\t\t\t\t\t\t{ prop: \"__table-selection\", spanProp: props.props.span },\n\t\t\t\t\t\t{ prop: \"__table-operation\", spanProp: props.props.span },\n\t\t\t\t\t]\n\t\t\t\t: []),\n\t\t]),\n\t\ttableData: [],\n\t\ttableSpanData: computed(() => {\n\t\t\tif (state.spanColumns?.length > 0 && state.tableData?.length > 0) {\n\t\t\t\tconst result: Record<string, number[]> = {};\n\t\t\t\tconst spanIndexes: Record<string, number> = {};\n\t\t\t\tstate.spanColumns.forEach((item) => {\n\t\t\t\t\tresult[item.prop] = new Array<number>(state.tableData.length).fill(1, 0, 1).fill(0, 1);\n\t\t\t\t\tspanIndexes[item.prop] = 0;\n\t\t\t\t});\n\t\t\t\tfor (let i = 1; i < state.tableData.length; i++) {\n\t\t\t\t\tstate.spanColumns.forEach((item) => {\n\t\t\t\t\t\tconst currentRow = state.tableData[i];\n\t\t\t\t\t\tconst previousRow = state.tableData[i - 1];\n\t\t\t\t\t\tconst spanValues = result[item.prop];\n\t\t\t\t\t\tconst spanIndex = spanIndexes[item.prop];\n\t\t\t\t\t\tif (currentRow === undefined || previousRow === undefined || spanValues === undefined || spanIndex === undefined) return;\n\t\t\t\t\t\tif (currentRow[item.spanProp] === previousRow[item.spanProp]) {\n\t\t\t\t\t\t\tspanValues[spanIndex] = (spanValues[spanIndex] ?? 0) + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tspanIndexes[item.prop] = i;\n\t\t\t\t\t\t\tspanValues[i] = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn {};\n\t\t}),\n\t\ttablePagination: {\n\t\t\tpageIndex: 1,\n\t\t\tpageSize: 20,\n\t\t\ttotalRows: 0,\n\t\t},\n\t\tinitParam: {},\n\t\tsearchParam: {},\n\t\tsearchValueUpdate: \"\",\n\t\tsearchForm: props.searchForm,\n\t\tselected: false,\n\t\tselectedList: [],\n\t\tselectedListIds: computed(() =>\n\t\t\tstate.selectedList.flatMap((item) => {\n\t\t\t\tconst rowKey = isFunction(props.rowKey) ? props.rowKey(item) : tableUtil.handleRowAccordingToProp(item, props.rowKey);\n\t\t\t\treturn typeof rowKey === \"string\" || typeof rowKey === \"number\" ? [rowKey] : [];\n\t\t\t})\n\t\t),\n\t\tindeterminateSelectedListIds: [],\n\t\toperationColumnWidth: computed(() => {\n\t\t\tconst findAutoCol = state.autoColumnWidth.find((f) => f.prop === \"__table-operation\");\n\t\t\tif (findAutoCol) {\n\t\t\t\treturn `${findAutoCol.width}px`;\n\t\t\t}\n\t\t\tswitch (_globalSize.value) {\n\t\t\t\tcase \"large\":\n\t\t\t\tcase \"default\":\n\t\t\t\t\treturn \"54px\";\n\t\t\t\tcase \"small\":\n\t\t\t\t\treturn \"42px\";\n\t\t\t\tdefault:\n\t\t\t\t\treturn \"auto\";\n\t\t\t}\n\t\t}),\n\t\timagePreview: false,\n\t\tpreviewList: [],\n\t\ttableWidth: 0,\n\t\ttableHeight: 0,\n\t\tautoColumnWidth: [],\n\t});\n\tlet requestVersion = 0;\n\n\tprovide(tableStateKey, state);\n\n\tconst handleTableColumnAutoWidth = (): void => {\n\t\tstate.loading = true;\n\t\tstate.loadingText = \"加载中...\";\n\t\tstate.autoColumnWidth = [];\n\t\tconst autoWidthColumns = state.tableColumns.filter((f) => f.autoWidth);\n\t\tif (slots?.operation) {\n\t\t\t// 操作列自动宽度\n\t\t\tautoWidthColumns.push({\n\t\t\t\tprop: \"__table-operation\",\n\t\t\t});\n\t\t}\n\t\tif (autoWidthColumns.length > 0) {\n\t\t\t// padding24/16 + border1\n\t\t\tconst otherWidth = _globalSize.value === \"default\" ? 25 : 17;\n\t\t\tvoid nextTick(() => {\n\t\t\t\tconst tableDom = document.querySelector(`.fa-table__${props.tableKey}`);\n\t\t\t\tif (tableDom) {\n\t\t\t\t\tautoWidthColumns.forEach((item) => {\n\t\t\t\t\t\tconst headerColumnDom = tableDom.querySelector(`.__fa-table__auto-width-column__cell-header__${item?.prop}`);\n\t\t\t\t\t\tconst cellColumnDoms = tableDom.querySelectorAll(`.__fa-table__auto-width-column__cell__${item?.prop}`);\n\t\t\t\t\t\tlet maxWidth = 0;\n\t\t\t\t\t\tif (headerColumnDom) {\n\t\t\t\t\t\t\tmaxWidth = Math.ceil(headerColumnDom.scrollWidth) + otherWidth;\n\t\t\t\t\t\t\tif (item?.sortable) {\n\t\t\t\t\t\t\t\tmaxWidth += 24;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcellColumnDoms.forEach((cellDom) => {\n\t\t\t\t\t\t\tconst curWidth = Math.ceil(cellDom.scrollWidth) + otherWidth;\n\t\t\t\t\t\t\tif (curWidth > maxWidth) {\n\t\t\t\t\t\t\t\tmaxWidth = curWidth;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tconst findInfo = state.autoColumnWidth.find((f) => f.prop === item?.prop);\n\t\t\t\t\t\tif (findInfo) {\n\t\t\t\t\t\t\tfindInfo.width = Math.max(findInfo.width, maxWidth);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (item.prop) {\n\t\t\t\t\t\t\t\tstate.autoColumnWidth.push({\n\t\t\t\t\t\t\t\t\tprop: item.prop,\n\t\t\t\t\t\t\t\t\twidth: maxWidth,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}).finally(() => {\n\t\t\t\tstate.loading = false;\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tstate.loading = false;\n\t};\n\n\tconst handleTableData = (data: FaTableRow[]): FaTableRow[] => {\n\t\tif (props.treeData) {\n\t\t\tconst result: FaTableRow[] = [];\n\t\t\tdata.forEach((row) => {\n\t\t\t\tconst rowList = row[props.props.children ?? \"children\"];\n\t\t\t\tif (isArray(rowList)) {\n\t\t\t\t\t// 如果 rowList 是数组,遍历并合并每个子项\n\t\t\t\t\tconst childRows: unknown[] = rowList;\n\t\t\t\t\tchildRows.forEach((childRow) => {\n\t\t\t\t\t\tresult.push(typeof childRow === \"object\" && childRow !== null ? { ...row, ...childRow } : row);\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tresult.push(typeof rowList === \"object\" && rowList !== null ? { ...row, ...rowList } : row);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn result;\n\t\t} else {\n\t\t\treturn data;\n\t\t}\n\t};\n\n\tconst getRequestParam = (): PagedInput => {\n\t\tconst params = { ...state.searchParam, ...(props.pagination ? state.tablePagination : {}) };\n\t\t// 删除总条数\n\t\tdelete params.totalRows;\n\t\treturn params;\n\t};\n\n\tconst loadData = async (): Promise<void> => {\n\t\tconst currentRequestVersion = ++requestVersion;\n\t\tstate.loading = true;\n\t\tstate.loadingText = \"加载中...\";\n\t\tif (props.requestApi) {\n\t\t\tconst params = getRequestParam();\n\t\t\temit(\"refresh\", params);\n\t\t\tlet pageData: FaTableRow[];\n\t\t\ttry {\n\t\t\t\tconst resData = await props.requestApi(params);\n\t\t\t\tif (currentRequestVersion !== requestVersion) return;\n\t\t\t\t// 数据回调\n\t\t\t\tprops.dataCallback?.(resData);\n\t\t\t\t// 解析 API 接口返回的分页数据(如果有分页更新分页信息)\n\t\t\t\tif (props.pagination) {\n\t\t\t\t\tif (isArray(resData)) {\n\t\t\t\t\t\tpageData = resData;\n\t\t\t\t\t\tstate.tablePagination.totalRows = resData.length;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst pageRes = resData as PagedResult;\n\t\t\t\t\t\tpageData = pageRes.rows ?? [];\n\t\t\t\t\t\tObject.assign(state.tablePagination, {\n\t\t\t\t\t\t\tpageIndex: pageRes.pageIndex ?? state.tablePagination.pageIndex,\n\t\t\t\t\t\t\tpageSize: pageRes.pageSize ?? state.tablePagination.pageSize,\n\t\t\t\t\t\t\ttotalRows: pageRes.totalRows ?? pageData.length,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tpageData = resData as FaTableRow[];\n\t\t\t\t\t// 更新分页信息\n\t\t\t\t\tObject.assign(state.tablePagination, {\n\t\t\t\t\t\tpageIndex: 1,\n\t\t\t\t\t\tpageSize: 0,\n\t\t\t\t\t\ttotalRows: pageData.length,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tstate.tableData = handleTableData(pageData);\n\t\t\t} catch (error) {\n\t\t\t\tif (currentRequestVersion !== requestVersion) return;\n\t\t\t\tstate.tableData = [];\n\t\t\t\tthrow error;\n\t\t\t} finally {\n\t\t\t\tif (currentRequestVersion === requestVersion) state.loading = false;\n\t\t\t}\n\t\t} else {\n\t\t\temit(\"refresh\", { searchValue: state.searchParam.searchValue });\n\t\t\tlet _value = handleTableData([...props.data]);\n\t\t\t_value = _value.filter((f) => {\n\t\t\t\tconst searchValue = state.searchParam.searchValue;\n\t\t\t\tif (typeof searchValue !== \"string\" || searchValue.length === 0) return true;\n\t\t\t\treturn state.tableColumns.some((col) => {\n\t\t\t\t\tconst value = tableUtil.handleRowAccordingToProp(f, col.prop ?? \"\");\n\t\t\t\t\tconst text =\n\t\t\t\t\t\ttypeof value === \"string\" || typeof value === \"number\" || typeof value === \"bigint\" || typeof value === \"boolean\"\n\t\t\t\t\t\t\t? String(value)\n\t\t\t\t\t\t\t: \"\";\n\t\t\t\t\treturn text.toLowerCase().includes(searchValue.toLowerCase());\n\t\t\t\t});\n\t\t\t});\n\t\t\tif (isArray(state.searchParam.sortList) && state.searchParam.sortList.length > 0) {\n\t\t\t\t_value = _value.sort(tableUtil.arrayDynamicSort(state.searchParam.sortList));\n\t\t\t}\n\t\t\tif (props.pagination) {\n\t\t\t\t// 更新分页信息\n\t\t\t\tObject.assign(state.tablePagination, {\n\t\t\t\t\ttotalRows: _value.length,\n\t\t\t\t});\n\t\t\t\tconst pageStart = (state.tablePagination.pageIndex - 1) * state.tablePagination.pageSize;\n\t\t\t\tconst pageEnd = pageStart + state.tablePagination.pageSize;\n\t\t\t\tstate.tableData = _value.slice(pageStart, pageEnd);\n\t\t\t} else {\n\t\t\t\tstate.tableData = _value;\n\t\t\t\t// 更新分页信息\n\t\t\t\tObject.assign(state.tablePagination, {\n\t\t\t\t\tpageIndex: 1,\n\t\t\t\t\tpageSize: 0,\n\t\t\t\t\ttotalRows: _value.length,\n\t\t\t\t});\n\t\t\t}\n\t\t\tstate.loading = false;\n\t\t}\n\t\thandleTableColumnAutoWidth();\n\t};\n\n\tconst cloneColumns = (columns: FaTableColumnCtx[]): FaTableColumnCtx[] =>\n\t\tcolumns.map((column) => ({\n\t\t\t...column,\n\t\t\t...(column.search && { search: { ...column.search, ...(column.search.props && { props: { ...column.search.props } }) } }),\n\t\t\t...(column._children && { _children: cloneColumns(column._children) }),\n\t\t}));\n\n\tconst loadTableColumns = (): void => {\n\t\tlet columns: FaTableColumnCtx[] = props.columns ? cloneColumns(props.columns) : [];\n\t\t// 默认值处理\n\t\tcolumns.forEach((col) => {\n\t\t\t// 处理搜索项的 key 和 label\n\t\t\tif (col.pureSearch || col.search) {\n\t\t\t\tcol.search ??= { el: \"\" };\n\t\t\t\tcol.search.key ??= col.prop;\n\t\t\t\tcol.search.label ??= col.label;\n\t\t\t\t// 处理默认值\n\t\t\t\tif (col.search.key && col.search.defaultValue !== undefined) {\n\t\t\t\t\tstate.searchParam[col.search.key] = col.search.defaultValue;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// 排序\n\t\tcolumns = columns.sort((a, b) => {\n\t\t\treturn (a.order ?? 0) - (b.order ?? 0);\n\t\t});\n\n\t\t// TODO:这里的扁平化暂时没用到\n\t\tstate.orgColumns = tableUtil.flatColumns(columns, enumMap);\n\t};\n\n\tconst handleSizeChange = (pageSize: number): void => {\n\t\tstate.tablePagination.pageIndex = 1;\n\t\tstate.tablePagination.pageSize = pageSize;\n\t\temit(\"sizeChange\", pageSize);\n\t\temit(\"paginationChange\", 1, pageSize);\n\t\tvoid loadData();\n\t};\n\tconst handlePaginationChange = (val: number): void => {\n\t\tstate.tablePagination.pageIndex = val;\n\t\temit(\"paginationChange\", val, state.tablePagination.pageSize);\n\t\tvoid loadData();\n\t};\n\n\tconst updatedTotalParam = (): void => {\n\t\t// 处理查询参数,可以给查询参数加自定义前缀操作\n\t\tconst newSearchParam: Record<string, unknown> = {};\n\t\t// 防止手动清空输入框携带参数(这里可以自定义查询参数前缀)\n\t\tfor (const key in state.searchParam) {\n\t\t\t// * 某些情况下参数为 false/0 也应该携带参数\n\t\t\tif (state.searchParam[key] || state.searchParam[key] === false || state.searchParam[key] === 0) {\n\t\t\t\tnewSearchParam[key] = state.searchParam[key];\n\t\t\t}\n\t\t\t// 处理某些情况下如果为空字符串,其实是不需要传到后端的\n\t\t\telse if (!state.searchParam[key]) {\n\t\t\t\tdelete state.searchParam[key];\n\t\t\t}\n\t\t}\n\t\tObject.assign(state.searchParam, newSearchParam);\n\t};\n\n\tconst defaultSearchTime = (): void => {\n\t\tif (props.hideSearchTime) {\n\t\t\tstate.searchParam.searchTimeList = undefined;\n\t\t} else {\n\t\t\tconst end = new Date();\n\t\t\tconst start = new Date();\n\t\t\tif (props.futureSearchTime) {\n\t\t\t\tswitch (props.dataSearchRange) {\n\t\t\t\t\tcase \"Past1D\":\n\t\t\t\t\t\tend.setDate(end.getDate() + 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past3D\":\n\t\t\t\t\t\tend.setDate(end.getDate() + 3);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past1W\":\n\t\t\t\t\t\tend.setDate(end.getDate() + 7);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past1M\":\n\t\t\t\t\t\tend.setMonth(end.getMonth() + 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past3M\":\n\t\t\t\t\t\tend.setMonth(end.getMonth() + 3);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past6M\":\n\t\t\t\t\t\tend.setMonth(end.getMonth() + 6);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past1Y\":\n\t\t\t\t\t\tend.setFullYear(end.getFullYear() + 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past3Y\":\n\t\t\t\t\t\tend.setFullYear(end.getFullYear() + 3);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tswitch (props.dataSearchRange) {\n\t\t\t\t\tcase \"Past1D\":\n\t\t\t\t\t\tstart.setDate(start.getDate() - 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past3D\":\n\t\t\t\t\t\tstart.setDate(start.getDate() - 3);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past1W\":\n\t\t\t\t\t\tstart.setDate(start.getDate() - 7);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past1M\":\n\t\t\t\t\t\tstart.setMonth(start.getMonth() - 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past3M\":\n\t\t\t\t\t\tstart.setMonth(start.getMonth() - 3);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past6M\":\n\t\t\t\t\t\tstart.setMonth(start.getMonth() - 6);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past1Y\":\n\t\t\t\t\t\tstart.setFullYear(start.getFullYear() - 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Past3Y\":\n\t\t\t\t\t\tstart.setFullYear(start.getFullYear() - 3);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstate.searchParam.searchTimeList = [dayjs(start).format(\"YYYY-MM-DD 00:00:00\"), dayjs(end).format(\"YYYY-MM-DD 23:59:59\")];\n\t\t}\n\t};\n\n\tconst tableSearch = async (): Promise<void> => {\n\t\t// 重置到第一页\n\t\tstate.tablePagination.pageIndex = 1;\n\t\tupdatedTotalParam();\n\t\tawait loadData();\n\t};\n\tconst renderTable = debounce((): Promise<void> => {\n\t\tloadTableColumns();\n\t\treturn tableSearch();\n\t}, 300);\n\n\tconst tableReset = async (): Promise<void> => {\n\t\t// 重置到第一页\n\t\tstate.tablePagination.pageIndex = 1;\n\t\t// 清除搜索条件\n\t\tstate.searchParam = {};\n\t\tdefaultSearchTime();\n\t\t// 重置搜索表单的时候,如果有默认搜索参数,则重置默认的搜索参数\n\t\tif (typeof state.initParam === \"object\" && state.initParam !== null) {\n\t\t\tObject.assign(state.searchParam, state.initParam);\n\t\t}\n\t\temit(\"reset\", state.searchParam);\n\t\tawait loadData();\n\t};\n\n\tconst doRender = async (): Promise<void> => {\n\t\tstate.orgColumns = [];\n\t\tstate.autoColumnWidth = [];\n\t\tstate.tableData = [];\n\t\tawait renderTable();\n\t};\n\n\tconst doLoading = (loadingFunction: () => void | Promise<void>, loadingText = \"加载中...\"): void => {\n\t\tstate.loading = true;\n\t\tstate.loadingText = loadingText;\n\t\tvoid callOptionalFunction(loadingFunction).finally(() => {\n\t\t\tstate.loading = false;\n\t\t});\n\t};\n\n\tconst handleCustomCellClick = (\n\t\temitName: string,\n\t\t{ row, column, $index }: { row: FaTableRow; column: FaTableColumnCtx; $index: number }\n\t): void => {\n\t\temit(\"customCellClick\", emitName, { row, column, $index, ...getTableDefaultSlots(state) });\n\t};\n\n\twatch(\n\t\t() => props.tableKey,\n\t\t() => doRender()\n\t);\n\n\twatch(\n\t\t() => props.searchForm,\n\t\t(newValue) => {\n\t\t\tstate.searchForm = newValue;\n\t\t}\n\t);\n\n\treturn {\n\t\t_globalSize,\n\t\tstate,\n\t\telementRef,\n\t\ttableRef,\n\t\thandleTableColumnAutoWidth,\n\t\tgetRequestParam,\n\t\tloadTableColumns,\n\t\thandleSizeChange,\n\t\thandlePaginationChange,\n\t\tdefaultSearchTime,\n\t\ttableSearch,\n\t\ttableReset,\n\t\tdoRender,\n\t\tdoLoading,\n\t\thandleCustomCellClick,\n\t};\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { PagedSortInput } from "../src/page.type";
|
|
2
|
+
import type { FaTableColumnCtx, FaTableEnumColumnCtx, FaTableEnumColumnType } from "../src/table.type";
|
|
3
|
+
/**
|
|
4
|
+
* 表格工具类
|
|
5
|
+
*/
|
|
6
|
+
export declare const tableUtil: {
|
|
7
|
+
/**
|
|
8
|
+
* @description 处理无数据情况
|
|
9
|
+
* @param {String} callValue 需要处理的值
|
|
10
|
+
*/
|
|
11
|
+
formatValue(callValue: unknown): unknown;
|
|
12
|
+
/**
|
|
13
|
+
* @description 处理 prop 为多级嵌套的情况(列如: prop:user.name)
|
|
14
|
+
* @param {Object} row 当前行数据
|
|
15
|
+
* @param {String} prop 当前 prop
|
|
16
|
+
*/
|
|
17
|
+
handleRowAccordingToProp(row: Record<string, unknown>, prop: string): unknown;
|
|
18
|
+
/**
|
|
19
|
+
* @description 处理 prop,当 prop 为多级嵌套时 ==> 返回最后一级 prop
|
|
20
|
+
* @param {String} prop 当前 prop
|
|
21
|
+
*/
|
|
22
|
+
handleProp(prop: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* @description 根据枚举列表查询当需要的数据(如果指定了 label 和 value 的 key值,会自动识别格式化)
|
|
25
|
+
* @param {String} callValue 当前单元格值
|
|
26
|
+
* @param {Array} enumData 字典列表
|
|
27
|
+
* @param {Array} fieldNames 指定 label && value 的 key 值
|
|
28
|
+
* @param {String} type 过滤类型(目前只有 tag)
|
|
29
|
+
*/
|
|
30
|
+
filterEnum(callValue: unknown, enumData: FaTableEnumColumnCtx[], fieldNames?: {
|
|
31
|
+
label: string;
|
|
32
|
+
value: string;
|
|
33
|
+
}, type?: "tag"): unknown;
|
|
34
|
+
/**
|
|
35
|
+
* 数组动态排序
|
|
36
|
+
*/
|
|
37
|
+
arrayDynamicSort(sortList: PagedSortInput[]): (a: Record<string, unknown>, b: Record<string, unknown>) => number;
|
|
38
|
+
/**
|
|
39
|
+
* 设置枚举
|
|
40
|
+
*/
|
|
41
|
+
setEnumMap(columnEnum: FaTableEnumColumnType, prop: string, enumMap: Map<string, FaTableEnumColumnCtx[]>): void;
|
|
42
|
+
/**
|
|
43
|
+
* 扁平化 columns
|
|
44
|
+
*/
|
|
45
|
+
flatColumns(columns: FaTableColumnCtx[], enumMap?: Map<string, FaTableEnumColumnCtx[]>): FaTableColumnCtx[];
|
|
46
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import isArray from "../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.mjs";
|
|
2
|
+
import isFunction from "../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.mjs";
|
|
3
|
+
import isString from "../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isString.mjs";
|
|
4
|
+
//#region src/components/table/utils/table.ts
|
|
5
|
+
/**
|
|
6
|
+
* 表格工具类
|
|
7
|
+
*/
|
|
8
|
+
const tableUtil = {
|
|
9
|
+
/**
|
|
10
|
+
* @description 处理无数据情况
|
|
11
|
+
* @param {String} callValue 需要处理的值
|
|
12
|
+
*/
|
|
13
|
+
formatValue(callValue) {
|
|
14
|
+
if (isArray(callValue)) return callValue.length ? callValue.join(` , `) : null;
|
|
15
|
+
return callValue;
|
|
16
|
+
},
|
|
17
|
+
/**
|
|
18
|
+
* @description 处理 prop 为多级嵌套的情况(列如: prop:user.name)
|
|
19
|
+
* @param {Object} row 当前行数据
|
|
20
|
+
* @param {String} prop 当前 prop
|
|
21
|
+
*/
|
|
22
|
+
handleRowAccordingToProp(row, prop) {
|
|
23
|
+
let value = row;
|
|
24
|
+
for (const item of prop.split(".")) {
|
|
25
|
+
if (typeof value !== "object" || value === null) return void 0;
|
|
26
|
+
value = value[item];
|
|
27
|
+
}
|
|
28
|
+
return value;
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* @description 处理 prop,当 prop 为多级嵌套时 ==> 返回最后一级 prop
|
|
32
|
+
* @param {String} prop 当前 prop
|
|
33
|
+
*/
|
|
34
|
+
handleProp(prop) {
|
|
35
|
+
const propArr = prop.split(".");
|
|
36
|
+
if (propArr.length === 1) return prop;
|
|
37
|
+
return propArr.at(-1) ?? prop;
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* @description 根据枚举列表查询当需要的数据(如果指定了 label 和 value 的 key值,会自动识别格式化)
|
|
41
|
+
* @param {String} callValue 当前单元格值
|
|
42
|
+
* @param {Array} enumData 字典列表
|
|
43
|
+
* @param {Array} fieldNames 指定 label && value 的 key 值
|
|
44
|
+
* @param {String} type 过滤类型(目前只有 tag)
|
|
45
|
+
*/
|
|
46
|
+
filterEnum(callValue, enumData, fieldNames, type) {
|
|
47
|
+
const value = fieldNames?.value ?? "value";
|
|
48
|
+
const label = fieldNames?.label ?? "label";
|
|
49
|
+
let filterData;
|
|
50
|
+
if (isArray(enumData)) filterData = enumData.find((item) => item[value] === callValue);
|
|
51
|
+
if (type === "tag") return filterData?.type ?? "info";
|
|
52
|
+
return filterData ? filterData[label] : null;
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* 数组动态排序
|
|
56
|
+
*/
|
|
57
|
+
arrayDynamicSort(sortList) {
|
|
58
|
+
return (a, b) => {
|
|
59
|
+
if (sortList && sortList.length > 0) for (const condition of sortList) {
|
|
60
|
+
const property = condition.enField;
|
|
61
|
+
const order = condition.mode;
|
|
62
|
+
if (!property) continue;
|
|
63
|
+
const aValue = a[property];
|
|
64
|
+
const bValue = b[property];
|
|
65
|
+
if (typeof aValue === "string" && typeof bValue === "string") {
|
|
66
|
+
if (order === "ascending") {
|
|
67
|
+
const comparison = aValue.localeCompare(bValue, "zh-CN");
|
|
68
|
+
if (comparison !== 0) return comparison;
|
|
69
|
+
} else if (order === "descending") {
|
|
70
|
+
const comparison = bValue.localeCompare(aValue, "zh-CN");
|
|
71
|
+
if (comparison !== 0) return comparison;
|
|
72
|
+
}
|
|
73
|
+
} else if (typeof aValue === "number" && typeof bValue === "number") {
|
|
74
|
+
if (order === "ascending") {
|
|
75
|
+
if (aValue < bValue) return -1;
|
|
76
|
+
if (aValue > bValue) return 1;
|
|
77
|
+
} else if (order === "descending") {
|
|
78
|
+
if (aValue > bValue) return -1;
|
|
79
|
+
if (aValue < bValue) return 1;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return 0;
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* 设置枚举
|
|
88
|
+
*/
|
|
89
|
+
setEnumMap(columnEnum, prop, enumMap) {
|
|
90
|
+
if (!columnEnum) return;
|
|
91
|
+
if (isFunction(columnEnum)) enumMap.set(prop, columnEnum());
|
|
92
|
+
else if (isArray(columnEnum)) enumMap.set(prop, columnEnum);
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* 扁平化 columns
|
|
96
|
+
*/
|
|
97
|
+
flatColumns(columns, enumMap) {
|
|
98
|
+
const flatArr = [];
|
|
99
|
+
columns.forEach((col) => {
|
|
100
|
+
if (col._children?.length) flatArr.push(...this.flatColumns(col._children));
|
|
101
|
+
flatArr.push(col);
|
|
102
|
+
col.show ??= true;
|
|
103
|
+
let enumKey = col.prop ?? col.search?.key;
|
|
104
|
+
if (col.enum && isString(col.enum)) enumKey = col.enum;
|
|
105
|
+
if (col.enum && enumKey && enumMap) this.setEnumMap(col.enum, enumKey, enumMap);
|
|
106
|
+
});
|
|
107
|
+
return flatArr.filter((item) => !item._children?.length);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
//#endregion
|
|
111
|
+
export { tableUtil };
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=table.mjs.map
|