@para-ui/core 5.0.0-beta.11 → 5.0.0-beta.13
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/AGENTS.md +315 -0
- package/AlignBox/component.json +89 -0
- package/Anchor/component.json +130 -0
- package/Argv/component.json +216 -0
- package/AutoBox/component.json +133 -0
- package/AutoButton/component.json +109 -0
- package/AutoTips/component.json +121 -0
- package/Badge/component.json +92 -0
- package/Breadcrumbs/component.json +142 -0
- package/Button/component.json +168 -0
- package/ButtonGroup/component.json +132 -0
- package/Card/component.json +162 -0
- package/Carousel/component.json +142 -0
- package/Cascader/component.json +196 -0
- package/Checkbox/component.json +138 -0
- package/CheckboxGroup/component.json +152 -0
- package/CodeEditor/component.json +189 -0
- package/Collapse/component.json +166 -0
- package/CollapseBox/component.json +84 -0
- package/CollapseLayout/component.json +155 -0
- package/ColorPicker/component.json +142 -0
- package/ComboSelect/component.json +181 -0
- package/Container/component.json +111 -0
- package/ContentBox/component.json +81 -0
- package/CopyText/component.json +118 -0
- package/CycleSelector/component.json +98 -0
- package/DatePicker/component.json +192 -0
- package/Descriptions/component.json +142 -0
- package/Desktop/component.json +171 -0
- package/DragVerify/component.json +114 -0
- package/Drawer/component.json +200 -0
- package/Dropdown/component.json +147 -0
- package/DynamicMultiBox/component.json +278 -0
- package/Empty/component.json +123 -0
- package/FieldForm/component.json +196 -0
- package/Form/component.json +161 -0
- package/FormItem/component.json +171 -0
- package/FunctionModal/component.json +197 -0
- package/Help/component.json +118 -0
- package/HelperText/component.json +126 -0
- package/Image/component.json +165 -0
- package/InputCode/component.json +191 -0
- package/InputLang/component.json +205 -0
- package/InputNumber/component.json +162 -0
- package/Label/component.json +126 -0
- package/Loading/component.json +91 -0
- package/Menu/component.json +180 -0
- package/Message/component.json +246 -0
- package/Modal/component.json +277 -0
- package/MultiBox/component.json +216 -0
- package/Notification/component.json +184 -0
- package/OperateBtn/component.json +134 -0
- package/PageHeader/component.json +112 -0
- package/Pagination/component.json +181 -0
- package/PasswordRules/component.json +105 -0
- package/PopConfirm/component.json +227 -0
- package/PopMenu/component.json +131 -0
- package/Popover/component.json +165 -0
- package/Progress/component.json +161 -0
- package/Prompt/component.json +144 -0
- package/Querying/component.json +96 -0
- package/QuickReply/component.json +129 -0
- package/Radio/component.json +136 -0
- package/RadioGroup/component.json +149 -0
- package/RangeInput/component.json +198 -0
- package/Result/component.json +104 -0
- package/ScrollBar/component.json +115 -0
- package/Search/component.json +177 -0
- package/Select/component.json +244 -0
- package/SelectInput/component.json +184 -0
- package/Selector/component.json +203 -0
- package/SelectorPicker/component.json +179 -0
- package/SingleBox/component.json +151 -0
- package/Slider/component.json +181 -0
- package/SortBox/component.json +108 -0
- package/Status/component.json +104 -0
- package/Stepper/component.json +129 -0
- package/Switch/component.json +207 -0
- package/Table/component.json +547 -0
- package/Tabs/component.json +227 -0
- package/Tag/component.json +221 -0
- package/TextEditor/component.json +186 -0
- package/TextField/component.json +290 -0
- package/TimePicker/component.json +176 -0
- package/Timeline/component.json +110 -0
- package/Title/component.json +156 -0
- package/ToggleButton/component.json +153 -0
- package/Tooltip/component.json +176 -0
- package/Transfer/component.json +157 -0
- package/Tree/component.json +512 -0
- package/Upload/component.json +450 -0
- package/ai-workflows/01-crud-list-multi-drawer.md +278 -0
- package/ai-workflows/02-rbac-operation-buttons.md +290 -0
- package/ai-workflows/03-complex-form-async-cascade.md +350 -0
- package/ai-workflows/04-array-field-form.md +281 -0
- package/ai-workflows/05-popconfirm-async-message-queue.md +333 -0
- package/ai-workflows/06-modal-drawer-form-workflow.md +385 -0
- package/ai-workflows/07-search-filter-table-trio.md +387 -0
- package/ai-workflows/08-table-advanced-features.md +365 -0
- package/ai-workflows/09-batch-operation-export-progress.md +367 -0
- package/ai-workflows/10-cross-component-state-coordination.md +412 -0
- package/es/AlignBox/component.json +89 -0
- package/es/AlignBox/index.css +1 -1
- package/es/AlignBox/index.d.ts +6 -2
- package/es/AlignBox/index.js +1 -1
- package/es/AlignBox/style/index.css +1 -1
- package/es/Anchor/anchorMenu/index.d.ts +2 -1
- package/es/Anchor/anchorMenu/index.js +36 -33
- package/es/Anchor/component.json +130 -0
- package/es/Anchor/index.js +52 -49
- package/es/Anchor/type.d.ts +8 -4
- package/es/Argv/component.json +216 -0
- package/es/Argv/dataGenerator/index.js +1 -1
- package/es/Argv/index.d.ts +5 -6
- package/es/Argv/index.js +1 -1
- package/es/AutoBox/component.json +133 -0
- package/es/AutoBox/index.d.ts +3 -3
- package/es/AutoBox/index.js +1 -1
- package/es/AutoBox/protal.d.ts +2 -2
- package/es/AutoBox/protal.js +33 -30
- package/es/AutoButton/component.json +109 -0
- package/es/AutoButton/index.js +1 -1
- package/es/AutoTips/autoTipsMultiline/index.d.ts +1 -1
- package/es/AutoTips/autoTipsMultiline/index.js +1 -1
- package/es/AutoTips/component.json +121 -0
- package/es/AutoTips/index.js +1 -1
- package/es/Badge/component.json +92 -0
- package/es/Breadcrumbs/component.json +142 -0
- package/es/Breadcrumbs/index.js +1 -1
- package/es/Button/SplitButton.d.ts +2 -2
- package/es/Button/component.json +168 -0
- package/es/Button/index.js +44 -44
- package/es/ButtonGroup/component.json +132 -0
- package/es/ButtonGroup/index.d.ts +1 -1
- package/es/Card/component.json +162 -0
- package/es/Card/index.d.ts +2 -2
- package/es/Card/index.js +2 -2
- package/es/Carousel/component.json +142 -0
- package/es/Carousel/index.d.ts +1 -1
- package/es/Cascader/Cascader.js +1 -1
- package/es/Cascader/OptionList/Column.js +1 -1
- package/es/Cascader/OptionList/index.js +1 -1
- package/es/Cascader/component.json +196 -0
- package/es/Cascader/hooks/useEntities.js +7 -7
- package/es/Cascader/interface.d.ts +1 -0
- package/es/Cascader/utils/commonUtil.d.ts +1 -1
- package/es/Cascader/utils/commonUtil.js +16 -16
- package/es/Cascader/utils/treeUtil.d.ts +14 -5
- package/es/Cascader/utils/treeUtil.js +1 -1
- package/es/Checkbox/component.json +138 -0
- package/es/CheckboxGroup/component.json +152 -0
- package/es/CheckboxGroup/index.js +1 -1
- package/es/CodeEditor/component.json +189 -0
- package/es/CodeEditor/index.d.ts +11 -10
- package/es/CodeEditor/index.js +19 -19
- package/es/Collapse/component.json +166 -0
- package/es/Collapse/index.d.ts +1 -1
- package/es/Collapse/index.js +23 -22
- package/es/CollapseBox/component.json +84 -0
- package/es/CollapseLayout/component.json +155 -0
- package/es/ColorPicker/component.json +142 -0
- package/es/ComboSelect/component.json +181 -0
- package/es/ComboSelect/index.js +115 -109
- package/es/ComboSelect/interface.d.ts +2 -2
- package/es/ComboSelect/utils.d.ts +3 -3
- package/es/ComboSelect/utils.js +1 -1
- package/es/Container/component.json +111 -0
- package/es/ContentBox/component.json +81 -0
- package/es/CopyText/component.json +118 -0
- package/es/CycleSelector/component.json +98 -0
- package/es/CycleSelector/index.js +14 -13
- package/es/DatePicker/component.json +192 -0
- package/es/DatePicker/generatePicker/generateRangePicker.js +11 -11
- package/es/DatePicker/generatePicker/generateSinglePicker.js +2 -2
- package/es/Descriptions/component.json +142 -0
- package/es/Descriptions/index.d.ts +1 -1
- package/es/Desktop/component.json +171 -0
- package/es/Desktop/index.js +1 -1
- package/es/DragVerify/component.json +114 -0
- package/es/DragVerify/index.js +19 -19
- package/es/Drawer/component.json +200 -0
- package/es/Drawer/index.js +86 -86
- package/es/Drawer/interface.d.ts +1 -1
- package/es/Drawer/util.d.ts +1 -6
- package/es/Drawer/util.js +9 -6
- package/es/Dropdown/component.json +147 -0
- package/es/Dropdown/index.js +1 -1
- package/es/DynamicMultiBox/component.json +278 -0
- package/es/DynamicMultiBox/formItem.d.ts +1 -1
- package/es/DynamicMultiBox/index.js +1 -1
- package/es/DynamicMultiBox/rowForm.d.ts +2 -2
- package/es/Empty/component.json +123 -0
- package/es/Empty/index.css +1 -1
- package/es/Empty/index.d.ts +2 -2
- package/es/Empty/index.js +27 -26
- package/es/Empty/style/index.css +1 -1
- package/es/FieldForm/FieldFormItem/ItemHolder.js +1 -1
- package/es/FieldForm/FieldFormItem/MemoInput.d.ts +2 -2
- package/es/FieldForm/FieldFormItem/StatusProvider.js +1 -1
- package/es/FieldForm/FieldFormItem/index.d.ts +6 -6
- package/es/FieldForm/Form.d.ts +2 -2
- package/es/FieldForm/Form.js +1 -1
- package/es/FieldForm/FormItemInput.js +1 -1
- package/es/FieldForm/FormItemLabel.js +1 -1
- package/es/FieldForm/FormList.d.ts +2 -2
- package/es/FieldForm/component.json +196 -0
- package/es/FieldForm/context.d.ts +5 -1
- package/es/FieldForm/context.js +2 -2
- package/es/FieldForm/hooks/useForm.d.ts +4 -3
- package/es/FieldForm/hooks/useFormInstance.d.ts +1 -1
- package/es/FieldForm/hooks/useFormItemStatus.d.ts +9 -5
- package/es/FieldForm/hooks/useFormItemStatus.js +2 -2
- package/es/FieldForm/hooks/useItemRef.d.ts +1 -1
- package/es/FieldForm/hooks/useItemRef.js +6 -6
- package/es/Form/component.json +161 -0
- package/es/Form/index.d.ts +52 -49
- package/es/Form/index.js +1 -1
- package/es/FormItem/compoments/defaultCompoments/index.d.ts +5 -5
- package/es/FormItem/compoments/defaultCompoments/index.js +12 -11
- package/es/FormItem/compoments/formCheckboxGroup/index.d.ts +2 -2
- package/es/FormItem/compoments/formFile/index.js +8 -8
- package/es/FormItem/compoments/formRadioGroup/index.d.ts +1 -1
- package/es/FormItem/compoments/formSelect/index.d.ts +1 -1
- package/es/FormItem/component.json +171 -0
- package/es/FormItem/index.d.ts +5 -5
- package/es/FormItem/index.js +23 -23
- package/es/FormItem/itemType.js +1 -1
- package/es/FunctionModal/component.json +197 -0
- package/es/FunctionModal/dialog.d.ts +1 -1
- package/es/FunctionModal/modalContext.d.ts +4 -1
- package/es/GlobalContext/confirmLocale.js +1 -1
- package/es/GlobalContext/index.js +1 -1
- package/es/Help/component.json +118 -0
- package/es/HelperText/component.json +126 -0
- package/es/Image/PreviewGroup.js +1 -1
- package/es/Image/component.json +165 -0
- package/es/Image/index.js +1 -1
- package/es/InputCode/component.json +191 -0
- package/es/InputCode/index.d.ts +2 -2
- package/es/InputLang/component.json +205 -0
- package/es/InputLang/index.js +2 -2
- package/es/InputNumber/component.json +162 -0
- package/es/Label/component.json +126 -0
- package/es/Label/index.d.ts +2 -2
- package/es/Loading/component.json +91 -0
- package/es/Menu/component.json +180 -0
- package/es/Menu/verticalMenuList.js +1 -1
- package/es/Message/component.json +246 -0
- package/es/Message/index.d.ts +2 -2
- package/es/Message/index.js +2 -2
- package/es/Modal/Confirm/index.d.ts +1 -1
- package/es/Modal/Confirm/index.js +1 -1
- package/es/Modal/component.json +277 -0
- package/es/Modal/index.d.ts +85 -5
- package/es/Modal/index.js +159 -122
- package/es/Modal/interface.d.ts +1 -0
- package/es/MultiBox/component.json +216 -0
- package/es/MultiBox/index.js +19 -14
- package/es/Notification/component.json +184 -0
- package/es/OperateBtn/component.json +134 -0
- package/es/OperateBtn/index.d.ts +3 -3
- package/es/PageHeader/component.json +112 -0
- package/es/PageHeader/horizontalMeun.js +1 -1
- package/es/PageHeader/horizontalMeunRight.js +1 -1
- package/es/Pagination/component.json +181 -0
- package/es/Pagination/index.js +15 -15
- package/es/ParauiProvider/index.js +1 -1
- package/es/PasswordRules/component.json +105 -0
- package/es/PasswordRules/index.d.ts +4 -4
- package/es/PopConfirm/component.json +227 -0
- package/es/PopConfirm/index.d.ts +1 -1
- package/es/PopConfirm/index.js +1 -1
- package/es/PopMenu/component.json +131 -0
- package/es/PopMenu/hooks.d.ts +1 -1
- package/es/PopMenu/index.js +8 -8
- package/es/Popover/component.json +165 -0
- package/es/Popover/index.js +1 -1
- package/es/Progress/component.json +161 -0
- package/es/Prompt/component.json +144 -0
- package/es/Querying/component.json +96 -0
- package/es/Querying/index.css +1 -1
- package/es/Querying/index.d.ts +2 -2
- package/es/Querying/index.js +20 -19
- package/es/Querying/style/index.css +1 -1
- package/es/QuickReply/QuickReplyCode/index.js +1 -1
- package/es/QuickReply/component.json +129 -0
- package/es/QuickReply/index.d.ts +1 -1
- package/es/Radio/component.json +136 -0
- package/es/RadioGroup/component.json +149 -0
- package/es/RangeInput/component.json +198 -0
- package/es/RangeInput/index.js +20 -20
- package/es/Result/component.json +104 -0
- package/es/ScrollBar/component.json +115 -0
- package/es/Search/component.json +177 -0
- package/es/Search/index.d.ts +1 -1
- package/es/Select/component.json +244 -0
- package/es/Select/index.js +114 -114
- package/es/SelectInput/component.json +184 -0
- package/es/Selector/component.json +203 -0
- package/es/Selector/index.js +56 -50
- package/es/Selector/interface.d.ts +2 -2
- package/es/Selector/selectorData/index.js +1 -1
- package/es/Selector/selectorMain/index.js +3 -3
- package/es/Selector/selectorNode/index.js +1 -1
- package/es/Selector/util.d.ts +3 -3
- package/es/Selector/util.js +6 -12
- package/es/SelectorPicker/component.json +179 -0
- package/es/SelectorPicker/index.d.ts +5 -5
- package/es/SelectorPicker/index.js +15 -15
- package/es/SingleBox/component.json +151 -0
- package/es/SingleBox/index.d.ts +2 -2
- package/es/Slider/component.json +181 -0
- package/es/SortBox/component.json +108 -0
- package/es/Status/component.json +104 -0
- package/es/Stepper/component.json +129 -0
- package/es/Stepper/index.d.ts +2 -2
- package/es/Switch/component.json +207 -0
- package/es/Switch/index.css +1 -1
- package/es/Switch/index.d.ts +3 -2
- package/es/Switch/index.js +60 -59
- package/es/Switch/style/index.css +1 -1
- package/es/Table/component.json +547 -0
- package/es/Table/index.d.ts +2 -2
- package/es/Table/index.js +385 -382
- package/es/Table/interface.d.ts +30 -0
- package/es/Table/tableHead.js +1 -1
- package/es/Table/util.d.ts +1 -1
- package/es/Table/util.js +3 -12
- package/es/Tabs/component.json +227 -0
- package/es/Tag/component.json +221 -0
- package/es/Tag/index.css +1 -1
- package/es/Tag/index.d.ts +1 -1
- package/es/Tag/index.js +20 -20
- package/es/Tag/style/index.css +1 -1
- package/es/TextEditor/component.json +186 -0
- package/es/TextEditor/index.d.ts +5 -5
- package/es/TextEditor/index.js +1 -1
- package/es/TextField/component.json +290 -0
- package/es/TextField/index.d.ts +2 -2
- package/es/TextField/index.js +1 -1
- package/es/TimePicker/component.json +176 -0
- package/es/Timeline/component.json +110 -0
- package/es/Title/component.json +156 -0
- package/es/ToggleButton/component.json +153 -0
- package/es/ToggleButton/index.js +1 -1
- package/es/Tooltip/component.json +176 -0
- package/es/Tooltip/index.js +58 -53
- package/es/Tooltip/interface.d.ts +14 -1
- package/es/Tooltip/utils.js +6 -6
- package/es/Transfer/component.json +157 -0
- package/es/Tree/OperateBar/index.js +1 -1
- package/es/Tree/Tree.js +3 -3
- package/es/Tree/component.json +512 -0
- package/es/Tree/interface.d.ts +1 -1
- package/es/Upload/component.json +450 -0
- package/es/Upload/util.js +1 -1
- package/es/Utils/snack-kit-shims.d.ts +18 -0
- package/es/Utils/snack-kit-shims.js +19 -0
- package/es/Utils/type.d.ts +0 -2
- package/es/_virtual/index.js +5 -3
- package/es/_virtual/index2.js +2 -5
- package/es/index.d.ts +2 -0
- package/es/index.js +1 -1
- package/es/locale/en_US.d.ts +361 -0
- package/es/locale/en_US.js +364 -0
- package/es/locale/index.d.ts +1 -723
- package/es/locale/index2.js +10 -0
- package/es/locale/zh_CN.d.ts +361 -0
- package/es/locale/zh_CN.js +364 -0
- package/es/node_modules/classnames/index.js +1 -1
- package/lib/AlignBox/component.json +89 -0
- package/lib/AlignBox/index.css +1 -1
- package/lib/AlignBox/index.d.ts +6 -2
- package/lib/AlignBox/index.js +1 -1
- package/lib/AlignBox/style/index.css +1 -1
- package/lib/Anchor/anchorMenu/index.d.ts +2 -1
- package/lib/Anchor/anchorMenu/index.js +1 -1
- package/lib/Anchor/component.json +130 -0
- package/lib/Anchor/index.js +1 -1
- package/lib/Anchor/type.d.ts +8 -4
- package/lib/Argv/component.json +216 -0
- package/lib/Argv/dataGenerator/index.js +1 -1
- package/lib/Argv/index.d.ts +5 -6
- package/lib/Argv/index.js +1 -1
- package/lib/AutoBox/component.json +133 -0
- package/lib/AutoBox/index.d.ts +3 -3
- package/lib/AutoBox/index.js +1 -1
- package/lib/AutoBox/protal.d.ts +2 -2
- package/lib/AutoBox/protal.js +1 -1
- package/lib/AutoButton/component.json +109 -0
- package/lib/AutoButton/index.js +1 -1
- package/lib/AutoTips/autoTipsMultiline/index.d.ts +1 -1
- package/lib/AutoTips/autoTipsMultiline/index.js +1 -1
- package/lib/AutoTips/component.json +121 -0
- package/lib/AutoTips/index.js +1 -1
- package/lib/Badge/component.json +92 -0
- package/lib/Breadcrumbs/component.json +142 -0
- package/lib/Breadcrumbs/index.js +1 -1
- package/lib/Button/SplitButton.d.ts +2 -2
- package/lib/Button/component.json +168 -0
- package/lib/Button/index.js +1 -1
- package/lib/ButtonGroup/component.json +132 -0
- package/lib/ButtonGroup/index.d.ts +1 -1
- package/lib/Card/component.json +162 -0
- package/lib/Card/index.d.ts +2 -2
- package/lib/Card/index.js +1 -1
- package/lib/Carousel/component.json +142 -0
- package/lib/Carousel/index.d.ts +1 -1
- package/lib/Cascader/Cascader.js +1 -1
- package/lib/Cascader/OptionList/Column.js +1 -1
- package/lib/Cascader/OptionList/index.js +1 -1
- package/lib/Cascader/component.json +196 -0
- package/lib/Cascader/hooks/useEntities.js +1 -1
- package/lib/Cascader/interface.d.ts +1 -0
- package/lib/Cascader/utils/commonUtil.d.ts +1 -1
- package/lib/Cascader/utils/commonUtil.js +1 -1
- package/lib/Cascader/utils/treeUtil.d.ts +14 -5
- package/lib/Cascader/utils/treeUtil.js +1 -1
- package/lib/Checkbox/component.json +138 -0
- package/lib/CheckboxGroup/component.json +152 -0
- package/lib/CheckboxGroup/index.js +1 -1
- package/lib/CodeEditor/component.json +189 -0
- package/lib/CodeEditor/index.d.ts +11 -10
- package/lib/CodeEditor/index.js +1 -1
- package/lib/Collapse/component.json +166 -0
- package/lib/Collapse/index.d.ts +1 -1
- package/lib/Collapse/index.js +1 -1
- package/lib/CollapseBox/component.json +84 -0
- package/lib/CollapseLayout/component.json +155 -0
- package/lib/ColorPicker/component.json +142 -0
- package/lib/ComboSelect/component.json +181 -0
- package/lib/ComboSelect/index.js +1 -1
- package/lib/ComboSelect/interface.d.ts +2 -2
- package/lib/ComboSelect/utils.d.ts +3 -3
- package/lib/ComboSelect/utils.js +1 -1
- package/lib/Container/component.json +111 -0
- package/lib/ContentBox/component.json +81 -0
- package/lib/CopyText/component.json +118 -0
- package/lib/CycleSelector/component.json +98 -0
- package/lib/CycleSelector/index.js +1 -1
- package/lib/DatePicker/component.json +192 -0
- package/lib/DatePicker/generatePicker/generateRangePicker.js +1 -1
- package/lib/DatePicker/generatePicker/generateSinglePicker.js +1 -1
- package/lib/Descriptions/component.json +142 -0
- package/lib/Descriptions/index.d.ts +1 -1
- package/lib/Desktop/component.json +171 -0
- package/lib/Desktop/index.js +1 -1
- package/lib/DragVerify/component.json +114 -0
- package/lib/DragVerify/index.js +1 -1
- package/lib/Drawer/component.json +200 -0
- package/lib/Drawer/index.js +1 -1
- package/lib/Drawer/interface.d.ts +1 -1
- package/lib/Drawer/util.d.ts +1 -6
- package/lib/Drawer/util.js +1 -1
- package/lib/Dropdown/component.json +147 -0
- package/lib/Dropdown/index.js +1 -1
- package/lib/DynamicMultiBox/component.json +278 -0
- package/lib/DynamicMultiBox/formItem.d.ts +1 -1
- package/lib/DynamicMultiBox/index.js +1 -1
- package/lib/DynamicMultiBox/rowForm.d.ts +2 -2
- package/lib/Empty/component.json +123 -0
- package/lib/Empty/index.css +1 -1
- package/lib/Empty/index.d.ts +2 -2
- package/lib/Empty/index.js +1 -1
- package/lib/Empty/style/index.css +1 -1
- package/lib/FieldForm/FieldFormItem/ItemHolder.js +1 -1
- package/lib/FieldForm/FieldFormItem/MemoInput.d.ts +2 -2
- package/lib/FieldForm/FieldFormItem/StatusProvider.js +1 -1
- package/lib/FieldForm/FieldFormItem/index.d.ts +6 -6
- package/lib/FieldForm/Form.d.ts +2 -2
- package/lib/FieldForm/Form.js +1 -1
- package/lib/FieldForm/FormItemInput.js +1 -1
- package/lib/FieldForm/FormItemLabel.js +1 -1
- package/lib/FieldForm/FormList.d.ts +2 -2
- package/lib/FieldForm/component.json +196 -0
- package/lib/FieldForm/context.d.ts +5 -1
- package/lib/FieldForm/context.js +1 -1
- package/lib/FieldForm/hooks/useForm.d.ts +4 -3
- package/lib/FieldForm/hooks/useFormInstance.d.ts +1 -1
- package/lib/FieldForm/hooks/useFormItemStatus.d.ts +9 -5
- package/lib/FieldForm/hooks/useFormItemStatus.js +1 -1
- package/lib/FieldForm/hooks/useItemRef.d.ts +1 -1
- package/lib/FieldForm/hooks/useItemRef.js +1 -1
- package/lib/Form/component.json +161 -0
- package/lib/Form/index.d.ts +52 -49
- package/lib/Form/index.js +1 -1
- package/lib/FormItem/compoments/defaultCompoments/index.d.ts +5 -5
- package/lib/FormItem/compoments/defaultCompoments/index.js +1 -1
- package/lib/FormItem/compoments/formCheckboxGroup/index.d.ts +2 -2
- package/lib/FormItem/compoments/formFile/index.js +1 -1
- package/lib/FormItem/compoments/formRadioGroup/index.d.ts +1 -1
- package/lib/FormItem/compoments/formSelect/index.d.ts +1 -1
- package/lib/FormItem/component.json +171 -0
- package/lib/FormItem/index.d.ts +5 -5
- package/lib/FormItem/index.js +1 -1
- package/lib/FormItem/itemType.js +1 -1
- package/lib/FunctionModal/component.json +197 -0
- package/lib/FunctionModal/dialog.d.ts +1 -1
- package/lib/FunctionModal/modalContext.d.ts +4 -1
- package/lib/GlobalContext/confirmLocale.js +1 -1
- package/lib/GlobalContext/index.js +1 -1
- package/lib/Help/component.json +118 -0
- package/lib/HelperText/component.json +126 -0
- package/lib/Image/PreviewGroup.js +1 -1
- package/lib/Image/component.json +165 -0
- package/lib/Image/index.js +1 -1
- package/lib/InputCode/component.json +191 -0
- package/lib/InputCode/index.d.ts +2 -2
- package/lib/InputLang/component.json +205 -0
- package/lib/InputLang/index.js +1 -1
- package/lib/InputNumber/component.json +162 -0
- package/lib/Label/component.json +126 -0
- package/lib/Label/index.d.ts +2 -2
- package/lib/Loading/component.json +91 -0
- package/lib/Menu/component.json +180 -0
- package/lib/Menu/verticalMenuList.js +1 -1
- package/lib/Message/component.json +246 -0
- package/lib/Message/index.d.ts +2 -2
- package/lib/Message/index.js +1 -1
- package/lib/Modal/Confirm/index.d.ts +1 -1
- package/lib/Modal/Confirm/index.js +1 -1
- package/lib/Modal/component.json +277 -0
- package/lib/Modal/index.d.ts +85 -5
- package/lib/Modal/index.js +1 -1
- package/lib/Modal/interface.d.ts +1 -0
- package/lib/MultiBox/component.json +216 -0
- package/lib/MultiBox/index.js +1 -1
- package/lib/Notification/component.json +184 -0
- package/lib/OperateBtn/component.json +134 -0
- package/lib/OperateBtn/index.d.ts +3 -3
- package/lib/PageHeader/component.json +112 -0
- package/lib/PageHeader/horizontalMeun.js +1 -1
- package/lib/PageHeader/horizontalMeunRight.js +1 -1
- package/lib/Pagination/component.json +181 -0
- package/lib/Pagination/index.js +1 -1
- package/lib/ParauiProvider/index.js +1 -1
- package/lib/PasswordRules/component.json +105 -0
- package/lib/PasswordRules/index.d.ts +4 -4
- package/lib/PopConfirm/component.json +227 -0
- package/lib/PopConfirm/index.d.ts +1 -1
- package/lib/PopConfirm/index.js +1 -1
- package/lib/PopMenu/component.json +131 -0
- package/lib/PopMenu/hooks.d.ts +1 -1
- package/lib/PopMenu/index.js +1 -1
- package/lib/Popover/component.json +165 -0
- package/lib/Popover/index.js +1 -1
- package/lib/Progress/component.json +161 -0
- package/lib/Prompt/component.json +144 -0
- package/lib/Querying/component.json +96 -0
- package/lib/Querying/index.css +1 -1
- package/lib/Querying/index.d.ts +2 -2
- package/lib/Querying/index.js +1 -1
- package/lib/Querying/style/index.css +1 -1
- package/lib/QuickReply/QuickReplyCode/index.js +1 -1
- package/lib/QuickReply/component.json +129 -0
- package/lib/QuickReply/index.d.ts +1 -1
- package/lib/Radio/component.json +136 -0
- package/lib/RadioGroup/component.json +149 -0
- package/lib/RangeInput/component.json +198 -0
- package/lib/RangeInput/index.js +1 -1
- package/lib/Result/component.json +104 -0
- package/lib/ScrollBar/component.json +115 -0
- package/lib/Search/component.json +177 -0
- package/lib/Search/index.d.ts +1 -1
- package/lib/Select/component.json +244 -0
- package/lib/Select/index.js +1 -1
- package/lib/SelectInput/component.json +184 -0
- package/lib/Selector/component.json +203 -0
- package/lib/Selector/index.js +1 -1
- package/lib/Selector/interface.d.ts +2 -2
- package/lib/Selector/selectorData/index.js +1 -1
- package/lib/Selector/selectorMain/index.js +1 -1
- package/lib/Selector/selectorNode/index.js +1 -1
- package/lib/Selector/util.d.ts +3 -3
- package/lib/Selector/util.js +1 -1
- package/lib/SelectorPicker/component.json +179 -0
- package/lib/SelectorPicker/index.d.ts +5 -5
- package/lib/SelectorPicker/index.js +1 -1
- package/lib/SingleBox/component.json +151 -0
- package/lib/SingleBox/index.d.ts +2 -2
- package/lib/Slider/component.json +181 -0
- package/lib/SortBox/component.json +108 -0
- package/lib/Status/component.json +104 -0
- package/lib/Stepper/component.json +129 -0
- package/lib/Stepper/index.d.ts +2 -2
- package/lib/Switch/component.json +207 -0
- package/lib/Switch/index.css +1 -1
- package/lib/Switch/index.d.ts +3 -2
- package/lib/Switch/index.js +1 -1
- package/lib/Switch/style/index.css +1 -1
- package/lib/Table/component.json +547 -0
- package/lib/Table/index.d.ts +2 -2
- package/lib/Table/index.js +1 -1
- package/lib/Table/interface.d.ts +30 -0
- package/lib/Table/tableHead.js +1 -1
- package/lib/Table/util.d.ts +1 -1
- package/lib/Table/util.js +1 -1
- package/lib/Tabs/component.json +227 -0
- package/lib/Tag/component.json +221 -0
- package/lib/Tag/index.css +1 -1
- package/lib/Tag/index.d.ts +1 -1
- package/lib/Tag/index.js +1 -1
- package/lib/Tag/style/index.css +1 -1
- package/lib/TextEditor/component.json +186 -0
- package/lib/TextEditor/index.d.ts +5 -5
- package/lib/TextEditor/index.js +1 -1
- package/lib/TextField/component.json +290 -0
- package/lib/TextField/index.d.ts +2 -2
- package/lib/TextField/index.js +1 -1
- package/lib/TimePicker/component.json +176 -0
- package/lib/Timeline/component.json +110 -0
- package/lib/Title/component.json +156 -0
- package/lib/ToggleButton/component.json +153 -0
- package/lib/ToggleButton/index.js +1 -1
- package/lib/Tooltip/component.json +176 -0
- package/lib/Tooltip/index.js +1 -1
- package/lib/Tooltip/interface.d.ts +14 -1
- package/lib/Tooltip/utils.js +1 -1
- package/lib/Transfer/component.json +157 -0
- package/lib/Tree/OperateBar/index.js +2 -2
- package/lib/Tree/Tree.js +1 -1
- package/lib/Tree/component.json +512 -0
- package/lib/Tree/interface.d.ts +1 -1
- package/lib/Upload/component.json +450 -0
- package/lib/Upload/util.js +1 -1
- package/lib/Utils/snack-kit-shims.d.ts +18 -0
- package/lib/Utils/snack-kit-shims.js +2 -0
- package/lib/Utils/type.d.ts +0 -2
- package/lib/_virtual/index.js +1 -1
- package/lib/_virtual/index2.js +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/lib/locale/en_US.d.ts +361 -0
- package/lib/locale/en_US.js +2 -0
- package/lib/locale/index.d.ts +1 -723
- package/lib/locale/index2.js +2 -0
- package/lib/locale/zh_CN.d.ts +361 -0
- package/lib/locale/zh_CN.js +2 -0
- package/lib/node_modules/classnames/index.js +1 -1
- package/package.json +11 -4
- package/es/_virtual/index3.js +0 -5
- package/es/_virtual/index4.js +0 -5
- package/es/node_modules/@para-snack/core/dist/index.js +0 -5231
- package/lib/_virtual/index3.js +0 -2
- package/lib/_virtual/index4.js +0 -2
- package/lib/node_modules/@para-snack/core/dist/index.js +0 -20
- /package/es/{Utils/Hooks → Hooks}/useResizeObserver.d.ts +0 -0
- /package/es/{Utils/Hooks → Hooks}/useResizeObserver.js +0 -0
- /package/lib/{Utils/Hooks → Hooks}/useResizeObserver.d.ts +0 -0
- /package/lib/{Utils/Hooks → Hooks}/useResizeObserver.js +0 -0
package/es/Table/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { j as S } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useState as u, useRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { useState as u, useRef as Q, useEffect as m, useMemo as Je } from "react";
|
|
3
|
+
import { Cancel as _t, DeepClone as $t, UUID as _r } from "@snack-kit/lib";
|
|
4
|
+
import { ArrayToObject as _e, GetBrowserClass as $r } from "../Utils/snack-kit-shims.js";
|
|
5
|
+
import { handGetReqParams as Et, getStringInNumber as Ce, requestFunc as Er, getLocalStorageSelectHead as qr, setLocalStorageSelectHead as Br } from "./util.js";
|
|
6
|
+
import { TableHead as Ir } from "./tableHead.js";
|
|
6
7
|
import { TableBody as Kr } from "./tableBody.js";
|
|
7
8
|
import { TableHead as Ur } from "./tablePagination.js";
|
|
8
9
|
import { TableContainer as Gr } from "./tableContainer/index.js";
|
|
@@ -14,122 +15,122 @@ import Zr from "../GlobalContext/useFormatMessage.js";
|
|
|
14
15
|
import en from "./lang/index.js";
|
|
15
16
|
import tn from "../ScrollBar/index.js";
|
|
16
17
|
import './index.css';/* empty css */
|
|
17
|
-
import rn from "../
|
|
18
|
-
const
|
|
19
|
-
const o = Yr(
|
|
20
|
-
|
|
18
|
+
import rn from "../Hooks/useResizeObserver.js";
|
|
19
|
+
const nn = (X) => {
|
|
20
|
+
const o = Yr(X, "Table");
|
|
21
|
+
$r() === "ie" && (o.fixedColumn = !1);
|
|
21
22
|
const {
|
|
22
|
-
className:
|
|
23
|
-
style:
|
|
23
|
+
className: $e,
|
|
24
|
+
style: qt,
|
|
24
25
|
url: x,
|
|
25
|
-
ctx:
|
|
26
|
-
emptyProps:
|
|
27
|
-
method:
|
|
28
|
-
data:
|
|
29
|
-
page:
|
|
26
|
+
ctx: De,
|
|
27
|
+
emptyProps: Ee,
|
|
28
|
+
method: P = "Get",
|
|
29
|
+
data: ye,
|
|
30
|
+
page: Bt = 1,
|
|
30
31
|
size: W = 10,
|
|
31
|
-
sizeArr:
|
|
32
|
-
search:
|
|
32
|
+
sizeArr: V = [10, 20, 50, 100],
|
|
33
|
+
search: qe,
|
|
33
34
|
pagination: A = !0,
|
|
34
|
-
paginationType:
|
|
35
|
-
flippingArrow:
|
|
36
|
-
autoPagination:
|
|
37
|
-
tableCell:
|
|
38
|
-
requestCallback:
|
|
39
|
-
checkDefaultValue:
|
|
40
|
-
setCheck:
|
|
41
|
-
radioDefaultValue:
|
|
42
|
-
setRadio:
|
|
43
|
-
refresh:
|
|
44
|
-
disabledArr:
|
|
45
|
-
disabledArrStatus:
|
|
46
|
-
headData:
|
|
47
|
-
sortTableRadio:
|
|
48
|
-
sortTable:
|
|
49
|
-
filter:
|
|
50
|
-
expandable:
|
|
51
|
-
rowKey:
|
|
52
|
-
check:
|
|
53
|
-
radio:
|
|
35
|
+
paginationType: Be = "complex",
|
|
36
|
+
flippingArrow: Ie,
|
|
37
|
+
autoPagination: Ke = !0,
|
|
38
|
+
tableCell: Ue,
|
|
39
|
+
requestCallback: Ge,
|
|
40
|
+
checkDefaultValue: Y,
|
|
41
|
+
setCheck: xe,
|
|
42
|
+
radioDefaultValue: Z,
|
|
43
|
+
setRadio: Te,
|
|
44
|
+
refresh: It,
|
|
45
|
+
disabledArr: ee,
|
|
46
|
+
disabledArrStatus: Qe,
|
|
47
|
+
headData: Xe = [],
|
|
48
|
+
sortTableRadio: Ye,
|
|
49
|
+
sortTable: te = !1,
|
|
50
|
+
filter: Ze = !1,
|
|
51
|
+
expandable: R,
|
|
52
|
+
rowKey: k = "key",
|
|
53
|
+
check: J = !1,
|
|
54
|
+
radio: _ = !1,
|
|
54
55
|
checkRememberPage: Kt = !1,
|
|
55
|
-
align:
|
|
56
|
-
paramsCallback:
|
|
57
|
-
operate:
|
|
58
|
-
showColumns:
|
|
59
|
-
fixedTable:
|
|
60
|
-
fixedColumn:
|
|
61
|
-
dragColumn:
|
|
62
|
-
dragRow:
|
|
63
|
-
formatter:
|
|
64
|
-
lineHeight:
|
|
65
|
-
lineWidth:
|
|
66
|
-
autoSize:
|
|
56
|
+
align: re = "left",
|
|
57
|
+
paramsCallback: ne,
|
|
58
|
+
operate: ae,
|
|
59
|
+
showColumns: z = "inside",
|
|
60
|
+
fixedTable: $ = !0,
|
|
61
|
+
fixedColumn: j = !0,
|
|
62
|
+
dragColumn: we = !0,
|
|
63
|
+
dragRow: E,
|
|
64
|
+
formatter: et,
|
|
65
|
+
lineHeight: q = 48,
|
|
66
|
+
lineWidth: oe = 80,
|
|
67
|
+
autoSize: tt = !0,
|
|
67
68
|
loadMore: T = !1,
|
|
68
|
-
loadMoreRender:
|
|
69
|
-
onClickMore:
|
|
70
|
-
expandValue:
|
|
71
|
-
expandMultiple:
|
|
72
|
-
disabledExpand:
|
|
73
|
-
onExpand:
|
|
69
|
+
loadMoreRender: rt,
|
|
70
|
+
onClickMore: nt,
|
|
71
|
+
expandValue: at,
|
|
72
|
+
expandMultiple: ot,
|
|
73
|
+
disabledExpand: lt,
|
|
74
|
+
onExpand: st,
|
|
74
75
|
defaultExpandAllRows: it = !1,
|
|
75
|
-
onClickColumns:
|
|
76
|
-
beyondText:
|
|
77
|
-
tipMaxWidth:
|
|
78
|
-
loading:
|
|
79
|
-
defaultSortValue:
|
|
76
|
+
onClickColumns: Ne,
|
|
77
|
+
beyondText: le = !0,
|
|
78
|
+
tipMaxWidth: se = 500,
|
|
79
|
+
loading: Se,
|
|
80
|
+
defaultSortValue: ct,
|
|
80
81
|
defaultFilterValue: Ut,
|
|
81
82
|
searchKeyName: Gt,
|
|
82
83
|
filterSearchCallback: Qt,
|
|
83
|
-
onClickRow:
|
|
84
|
-
rowClassMapping:
|
|
85
|
-
getPopupContainer:
|
|
86
|
-
onSort:
|
|
84
|
+
onClickRow: ut,
|
|
85
|
+
rowClassMapping: ft,
|
|
86
|
+
getPopupContainer: dt,
|
|
87
|
+
onSort: Re,
|
|
87
88
|
onError: Xt,
|
|
88
|
-
refreshInside:
|
|
89
|
-
checkCount:
|
|
90
|
-
onDragRow:
|
|
89
|
+
refreshInside: ht = !!o.url,
|
|
90
|
+
checkCount: mt = !!o.check,
|
|
91
|
+
onDragRow: gt,
|
|
91
92
|
virtual: ke = !1,
|
|
92
|
-
columnsInfoEvent:
|
|
93
|
-
onRefreshCallback:
|
|
94
|
-
} = o, Yt = Zr("Table", en),
|
|
93
|
+
columnsInfoEvent: pt,
|
|
94
|
+
onRefreshCallback: ie
|
|
95
|
+
} = o, Yt = Zr("Table", en), bt = o.expirationTime ? o.expirationTime === 0 ? 1e8 : o.expirationTime : 7, [B, Ct] = u(o.page !== void 0 ? o.page : 1), [L, Zt] = u(null), [Dt, er] = u(V), [ce, ve] = u(0), [y, Me] = u([]), [tr, yt] = u({}), [v, xt] = u({}), [p, rr] = u(Object.values(ct || {})), [C, nr] = u(Object.keys(ct || {})), [ue, I] = u("not"), [D, Fe] = u({}), [He, ar] = u(), [M, or] = u({}), [lr, sr] = u({}), [K, ir] = u([]), [U, Tt] = u([]), [F, cr] = u({ ...Ut }), [fe, O] = u(!0), [wt, ur] = u(!1), Ae = Q(""), [fr, H] = u(), [dr, hr] = u(0), [de, mr] = u({}), [Nt, ze] = u({}), [he, St] = u(!1), [Rt, kt] = u([0, 0]), [gr, vt] = u(0), [Mt, pr] = u(), h = Q(null), je = Q(null), G = Q(null), n = Q({
|
|
95
96
|
page: o.page !== void 0 ? o.page : 1,
|
|
96
97
|
headDataConfig: {}
|
|
97
98
|
});
|
|
98
99
|
rn({
|
|
99
100
|
dom: je.current,
|
|
100
|
-
cb: () =>
|
|
101
|
-
}), n.current.loadMoreUrl = T && x, n.current.search =
|
|
102
|
-
n.current.isDestroy = !0, clearTimeout(n.current.reqTimer), clearTimeout(n.current.loadingTimer),
|
|
101
|
+
cb: () => Pr()
|
|
102
|
+
}), n.current.loadMoreUrl = T && x, n.current.search = qe, n.current.url = x, n.current.orderTypeArr = p, n.current.orderFieldArr = C, n.current.selectFilterCom = F, n.current.data = ye, n.current.searchKeyName = Gt, n.current.filterSearchCallback = Qt, n.current.onError = Xt, n.current.sizeCom = L, n.current.virtual = ke, n.current.expandable = R, m(() => () => {
|
|
103
|
+
n.current.isDestroy = !0, clearTimeout(n.current.reqTimer), clearTimeout(n.current.loadingTimer), _t(Ae.current);
|
|
103
104
|
}, []), m(() => {
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
Se !== void 0 && (clearTimeout(n.current.loadingTimer), n.current.loadingTimer = setTimeout(() => {
|
|
106
|
+
O(Se);
|
|
106
107
|
}, 50));
|
|
107
|
-
}, [
|
|
108
|
+
}, [Se]), m(() => {
|
|
108
109
|
ur(!!(T && x));
|
|
109
110
|
}, [T, x]), m(() => {
|
|
110
111
|
o.page !== void 0 && w(o.page);
|
|
111
|
-
}, [
|
|
112
|
-
if (!
|
|
112
|
+
}, [Bt]), m(() => {
|
|
113
|
+
if (!tt) return me(W);
|
|
113
114
|
if (o.size)
|
|
114
|
-
|
|
115
|
+
me(W);
|
|
115
116
|
else if (h && h.current) {
|
|
116
|
-
const e =
|
|
117
|
-
|
|
117
|
+
const e = Ft();
|
|
118
|
+
V.indexOf(e) === -1 && (V.unshift(e), V.sort((t, r) => t - r), er([...V])), me(e);
|
|
118
119
|
}
|
|
119
|
-
}, [W,
|
|
120
|
-
o.headData !== void 0 &&
|
|
121
|
-
}, [
|
|
122
|
-
if (
|
|
120
|
+
}, [W, tt]), m(() => {
|
|
121
|
+
o.headData !== void 0 && Pt(Xe, !1);
|
|
122
|
+
}, [Xe]), m(() => {
|
|
123
|
+
if (ye) {
|
|
123
124
|
n.current.historyData = [];
|
|
124
|
-
const e =
|
|
125
|
-
|
|
125
|
+
const e = Ht(), t = _e(k, e);
|
|
126
|
+
xt(t), H(Math.random());
|
|
126
127
|
}
|
|
127
|
-
}, [
|
|
128
|
+
}, [ye]), m(() => {
|
|
128
129
|
n.current.initReq && (w(1), n.current.historyData = []);
|
|
129
|
-
}, [
|
|
130
|
+
}, [qe, x]), m(() => {
|
|
130
131
|
n.current.loadMoreUrl ? (n.current.historyData = [], w(1)) : H(Math.random());
|
|
131
|
-
}, [
|
|
132
|
-
clearTimeout(n.current.reqTimer), n.current.url &&
|
|
132
|
+
}, [It]), m(() => {
|
|
133
|
+
clearTimeout(n.current.reqTimer), n.current.url && _t(Ae.current), n.current.reqTimer = setTimeout(() => {
|
|
133
134
|
if (n.current.initReq = !0, n.current.url) {
|
|
134
135
|
let e = {};
|
|
135
136
|
if (A) {
|
|
@@ -141,95 +142,95 @@ const Tn = (Et) => {
|
|
|
141
142
|
Object.keys(r).length > 0 && (e.filter = r);
|
|
142
143
|
}
|
|
143
144
|
n.current.search && typeof n.current.search == "object" && (e = { ...e, ...n.current.search });
|
|
144
|
-
const t = { url: n.current.url, ctx:
|
|
145
|
-
if (
|
|
146
|
-
if (
|
|
147
|
-
|
|
148
|
-
const a =
|
|
149
|
-
|
|
145
|
+
const t = { url: n.current.url, ctx: De, method: P, data: e };
|
|
146
|
+
if (P === "Get")
|
|
147
|
+
if (ne)
|
|
148
|
+
ne(t, (r) => {
|
|
149
|
+
const a = Et(r);
|
|
150
|
+
ge({ ...r, url: a, ctx: De, method: P });
|
|
150
151
|
});
|
|
151
152
|
else {
|
|
152
|
-
const r =
|
|
153
|
-
|
|
153
|
+
const r = Et(t);
|
|
154
|
+
ge({ url: r, ctx: De, method: P });
|
|
154
155
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}) :
|
|
156
|
+
P === "Post" && (ne ? ne(t, (r) => {
|
|
157
|
+
ge(r);
|
|
158
|
+
}) : ge(t));
|
|
158
159
|
}
|
|
159
160
|
if (n.current.data) {
|
|
160
|
-
let e =
|
|
161
|
+
let e = Ht();
|
|
161
162
|
if (e = br(e), A) {
|
|
162
163
|
if (n.current.page === null || n.current.size === null) return;
|
|
163
164
|
const t = e.slice(
|
|
164
165
|
(n.current.page - 1) * n.current.size,
|
|
165
166
|
(n.current.page - 1) * n.current.size + n.current.size
|
|
166
167
|
);
|
|
167
|
-
|
|
168
|
+
pe(t), ve(e.length);
|
|
168
169
|
} else
|
|
169
|
-
|
|
170
|
-
o.loading === void 0 &&
|
|
170
|
+
pe(e);
|
|
171
|
+
o.loading === void 0 && O(!1);
|
|
171
172
|
}
|
|
172
173
|
}, 50);
|
|
173
174
|
}, [fr]), m(() => {
|
|
174
|
-
|
|
175
|
-
}, [
|
|
176
|
-
if (
|
|
175
|
+
Z !== void 0 && Z !== He && ar(Z);
|
|
176
|
+
}, [Z]), m(() => {
|
|
177
|
+
if (Y) {
|
|
177
178
|
const e = {};
|
|
178
|
-
for (let t = 0, r =
|
|
179
|
-
const a =
|
|
179
|
+
for (let t = 0, r = Y.length; t < r; t++) {
|
|
180
|
+
const a = Y[t];
|
|
180
181
|
e[a] = !0;
|
|
181
182
|
}
|
|
182
|
-
|
|
183
|
+
Fe(e);
|
|
183
184
|
}
|
|
184
|
-
}, [
|
|
185
|
-
if (
|
|
185
|
+
}, [Y]), m(() => {
|
|
186
|
+
if (ee) {
|
|
186
187
|
const e = {};
|
|
187
|
-
for (let t = 0, r =
|
|
188
|
-
const a =
|
|
188
|
+
for (let t = 0, r = ee.length; t < r; t++) {
|
|
189
|
+
const a = ee[t];
|
|
189
190
|
e[a] = !0;
|
|
190
191
|
}
|
|
191
192
|
or(e);
|
|
192
193
|
}
|
|
193
|
-
}, [
|
|
194
|
+
}, [ee]), m(() => {
|
|
194
195
|
if (Object.keys(D).length === 0)
|
|
195
|
-
|
|
196
|
+
I("not");
|
|
196
197
|
else {
|
|
197
198
|
const e = Object.keys(tr);
|
|
198
199
|
if (e.length === 0)
|
|
199
|
-
return
|
|
200
|
+
return I("not");
|
|
200
201
|
let t = e.length, r = 0;
|
|
201
|
-
for (let a = 0,
|
|
202
|
+
for (let a = 0, s = e.length; a < s; a++) {
|
|
202
203
|
const l = e[a];
|
|
203
204
|
M[l] ? t-- : D[l] !== void 0 && r++;
|
|
204
205
|
}
|
|
205
206
|
if (r === 0)
|
|
206
|
-
return
|
|
207
|
+
return I("not");
|
|
207
208
|
if (r === t)
|
|
208
|
-
return
|
|
209
|
+
return I("all");
|
|
209
210
|
if (r < t)
|
|
210
|
-
return
|
|
211
|
+
return I("half");
|
|
211
212
|
}
|
|
212
213
|
}, [D, y, M]), m(() => {
|
|
213
|
-
|
|
214
|
-
}, [ke, y,
|
|
214
|
+
Ve();
|
|
215
|
+
}, [ke, y, R]), m(() => {
|
|
215
216
|
We({ target: h.current });
|
|
216
217
|
});
|
|
217
|
-
const
|
|
218
|
+
const Ft = () => {
|
|
218
219
|
if (!h.current) return W;
|
|
219
220
|
let e = h.current.clientHeight - 48;
|
|
220
|
-
o.loadMore && (e -=
|
|
221
|
-
const t = Math.floor(e /
|
|
221
|
+
o.loadMore && (e -= q);
|
|
222
|
+
const t = Math.floor(e / q);
|
|
222
223
|
return t < 1 ? W : t;
|
|
223
|
-
},
|
|
224
|
-
n.current.size = e, Zt(e), H(Math.random());
|
|
224
|
+
}, me = (e) => {
|
|
225
|
+
n.current.size = e, Zt(e), H(Math.random()), X.onPageChange?.(n.current.page ?? 1, e);
|
|
225
226
|
}, w = (e) => {
|
|
226
|
-
n.current.page = e,
|
|
227
|
-
},
|
|
227
|
+
n.current.page = e, Ct(e), H(Math.random()), X.onPageChange?.(e, n.current.size ?? L ?? X.size ?? 10);
|
|
228
|
+
}, Ht = () => {
|
|
228
229
|
let e = [];
|
|
229
230
|
return n.current.data instanceof Array ? e = n.current.data : e = n.current.data?.list, e;
|
|
230
231
|
}, br = (e) => {
|
|
231
232
|
const t = Object.keys(n.current.selectFilterCom || {}), r = [];
|
|
232
|
-
for (let a = 0,
|
|
233
|
+
for (let a = 0, s = e.length; a < s; a++) {
|
|
233
234
|
const l = e[a];
|
|
234
235
|
let c = !0;
|
|
235
236
|
if (n.current.filterSearchCallback)
|
|
@@ -238,8 +239,8 @@ const Tn = (Et) => {
|
|
|
238
239
|
filter: n.current.selectFilterCom
|
|
239
240
|
});
|
|
240
241
|
else {
|
|
241
|
-
for (let
|
|
242
|
-
const d = t[
|
|
242
|
+
for (let i = 0, f = t.length; i < f; i++) {
|
|
243
|
+
const d = t[i], b = n.current.selectFilterCom[d] || [], N = l[d];
|
|
243
244
|
if (b.length > 0 && b.indexOf(N) === -1) {
|
|
244
245
|
c = !1;
|
|
245
246
|
continue;
|
|
@@ -254,7 +255,7 @@ const Tn = (Et) => {
|
|
|
254
255
|
let t;
|
|
255
256
|
const r = n.current.search;
|
|
256
257
|
if (r && typeof r != "string" && r.searchKey && (t = r.searchKey), typeof t == "string" && n.current.searchKeyName && n.current.searchKeyName.length > 0)
|
|
257
|
-
for (let a = 0,
|
|
258
|
+
for (let a = 0, s = n.current.searchKeyName.length; a < s; a++) {
|
|
258
259
|
const l = n.current.searchKeyName[a], c = e[l];
|
|
259
260
|
if (c && c.indexOf && c.indexOf(t) !== -1)
|
|
260
261
|
return !0;
|
|
@@ -262,34 +263,34 @@ const Tn = (Et) => {
|
|
|
262
263
|
else
|
|
263
264
|
return !0;
|
|
264
265
|
return !1;
|
|
265
|
-
},
|
|
266
|
+
}, At = () => o.tableKey ? o.tableKey : o.data ? window.location.origin + window.location.pathname + window.location.hash : o.url ? `${o.url}_${o.method || "Get"}` : "", zt = () => o.rememberColumns === !1 ? {} : qr(At(), bt), jt = (e) => {
|
|
266
267
|
if (o.rememberColumns === !1) return;
|
|
267
|
-
const t =
|
|
268
|
+
const t = zt(), r = {
|
|
268
269
|
headName: t.headName || {},
|
|
269
270
|
headDataConfig: t.headDataConfig || {},
|
|
270
271
|
storageTime: (/* @__PURE__ */ new Date()).getTime(),
|
|
271
|
-
validity:
|
|
272
|
+
validity: bt * (3600 * 24)
|
|
272
273
|
};
|
|
273
274
|
if (e.setFixed) {
|
|
274
|
-
const a =
|
|
275
|
-
for (let
|
|
276
|
-
const
|
|
277
|
-
r.headName[
|
|
275
|
+
const a = _e("name", e.headArr || []);
|
|
276
|
+
for (let s = 0, l = K.length; s < l; s++) {
|
|
277
|
+
const i = K[s].name || "";
|
|
278
|
+
r.headName[i] = !1, a[i] && (r.headName[i] = !0);
|
|
278
279
|
}
|
|
279
280
|
}
|
|
280
|
-
e.setDrag && (r.headDataConfig = e.headDataConfig || {}),
|
|
281
|
+
e.setDrag && (r.headDataConfig = e.headDataConfig || {}), Br(At(), r);
|
|
281
282
|
}, Dr = (e, t, r) => {
|
|
282
|
-
if (
|
|
283
|
+
if (z === !1) {
|
|
283
284
|
t.push(e);
|
|
284
285
|
return;
|
|
285
286
|
}
|
|
286
287
|
if (o.rememberColumns === !1)
|
|
287
288
|
e.selected && t.push(e);
|
|
288
289
|
else {
|
|
289
|
-
const a = r.headName || {},
|
|
290
|
+
const a = r.headName || {}, s = e.name || "", l = a[s];
|
|
290
291
|
l !== void 0 ? l && t.push(e) : e.selected && t.push(e);
|
|
291
292
|
}
|
|
292
|
-
},
|
|
293
|
+
}, Lt = (e) => {
|
|
293
294
|
const t = {
|
|
294
295
|
label: Yt({ id: "serial" }),
|
|
295
296
|
// 序号
|
|
@@ -301,418 +302,420 @@ const Tn = (Et) => {
|
|
|
301
302
|
name: "table-serial-number",
|
|
302
303
|
sort: !1,
|
|
303
304
|
filter: !1,
|
|
304
|
-
render: (r, a,
|
|
305
|
+
render: (r, a, s, l, c) => Number(c) + 1
|
|
305
306
|
};
|
|
306
307
|
o.serialNumber && (typeof o.serialNumber == "boolean" ? e.unshift(t) : e.unshift({ ...t, ...o.serialNumber }));
|
|
307
|
-
},
|
|
308
|
-
|
|
309
|
-
},
|
|
310
|
-
const r = [], a = [],
|
|
308
|
+
}, Ot = (e) => {
|
|
309
|
+
pt && pt(e);
|
|
310
|
+
}, Pt = (e, t) => {
|
|
311
|
+
const r = [], a = [], s = {}, l = zt();
|
|
311
312
|
n.current.headDataConfig = l.headDataConfig || {};
|
|
312
|
-
for (let c = 0,
|
|
313
|
+
for (let c = 0, i = e.length; c < i; c++) {
|
|
313
314
|
const f = e[c], d = f.name || "";
|
|
314
|
-
typeof f.width == "number" && (f.width = `${f.width}px`), t || (f.orderNum = c), Dr(f, r, l), a.push(f),
|
|
315
|
+
typeof f.width == "number" && (f.width = `${f.width}px`), t || (f.orderNum = c), Dr(f, r, l), a.push(f), s[d] = f;
|
|
315
316
|
}
|
|
316
|
-
t && (r.sort((c,
|
|
317
|
+
t && (r.sort((c, i) => Number(c.orderNum) - Number(i.orderNum)), a.sort((c, i) => Number(c.orderNum) - Number(i.orderNum))), Lt(r), Oe(r), Tt(r), Ot(r), ir(a), ze({ ...n.current.headDataConfig }), n.current.headDataJson = s;
|
|
317
318
|
}, yr = () => {
|
|
318
319
|
let e = 0;
|
|
319
320
|
return o.check && (e += 48), o.radio && (o.check ? e += 32 : e += 48), o.expandable && (o.check || o.radio ? e += 32 : e += 48), e;
|
|
320
321
|
}, xr = () => {
|
|
321
322
|
let e = 0;
|
|
322
|
-
return (o.showColumns === "inside" || o.showColumns === void 0 || o.dragRow) && (e += 53), o.operate && (o.operate.width ? e +=
|
|
323
|
-
},
|
|
323
|
+
return (o.showColumns === "inside" || o.showColumns === void 0 || o.dragRow) && (e += 53), o.operate && (o.operate.width ? e += Ce(o.operate.width) : o.operate.operateBtnRender ? o.dragRow ? e += 145 : e += e === 0 ? 158 : 105 : e += oe), e;
|
|
324
|
+
}, Le = (e) => {
|
|
324
325
|
let t = e.width || "";
|
|
325
326
|
const r = e.name || "", a = n.current.headDataConfig[r] && n.current.headDataConfig[r].width;
|
|
326
327
|
return a && (t = a), t;
|
|
327
|
-
},
|
|
328
|
+
}, Oe = (e) => {
|
|
328
329
|
const t = [], r = [];
|
|
329
330
|
let a = 0;
|
|
330
|
-
const
|
|
331
|
-
a +=
|
|
331
|
+
const s = yr();
|
|
332
|
+
a += s;
|
|
332
333
|
const l = xr();
|
|
333
334
|
a += l;
|
|
334
335
|
const c = {
|
|
335
336
|
leftBol: !1,
|
|
336
337
|
rightBol: !1
|
|
337
338
|
};
|
|
338
|
-
for (let
|
|
339
|
-
const d = e[
|
|
339
|
+
for (let i = 0, f = e.length; i < f; i++) {
|
|
340
|
+
const d = e[i];
|
|
340
341
|
let b = 0;
|
|
341
|
-
const N =
|
|
342
|
-
N ? (b =
|
|
342
|
+
const N = Le(d);
|
|
343
|
+
N ? (b = Ce(N), a += b) : a += oe, d.fixed === "left" && d.width && t.push(d), d.fixed === "right" && d.width && r.push(d);
|
|
343
344
|
}
|
|
344
345
|
if (t.length > 0) {
|
|
345
346
|
c.leftBol = !0;
|
|
346
|
-
let
|
|
347
|
+
let i = s;
|
|
347
348
|
for (let f = 0, d = t.length; f < d; f++) {
|
|
348
349
|
const b = t[f];
|
|
349
350
|
if (b.width) {
|
|
350
|
-
const N =
|
|
351
|
-
b.paraui_left_width =
|
|
351
|
+
const N = Le(b), Jr = Ce(N);
|
|
352
|
+
b.paraui_left_width = i, i += Jr, f === t.length - 1 ? b.paraui_fixed_left_last = !0 : b.paraui_fixed_left_last = !1;
|
|
352
353
|
}
|
|
353
354
|
}
|
|
354
355
|
}
|
|
355
356
|
if (r.length > 0) {
|
|
356
357
|
c.rightBol = !0;
|
|
357
|
-
let
|
|
358
|
+
let i = l;
|
|
358
359
|
for (let f = r.length - 1; f >= 0; f--) {
|
|
359
360
|
const d = r[f];
|
|
360
361
|
if (d.width) {
|
|
361
|
-
const b =
|
|
362
|
-
d.paraui_right_width =
|
|
362
|
+
const b = Le(d), N = Ce(b);
|
|
363
|
+
d.paraui_right_width = i, i += N, f === 0 ? d.paraui_fixed_right_first = !0 : d.paraui_fixed_right_first = !1;
|
|
363
364
|
}
|
|
364
365
|
}
|
|
365
366
|
}
|
|
366
367
|
hr(a), mr(c);
|
|
367
368
|
}, Tr = () => {
|
|
368
369
|
const e = {}, t = Object.keys(F), r = n.current.headDataJson || {};
|
|
369
|
-
for (let a = 0,
|
|
370
|
+
for (let a = 0, s = t.length; a < s; a++) {
|
|
370
371
|
const l = t[a], c = F[l] || [];
|
|
371
372
|
if (c.length === 0) continue;
|
|
372
|
-
const
|
|
373
|
-
|
|
373
|
+
const i = r[l];
|
|
374
|
+
i && i.filterRadio ? e[l] = c[0] : e[l] = c;
|
|
374
375
|
}
|
|
375
376
|
return e;
|
|
376
|
-
},
|
|
377
|
-
e.
|
|
378
|
-
|
|
377
|
+
}, ge = async (e) => {
|
|
378
|
+
e.onCancelId = (a) => {
|
|
379
|
+
Ae.current = a;
|
|
380
|
+
}, o.loading === void 0 && O(!0);
|
|
381
|
+
let { data: t, error: r } = await Er(e);
|
|
379
382
|
if (!n.current.isDestroy) {
|
|
380
383
|
if (r) {
|
|
381
|
-
if (o.loading === void 0 &&
|
|
384
|
+
if (o.loading === void 0 && O(!1), !r.__CANCEL__) {
|
|
382
385
|
let a = !1;
|
|
383
386
|
if (n.current.onError && (a = await n.current.onError(r)), !a) return;
|
|
384
|
-
|
|
387
|
+
Me([]), ve(0), yt({});
|
|
385
388
|
}
|
|
386
389
|
return !1;
|
|
387
390
|
}
|
|
388
|
-
|
|
389
|
-
a && (a.data && (a = a.data), Wt(a), o.loading === void 0 &&
|
|
390
|
-
}) : (t.data && (t = t.data), Wt(t), o.loading === void 0 &&
|
|
391
|
+
Ge ? Ge(t, (a) => {
|
|
392
|
+
a && (a.data && (a = a.data), Wt(a), o.loading === void 0 && O(!1));
|
|
393
|
+
}) : (t.data && (t = t.data), Wt(t), o.loading === void 0 && O(!1));
|
|
391
394
|
}
|
|
392
395
|
}, Wt = (e) => {
|
|
393
396
|
if (e.columns && o.headData === void 0 && JSON.stringify(e.columns) !== JSON.stringify(lr)) {
|
|
394
|
-
|
|
397
|
+
sr(e.columns);
|
|
395
398
|
const r = Object.keys(e.columns), a = [];
|
|
396
|
-
for (let
|
|
397
|
-
const c = r[
|
|
398
|
-
|
|
399
|
+
for (let s = 0, l = r.length; s < l; s++) {
|
|
400
|
+
const c = r[s], i = e.columns[c];
|
|
401
|
+
i.name = c, i.label = i.displayName, i.filter = i.filterFlag, i.filterRadio = i.filterRadioFlag, i.sort = i.orderFlag, i.selected = i.selectedFlag, i.width = i.width, a.push(i);
|
|
399
402
|
}
|
|
400
|
-
|
|
403
|
+
Pt(a, !0);
|
|
401
404
|
}
|
|
402
405
|
if (A)
|
|
403
|
-
|
|
406
|
+
pe(e.list || []), ve(e.total), e.page !== void 0 && e.page !== null && (n.current.page = Number(e.page), Ct(Number(e.page)));
|
|
404
407
|
else {
|
|
405
408
|
let t = [];
|
|
406
|
-
e instanceof Array ? t = e : t = e.list || [],
|
|
409
|
+
e instanceof Array ? t = e : t = e.list || [], pe(t);
|
|
407
410
|
}
|
|
408
|
-
},
|
|
411
|
+
}, pe = (e) => {
|
|
409
412
|
if (n.current.loadMoreUrl) {
|
|
410
413
|
const r = n.current.historyData || [];
|
|
411
414
|
r.length > 0 && (e = [...r, ...e]);
|
|
412
415
|
}
|
|
413
|
-
const t =
|
|
414
|
-
n.current.historyData = e,
|
|
416
|
+
const t = _e(k, e);
|
|
417
|
+
n.current.historyData = e, yt(t), Me(e), x && xt({ ...v, ...t });
|
|
415
418
|
}, wr = (e) => {
|
|
416
|
-
e !== void 0 && w(e),
|
|
419
|
+
e !== void 0 && w(e), be();
|
|
417
420
|
}, Nr = (e) => {
|
|
418
|
-
e !== void 0 &&
|
|
421
|
+
e !== void 0 && me(e), w(1), be();
|
|
419
422
|
}, Sr = (e) => {
|
|
420
|
-
const t = e || Number(
|
|
423
|
+
const t = e || Number(B) + 1;
|
|
421
424
|
w(t);
|
|
422
|
-
},
|
|
425
|
+
}, Rr = (e, t) => {
|
|
423
426
|
const r = C.indexOf(t);
|
|
424
427
|
if (r !== -1) {
|
|
425
428
|
const l = p[r];
|
|
426
429
|
l === "asc" && (p[r] = "desc"), l === "desc" && (C.splice(r, 1), p.splice(r, 1)), l === void 0 && (p[r] = "asc");
|
|
427
430
|
} else
|
|
428
431
|
C.push(t), p.push("asc");
|
|
429
|
-
let a = [...C],
|
|
430
|
-
if (
|
|
432
|
+
let a = [...C], s = [...p];
|
|
433
|
+
if (Ye) {
|
|
431
434
|
const l = a.indexOf(t);
|
|
432
|
-
l !== -1 && (a = [a[l]],
|
|
435
|
+
l !== -1 && (a = [a[l]], s = [s[l]]);
|
|
433
436
|
}
|
|
434
|
-
nr(a), rr(
|
|
435
|
-
},
|
|
436
|
-
o.checkDefaultValue === void 0 &&
|
|
437
|
+
nr(a), rr(s), n.current.orderFieldArr = a, n.current.orderTypeArr = s, Re && Re({ orderField: a, orderType: s }), n.current.loadMoreUrl && (n.current.historyData = [], w(1)), H(Math.random());
|
|
438
|
+
}, Pe = (e) => {
|
|
439
|
+
o.checkDefaultValue === void 0 && Fe({ ...e });
|
|
437
440
|
const t = Object.keys(e);
|
|
438
|
-
if (
|
|
441
|
+
if (xe) {
|
|
439
442
|
const r = [];
|
|
440
|
-
for (let a = 0,
|
|
443
|
+
for (let a = 0, s = t.length; a < s; a++)
|
|
441
444
|
v[t[a]] && r.push(v[t[a]]);
|
|
442
|
-
|
|
445
|
+
xe(t, r);
|
|
443
446
|
}
|
|
444
|
-
},
|
|
447
|
+
}, Vt = (e, t) => {
|
|
445
448
|
const r = o.checkDefaultValue !== void 0 ? { ...D } : D;
|
|
446
|
-
for (let a = 0,
|
|
447
|
-
const l = y[a][
|
|
449
|
+
for (let a = 0, s = y.length; a < s; a++) {
|
|
450
|
+
const l = y[a][k];
|
|
448
451
|
M[l] || (t ? r[l] = !0 : r[l] && delete r[l]);
|
|
449
452
|
}
|
|
450
|
-
|
|
451
|
-
},
|
|
453
|
+
Pe(r);
|
|
454
|
+
}, kr = (e, t, r) => {
|
|
452
455
|
const a = o.checkDefaultValue !== void 0 ? { ...D } : D;
|
|
453
|
-
a[r] = t, a[r] === !1 && delete a[r],
|
|
456
|
+
a[r] = t, a[r] === !1 && delete a[r], Pe(a);
|
|
454
457
|
}, vr = (e, t) => {
|
|
455
|
-
|
|
456
|
-
},
|
|
457
|
-
Kt || (
|
|
458
|
-
},
|
|
459
|
-
|
|
458
|
+
Te && Te(t, v[t]);
|
|
459
|
+
}, be = () => {
|
|
460
|
+
Kt || (Fe({}), Pe({}));
|
|
461
|
+
}, Jt = (e, t, r) => {
|
|
462
|
+
Oe(e), Tt(e), Ot(e);
|
|
460
463
|
const a = {
|
|
461
464
|
setFixed: !0,
|
|
462
465
|
headArr: e
|
|
463
466
|
};
|
|
464
|
-
r && (a.setDrag = !0, a.headDataConfig = {}), jt(a),
|
|
467
|
+
r && (a.setDrag = !0, a.headDataConfig = {}), jt(a), Ne && Ne(e, t);
|
|
465
468
|
}, Mr = (e, t, r) => {
|
|
466
469
|
if (t) {
|
|
467
|
-
n.current.headDataConfig = {},
|
|
468
|
-
const
|
|
469
|
-
|
|
470
|
-
for (let c = 0,
|
|
470
|
+
n.current.headDataConfig = {}, ze({});
|
|
471
|
+
const s = [], l = [...K];
|
|
472
|
+
Lt(l);
|
|
473
|
+
for (let c = 0, i = l.length; c < i; c++) {
|
|
471
474
|
const f = l[c];
|
|
472
|
-
f && f.selected &&
|
|
475
|
+
f && f.selected && s.push(f);
|
|
473
476
|
}
|
|
474
|
-
|
|
477
|
+
Jt(s, r, !0);
|
|
475
478
|
return;
|
|
476
479
|
}
|
|
477
|
-
e.sort((
|
|
480
|
+
e.sort((s, l) => Number(s.orderNum) - Number(l.orderNum));
|
|
478
481
|
const a = [...e];
|
|
479
|
-
|
|
482
|
+
Jt(a, r);
|
|
480
483
|
}, Fr = (e) => {
|
|
481
|
-
n.current.selectFilterCom =
|
|
484
|
+
n.current.selectFilterCom = $t(e), cr($t(e)), w(1);
|
|
482
485
|
}, Hr = (e, t) => {
|
|
483
486
|
const r = e.name || "";
|
|
484
487
|
n.current.headDataConfig[r] = {
|
|
485
488
|
width: t.width
|
|
486
|
-
},
|
|
489
|
+
}, ze({ ...n.current.headDataConfig }), Oe([...U]), jt({
|
|
487
490
|
headDataConfig: n.current.headDataConfig,
|
|
488
491
|
setDrag: !0
|
|
489
492
|
});
|
|
490
493
|
}, Ar = (e, t, r) => {
|
|
491
494
|
const a = e.splice(t, 1)[0];
|
|
492
495
|
return e.splice(r, 0, a), e;
|
|
493
|
-
},
|
|
496
|
+
}, zr = async (e) => {
|
|
494
497
|
const { oldIndex: t, newIndex: r } = e;
|
|
495
498
|
if (t === r) return;
|
|
496
499
|
const a = [...y || []];
|
|
497
|
-
Ar(a, t, r), await
|
|
498
|
-
},
|
|
499
|
-
|
|
500
|
+
Ar(a, t, r), await gt?.(a, e) || Me(a);
|
|
501
|
+
}, jr = Je(() => /* @__PURE__ */ S.jsx(
|
|
502
|
+
Ir,
|
|
500
503
|
{
|
|
501
504
|
orderTypeArr: p,
|
|
502
505
|
orderFieldArr: C,
|
|
503
|
-
sortTable:
|
|
504
|
-
filter:
|
|
505
|
-
expandable:
|
|
506
|
-
check:
|
|
507
|
-
selectStatus:
|
|
508
|
-
radio:
|
|
509
|
-
align:
|
|
506
|
+
sortTable: te,
|
|
507
|
+
filter: Ze,
|
|
508
|
+
expandable: R,
|
|
509
|
+
check: J,
|
|
510
|
+
selectStatus: ue,
|
|
511
|
+
radio: _,
|
|
512
|
+
align: re,
|
|
510
513
|
showList: K,
|
|
511
514
|
headData: U,
|
|
512
515
|
selectFilter: F,
|
|
513
|
-
operate:
|
|
514
|
-
onRequestSort:
|
|
515
|
-
selectAll:
|
|
516
|
+
operate: ae,
|
|
517
|
+
onRequestSort: Rr,
|
|
518
|
+
selectAll: Vt,
|
|
516
519
|
changeShowList: Mr,
|
|
517
520
|
changeFilter: Fr,
|
|
518
|
-
showColumns:
|
|
519
|
-
rowKey:
|
|
520
|
-
fixedTable:
|
|
521
|
-
fixedColumn:
|
|
522
|
-
posFixed:
|
|
523
|
-
beyondText:
|
|
524
|
-
lineWidth:
|
|
525
|
-
dragColumn:
|
|
526
|
-
dragRow:
|
|
527
|
-
headDataConfig:
|
|
528
|
-
tipMaxWidth:
|
|
521
|
+
showColumns: z,
|
|
522
|
+
rowKey: k,
|
|
523
|
+
fixedTable: $,
|
|
524
|
+
fixedColumn: j,
|
|
525
|
+
posFixed: de,
|
|
526
|
+
beyondText: le,
|
|
527
|
+
lineWidth: oe,
|
|
528
|
+
dragColumn: we,
|
|
529
|
+
dragRow: E,
|
|
530
|
+
headDataConfig: Nt,
|
|
531
|
+
tipMaxWidth: se,
|
|
529
532
|
changeColumnWidth: Hr,
|
|
530
|
-
getPopupContainer:
|
|
533
|
+
getPopupContainer: dt
|
|
531
534
|
}
|
|
532
535
|
), [
|
|
533
536
|
v,
|
|
534
|
-
|
|
535
|
-
|
|
537
|
+
z,
|
|
538
|
+
k,
|
|
536
539
|
y,
|
|
537
540
|
D,
|
|
538
541
|
M,
|
|
539
542
|
p,
|
|
540
543
|
C,
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
V,
|
|
545
|
-
se,
|
|
544
|
+
te,
|
|
545
|
+
Ze,
|
|
546
|
+
R,
|
|
546
547
|
J,
|
|
547
|
-
|
|
548
|
+
ue,
|
|
549
|
+
_,
|
|
550
|
+
re,
|
|
548
551
|
K,
|
|
549
552
|
U,
|
|
550
553
|
F,
|
|
551
|
-
re,
|
|
552
|
-
we,
|
|
553
|
-
Xe,
|
|
554
|
-
_,
|
|
555
|
-
ue,
|
|
556
554
|
ae,
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
Te,
|
|
555
|
+
Ne,
|
|
556
|
+
Ye,
|
|
560
557
|
$,
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
oe
|
|
565
|
-
|
|
558
|
+
de,
|
|
559
|
+
le,
|
|
560
|
+
j,
|
|
561
|
+
oe,
|
|
562
|
+
we,
|
|
563
|
+
E,
|
|
564
|
+
Nt,
|
|
565
|
+
dt,
|
|
566
|
+
Re,
|
|
567
|
+
se
|
|
568
|
+
]), Lr = Je(() => /* @__PURE__ */ S.jsx(
|
|
566
569
|
Kr,
|
|
567
570
|
{
|
|
568
571
|
url: x,
|
|
569
|
-
emptyProps:
|
|
572
|
+
emptyProps: Ee,
|
|
570
573
|
changePage: Sr,
|
|
571
|
-
loadMoreUrl:
|
|
572
|
-
total:
|
|
573
|
-
page:
|
|
574
|
-
currentRowsPerPage:
|
|
575
|
-
loadState:
|
|
574
|
+
loadMoreUrl: wt,
|
|
575
|
+
total: ce,
|
|
576
|
+
page: B,
|
|
577
|
+
currentRowsPerPage: L,
|
|
578
|
+
loadState: fe,
|
|
576
579
|
loadMore: T,
|
|
577
|
-
loadMoreRender:
|
|
578
|
-
onClickMore:
|
|
580
|
+
loadMoreRender: rt,
|
|
581
|
+
onClickMore: nt,
|
|
579
582
|
rowData: y,
|
|
580
583
|
headData: U,
|
|
581
|
-
expandable:
|
|
582
|
-
check:
|
|
583
|
-
radio:
|
|
584
|
+
expandable: R,
|
|
585
|
+
check: J,
|
|
586
|
+
radio: _,
|
|
584
587
|
checkJson: D,
|
|
585
|
-
radioValue:
|
|
588
|
+
radioValue: He,
|
|
586
589
|
disabledJson: M,
|
|
587
|
-
disabledArrStatus:
|
|
588
|
-
align:
|
|
589
|
-
tableCell:
|
|
590
|
-
operate:
|
|
591
|
-
showColumns:
|
|
592
|
-
formatter:
|
|
590
|
+
disabledArrStatus: Qe,
|
|
591
|
+
align: re,
|
|
592
|
+
tableCell: Ue,
|
|
593
|
+
operate: ae,
|
|
594
|
+
showColumns: z,
|
|
595
|
+
formatter: et,
|
|
593
596
|
orderTypeArr: p,
|
|
594
597
|
orderFieldArr: C,
|
|
595
|
-
sortTable:
|
|
596
|
-
selectCheck:
|
|
598
|
+
sortTable: te,
|
|
599
|
+
selectCheck: kr,
|
|
597
600
|
selectRadio: vr,
|
|
598
|
-
rowKey:
|
|
599
|
-
expandMultiple:
|
|
600
|
-
expandValue:
|
|
601
|
-
disabledExpand:
|
|
602
|
-
onExpand:
|
|
601
|
+
rowKey: k,
|
|
602
|
+
expandMultiple: ot,
|
|
603
|
+
expandValue: at,
|
|
604
|
+
disabledExpand: lt,
|
|
605
|
+
onExpand: st,
|
|
603
606
|
defaultExpandAllRows: it,
|
|
604
607
|
onRefresh: () => {
|
|
605
|
-
|
|
608
|
+
ie?.("empty"), H(Math.random()), be();
|
|
606
609
|
},
|
|
607
|
-
posFixed:
|
|
608
|
-
beyondText:
|
|
609
|
-
fixedColumn:
|
|
610
|
-
fixedTable:
|
|
611
|
-
onClickRow:
|
|
612
|
-
rowClassMapping:
|
|
613
|
-
tipMaxWidth:
|
|
614
|
-
lineHeight:
|
|
615
|
-
dragRow:
|
|
616
|
-
onDragRow:
|
|
617
|
-
virtualIndex:
|
|
618
|
-
virtual:
|
|
610
|
+
posFixed: de,
|
|
611
|
+
beyondText: le,
|
|
612
|
+
fixedColumn: j,
|
|
613
|
+
fixedTable: $,
|
|
614
|
+
onClickRow: ut,
|
|
615
|
+
rowClassMapping: ft,
|
|
616
|
+
tipMaxWidth: se,
|
|
617
|
+
lineHeight: q,
|
|
618
|
+
dragRow: E,
|
|
619
|
+
onDragRow: zr,
|
|
620
|
+
virtualIndex: Rt,
|
|
621
|
+
virtual: he
|
|
619
622
|
}
|
|
620
623
|
), [
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
+
z,
|
|
625
|
+
et,
|
|
626
|
+
k,
|
|
624
627
|
y,
|
|
625
628
|
U,
|
|
626
|
-
|
|
627
|
-
V,
|
|
629
|
+
R,
|
|
628
630
|
J,
|
|
631
|
+
_,
|
|
629
632
|
D,
|
|
630
|
-
|
|
633
|
+
te,
|
|
631
634
|
p,
|
|
632
635
|
C,
|
|
633
|
-
|
|
636
|
+
He,
|
|
634
637
|
M,
|
|
635
|
-
ee,
|
|
636
|
-
Ke,
|
|
637
638
|
re,
|
|
639
|
+
Ue,
|
|
640
|
+
ae,
|
|
641
|
+
Te,
|
|
638
642
|
xe,
|
|
639
|
-
ye,
|
|
640
643
|
v,
|
|
641
644
|
T,
|
|
642
|
-
tt,
|
|
643
645
|
rt,
|
|
644
|
-
ie,
|
|
645
|
-
I,
|
|
646
|
-
q,
|
|
647
|
-
Tt,
|
|
648
646
|
nt,
|
|
647
|
+
ce,
|
|
648
|
+
B,
|
|
649
|
+
L,
|
|
650
|
+
wt,
|
|
649
651
|
at,
|
|
650
652
|
ot,
|
|
651
653
|
lt,
|
|
654
|
+
st,
|
|
652
655
|
it,
|
|
653
|
-
|
|
654
|
-
|
|
656
|
+
fe,
|
|
657
|
+
Ee,
|
|
655
658
|
x,
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
ct,
|
|
659
|
+
Qe,
|
|
660
|
+
de,
|
|
661
|
+
le,
|
|
662
|
+
$,
|
|
663
|
+
j,
|
|
662
664
|
ut,
|
|
663
|
-
|
|
665
|
+
ft,
|
|
666
|
+
se,
|
|
667
|
+
q,
|
|
664
668
|
E,
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
St,
|
|
669
|
+
gt,
|
|
670
|
+
Rt,
|
|
668
671
|
ke,
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
]), Or =
|
|
672
|
+
he,
|
|
673
|
+
ie
|
|
674
|
+
]), Or = Je(() => {
|
|
672
675
|
if (!(n.current.page === null || n.current.size === null || T))
|
|
673
676
|
return A && /* @__PURE__ */ S.jsx(
|
|
674
677
|
Ur,
|
|
675
678
|
{
|
|
676
|
-
paginationType:
|
|
677
|
-
flippingArrow:
|
|
678
|
-
autoPagination:
|
|
679
|
-
total:
|
|
680
|
-
page:
|
|
681
|
-
currentRowsPerPage:
|
|
682
|
-
rowsPerPage:
|
|
679
|
+
paginationType: Be,
|
|
680
|
+
flippingArrow: Ie,
|
|
681
|
+
autoPagination: Ke,
|
|
682
|
+
total: ce,
|
|
683
|
+
page: B,
|
|
684
|
+
currentRowsPerPage: L,
|
|
685
|
+
rowsPerPage: Dt,
|
|
683
686
|
changePage: wr,
|
|
684
687
|
changeRowsPerPage: Nr,
|
|
685
|
-
refreshInside:
|
|
686
|
-
checkCount:
|
|
688
|
+
refreshInside: ht,
|
|
689
|
+
checkCount: mt,
|
|
687
690
|
onRefresh: () => {
|
|
688
|
-
|
|
691
|
+
ie?.("refresh"), H(Math.random()), be();
|
|
689
692
|
},
|
|
690
|
-
selectStatus:
|
|
691
|
-
selectAll:
|
|
693
|
+
selectStatus: ue,
|
|
694
|
+
selectAll: Vt,
|
|
692
695
|
checkNumber: Object.keys(D).length,
|
|
693
696
|
currentPageTotal: y.length,
|
|
694
|
-
resizePaginationLine:
|
|
697
|
+
resizePaginationLine: Mt
|
|
695
698
|
}
|
|
696
699
|
);
|
|
697
700
|
}, [
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
701
|
+
ce,
|
|
702
|
+
B,
|
|
703
|
+
L,
|
|
704
|
+
Dt,
|
|
702
705
|
A,
|
|
703
706
|
T,
|
|
707
|
+
Ke,
|
|
704
708
|
Be,
|
|
705
709
|
Ie,
|
|
706
|
-
qe,
|
|
707
|
-
dt,
|
|
708
710
|
ht,
|
|
709
|
-
|
|
711
|
+
mt,
|
|
712
|
+
ue,
|
|
710
713
|
y,
|
|
711
714
|
D,
|
|
712
715
|
M,
|
|
713
716
|
v,
|
|
714
|
-
|
|
715
|
-
|
|
717
|
+
Mt,
|
|
718
|
+
ie
|
|
716
719
|
]), We = (e) => {
|
|
717
720
|
const t = je.current, r = e.target;
|
|
718
721
|
if (!(!t || !r) && (t.classList.remove("table-scroll-left", "table-scroll-right", "table-scroll-middle"), !(r.scrollWidth <= r.clientWidth))) {
|
|
@@ -726,19 +729,19 @@ const Tn = (Et) => {
|
|
|
726
729
|
}
|
|
727
730
|
t.classList.add("table-scroll-middle");
|
|
728
731
|
}
|
|
729
|
-
},
|
|
730
|
-
|
|
731
|
-
},
|
|
732
|
-
const e =
|
|
732
|
+
}, Pr = () => {
|
|
733
|
+
Ve(), We({ target: h.current }), pr(_r());
|
|
734
|
+
}, Ve = () => {
|
|
735
|
+
const e = Ft(), t = 10;
|
|
733
736
|
if (n.current.virtual && !n.current.expandable && Number(n.current.sizeCom) > e + 2 * t) {
|
|
734
|
-
if (
|
|
737
|
+
if (St(!0), !G.current || !h.current) return;
|
|
735
738
|
const r = G.current.clientHeight - h.current.clientHeight;
|
|
736
|
-
h.current.scrollTop >= r && (h.current.scrollTop = r,
|
|
737
|
-
const a = h.current,
|
|
738
|
-
kt([
|
|
739
|
+
h.current.scrollTop >= r && (h.current.scrollTop = r, vt(r)), vt(h.current.scrollTop);
|
|
740
|
+
const a = h.current, s = Math.floor(a.scrollTop / q), l = s + e + t;
|
|
741
|
+
kt([s, l]);
|
|
739
742
|
} else
|
|
740
|
-
kt([0, 0]),
|
|
741
|
-
},
|
|
743
|
+
kt([0, 0]), St(!1);
|
|
744
|
+
}, Wr = () => !he || !G.current || !h.current ? null : /* @__PURE__ */ S.jsx(
|
|
742
745
|
tn,
|
|
743
746
|
{
|
|
744
747
|
style: { position: "absolute", top: 0, right: 0, zIndex: 100 },
|
|
@@ -750,13 +753,13 @@ const Tn = (Et) => {
|
|
|
750
753
|
}
|
|
751
754
|
), Vr = () => {
|
|
752
755
|
let e = `${g}-table`;
|
|
753
|
-
return
|
|
756
|
+
return z === "inside" && (e += ` ${g}-table-columns-inside`), A && (e += ` ${g}-table-pagination`), T && (e += ` ${g}-table-load-more`), $ && (e += ` ${g}-table-fixed-table`), j && (e += ` ${g}-table-fixed-cloumn`), we && (e += ` ${g}-table-drag-column`), E && (e += ` ${g}-table-drag-row`), J && (e += ` ${g}-table-check`), _ && (e += ` ${g}-table-radio`), R && (e += ` ${g}-table-expandable`), y.length === 0 && (e += ` ${g}-table-no-data`), fe && (e += ` ${g}-table-load`), he && (e += ` ${g}-virtual`), $e && (e += ` ${$e}`), e;
|
|
754
757
|
};
|
|
755
758
|
return /* @__PURE__ */ S.jsxs(
|
|
756
759
|
"div",
|
|
757
760
|
{
|
|
758
761
|
className: Vr(),
|
|
759
|
-
style:
|
|
762
|
+
style: qt,
|
|
760
763
|
ref: je,
|
|
761
764
|
children: [
|
|
762
765
|
/* @__PURE__ */ S.jsx(
|
|
@@ -765,30 +768,30 @@ const Tn = (Et) => {
|
|
|
765
768
|
className: "table-contain",
|
|
766
769
|
cRef: h,
|
|
767
770
|
onScroll: (e) => {
|
|
768
|
-
|
|
771
|
+
Ve(), We(e);
|
|
769
772
|
},
|
|
770
773
|
children: /* @__PURE__ */ S.jsxs(
|
|
771
774
|
Qr,
|
|
772
775
|
{
|
|
773
776
|
cRef: G,
|
|
774
|
-
fixedColumn:
|
|
777
|
+
fixedColumn: j,
|
|
775
778
|
style: { minWidth: `${dr}px` },
|
|
776
779
|
children: [
|
|
777
|
-
|
|
780
|
+
jr,
|
|
778
781
|
Lr
|
|
779
782
|
]
|
|
780
783
|
}
|
|
781
784
|
)
|
|
782
785
|
}
|
|
783
786
|
),
|
|
784
|
-
|
|
785
|
-
|
|
787
|
+
Wr(),
|
|
788
|
+
fe && /* @__PURE__ */ S.jsx(Xr, {}),
|
|
786
789
|
Or
|
|
787
790
|
]
|
|
788
791
|
}
|
|
789
792
|
);
|
|
790
|
-
};
|
|
793
|
+
}, Nn = nn;
|
|
791
794
|
export {
|
|
792
|
-
|
|
795
|
+
Nn as default
|
|
793
796
|
};
|
|
794
797
|
//# sourceMappingURL=index.js.map
|