morya-ui 0.1.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +106 -64
- package/LICENSE +21 -21
- package/README.md +149 -149
- package/README.zh-CN.md +149 -149
- package/dist/Checkbox-BjtAYUUD.js +110 -0
- package/dist/Pagination-DNjDBPfR.js +158 -0
- package/dist/Popover-6eE5yIT7.js +166 -0
- package/dist/ProgressSpinner-CT7IP3Yr.js +90 -0
- package/dist/Radio-DcotfGnv.js +93 -0
- package/dist/Scrollbar-DoNZvgX2.js +410 -0
- package/dist/accordion/index.js +42 -39
- package/dist/accordion/style.css +272 -272
- package/dist/auto-complete/index.js +96 -85
- package/dist/auto-complete/style.css +574 -574
- package/dist/avatar/index.js +47 -44
- package/dist/avatar/style.css +387 -387
- package/dist/badge/style.css +415 -415
- package/dist/block-ui/index.js +21 -16
- package/dist/block-ui/style.css +272 -272
- package/dist/breadcrumb/index.js +25 -22
- package/dist/breadcrumb/style.css +272 -272
- package/dist/button/index.js +13 -10
- package/dist/button/style.css +927 -927
- package/dist/card/index.js +29 -26
- package/dist/card/style.css +272 -272
- package/dist/carousel/index.js +89 -86
- package/dist/carousel/style.css +353 -353
- package/dist/cascade-select/index.js +141 -138
- package/dist/cascade-select/style.css +755 -755
- package/dist/checkbox/index.js +28 -25
- package/dist/checkbox/style.css +272 -272
- package/dist/chip/style.css +410 -410
- package/dist/command-menu/index.js +64 -62
- package/dist/command-menu/style.css +477 -477
- package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
- package/dist/components/Accordion/types.d.ts +2 -0
- package/dist/components/Accordion/types.d.ts.map +1 -1
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts +3 -3
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +178 -178
- package/dist/components/AutoComplete/types.d.ts +5 -2
- package/dist/components/AutoComplete/types.d.ts.map +1 -1
- package/dist/components/Avatar/AvatarGroup.vue.d.ts.map +1 -1
- package/dist/components/Avatar/styles.css +113 -113
- package/dist/components/Avatar/types.d.ts +2 -0
- package/dist/components/Avatar/types.d.ts.map +1 -1
- package/dist/components/Badge/styles.css +143 -143
- package/dist/components/BlockUI/BlockUI.vue.d.ts.map +1 -1
- package/dist/components/BlockUI/types.d.ts +2 -0
- package/dist/components/BlockUI/types.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumb/types.d.ts +2 -0
- package/dist/components/Breadcrumb/types.d.ts.map +1 -1
- package/dist/components/Button/Button.vue.d.ts +1 -1
- package/dist/components/Button/ButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/styles.css +653 -653
- package/dist/components/Button/types.d.ts +2 -0
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/types.d.ts +2 -0
- package/dist/components/Card/types.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/Carousel/styles.css +79 -79
- package/dist/components/Carousel/types.d.ts +2 -0
- package/dist/components/Carousel/types.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/styles.css +142 -142
- package/dist/components/CascadeSelect/types.d.ts +5 -2
- package/dist/components/CascadeSelect/types.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/types.d.ts +4 -0
- package/dist/components/Checkbox/types.d.ts.map +1 -1
- package/dist/components/Chip/styles.css +136 -136
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
- package/dist/components/CommandMenu/styles.css +81 -81
- package/dist/components/CommandMenu/types.d.ts +2 -0
- package/dist/components/CommandMenu/types.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -0
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
- package/dist/components/ConfigProvider/styles.css +6 -6
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/styles.css +24 -24
- package/dist/components/ConfirmDialog/types.d.ts +2 -0
- package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/styles.css +35 -35
- package/dist/components/ConfirmPopup/types.d.ts +2 -0
- package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts +11 -6
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/styles.css +99 -99
- package/dist/components/ContextMenu/types.d.ts +2 -0
- package/dist/components/ContextMenu/types.d.ts.map +1 -1
- package/dist/components/ContextMenu/useContextMenu.d.ts.map +1 -1
- package/dist/components/DataView/DataView.vue.d.ts +1 -1
- package/dist/components/DataView/DataView.vue.d.ts.map +1 -1
- package/dist/components/DataView/types.d.ts +2 -0
- package/dist/components/DataView/types.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.css +261 -261
- package/dist/components/DatePicker/types.d.ts +5 -1
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css +230 -230
- package/dist/components/Dialog/types.d.ts +2 -0
- package/dist/components/Dialog/types.d.ts.map +1 -1
- package/dist/components/Dock/Dock.vue.d.ts.map +1 -1
- package/dist/components/Dock/styles.css +68 -68
- package/dist/components/Dock/types.d.ts +2 -0
- package/dist/components/Dock/types.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css +133 -133
- package/dist/components/Drawer/types.d.ts +2 -0
- package/dist/components/Drawer/types.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +79 -79
- package/dist/components/Dropdown/types.d.ts +3 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
- package/dist/components/Fieldset/types.d.ts +2 -0
- package/dist/components/Fieldset/types.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/FileUpload/styles.css +335 -335
- package/dist/components/FileUpload/types.d.ts +2 -0
- package/dist/components/FileUpload/types.d.ts.map +1 -1
- package/dist/components/Flex/Flex.vue.d.ts.map +1 -1
- package/dist/components/Flex/types.d.ts +2 -0
- package/dist/components/Flex/types.d.ts.map +1 -1
- package/dist/components/FloatLabel/FloatLabel.vue.d.ts.map +1 -1
- package/dist/components/FloatLabel/types.d.ts +3 -0
- package/dist/components/FloatLabel/types.d.ts.map +1 -1
- package/dist/components/Fluid/Fluid.vue.d.ts.map +1 -1
- package/dist/components/Fluid/types.d.ts +2 -0
- package/dist/components/Fluid/types.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/FormItem.vue.d.ts.map +1 -1
- package/dist/components/Form/styles.css +90 -90
- package/dist/components/Form/types.d.ts +5 -0
- package/dist/components/Form/types.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
- package/dist/components/Gallery/styles.css +87 -87
- package/dist/components/Gallery/types.d.ts +2 -0
- package/dist/components/Gallery/types.d.ts.map +1 -1
- package/dist/components/Grid/Grid.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridItem.vue.d.ts.map +1 -1
- package/dist/components/Grid/types.d.ts +5 -0
- package/dist/components/Grid/types.d.ts.map +1 -1
- package/dist/components/Icon/styles.css +2 -2
- package/dist/components/IconField/IconField.vue.d.ts.map +1 -1
- package/dist/components/IconField/types.d.ts +3 -0
- package/dist/components/IconField/types.d.ts.map +1 -1
- package/dist/components/Inplace/Inplace.vue.d.ts.map +1 -1
- package/dist/components/Inplace/types.d.ts +2 -0
- package/dist/components/Inplace/types.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/styles.css +193 -193
- package/dist/components/Input/types.d.ts +6 -1
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/InputColor/InputColor.vue.d.ts.map +1 -1
- package/dist/components/InputColor/styles.css +104 -104
- package/dist/components/InputColor/types.d.ts +5 -1
- package/dist/components/InputColor/types.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.vue.d.ts.map +1 -1
- package/dist/components/InputGroup/types.d.ts +3 -0
- package/dist/components/InputGroup/types.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.vue.d.ts.map +1 -1
- package/dist/components/InputNumber/styles.css +175 -175
- package/dist/components/InputNumber/types.d.ts +5 -1
- package/dist/components/InputNumber/types.d.ts.map +1 -1
- package/dist/components/InputOtp/InputOtp.vue.d.ts +1 -1
- package/dist/components/InputOtp/InputOtp.vue.d.ts.map +1 -1
- package/dist/components/InputOtp/types.d.ts +3 -0
- package/dist/components/InputOtp/types.d.ts.map +1 -1
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/styles.css +168 -168
- package/dist/components/InputPassword/types.d.ts +5 -1
- package/dist/components/InputPassword/types.d.ts.map +1 -1
- package/dist/components/InputTags/InputTags.vue.d.ts.map +1 -1
- package/dist/components/InputTags/styles.css +86 -86
- package/dist/components/InputTags/types.d.ts +5 -2
- package/dist/components/InputTags/types.d.ts.map +1 -1
- package/dist/components/Knob/Knob.vue.d.ts.map +1 -1
- package/dist/components/Knob/types.d.ts +3 -0
- package/dist/components/Knob/types.d.ts.map +1 -1
- package/dist/components/Label/Label.vue.d.ts.map +1 -1
- package/dist/components/Label/types.d.ts +3 -0
- package/dist/components/Label/types.d.ts.map +1 -1
- package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutFooter.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutHeader.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +384 -384
- package/dist/components/Layout/types.d.ts +6 -0
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Listbox/Listbox.vue.d.ts +1 -1
- package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
- package/dist/components/Listbox/styles.css +100 -100
- package/dist/components/Listbox/types.d.ts +3 -0
- package/dist/components/Listbox/types.d.ts.map +1 -1
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
- package/dist/components/MegaMenu/styles.css +89 -89
- package/dist/components/MegaMenu/types.d.ts +2 -0
- package/dist/components/MegaMenu/types.d.ts.map +1 -1
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/MenuCollapsedTooltip.vue.d.ts +27 -0
- package/dist/components/Menu/MenuCollapsedTooltip.vue.d.ts.map +1 -0
- package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +518 -496
- package/dist/components/Menu/types.d.ts +2 -0
- package/dist/components/Menu/types.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +114 -114
- package/dist/components/Menubar/types.d.ts +2 -0
- package/dist/components/Menubar/types.d.ts.map +1 -1
- package/dist/components/Message/Message.vue.d.ts +1 -1
- package/dist/components/Message/Message.vue.d.ts.map +1 -1
- package/dist/components/Message/styles.css +221 -221
- package/dist/components/Message/types.d.ts +2 -0
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/MeterGroup/MeterGroup.vue.d.ts.map +1 -1
- package/dist/components/MeterGroup/styles.css +49 -49
- package/dist/components/MeterGroup/types.d.ts +2 -0
- package/dist/components/MeterGroup/types.d.ts.map +1 -1
- package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
- package/dist/components/OrderList/types.d.ts +2 -0
- package/dist/components/OrderList/types.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css +86 -86
- package/dist/components/Pagination/types.d.ts +2 -0
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
- package/dist/components/Panel/types.d.ts +2 -0
- package/dist/components/Panel/types.d.ts.map +1 -1
- package/dist/components/PickList/PickList.vue.d.ts.map +1 -1
- package/dist/components/PickList/types.d.ts +2 -0
- package/dist/components/PickList/types.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts +1 -1
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/styles.css +118 -118
- package/dist/components/Popover/types.d.ts +2 -0
- package/dist/components/Popover/types.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css +3 -3
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/styles.css +3 -3
- package/dist/components/ProgressSpinner/types.d.ts +2 -0
- package/dist/components/ProgressSpinner/types.d.ts.map +1 -1
- package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
- package/dist/components/Radio/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/Radio/types.d.ts +4 -0
- package/dist/components/Radio/types.d.ts.map +1 -1
- package/dist/components/Rating/Rating.vue.d.ts +1 -1
- package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
- package/dist/components/Rating/types.d.ts +3 -0
- package/dist/components/Rating/types.d.ts.map +1 -1
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
- package/dist/components/ScrollTop/types.d.ts +2 -0
- package/dist/components/ScrollTop/types.d.ts.map +1 -1
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
- package/dist/components/Scrollbar/styles.css +122 -122
- package/dist/components/Scrollbar/types.d.ts +2 -0
- package/dist/components/Scrollbar/types.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +3 -3
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/styles.css +240 -240
- package/dist/components/Select/types.d.ts +5 -2
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/SelectButton/SelectButton.vue.d.ts.map +1 -1
- package/dist/components/SelectButton/styles.css +89 -89
- package/dist/components/SelectButton/types.d.ts +2 -0
- package/dist/components/SelectButton/types.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/styles.css +65 -65
- package/dist/components/Sidebar/types.d.ts +2 -0
- package/dist/components/Sidebar/types.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.css +2 -2
- package/dist/components/Skeleton/types.d.ts +2 -0
- package/dist/components/Skeleton/types.d.ts.map +1 -1
- package/dist/components/Slider/Slider.vue.d.ts +1 -1
- package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
- package/dist/components/Slider/styles.css +188 -188
- package/dist/components/Slider/types.d.ts +5 -1
- package/dist/components/Slider/types.d.ts.map +1 -1
- package/dist/components/Space/Space.vue.d.ts.map +1 -1
- package/dist/components/Space/types.d.ts +2 -0
- package/dist/components/Space/types.d.ts.map +1 -1
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
- package/dist/components/SpeedDial/types.d.ts +2 -0
- package/dist/components/SpeedDial/types.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/styles.css +184 -184
- package/dist/components/SplitButton/types.d.ts +2 -0
- package/dist/components/SplitButton/types.d.ts.map +1 -1
- package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
- package/dist/components/Splitter/types.d.ts +2 -0
- package/dist/components/Splitter/types.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.vue.d.ts.map +1 -1
- package/dist/components/Stepper/styles.css +121 -121
- package/dist/components/Stepper/types.d.ts +2 -0
- package/dist/components/Stepper/types.d.ts.map +1 -1
- package/dist/components/Switch/Switch.vue.d.ts +1 -1
- package/dist/components/Switch/Switch.vue.d.ts.map +1 -1
- package/dist/components/Switch/styles.css +107 -107
- package/dist/components/Switch/types.d.ts +3 -0
- package/dist/components/Switch/types.d.ts.map +1 -1
- package/dist/components/Table/Table.vue.d.ts +1 -1
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Table/types.d.ts +2 -0
- package/dist/components/Table/types.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/types.d.ts +2 -0
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/components/Terminal/Terminal.vue.d.ts.map +1 -1
- package/dist/components/Terminal/styles.css +64 -64
- package/dist/components/Terminal/types.d.ts +2 -0
- package/dist/components/Terminal/types.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.vue.d.ts +1 -1
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/components/Textarea/styles.css +96 -96
- package/dist/components/Textarea/types.d.ts +5 -1
- package/dist/components/Textarea/types.d.ts.map +1 -1
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
- package/dist/components/TieredMenu/styles.css +90 -90
- package/dist/components/TieredMenu/types.d.ts +2 -0
- package/dist/components/TieredMenu/types.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
- package/dist/components/Timeline/types.d.ts +2 -0
- package/dist/components/Timeline/types.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts +1 -1
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toast/types.d.ts +2 -0
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/Toolbar/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/Toolbar/types.d.ts +2 -0
- package/dist/components/Toolbar/types.d.ts.map +1 -1
- package/dist/components/Tree/Tree.vue.d.ts +1 -1
- package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
- package/dist/components/Tree/types.d.ts +2 -0
- package/dist/components/Tree/types.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -2
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +162 -162
- package/dist/components/TreeSelect/types.d.ts +5 -2
- package/dist/components/TreeSelect/types.d.ts.map +1 -1
- package/dist/components/TreeTable/TreeTable.vue.d.ts.map +1 -1
- package/dist/components/TreeTable/types.d.ts +2 -0
- package/dist/components/TreeTable/types.d.ts.map +1 -1
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
- package/dist/components/VirtualScroller/types.d.ts +2 -0
- package/dist/components/VirtualScroller/types.d.ts.map +1 -1
- package/dist/config-provider/index.js +71 -68
- package/dist/config-provider/style.css +1124 -1124
- package/dist/confirm-dialog/index.js +82 -80
- package/dist/confirm-dialog/style.css +1181 -1181
- package/dist/confirm-popup/index.js +67 -63
- package/dist/confirm-popup/style.css +962 -962
- package/dist/context-menu/index.js +108 -93
- package/dist/context-menu/style.css +373 -373
- package/dist/data-view/index.js +48 -45
- package/dist/data-view/style.css +361 -361
- package/dist/date-picker/index.js +101 -90
- package/dist/date-picker/style.css +535 -535
- package/dist/dialog/index.js +102 -100
- package/dist/dialog/style.css +1157 -1157
- package/dist/divider/style.css +272 -272
- package/dist/dock/index.js +27 -24
- package/dist/dock/style.css +342 -342
- package/dist/drawer/index.js +60 -58
- package/dist/drawer/style.css +407 -407
- package/dist/dropdown/index.js +121 -119
- package/dist/dropdown/style.css +353 -353
- package/dist/fieldset/index.js +28 -25
- package/dist/fieldset/style.css +274 -274
- package/dist/file-upload/index.js +184 -181
- package/dist/file-upload/style.css +609 -609
- package/dist/flex/index.js +21 -19
- package/dist/flex/style.css +272 -272
- package/dist/float-label/index.js +20 -16
- package/dist/float-label/style.css +272 -272
- package/dist/fluid/index.js +14 -8
- package/dist/fluid/style.css +272 -272
- package/dist/form/index.js +170 -165
- package/dist/form/style.css +362 -362
- package/dist/gallery/index.js +68 -65
- package/dist/gallery/style.css +361 -361
- package/dist/grid/index.js +101 -98
- package/dist/grid/style.css +272 -272
- package/dist/icon/style.css +274 -274
- package/dist/icon-field/index.js +13 -8
- package/dist/icon-field/style.css +272 -272
- package/dist/index.js +5817 -5427
- package/dist/inplace/index.js +43 -40
- package/dist/inplace/style.css +272 -272
- package/dist/input/index.js +91 -77
- package/dist/input/style.css +467 -467
- package/dist/input-color/index.js +63 -49
- package/dist/input-color/style.css +376 -376
- package/dist/input-group/index.js +14 -9
- package/dist/input-group/style.css +272 -272
- package/dist/input-number/index.js +130 -119
- package/dist/input-number/style.css +449 -449
- package/dist/input-otp/index.js +61 -58
- package/dist/input-otp/style.css +272 -272
- package/dist/input-password/index.js +92 -79
- package/dist/input-password/style.css +442 -442
- package/dist/input-tags/index.js +72 -60
- package/dist/input-tags/style.css +360 -360
- package/dist/knob/index.js +65 -62
- package/dist/knob/style.css +272 -272
- package/dist/label/index.js +11 -9
- package/dist/label/style.css +272 -272
- package/dist/layout/index.js +159 -148
- package/dist/layout/style.css +658 -658
- package/dist/listbox/index.js +76 -73
- package/dist/listbox/style.css +494 -494
- package/dist/mega-menu/index.js +116 -113
- package/dist/mega-menu/style.css +363 -363
- package/dist/menu/index.js +375 -327
- package/dist/menu/style.css +932 -858
- package/dist/menu/style.js +1 -0
- package/dist/menubar/index.js +120 -117
- package/dist/menubar/style.css +388 -388
- package/dist/message/index.js +113 -110
- package/dist/message/style.css +495 -495
- package/dist/meter-group/index.js +27 -24
- package/dist/meter-group/style.css +321 -321
- package/dist/order-list/index.js +86 -83
- package/dist/order-list/style.css +274 -274
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +360 -360
- package/dist/panel/index.js +44 -41
- package/dist/panel/style.css +274 -274
- package/dist/pick-list/index.js +81 -78
- package/dist/pick-list/style.css +274 -274
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +390 -390
- package/dist/progress-bar/style.css +275 -275
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +275 -275
- package/dist/radio/index.js +26 -23
- package/dist/radio/style.css +272 -272
- package/dist/rating/index.js +81 -78
- package/dist/rating/style.css +274 -274
- package/dist/scroll-top/index.js +47 -44
- package/dist/scroll-top/style.css +274 -274
- package/dist/scrollbar/index.js +1 -1
- package/dist/scrollbar/style.css +394 -394
- package/dist/select/index.js +96 -88
- package/dist/select/style.css +853 -853
- package/dist/select-button/index.js +46 -43
- package/dist/select-button/style.css +361 -361
- package/dist/shared/nativeControlProps.d.ts +32 -0
- package/dist/shared/nativeControlProps.d.ts.map +1 -0
- package/dist/shared/passThrough.d.ts +11 -0
- package/dist/shared/passThrough.d.ts.map +1 -0
- package/dist/shared/styles/control-affix-icon.css +110 -110
- package/dist/shared/styles/control-suffix.css +107 -107
- package/dist/shared/useComponentAttrs.d.ts +61 -0
- package/dist/shared/useComponentAttrs.d.ts.map +1 -0
- package/dist/sidebar/index.js +38 -35
- package/dist/sidebar/style.css +339 -339
- package/dist/skeleton/index.js +24 -24
- package/dist/skeleton/style.css +274 -274
- package/dist/slider/index.js +104 -92
- package/dist/slider/style.css +460 -460
- package/dist/space/index.js +23 -20
- package/dist/space/style.css +272 -272
- package/dist/speed-dial/index.js +79 -76
- package/dist/speed-dial/style.css +274 -274
- package/dist/split-button/index.js +64 -61
- package/dist/split-button/style.css +1111 -1111
- package/dist/splitter/index.js +94 -90
- package/dist/splitter/style.css +272 -272
- package/dist/stepper/index.js +39 -36
- package/dist/stepper/style.css +395 -395
- package/dist/styles/base.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +32 -30
- package/dist/switch/style.css +379 -379
- package/dist/table/index.js +341 -337
- package/dist/table/style.css +485 -485
- package/dist/tabs/index.js +77 -74
- package/dist/tabs/style.css +274 -274
- package/dist/tag/style.css +274 -274
- package/dist/terminal/index.js +41 -38
- package/dist/terminal/style.css +336 -336
- package/dist/textarea/index.js +90 -76
- package/dist/textarea/style.css +370 -370
- package/dist/theme/styles.css +271 -271
- package/dist/tiered-menu/index.js +65 -60
- package/dist/tiered-menu/style.css +364 -364
- package/dist/timeline/index.js +50 -47
- package/dist/timeline/style.css +274 -274
- package/dist/toast/index.js +111 -108
- package/dist/toast/style.css +274 -274
- package/dist/toggle-button/style.css +274 -274
- package/dist/toolbar/index.js +21 -15
- package/dist/toolbar/style.css +272 -272
- package/dist/tooltip/style.css +272 -272
- package/dist/tree/index.js +214 -211
- package/dist/tree/style.css +274 -274
- package/dist/tree-select/index.js +218 -215
- package/dist/tree-select/style.css +653 -653
- package/dist/tree-table/index.js +58 -55
- package/dist/tree-table/style.css +274 -274
- package/dist/useComponentAttrs-BTYEe61P.js +70 -0
- package/dist/virtual-scroller/index.js +32 -29
- package/dist/virtual-scroller/style.css +272 -272
- package/package.json +13 -8
- package/dist/Checkbox-D8Ma0ZbG.js +0 -108
- package/dist/Pagination-BiaLUjrx.js +0 -155
- package/dist/Popover-BXSXRV-B.js +0 -162
- package/dist/ProgressSpinner-DPavp_Ff.js +0 -89
- package/dist/Radio-ChJ6GX_G.js +0 -91
- package/dist/Scrollbar-BGCxnXaQ.js +0 -407
package/dist/table/index.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../
|
|
3
|
-
import { t as n } from "../
|
|
4
|
-
import { t as r } from "../
|
|
5
|
-
import { t as i } from "../
|
|
6
|
-
import { t as a } from "../
|
|
7
|
-
import { t as o } from "../
|
|
1
|
+
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
|
+
import { t } from "../useControllable-elmWaz23.js";
|
|
3
|
+
import { t as n } from "../Icon-DfpIfo2L.js";
|
|
4
|
+
import { t as r } from "../Scrollbar-DoNZvgX2.js";
|
|
5
|
+
import { t as i } from "../Checkbox-BjtAYUUD.js";
|
|
6
|
+
import { t as a } from "../Pagination-DNjDBPfR.js";
|
|
7
|
+
import { t as o } from "../ProgressSpinner-CT7IP3Yr.js";
|
|
8
8
|
import { t as s } from "../Tooltip-CrKm9FMD.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { t as c } from "../Radio-DcotfGnv.js";
|
|
10
|
+
import { o as l } from "../config-CI8_WBbE.js";
|
|
11
|
+
import { n as u } from "../locale-DYGhxekd.js";
|
|
11
12
|
import "./style.js";
|
|
12
|
-
import { Fragment as
|
|
13
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, normalizeClass as x, normalizeProps as S, normalizeStyle as ee, openBlock as C, provide as te, ref as w, renderList as T, renderSlot as E, toDisplayString as D, toRefs as ne, unref as O, useAttrs as re, useSlots as ie, watch as k, withCtx as ae, withModifiers as A } from "vue";
|
|
13
14
|
//#region \0plugin-vue:export-helper
|
|
14
|
-
var
|
|
15
|
+
var oe = (e, t) => {
|
|
15
16
|
let n = e.__vccOpts || e;
|
|
16
17
|
for (let [e, r] of t) n[e] = r;
|
|
17
18
|
return n;
|
|
18
|
-
},
|
|
19
|
-
function
|
|
20
|
-
return C(),
|
|
19
|
+
}, se = {}, j = { class: "loader-line" };
|
|
20
|
+
function ce(e, t) {
|
|
21
|
+
return C(), h("div", j);
|
|
21
22
|
}
|
|
22
|
-
var
|
|
23
|
+
var le = /*#__PURE__*/ oe(se, [["render", ce]]);
|
|
23
24
|
//#endregion
|
|
24
25
|
//#region src/components/Table/hooks/useClickRow.ts
|
|
25
|
-
function
|
|
26
|
+
function ue(e, t, n, r) {
|
|
26
27
|
return { clickRow: (i, a, o, s) => {
|
|
27
28
|
if (e.value !== o) return;
|
|
28
29
|
let c = { ...i };
|
|
@@ -34,7 +35,7 @@ function se(e, t, n, r) {
|
|
|
34
35
|
}
|
|
35
36
|
//#endregion
|
|
36
37
|
//#region src/components/Table/utils.ts
|
|
37
|
-
function
|
|
38
|
+
function M(e, t) {
|
|
38
39
|
if (e.includes(".")) {
|
|
39
40
|
let n = e.split("."), r = t;
|
|
40
41
|
for (let e of n) if (r && typeof r == "object") r = r[e];
|
|
@@ -43,22 +44,22 @@ function N(e, t) {
|
|
|
43
44
|
}
|
|
44
45
|
return t[e] ?? "";
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
let n =
|
|
47
|
+
function de(e, t) {
|
|
48
|
+
let n = M(e, t);
|
|
48
49
|
return Array.isArray(n) ? n.join(",") : String(n ?? "");
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function fe(e, t, n = "id") {
|
|
51
52
|
let r = e[n];
|
|
52
53
|
return typeof r == "string" || typeof r == "number" ? r : t;
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function N(e, t, n = "id") {
|
|
55
56
|
let r = e[n], i = t[n];
|
|
56
57
|
return (typeof r == "string" || typeof r == "number") && (typeof i == "string" || typeof i == "number") ? r === i : JSON.stringify(e) === JSON.stringify(t);
|
|
57
58
|
}
|
|
58
59
|
//#endregion
|
|
59
60
|
//#region src/components/Table/hooks/useExpandableRow.ts
|
|
60
|
-
function
|
|
61
|
-
let i = w([]), a =
|
|
61
|
+
function pe(e, t, n, r) {
|
|
62
|
+
let i = w([]), a = f(() => e.value ?? i.value), o = (e, r) => fe(e, n.value + r, t.value);
|
|
62
63
|
return {
|
|
63
64
|
expandedKeys: a,
|
|
64
65
|
isRowExpanded: (e, t) => a.value.includes(o(e, t)),
|
|
@@ -74,14 +75,14 @@ function ue(e, t, n, r) {
|
|
|
74
75
|
}
|
|
75
76
|
//#endregion
|
|
76
77
|
//#region src/components/Table/hooks/useFixedColumn.ts
|
|
77
|
-
var
|
|
78
|
-
function
|
|
79
|
-
let t =
|
|
78
|
+
var me = (e) => e.fixed === "right", P = (e) => !!e.fixed;
|
|
79
|
+
function he(e) {
|
|
80
|
+
let t = f(() => e.value.filter(P)), n = f(() => e.value.filter((e) => P(e) && !me(e))), r = f(() => e.value.filter(me));
|
|
80
81
|
return {
|
|
81
82
|
fixedHeaders: t,
|
|
82
|
-
lastFixedColumn:
|
|
83
|
-
firstRightFixedColumn:
|
|
84
|
-
fixedColumnsInfos:
|
|
83
|
+
lastFixedColumn: f(() => n.value.length ? n.value[n.value.length - 1].value : ""),
|
|
84
|
+
firstRightFixedColumn: f(() => r.value.length ? r.value[0].value : ""),
|
|
85
|
+
fixedColumnsInfos: f(() => {
|
|
85
86
|
if (!t.value.length) return [];
|
|
86
87
|
let e = n.value.map((e, t) => ({
|
|
87
88
|
value: e.value,
|
|
@@ -98,23 +99,23 @@ function fe(e) {
|
|
|
98
99
|
})
|
|
99
100
|
};
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
-
let x =
|
|
102
|
+
function ge(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, _, v, y, b) {
|
|
103
|
+
let x = f(() => o.value.some((e) => e.fixed)), S = f(() => x.value ? o.value.filter((e) => e.fixed && e.fixed !== "right") : []), ee = f(() => x.value ? o.value.filter((e) => e.fixed === "right") : []), C = f(() => o.value.filter((e) => !e.fixed)), te = (e, t) => Array.isArray(e) && Array.isArray(t) ? {
|
|
103
104
|
sortBy: e,
|
|
104
105
|
sortDesc: t.map((e) => e === "desc")
|
|
105
106
|
} : e === "" ? null : {
|
|
106
107
|
sortBy: h.value,
|
|
107
108
|
sortDesc: g.value === "desc"
|
|
108
|
-
},
|
|
109
|
-
get: () => v.value === "emit" ?
|
|
109
|
+
}, T = w(te(h.value, g.value)), E = f({
|
|
110
|
+
get: () => v.value === "emit" ? te(h.value, g.value) : T.value,
|
|
110
111
|
set: (e) => {
|
|
111
|
-
|
|
112
|
+
T.value = e;
|
|
112
113
|
}
|
|
113
|
-
}),
|
|
114
|
+
}), D = f(() => {
|
|
114
115
|
let o = [
|
|
115
116
|
...S.value,
|
|
116
|
-
...
|
|
117
|
-
...
|
|
117
|
+
...C.value,
|
|
118
|
+
...ee.value
|
|
118
119
|
].map((e) => {
|
|
119
120
|
let t = { ...e };
|
|
120
121
|
if (t.sortable && (t.sortType = "none"), p.value) {
|
|
@@ -123,10 +124,10 @@ function pe(e, t, n, r, i, a, o, s, c, l, u, f, p, m, h, g, _, v, y, b) {
|
|
|
123
124
|
t.sortType = p.value.sortType[e];
|
|
124
125
|
} else t.value === p.value.sortBy && p.value.sortType && (t.sortType = p.value.sortType);
|
|
125
126
|
}
|
|
126
|
-
if (
|
|
127
|
-
let e =
|
|
128
|
-
t.sortType =
|
|
129
|
-
} else
|
|
127
|
+
if (E.value && Array.isArray(E.value.sortBy) && Array.isArray(E.value.sortDesc) && E.value.sortBy.includes(t.value)) {
|
|
128
|
+
let e = E.value.sortBy.indexOf(t.value);
|
|
129
|
+
t.sortType = E.value.sortDesc[e] ? "desc" : "asc";
|
|
130
|
+
} else E.value && t.value === E.value.sortBy && (t.sortType = E.value.sortDesc ? "desc" : "asc");
|
|
130
131
|
return t;
|
|
131
132
|
}), u = s.value ? [{
|
|
132
133
|
text: "",
|
|
@@ -152,16 +153,16 @@ function pe(e, t, n, r, i, a, o, s, c, l, u, f, p, m, h, g, _, v, y, b) {
|
|
|
152
153
|
return f.length ? [...f, ...d] : d;
|
|
153
154
|
});
|
|
154
155
|
return {
|
|
155
|
-
clientSortOptions:
|
|
156
|
-
headerColumns:
|
|
157
|
-
headersForRender:
|
|
156
|
+
clientSortOptions: E,
|
|
157
|
+
headerColumns: f(() => D.value.map((e) => e.value)),
|
|
158
|
+
headersForRender: D,
|
|
158
159
|
updateSortField: (e, t) => {
|
|
159
160
|
let n = null;
|
|
160
|
-
if (n = t === "none" ? "asc" : t === "asc" ? "desc" :
|
|
161
|
-
if (
|
|
162
|
-
let t =
|
|
163
|
-
t === -1 ? n !== null && (
|
|
164
|
-
} else n === null ?
|
|
161
|
+
if (n = t === "none" ? "asc" : t === "asc" ? "desc" : d.value ? "asc" : null, u.value && y(e, n), v.value !== "emit") {
|
|
162
|
+
if (T.value && Array.isArray(T.value.sortBy) && Array.isArray(T.value.sortDesc)) {
|
|
163
|
+
let t = T.value.sortBy.indexOf(e);
|
|
164
|
+
t === -1 ? n !== null && (T.value.sortBy.push(e), T.value.sortDesc.push(n === "desc")) : n === null ? (T.value.sortDesc.splice(t, 1), T.value.sortBy.splice(t, 1)) : T.value.sortDesc[t] = n === "desc";
|
|
165
|
+
} else n === null ? T.value = null : T.value = {
|
|
165
166
|
sortBy: e,
|
|
166
167
|
sortDesc: n === "desc"
|
|
167
168
|
};
|
|
@@ -171,22 +172,22 @@ function pe(e, t, n, r, i, a, o, s, c, l, u, f, p, m, h, g, _, v, y, b) {
|
|
|
171
172
|
sortOrder: n
|
|
172
173
|
});
|
|
173
174
|
},
|
|
174
|
-
isMultiSorting: (e) => p.value && Array.isArray(p.value.sortBy) ? p.value.sortBy.includes(e) :
|
|
175
|
-
getMultiSortNumber: (e) => p.value && Array.isArray(p.value.sortBy) ? p.value.sortBy.indexOf(e) + 1 :
|
|
175
|
+
isMultiSorting: (e) => p.value && Array.isArray(p.value.sortBy) ? p.value.sortBy.includes(e) : E.value && Array.isArray(E.value.sortBy) ? E.value.sortBy.includes(e) : !1,
|
|
176
|
+
getMultiSortNumber: (e) => p.value && Array.isArray(p.value.sortBy) ? p.value.sortBy.indexOf(e) + 1 : E.value && Array.isArray(E.value.sortBy) ? E.value.sortBy.indexOf(e) + 1 : !1
|
|
176
177
|
};
|
|
177
178
|
}
|
|
178
179
|
//#endregion
|
|
179
180
|
//#region src/components/Table/hooks/usePageItems.ts
|
|
180
|
-
function
|
|
181
|
-
let u =
|
|
181
|
+
function _e(e, t, n, r, i, a, o, s, c, l) {
|
|
182
|
+
let u = f(() => (e.value - 1) * i.value + 1), d = f(() => n.value ? Math.min(c.value, e.value * i.value) : Math.min(s.value.length, e.value * i.value)), p = f(() => n.value ? r.value : s.value.slice(u.value - 1, d.value)), m = f(() => o.value ? p.value.map((e, t) => ({
|
|
182
183
|
index: u.value + t,
|
|
183
184
|
...e
|
|
184
|
-
})) : p.value), h =
|
|
185
|
+
})) : p.value), h = f(() => a.value.length === 0 || a.value.every((e) => s.value.every((t) => !N(e, t, l.value))) ? "noneSelected" : a.value.length === s.value.length && a.value.every((e) => s.value.some((t) => N(e, t, l.value))) ? "allSelected" : "partSelected");
|
|
185
186
|
return {
|
|
186
187
|
currentPageFirstIndex: u,
|
|
187
|
-
currentPageLastIndex:
|
|
188
|
+
currentPageLastIndex: d,
|
|
188
189
|
multipleSelectStatus: h,
|
|
189
|
-
pageItems:
|
|
190
|
+
pageItems: f(() => t.value ? h.value === "allSelected" ? m.value.map((e) => ({
|
|
190
191
|
checkbox: !0,
|
|
191
192
|
...e
|
|
192
193
|
})) : h.value === "noneSelected" ? m.value.map((e) => ({
|
|
@@ -195,7 +196,7 @@ function me(e, t, n, r, i, a, o, s, c, l) {
|
|
|
195
196
|
})) : m.value.map((e) => {
|
|
196
197
|
let t = { ...e };
|
|
197
198
|
return delete t.index, {
|
|
198
|
-
checkbox: a.value.some((e) =>
|
|
199
|
+
checkbox: a.value.some((e) => N(e, t, l.value)),
|
|
199
200
|
...e
|
|
200
201
|
};
|
|
201
202
|
}) : m.value)
|
|
@@ -203,8 +204,8 @@ function me(e, t, n, r, i, a, o, s, c, l) {
|
|
|
203
204
|
}
|
|
204
205
|
//#endregion
|
|
205
206
|
//#region src/components/Table/hooks/usePagination.ts
|
|
206
|
-
function
|
|
207
|
-
let s = w(a.value ? a.value.page : e.value), c =
|
|
207
|
+
function ve(e, t, n, r, i, a, o) {
|
|
208
|
+
let s = w(a.value ? a.value.page : e.value), c = f(() => Math.ceil(r.value / i.value)), l = f(() => c.value === 0 || s.value === c.value), u = f(() => s.value === 1);
|
|
208
209
|
return {
|
|
209
210
|
currentPaginationNumber: s,
|
|
210
211
|
maxPaginationNumber: c,
|
|
@@ -226,8 +227,8 @@ function he(e, t, n, r, i, a, o) {
|
|
|
226
227
|
}
|
|
227
228
|
//#endregion
|
|
228
229
|
//#region src/components/Table/hooks/useRows.ts
|
|
229
|
-
function
|
|
230
|
-
let i =
|
|
230
|
+
function ye(e, t, n, r) {
|
|
231
|
+
let i = f(() => !e.value && !t.value.includes(r.value) ? [r.value, ...t.value] : t.value), a = w(n.value ? n.value.rowsPerPage : r.value);
|
|
231
232
|
return {
|
|
232
233
|
rowsItemsComputed: i,
|
|
233
234
|
rowsPerPageRef: a,
|
|
@@ -238,8 +239,8 @@ function ge(e, t, n, r) {
|
|
|
238
239
|
}
|
|
239
240
|
//#endregion
|
|
240
241
|
//#region src/components/Table/hooks/useServerOptions.ts
|
|
241
|
-
function
|
|
242
|
-
let r =
|
|
242
|
+
function be(e, t, n) {
|
|
243
|
+
let r = f({
|
|
243
244
|
get: () => {
|
|
244
245
|
if (!e.value) return null;
|
|
245
246
|
let { page: t, rowsPerPage: n, sortBy: r, sortType: i } = e.value;
|
|
@@ -285,26 +286,26 @@ function _e(e, t, n) {
|
|
|
285
286
|
}
|
|
286
287
|
//#endregion
|
|
287
288
|
//#region src/components/Table/hooks/useTotalItems.ts
|
|
288
|
-
function
|
|
289
|
+
function F(e, t, n) {
|
|
289
290
|
if (typeof e == "number" && typeof t == "number") return e < t ? n ? 1 : -1 : e > t ? n ? -1 : 1 : 0;
|
|
290
291
|
let r = String(e ?? ""), i = String(t ?? "");
|
|
291
292
|
return r < i ? n ? 1 : -1 : r > i ? n ? -1 : 1 : 0;
|
|
292
293
|
}
|
|
293
|
-
function
|
|
294
|
+
function xe(e, t) {
|
|
294
295
|
return typeof t == "function" ? t(e) : Array.isArray(t) ? t.includes(e) : e === t || String(e ?? "") === String(t);
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
-
let p = (e) => typeof o.value == "string" && o.value !== "" ? String(
|
|
297
|
+
function Se(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
298
|
+
let p = (e) => typeof o.value == "string" && o.value !== "" ? String(M(o.value, e)) : Array.isArray(o.value) ? o.value.map((t) => String(M(t, e))).join("") : Object.values(e).join(" "), m = f(() => {
|
|
298
299
|
if (!r.value && s.value !== "") {
|
|
299
300
|
let e = s.value.toLowerCase();
|
|
300
301
|
return i.value.filter((t) => p(t).toLowerCase().includes(e));
|
|
301
302
|
}
|
|
302
303
|
return i.value;
|
|
303
|
-
}), h =
|
|
304
|
+
}), h = f(() => {
|
|
304
305
|
let e = [...m.value];
|
|
305
|
-
if (n.value) for (let [t, r] of Object.entries(n.value)) r != null && r !== "" && (e = e.filter((e) =>
|
|
306
|
+
if (n.value) for (let [t, r] of Object.entries(n.value)) r != null && r !== "" && (e = e.filter((e) => xe(M(t, e), r)));
|
|
306
307
|
if (t.value) for (let n of t.value) e = e.filter((e) => {
|
|
307
|
-
let { field: t, comparison: r, criteria: i } = n, a =
|
|
308
|
+
let { field: t, comparison: r, criteria: i } = n, a = M(String(t), e);
|
|
308
309
|
if (typeof r == "function") return r(a, i);
|
|
309
310
|
switch (r) {
|
|
310
311
|
case "=": return a === i;
|
|
@@ -330,110 +331,112 @@ function ye(e, t, n, r, i, a, o, s, c, l, u, f) {
|
|
|
330
331
|
function g(e, t, n, r) {
|
|
331
332
|
let i = e[r], a = t[r];
|
|
332
333
|
return (r === 0 ? n : g(e, t, n, r - 1)).sort((t, n) => {
|
|
333
|
-
for (let i = 0; i < r; i += 1) if (
|
|
334
|
-
return
|
|
334
|
+
for (let i = 0; i < r; i += 1) if (M(e[i], t) !== M(e[i], n)) return 0;
|
|
335
|
+
return F(M(i, t), M(i, n), a);
|
|
335
336
|
});
|
|
336
337
|
}
|
|
337
|
-
let _ =
|
|
338
|
+
let _ = f(() => {
|
|
338
339
|
if (r.value) return i.value;
|
|
339
340
|
if (e.value === null) return h.value;
|
|
340
341
|
let { sortBy: t, sortDesc: n } = e.value, a = [...h.value];
|
|
341
|
-
return l.value && Array.isArray(t) && Array.isArray(n) ? t.length === 0 ? a : g(t, n, a, t.length - 1) : a.sort((e, r) =>
|
|
342
|
-
}), v =
|
|
342
|
+
return l.value && Array.isArray(t) && Array.isArray(n) ? t.length === 0 ? a : g(t, n, a, t.length - 1) : a.sort((e, r) => F(M(t, e), M(t, r), n));
|
|
343
|
+
}), v = f(() => r.value ? c.value : _.value.length), y = f({
|
|
343
344
|
get: () => a.value ?? [],
|
|
344
|
-
set: (e) =>
|
|
345
|
+
set: (e) => d("update:selection", e)
|
|
345
346
|
});
|
|
346
347
|
return {
|
|
347
348
|
totalItems: _,
|
|
348
349
|
selectItemsComputed: y,
|
|
349
350
|
totalItemsLength: v,
|
|
350
351
|
toggleSelectAll: (e) => {
|
|
351
|
-
y.value = e ? _.value : [], e &&
|
|
352
|
+
y.value = e ? _.value : [], e && d("selectAll");
|
|
352
353
|
},
|
|
353
354
|
toggleSelectItem: (e) => {
|
|
354
355
|
let t = e.checkbox, n = { ...e };
|
|
355
|
-
delete n.checkbox, delete n.index, t ? (y.value = y.value.filter((e) => !
|
|
356
|
+
delete n.checkbox, delete n.index, t ? (y.value = y.value.filter((e) => !N(e, n, u.value)), d("deselectRow", n)) : (y.value = [n, ...y.value], d("selectRow", n));
|
|
356
357
|
}
|
|
357
358
|
};
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
+
function Ce(e) {
|
|
360
361
|
if (e) return e === "left" || e === "start" ? "start" : e === "right" || e === "end" ? "end" : "center";
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
+
function we(e) {
|
|
363
364
|
if (e === !0 || e === "left") return "left";
|
|
364
365
|
if (e === "right") return "right";
|
|
365
366
|
}
|
|
366
|
-
function
|
|
367
|
+
function I(e) {
|
|
367
368
|
return {
|
|
368
369
|
text: e.label,
|
|
369
370
|
value: e.key,
|
|
370
371
|
sortable: e.sortable,
|
|
371
|
-
fixed:
|
|
372
|
+
fixed: we(e.fixed),
|
|
372
373
|
width: e.width,
|
|
373
374
|
minWidth: e.minWidth ?? (e.width ? void 0 : 80),
|
|
374
|
-
align:
|
|
375
|
+
align: Ce(e.align),
|
|
375
376
|
render: e.render,
|
|
376
377
|
showOverflowTooltip: e.showOverflowTooltip
|
|
377
378
|
};
|
|
378
379
|
}
|
|
379
|
-
function
|
|
380
|
-
return e.map(
|
|
380
|
+
function Te(e) {
|
|
381
|
+
return e.map(I);
|
|
381
382
|
}
|
|
382
|
-
function
|
|
383
|
+
function Ee(e) {
|
|
383
384
|
return e ?? "asc";
|
|
384
385
|
}
|
|
385
|
-
function
|
|
386
|
+
function De(e) {
|
|
386
387
|
return e ?? "";
|
|
387
388
|
}
|
|
388
389
|
//#endregion
|
|
389
390
|
//#region src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
|
|
390
|
-
var
|
|
391
|
+
var Oe = ["aria-label"], ke = ["aria-busy"], Ae = ["id"], je = [
|
|
391
392
|
"aria-sort",
|
|
392
393
|
"tabindex",
|
|
393
394
|
"onClick",
|
|
394
395
|
"onKeydown"
|
|
395
|
-
],
|
|
396
|
+
], Me = {
|
|
396
397
|
key: 0,
|
|
397
|
-
class: "m-table__cell-inner
|
|
398
|
-
},
|
|
398
|
+
class: "m-table__cell-inner m-table__cell-inner--selection"
|
|
399
|
+
}, Ne = {
|
|
399
400
|
key: 1,
|
|
400
|
-
class: "m-table__cell-inner
|
|
401
|
-
},
|
|
401
|
+
class: "m-table__cell-inner m-table__cell-inner--selection"
|
|
402
|
+
}, Pe = ["title"], Fe = {
|
|
402
403
|
key: 4,
|
|
403
404
|
class: "m-table__caret-wrapper"
|
|
404
|
-
},
|
|
405
|
+
}, Ie = {
|
|
405
406
|
key: 5,
|
|
406
407
|
class: "m-table__multi-sort-number"
|
|
407
|
-
},
|
|
408
|
+
}, Le = {
|
|
408
409
|
key: 3,
|
|
409
410
|
class: "m-table__body"
|
|
410
|
-
},
|
|
411
|
+
}, Re = [
|
|
411
412
|
"onClick",
|
|
412
413
|
"onDblclick",
|
|
413
414
|
"onContextmenu"
|
|
414
|
-
],
|
|
415
|
+
], ze = ["onClick"], Be = [
|
|
415
416
|
"aria-expanded",
|
|
416
417
|
"aria-label",
|
|
417
418
|
"onClick"
|
|
418
|
-
],
|
|
419
|
+
], Ve = {
|
|
419
420
|
key: 6,
|
|
420
421
|
class: "m-table__cell-text"
|
|
421
|
-
},
|
|
422
|
+
}, He = { class: "m-table__tooltip-trigger" }, Ue = { class: "m-table__cell-text" }, We = ["colspan"], Ge = {
|
|
422
423
|
key: 0,
|
|
423
424
|
class: "m-table__loading"
|
|
424
|
-
},
|
|
425
|
+
}, Ke = { class: "m-table__loading-body" }, qe = {
|
|
425
426
|
key: 1,
|
|
426
427
|
class: "m-table__message",
|
|
427
428
|
role: "status"
|
|
428
|
-
},
|
|
429
|
+
}, Je = { class: "m-table__empty-text" }, Ye = {
|
|
429
430
|
key: 0,
|
|
430
431
|
class: "m-table__empty-description"
|
|
431
|
-
},
|
|
432
|
+
}, Xe = {
|
|
432
433
|
key: 0,
|
|
433
434
|
class: "m-table__footer"
|
|
434
|
-
},
|
|
435
|
+
}, Ze = { class: "m-table__items-index" }, Qe = /* @__PURE__ */ v({
|
|
436
|
+
inheritAttrs: !1,
|
|
435
437
|
__name: "Table",
|
|
436
438
|
props: {
|
|
439
|
+
pt: {},
|
|
437
440
|
columns: {},
|
|
438
441
|
rows: { default: () => [] },
|
|
439
442
|
selection: { default: null },
|
|
@@ -599,361 +602,362 @@ var Ee = ["aria-label"], De = ["aria-busy"], Oe = ["id"], ke = [
|
|
|
599
602
|
"update:expandedRowKeys",
|
|
600
603
|
"update:filters"
|
|
601
604
|
],
|
|
602
|
-
setup(
|
|
603
|
-
let j =
|
|
604
|
-
|
|
605
|
-
}, { value:
|
|
605
|
+
setup(v, { expose: oe, emit: se }) {
|
|
606
|
+
let j = v, ce = re(), { rootAttrs: me } = e(ce, () => j.pt), P = se, F = (e, ...t) => {
|
|
607
|
+
P(e, ...t);
|
|
608
|
+
}, { value: xe, setValue: we } = t({
|
|
606
609
|
controlled: () => j.filters ?? void 0,
|
|
607
610
|
defaultValue: null
|
|
608
611
|
}, (e) => {
|
|
609
|
-
|
|
610
|
-
}), I =
|
|
611
|
-
if (
|
|
612
|
-
if (
|
|
613
|
-
}),
|
|
614
|
-
|
|
615
|
-
|
|
612
|
+
P("filter", e), P("update:filters", e);
|
|
613
|
+
}), I = u(), { tableNodeId: Qe, clickEventType: $e, bodyTextDirection: et, checkboxColumnWidth: tt, expandColumnWidth: nt, expandedRowKeys: rt, filterOptions: it, fixedCheckbox: at, fixedExpand: ot, fixedHeader: st, fixedIndex: ct, headerTextDirection: lt, indexColumnWidth: ut, selectionMode: dt, selectedItem: ft, loading: L, mustSort: pt, multiSort: R, rowsItems: mt, rowsPerPage: ht, searchField: gt, searchValue: _t, serverItemsLength: vt, serverOptions: z, showIndex: yt, sortMode: bt, tableHeight: xt, tableMinHeight: St, rowsOfPageSeparatorMessage: Ct, showIndexSymbol: wt, preventContextMenuRow: Tt, headerItemClassName: Et, bodyRowClassName: Dt, bodyExpandRowClassName: Ot, bodyItemClassName: kt, tableClassName: At, headerClassName: jt, rowsPerPageMessage: Mt, hideHeader: Nt, hideRowsPerPage: Pt, clickRowToExpand: Ft, expandable: It, emptyDescription: Lt, fit: Rt, emptyText: zt, showHeader: Bt, maxHeight: Vt, paginator: Ht, rowKey: B, ariaLabel: Ut, size: Wt } = ne(j), V = f(() => Te(j.columns)), Gt = f(() => j.rows), Kt = f(() => j.selection ?? null), qt = f(() => De(j.sortField)), Jt = f(() => Ee(j.sortOrder)), Yt = f(() => j.page ?? 1), Xt = f(() => j.striped), Zt = f(() => j.bordered), Qt = f(() => j.highlightCurrent), $t = f(() => !j.rowHover), en = l("Table", () => Wt.value), tn = f(() => {
|
|
614
|
+
if (en.value === "small") return "m-table--small";
|
|
615
|
+
if (en.value === "large") return "m-table--large";
|
|
616
|
+
}), nn = f(() => [
|
|
617
|
+
At.value,
|
|
618
|
+
tn.value,
|
|
616
619
|
{
|
|
617
|
-
"m-table--border":
|
|
618
|
-
"m-table--striped":
|
|
619
|
-
"m-table--enable-row-hover":
|
|
620
|
+
"m-table--border": Zt.value,
|
|
621
|
+
"m-table--striped": Xt.value,
|
|
622
|
+
"m-table--enable-row-hover": !$t.value
|
|
620
623
|
}
|
|
621
|
-
]),
|
|
624
|
+
]), rn = f(() => er.value.length > 0 || Rt.value !== !1), an = f(() => zt.value ?? I.value.emptyMessage), on = f(() => Bt.value ?? !Nt.value), sn = f(() => Vt.value ?? xt.value), cn = f(() => sn.value ? `${sn.value}px` : null), ln = f(() => `${St.value}px`), H = ie(), un = f(() => !!H.pagination), dn = f(() => !!H.loading), fn = f(() => It.value || !!H.expansion), pn = f(() => !!H.body), mn = f(() => {
|
|
622
625
|
let e = /* @__PURE__ */ new Map();
|
|
623
|
-
for (let t of
|
|
626
|
+
for (let t of V.value) t.render && e.set(t.value, t.render);
|
|
624
627
|
return e;
|
|
625
|
-
}),
|
|
628
|
+
}), hn = f(() => {
|
|
626
629
|
let e = /* @__PURE__ */ new Map();
|
|
627
|
-
for (let t of
|
|
628
|
-
let n =
|
|
630
|
+
for (let t of V.value) {
|
|
631
|
+
let n = Ce(t.align);
|
|
629
632
|
n && e.set(t.value, n);
|
|
630
633
|
}
|
|
631
634
|
return e;
|
|
632
|
-
}),
|
|
633
|
-
|
|
634
|
-
let
|
|
635
|
-
function
|
|
636
|
-
|
|
637
|
-
let t =
|
|
638
|
-
|
|
635
|
+
}), gn = w(), _n = w();
|
|
636
|
+
te("dataTable", gn);
|
|
637
|
+
let vn = w(!1), yn = w(!1), bn = w(null), xn = f(() => j.currentRowKey ?? bn.value);
|
|
638
|
+
function Sn(e) {
|
|
639
|
+
vn.value = e.scrollLeft > 0;
|
|
640
|
+
let t = _n.value?.wrapRef;
|
|
641
|
+
yn.value = t ? t.scrollWidth - t.clientWidth - t.scrollLeft > 1 : !1;
|
|
639
642
|
}
|
|
640
|
-
let
|
|
641
|
-
let e =
|
|
643
|
+
let Cn = f(() => {
|
|
644
|
+
let e = dt.value ?? (Kt.value === null ? null : "multiple");
|
|
642
645
|
return e === "multiple" ? "checkbox" : e === "single" ? "radio" : null;
|
|
643
|
-
}),
|
|
644
|
-
"m-table__main--fixed-header":
|
|
645
|
-
"m-table__main--fixed-height": !!
|
|
646
|
-
"m-table__main--shadow":
|
|
647
|
-
"m-table__main--shadow-end":
|
|
648
|
-
"m-table__main--table-fixed":
|
|
649
|
-
"m-table__main--border-cell":
|
|
650
|
-
}]),
|
|
651
|
-
if (!
|
|
652
|
-
let e =
|
|
653
|
-
return e >= 0 ?
|
|
654
|
-
}), { currentPaginationNumber:
|
|
655
|
-
function
|
|
656
|
-
|
|
646
|
+
}), wn = f(() => Cn.value === "checkbox"), Tn = f(() => Cn.value === "radio"), En = f(() => ["m-table__main", {
|
|
647
|
+
"m-table__main--fixed-header": st.value,
|
|
648
|
+
"m-table__main--fixed-height": !!sn.value,
|
|
649
|
+
"m-table__main--shadow": vn.value,
|
|
650
|
+
"m-table__main--shadow-end": yn.value,
|
|
651
|
+
"m-table__main--table-fixed": rn.value,
|
|
652
|
+
"m-table__main--border-cell": Zt.value
|
|
653
|
+
}]), Dn = f(() => ({ minHeight: ln.value })), U = f(() => z.value !== null), { serverOptionsComputed: On, updateServerOptionsPage: kn, updateServerOptionsSort: An, updateServerOptionsRowsPerPage: jn } = be(z, R, F), { clientSortOptions: Mn, headerColumns: Nn, headersForRender: W, updateSortField: Pn, isMultiSorting: Fn, getMultiSortNumber: In } = ge(wt, tt, nt, at, ot, ct, V, fn, ut, Cn, U, pt, On, yt, qt, Jt, R, bt, An, F), Ln = f(() => bt.value === "emit" ? null : Mn.value), { rowsItemsComputed: Rn, rowsPerPageRef: G, updateRowsPerPage: zn } = ye(U, mt, z, ht), { totalItems: Bn, selectItemsComputed: Vn, totalItemsLength: K, toggleSelectAll: Hn, toggleSelectItem: Un } = Se(Ln, it, xe, U, Gt, Kt, gt, _t, vt, R, B, F), Wn = f(() => {
|
|
654
|
+
if (!ft.value) return null;
|
|
655
|
+
let e = Bn.value.findIndex((e) => N(e, ft.value, B.value));
|
|
656
|
+
return e >= 0 ? fe(ft.value, e, B.value) : null;
|
|
657
|
+
}), { currentPaginationNumber: q, maxPaginationNumber: J, isLastPage: Y, isFirstPage: Gn, nextPage: Kn, prevPage: X, updatePage: Z, updateCurrentPaginationNumber: qn } = ve(Yt, U, L, K, G, z, kn), { currentPageFirstIndex: Jn, currentPageLastIndex: Yn, multipleSelectStatus: Xn, pageItems: Q } = _e(q, wn, U, Gt, G, Vn, yt, Bn, K, B), Zn = f(() => q.value === 0 ? 0 : (q.value - 1) * G.value), { isRowExpanded: Qn, toggleExpandRow: $n } = pe(rt, B, Zn, F), { fixedHeaders: er, lastFixedColumn: tr, firstRightFixedColumn: nr, fixedColumnsInfos: rr } = he(W), { clickRow: ir } = ue($e, wn, yt, F);
|
|
658
|
+
function ar(e, t) {
|
|
659
|
+
Tt.value && t.preventDefault(), P("contextmenuRow", e, t);
|
|
657
660
|
}
|
|
658
|
-
function
|
|
659
|
-
let t =
|
|
660
|
-
if (n &&
|
|
661
|
+
function or(e) {
|
|
662
|
+
let t = V.value.find((t) => t.value === e.value), n = e.width ?? t?.width ?? (er.value.length ? 100 : null);
|
|
663
|
+
if (n && rn.value) return `width: ${n}px; min-width: ${n}px;`;
|
|
661
664
|
let r = t?.minWidth;
|
|
662
|
-
if (r &&
|
|
665
|
+
if (r && rn.value) return `min-width: ${r}px;`;
|
|
663
666
|
}
|
|
664
|
-
function
|
|
665
|
-
if (!
|
|
666
|
-
let n =
|
|
667
|
+
function sr(e, t = "th") {
|
|
668
|
+
if (!er.value.length) return;
|
|
669
|
+
let n = rr.value.find((t) => t.value === e);
|
|
667
670
|
if (n) return `${n.fixed === "right" ? "right" : "left"}: ${n.distance}px;z-index: ${t === "th" ? 3 : 1};position: sticky;`;
|
|
668
671
|
}
|
|
669
|
-
function
|
|
670
|
-
let n = typeof
|
|
672
|
+
function cr(e, t) {
|
|
673
|
+
let n = typeof Et.value == "string" ? Et.value : Et.value(e, t + 1);
|
|
671
674
|
return [{
|
|
672
675
|
"m-table__cell--selection": e.text === "checkbox" || e.value === "radio",
|
|
673
676
|
"m-table__header-cell--sortable": e.sortable,
|
|
674
677
|
"m-table__header-cell--ascending": e.sortable && e.sortType === "asc",
|
|
675
678
|
"m-table__header-cell--descending": e.sortable && e.sortType === "desc",
|
|
676
|
-
"m-table__header-cell--shadow": e.value ===
|
|
677
|
-
"m-table__header-cell--shadow-end": e.value ===
|
|
679
|
+
"m-table__header-cell--shadow": e.value === tr.value,
|
|
680
|
+
"m-table__header-cell--shadow-end": e.value === nr.value
|
|
678
681
|
}, n];
|
|
679
682
|
}
|
|
680
|
-
function
|
|
681
|
-
return ["m-table__header-inner", `m-table__header-inner--${
|
|
683
|
+
function lr() {
|
|
684
|
+
return ["m-table__header-inner", `m-table__header-inner--${lt.value}`];
|
|
682
685
|
}
|
|
683
|
-
function
|
|
686
|
+
function ur(e) {
|
|
684
687
|
if (e === "center") return "m-table__cell--center";
|
|
685
688
|
if (e === "right" || e === "end") return "m-table__cell--right";
|
|
686
689
|
}
|
|
687
|
-
function
|
|
688
|
-
return
|
|
690
|
+
function dr(e) {
|
|
691
|
+
return ur(hn.value.get(e) || et.value);
|
|
689
692
|
}
|
|
690
|
-
function
|
|
693
|
+
function fr(e, t) {
|
|
691
694
|
return {
|
|
692
695
|
row: t,
|
|
693
696
|
item: t,
|
|
694
697
|
column: e,
|
|
695
|
-
value:
|
|
698
|
+
value: M(e, t)
|
|
696
699
|
};
|
|
697
700
|
}
|
|
698
|
-
function
|
|
699
|
-
return j.showOverflowTooltip ? !0 : !!
|
|
701
|
+
function pr(e) {
|
|
702
|
+
return j.showOverflowTooltip ? !0 : !!V.value.find((t) => t.value === e)?.showOverflowTooltip;
|
|
700
703
|
}
|
|
701
|
-
function
|
|
704
|
+
function mr(e) {
|
|
702
705
|
if (e.sortable) return e.sortType === "asc" ? "ascending" : e.sortType === "desc" ? "descending" : "none";
|
|
703
706
|
}
|
|
704
|
-
function
|
|
705
|
-
e.sortable && e.sortType &&
|
|
707
|
+
function hr(e) {
|
|
708
|
+
e.sortable && e.sortType && Pn(e.value, e.sortType);
|
|
706
709
|
}
|
|
707
|
-
function
|
|
708
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(),
|
|
710
|
+
function gr(e, t) {
|
|
711
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), hr(e));
|
|
709
712
|
}
|
|
710
713
|
function $(e, t) {
|
|
711
|
-
return
|
|
714
|
+
return fe(e, Zn.value + t, B.value);
|
|
712
715
|
}
|
|
713
|
-
function
|
|
714
|
-
return
|
|
716
|
+
function _r(e, t) {
|
|
717
|
+
return wn.value ? !!e.checkbox : Tn.value ? Wn.value === $(e, t) : !1;
|
|
715
718
|
}
|
|
716
|
-
function
|
|
719
|
+
function vr(e) {
|
|
717
720
|
let t = { ...e };
|
|
718
|
-
delete t.index,
|
|
721
|
+
delete t.index, P("update:selectedItem", t), P("selectRow", t);
|
|
719
722
|
}
|
|
720
|
-
function
|
|
721
|
-
|
|
723
|
+
function yr(e) {
|
|
724
|
+
zn(e);
|
|
722
725
|
}
|
|
723
|
-
function
|
|
724
|
-
return !
|
|
726
|
+
function br(e, t) {
|
|
727
|
+
return !Qt.value || xn.value == null ? !1 : xn.value === $(e, t);
|
|
725
728
|
}
|
|
726
|
-
function
|
|
727
|
-
if (!
|
|
728
|
-
let n = $(e, t), r =
|
|
729
|
+
function xr(e, t) {
|
|
730
|
+
if (!Qt.value) return;
|
|
731
|
+
let n = $(e, t), r = xn.value;
|
|
729
732
|
if (r === n) return;
|
|
730
733
|
let i = r == null ? null : Q.value.find((e, t) => $(e, t) === r) ?? null;
|
|
731
|
-
|
|
734
|
+
bn.value = n, P("update:currentRowKey", n), P("current-change", e, i);
|
|
732
735
|
}
|
|
733
|
-
function
|
|
734
|
-
|
|
736
|
+
function Sr(e, t, n, r) {
|
|
737
|
+
ir(e, Zn.value + t, n, r), n === "single" && xr(e, t);
|
|
735
738
|
}
|
|
736
739
|
return k(() => j.currentRowKey, (e) => {
|
|
737
|
-
e != null && (
|
|
740
|
+
e != null && (bn.value = e);
|
|
738
741
|
}), k(L, (e, t) => {
|
|
739
|
-
|
|
740
|
-
}), k(
|
|
741
|
-
|
|
742
|
-
}), k([
|
|
743
|
-
|
|
742
|
+
On.value && e === !1 && t === !0 && qn(On.value.page);
|
|
743
|
+
}), k(G, (e) => {
|
|
744
|
+
U.value ? jn(e) : Z(1);
|
|
745
|
+
}), k([_t, it], () => {
|
|
746
|
+
U.value || Z(1);
|
|
744
747
|
}), k(() => j.filters, (e) => {
|
|
745
|
-
|
|
746
|
-
}, { deep: !0 }), k(Q, (e) =>
|
|
747
|
-
|
|
748
|
-
}),
|
|
749
|
-
currentPageFirstIndex:
|
|
750
|
-
currentPageLastIndex:
|
|
751
|
-
clientItemsLength:
|
|
752
|
-
maxPaginationNumber:
|
|
753
|
-
currentPaginationNumber:
|
|
754
|
-
isLastPage:
|
|
755
|
-
isFirstPage:
|
|
756
|
-
nextPage:
|
|
757
|
-
prevPage:
|
|
748
|
+
P("filter", e ?? null);
|
|
749
|
+
}, { deep: !0 }), k(Q, (e) => P("updatePageItems", e), { deep: !0 }), k(Bn, (e) => P("updateTotalItems", e), { deep: !0 }), k(q, (e) => {
|
|
750
|
+
P("update:page", e), P("page", e);
|
|
751
|
+
}), oe({
|
|
752
|
+
currentPageFirstIndex: Jn,
|
|
753
|
+
currentPageLastIndex: Yn,
|
|
754
|
+
clientItemsLength: K,
|
|
755
|
+
maxPaginationNumber: J,
|
|
756
|
+
currentPaginationNumber: q,
|
|
757
|
+
isLastPage: Y,
|
|
758
|
+
isFirstPage: Gn,
|
|
759
|
+
nextPage: Kn,
|
|
760
|
+
prevPage: X,
|
|
758
761
|
updatePage: Z,
|
|
759
|
-
rowsPerPageOptions:
|
|
760
|
-
rowsPerPageActiveOption:
|
|
761
|
-
updateRowsPerPageActiveOption:
|
|
762
|
-
setFilters:
|
|
763
|
-
}), (e,
|
|
762
|
+
rowsPerPageOptions: Rn,
|
|
763
|
+
rowsPerPageActiveOption: G,
|
|
764
|
+
updateRowsPerPageActiveOption: zn,
|
|
765
|
+
setFilters: we
|
|
766
|
+
}), (e, t) => (C(), h("div", b({
|
|
764
767
|
ref_key: "dataTable",
|
|
765
|
-
ref:
|
|
766
|
-
|
|
767
|
-
"
|
|
768
|
-
|
|
768
|
+
ref: gn
|
|
769
|
+
}, O(me), {
|
|
770
|
+
class: ["m-table", nn.value],
|
|
771
|
+
"aria-label": O(Ut) || void 0
|
|
772
|
+
}), [_(r, {
|
|
769
773
|
ref_key: "scrollbarRef",
|
|
770
|
-
ref:
|
|
774
|
+
ref: _n,
|
|
771
775
|
class: "m-table__scrollbar",
|
|
772
|
-
height:
|
|
773
|
-
"wrap-style":
|
|
774
|
-
"wrap-class":
|
|
776
|
+
height: cn.value || void 0,
|
|
777
|
+
"wrap-style": Dn.value,
|
|
778
|
+
"wrap-class": En.value,
|
|
775
779
|
noresize: "",
|
|
776
|
-
onScroll:
|
|
780
|
+
onScroll: Sn
|
|
777
781
|
}, {
|
|
778
|
-
default:
|
|
782
|
+
default: ae(() => [g("div", {
|
|
779
783
|
class: "m-table__surface",
|
|
780
784
|
"aria-busy": O(L) || void 0
|
|
781
785
|
}, [
|
|
782
|
-
|
|
783
|
-
|
|
786
|
+
g("table", { id: O(Qe) || void 0 }, [
|
|
787
|
+
g("colgroup", null, [(C(!0), h(d, null, T(O(W), (e, t) => (C(), h("col", {
|
|
784
788
|
key: t,
|
|
785
|
-
style:
|
|
789
|
+
style: ee(or(e))
|
|
786
790
|
}, null, 4))), 128))]),
|
|
787
|
-
O(
|
|
791
|
+
O(H)["customize-headers"] ? E(e.$slots, "customize-headers", {}, void 0, void 0, 0) : O(W).length && on.value ? (C(), h("thead", {
|
|
788
792
|
key: 1,
|
|
789
|
-
class:
|
|
790
|
-
}, [
|
|
791
|
-
key:
|
|
792
|
-
class:
|
|
793
|
-
style:
|
|
794
|
-
"aria-sort":
|
|
795
|
-
tabindex:
|
|
796
|
-
onClick: A((e) =>
|
|
797
|
-
onKeydown: (e) =>
|
|
798
|
-
}, [
|
|
799
|
-
key: O(
|
|
800
|
-
"model-value": O(
|
|
801
|
-
indeterminate: O(
|
|
793
|
+
class: x(["m-table__header", [O(jt)]])
|
|
794
|
+
}, [g("tr", null, [(C(!0), h(d, null, T(O(W), (n, r) => (C(), h("th", {
|
|
795
|
+
key: r,
|
|
796
|
+
class: x(cr(n, r)),
|
|
797
|
+
style: ee(sr(n.value)),
|
|
798
|
+
"aria-sort": mr(n),
|
|
799
|
+
tabindex: n.sortable ? 0 : void 0,
|
|
800
|
+
onClick: A((e) => hr(n), ["stop"]),
|
|
801
|
+
onKeydown: (e) => gr(n, e)
|
|
802
|
+
}, [n.text === "checkbox" ? (C(), h("div", Me, [(C(), p(i, {
|
|
803
|
+
key: O(Xn),
|
|
804
|
+
"model-value": O(Xn) === "allSelected",
|
|
805
|
+
indeterminate: O(Xn) === "partSelected",
|
|
802
806
|
"aria-label": O(I).selectAllPage,
|
|
803
|
-
"onUpdate:modelValue": O(
|
|
804
|
-
onClick:
|
|
807
|
+
"onUpdate:modelValue": O(Hn),
|
|
808
|
+
onClick: t[0] ||= A(() => {}, ["stop"])
|
|
805
809
|
}, null, 8, [
|
|
806
810
|
"model-value",
|
|
807
811
|
"indeterminate",
|
|
808
812
|
"aria-label",
|
|
809
813
|
"onUpdate:modelValue"
|
|
810
|
-
]))])) :
|
|
814
|
+
]))])) : n.value === "radio" ? (C(), h("div", Ne)) : (C(), h("span", {
|
|
811
815
|
key: 2,
|
|
812
|
-
class:
|
|
816
|
+
class: x(lr())
|
|
813
817
|
}, [
|
|
814
|
-
O(
|
|
818
|
+
O(H)[`header-${n.value}`] ? E(e.$slots, `header-${n.value}`, b({ ref_for: !0 }, n), void 0, void 0, 0) : O(H)[`header-${n.value.toLowerCase()}`] ? E(e.$slots, `header-${n.value.toLowerCase()}`, b({ ref_for: !0 }, n), void 0, void 0, 1) : O(H).header ? E(e.$slots, "header", b({ ref_for: !0 }, n), void 0, void 0, 2) : (C(), h("span", {
|
|
815
819
|
key: 3,
|
|
816
820
|
class: "m-table__header-text",
|
|
817
|
-
title:
|
|
818
|
-
}, D(
|
|
819
|
-
|
|
820
|
-
O(
|
|
821
|
-
], 2))], 46,
|
|
822
|
-
|
|
823
|
-
E(e.$slots, "body-prepend",
|
|
821
|
+
title: n.text
|
|
822
|
+
}, D(n.text), 9, Pe)),
|
|
823
|
+
n.sortable ? (C(), h("span", Fe, [...t[3] ||= [g("i", { class: "m-table__sort-caret m-table__sort-caret--ascending" }, null, -1), g("i", { class: "m-table__sort-caret m-table__sort-caret--descending" }, null, -1)]])) : m("", !0),
|
|
824
|
+
O(R) && O(Fn)(n.value) ? (C(), h("span", Ie, D(O(In)(n.value)), 1)) : m("", !0)
|
|
825
|
+
], 2))], 46, je))), 128))])], 2)) : m("", !0),
|
|
826
|
+
pn.value ? E(e.$slots, "body", S(y(O(Q))), void 0, void 0, 2) : O(Nn).length ? (C(), h("tbody", Le, [
|
|
827
|
+
E(e.$slots, "body-prepend", S(y({
|
|
824
828
|
items: O(Q),
|
|
825
829
|
pagination: {
|
|
826
|
-
isFirstPage: O(
|
|
827
|
-
isLastPage: O(
|
|
828
|
-
currentPaginationNumber: O(
|
|
829
|
-
maxPaginationNumber: O(
|
|
830
|
-
nextPage: O(
|
|
831
|
-
prevPage: O(
|
|
830
|
+
isFirstPage: O(Gn),
|
|
831
|
+
isLastPage: O(Y),
|
|
832
|
+
currentPaginationNumber: O(q),
|
|
833
|
+
maxPaginationNumber: O(J),
|
|
834
|
+
nextPage: O(Kn),
|
|
835
|
+
prevPage: O(X)
|
|
832
836
|
},
|
|
833
|
-
headers: O(
|
|
837
|
+
headers: O(W)
|
|
834
838
|
}))),
|
|
835
|
-
(C(!0),
|
|
836
|
-
class:
|
|
837
|
-
"m-table__row--striped":
|
|
838
|
-
"m-table__row--selected":
|
|
839
|
-
"m-table__row--current":
|
|
840
|
-
}, typeof O(
|
|
839
|
+
(C(!0), h(d, null, T(O(Q), (r, a) => (C(), h(d, { key: $(r, a) }, [g("tr", {
|
|
840
|
+
class: x([{
|
|
841
|
+
"m-table__row--striped": Xt.value && (a + 1) % 2 == 0,
|
|
842
|
+
"m-table__row--selected": _r(r, a),
|
|
843
|
+
"m-table__row--current": br(r, a)
|
|
844
|
+
}, typeof O(Dt) == "string" ? O(Dt) : O(Dt)(r, a + 1)]),
|
|
841
845
|
onClick: (e) => {
|
|
842
|
-
|
|
846
|
+
Sr(r, a, "single", e), O(Ft) && O($n)(r, a, e);
|
|
843
847
|
},
|
|
844
|
-
onDblclick: (e) =>
|
|
845
|
-
onContextmenu: (e) =>
|
|
846
|
-
}, [(C(!0),
|
|
848
|
+
onDblclick: (e) => Sr(r, a, "double", e),
|
|
849
|
+
onContextmenu: (e) => ar(r, e)
|
|
850
|
+
}, [(C(!0), h(d, null, T(O(Nn), (o, l) => (C(), h("td", {
|
|
847
851
|
key: l,
|
|
848
|
-
style:
|
|
849
|
-
class:
|
|
852
|
+
style: ee(sr(o, "td")),
|
|
853
|
+
class: x([
|
|
850
854
|
{
|
|
851
|
-
"m-table__cell--shadow":
|
|
852
|
-
"m-table__cell--shadow-end":
|
|
853
|
-
"m-table__cell--expand":
|
|
854
|
-
"m-table__cell--selection":
|
|
855
|
+
"m-table__cell--shadow": o === O(tr),
|
|
856
|
+
"m-table__cell--shadow-end": o === O(nr),
|
|
857
|
+
"m-table__cell--expand": o === "expand",
|
|
858
|
+
"m-table__cell--selection": o === "checkbox" || o === "radio"
|
|
855
859
|
},
|
|
856
|
-
|
|
857
|
-
typeof O(
|
|
860
|
+
dr(o),
|
|
861
|
+
typeof O(kt) == "string" ? O(kt) : O(kt)(o, a + 1)
|
|
858
862
|
]),
|
|
859
|
-
onClick: (e) =>
|
|
860
|
-
}, [
|
|
861
|
-
"m-table__cell-inner--expand":
|
|
862
|
-
"m-table__cell-inner--selection":
|
|
863
|
-
}]) }, [O(
|
|
863
|
+
onClick: (e) => o === "expand" ? O($n)(r, a, e) : null
|
|
864
|
+
}, [g("div", { class: x(["m-table__cell-inner", {
|
|
865
|
+
"m-table__cell-inner--expand": o === "expand",
|
|
866
|
+
"m-table__cell-inner--selection": o === "checkbox" || o === "radio"
|
|
867
|
+
}]) }, [O(H)[`cell-${o}`] ? E(e.$slots, `cell-${o}`, b({ ref_for: !0 }, fr(o, r)), void 0, void 0, 0) : O(H)[`cell-${o.toLowerCase()}`] ? E(e.$slots, `cell-${o.toLowerCase()}`, b({ ref_for: !0 }, fr(o, r)), void 0, void 0, 1) : o === "expand" ? (C(), h("button", {
|
|
864
868
|
key: 2,
|
|
865
869
|
type: "button",
|
|
866
|
-
class:
|
|
867
|
-
"aria-expanded": O(
|
|
870
|
+
class: x(["m-table__expand-btn", { "m-table__expand-btn--expanded": O(Qn)(r, a) }]),
|
|
871
|
+
"aria-expanded": O(Qn)(r, a),
|
|
868
872
|
"aria-label": O(I).expand,
|
|
869
|
-
onClick: A((e) => O(
|
|
870
|
-
}, [
|
|
873
|
+
onClick: A((e) => O($n)(r, a, e), ["stop"])
|
|
874
|
+
}, [_(n, { name: "chevron-right" })], 10, Be)) : o === "checkbox" ? (C(), p(i, {
|
|
871
875
|
key: 3,
|
|
872
|
-
"model-value": !!
|
|
873
|
-
"aria-label": O(I).selectRow.replace("{index}", String(O(
|
|
874
|
-
"onUpdate:modelValue": (e) => O(
|
|
875
|
-
onClick:
|
|
876
|
+
"model-value": !!r.checkbox,
|
|
877
|
+
"aria-label": O(I).selectRow.replace("{index}", String(O(Jn) + a)),
|
|
878
|
+
"onUpdate:modelValue": (e) => O(Un)(r),
|
|
879
|
+
onClick: t[1] ||= A(() => {}, ["stop"])
|
|
876
880
|
}, null, 8, [
|
|
877
881
|
"model-value",
|
|
878
882
|
"aria-label",
|
|
879
883
|
"onUpdate:modelValue"
|
|
880
|
-
])) :
|
|
884
|
+
])) : o === "radio" ? (C(), p(c, {
|
|
881
885
|
key: 4,
|
|
882
|
-
"model-value":
|
|
883
|
-
value: $(
|
|
884
|
-
"aria-label": O(I).selectRow.replace("{index}", String(O(
|
|
885
|
-
"onUpdate:modelValue": (e) =>
|
|
886
|
-
onClick:
|
|
886
|
+
"model-value": Wn.value ?? void 0,
|
|
887
|
+
value: $(r, a),
|
|
888
|
+
"aria-label": O(I).selectRow.replace("{index}", String(O(Jn) + a)),
|
|
889
|
+
"onUpdate:modelValue": (e) => vr(r),
|
|
890
|
+
onClick: t[2] ||= A(() => {}, ["stop"])
|
|
887
891
|
}, null, 8, [
|
|
888
892
|
"model-value",
|
|
889
893
|
"value",
|
|
890
894
|
"aria-label",
|
|
891
895
|
"onUpdate:modelValue"
|
|
892
|
-
])) : O(
|
|
893
|
-
column:
|
|
894
|
-
item:
|
|
895
|
-
row:
|
|
896
|
-
value: O(
|
|
897
|
-
}), void 0, void 0, 5) :
|
|
896
|
+
])) : O(H)["body-cell"] ? E(e.$slots, "body-cell", b({ ref_for: !0 }, {
|
|
897
|
+
column: o,
|
|
898
|
+
item: r,
|
|
899
|
+
row: r,
|
|
900
|
+
value: O(M)(o, r)
|
|
901
|
+
}), void 0, void 0, 5) : mn.value.get(o) ? (C(), h("span", Ve, D(mn.value.get(o)(r)), 1)) : (C(), p(s, {
|
|
898
902
|
key: 7,
|
|
899
|
-
content: O(
|
|
900
|
-
disabled: !
|
|
903
|
+
content: O(de)(o, r),
|
|
904
|
+
disabled: !pr(o)
|
|
901
905
|
}, {
|
|
902
|
-
default:
|
|
906
|
+
default: ae(() => [g("span", He, [g("span", Ue, D(O(de)(o, r)), 1)])]),
|
|
903
907
|
_: 2
|
|
904
|
-
}, 1032, ["content", "disabled"]))], 2)], 14,
|
|
908
|
+
}, 1032, ["content", "disabled"]))], 2)], 14, ze))), 128))], 42, Re), fn.value && O(Qn)(r, a) ? (C(), h("tr", {
|
|
905
909
|
key: 0,
|
|
906
|
-
class:
|
|
907
|
-
}, [
|
|
908
|
-
colspan: O(
|
|
910
|
+
class: x([{ "m-table__row--striped": Xt.value && (a + 1) % 2 == 0 }, typeof O(Ot) == "string" ? O(Ot) : O(Ot)(r, a + 1)])
|
|
911
|
+
}, [g("td", {
|
|
912
|
+
colspan: O(W).length,
|
|
909
913
|
class: "m-table__cell--expanded"
|
|
910
|
-
}, [
|
|
914
|
+
}, [r.expandLoading ? (C(), p(le, {
|
|
911
915
|
key: 0,
|
|
912
916
|
class: "expand-loading"
|
|
913
|
-
})) :
|
|
914
|
-
E(e.$slots, "body-append",
|
|
917
|
+
})) : m("", !0), E(e.$slots, "expansion", b({ ref_for: !0 }, { row: r }))], 8, We)], 2)) : m("", !0)], 64))), 128)),
|
|
918
|
+
E(e.$slots, "body-append", S(y({
|
|
915
919
|
items: O(Q),
|
|
916
920
|
pagination: {
|
|
917
|
-
isFirstPage: O(
|
|
918
|
-
isLastPage: O(
|
|
919
|
-
currentPaginationNumber: O(
|
|
920
|
-
maxPaginationNumber: O(
|
|
921
|
-
nextPage: O(
|
|
922
|
-
prevPage: O(
|
|
921
|
+
isFirstPage: O(Gn),
|
|
922
|
+
isLastPage: O(Y),
|
|
923
|
+
currentPaginationNumber: O(q),
|
|
924
|
+
maxPaginationNumber: O(J),
|
|
925
|
+
nextPage: O(Kn),
|
|
926
|
+
prevPage: O(X),
|
|
923
927
|
updatePage: O(Z)
|
|
924
928
|
},
|
|
925
|
-
headers: O(
|
|
929
|
+
headers: O(W)
|
|
926
930
|
})))
|
|
927
|
-
])) :
|
|
928
|
-
], 8,
|
|
929
|
-
O(L) ? (C(),
|
|
931
|
+
])) : m("", !0)
|
|
932
|
+
], 8, Ae),
|
|
933
|
+
O(L) ? (C(), h("div", Ge, [t[4] ||= g("div", { class: "m-table__loading-mask" }, null, -1), g("div", Ke, [dn.value ? E(e.$slots, "loading", {}, void 0, void 0, 0) : (C(), p(o, {
|
|
930
934
|
key: 1,
|
|
931
935
|
size: "sm"
|
|
932
|
-
}))])])) :
|
|
933
|
-
!O(Q).length && !O(L) ? (C(),
|
|
934
|
-
], 8,
|
|
936
|
+
}))])])) : m("", !0),
|
|
937
|
+
!O(Q).length && !O(L) ? (C(), h("div", qe, [O(H).empty ? E(e.$slots, "empty", {}, void 0, void 0, 0) : E(e.$slots, "empty", {}, () => [g("p", Je, D(an.value), 1), O(Lt) ? (C(), h("p", Ye, D(O(Lt)), 1)) : m("", !0)], void 0, 1)])) : m("", !0)
|
|
938
|
+
], 8, ke)]),
|
|
935
939
|
_: 3
|
|
936
940
|
}, 8, [
|
|
937
941
|
"height",
|
|
938
942
|
"wrap-style",
|
|
939
943
|
"wrap-class"
|
|
940
|
-
]), O(
|
|
941
|
-
isFirstPage: O(
|
|
942
|
-
isLastPage: O(
|
|
943
|
-
currentPaginationNumber: O(
|
|
944
|
-
maxPaginationNumber: O(
|
|
945
|
-
nextPage: O(
|
|
946
|
-
prevPage: O(
|
|
947
|
-
})), void 0, void 0, 0) : (C(),
|
|
944
|
+
]), O(Ht) ? (C(), h("div", Xe, [g("div", Ze, D(`${O(Jn)}–${O(Yn)}`) + " " + D(O(Ct)) + " " + D(O(K)), 1), un.value ? E(e.$slots, "pagination", S(y({
|
|
945
|
+
isFirstPage: O(Gn),
|
|
946
|
+
isLastPage: O(Y),
|
|
947
|
+
currentPaginationNumber: O(q),
|
|
948
|
+
maxPaginationNumber: O(J),
|
|
949
|
+
nextPage: O(Kn),
|
|
950
|
+
prevPage: O(X)
|
|
951
|
+
})), void 0, void 0, 0) : (C(), p(a, {
|
|
948
952
|
key: 1,
|
|
949
|
-
"model-value": O(
|
|
950
|
-
"total-records": O(
|
|
951
|
-
rows: O(
|
|
952
|
-
"page-sizes": O(
|
|
953
|
-
"show-size-picker": !O(
|
|
953
|
+
"model-value": O(q),
|
|
954
|
+
"total-records": O(K),
|
|
955
|
+
rows: O(G),
|
|
956
|
+
"page-sizes": O(Rn),
|
|
957
|
+
"show-size-picker": !O(Pt),
|
|
954
958
|
disabled: O(L),
|
|
955
959
|
"onUpdate:modelValue": O(Z),
|
|
956
|
-
"onUpdate:rows":
|
|
960
|
+
"onUpdate:rows": yr
|
|
957
961
|
}, null, 8, [
|
|
958
962
|
"model-value",
|
|
959
963
|
"total-records",
|
|
@@ -962,8 +966,8 @@ var Ee = ["aria-label"], De = ["aria-busy"], Oe = ["id"], ke = [
|
|
|
962
966
|
"show-size-picker",
|
|
963
967
|
"disabled",
|
|
964
968
|
"onUpdate:modelValue"
|
|
965
|
-
]))])) :
|
|
969
|
+
]))])) : m("", !0)], 16, Oe));
|
|
966
970
|
}
|
|
967
971
|
});
|
|
968
972
|
//#endregion
|
|
969
|
-
export {
|
|
973
|
+
export { Qe as MTable };
|