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