morya-ui 0.2.9 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/dist/{Button-DO5oukfg.js → Button-B5X_R4Md.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-B6IBrJ5S.js → Icon-lcN1rS87.js} +109 -105
- package/dist/{Pagination-CUwCtWhz.js → Pagination-CVrH8Ypi.js} +3 -3
- package/dist/Popover-BQ07q4VV.js +179 -0
- package/dist/ProgressSpinner-BeWVF6Jv.js +105 -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 +267 -17
- package/dist/auto-complete/index.js +185 -124
- package/dist/auto-complete/style.css +433 -56
- package/dist/auto-complete/style.js +2 -0
- package/dist/avatar/index.js +2 -2
- package/dist/avatar/style.css +229 -22
- package/dist/badge/index.js +25 -20
- package/dist/badge/style.css +249 -24
- package/dist/block-ui/index.js +26 -13
- package/dist/block-ui/style.css +224 -17
- package/dist/breadcrumb/index.js +2 -2
- package/dist/breadcrumb/style.css +224 -17
- package/dist/button/index.js +2 -2
- package/dist/button/style.css +225 -18
- package/dist/card/index.js +1 -1
- package/dist/card/style.css +224 -17
- package/dist/carousel/index.js +3 -3
- package/dist/carousel/style.css +225 -18
- package/dist/cascade-select/index.js +172 -143
- package/dist/cascade-select/style.css +448 -61
- package/dist/cascade-select/style.js +1 -0
- package/dist/checkbox/index.js +2 -2
- package/dist/checkbox/style.css +224 -17
- package/dist/chip/index.js +2 -2
- package/dist/chip/style.css +232 -19
- package/dist/command-menu/index.js +58 -45
- package/dist/command-menu/style.css +230 -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/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/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 +2 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +4 -0
- 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/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 +26 -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 +10 -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 +4 -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.map +1 -1
- package/dist/components/Scrollbar/styles.css +3 -3
- package/dist/components/Select/Select.vue.d.ts +10 -3
- 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 +13 -91
- package/dist/components/Select/types.d.ts +8 -0
- 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/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/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/hooks/useTotalItems.d.ts.map +1 -1
- package/dist/components/Table/styles.css +8 -8
- 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 +243 -19
- package/dist/confirm-dialog/index.js +87 -74
- package/dist/confirm-dialog/style.css +415 -22
- package/dist/confirm-popup/index.js +82 -68
- package/dist/confirm-popup/style.css +225 -18
- package/dist/context-menu/index.js +112 -99
- package/dist/context-menu/style.css +230 -21
- package/dist/data-view/index.js +4 -4
- package/dist/data-view/style.css +227 -20
- package/dist/date-picker/index.js +166 -152
- package/dist/date-picker/style.css +225 -18
- package/dist/dialog/index.js +76 -63
- package/dist/dialog/style.css +415 -22
- package/dist/divider/style.css +224 -17
- package/dist/dock/index.js +3 -3
- package/dist/dock/style.css +225 -18
- package/dist/drawer/index.js +72 -61
- package/dist/drawer/style.css +414 -22
- package/dist/dropdown/index.js +145 -131
- package/dist/dropdown/style.css +232 -21
- package/dist/empty/index.js +3 -3
- package/dist/empty/style.css +231 -24
- package/dist/fieldset/index.js +19 -19
- package/dist/fieldset/style.css +242 -24
- package/dist/file-upload/index.js +3 -3
- package/dist/file-upload/style.css +225 -18
- package/dist/flex/index.js +2 -2
- package/dist/flex/style.css +224 -17
- package/dist/float-label/index.js +1 -1
- package/dist/float-label/style.css +243 -24
- package/dist/fluid/index.js +1 -1
- package/dist/fluid/style.css +224 -17
- package/dist/form/index.js +2 -2
- package/dist/form/style.css +245 -17
- package/dist/gallery/index.js +4 -4
- package/dist/gallery/style.css +228 -21
- package/dist/grid/index.js +1 -1
- package/dist/grid/style.css +224 -17
- package/dist/icon/index.js +1 -1
- package/dist/icon/style.css +225 -18
- package/dist/{icon-iOBeyIRp.js → icon-DWXkh-RM.js} +1 -1
- package/dist/icon-field/index.js +2 -2
- package/dist/icon-field/style.css +243 -19
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5283 -4578
- package/dist/inplace/index.js +1 -1
- package/dist/inplace/style.css +224 -17
- package/dist/input/index.js +4 -4
- package/dist/input/style.css +244 -20
- package/dist/input-color/index.js +3 -3
- package/dist/input-color/style.css +224 -17
- package/dist/input-group/index.js +1 -1
- package/dist/input-group/style.css +224 -17
- package/dist/input-number/index.js +4 -4
- package/dist/input-number/style.css +225 -18
- package/dist/input-otp/index.js +3 -3
- package/dist/input-otp/style.css +224 -17
- package/dist/input-password/index.js +4 -4
- package/dist/input-password/style.css +225 -18
- package/dist/input-tags/index.js +4 -4
- package/dist/input-tags/style.css +228 -19
- package/dist/knob/index.js +1 -1
- package/dist/knob/style.css +224 -17
- package/dist/label/index.js +1 -1
- package/dist/label/style.css +224 -17
- package/dist/layout/index.js +7 -7
- package/dist/layout/style.css +254 -37
- package/dist/listbox/index.js +142 -87
- package/dist/listbox/style.css +265 -20
- package/dist/listbox/style.js +1 -0
- package/dist/loading/index.js +195 -156
- package/dist/loading/style.css +249 -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 +226 -18
- package/dist/menu/index.js +278 -261
- package/dist/menu/style.css +238 -30
- package/dist/menubar/index.js +145 -133
- package/dist/menubar/style.css +232 -21
- package/dist/message/index.js +120 -107
- package/dist/message/style.css +225 -18
- package/dist/meter-group/index.js +1 -1
- package/dist/meter-group/style.css +226 -19
- package/dist/order-list/index.js +4 -4
- package/dist/order-list/style.css +225 -18
- package/dist/page/index.js +3 -3
- package/dist/page/style.css +225 -18
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +225 -18
- package/dist/panel/index.js +31 -31
- package/dist/panel/style.css +246 -24
- package/dist/pick-list/index.js +4 -4
- package/dist/pick-list/style.css +225 -18
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +224 -17
- package/dist/progress-bar/index.js +5 -2
- package/dist/progress-bar/style.css +254 -25
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +227 -20
- package/dist/radio/index.js +2 -2
- package/dist/radio/style.css +224 -17
- package/dist/rating/index.js +4 -4
- package/dist/rating/style.css +225 -18
- package/dist/result/index.js +3 -3
- package/dist/result/style.css +242 -35
- package/dist/scroll-top/index.js +4 -4
- package/dist/scroll-top/style.css +228 -21
- package/dist/scrollbar/index.js +1 -1
- package/dist/scrollbar/style.css +227 -20
- package/dist/select/index.js +247 -152
- package/dist/select/style.css +450 -114
- package/dist/select/style.js +2 -0
- package/dist/select-button/index.js +2 -2
- package/dist/select-button/style.css +224 -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/styles/control-suffix.css +13 -2
- package/dist/shared/styles/select-overlay.css +167 -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 +233 -28
- package/dist/skeleton/index.js +34 -19
- package/dist/skeleton/style.css +224 -17
- package/dist/slider/index.js +3 -3
- package/dist/slider/style.css +224 -17
- package/dist/space/index.js +2 -2
- package/dist/space/style.css +224 -17
- package/dist/speed-dial/index.js +112 -98
- package/dist/speed-dial/style.css +225 -18
- package/dist/split-button/index.js +106 -92
- package/dist/split-button/style.css +225 -18
- package/dist/splitter/index.js +94 -80
- package/dist/splitter/style.css +236 -17
- package/dist/status/index.js +30 -26
- package/dist/status/style.css +243 -34
- package/dist/stepper/index.js +2 -2
- package/dist/stepper/style.css +225 -18
- package/dist/styles/base.css +128 -5
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +2 -2
- package/dist/switch/style.css +224 -17
- package/dist/table/index.js +11 -15
- package/dist/table/style.css +239 -32
- package/dist/tabs/index.js +4 -4
- package/dist/tabs/style.css +228 -21
- package/dist/tag/index.js +3 -3
- package/dist/tag/style.css +229 -20
- package/dist/terminal/index.js +3 -3
- package/dist/terminal/style.css +224 -17
- package/dist/textarea/index.js +4 -4
- package/dist/textarea/style.css +225 -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 +230 -21
- package/dist/timeline/index.js +3 -3
- package/dist/timeline/style.css +228 -21
- package/dist/toast/index.js +49 -36
- package/dist/toast/style.css +225 -18
- package/dist/toggle-button/index.js +3 -3
- package/dist/toggle-button/style.css +225 -18
- package/dist/toolbar/index.js +1 -1
- package/dist/toolbar/style.css +225 -17
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style.css +224 -17
- package/dist/tree/index.js +5 -8
- package/dist/tree/style.css +226 -19
- package/dist/tree-select/index.js +227 -203
- package/dist/tree-select/style.css +415 -81
- package/dist/tree-select/style.js +1 -0
- package/dist/tree-table/index.js +4 -4
- package/dist/tree-table/style.css +226 -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 +227 -20
- package/package.json +2 -1
- package/dist/FlyoutSubmenu-B_bkgKag.js +0 -49
- package/dist/Popover-Dq_p0vib.js +0 -166
- package/dist/ProgressSpinner-DuBpPkna.js +0 -90
- package/dist/Tooltip-CU1xFt_N.js +0 -93
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
|
+
import { i as t } from "./types-DGuu4Eg4.js";
|
|
3
|
+
import { t as n } from "./usePauseOffscreen-BIikV_gj.js";
|
|
4
|
+
import { n as r } from "./locale-Bzm2nbEp.js";
|
|
5
|
+
import { computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, openBlock as p, ref as m, renderSlot as h, toDisplayString as g, unref as _, useAttrs as v, useSlots as y, watch as b } from "vue";
|
|
6
|
+
//#region src/components/ProgressSpinner/ProgressSpinner.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var x = ["aria-busy"], S = ["inert"], C = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "m-progress-spinner-wrap__overlay"
|
|
10
|
+
}, w = ["aria-label"], T = ["stroke-width"], E = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "m-progress-spinner__description"
|
|
13
|
+
}, D = ["aria-label"], O = ["stroke-width"], k = /* @__PURE__ */ c({
|
|
14
|
+
inheritAttrs: !1,
|
|
15
|
+
__name: "ProgressSpinner",
|
|
16
|
+
props: {
|
|
17
|
+
pt: {},
|
|
18
|
+
strokeWidth: { default: "2" },
|
|
19
|
+
animationDuration: { default: "1s" },
|
|
20
|
+
ariaLabel: {},
|
|
21
|
+
show: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !0
|
|
24
|
+
},
|
|
25
|
+
delay: { default: 0 },
|
|
26
|
+
size: {},
|
|
27
|
+
description: {}
|
|
28
|
+
},
|
|
29
|
+
setup(c) {
|
|
30
|
+
let k = c, A = v(), { rootAttrs: j } = e(A, () => k.pt), M = y(), N = r(), P = i(() => k.ariaLabel ?? N.value.loading), F = i(() => !!M.default), I = i(() => t(k.size)), L = m(k.show && k.delay <= 0), R = m(null), { pauseAttrs: z } = n(R, () => L.value), B = null;
|
|
31
|
+
function V() {
|
|
32
|
+
B !== null && (clearTimeout(B), B = null);
|
|
33
|
+
}
|
|
34
|
+
b(() => [
|
|
35
|
+
k.show,
|
|
36
|
+
k.delay,
|
|
37
|
+
F.value
|
|
38
|
+
], ([e, t]) => {
|
|
39
|
+
if (V(), !e) {
|
|
40
|
+
L.value = !1;
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (!t) {
|
|
44
|
+
L.value = !0;
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
L.value = !1, B = setTimeout(() => {
|
|
48
|
+
L.value = !0, B = null;
|
|
49
|
+
}, t);
|
|
50
|
+
}, { immediate: !0 }), f(V);
|
|
51
|
+
let H = i(() => ({ animationDuration: k.animationDuration })), U = i(() => ({
|
|
52
|
+
"m-progress-spinner--small": I.value === "small",
|
|
53
|
+
"m-progress-spinner--large": I.value === "large"
|
|
54
|
+
}));
|
|
55
|
+
return (e, t) => F.value ? (p(), o("div", l({
|
|
56
|
+
key: 0,
|
|
57
|
+
ref_key: "rootRef",
|
|
58
|
+
ref: R
|
|
59
|
+
}, {
|
|
60
|
+
..._(j),
|
|
61
|
+
..._(z)
|
|
62
|
+
}, {
|
|
63
|
+
class: ["m-progress-spinner-wrap", { "m-progress-spinner-wrap--active": L.value }],
|
|
64
|
+
"aria-busy": L.value || void 0
|
|
65
|
+
}), [s("div", {
|
|
66
|
+
class: "m-progress-spinner-wrap__content",
|
|
67
|
+
inert: L.value || void 0
|
|
68
|
+
}, [h(e.$slots, "default")], 8, S), L.value ? (p(), o("div", C, [(p(), o("svg", {
|
|
69
|
+
class: u(["m-progress-spinner", U.value]),
|
|
70
|
+
viewBox: "0 0 50 50",
|
|
71
|
+
role: "status",
|
|
72
|
+
"aria-label": P.value,
|
|
73
|
+
style: d(H.value)
|
|
74
|
+
}, [s("circle", {
|
|
75
|
+
class: "m-progress-spinner__circle",
|
|
76
|
+
cx: "25",
|
|
77
|
+
cy: "25",
|
|
78
|
+
r: "20",
|
|
79
|
+
fill: "none",
|
|
80
|
+
"stroke-width": c.strokeWidth
|
|
81
|
+
}, null, 8, T)], 14, w)), c.description ? (p(), o("p", E, g(c.description), 1)) : a("", !0)])) : a("", !0)], 16, x)) : (p(), o("svg", l({
|
|
82
|
+
key: 1,
|
|
83
|
+
ref_key: "rootRef",
|
|
84
|
+
ref: R
|
|
85
|
+
}, {
|
|
86
|
+
..._(j),
|
|
87
|
+
..._(z)
|
|
88
|
+
}, {
|
|
89
|
+
class: ["m-progress-spinner", U.value],
|
|
90
|
+
viewBox: "0 0 50 50",
|
|
91
|
+
role: "status",
|
|
92
|
+
"aria-label": P.value,
|
|
93
|
+
style: H.value
|
|
94
|
+
}), [s("circle", {
|
|
95
|
+
class: "m-progress-spinner__circle",
|
|
96
|
+
cx: "25",
|
|
97
|
+
cy: "25",
|
|
98
|
+
r: "20",
|
|
99
|
+
fill: "none",
|
|
100
|
+
"stroke-width": c.strokeWidth
|
|
101
|
+
}, null, 8, O)], 16, D));
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
//#endregion
|
|
105
|
+
export { k as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { t } from "./useMId-BXFYayPP.js";
|
|
3
|
-
import { o as n } from "./config-
|
|
3
|
+
import { o as n } from "./config-CapALqt3.js";
|
|
4
4
|
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, inject as l, mergeProps as u, openBlock as d, renderSlot as f, toDisplayString as p, unref as m, useAttrs as h } from "vue";
|
|
5
5
|
//#region src/components/Radio/types.ts
|
|
6
6
|
var g = Symbol("muRadioGroup"), _ = ["for"], v = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Scrollbar-
|
|
1
|
+
import { t as e } from "./Scrollbar-DTeJ8P5b.js";
|
|
2
2
|
import { createBlock as t, defineComponent as n, normalizeClass as r, openBlock as i, ref as a, renderSlot as o, withCtx as s } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/shared/ScrollBody.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { t } from "./useMId-BXFYayPP.js";
|
|
3
3
|
import { Fragment as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, inject as ee, mergeProps as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onActivated as h, onBeforeUnmount as te, onMounted as g, onUpdated as _, openBlock as v, provide as y, reactive as b, ref as x, renderSlot as S, resolveDynamicComponent as C, unref as w, useAttrs as ne, vShow as T, watch as E, withCtx as re, withDirectives as D } from "vue";
|
|
4
4
|
//#region src/components/Scrollbar/constants.ts
|
|
@@ -337,7 +337,7 @@ var M = ["aria-orientation", "aria-controls"], N = /* @__PURE__ */ u({
|
|
|
337
337
|
Z(), we();
|
|
338
338
|
});
|
|
339
339
|
}), _(() => {
|
|
340
|
-
T.native || Q();
|
|
340
|
+
T.native || (T.noresize || typeof ResizeObserver > "u") && Q();
|
|
341
341
|
}), h(() => {
|
|
342
342
|
F.value && (F.value.scrollTop = W, F.value.scrollLeft = G);
|
|
343
343
|
}), te(() => {
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { t as e } from "./useMotionTransition-Bxnnb_9u.js";
|
|
2
|
+
import { n as t, t as n } from "./overlay-oR-5MDuE.js";
|
|
3
|
+
import { n as r, t as i } from "./overlayPlacement-Cd20JTD_.js";
|
|
4
|
+
import { t as a } from "./useFloatingViewportSync-DZdJ7W8n.js";
|
|
5
|
+
import { t as o } from "./useMId-BXFYayPP.js";
|
|
6
|
+
import { c as s } from "./config-CapALqt3.js";
|
|
7
|
+
import { Teleport as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createVNode as m, defineComponent as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, openBlock as b, ref as x, renderSlot as S, toDisplayString as C, unref as w, withCtx as T } from "vue";
|
|
8
|
+
//#region src/components/Tooltip/Tooltip.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var E = ["aria-describedby"], D = ["id"], O = /* @__PURE__ */ h({
|
|
10
|
+
__name: "Tooltip",
|
|
11
|
+
props: {
|
|
12
|
+
content: {},
|
|
13
|
+
placement: { default: "top" },
|
|
14
|
+
disabled: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
showDelay: { default: 0 },
|
|
19
|
+
hideDelay: { default: 0 },
|
|
20
|
+
maxWidth: {},
|
|
21
|
+
teleport: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !0
|
|
24
|
+
},
|
|
25
|
+
appendTo: {},
|
|
26
|
+
transition: {
|
|
27
|
+
type: [String, Boolean],
|
|
28
|
+
default: void 0
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
setup(h) {
|
|
32
|
+
let O = h, k = s(), { transitionName: A, transitionCss: j } = e({
|
|
33
|
+
role: "tooltip",
|
|
34
|
+
local: () => O.transition,
|
|
35
|
+
componentName: "Tooltip",
|
|
36
|
+
fallback: "fade"
|
|
37
|
+
}), M = x(null), N = o(), P = x(!1), F = x({}), I = u(() => t(O, k.value.appendTo)), L = u(() => n(O, k.value.appendTo)), R = null, z = null;
|
|
38
|
+
function B() {
|
|
39
|
+
R !== null && (clearTimeout(R), R = null), z !== null && (clearTimeout(z), z = null);
|
|
40
|
+
}
|
|
41
|
+
function V() {
|
|
42
|
+
!L.value || !M.value || (F.value = i(M.value.getBoundingClientRect(), O.placement, { maxWidth: r(O.maxWidth) }));
|
|
43
|
+
}
|
|
44
|
+
function H() {
|
|
45
|
+
P.value = !0, g(V);
|
|
46
|
+
}
|
|
47
|
+
function U() {
|
|
48
|
+
if (!O.disabled) {
|
|
49
|
+
if (B(), O.showDelay > 0) {
|
|
50
|
+
R = setTimeout(() => {
|
|
51
|
+
H(), R = null;
|
|
52
|
+
}, O.showDelay);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
H();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function W() {
|
|
59
|
+
if (B(), O.hideDelay > 0) {
|
|
60
|
+
z = setTimeout(() => {
|
|
61
|
+
P.value = !1, z = null;
|
|
62
|
+
}, O.hideDelay);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
P.value = !1;
|
|
66
|
+
}
|
|
67
|
+
function G() {
|
|
68
|
+
P.value && V();
|
|
69
|
+
}
|
|
70
|
+
a(() => P.value && L.value, G), y(() => {
|
|
71
|
+
B();
|
|
72
|
+
});
|
|
73
|
+
let K = u(() => {
|
|
74
|
+
let e = r(O.maxWidth);
|
|
75
|
+
return L.value ? F.value : e ? { maxWidth: e } : void 0;
|
|
76
|
+
});
|
|
77
|
+
return (e, t) => (b(), p("span", {
|
|
78
|
+
ref_key: "root",
|
|
79
|
+
ref: M,
|
|
80
|
+
class: "m-tooltip",
|
|
81
|
+
"aria-describedby": P.value ? w(N) : void 0,
|
|
82
|
+
onMouseenter: U,
|
|
83
|
+
onMouseleave: W,
|
|
84
|
+
onFocusin: U,
|
|
85
|
+
onFocusout: W
|
|
86
|
+
}, [S(e.$slots, "default"), (b(), d(c, {
|
|
87
|
+
to: I.value.to,
|
|
88
|
+
disabled: I.value.disabled
|
|
89
|
+
}, [m(l, {
|
|
90
|
+
name: w(A),
|
|
91
|
+
css: w(j)
|
|
92
|
+
}, {
|
|
93
|
+
default: T(() => [P.value ? (b(), p("span", {
|
|
94
|
+
key: 0,
|
|
95
|
+
id: w(N),
|
|
96
|
+
class: _(["m-tooltip__content", [`m-tooltip__content--${h.placement}`, { "m-tooltip__content--teleported": L.value }]]),
|
|
97
|
+
style: v(K.value),
|
|
98
|
+
role: "tooltip"
|
|
99
|
+
}, C(h.content), 15, D)) : f("", !0)]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["name", "css"])], 8, ["to", "disabled"]))], 40, E));
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
//#endregion
|
|
105
|
+
export { O as t };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
|
+
import { t } from "./ScrollBody-5hUnHj_M.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, mergeProps as l, normalizeStyle as u, openBlock as d, ref as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useAttrs as _, withCtx as v } from "vue";
|
|
4
|
+
//#region src/components/VirtualScroller/VirtualScroller.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var y = ["data-index"], b = /* @__PURE__ */ c({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "VirtualScroller",
|
|
8
|
+
props: {
|
|
9
|
+
pt: {},
|
|
10
|
+
items: {},
|
|
11
|
+
itemSize: {},
|
|
12
|
+
height: { default: 240 },
|
|
13
|
+
buffer: { default: 3 },
|
|
14
|
+
role: {},
|
|
15
|
+
ariaLabel: {}
|
|
16
|
+
},
|
|
17
|
+
setup(c, { expose: b }) {
|
|
18
|
+
let x = c, S = _(), { rootAttrs: C } = e(S, () => x.pt), w = f(null), T = f(0), E = r(() => {
|
|
19
|
+
if (typeof x.height == "number") return x.height;
|
|
20
|
+
let e = Number.parseFloat(x.height);
|
|
21
|
+
return Number.isFinite(e) ? e : 240;
|
|
22
|
+
}), D = r(() => x.items.length * x.itemSize), O = r(() => Math.max(0, Math.floor(T.value / x.itemSize) - x.buffer)), k = r(() => {
|
|
23
|
+
let e = Math.ceil(E.value / x.itemSize) + x.buffer * 2;
|
|
24
|
+
return Math.min(x.items.length, O.value + e);
|
|
25
|
+
}), A = r(() => x.items.slice(O.value, k.value).map((e, t) => ({
|
|
26
|
+
item: e,
|
|
27
|
+
index: O.value + t
|
|
28
|
+
}))), j = r(() => O.value * x.itemSize), M = r(() => ({ height: typeof x.height == "number" ? `${x.height}px` : x.height }));
|
|
29
|
+
function N(e) {
|
|
30
|
+
T.value = e.scrollTop;
|
|
31
|
+
}
|
|
32
|
+
function P(e) {
|
|
33
|
+
if (e < 0 || e >= x.items.length) return;
|
|
34
|
+
let t = x.itemSize, n = E.value, r = e * t, i = r + t, a = T.value, o = a;
|
|
35
|
+
if (r < a) o = r;
|
|
36
|
+
else if (i > a + n) o = i - n;
|
|
37
|
+
else return;
|
|
38
|
+
o = Math.max(0, Math.min(o, Math.max(0, D.value - n))), T.value = o, w.value?.setScrollTop(o);
|
|
39
|
+
}
|
|
40
|
+
return b({ scrollToIndex: P }), (e, r) => (d(), i(t, l({
|
|
41
|
+
ref_key: "scrollBody",
|
|
42
|
+
ref: w
|
|
43
|
+
}, g(C), {
|
|
44
|
+
"root-class": "m-virtualscroller m-virtualscroller__scrollbar",
|
|
45
|
+
"wrap-class": "m-virtualscroller__scroll",
|
|
46
|
+
"wrap-style": M.value,
|
|
47
|
+
role: c.role,
|
|
48
|
+
"aria-label": c.ariaLabel,
|
|
49
|
+
onScroll: N
|
|
50
|
+
}), {
|
|
51
|
+
default: v(() => [o("div", {
|
|
52
|
+
class: "m-virtualscroller__spacer",
|
|
53
|
+
style: u({ height: `${D.value}px` })
|
|
54
|
+
}, [o("div", {
|
|
55
|
+
class: "m-virtualscroller__content",
|
|
56
|
+
style: u({ transform: `translateY(${j.value}px)` })
|
|
57
|
+
}, [(d(!0), a(n, null, p(A.value, (t) => (d(), a("div", {
|
|
58
|
+
key: t.index,
|
|
59
|
+
class: "m-virtualscroller__item",
|
|
60
|
+
style: u({ height: `${c.itemSize}px` }),
|
|
61
|
+
"data-index": t.index
|
|
62
|
+
}, [m(e.$slots, "item", {
|
|
63
|
+
item: t.item,
|
|
64
|
+
index: t.index
|
|
65
|
+
}, () => [s(h(t.item), 1)])], 12, y))), 128))], 4)], 4)]),
|
|
66
|
+
_: 3
|
|
67
|
+
}, 16, [
|
|
68
|
+
"wrap-style",
|
|
69
|
+
"role",
|
|
70
|
+
"aria-label"
|
|
71
|
+
]));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { b as t };
|
package/dist/accordion/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { t } from "../useControllable-elmWaz23.js";
|
|
3
3
|
import "./style.js";
|
|
4
|
-
import { Fragment as n,
|
|
4
|
+
import { Fragment as n, Transition as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useAttrs as _, vShow as v, withCtx as y, withDirectives as b, withModifiers as x } from "vue";
|
|
5
5
|
//#region src/components/Accordion/Accordion.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var S = [
|
|
7
7
|
"id",
|
|
8
8
|
"aria-expanded",
|
|
9
9
|
"aria-controls",
|
|
10
10
|
"disabled",
|
|
11
11
|
"onClick"
|
|
12
|
-
],
|
|
12
|
+
], C = { class: "m-accordion__header-text" }, w = ["id", "aria-labelledby"], T = { class: "m-accordion__content" }, E = /* @__PURE__ */ l({
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
__name: "Accordion",
|
|
15
15
|
props: {
|
|
@@ -23,59 +23,62 @@ var y = [
|
|
|
23
23
|
tabs: {}
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:modelValue"],
|
|
26
|
-
setup(
|
|
27
|
-
let
|
|
28
|
-
function
|
|
29
|
-
return
|
|
26
|
+
setup(l, { emit: E }) {
|
|
27
|
+
let D = l, O = E, k = _(), { rootAttrs: A } = e(k, () => D.pt);
|
|
28
|
+
function j() {
|
|
29
|
+
return D.defaultValue === void 0 ? D.multiple ? [] : "" : D.defaultValue;
|
|
30
30
|
}
|
|
31
|
-
let { value:
|
|
32
|
-
controlled: () =>
|
|
33
|
-
defaultValue:
|
|
34
|
-
}, (e) =>
|
|
35
|
-
let e =
|
|
36
|
-
return
|
|
31
|
+
let { value: M, setValue: N } = t({
|
|
32
|
+
controlled: () => D.modelValue,
|
|
33
|
+
defaultValue: j()
|
|
34
|
+
}, (e) => O("update:modelValue", e)), P = i(() => {
|
|
35
|
+
let e = M.value;
|
|
36
|
+
return D.multiple ? Array.isArray(e) ? e : e ? [e] : [] : Array.isArray(e) ? e[0] ? [e[0]] : [] : e ? [e] : [];
|
|
37
37
|
});
|
|
38
|
-
function
|
|
39
|
-
return
|
|
38
|
+
function F(e) {
|
|
39
|
+
return P.value.includes(e);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function I(e) {
|
|
42
42
|
return `m-accordion-panel-${e}`;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function L(e) {
|
|
45
45
|
return `m-accordion-header-${e}`;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function R(e, t) {
|
|
48
48
|
if (!t) {
|
|
49
|
-
if (
|
|
50
|
-
let t = [...
|
|
51
|
-
n >= 0 ? t.splice(n, 1) : t.push(e),
|
|
49
|
+
if (D.multiple) {
|
|
50
|
+
let t = [...P.value], n = t.indexOf(e);
|
|
51
|
+
n >= 0 ? t.splice(n, 1) : t.push(e), N(t);
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
N(F(e) ? "" : e);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
return (e, t) => (
|
|
57
|
+
return (e, t) => (f(), o("div", u(g(A), { class: "m-accordion" }), [(f(!0), o(n, null, p(l.tabs, (n) => (f(), o("div", {
|
|
58
58
|
key: n.value,
|
|
59
59
|
class: "m-accordion__tab"
|
|
60
|
-
}, [
|
|
61
|
-
id:
|
|
60
|
+
}, [s("button", {
|
|
61
|
+
id: L(n.value),
|
|
62
62
|
type: "button",
|
|
63
|
-
class:
|
|
64
|
-
"aria-expanded":
|
|
65
|
-
"aria-controls":
|
|
63
|
+
class: d(["m-accordion__header", { "m-accordion__header--active": F(n.value) }]),
|
|
64
|
+
"aria-expanded": F(n.value),
|
|
65
|
+
"aria-controls": I(n.value),
|
|
66
66
|
disabled: n.disabled,
|
|
67
|
-
onClick: (e) =>
|
|
68
|
-
}, [
|
|
67
|
+
onClick: (e) => R(n.value, n.disabled)
|
|
68
|
+
}, [s("span", C, h(n.header), 1), e.$slots.extra ? (f(), o("span", {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "m-accordion__header-extra",
|
|
71
|
-
onClick: t[0] ||=
|
|
72
|
-
}, [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
onClick: t[0] ||= x(() => {}, ["stop"])
|
|
72
|
+
}, [m(e.$slots, "extra", { tab: n })])) : a("", !0)], 10, S), c(r, { name: "m-accordion-collapse" }, {
|
|
73
|
+
default: y(() => [b(s("div", {
|
|
74
|
+
id: I(n.value),
|
|
75
|
+
class: "m-accordion__collapse",
|
|
76
|
+
role: "region",
|
|
77
|
+
"aria-labelledby": L(n.value)
|
|
78
|
+
}, [s("div", T, [m(e.$slots, n.value)])], 8, w), [[v, F(n.value)]])]),
|
|
79
|
+
_: 2
|
|
80
|
+
}, 1024)]))), 128))], 16));
|
|
78
81
|
}
|
|
79
82
|
});
|
|
80
83
|
//#endregion
|
|
81
|
-
export {
|
|
84
|
+
export { E as MAccordion };
|