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