@m3ui-vue/m3ui-vue 1.5.1 → 1.6.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/dist/API.md +981 -63
- package/dist/{MButton-D_uxtJa-.js → MButton-OQ4wIERQ.js} +8 -9
- package/dist/MButton-OQ4wIERQ.js.map +1 -0
- package/dist/{MDialog-DT4KAPmn.js → MDialog-DYMnaBlt.js} +38 -44
- package/dist/MDialog-DYMnaBlt.js.map +1 -0
- package/dist/{MIcon-Bxh9j135.js → MIcon-DpajuUTJ.js} +2 -3
- package/dist/MIcon-DpajuUTJ.js.map +1 -0
- package/dist/{MIconButton-DoNotQ9v.js → MIconButton-BBggVwBV.js} +5 -6
- package/dist/MIconButton-BBggVwBV.js.map +1 -0
- package/dist/{MListItem-CwYrxpPZ.js → MListItem-D2cNUyzP.js} +217 -180
- package/dist/MListItem-D2cNUyzP.js.map +1 -0
- package/dist/{MLoadingIndicator-DhzECYRI.js → MLoadingIndicator-DWUj0BAB.js} +3 -4
- package/dist/MLoadingIndicator-DWUj0BAB.js.map +1 -0
- package/dist/{MMenuItem-Bih0h4-n.js → MMenuItem-BuxYoASE.js} +140 -170
- package/dist/MMenuItem-BuxYoASE.js.map +1 -0
- package/dist/{MProgressBar-BCoruxA-.js → MProgressBar-BWly1UKN.js} +3 -8
- package/dist/MProgressBar-BWly1UKN.js.map +1 -0
- package/dist/{MSeekBar-DQPF5FTp.js → MSeekBar-C4cn9RIF.js} +4 -5
- package/dist/MSeekBar-C4cn9RIF.js.map +1 -0
- package/dist/{MSegmentedButton-DL9JtJFX.js → MSegmentedButton-BEB4gXLA.js} +3 -4
- package/dist/MSegmentedButton-BEB4gXLA.js.map +1 -0
- package/dist/{MSlider-BvoMZTy9.js → MSlider-BIkA6DiE.js} +22 -23
- package/dist/MSlider-BIkA6DiE.js.map +1 -0
- package/dist/{MSpinner-CgcCQhS9.js → MSpinner-DZkXZJpc.js} +3 -4
- package/dist/MSpinner-DZkXZJpc.js.map +1 -0
- package/dist/{MTextField-BRntFeNR.js → MTextField-CNH-byir.js} +12 -16
- package/dist/MTextField-CNH-byir.js.map +1 -0
- package/dist/{MTooltip-YyF1CO75.js → MTooltip-Dd5g2zhh.js} +10 -12
- package/dist/MTooltip-Dd5g2zhh.js.map +1 -0
- package/dist/THIRD_PARTY_LICENSES.md +2 -2
- package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/{_useEscapeStack-CjndQhqg.js → _popupPosition-nL8SVKPK.js} +21 -4
- package/dist/_popupPosition-nL8SVKPK.js.map +1 -0
- package/dist/{_storageKeys-CYXsUBwK.js → _storageKeys-C4W_4xK4.js} +2 -3
- package/dist/_storageKeys-C4W_4xK4.js.map +1 -0
- package/dist/api.json +1 -1
- package/dist/barcode.js +1 -2
- package/dist/barcode.js.map +1 -1
- package/dist/chart.js +2 -4
- package/dist/chart.js.map +1 -1
- package/dist/code-editor.js +22 -23
- package/dist/code-editor.js.map +1 -1
- package/dist/{common-0dgrgaPL.js → common-kIb6A2Qu.js} +8 -37
- package/dist/common-kIb6A2Qu.js.map +1 -0
- package/dist/components/MAbsolute.vue.d.ts +5 -3
- package/dist/components/MAddressField.vue.d.ts +54 -0
- package/dist/components/MAlert.vue.d.ts +8 -6
- package/dist/components/MAppBar.vue.d.ts +9 -7
- package/dist/components/MAppBarWithSearch.vue.d.ts +15 -13
- package/dist/components/MAppLayout.vue.d.ts +13 -11
- package/dist/components/MAspectRatio.vue.d.ts +5 -3
- package/dist/components/MAudioPlayer.vue.d.ts +23 -21
- package/dist/components/MAudioRecorder.vue.d.ts +51 -0
- package/dist/components/MAutocomplete.vue.d.ts +1 -1
- package/dist/components/MAvailabilityCalendar.vue.d.ts +18 -16
- package/dist/components/MBadge.vue.d.ts +6 -4
- package/dist/components/MBar.vue.d.ts +14 -12
- package/dist/components/MBarcode.vue.d.ts +5 -3
- package/dist/components/MBeforeAfter.vue.d.ts +12 -10
- package/dist/components/MBodyMap.vue.d.ts +1 -1
- package/dist/components/MBottomAppBar.vue.d.ts +10 -8
- package/dist/components/MBottomSheet.vue.d.ts +8 -6
- package/dist/components/MBottomSheetScaffold.vue.d.ts +9 -7
- package/dist/components/MBox.vue.d.ts +6 -4
- package/dist/components/MButton.vue.d.ts +7 -5
- package/dist/components/MCameraCapture.vue.d.ts +51 -0
- package/dist/components/MCard.vue.d.ts +12 -10
- package/dist/components/MCenter.vue.d.ts +5 -3
- package/dist/components/MChatBubble.vue.d.ts +6 -4
- package/dist/components/MCheckbox.vue.d.ts +5 -3
- package/dist/components/MChip.vue.d.ts +9 -7
- package/dist/components/MCircleProgressBar.vue.d.ts +6 -4
- package/dist/components/MCodeEditor.vue.d.ts +5 -3
- package/dist/components/MCollapse.vue.d.ts +32 -0
- package/dist/components/MContainer.vue.d.ts +6 -4
- package/dist/components/MContextMenu.vue.d.ts +8 -6
- package/dist/components/MCopyButton.vue.d.ts +1 -1
- package/dist/components/MCountrySelect.vue.d.ts +41 -0
- package/dist/components/MCronField.vue.d.ts +26 -0
- package/dist/components/MDashboardGrid.vue.d.ts +65 -0
- package/dist/components/MDataTable.vue.d.ts +21 -19
- package/dist/components/MDialog.vue.d.ts +21 -19
- package/dist/components/MDiffViewer.vue.d.ts +56 -0
- package/dist/components/MDragHandle.vue.d.ts +1 -1
- package/dist/components/MDrawCanvas.vue.d.ts +5 -3
- package/dist/components/MDrawToolbar.vue.d.ts +7 -5
- package/dist/components/MEmptyState.vue.d.ts +5 -3
- package/dist/components/MExpansionPanel.vue.d.ts +32 -7
- package/dist/components/MExportButton.vue.d.ts +7 -5
- package/dist/components/MFab.vue.d.ts +11 -9
- package/dist/components/MFabMenu.vue.d.ts +3 -3
- package/dist/components/MFilterBuilder.vue.d.ts +22 -0
- package/dist/components/MFixed.vue.d.ts +5 -3
- package/dist/components/MFlex.vue.d.ts +7 -5
- package/dist/components/MFloorPlan.vue.d.ts +3 -3
- package/dist/components/MFloorPlanInspector.vue.d.ts +32 -30
- package/dist/components/MFloorPlanToolbar.vue.d.ts +2 -2
- package/dist/components/MFlow.vue.d.ts +4 -4
- package/dist/components/MFlowControls.vue.d.ts +6 -4
- package/dist/components/MFlowHandle.vue.d.ts +1 -1
- package/dist/components/MFlowNode.vue.d.ts +11 -9
- package/dist/components/MFooter.vue.d.ts +12 -10
- package/dist/components/MFullscreen.vue.d.ts +5 -3
- package/dist/components/MGantt.vue.d.ts +33 -31
- package/dist/components/MGanttControls.vue.d.ts +8 -6
- package/dist/components/MGrid.vue.d.ts +6 -4
- package/dist/components/MIcon.vue.d.ts +5 -0
- package/dist/components/MIconButton.vue.d.ts +1 -1
- package/dist/components/MImageCropper.vue.d.ts +14 -12
- package/dist/components/MInfiniteScroll.vue.d.ts +11 -9
- package/dist/components/MList.vue.d.ts +5 -3
- package/dist/components/MListGroup.vue.d.ts +7 -5
- package/dist/components/MListItem.vue.d.ts +21 -19
- package/dist/components/MListSubheader.vue.d.ts +5 -3
- package/dist/components/MLoadingOverlay.vue.d.ts +10 -8
- package/dist/components/MMap.vue.d.ts +14 -6
- package/dist/components/MMapCluster.vue.d.ts +80 -0
- package/dist/components/MMapControl.vue.d.ts +12 -10
- package/dist/components/MMapDraw.vue.d.ts +79 -0
- package/dist/components/MMapFeatureInfo.vue.d.ts +11 -9
- package/dist/components/MMapIdentify.vue.d.ts +9 -7
- package/dist/components/MMapLayers.vue.d.ts +13 -11
- package/dist/components/MMapMarker.vue.d.ts +7 -5
- package/dist/components/MMapPopup.vue.d.ts +5 -3
- package/dist/components/MMasonry.vue.d.ts +5 -3
- package/dist/components/MMentionField.vue.d.ts +102 -0
- package/dist/components/MMenu.vue.d.ts +12 -10
- package/dist/components/MMenuItem.vue.d.ts +11 -9
- package/dist/components/MMultiAutocomplete.vue.d.ts +1 -1
- package/dist/components/MMultiSelect.vue.d.ts +6 -4
- package/dist/components/MNavigationDrawer.vue.d.ts +14 -12
- package/dist/components/MNavigationRail.vue.d.ts +7 -5
- package/dist/components/MNotificationCenter.vue.d.ts +57 -0
- package/dist/components/MOdontogram.vue.d.ts +1 -1
- package/dist/components/MOrderBook.vue.d.ts +1 -1
- package/dist/components/MOverlay.vue.d.ts +5 -3
- package/dist/components/MPdfViewer.vue.d.ts +4 -4
- package/dist/components/MPhoneInput.vue.d.ts +11 -9
- package/dist/components/MPosKeypad.vue.d.ts +18 -16
- package/dist/components/MProgressBar.vue.d.ts +1 -1
- package/dist/components/MPullToRefresh.vue.d.ts +5 -3
- package/dist/components/MQRCode.vue.d.ts +7 -5
- package/dist/components/MQRScanner.vue.d.ts +52 -0
- package/dist/components/MQuiz.vue.d.ts +1 -1
- package/dist/components/MRadioGroup.vue.d.ts +1 -1
- package/dist/components/MReceipt.vue.d.ts +2 -2
- package/dist/components/MRelative.vue.d.ts +5 -3
- package/dist/components/MResourceTimeline.vue.d.ts +31 -29
- package/dist/components/MResponsive.vue.d.ts +5 -3
- package/dist/components/MResult.vue.d.ts +7 -5
- package/dist/components/MScrollable.vue.d.ts +7 -5
- package/dist/components/MSearchBar.vue.d.ts +13 -11
- package/dist/components/MSearchField.vue.d.ts +7 -5
- package/dist/components/MSection.vue.d.ts +11 -9
- package/dist/components/MSeekBar.vue.d.ts +3 -3
- package/dist/components/MSelect.vue.d.ts +1 -1
- package/dist/components/MShader.vue.d.ts +11 -9
- package/dist/components/MShortNavigationBar.vue.d.ts +1 -1
- package/dist/components/MSideSheet.vue.d.ts +9 -7
- package/dist/components/MSimpleCarousel.vue.d.ts +2 -2
- package/dist/components/MSkeleton.vue.d.ts +2 -2
- package/dist/components/MSlider.vue.d.ts +3 -3
- package/dist/components/MSparkline.vue.d.ts +1 -1
- package/dist/components/MSplitButton.vue.d.ts +7 -5
- package/dist/components/MSplitter.vue.d.ts +9 -7
- package/dist/components/MSpotlightSearch.vue.d.ts +1 -1
- package/dist/components/MStack.vue.d.ts +8 -6
- package/dist/components/MStatCard.vue.d.ts +5 -3
- package/dist/components/MStepper.vue.d.ts +5 -3
- package/dist/components/MSticky.vue.d.ts +5 -3
- package/dist/components/MSubtitle.vue.d.ts +6 -4
- package/dist/components/MSwipeToDismiss.vue.d.ts +11 -9
- package/dist/components/MTable.vue.d.ts +17 -15
- package/dist/components/MText.vue.d.ts +5 -3
- package/dist/components/MTextField.vue.d.ts +6 -4
- package/dist/components/MTimePickerModal.vue.d.ts +1 -1
- package/dist/components/MTimezoneSelect.vue.d.ts +39 -0
- package/dist/components/MTitle.vue.d.ts +6 -4
- package/dist/components/MToggleButton.vue.d.ts +5 -3
- package/dist/components/MToolbar.vue.d.ts +24 -22
- package/dist/components/MTooltip.vue.d.ts +10 -8
- package/dist/components/MTopAppBar.vue.d.ts +22 -20
- package/dist/components/MTour.vue.d.ts +28 -26
- package/dist/components/MTransition.vue.d.ts +5 -3
- package/dist/components/MTree.vue.d.ts +6 -4
- package/dist/components/MTreeTable.vue.d.ts +21 -19
- package/dist/components/MTypewriter.vue.d.ts +6 -4
- package/dist/components/MVideoPlayer.vue.d.ts +1 -1
- package/dist/components/MVirtualTable.vue.d.ts +8 -6
- package/dist/components/_MFilterGroup.vue.d.ts +17 -0
- package/dist/components/_MMapLayerItem.vue.d.ts +8 -6
- package/dist/components/_MPdfPage.vue.d.ts +2 -2
- package/dist/components/_MToolbarFab.vue.d.ts +5 -3
- package/dist/components/_MTreeNode.vue.d.ts +13 -11
- package/dist/composables/_caretPosition.d.ts +6 -0
- package/dist/composables/_useCamera.d.ts +16 -0
- package/dist/composables/_useFollowAnchor.d.ts +15 -0
- package/dist/composables/cron.d.ts +29 -0
- package/dist/composables/dashboardLayout.d.ts +28 -0
- package/dist/composables/filterBuilder.d.ts +55 -0
- package/dist/composables/mapAdapters.d.ts +6 -1
- package/dist/composables/mapSearch.d.ts +1 -0
- package/dist/composables/textDiff.d.ts +24 -0
- package/dist/composables/useLocale.d.ts +108 -0
- package/dist/composables/useMap.d.ts +8 -0
- package/dist/{dist-CrjSW5DN.js → dist-Bj5kEq8G.js} +4 -6
- package/dist/dist-Bj5kEq8G.js.map +1 -0
- package/dist/draw.js +62 -82
- package/dist/draw.js.map +1 -1
- package/dist/{emoji-names-de-BphO5XpV.js → emoji-names-de-Cu3OSpp6.js} +2 -3
- package/dist/emoji-names-de-Cu3OSpp6.js.map +1 -0
- package/dist/{emoji-names-en-9ZvMRvzi.js → emoji-names-en-BNX1pM9h.js} +2 -3
- package/dist/emoji-names-en-BNX1pM9h.js.map +1 -0
- package/dist/{emoji-names-es-DvfWU3Pj.js → emoji-names-es-C_Dafg4D.js} +2 -3
- package/dist/emoji-names-es-C_Dafg4D.js.map +1 -0
- package/dist/{emoji-names-fr-B-jhUlsP.js → emoji-names-fr-D4HTMFuM.js} +2 -3
- package/dist/emoji-names-fr-D4HTMFuM.js.map +1 -0
- package/dist/{emoji-names-ja-l8cMFJo1.js → emoji-names-ja-BCql-Sj6.js} +2 -3
- package/dist/emoji-names-ja-BCql-Sj6.js.map +1 -0
- package/dist/{emoji-names-ko-YP-o9G0c.js → emoji-names-ko-CT8L52nn.js} +2 -3
- package/dist/emoji-names-ko-CT8L52nn.js.map +1 -0
- package/dist/{emoji-names-pt-DGj_Js4M.js → emoji-names-pt-DHiwPiL-.js} +2 -3
- package/dist/emoji-names-pt-DHiwPiL-.js.map +1 -0
- package/dist/{emoji-names-zh-Dzecwtw_.js → emoji-names-zh-L3FXVief.js} +2 -3
- package/dist/emoji-names-zh-L3FXVief.js.map +1 -0
- package/dist/flow.js +351 -374
- package/dist/flow.js.map +1 -1
- package/dist/{flowPaths-CcWOKY4Z.js → flowPaths-BaH7yaUM.js} +3 -8
- package/dist/flowPaths-BaH7yaUM.js.map +1 -0
- package/dist/gantt.js +272 -333
- package/dist/gantt.js.map +1 -1
- package/dist/index.d.ts +25 -0
- package/dist/locales/index.js +750 -2
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +9988 -7215
- package/dist/m3ui.js.map +1 -1
- package/dist/map.d.ts +6 -1
- package/dist/map.js +1600 -713
- package/dist/map.js.map +1 -1
- package/dist/markdown.js +3 -4
- package/dist/markdown.js.map +1 -1
- package/dist/{material-color-utilities-C_iikgRm.js → material-color-utilities-CEFytLsr.js} +15 -32
- package/dist/material-color-utilities-CEFytLsr.js.map +1 -0
- package/dist/media.js +80 -94
- package/dist/media.js.map +1 -1
- package/dist/{motion-DZiXG09o.js → motion-BcejVTeX.js} +2 -3
- package/dist/motion-BcejVTeX.js.map +1 -0
- package/dist/pdf.js +103 -115
- package/dist/pdf.js.map +1 -1
- package/dist/qrcode.js +1 -2
- package/dist/qrcode.js.map +1 -1
- package/dist/rich-text-editor.js +33 -34
- package/dist/rich-text-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/terminal.js +2 -3
- package/dist/terminal.js.map +1 -1
- package/dist/{useLocale-DLcG3qPC.js → useLocale-DaVSTdm0.js} +109 -3
- package/dist/useLocale-DaVSTdm0.js.map +1 -0
- package/dist/{useThemeTokens-DQQcaWbE.js → useThemeTokens-DyAdPQB0.js} +6 -10
- package/dist/useThemeTokens-DyAdPQB0.js.map +1 -0
- package/package.json +32 -32
- package/src/__tests__/MAddressField.test.ts +149 -0
- package/src/__tests__/MAudioRecorder.test.ts +125 -0
- package/src/__tests__/MCameraCapture.test.ts +154 -0
- package/src/__tests__/MCountrySelect.test.ts +67 -0
- package/src/__tests__/MCronField.test.ts +100 -0
- package/src/__tests__/MDashboardGrid.test.ts +122 -0
- package/src/__tests__/MDiffViewer.test.ts +68 -0
- package/src/__tests__/MExpansionPanel.test.ts +107 -0
- package/src/__tests__/MFab.test.ts +10 -1
- package/src/__tests__/MFilterBuilder.test.ts +130 -0
- package/src/__tests__/MMap.test.ts +16 -1
- package/src/__tests__/MMapCluster.test.ts +127 -0
- package/src/__tests__/MMapDraw.test.ts +188 -0
- package/src/__tests__/MMapLayers.test.ts +56 -0
- package/src/__tests__/MMentionField.test.ts +163 -0
- package/src/__tests__/MNotificationCenter.test.ts +94 -0
- package/src/__tests__/_fakeMaplibre.ts +16 -3
- package/src/__tests__/attrsFallthrough.test.ts +4 -0
- package/src/__tests__/cron.test.ts +68 -0
- package/src/__tests__/dashboardLayout.test.ts +45 -0
- package/src/__tests__/filterBuilder.test.ts +91 -0
- package/src/__tests__/followAnchor.test.ts +162 -0
- package/src/__tests__/ssr.test.ts +3 -0
- package/src/__tests__/textDiff.test.ts +37 -0
- package/src/components/MAddressField.vue +301 -0
- package/src/components/MAudioRecorder.vue +334 -0
- package/src/components/MAutocomplete.vue +3 -7
- package/src/components/MCameraCapture.vue +156 -0
- package/src/components/MCollapse.vue +91 -0
- package/src/components/MColorPicker.vue +4 -8
- package/src/components/MCountrySelect.vue +89 -0
- package/src/components/MCronField.vue +251 -0
- package/src/components/MDashboardGrid.vue +382 -0
- package/src/components/MDatePicker.vue +10 -7
- package/src/components/MDateRangePicker.vue +10 -7
- package/src/components/MDiffViewer.vue +234 -0
- package/src/components/MExpansionPanel.vue +56 -48
- package/src/components/MFilterBuilder.vue +47 -0
- package/src/components/MMap.vue +12 -3
- package/src/components/MMapCluster.vue +295 -0
- package/src/components/MMapDraw.vue +601 -0
- package/src/components/MMapMeasure.vue +3 -1
- package/src/components/MMapSearch.vue +1 -9
- package/src/components/MMentionField.vue +373 -0
- package/src/components/MMultiAutocomplete.vue +3 -7
- package/src/components/MMultiSelect.vue +3 -7
- package/src/components/MNotificationCenter.vue +252 -0
- package/src/components/MPhoneInput.vue +3 -10
- package/src/components/MQRScanner.vue +177 -0
- package/src/components/MSelect.vue +3 -7
- package/src/components/MTimePicker.vue +10 -7
- package/src/components/MTimezoneSelect.vue +116 -0
- package/src/components/_MFilterGroup.vue +210 -0
- package/src/composables/_caretPosition.ts +44 -0
- package/src/composables/_useCamera.ts +66 -0
- package/src/composables/_useFollowAnchor.ts +109 -0
- package/src/composables/cron.ts +179 -0
- package/src/composables/dashboardLayout.ts +94 -0
- package/src/composables/filterBuilder.ts +195 -0
- package/src/composables/mapAdapters.ts +29 -15
- package/src/composables/mapSearch.ts +10 -0
- package/src/composables/textDiff.ts +106 -0
- package/src/composables/useLocale.ts +215 -0
- package/src/composables/useMap.ts +17 -0
- package/src/composables/useMapLayers.ts +4 -1
- package/src/index.ts +25 -0
- package/src/locales/de.ts +107 -0
- package/src/locales/es.ts +107 -0
- package/src/locales/fr.ts +107 -0
- package/src/locales/ja.ts +107 -0
- package/src/locales/ko.ts +107 -0
- package/src/locales/pt.ts +107 -0
- package/src/locales/zh.ts +107 -0
- package/src/map.ts +6 -1
- package/dist/MButton-D_uxtJa-.js.map +0 -1
- package/dist/MDialog-DT4KAPmn.js.map +0 -1
- package/dist/MIcon-Bxh9j135.js.map +0 -1
- package/dist/MIconButton-DoNotQ9v.js.map +0 -1
- package/dist/MListItem-CwYrxpPZ.js.map +0 -1
- package/dist/MLoadingIndicator-DhzECYRI.js.map +0 -1
- package/dist/MMenuItem-Bih0h4-n.js.map +0 -1
- package/dist/MProgressBar-BCoruxA-.js.map +0 -1
- package/dist/MSeekBar-DQPF5FTp.js.map +0 -1
- package/dist/MSegmentedButton-DL9JtJFX.js.map +0 -1
- package/dist/MSlider-BvoMZTy9.js.map +0 -1
- package/dist/MSpinner-CgcCQhS9.js.map +0 -1
- package/dist/MTextField-BRntFeNR.js.map +0 -1
- package/dist/MTooltip-YyF1CO75.js.map +0 -1
- package/dist/_storageKeys-CYXsUBwK.js.map +0 -1
- package/dist/_useEscapeStack-CjndQhqg.js.map +0 -1
- package/dist/common-0dgrgaPL.js.map +0 -1
- package/dist/dist-CrjSW5DN.js.map +0 -1
- package/dist/emoji-names-de-BphO5XpV.js.map +0 -1
- package/dist/emoji-names-en-9ZvMRvzi.js.map +0 -1
- package/dist/emoji-names-es-DvfWU3Pj.js.map +0 -1
- package/dist/emoji-names-fr-B-jhUlsP.js.map +0 -1
- package/dist/emoji-names-ja-l8cMFJo1.js.map +0 -1
- package/dist/emoji-names-ko-YP-o9G0c.js.map +0 -1
- package/dist/emoji-names-pt-DGj_Js4M.js.map +0 -1
- package/dist/emoji-names-zh-Dzecwtw_.js.map +0 -1
- package/dist/flowPaths-CcWOKY4Z.js.map +0 -1
- package/dist/material-color-utilities-C_iikgRm.js.map +0 -1
- package/dist/motion-DZiXG09o.js.map +0 -1
- package/dist/useLocale-DLcG3qPC.js.map +0 -1
- package/dist/useThemeTokens-DQQcaWbE.js.map +0 -1
|
@@ -1,10 +1,52 @@
|
|
|
1
|
-
import { i as e } from "./useLocale-
|
|
2
|
-
import { a as t, i as n, s as r } from "./MIconButton-
|
|
3
|
-
import { t as i } from "./MIcon-
|
|
4
|
-
import { Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, getCurrentInstance as m, h, inject as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeStyle as b,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { i as e } from "./useLocale-DaVSTdm0.js";
|
|
2
|
+
import { a as t, i as n, s as r } from "./MIconButton-BBggVwBV.js";
|
|
3
|
+
import { t as i } from "./MIcon-DpajuUTJ.js";
|
|
4
|
+
import { Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, getCurrentInstance as m, h, inject as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, onUpdated as w, openBlock as T, provide as E, ref as D, renderSlot as O, resolveDynamicComponent as ee, shallowRef as k, toDisplayString as A, unref as j, useId as te, useSlots as M, watch as N, withCtx as P, withModifiers as F } from "vue";
|
|
5
|
+
// src/composables/_useFollowAnchor.ts
|
|
6
|
+
var I = /(auto|scroll|hidden|clip)/;
|
|
7
|
+
function L(e) {
|
|
8
|
+
if (!e.isConnected) return !0;
|
|
9
|
+
let t = e.getBoundingClientRect(), n = t.top, r = t.left, i = t.bottom, a = t.right;
|
|
10
|
+
for (let t = e.parentElement; t && t !== document.body && t !== document.documentElement; t = t.parentElement) {
|
|
11
|
+
let e = getComputedStyle(t);
|
|
12
|
+
if (e.position === "fixed") break;
|
|
13
|
+
if (!I.test(e.overflow + e.overflowX + e.overflowY)) continue;
|
|
14
|
+
let o = t.getBoundingClientRect();
|
|
15
|
+
n = Math.max(n, o.top), r = Math.max(r, o.left), i = Math.min(i, o.bottom), a = Math.min(a, o.right);
|
|
16
|
+
}
|
|
17
|
+
return n = Math.max(n, 0), r = Math.max(r, 0), i = Math.min(i, window.innerHeight), a = Math.min(a, window.innerWidth), i <= n || a <= r;
|
|
18
|
+
}
|
|
19
|
+
function R(e) {
|
|
20
|
+
let t = 0, n = null, r = !1;
|
|
21
|
+
function i() {
|
|
22
|
+
if (t = 0, !e.open()) return;
|
|
23
|
+
let n = e.anchor.value;
|
|
24
|
+
if (!n || L(n)) {
|
|
25
|
+
e.close();
|
|
26
|
+
let t = document.activeElement;
|
|
27
|
+
n && t instanceof HTMLElement && n.contains(t) && t.blur();
|
|
28
|
+
} else e.place();
|
|
29
|
+
}
|
|
30
|
+
function a() {
|
|
31
|
+
t ||= requestAnimationFrame(i);
|
|
32
|
+
}
|
|
33
|
+
function o(t) {
|
|
34
|
+
let n = t.target;
|
|
35
|
+
n instanceof Node && e.popup.value?.contains(n) || a();
|
|
36
|
+
}
|
|
37
|
+
function s() {
|
|
38
|
+
r || typeof window > "u" || (r = !0, window.addEventListener("scroll", o, {
|
|
39
|
+
capture: !0,
|
|
40
|
+
passive: !0
|
|
41
|
+
}), window.addEventListener("resize", a), window.visualViewport?.addEventListener("resize", a), window.visualViewport?.addEventListener("scroll", a), typeof ResizeObserver < "u" && e.anchor.value && (n = new ResizeObserver(a), n.observe(e.anchor.value)));
|
|
42
|
+
}
|
|
43
|
+
function c() {
|
|
44
|
+
r && (r = !1, window.removeEventListener("scroll", o, { capture: !0 }), window.removeEventListener("resize", a), window.visualViewport?.removeEventListener("resize", a), window.visualViewport?.removeEventListener("scroll", a), n?.disconnect(), n = null, t && cancelAnimationFrame(t), t = 0);
|
|
45
|
+
}
|
|
46
|
+
N(e.open, (e) => e ? s() : c(), { immediate: !0 }), x(c);
|
|
47
|
+
}
|
|
48
|
+
// src/components/MAvatar.vue
|
|
49
|
+
var z = /* @__PURE__ */ p({
|
|
8
50
|
__name: "MAvatar",
|
|
9
51
|
props: {
|
|
10
52
|
name: {},
|
|
@@ -19,32 +61,32 @@ var ne = /* @__PURE__ */ p({
|
|
|
19
61
|
}
|
|
20
62
|
return t.fallback || "?";
|
|
21
63
|
});
|
|
22
|
-
return (t, r) => (
|
|
64
|
+
return (t, r) => (T(), l("div", {
|
|
23
65
|
class: "inline-flex shrink-0 items-center justify-center rounded-full bg-primary-container font-medium text-on-primary-container",
|
|
24
66
|
style: b({
|
|
25
67
|
width: `${e.size}px`,
|
|
26
68
|
height: `${e.size}px`,
|
|
27
69
|
fontSize: `${Math.round(e.size * .4)}px`
|
|
28
70
|
})
|
|
29
|
-
},
|
|
71
|
+
}, A(n.value), 5));
|
|
30
72
|
}
|
|
31
|
-
}),
|
|
73
|
+
}), ne = [
|
|
32
74
|
"role",
|
|
33
75
|
"tabindex",
|
|
34
76
|
"aria-disabled"
|
|
35
|
-
],
|
|
77
|
+
], B = ["src", "alt"], V = {
|
|
36
78
|
key: 1,
|
|
37
79
|
class: "px-4 pt-4 pb-2"
|
|
38
|
-
},
|
|
80
|
+
}, H = {
|
|
39
81
|
key: 2,
|
|
40
82
|
class: "px-4 pt-4 pb-2"
|
|
41
|
-
}, re = { class: "text-title-large font-medium text-on-surface" },
|
|
83
|
+
}, re = { class: "text-title-large font-medium text-on-surface" }, U = {
|
|
42
84
|
key: 0,
|
|
43
85
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
44
|
-
},
|
|
86
|
+
}, W = {
|
|
45
87
|
key: 3,
|
|
46
88
|
class: "flex justify-end gap-2 px-4 pt-2 pb-4"
|
|
47
|
-
},
|
|
89
|
+
}, ie = "relative before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-on-surface before:opacity-0 before:transition-opacity before:duration-150 hover:before:opacity-[0.08] active:before:opacity-[0.12]", ae = /* @__PURE__ */ p({
|
|
48
90
|
__name: "MCard",
|
|
49
91
|
props: {
|
|
50
92
|
variant: { default: "elevated" },
|
|
@@ -87,13 +129,13 @@ var ne = /* @__PURE__ */ p({
|
|
|
87
129
|
function d(e) {
|
|
88
130
|
s.value && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
|
|
89
131
|
}
|
|
90
|
-
return (t, o) => (
|
|
132
|
+
return (t, o) => (T(), l("div", {
|
|
91
133
|
class: y(["overflow-hidden rounded-md transition-shadow duration-150", [
|
|
92
134
|
i.value,
|
|
93
135
|
s.value ? [
|
|
94
136
|
"cursor-pointer",
|
|
95
137
|
a[n.value],
|
|
96
|
-
|
|
138
|
+
ie
|
|
97
139
|
] : "",
|
|
98
140
|
e.disabled ? "cursor-not-allowed pointer-events-none" : ""
|
|
99
141
|
]]),
|
|
@@ -103,28 +145,28 @@ var ne = /* @__PURE__ */ p({
|
|
|
103
145
|
"aria-disabled": e.clickable && e.disabled ? "true" : void 0,
|
|
104
146
|
onKeydown: d
|
|
105
147
|
}, [
|
|
106
|
-
e.image || t.$slots.media ? (
|
|
148
|
+
e.image || t.$slots.media ? (T(), l("div", {
|
|
107
149
|
key: 0,
|
|
108
150
|
class: y(["w-full overflow-hidden", e.imageHeight ?? "h-48"])
|
|
109
|
-
}, [e.image ? (
|
|
151
|
+
}, [e.image ? (T(), l("img", {
|
|
110
152
|
key: 0,
|
|
111
153
|
src: e.image,
|
|
112
154
|
alt: e.imageAlt ?? "",
|
|
113
155
|
class: "h-full w-full object-cover"
|
|
114
|
-
}, null, 8,
|
|
115
|
-
t.$slots.header ? (
|
|
116
|
-
|
|
117
|
-
t.$slots.actions ? (
|
|
118
|
-
], 46,
|
|
156
|
+
}, null, 8, B)) : O(t.$slots, "media", {}, void 0, void 0, 1)], 2)) : c("", !0),
|
|
157
|
+
t.$slots.header ? (T(), l("div", V, [O(t.$slots, "header")])) : e.title ? (T(), l("div", H, [u("h3", re, A(e.title), 1), e.subtitle ? (T(), l("p", U, A(e.subtitle), 1)) : c("", !0)])) : c("", !0),
|
|
158
|
+
O(t.$slots, "default"),
|
|
159
|
+
t.$slots.actions ? (T(), l("div", W, [O(t.$slots, "actions")])) : c("", !0)
|
|
160
|
+
], 46, ne));
|
|
119
161
|
}
|
|
120
|
-
}),
|
|
162
|
+
}), oe = { class: "relative -m-[11px] inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full" }, G = [
|
|
121
163
|
"checked",
|
|
122
164
|
"disabled",
|
|
123
165
|
"aria-label"
|
|
124
|
-
],
|
|
166
|
+
], se = {
|
|
125
167
|
key: 1,
|
|
126
168
|
class: "pointer-events-none absolute inset-0 rounded-full ring-0 ring-secondary transition-[box-shadow] duration-150 peer-focus-visible:ring-2"
|
|
127
|
-
},
|
|
169
|
+
}, ce = /* @__PURE__ */ p({
|
|
128
170
|
__name: "MCheckbox",
|
|
129
171
|
props: {
|
|
130
172
|
modelValue: { type: Boolean },
|
|
@@ -153,7 +195,7 @@ var ne = /* @__PURE__ */ p({
|
|
|
153
195
|
tertiary: "bg-tertiary",
|
|
154
196
|
error: "bg-error"
|
|
155
197
|
};
|
|
156
|
-
return (t, o) => (
|
|
198
|
+
return (t, o) => (T(), l("label", { class: y(["group inline-flex items-center gap-2 select-none", e.disabled ? "cursor-not-allowed" : "cursor-pointer"]) }, [u("span", oe, [
|
|
157
199
|
u("input", {
|
|
158
200
|
type: "checkbox",
|
|
159
201
|
class: "peer sr-only",
|
|
@@ -161,23 +203,23 @@ var ne = /* @__PURE__ */ p({
|
|
|
161
203
|
disabled: e.disabled,
|
|
162
204
|
"aria-label": e.ariaLabel,
|
|
163
205
|
onChange: o[0] ||= (t) => n("update:modelValue", !e.modelValue)
|
|
164
|
-
}, null, 40,
|
|
165
|
-
e.disabled ? c("", !0) : (
|
|
206
|
+
}, null, 40, G),
|
|
207
|
+
e.disabled ? c("", !0) : (T(), l("span", {
|
|
166
208
|
key: 0,
|
|
167
209
|
class: y(["pointer-events-none absolute inset-0 rounded-full opacity-0 transition-opacity duration-150 group-hover:opacity-[0.08] group-active:opacity-[0.12]", e.modelValue || e.indeterminate ? a[e.color] : "bg-on-surface"])
|
|
168
210
|
}, null, 2)),
|
|
169
|
-
e.disabled ? c("", !0) : (
|
|
211
|
+
e.disabled ? c("", !0) : (T(), l("span", se)),
|
|
170
212
|
u("span", { class: y(["relative inline-flex h-4.5 w-4.5 items-center justify-center rounded-[2px] border-2 transition-colors", e.disabled ? e.modelValue || e.indeterminate ? "border-on-surface/38 bg-on-surface/38 text-surface" : "border-on-surface/38 text-transparent" : e.modelValue || e.indeterminate ? r[e.color] : "border-on-surface-variant text-transparent group-hover:border-on-surface group-active:border-on-surface"]) }, [f(i, {
|
|
171
213
|
name: e.indeterminate ? "remove" : "check",
|
|
172
214
|
size: 18,
|
|
173
215
|
class: y(["transition-[opacity,transform] duration-150", e.modelValue || e.indeterminate ? "scale-100 opacity-100" : "scale-0 opacity-0"])
|
|
174
216
|
}, null, 8, ["name", "class"])], 2)
|
|
175
|
-
]), e.label || t.$slots.default ? (
|
|
217
|
+
]), e.label || t.$slots.default ? (T(), l("span", {
|
|
176
218
|
key: 0,
|
|
177
219
|
class: y(["text-body-large", e.disabled ? "text-on-surface/38" : "text-on-surface"])
|
|
178
|
-
}, [
|
|
220
|
+
}, [O(t.$slots, "default", {}, () => [d(A(e.label), 1)])], 2)) : c("", !0)], 2));
|
|
179
221
|
}
|
|
180
|
-
}),
|
|
222
|
+
}), le = ["disabled", "aria-pressed"], K = { class: "whitespace-nowrap" }, ue = ["aria-label", "disabled"], de = ["aria-label", "disabled"], fe = "relative cursor-pointer before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 hover:before:opacity-[0.08] active:before:opacity-[0.12] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary", pe = /* @__PURE__ */ p({
|
|
181
223
|
__name: "MChip",
|
|
182
224
|
props: {
|
|
183
225
|
tone: { default: "neutral" },
|
|
@@ -218,7 +260,7 @@ var ne = /* @__PURE__ */ p({
|
|
|
218
260
|
"error",
|
|
219
261
|
"tertiary",
|
|
220
262
|
"secondary"
|
|
221
|
-
], m = a, h = d, g = e(), _ =
|
|
263
|
+
], m = a, h = d, g = e(), _ = M(), v = o(() => !!m.tone && !p.includes(m.tone)), x = o(() => {
|
|
222
264
|
if (v.value) return {
|
|
223
265
|
"--chip-bg": m.tone + "22",
|
|
224
266
|
"--chip-color": m.tone
|
|
@@ -236,54 +278,54 @@ var ne = /* @__PURE__ */ p({
|
|
|
236
278
|
tertiary: "border border-transparent bg-tertiary-container text-on-tertiary-container"
|
|
237
279
|
};
|
|
238
280
|
return e[m.tone ?? "neutral"] ?? e.neutral;
|
|
239
|
-
}), C = o(() => m.selected ? "rounded-full" : "rounded-md"),
|
|
240
|
-
let e =
|
|
281
|
+
}), C = o(() => m.selected ? "rounded-full" : "rounded-md"), w = o(() => m.type === "filter" || m.type === "input"), E = o(() => m.type === "input" && !!_.avatar), k = o(() => !!m.trailingIcon || m.type === "input" && m.removable), A = o(() => {
|
|
282
|
+
let e = w.value && m.selected;
|
|
241
283
|
if (m.disabled) return e || m.elevated && m.type !== "input" ? "bg-on-surface/12 text-on-surface/38" : "border border-on-surface/12 text-on-surface/38";
|
|
242
284
|
if (e) return ["bg-secondary-container text-on-secondary-container", m.elevated ? "shadow-elevation-1 hover:shadow-elevation-2" : ""];
|
|
243
285
|
let t = m.type === "assist" ? "text-on-surface" : "text-on-surface-variant";
|
|
244
286
|
return m.elevated && m.type !== "input" ? ["bg-surface-container-low shadow-elevation-1 hover:shadow-elevation-2", t] : ["border border-outline-variant", t];
|
|
245
|
-
}),
|
|
246
|
-
r(() => m.type === "filter" || m.type === "input" ? [
|
|
247
|
-
|
|
248
|
-
}, t), r(() =>
|
|
249
|
-
|
|
287
|
+
}), te = o(() => m.disabled ? "" : m.type === "assist" || m.type === "suggestion" ? "text-primary" : m.selected ? "text-on-secondary-container" : "text-on-surface-variant"), N = o(() => m.type === "input" ? [E.value ? "pl-1" : m.icon ? "pl-2" : "pl-3", k.value ? "pr-2" : "pr-3"] : [m.icon || z.value ? "pl-2" : "pl-4", k.value ? "pr-2" : "pr-4"]), I = D(!1), L = D(), R = D(), z = o(() => m.type === "filter" && !m.icon);
|
|
288
|
+
r(() => m.type === "filter" || m.type === "input" ? [I.value ? 8 : m.selected ? 16 : 12, z.value ? m.selected ? 26 : 8 : 0] : [], ([e, t]) => {
|
|
289
|
+
L.value && e !== void 0 && (L.value.style.borderRadius = `${e}px`), R.value && t !== void 0 && (R.value.style.width = `${t}px`);
|
|
290
|
+
}, t), r(() => z.value ? [+!!m.selected] : [], ([e]) => {
|
|
291
|
+
R.value && e !== void 0 && (R.value.style.opacity = String(e));
|
|
250
292
|
}, n);
|
|
251
|
-
function
|
|
252
|
-
m.disabled || (
|
|
293
|
+
function ne() {
|
|
294
|
+
m.disabled || (w.value && h("update:selected", !m.selected), h("click"));
|
|
253
295
|
}
|
|
254
|
-
return (e, t) => a.type ? (
|
|
296
|
+
return (e, t) => a.type ? (T(), l("span", {
|
|
255
297
|
key: 0,
|
|
256
298
|
ref_key: "typedEl",
|
|
257
|
-
ref:
|
|
258
|
-
class: y(["relative inline-flex h-8 items-center overflow-hidden align-middle text-label-large transition-[background-color,box-shadow,color] has-[button:focus-visible]:ring-2 has-[button:focus-visible]:ring-inset has-[button:focus-visible]:ring-secondary", [
|
|
299
|
+
ref: L,
|
|
300
|
+
class: y(["relative inline-flex h-8 items-center overflow-hidden align-middle text-label-large transition-[background-color,box-shadow,color] has-[button:focus-visible]:ring-2 has-[button:focus-visible]:ring-inset has-[button:focus-visible]:ring-secondary", [A.value, a.type === "assist" || a.type === "suggestion" ? "rounded-sm" : "rounded-md"]])
|
|
259
301
|
}, [u("button", {
|
|
260
302
|
type: "button",
|
|
261
|
-
class: y(["flex h-full items-center gap-2 outline-none before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity", [
|
|
303
|
+
class: y(["flex h-full items-center gap-2 outline-none before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity", [N.value, a.disabled ? "cursor-not-allowed" : "cursor-pointer hover:before:opacity-[0.08] active:before:opacity-[0.12]"]]),
|
|
262
304
|
disabled: a.disabled,
|
|
263
|
-
"aria-pressed":
|
|
264
|
-
onPointerdown: t[0] ||= (e) =>
|
|
265
|
-
onPointerup: t[1] ||= (e) =>
|
|
266
|
-
onPointerleave: t[2] ||= (e) =>
|
|
267
|
-
onPointercancel: t[3] ||= (e) =>
|
|
268
|
-
onClick:
|
|
305
|
+
"aria-pressed": w.value ? a.selected : void 0,
|
|
306
|
+
onPointerdown: t[0] ||= (e) => I.value = !0,
|
|
307
|
+
onPointerup: t[1] ||= (e) => I.value = !1,
|
|
308
|
+
onPointerleave: t[2] ||= (e) => I.value = !1,
|
|
309
|
+
onPointercancel: t[3] ||= (e) => I.value = !1,
|
|
310
|
+
onClick: ne
|
|
269
311
|
}, [
|
|
270
|
-
|
|
312
|
+
E.value ? (T(), l("span", {
|
|
271
313
|
key: 0,
|
|
272
314
|
class: y(["-my-1 flex h-6 w-6 shrink-0 items-center justify-center overflow-hidden rounded-full", a.disabled ? "opacity-38" : ""])
|
|
273
|
-
}, [
|
|
315
|
+
}, [O(e.$slots, "avatar")], 2)) : a.icon ? (T(), s(i, {
|
|
274
316
|
key: 1,
|
|
275
317
|
name: a.icon,
|
|
276
318
|
size: 18,
|
|
277
319
|
filled: a.type === "filter" && a.selected,
|
|
278
|
-
class: y(["shrink-0",
|
|
320
|
+
class: y(["shrink-0", te.value])
|
|
279
321
|
}, null, 8, [
|
|
280
322
|
"name",
|
|
281
323
|
"filled",
|
|
282
324
|
"class"
|
|
283
|
-
])) :
|
|
325
|
+
])) : z.value ? (T(), l("span", {
|
|
284
326
|
key: 2,
|
|
285
327
|
ref_key: "checkEl",
|
|
286
|
-
ref:
|
|
328
|
+
ref: R,
|
|
287
329
|
class: "-mr-2 flex shrink-0 overflow-hidden",
|
|
288
330
|
style: {
|
|
289
331
|
width: "8px",
|
|
@@ -293,56 +335,56 @@ var ne = /* @__PURE__ */ p({
|
|
|
293
335
|
}, [f(i, {
|
|
294
336
|
name: "check",
|
|
295
337
|
size: 18,
|
|
296
|
-
class: y(["shrink-0",
|
|
338
|
+
class: y(["shrink-0", te.value])
|
|
297
339
|
}, null, 8, ["class"])], 512)) : c("", !0),
|
|
298
|
-
u("span",
|
|
299
|
-
a.trailingIcon ? (
|
|
340
|
+
u("span", K, [O(e.$slots, "default")]),
|
|
341
|
+
a.trailingIcon ? (T(), s(i, {
|
|
300
342
|
key: 3,
|
|
301
343
|
name: a.trailingIcon,
|
|
302
344
|
size: 18,
|
|
303
|
-
class: y(["shrink-0", a.disabled ? "" : a.selected &&
|
|
345
|
+
class: y(["shrink-0", a.disabled ? "" : a.selected && w.value ? "text-on-secondary-container" : "text-on-surface-variant"])
|
|
304
346
|
}, null, 8, ["name", "class"])) : c("", !0)
|
|
305
|
-
], 42,
|
|
347
|
+
], 42, le), a.type === "input" && a.removable ? (T(), l("button", {
|
|
306
348
|
key: 0,
|
|
307
349
|
type: "button",
|
|
308
350
|
class: y(["relative -ml-1 mr-2 flex h-6 w-6 shrink-0 items-center justify-center rounded-full outline-none hover:bg-on-surface/8 focus-visible:ring-2 focus-visible:ring-secondary", a.disabled ? "cursor-not-allowed" : "cursor-pointer"]),
|
|
309
|
-
"aria-label":
|
|
351
|
+
"aria-label": j(g).remove,
|
|
310
352
|
disabled: a.disabled,
|
|
311
|
-
onClick: t[4] ||=
|
|
353
|
+
onClick: t[4] ||= F((e) => h("remove"), ["stop"])
|
|
312
354
|
}, [f(i, {
|
|
313
355
|
name: "close",
|
|
314
356
|
size: 18
|
|
315
|
-
})], 10,
|
|
357
|
+
})], 10, ue)) : c("", !0)], 2)) : (T(), s(ee(a.clickable ? "button" : "span"), {
|
|
316
358
|
key: 1,
|
|
317
359
|
type: a.clickable ? "button" : void 0,
|
|
318
360
|
disabled: a.clickable && a.disabled ? !0 : void 0,
|
|
319
361
|
class: y(["inline-flex h-8 items-center gap-1.5 overflow-hidden px-3 text-label-large transition-colors", [
|
|
320
362
|
C.value,
|
|
321
363
|
S.value,
|
|
322
|
-
a.clickable && !a.disabled ?
|
|
364
|
+
a.clickable && !a.disabled ? fe : "",
|
|
323
365
|
a.disabled ? "cursor-not-allowed" : ""
|
|
324
366
|
]]),
|
|
325
367
|
style: b(x.value),
|
|
326
368
|
onClick: t[6] ||= (e) => a.clickable && !a.disabled && h("click")
|
|
327
369
|
}, {
|
|
328
|
-
default:
|
|
329
|
-
a.icon ? (
|
|
370
|
+
default: P(() => [
|
|
371
|
+
a.icon ? (T(), s(i, {
|
|
330
372
|
key: 0,
|
|
331
373
|
name: a.icon,
|
|
332
374
|
size: 18
|
|
333
375
|
}, null, 8, ["name"])) : c("", !0),
|
|
334
|
-
|
|
335
|
-
a.removable ? (
|
|
376
|
+
O(e.$slots, "default"),
|
|
377
|
+
a.removable ? (T(), l("button", {
|
|
336
378
|
key: 1,
|
|
337
379
|
type: "button",
|
|
338
380
|
class: "-mr-1 ml-0.5 inline-flex items-center justify-center rounded-full hover:bg-on-surface/12",
|
|
339
|
-
"aria-label":
|
|
381
|
+
"aria-label": j(g).remove,
|
|
340
382
|
disabled: a.disabled,
|
|
341
|
-
onClick: t[5] ||=
|
|
383
|
+
onClick: t[5] ||= F((e) => h("remove"), ["stop"])
|
|
342
384
|
}, [f(i, {
|
|
343
385
|
name: "close",
|
|
344
386
|
size: 16
|
|
345
|
-
})], 8,
|
|
387
|
+
})], 8, de)) : c("", !0)
|
|
346
388
|
]),
|
|
347
389
|
_: 3
|
|
348
390
|
}, 8, [
|
|
@@ -353,10 +395,9 @@ var ne = /* @__PURE__ */ p({
|
|
|
353
395
|
]));
|
|
354
396
|
}
|
|
355
397
|
});
|
|
356
|
-
|
|
357
|
-
//#region src/composables/_useSegmentRuns.ts
|
|
398
|
+
// src/composables/_useSegmentRuns.ts
|
|
358
399
|
function q(e) {
|
|
359
|
-
let t =
|
|
400
|
+
let t = k(/* @__PURE__ */ new Map());
|
|
360
401
|
function n() {
|
|
361
402
|
let n = /* @__PURE__ */ new Map(), r = [], i = () => {
|
|
362
403
|
r.forEach((e, t) => n.set(e, r.length === 1 ? "single" : t === 0 ? "first" : t === r.length - 1 ? "last" : "middle")), r = [];
|
|
@@ -365,13 +406,12 @@ function q(e) {
|
|
|
365
406
|
i(), t.value = n;
|
|
366
407
|
}
|
|
367
408
|
let r;
|
|
368
|
-
return
|
|
409
|
+
return S(() => {
|
|
369
410
|
n(), e.value && (r = new MutationObserver(n), r.observe(e.value, { childList: !0 }));
|
|
370
|
-
}),
|
|
411
|
+
}), C(() => r?.disconnect()), (e) => e ? t.value.get(e) : void 0;
|
|
371
412
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
var ue = ["role"], de = /* @__PURE__ */ p({
|
|
413
|
+
// src/components/MList.vue?vue&type=script&setup=true&lang.ts
|
|
414
|
+
var J = ["role"], Y = /* @__PURE__ */ p({
|
|
375
415
|
__name: "MList",
|
|
376
416
|
props: {
|
|
377
417
|
dense: {
|
|
@@ -399,8 +439,8 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
399
439
|
},
|
|
400
440
|
emits: ["update:selected"],
|
|
401
441
|
setup(e, { emit: t }) {
|
|
402
|
-
let n = e, r = t, i =
|
|
403
|
-
|
|
442
|
+
let n = e, r = t, i = D(), a = q(i);
|
|
443
|
+
E("m-list", {
|
|
404
444
|
segmentPosition: a,
|
|
405
445
|
dense: o(() => n.dense),
|
|
406
446
|
nav: o(() => n.nav),
|
|
@@ -424,24 +464,24 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
424
464
|
let e = s();
|
|
425
465
|
e.length && !e.some((e) => e.tabIndex === 0) && (e[0].tabIndex = 0);
|
|
426
466
|
}
|
|
427
|
-
|
|
467
|
+
S(u), w(() => v(u));
|
|
428
468
|
let d = o(() => [
|
|
429
469
|
"flex flex-col",
|
|
430
470
|
n.segmented ? "gap-0.5 p-2" : "py-2",
|
|
431
471
|
n.nav && !n.segmented && "gap-0.5 px-3"
|
|
432
472
|
]);
|
|
433
|
-
return (t, n) => (
|
|
473
|
+
return (t, n) => (T(), l("ul", {
|
|
434
474
|
ref_key: "listEl",
|
|
435
475
|
ref: i,
|
|
436
476
|
role: e.selectable ? "listbox" : "list",
|
|
437
477
|
class: y(d.value),
|
|
438
478
|
onKeydown: c
|
|
439
|
-
}, [
|
|
479
|
+
}, [O(t.$slots, "default")], 42, J));
|
|
440
480
|
}
|
|
441
|
-
}),
|
|
481
|
+
}), me = { class: "relative -my-2 inline-flex h-12 shrink-0 items-center" }, he = ["checked", "disabled"], ge = {
|
|
442
482
|
key: 0,
|
|
443
483
|
class: "text-body-large text-on-surface"
|
|
444
|
-
}, X = "bg-outline group-hover:bg-on-surface-variant group-active:bg-on-surface-variant peer-focus-visible:bg-on-surface-variant",
|
|
484
|
+
}, X = "bg-outline group-hover:bg-on-surface-variant group-active:bg-on-surface-variant peer-focus-visible:bg-on-surface-variant", _e = /* @__PURE__ */ p({
|
|
445
485
|
__name: "MSwitch",
|
|
446
486
|
props: {
|
|
447
487
|
modelValue: { type: Boolean },
|
|
@@ -478,7 +518,7 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
478
518
|
secondary: "bg-secondary",
|
|
479
519
|
tertiary: "bg-tertiary",
|
|
480
520
|
error: "bg-error"
|
|
481
|
-
}, g =
|
|
521
|
+
}, g = D(!1);
|
|
482
522
|
function _() {
|
|
483
523
|
n.disabled || (g.value = !0);
|
|
484
524
|
}
|
|
@@ -492,26 +532,26 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
492
532
|
transform: `translateX(${n.modelValue ? 18 : 0}px)`,
|
|
493
533
|
transition: n.modelValue ? "transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1)" : "transform 240ms cubic-bezier(0.2, 0, 0, 1)"
|
|
494
534
|
}));
|
|
495
|
-
return (t, n) => (
|
|
535
|
+
return (t, n) => (T(), l("label", {
|
|
496
536
|
class: y(["group inline-flex items-center gap-3 select-none", e.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer"]),
|
|
497
537
|
onPointerdown: _,
|
|
498
538
|
onPointerup: v,
|
|
499
539
|
onPointerleave: v,
|
|
500
540
|
onPointercancel: v
|
|
501
|
-
}, [u("span",
|
|
541
|
+
}, [u("span", me, [u("span", { class: y(["relative inline-flex h-8 w-[52px] items-center rounded-full border-2 transition-colors duration-200", e.modelValue ? d[e.color] : "border-outline bg-surface-container-highest"]) }, [
|
|
502
542
|
u("input", {
|
|
503
543
|
type: "checkbox",
|
|
504
544
|
class: "peer sr-only",
|
|
505
545
|
checked: e.modelValue,
|
|
506
546
|
disabled: e.disabled,
|
|
507
547
|
onChange: n[0] ||= (t) => r("update:modelValue", !e.modelValue)
|
|
508
|
-
}, null, 40,
|
|
509
|
-
e.disabled ? c("", !0) : (
|
|
548
|
+
}, null, 40, he),
|
|
549
|
+
e.disabled ? c("", !0) : (T(), l("span", {
|
|
510
550
|
key: 0,
|
|
511
551
|
class: y(["pointer-events-none absolute top-1/2 -left-1 h-10 w-10 -translate-y-1/2 rounded-full opacity-0 transition-opacity duration-150 group-hover:opacity-[0.08] group-active:opacity-[0.12] peer-focus-visible:opacity-[0.08]", e.modelValue ? h[e.color] : "bg-on-surface-variant"]),
|
|
512
552
|
style: b(C.value)
|
|
513
553
|
}, null, 6)),
|
|
514
|
-
e.disabled ? c("", !0) : (
|
|
554
|
+
e.disabled ? c("", !0) : (T(), l("span", {
|
|
515
555
|
key: 1,
|
|
516
556
|
class: "pointer-events-none absolute top-1/2 -left-1 h-10 w-10 -translate-y-1/2 rounded-full ring-0 ring-secondary transition-[box-shadow] duration-150 peer-focus-visible:ring-2",
|
|
517
557
|
style: b(C.value)
|
|
@@ -527,7 +567,7 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
527
567
|
"leave-from-class": "opacity-100",
|
|
528
568
|
"leave-to-class": "opacity-0"
|
|
529
569
|
}, {
|
|
530
|
-
default:
|
|
570
|
+
default: P(() => [e.modelValue && e.icon ? (T(), s(i, {
|
|
531
571
|
key: 0,
|
|
532
572
|
name: "check",
|
|
533
573
|
size: 14,
|
|
@@ -535,14 +575,14 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
535
575
|
}, null, 8, ["class"])) : c("", !0)]),
|
|
536
576
|
_: 1
|
|
537
577
|
})], 6)
|
|
538
|
-
], 2)]), e.label ? (
|
|
578
|
+
], 2)]), e.label ? (T(), l("span", ge, A(e.label), 1)) : c("", !0)], 34));
|
|
539
579
|
}
|
|
540
|
-
}),
|
|
580
|
+
}), ve = [
|
|
541
581
|
"tabindex",
|
|
542
582
|
"aria-expanded",
|
|
543
583
|
"aria-controls",
|
|
544
584
|
"aria-disabled"
|
|
545
|
-
],
|
|
585
|
+
], ye = { class: "min-w-0 flex-1" }, be = ["id"], xe = ["src"], Se = { class: "min-w-0 flex-1" }, Ce = 4, we = 8, Te = 16, Ee = "button, a, input, select, textarea, label, [role=\"button\"], [role=\"switch\"], [role=\"checkbox\"], [role=\"radio\"], [role=\"link\"], [tabindex]", Z = /* @__PURE__ */ p({
|
|
546
586
|
inheritAttrs: !1,
|
|
547
587
|
__name: "MListItem",
|
|
548
588
|
props: {
|
|
@@ -585,79 +625,79 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
585
625
|
"update:expanded"
|
|
586
626
|
],
|
|
587
627
|
setup(e, { emit: t }) {
|
|
588
|
-
let n = e, d = t, p = m(), v = () => !!p?.vnode.props?.onClick, x =
|
|
589
|
-
|
|
628
|
+
let n = e, d = t, p = m(), v = () => !!p?.vnode.props?.onClick, x = D(n.expanded ?? !1);
|
|
629
|
+
N(() => n.expanded, (e) => {
|
|
590
630
|
e !== void 0 && (x.value = e);
|
|
591
631
|
});
|
|
592
|
-
let S = o(() => x.value), C = g("m-list", null),
|
|
593
|
-
if (
|
|
632
|
+
let S = o(() => x.value), C = g("m-list", null), w = o(() => n.lines ? n.lines : C?.lines.value ? C.lines.value : n.description || n.overline && n.subtitle ? 3 : n.subtitle || n.overline ? 2 : 1), E = o(() => n.clickable || n.href || n.to || v() || C?.selectable.value || n.expandable), k = o(() => !!C?.selectable.value && n.value != null && !n.href && !n.to && !n.expandable), M = o(() => !!(n.href || n.to)), F = o(() => !k.value && !M.value && !n.expandable && (n.clickable || v())), I = o(() => M.value || F.value), L = o(() => k.value ? "option" : F.value ? "button" : M.value ? void 0 : "listitem"), R = o(() => {
|
|
633
|
+
if (k.value) return B.value && !n.disabled ? 0 : -1;
|
|
594
634
|
if (F.value) return n.disabled ? -1 : 0;
|
|
595
635
|
});
|
|
596
|
-
function
|
|
597
|
-
(
|
|
636
|
+
function ne(e) {
|
|
637
|
+
(k.value || F.value) && (e.key !== "Enter" && e.key !== " " || e.target !== e.currentTarget || (e.preventDefault(), $(e)));
|
|
598
638
|
}
|
|
599
|
-
let
|
|
639
|
+
let B = o(() => n.active ? !0 : C?.selectable.value && n.value != null ? C.selected.value === n.value : !1), V = o(() => n.leading ? n.leading : n.icon ? "icon" : n.avatarName ? "avatar" : n.image ? "image" : null), H = o(() => n.expandable ? "expand" : n.trailing ? n.trailing : n.trailingIcon ? "icon" : n.trailingText ? "text" : null), re = {
|
|
600
640
|
primary: "bg-primary-container text-on-primary-container",
|
|
601
641
|
secondary: "bg-secondary-container text-on-secondary-container",
|
|
602
642
|
tertiary: "bg-tertiary-container text-on-tertiary-container",
|
|
603
643
|
error: "bg-error-container text-on-error-container",
|
|
604
644
|
success: "bg-success-container text-on-success-container"
|
|
605
|
-
},
|
|
645
|
+
}, U = o(() => C?.dense.value ?? !1), W = o(() => C?.nav.value ?? !1), ie = o(() => C?.segmented.value ?? !1), ae = o(() => C?.dividers.value ?? !1), oe = o(() => B.value ? "text-on-secondary-container" : "text-on-surface"), G = o(() => B.value ? "text-on-secondary-container" : "text-on-surface-variant"), se = o(() => U.value ? "" : w.value === 3 ? "min-h-22" : w.value === 2 ? "min-h-18" : "min-h-14"), le = o(() => [
|
|
606
646
|
"mli-row relative flex w-full items-center gap-4 text-left",
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
647
|
+
ie.value ? "bg-surface-container px-4" : W.value ? "rounded-full px-4" : "px-4",
|
|
648
|
+
U.value ? "py-1" : w.value === 3 ? "py-3" : "py-2",
|
|
649
|
+
se.value,
|
|
650
|
+
E.value && !n.disabled && "cursor-pointer",
|
|
651
|
+
B.value && "bg-secondary-container text-on-secondary-container",
|
|
612
652
|
n.disabled && "opacity-[0.38] pointer-events-none"
|
|
613
|
-
]), K =
|
|
653
|
+
]), K = D(null), ue = D(null), de = (e, { slots: t }) => I.value ? h("li", {
|
|
614
654
|
role: "listitem",
|
|
615
655
|
ref: (e) => {
|
|
616
|
-
|
|
656
|
+
ue.value = e;
|
|
617
657
|
}
|
|
618
|
-
}, t.default?.()) : t.default?.(),
|
|
619
|
-
if (
|
|
620
|
-
let e =
|
|
658
|
+
}, t.default?.()) : t.default?.(), fe = D(null), pe = (e) => e && "$el" in e ? e.$el : e, q = D(!1), J = D(!1), Y = D(!1), me = o(() => ie.value ? C?.segmentPosition(I.value ? ue.value : pe(K.value)) : void 0), he = o(() => {
|
|
659
|
+
if (W.value) return [];
|
|
660
|
+
let e = E.value && !n.disabled, t = e && J.value || B.value || e && Y.value ? Te : e && q.value ? we : null;
|
|
621
661
|
if (t !== null) return [
|
|
622
662
|
t,
|
|
623
663
|
t,
|
|
624
664
|
t,
|
|
625
665
|
t
|
|
626
666
|
];
|
|
627
|
-
let r =
|
|
667
|
+
let r = me.value, i = r === "first" || r === "single" ? Te : Ce, a = r === "last" || r === "single" ? Te : Ce;
|
|
628
668
|
return [
|
|
629
669
|
i,
|
|
630
670
|
i,
|
|
631
671
|
a,
|
|
632
672
|
a
|
|
633
673
|
];
|
|
634
|
-
}), { snap:
|
|
635
|
-
let t =
|
|
674
|
+
}), { snap: ge } = r(() => he.value, (e) => {
|
|
675
|
+
let t = fe.value ?? pe(K.value);
|
|
636
676
|
t && (t.style.borderRadius = e.length ? e.map((e) => `${e}px`).join(" ") : "");
|
|
637
677
|
});
|
|
638
|
-
|
|
639
|
-
function
|
|
640
|
-
let t = e.currentTarget, n = e.target?.closest?.(
|
|
678
|
+
N([me, W], () => ge());
|
|
679
|
+
function X(e) {
|
|
680
|
+
let t = e.currentTarget, n = e.target?.closest?.(Ee);
|
|
641
681
|
return !!n && n !== t && t.contains(n) && !n.closest("[data-mli-part]");
|
|
642
682
|
}
|
|
643
683
|
function Z(e) {
|
|
644
|
-
e.pointerType !== "touch" && (
|
|
684
|
+
e.pointerType !== "touch" && (q.value = !X(e));
|
|
645
685
|
}
|
|
646
686
|
function De() {
|
|
647
|
-
|
|
687
|
+
q.value = !1, J.value = !1;
|
|
648
688
|
}
|
|
649
689
|
function Oe(e) {
|
|
650
|
-
e.button === 0 && !
|
|
690
|
+
e.button === 0 && !X(e) && (J.value = !0);
|
|
651
691
|
}
|
|
652
692
|
function Q() {
|
|
653
|
-
|
|
693
|
+
J.value = !1;
|
|
654
694
|
}
|
|
655
|
-
let ke = o(() => !
|
|
695
|
+
let ke = o(() => !E.value || n.disabled ? 0 : J.value ? .12 : q.value ? .08 : 0), Ae = o(() => n.indent === void 0 ? void 0 : { paddingLeft: typeof n.indent == "number" ? `${n.indent}px` : n.indent });
|
|
656
696
|
function je(e) {
|
|
657
|
-
|
|
697
|
+
Y.value = e.currentTarget.matches(":focus-visible");
|
|
658
698
|
}
|
|
659
699
|
function Me() {
|
|
660
|
-
|
|
700
|
+
Y.value = !1;
|
|
661
701
|
}
|
|
662
702
|
let Ne = o(() => n.href ? "a" : n.to ? "router-link" : F.value ? "div" : "li"), Pe = o(() => n.href ? { href: n.href } : n.to ? { to: n.to } : {}), Fe = te();
|
|
663
703
|
function Ie(e) {
|
|
@@ -669,27 +709,25 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
669
709
|
function $(e) {
|
|
670
710
|
if (!n.disabled) {
|
|
671
711
|
if (n.expandable) {
|
|
672
|
-
if (
|
|
712
|
+
if (X(e)) return;
|
|
673
713
|
Le(e);
|
|
674
|
-
|
|
675
|
-
}
|
|
676
|
-
C?.selectable.value && n.value != null && C.select(n.value), d("click", e);
|
|
714
|
+
} else C?.selectable.value && n.value != null && C.select(n.value), d("click", e);
|
|
677
715
|
}
|
|
678
716
|
}
|
|
679
717
|
function Re() {
|
|
680
718
|
d("update:trailingValue", !n.trailingValue);
|
|
681
719
|
}
|
|
682
|
-
return (t, n) => e.expandable ? (
|
|
720
|
+
return (t, n) => e.expandable ? (T(), l("li", _({
|
|
683
721
|
key: 0,
|
|
684
722
|
ref_key: "rootEl",
|
|
685
723
|
ref: K
|
|
686
724
|
}, t.$attrs, { role: "listitem" }), [u("div", {
|
|
687
725
|
ref_key: "shapeEl",
|
|
688
|
-
ref:
|
|
726
|
+
ref: fe,
|
|
689
727
|
role: "button",
|
|
690
728
|
tabindex: e.disabled ? -1 : 0,
|
|
691
729
|
"aria-expanded": S.value,
|
|
692
|
-
"aria-controls":
|
|
730
|
+
"aria-controls": j(Fe),
|
|
693
731
|
"aria-disabled": e.disabled || void 0,
|
|
694
732
|
class: y(["focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary", le.value]),
|
|
695
733
|
onClick: $,
|
|
@@ -704,41 +742,41 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
704
742
|
onPointercancel: Q
|
|
705
743
|
}, [
|
|
706
744
|
u("span", {
|
|
707
|
-
class: y(["mli-state-layer pointer-events-none absolute inset-0 rounded-[inherit]",
|
|
745
|
+
class: y(["mli-state-layer pointer-events-none absolute inset-0 rounded-[inherit]", B.value ? "bg-on-secondary-container" : "bg-on-surface"]),
|
|
708
746
|
style: b({ opacity: ke.value }),
|
|
709
747
|
"aria-hidden": "true"
|
|
710
748
|
}, null, 6),
|
|
711
|
-
|
|
749
|
+
O(t.$slots, "leading", {}, () => [V.value === "icon" ? (T(), s(i, {
|
|
712
750
|
key: 0,
|
|
713
751
|
name: e.icon,
|
|
714
752
|
size: 24,
|
|
715
753
|
class: y(["shrink-0", G.value])
|
|
716
754
|
}, null, 8, ["name", "class"])) : c("", !0)]),
|
|
717
|
-
u("div",
|
|
755
|
+
u("div", ye, [O(t.$slots, "overline", {}, () => [e.overline ? (T(), l("p", {
|
|
718
756
|
key: 0,
|
|
719
757
|
class: y(["truncate text-label-small", G.value])
|
|
720
|
-
},
|
|
758
|
+
}, A(e.overline), 3)) : c("", !0)]), O(t.$slots, "default", {}, () => [u("p", { class: y(["truncate text-body-large", oe.value]) }, A(e.title), 3), e.subtitle && w.value >= 2 ? (T(), l("p", {
|
|
721
759
|
key: 0,
|
|
722
|
-
class: y(["text-body-medium", [G.value,
|
|
723
|
-
},
|
|
724
|
-
|
|
760
|
+
class: y(["text-body-medium", [G.value, w.value === 2 && "truncate"]])
|
|
761
|
+
}, A(e.subtitle), 3)) : c("", !0)])]),
|
|
762
|
+
O(t.$slots, "trailing"),
|
|
725
763
|
f(i, {
|
|
726
764
|
name: S.value ? "expand_less" : "expand_more",
|
|
727
765
|
size: 20,
|
|
728
766
|
class: y(["shrink-0", G.value])
|
|
729
767
|
}, null, 8, ["name", "class"])
|
|
730
|
-
], 42,
|
|
731
|
-
default:
|
|
768
|
+
], 42, ve), f(a, { name: "mli-expand" }, {
|
|
769
|
+
default: P(() => [S.value ? (T(), l("div", {
|
|
732
770
|
key: 0,
|
|
733
|
-
id:
|
|
771
|
+
id: j(Fe),
|
|
734
772
|
class: "mli-expand-grid"
|
|
735
773
|
}, [u("div", {
|
|
736
774
|
class: "mli-expand-body",
|
|
737
775
|
style: b(Ae.value)
|
|
738
|
-
}, [
|
|
776
|
+
}, [O(t.$slots, "children")], 4)], 8, be)) : c("", !0)]),
|
|
739
777
|
_: 3
|
|
740
|
-
})], 16)) : (
|
|
741
|
-
default:
|
|
778
|
+
})], 16)) : (T(), s(de, { key: 1 }, {
|
|
779
|
+
default: P(() => [(T(), s(ee(Ne.value), _({
|
|
742
780
|
class: le.value,
|
|
743
781
|
ref_key: "rootEl",
|
|
744
782
|
ref: K
|
|
@@ -748,10 +786,10 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
748
786
|
}, {
|
|
749
787
|
role: L.value,
|
|
750
788
|
tabindex: R.value,
|
|
751
|
-
"aria-selected":
|
|
752
|
-
"aria-disabled": (
|
|
789
|
+
"aria-selected": k.value ? B.value : void 0,
|
|
790
|
+
"aria-disabled": (k.value || F.value) && e.disabled ? "true" : void 0,
|
|
753
791
|
onClick: $,
|
|
754
|
-
onKeydown:
|
|
792
|
+
onKeydown: ne,
|
|
755
793
|
onPointerenter: Z,
|
|
756
794
|
onPointermove: Z,
|
|
757
795
|
onPointerleave: De,
|
|
@@ -761,70 +799,70 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
761
799
|
onFocus: je,
|
|
762
800
|
onBlur: Me
|
|
763
801
|
}), {
|
|
764
|
-
default:
|
|
802
|
+
default: P(() => [
|
|
765
803
|
u("span", {
|
|
766
|
-
class: y(["mli-state-layer pointer-events-none absolute inset-0 rounded-[inherit]",
|
|
804
|
+
class: y(["mli-state-layer pointer-events-none absolute inset-0 rounded-[inherit]", B.value ? "bg-on-secondary-container" : "bg-on-surface"]),
|
|
767
805
|
style: b({ opacity: ke.value }),
|
|
768
806
|
"aria-hidden": "true"
|
|
769
807
|
}, null, 6),
|
|
770
|
-
|
|
808
|
+
ae.value ? (T(), l("div", {
|
|
771
809
|
key: 0,
|
|
772
|
-
class: y(["absolute top-0 right-0 h-px bg-outline-variant",
|
|
810
|
+
class: y(["absolute top-0 right-0 h-px bg-outline-variant", ae.value === "inset" ? "left-16" : "left-0"])
|
|
773
811
|
}, null, 2)) : c("", !0),
|
|
774
|
-
|
|
812
|
+
O(t.$slots, "leading", {}, () => [V.value === "icon" ? (T(), s(i, {
|
|
775
813
|
key: 0,
|
|
776
814
|
name: e.icon,
|
|
777
815
|
size: 24,
|
|
778
816
|
class: y(["shrink-0", G.value])
|
|
779
|
-
}, null, 8, ["name", "class"])) :
|
|
817
|
+
}, null, 8, ["name", "class"])) : V.value === "icon-container" ? (T(), l("div", {
|
|
780
818
|
key: 1,
|
|
781
|
-
class: y(["flex h-10 w-10 shrink-0 items-center justify-center rounded-full",
|
|
819
|
+
class: y(["flex h-10 w-10 shrink-0 items-center justify-center rounded-full", re[e.iconContainerColor || "primary"]])
|
|
782
820
|
}, [f(i, {
|
|
783
821
|
name: e.icon,
|
|
784
822
|
size: 24
|
|
785
|
-
}, null, 8, ["name"])], 2)) :
|
|
823
|
+
}, null, 8, ["name"])], 2)) : V.value === "avatar" ? (T(), s(z, {
|
|
786
824
|
key: 2,
|
|
787
825
|
name: e.avatarName,
|
|
788
826
|
size: 40,
|
|
789
827
|
class: "shrink-0"
|
|
790
|
-
}, null, 8, ["name"])) :
|
|
828
|
+
}, null, 8, ["name"])) : V.value === "image" ? (T(), l("img", {
|
|
791
829
|
key: 3,
|
|
792
830
|
src: e.image,
|
|
793
831
|
alt: "",
|
|
794
832
|
class: "h-14 w-14 shrink-0 rounded-md object-cover"
|
|
795
|
-
}, null, 8,
|
|
833
|
+
}, null, 8, xe)) : V.value === "checkbox" ? (T(), s(ce, {
|
|
796
834
|
key: 4,
|
|
797
|
-
"model-value":
|
|
835
|
+
"model-value": B.value,
|
|
798
836
|
class: "shrink-0",
|
|
799
837
|
"data-mli-part": ""
|
|
800
838
|
}, null, 8, ["model-value"])) : c("", !0)]),
|
|
801
|
-
u("div",
|
|
839
|
+
u("div", Se, [O(t.$slots, "overline", {}, () => [e.overline ? (T(), l("p", {
|
|
802
840
|
key: 0,
|
|
803
841
|
class: y(["truncate text-label-small", G.value])
|
|
804
|
-
},
|
|
805
|
-
u("p", { class: y(["truncate text-body-large",
|
|
806
|
-
e.subtitle &&
|
|
842
|
+
}, A(e.overline), 3)) : c("", !0)]), O(t.$slots, "default", {}, () => [
|
|
843
|
+
u("p", { class: y(["truncate text-body-large", oe.value]) }, A(e.title), 3),
|
|
844
|
+
e.subtitle && w.value >= 2 ? (T(), l("p", {
|
|
807
845
|
key: 0,
|
|
808
|
-
class: y(["text-body-medium", [G.value,
|
|
809
|
-
},
|
|
810
|
-
e.description &&
|
|
846
|
+
class: y(["text-body-medium", [G.value, w.value === 2 && "truncate"]])
|
|
847
|
+
}, A(e.subtitle), 3)) : c("", !0),
|
|
848
|
+
e.description && w.value >= 3 ? (T(), l("p", {
|
|
811
849
|
key: 1,
|
|
812
850
|
class: y(["line-clamp-2 text-body-small", G.value])
|
|
813
|
-
},
|
|
851
|
+
}, A(e.description), 3)) : c("", !0)
|
|
814
852
|
])]),
|
|
815
|
-
|
|
853
|
+
O(t.$slots, "trailing", {}, () => [H.value === "icon" ? (T(), s(i, {
|
|
816
854
|
key: 0,
|
|
817
855
|
name: e.trailingIcon,
|
|
818
856
|
size: 24,
|
|
819
857
|
class: y(["shrink-0", G.value])
|
|
820
|
-
}, null, 8, ["name", "class"])) :
|
|
858
|
+
}, null, 8, ["name", "class"])) : H.value === "text" ? (T(), l("span", {
|
|
821
859
|
key: 1,
|
|
822
860
|
class: y(["shrink-0 text-label-small", G.value])
|
|
823
|
-
},
|
|
861
|
+
}, A(e.trailingText), 3)) : H.value === "switch" ? (T(), s(_e, {
|
|
824
862
|
key: 2,
|
|
825
863
|
"model-value": !!e.trailingValue,
|
|
826
864
|
"onUpdate:modelValue": Re
|
|
827
|
-
}, null, 8, ["model-value"])) :
|
|
865
|
+
}, null, 8, ["model-value"])) : H.value === "checkbox" ? (T(), s(ce, {
|
|
828
866
|
key: 3,
|
|
829
867
|
"model-value": !!e.trailingValue,
|
|
830
868
|
"onUpdate:modelValue": Re
|
|
@@ -842,7 +880,6 @@ var ue = ["role"], de = /* @__PURE__ */ p({
|
|
|
842
880
|
}));
|
|
843
881
|
}
|
|
844
882
|
});
|
|
845
|
-
|
|
846
|
-
export { K as a, ne as c, q as i, pe as n, ae as o, de as r, ie as s, Ce as t };
|
|
883
|
+
export { pe as a, z as c, q as i, R as l, _e as n, ce as o, Y as r, ae as s, Z as t };
|
|
847
884
|
|
|
848
|
-
//# sourceMappingURL=MListItem-
|
|
885
|
+
//# sourceMappingURL=MListItem-D2cNUyzP.js.map
|