@robot-admin/naive-ui-components 0.10.3 → 0.11.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 +111 -100
- package/LICENSE +21 -21
- package/README.md +463 -318
- package/README_EN.md +404 -0
- package/SECURITY.md +23 -0
- package/dist/C_ActionBar.cjs +1 -1
- package/dist/C_ActionBar.css +46 -48
- package/dist/C_ActionBar.d.cts +1 -1
- package/dist/C_ActionBar.js +1 -1
- package/dist/C_ActionBar2.cjs +1 -0
- package/dist/C_ActionBar2.js +1 -2
- package/dist/C_AntV.cjs +1 -1
- package/dist/C_AntV.css +3 -3
- package/dist/C_AntV.d.cts +1 -1
- package/dist/C_AntV.js +1 -1
- package/dist/C_AntV2.cjs +4 -0
- package/dist/C_AntV2.js +3 -4
- package/dist/C_AudioPlayer.cjs +1 -1
- package/dist/C_AudioPlayer.css +15 -7
- package/dist/C_AudioPlayer.d.cts +1 -1
- package/dist/C_AudioPlayer.js +1 -1
- package/dist/C_AudioPlayer2.cjs +1 -0
- package/dist/C_AudioPlayer2.js +1 -2
- package/dist/C_AvatarGroup.cjs +1 -1
- package/dist/C_AvatarGroup.css +15 -7
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup2.cjs +1 -0
- package/dist/C_AvatarGroup2.js +1 -2
- package/dist/C_Barcode.cjs +1 -1
- package/dist/C_Barcode.css +0 -2
- package/dist/C_Barcode.d.cts +1 -1
- package/dist/C_Barcode2.cjs +1 -0
- package/dist/C_Barcode2.js +1 -2
- package/dist/C_Breadcrumb.cjs +1 -1
- package/dist/C_Breadcrumb.css +0 -2
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +1 -2
- package/dist/C_Breadcrumb.js +1 -1
- package/dist/C_Breadcrumb2.cjs +1 -0
- package/dist/C_Breadcrumb2.js +1 -2
- package/dist/C_Captcha.cjs +1 -1
- package/dist/C_Captcha.css +46 -21
- package/dist/C_Captcha.d.cts +3 -2
- package/dist/C_Captcha.d.ts +3 -2
- package/dist/C_Captcha.js +1 -1
- package/dist/C_Captcha2.cjs +1 -0
- package/dist/C_Captcha2.js +1 -2
- package/dist/C_Cascade.cjs +1 -1
- package/dist/C_Cascade.css +0 -2
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_Cascade2.cjs +1 -0
- package/dist/C_Cascade2.js +1 -2
- package/dist/C_Chat.cjs +1 -1
- package/dist/C_Chat.css +0 -2
- package/dist/C_Chat.d.cts +1 -1
- package/dist/C_Chat.d.ts +1 -1
- package/dist/C_Chat.js +1 -1
- package/dist/C_Chat2.cjs +1 -0
- package/dist/C_Chat2.js +1 -2
- package/dist/C_City.cjs +1 -1
- package/dist/C_City.css +28 -30
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_City2.cjs +1 -0
- package/dist/C_City2.js +1 -2
- package/dist/C_Code.cjs +1 -1
- package/dist/C_Code.css +241 -4
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_Code.js +1 -1
- package/dist/C_Code2.cjs +1 -0
- package/dist/C_Code2.js +1 -2
- package/dist/C_CollapsePanel.cjs +1 -1
- package/dist/C_CollapsePanel.css +12 -6
- package/dist/C_CollapsePanel.d.cts +1 -1
- package/dist/C_CollapsePanel.js +1 -1
- package/dist/C_CollapsePanel2.cjs +1 -0
- package/dist/C_CollapsePanel2.js +1 -2
- package/dist/C_ContextMenu.cjs +1 -1
- package/dist/C_ContextMenu.css +16 -18
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_ContextMenu.js +1 -1
- package/dist/C_ContextMenu2.cjs +1 -0
- package/dist/C_ContextMenu2.js +1 -2
- package/dist/C_Cron.cjs +1 -1
- package/dist/C_Cron.css +18 -8
- package/dist/C_Cron.d.cts +1 -1
- package/dist/C_Cron.js +1 -1
- package/dist/C_Cron2.cjs +1 -0
- package/dist/C_Cron2.js +1 -2
- package/dist/C_Date.cjs +1 -1
- package/dist/C_Date.css +1 -0
- package/dist/C_Date.d.cts +2 -2
- package/dist/C_Date.d.ts +2 -2
- package/dist/C_Date2.cjs +1 -0
- package/dist/C_Date2.js +1 -2
- package/dist/C_Draggable.cjs +1 -1
- package/dist/C_Draggable.css +9 -5
- package/dist/C_Draggable.d.cts +1 -1
- package/dist/C_Draggable2.cjs +1 -0
- package/dist/C_Draggable2.js +1 -2
- package/dist/C_Editor.cjs +1 -1
- package/dist/C_Editor.css +80 -67
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_Editor2.cjs +1 -0
- package/dist/C_Editor2.js +1 -2
- package/dist/C_FilePreview.cjs +1 -1
- package/dist/C_FilePreview.css +0 -2
- package/dist/C_FilePreview.d.cts +1 -1
- package/dist/C_FilePreview.js +1 -1
- package/dist/C_FilePreview2.cjs +1 -0
- package/dist/C_FilePreview2.js +1 -2
- package/dist/C_Form.base.css +980 -0
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +256 -155
- package/dist/C_Form.d.cts +2 -2
- package/dist/C_Form.d.ts +2 -2
- package/dist/C_Form.js +1 -1
- package/dist/C_Form2.cjs +1 -0
- package/dist/C_Form2.js +1 -2
- package/dist/C_FormSearch.cjs +1 -1
- package/dist/C_FormSearch.css +47 -47
- package/dist/C_FormSearch.d.cts +2 -2
- package/dist/C_FormSearch.d.ts +2 -2
- package/dist/C_FormSearch2.cjs +1 -0
- package/dist/C_FormSearch2.js +1 -2
- package/dist/C_FormulaEditor.cjs +1 -1
- package/dist/C_FormulaEditor.css +64 -38
- package/dist/C_FormulaEditor.d.cts +1 -1
- package/dist/C_FormulaEditor.js +1 -1
- package/dist/C_FormulaEditor2.cjs +2 -0
- package/dist/C_FormulaEditor2.js +2 -2
- package/dist/C_FullCalendar.cjs +1 -1
- package/dist/C_FullCalendar.css +0 -2
- package/dist/C_FullCalendar.d.cts +1 -1
- package/dist/C_FullCalendar2.cjs +1 -0
- package/dist/C_FullCalendar2.js +1 -2
- package/dist/C_GlobalSearch.cjs +1 -1
- package/dist/C_GlobalSearch.css +111 -113
- package/dist/C_GlobalSearch.d.cts +1 -1
- package/dist/C_GlobalSearch2.cjs +1 -0
- package/dist/C_GlobalSearch2.js +1 -2
- package/dist/C_Guide.cjs +1 -1
- package/dist/C_Guide.css +1 -0
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Guide.js +1 -1
- package/dist/C_Guide2.cjs +1 -0
- package/dist/C_Guide2.js +1 -2
- package/dist/C_Icon.cjs +1 -1
- package/dist/C_Icon.css +58 -0
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_Icon2.cjs +1 -0
- package/dist/C_Icon2.js +1 -2
- package/dist/C_ImageCropper.cjs +1 -1
- package/dist/C_ImageCropper.css +0 -2
- package/dist/C_ImageCropper.d.cts +1 -1
- package/dist/C_ImageCropper.js +1 -1
- package/dist/C_ImageCropper2.cjs +1 -0
- package/dist/C_ImageCropper2.js +1 -2
- package/dist/C_Language.cjs +1 -1
- package/dist/C_Language.css +1 -0
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Language.js +1 -1
- package/dist/C_Language2.cjs +1 -0
- package/dist/C_Language2.js +1 -2
- package/dist/C_Login.cjs +1 -1
- package/dist/C_Login.css +92 -76
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Login.js +1 -1
- package/dist/C_Login2.cjs +1 -0
- package/dist/C_Login2.js +1 -2
- package/dist/C_Map.cjs +1 -1
- package/dist/C_Map.css +665 -5
- package/dist/C_Map.d.cts +1 -1
- package/dist/C_Map2.cjs +1 -0
- package/dist/C_Map2.js +1 -2
- package/dist/C_Markdown.cjs +1 -1
- package/dist/C_Markdown.css +940 -35
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Markdown2.cjs +1 -0
- package/dist/C_Markdown2.js +1 -2
- package/dist/C_Menu.cjs +1 -1
- package/dist/C_Menu.css +1 -0
- package/dist/C_Menu.d.cts +3 -3
- package/dist/C_Menu.d.ts +3 -4
- package/dist/C_Menu.js +1 -1
- package/dist/C_Menu2.cjs +1 -0
- package/dist/C_Menu2.js +1 -2
- package/dist/C_NotificationCenter.cjs +1 -1
- package/dist/C_NotificationCenter.css +95 -47
- package/dist/C_NotificationCenter.d.cts +1 -1
- package/dist/C_NotificationCenter.js +1 -1
- package/dist/C_NotificationCenter2.cjs +1 -0
- package/dist/C_NotificationCenter2.js +1 -2
- package/dist/C_OrgChart.cjs +1 -1
- package/dist/C_OrgChart.css +6 -4
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_OrgChart2.cjs +1 -0
- package/dist/C_OrgChart2.js +1 -2
- package/dist/C_Progress.cjs +1 -1
- package/dist/C_Progress.css +1 -0
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_Progress2.cjs +1 -0
- package/dist/C_Progress2.js +1 -2
- package/dist/C_QRCode.cjs +1 -1
- package/dist/C_QRCode.css +8 -10
- package/dist/C_QRCode.d.cts +1 -1
- package/dist/C_QRCode2.cjs +1 -0
- package/dist/C_QRCode2.js +1 -2
- package/dist/C_Signature.cjs +1 -1
- package/dist/C_Signature.css +0 -2
- package/dist/C_Signature.d.cts +1 -1
- package/dist/C_Signature.js +1 -1
- package/dist/C_Signature2.cjs +1 -0
- package/dist/C_Signature2.js +1 -2
- package/dist/C_Skeleton.cjs +1 -1
- package/dist/C_Skeleton.css +0 -2
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Skeleton2.cjs +1 -0
- package/dist/C_Skeleton2.js +1 -2
- package/dist/C_SplitPane.cjs +1 -1
- package/dist/C_SplitPane.css +27 -11
- package/dist/C_SplitPane.d.cts +1 -1
- package/dist/C_SplitPane.js +1 -1
- package/dist/C_SplitPane2.cjs +1 -0
- package/dist/C_SplitPane2.js +1 -2
- package/dist/C_Steps.cjs +1 -1
- package/dist/C_Steps.css +37 -39
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Steps2.cjs +1 -0
- package/dist/C_Steps2.js +1 -2
- package/dist/C_Table.base.css +1588 -0
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +1202 -112
- package/dist/C_Table.d.cts +2 -2
- package/dist/C_Table.d.ts +11 -2
- package/dist/C_Table.js +1 -1
- package/dist/C_TagsView.cjs +1 -1
- package/dist/C_TagsView.css +44 -40
- package/dist/C_TagsView.d.cts +2 -2
- package/dist/C_TagsView.d.ts +2 -3
- package/dist/C_TagsView.js +1 -1
- package/dist/C_TagsView2.cjs +1 -0
- package/dist/C_TagsView2.js +1 -2
- package/dist/C_Theme.cjs +1 -1
- package/dist/C_Theme.css +1 -0
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Theme.js +1 -1
- package/dist/C_Theme2.cjs +1 -0
- package/dist/C_Theme2.js +1 -2
- package/dist/C_Time.cjs +1 -1
- package/dist/C_Time.css +0 -2
- package/dist/C_Time.d.cts +2 -2
- package/dist/C_Time.d.ts +2 -2
- package/dist/C_Time2.cjs +1 -0
- package/dist/C_Time2.js +1 -2
- package/dist/C_Timeline.cjs +1 -1
- package/dist/C_Timeline.css +44 -46
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.js +1 -1
- package/dist/C_Timeline2.cjs +1 -0
- package/dist/C_Timeline2.js +1 -2
- package/dist/C_Transfer.cjs +1 -1
- package/dist/C_Transfer.css +21 -9
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.js +1 -1
- package/dist/C_Transfer2.cjs +1 -0
- package/dist/C_Transfer2.js +1 -2
- package/dist/C_Tree.cjs +1 -1
- package/dist/C_Tree.css +0 -2
- package/dist/C_Tree.d.cts +1 -1
- package/dist/C_Tree.js +1 -1
- package/dist/C_Tree2.cjs +1 -0
- package/dist/C_Tree2.js +1 -2
- package/dist/C_Upload.cjs +1 -1
- package/dist/C_Upload.css +17 -17
- package/dist/C_Upload.d.cts +1 -1
- package/dist/C_Upload.js +1 -1
- package/dist/C_Upload2.cjs +1 -0
- package/dist/C_Upload2.js +1 -25
- package/dist/C_VideoPlayer.cjs +1 -1
- package/dist/C_VideoPlayer.css +35 -24
- package/dist/C_VideoPlayer.d.cts +2 -2
- package/dist/C_VideoPlayer.d.ts +2 -2
- package/dist/C_VideoPlayer.js +1 -1
- package/dist/C_VideoPlayer2.cjs +3 -0
- package/dist/C_VideoPlayer2.js +3 -4
- package/dist/C_VtableGantt.cjs +1 -1
- package/dist/C_VtableGantt.css +15 -7
- package/dist/C_VtableGantt.d.cts +1 -1
- package/dist/C_VtableGantt.d.ts +1 -1
- package/dist/C_VtableGantt.js +1 -1
- package/dist/C_VtableGantt2.cjs +1 -0
- package/dist/C_VtableGantt2.js +1 -2
- package/dist/C_WaterFall.cjs +1 -1
- package/dist/C_WaterFall.css +15 -17
- package/dist/C_WaterFall.d.cts +1 -1
- package/dist/C_WaterFall2.cjs +1 -0
- package/dist/C_WaterFall2.js +1 -2
- package/dist/C_WorkFlow.cjs +1 -1
- package/dist/C_WorkFlow.css +257 -197
- package/dist/C_WorkFlow.d.cts +1 -1
- package/dist/C_WorkFlow.js +1 -1
- package/dist/C_WorkFlow2.cjs +1 -0
- package/dist/C_WorkFlow2.js +1 -2
- package/dist/city.cjs +1 -0
- package/dist/city.js +1 -2
- package/dist/config.cjs +1 -0
- package/dist/config.d.cts +33 -0
- package/dist/config.d.ts +33 -0
- package/dist/config.js +1 -0
- package/dist/constants.d.cts +272 -0
- package/dist/constants.d.ts +6 -7
- package/dist/constants2.d.cts +177 -0
- package/dist/constants2.d.ts +5 -6
- package/dist/constants3.d.cts +479 -0
- package/dist/constants3.d.ts +17 -13
- package/dist/constants4.d.cts +420 -0
- package/dist/constants4.d.ts +30 -40
- package/dist/constants5.d.cts +491 -0
- package/dist/constants5.d.ts +22 -6
- package/dist/data.cjs +1 -0
- package/dist/data.d.cts +67 -0
- package/dist/data.d.ts +13 -13
- package/dist/data.js +1 -0
- package/dist/export-helper.cjs +1 -0
- package/dist/helpers.cjs +1 -0
- package/dist/helpers.js +1 -0
- package/dist/html.cjs +1 -0
- package/dist/html.js +1 -0
- package/dist/images/marker-icon-2x.png +0 -0
- package/dist/images/marker-icon.png +0 -0
- package/dist/images/marker-shadow.png +0 -0
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +60 -99
- package/dist/index.d.ts +41 -83
- package/dist/index.js +1 -2
- package/dist/index.vue.d.cts +79 -0
- package/dist/index.vue.d.ts +3 -4
- package/dist/index10.vue.d.cts +47 -0
- package/dist/index10.vue.d.ts +80 -40
- package/dist/index11.vue.d.cts +88 -0
- package/dist/index11.vue.d.ts +68 -78
- package/dist/index12.vue.d.cts +79 -0
- package/dist/index12.vue.d.ts +49 -45
- package/dist/index13.vue.d.cts +64 -0
- package/dist/index13.vue.d.ts +99 -34
- package/dist/index14.vue.d.cts +106 -0
- package/dist/index14.vue.d.ts +82 -99
- package/dist/index15.vue.d.cts +91 -0
- package/dist/index15.vue.d.ts +25 -83
- package/dist/index16.vue.d.cts +34 -0
- package/dist/index16.vue.d.ts +113 -24
- package/dist/index17.vue.d.cts +124 -0
- package/dist/index17.vue.d.ts +76 -110
- package/dist/index18.vue.d.cts +83 -0
- package/dist/index18.vue.d.ts +67 -73
- package/dist/index19.vue.d.cts +101 -0
- package/dist/index19.vue.d.ts +93 -59
- package/dist/index2.vue.d.cts +82 -0
- package/dist/index2.vue.d.ts +1 -2
- package/dist/index20.vue.d.cts +54 -0
- package/dist/index20.vue.d.ts +40 -88
- package/dist/index21.vue.d.cts +103 -0
- package/dist/index21.vue.d.ts +89 -41
- package/dist/index22.vue.d.cts +45 -0
- package/dist/index22.vue.d.ts +37 -96
- package/dist/index23.vue.d.cts +19 -0
- package/dist/index23.vue.d.ts +8 -35
- package/dist/{index28.vue.d.ts → index24.vue.d.cts} +5 -6
- package/dist/index24.vue.d.ts +650 -86
- package/dist/index25.vue.d.cts +96 -0
- package/dist/index25.vue.d.ts +86 -10
- package/dist/index26.vue.d.cts +111 -0
- package/dist/index26.vue.d.ts +3 -4
- package/dist/index27.vue.d.cts +80 -0
- package/dist/index27.vue.d.ts +3 -4
- package/dist/index3.vue.d.cts +87 -0
- package/dist/index3.vue.d.ts +2 -3
- package/dist/index4.vue.d.cts +37 -0
- package/dist/index4.vue.d.ts +5 -6
- package/dist/index5.vue.d.cts +133 -0
- package/dist/index5.vue.d.ts +2 -3
- package/dist/index6.vue.d.cts +29 -0
- package/dist/index6.vue.d.ts +25 -38
- package/dist/index7.vue.d.cts +32 -0
- package/dist/index7.vue.d.ts +117 -23
- package/dist/index8.vue.d.cts +127 -0
- package/dist/index8.vue.d.ts +17 -111
- package/dist/index9.vue.d.cts +34 -0
- package/dist/index9.vue.d.ts +38 -26
- package/dist/{menuAdapter.d.ts → public.d.ts} +2 -3
- package/dist/resolver.cjs +1 -2
- package/dist/resolver.d.cts +6 -4
- package/dist/resolver.d.ts +6 -4
- package/dist/resolver.js +1 -2
- package/dist/storage.cjs +1 -0
- package/dist/storage.js +1 -2
- package/dist/style.css +9864 -7702
- package/dist/types.d.cts +107 -0
- package/dist/types.d.ts +58 -0
- package/dist/types2.d.cts +58 -0
- package/dist/useCalendarEvents.d.cts +150 -0
- package/dist/useCalendarEvents.d.ts +3 -4
- package/dist/useCollapsePanel.d.cts +133 -0
- package/dist/useCollapsePanel.d.ts +1 -2
- package/dist/useCropperCore.d.cts +104 -0
- package/dist/useCropperCore.d.ts +12 -10
- package/dist/useDraggableLayout.d.cts +196 -0
- package/dist/useDraggableLayout.d.ts +18 -16
- package/dist/useDynamicFormState.d.cts +749 -0
- package/dist/useDynamicFormState.d.ts +234 -112
- package/dist/useEdgeInteraction.d.cts +324 -0
- package/dist/useEdgeInteraction.d.ts +6 -7
- package/dist/useFullscreen.d.cts +165 -0
- package/dist/useFullscreen.d.ts +1 -2
- package/dist/useGlobalSearch.d.cts +110 -0
- package/dist/useGlobalSearch.d.ts +17 -9
- package/dist/useInfiniteScroll.d.cts +177 -0
- package/dist/useInfiniteScroll.d.ts +11 -3
- package/dist/useQRCode.d.cts +89 -0
- package/dist/useQRCode.d.ts +7 -5
- package/dist/useSearchState.d.cts +871 -0
- package/dist/useSearchState.d.ts +828 -28
- package/dist/useSignatureHistory.d.cts +197 -0
- package/dist/useSignatureHistory.d.ts +9 -4
- package/dist/useSplitResize.d.cts +157 -0
- package/dist/useSplitResize.d.ts +3 -4
- package/dist/useTableQuery.cjs +3 -0
- package/dist/{useModalEdit.d.ts → useTableQuery.d.cts} +624 -211
- package/dist/useTableQuery.d.ts +1721 -0
- package/dist/useTableQuery.js +3 -0
- package/dist/useTimeSelection.d.cts +116 -0
- package/dist/useTimeSelection.d.ts +19 -8
- package/dist/useTreeOperations.d.cts +185 -0
- package/dist/useTreeOperations.d.ts +14 -12
- package/dist/useWorkflowValidation.d.cts +1051 -0
- package/dist/useWorkflowValidation.d.ts +66 -67
- package/dist/verification.d.cts +58 -0
- package/dist/verification.d.ts +58 -0
- package/package.json +101 -69
- package/dist/C_ActionBar-BAcfOfRw.css.map +0 -1
- package/dist/C_ActionBar-DG2HW7t5.css.map +0 -1
- package/dist/C_ActionBar.js.map +0 -1
- package/dist/C_ActionBar2.js.map +0 -1
- package/dist/C_AntV-D_jTK8oZ.css.map +0 -1
- package/dist/C_AntV-DanTAq22.css.map +0 -1
- package/dist/C_AntV.js.map +0 -1
- package/dist/C_AntV2.js.map +0 -1
- package/dist/C_AudioPlayer-BnYIJXPD.css.map +0 -1
- package/dist/C_AudioPlayer-ldTy9Y34.css.map +0 -1
- package/dist/C_AudioPlayer.js.map +0 -1
- package/dist/C_AudioPlayer2.js.map +0 -1
- package/dist/C_AvatarGroup-B9d-GJ9c.css.map +0 -1
- package/dist/C_AvatarGroup-SIzxuuZr.css.map +0 -1
- package/dist/C_AvatarGroup.js.map +0 -1
- package/dist/C_AvatarGroup2.js.map +0 -1
- package/dist/C_Barcode-CAU2mFcx.css.map +0 -1
- package/dist/C_Barcode-D2oJaEg3.css.map +0 -1
- package/dist/C_Barcode.js.map +0 -1
- package/dist/C_Barcode2.js.map +0 -1
- package/dist/C_Breadcrumb-BiH0d9AI.css.map +0 -1
- package/dist/C_Breadcrumb-Bqqrl8nX.css.map +0 -1
- package/dist/C_Breadcrumb.js.map +0 -1
- package/dist/C_Breadcrumb2.js.map +0 -1
- package/dist/C_Captcha-B3yrtG7t.css.map +0 -1
- package/dist/C_Captcha-D4hDdWDu.css.map +0 -1
- package/dist/C_Captcha.js.map +0 -1
- package/dist/C_Captcha2.js.map +0 -1
- package/dist/C_Cascade-CmCrLVft.css.map +0 -1
- package/dist/C_Cascade-U6A5AJJb.css.map +0 -1
- package/dist/C_Cascade.js.map +0 -1
- package/dist/C_Cascade2.js.map +0 -1
- package/dist/C_Chat-CF1SU7mc.css.map +0 -1
- package/dist/C_Chat-DeUv6uuI.css.map +0 -1
- package/dist/C_Chat.js.map +0 -1
- package/dist/C_Chat2.js.map +0 -1
- package/dist/C_City-DdkX6u64.css.map +0 -1
- package/dist/C_City-iP-dIvui.css.map +0 -1
- package/dist/C_City.js.map +0 -1
- package/dist/C_City2.js.map +0 -1
- package/dist/C_Code-BWmJMNS7.css.map +0 -1
- package/dist/C_Code-k14vjgVl.css.map +0 -1
- package/dist/C_Code.js.map +0 -1
- package/dist/C_Code2.js.map +0 -1
- package/dist/C_CollapsePanel-BSKcWSmY.css.map +0 -1
- package/dist/C_CollapsePanel-DRvRq8tB.css.map +0 -1
- package/dist/C_CollapsePanel.js.map +0 -1
- package/dist/C_CollapsePanel2.js.map +0 -1
- package/dist/C_ContextMenu-Bn_uhJSo.css.map +0 -1
- package/dist/C_ContextMenu-C9iuxG2n.css.map +0 -1
- package/dist/C_ContextMenu.js.map +0 -1
- package/dist/C_ContextMenu2.js.map +0 -1
- package/dist/C_Cron-BIQ2By9v.css.map +0 -1
- package/dist/C_Cron-BNSAGD6A.css.map +0 -1
- package/dist/C_Cron.js.map +0 -1
- package/dist/C_Cron2.js.map +0 -1
- package/dist/C_Date.js.map +0 -1
- package/dist/C_Date2.js.map +0 -1
- package/dist/C_Draggable-BDAbk4s5.css.map +0 -1
- package/dist/C_Draggable-UhfDLXop.css.map +0 -1
- package/dist/C_Draggable.js.map +0 -1
- package/dist/C_Draggable2.js.map +0 -1
- package/dist/C_Editor-CZOaChru.css.map +0 -1
- package/dist/C_Editor-kJAQq5z6.css.map +0 -1
- package/dist/C_Editor.js.map +0 -1
- package/dist/C_Editor2.js.map +0 -1
- package/dist/C_FilePreview-Bs_omgJS.css.map +0 -1
- package/dist/C_FilePreview-DbwoyF2j.css.map +0 -1
- package/dist/C_FilePreview.js.map +0 -1
- package/dist/C_FilePreview2.js.map +0 -1
- package/dist/C_Form-B_2ql62V.css.map +0 -1
- package/dist/C_Form-CX-7xsz3.css.map +0 -1
- package/dist/C_Form.js.map +0 -1
- package/dist/C_Form2.js.map +0 -1
- package/dist/C_FormSearch-C3F8peAY.css.map +0 -1
- package/dist/C_FormSearch-qW56bJPo.css.map +0 -1
- package/dist/C_FormSearch.js.map +0 -1
- package/dist/C_FormSearch2.js.map +0 -1
- package/dist/C_FormulaEditor-ChOvDbsZ.css.map +0 -1
- package/dist/C_FormulaEditor-mfiIUDY4.css.map +0 -1
- package/dist/C_FormulaEditor.js.map +0 -1
- package/dist/C_FormulaEditor2.js.map +0 -1
- package/dist/C_FullCalendar-C2nsqrgS.css.map +0 -1
- package/dist/C_FullCalendar-DdFtXVhy.css.map +0 -1
- package/dist/C_FullCalendar.js.map +0 -1
- package/dist/C_FullCalendar2.js.map +0 -1
- package/dist/C_GlobalSearch-Dq4Wo01K.css.map +0 -1
- package/dist/C_GlobalSearch-RB7J43gu.css.map +0 -1
- package/dist/C_GlobalSearch.js.map +0 -1
- package/dist/C_GlobalSearch2.js.map +0 -1
- package/dist/C_Guide.js.map +0 -1
- package/dist/C_Guide2.js.map +0 -1
- package/dist/C_Icon.js.map +0 -1
- package/dist/C_Icon2.js.map +0 -1
- package/dist/C_ImageCropper-CdTX2nxU.css.map +0 -1
- package/dist/C_ImageCropper-ilOqPklJ.css.map +0 -1
- package/dist/C_ImageCropper.js.map +0 -1
- package/dist/C_ImageCropper2.js.map +0 -1
- package/dist/C_Language.js.map +0 -1
- package/dist/C_Language2.js.map +0 -1
- package/dist/C_Login-B3qYkLrN.css.map +0 -1
- package/dist/C_Login-xMI1_ojE.css.map +0 -1
- package/dist/C_Login.js.map +0 -1
- package/dist/C_Login2.js.map +0 -1
- package/dist/C_Map-CWMMN58_.css.map +0 -1
- package/dist/C_Map-xSR2H-9o.css.map +0 -1
- package/dist/C_Map.js.map +0 -1
- package/dist/C_Map2.js.map +0 -1
- package/dist/C_Markdown-C7lTVJ1S.css.map +0 -1
- package/dist/C_Markdown-CZDm_baQ.css.map +0 -1
- package/dist/C_Markdown.js.map +0 -1
- package/dist/C_Markdown2.js.map +0 -1
- package/dist/C_Menu.js.map +0 -1
- package/dist/C_Menu2.js.map +0 -1
- package/dist/C_NotificationCenter-D7GGGWg7.css.map +0 -1
- package/dist/C_NotificationCenter-SSmeHA45.css.map +0 -1
- package/dist/C_NotificationCenter.js.map +0 -1
- package/dist/C_NotificationCenter2.js.map +0 -1
- package/dist/C_OrgChart-ChZu346B.css.map +0 -1
- package/dist/C_OrgChart-DqBufOv5.css.map +0 -1
- package/dist/C_OrgChart.js.map +0 -1
- package/dist/C_OrgChart2.js.map +0 -1
- package/dist/C_Progress.js.map +0 -1
- package/dist/C_Progress2.js.map +0 -1
- package/dist/C_QRCode-B_1lHUdx.css.map +0 -1
- package/dist/C_QRCode-CuQRYu0s.css.map +0 -1
- package/dist/C_QRCode.js.map +0 -1
- package/dist/C_QRCode2.js.map +0 -1
- package/dist/C_Signature-Bp-RBpAl.css.map +0 -1
- package/dist/C_Signature-Cb2VW1ok.css.map +0 -1
- package/dist/C_Signature.js.map +0 -1
- package/dist/C_Signature2.js.map +0 -1
- package/dist/C_Skeleton-BNPbaut7.css.map +0 -1
- package/dist/C_Skeleton-Djsjw8XY.css.map +0 -1
- package/dist/C_Skeleton.js.map +0 -1
- package/dist/C_Skeleton2.js.map +0 -1
- package/dist/C_SplitPane-CgGWYsRE.css.map +0 -1
- package/dist/C_SplitPane-DGf6WEeR.css.map +0 -1
- package/dist/C_SplitPane.js.map +0 -1
- package/dist/C_SplitPane2.js.map +0 -1
- package/dist/C_Steps-27Exh7PM.css.map +0 -1
- package/dist/C_Steps-DU9ZsFrs.css.map +0 -1
- package/dist/C_Steps.js.map +0 -1
- package/dist/C_Steps2.js.map +0 -1
- package/dist/C_Table--kbQaaBv.css.map +0 -1
- package/dist/C_Table-D631kdXC.css.map +0 -1
- package/dist/C_Table.js.map +0 -1
- package/dist/C_Table2.js +0 -4
- package/dist/C_Table2.js.map +0 -1
- package/dist/C_TagsView-BN8vMRsY.css.map +0 -1
- package/dist/C_TagsView-s1dnSJAV.css.map +0 -1
- package/dist/C_TagsView.js.map +0 -1
- package/dist/C_TagsView2.js.map +0 -1
- package/dist/C_Theme.js.map +0 -1
- package/dist/C_Theme2.js.map +0 -1
- package/dist/C_Time-BQ9PGy8B.css.map +0 -1
- package/dist/C_Time-CO73krC6.css.map +0 -1
- package/dist/C_Time.js.map +0 -1
- package/dist/C_Time2.js.map +0 -1
- package/dist/C_Timeline-4rk0Dzgn.css.map +0 -1
- package/dist/C_Timeline-DdESmqwL.css.map +0 -1
- package/dist/C_Timeline.js.map +0 -1
- package/dist/C_Timeline2.js.map +0 -1
- package/dist/C_Transfer-B-vjvhjI.css.map +0 -1
- package/dist/C_Transfer-EzdHzZNv.css.map +0 -1
- package/dist/C_Transfer.js.map +0 -1
- package/dist/C_Transfer2.js.map +0 -1
- package/dist/C_Tree-CsXgGfhn.css.map +0 -1
- package/dist/C_Tree-P7eRpnOa.css.map +0 -1
- package/dist/C_Tree.js.map +0 -1
- package/dist/C_Tree2.js.map +0 -1
- package/dist/C_Upload-CHjiVVh7.css.map +0 -1
- package/dist/C_Upload-DE3OLsZD.css.map +0 -1
- package/dist/C_Upload.js.map +0 -1
- package/dist/C_Upload2.js.map +0 -1
- package/dist/C_VideoPlayer-CnaNOFtW.css.map +0 -1
- package/dist/C_VideoPlayer-cnP88zNV.css.map +0 -1
- package/dist/C_VideoPlayer.js.map +0 -1
- package/dist/C_VideoPlayer2.js.map +0 -1
- package/dist/C_VtableGantt-CZlJgvpC.css.map +0 -1
- package/dist/C_VtableGantt-DKfQkql0.css.map +0 -1
- package/dist/C_VtableGantt.js.map +0 -1
- package/dist/C_VtableGantt2.js.map +0 -1
- package/dist/C_WaterFall-BJ_39ext.css.map +0 -1
- package/dist/C_WaterFall-cYc1vntE.css.map +0 -1
- package/dist/C_WaterFall.js.map +0 -1
- package/dist/C_WaterFall2.js.map +0 -1
- package/dist/C_WorkFlow-BFzRGGhJ.css.map +0 -1
- package/dist/C_WorkFlow-DSyCOvRp.css.map +0 -1
- package/dist/C_WorkFlow.js.map +0 -1
- package/dist/C_WorkFlow2.js.map +0 -1
- package/dist/_shared.cjs +0 -1
- package/dist/_shared.d.cts +0 -2
- package/dist/_shared.d.ts +0 -2
- package/dist/_shared.js +0 -1
- package/dist/city.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/menuAdapter.js +0 -2
- package/dist/menuAdapter.js.map +0 -1
- package/dist/resolver.cjs.map +0 -1
- package/dist/resolver.js.map +0 -1
- package/dist/storage.js.map +0 -1
- /package/dist/{chunk.js → chunk.cjs} +0 -0
package/dist/C_Map.css
CHANGED
|
@@ -1,4 +1,666 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* required styles */
|
|
2
|
+
|
|
3
|
+
.leaflet-pane,
|
|
4
|
+
.leaflet-tile,
|
|
5
|
+
.leaflet-marker-icon,
|
|
6
|
+
.leaflet-marker-shadow,
|
|
7
|
+
.leaflet-tile-container,
|
|
8
|
+
.leaflet-pane > svg,
|
|
9
|
+
.leaflet-pane > canvas,
|
|
10
|
+
.leaflet-zoom-box,
|
|
11
|
+
.leaflet-image-layer,
|
|
12
|
+
.leaflet-layer {
|
|
13
|
+
position: absolute;
|
|
14
|
+
left: 0;
|
|
15
|
+
top: 0;
|
|
16
|
+
}
|
|
17
|
+
.leaflet-container {
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
.leaflet-tile,
|
|
21
|
+
.leaflet-marker-icon,
|
|
22
|
+
.leaflet-marker-shadow {
|
|
23
|
+
-webkit-user-select: none;
|
|
24
|
+
-moz-user-select: none;
|
|
25
|
+
user-select: none;
|
|
26
|
+
-webkit-user-drag: none;
|
|
27
|
+
}
|
|
28
|
+
/* Prevents IE11 from highlighting tiles in blue */
|
|
29
|
+
.leaflet-tile::selection {
|
|
30
|
+
background: transparent;
|
|
31
|
+
}
|
|
32
|
+
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
|
|
33
|
+
.leaflet-safari .leaflet-tile {
|
|
34
|
+
image-rendering: -webkit-optimize-contrast;
|
|
35
|
+
}
|
|
36
|
+
/* hack that prevents hw layers "stretching" when loading new tiles */
|
|
37
|
+
.leaflet-safari .leaflet-tile-container {
|
|
38
|
+
width: 1600px;
|
|
39
|
+
height: 1600px;
|
|
40
|
+
-webkit-transform-origin: 0 0;
|
|
41
|
+
}
|
|
42
|
+
.leaflet-marker-icon,
|
|
43
|
+
.leaflet-marker-shadow {
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
46
|
+
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
|
|
47
|
+
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
|
|
48
|
+
.leaflet-container .leaflet-overlay-pane svg {
|
|
49
|
+
max-width: none !important;
|
|
50
|
+
max-height: none !important;
|
|
51
|
+
}
|
|
52
|
+
.leaflet-container .leaflet-marker-pane img,
|
|
53
|
+
.leaflet-container .leaflet-shadow-pane img,
|
|
54
|
+
.leaflet-container .leaflet-tile-pane img,
|
|
55
|
+
.leaflet-container img.leaflet-image-layer,
|
|
56
|
+
.leaflet-container .leaflet-tile {
|
|
57
|
+
max-width: none !important;
|
|
58
|
+
max-height: none !important;
|
|
59
|
+
width: auto;
|
|
60
|
+
padding: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.leaflet-container img.leaflet-tile {
|
|
64
|
+
/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
|
|
65
|
+
mix-blend-mode: plus-lighter;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.leaflet-container.leaflet-touch-zoom {
|
|
69
|
+
-ms-touch-action: pan-x pan-y;
|
|
70
|
+
touch-action: pan-x pan-y;
|
|
71
|
+
}
|
|
72
|
+
.leaflet-container.leaflet-touch-drag {
|
|
73
|
+
-ms-touch-action: pinch-zoom;
|
|
74
|
+
/* Fallback for FF which doesn't support pinch-zoom */
|
|
75
|
+
touch-action: none;
|
|
76
|
+
touch-action: pinch-zoom;
|
|
77
|
+
}
|
|
78
|
+
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
|
|
79
|
+
-ms-touch-action: none;
|
|
80
|
+
touch-action: none;
|
|
81
|
+
}
|
|
82
|
+
.leaflet-container {
|
|
83
|
+
-webkit-tap-highlight-color: transparent;
|
|
84
|
+
}
|
|
85
|
+
.leaflet-container a {
|
|
86
|
+
-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
|
|
87
|
+
}
|
|
88
|
+
.leaflet-tile {
|
|
89
|
+
filter: inherit;
|
|
90
|
+
visibility: hidden;
|
|
91
|
+
}
|
|
92
|
+
.leaflet-tile-loaded {
|
|
93
|
+
visibility: inherit;
|
|
94
|
+
}
|
|
95
|
+
.leaflet-zoom-box {
|
|
96
|
+
width: 0;
|
|
97
|
+
height: 0;
|
|
98
|
+
-moz-box-sizing: border-box;
|
|
99
|
+
box-sizing: border-box;
|
|
100
|
+
z-index: 800;
|
|
101
|
+
}
|
|
102
|
+
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
|
|
103
|
+
.leaflet-overlay-pane svg {
|
|
104
|
+
-moz-user-select: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.leaflet-pane { z-index: 400; }
|
|
108
|
+
|
|
109
|
+
.leaflet-tile-pane { z-index: 200; }
|
|
110
|
+
.leaflet-overlay-pane { z-index: 400; }
|
|
111
|
+
.leaflet-shadow-pane { z-index: 500; }
|
|
112
|
+
.leaflet-marker-pane { z-index: 600; }
|
|
113
|
+
.leaflet-tooltip-pane { z-index: 650; }
|
|
114
|
+
.leaflet-popup-pane { z-index: 700; }
|
|
115
|
+
|
|
116
|
+
.leaflet-map-pane canvas { z-index: 100; }
|
|
117
|
+
.leaflet-map-pane svg { z-index: 200; }
|
|
118
|
+
|
|
119
|
+
.leaflet-vml-shape {
|
|
120
|
+
width: 1px;
|
|
121
|
+
height: 1px;
|
|
122
|
+
}
|
|
123
|
+
.lvml {
|
|
124
|
+
behavior: url(#default#VML);
|
|
125
|
+
display: inline-block;
|
|
126
|
+
position: absolute;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/* control positioning */
|
|
131
|
+
|
|
132
|
+
.leaflet-control {
|
|
133
|
+
position: relative;
|
|
134
|
+
z-index: 800;
|
|
135
|
+
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
|
136
|
+
pointer-events: auto;
|
|
137
|
+
}
|
|
138
|
+
.leaflet-top,
|
|
139
|
+
.leaflet-bottom {
|
|
140
|
+
position: absolute;
|
|
141
|
+
z-index: 1000;
|
|
142
|
+
pointer-events: none;
|
|
143
|
+
}
|
|
144
|
+
.leaflet-top {
|
|
145
|
+
top: 0;
|
|
146
|
+
}
|
|
147
|
+
.leaflet-right {
|
|
148
|
+
right: 0;
|
|
149
|
+
}
|
|
150
|
+
.leaflet-bottom {
|
|
151
|
+
bottom: 0;
|
|
152
|
+
}
|
|
153
|
+
.leaflet-left {
|
|
154
|
+
left: 0;
|
|
155
|
+
}
|
|
156
|
+
.leaflet-control {
|
|
157
|
+
float: left;
|
|
158
|
+
clear: both;
|
|
159
|
+
}
|
|
160
|
+
.leaflet-right .leaflet-control {
|
|
161
|
+
float: right;
|
|
162
|
+
}
|
|
163
|
+
.leaflet-top .leaflet-control {
|
|
164
|
+
margin-top: 10px;
|
|
165
|
+
}
|
|
166
|
+
.leaflet-bottom .leaflet-control {
|
|
167
|
+
margin-bottom: 10px;
|
|
168
|
+
}
|
|
169
|
+
.leaflet-left .leaflet-control {
|
|
170
|
+
margin-left: 10px;
|
|
171
|
+
}
|
|
172
|
+
.leaflet-right .leaflet-control {
|
|
173
|
+
margin-right: 10px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
/* zoom and fade animations */
|
|
178
|
+
|
|
179
|
+
.leaflet-fade-anim .leaflet-popup {
|
|
180
|
+
opacity: 0;
|
|
181
|
+
-webkit-transition: opacity 0.2s linear;
|
|
182
|
+
-moz-transition: opacity 0.2s linear;
|
|
183
|
+
transition: opacity 0.2s linear;
|
|
184
|
+
}
|
|
185
|
+
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
|
|
186
|
+
opacity: 1;
|
|
187
|
+
}
|
|
188
|
+
.leaflet-zoom-animated {
|
|
189
|
+
-webkit-transform-origin: 0 0;
|
|
190
|
+
-ms-transform-origin: 0 0;
|
|
191
|
+
transform-origin: 0 0;
|
|
192
|
+
}
|
|
193
|
+
svg.leaflet-zoom-animated {
|
|
194
|
+
will-change: transform;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.leaflet-zoom-anim .leaflet-zoom-animated {
|
|
198
|
+
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
|
|
199
|
+
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
|
|
200
|
+
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
|
|
201
|
+
}
|
|
202
|
+
.leaflet-zoom-anim .leaflet-tile,
|
|
203
|
+
.leaflet-pan-anim .leaflet-tile {
|
|
204
|
+
-webkit-transition: none;
|
|
205
|
+
-moz-transition: none;
|
|
206
|
+
transition: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.leaflet-zoom-anim .leaflet-zoom-hide {
|
|
210
|
+
visibility: hidden;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
/* cursors */
|
|
215
|
+
|
|
216
|
+
.leaflet-interactive {
|
|
217
|
+
cursor: pointer;
|
|
218
|
+
}
|
|
219
|
+
.leaflet-grab {
|
|
220
|
+
cursor: -webkit-grab;
|
|
221
|
+
cursor: -moz-grab;
|
|
222
|
+
cursor: grab;
|
|
223
|
+
}
|
|
224
|
+
.leaflet-crosshair,
|
|
225
|
+
.leaflet-crosshair .leaflet-interactive {
|
|
226
|
+
cursor: crosshair;
|
|
227
|
+
}
|
|
228
|
+
.leaflet-popup-pane,
|
|
229
|
+
.leaflet-control {
|
|
230
|
+
cursor: auto;
|
|
231
|
+
}
|
|
232
|
+
.leaflet-dragging .leaflet-grab,
|
|
233
|
+
.leaflet-dragging .leaflet-grab .leaflet-interactive,
|
|
234
|
+
.leaflet-dragging .leaflet-marker-draggable {
|
|
235
|
+
cursor: move;
|
|
236
|
+
cursor: -webkit-grabbing;
|
|
237
|
+
cursor: -moz-grabbing;
|
|
238
|
+
cursor: grabbing;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* marker & overlays interactivity */
|
|
242
|
+
.leaflet-marker-icon,
|
|
243
|
+
.leaflet-marker-shadow,
|
|
244
|
+
.leaflet-image-layer,
|
|
245
|
+
.leaflet-pane > svg path,
|
|
246
|
+
.leaflet-tile-container {
|
|
247
|
+
pointer-events: none;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.leaflet-marker-icon.leaflet-interactive,
|
|
251
|
+
.leaflet-image-layer.leaflet-interactive,
|
|
252
|
+
.leaflet-pane > svg path.leaflet-interactive,
|
|
253
|
+
svg.leaflet-image-layer.leaflet-interactive path {
|
|
254
|
+
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
|
255
|
+
pointer-events: auto;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* visual tweaks */
|
|
259
|
+
|
|
260
|
+
.leaflet-container {
|
|
261
|
+
background: #ddd;
|
|
262
|
+
outline-offset: 1px;
|
|
263
|
+
}
|
|
264
|
+
.leaflet-container a {
|
|
265
|
+
color: #0078A8;
|
|
266
|
+
}
|
|
267
|
+
.leaflet-zoom-box {
|
|
268
|
+
border: 2px dotted #38f;
|
|
269
|
+
background: rgba(255,255,255,0.5);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
/* general typography */
|
|
274
|
+
.leaflet-container {
|
|
275
|
+
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
276
|
+
font-size: 12px;
|
|
277
|
+
font-size: 0.75rem;
|
|
278
|
+
line-height: 1.5;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
/* general toolbar styles */
|
|
283
|
+
|
|
284
|
+
.leaflet-bar {
|
|
285
|
+
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
|
286
|
+
border-radius: 4px;
|
|
287
|
+
}
|
|
288
|
+
.leaflet-bar a {
|
|
289
|
+
background-color: #fff;
|
|
290
|
+
border-bottom: 1px solid #ccc;
|
|
291
|
+
width: 26px;
|
|
292
|
+
height: 26px;
|
|
293
|
+
line-height: 26px;
|
|
294
|
+
display: block;
|
|
295
|
+
text-align: center;
|
|
296
|
+
text-decoration: none;
|
|
297
|
+
color: black;
|
|
298
|
+
}
|
|
299
|
+
.leaflet-bar a,
|
|
300
|
+
.leaflet-control-layers-toggle {
|
|
301
|
+
background-position: 50% 50%;
|
|
302
|
+
background-repeat: no-repeat;
|
|
303
|
+
display: block;
|
|
304
|
+
}
|
|
305
|
+
.leaflet-bar a:hover,
|
|
306
|
+
.leaflet-bar a:focus {
|
|
307
|
+
background-color: #f4f4f4;
|
|
308
|
+
}
|
|
309
|
+
.leaflet-bar a:first-child {
|
|
310
|
+
border-top-left-radius: 4px;
|
|
311
|
+
border-top-right-radius: 4px;
|
|
312
|
+
}
|
|
313
|
+
.leaflet-bar a:last-child {
|
|
314
|
+
border-bottom-left-radius: 4px;
|
|
315
|
+
border-bottom-right-radius: 4px;
|
|
316
|
+
border-bottom: none;
|
|
317
|
+
}
|
|
318
|
+
.leaflet-bar a.leaflet-disabled {
|
|
319
|
+
cursor: default;
|
|
320
|
+
background-color: #f4f4f4;
|
|
321
|
+
color: #bbb;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.leaflet-touch .leaflet-bar a {
|
|
325
|
+
width: 30px;
|
|
326
|
+
height: 30px;
|
|
327
|
+
line-height: 30px;
|
|
328
|
+
}
|
|
329
|
+
.leaflet-touch .leaflet-bar a:first-child {
|
|
330
|
+
border-top-left-radius: 2px;
|
|
331
|
+
border-top-right-radius: 2px;
|
|
332
|
+
}
|
|
333
|
+
.leaflet-touch .leaflet-bar a:last-child {
|
|
334
|
+
border-bottom-left-radius: 2px;
|
|
335
|
+
border-bottom-right-radius: 2px;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* zoom control */
|
|
339
|
+
|
|
340
|
+
.leaflet-control-zoom-in,
|
|
341
|
+
.leaflet-control-zoom-out {
|
|
342
|
+
font: bold 18px 'Lucida Console', Monaco, monospace;
|
|
343
|
+
text-indent: 1px;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
|
|
347
|
+
font-size: 22px;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
/* layers control */
|
|
352
|
+
|
|
353
|
+
.leaflet-control-layers {
|
|
354
|
+
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
|
|
355
|
+
background: #fff;
|
|
356
|
+
border-radius: 5px;
|
|
357
|
+
}
|
|
358
|
+
.leaflet-control-layers-toggle {
|
|
359
|
+
background-image: url(images/layers.png);
|
|
360
|
+
width: 36px;
|
|
361
|
+
height: 36px;
|
|
362
|
+
}
|
|
363
|
+
.leaflet-retina .leaflet-control-layers-toggle {
|
|
364
|
+
background-image: url(images/layers-2x.png);
|
|
365
|
+
background-size: 26px 26px;
|
|
366
|
+
}
|
|
367
|
+
.leaflet-touch .leaflet-control-layers-toggle {
|
|
368
|
+
width: 44px;
|
|
369
|
+
height: 44px;
|
|
370
|
+
}
|
|
371
|
+
.leaflet-control-layers .leaflet-control-layers-list,
|
|
372
|
+
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
|
|
373
|
+
display: none;
|
|
374
|
+
}
|
|
375
|
+
.leaflet-control-layers-expanded .leaflet-control-layers-list {
|
|
376
|
+
display: block;
|
|
377
|
+
position: relative;
|
|
378
|
+
}
|
|
379
|
+
.leaflet-control-layers-expanded {
|
|
380
|
+
padding: 6px 10px 6px 6px;
|
|
381
|
+
color: #333;
|
|
382
|
+
background: #fff;
|
|
383
|
+
}
|
|
384
|
+
.leaflet-control-layers-scrollbar {
|
|
385
|
+
overflow-y: scroll;
|
|
386
|
+
overflow-x: hidden;
|
|
387
|
+
padding-right: 5px;
|
|
388
|
+
}
|
|
389
|
+
.leaflet-control-layers-selector {
|
|
390
|
+
margin-top: 2px;
|
|
391
|
+
position: relative;
|
|
392
|
+
top: 1px;
|
|
393
|
+
}
|
|
394
|
+
.leaflet-control-layers label {
|
|
395
|
+
display: block;
|
|
396
|
+
font-size: 13px;
|
|
397
|
+
font-size: 1.08333em;
|
|
398
|
+
}
|
|
399
|
+
.leaflet-control-layers-separator {
|
|
400
|
+
height: 0;
|
|
401
|
+
border-top: 1px solid #ddd;
|
|
402
|
+
margin: 5px -10px 5px -6px;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/* Default icon URLs */
|
|
406
|
+
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
|
|
407
|
+
background-image: url(images/marker-icon.png);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
/* attribution and scale controls */
|
|
412
|
+
|
|
413
|
+
.leaflet-container .leaflet-control-attribution {
|
|
414
|
+
background: #fff;
|
|
415
|
+
background: rgba(255, 255, 255, 0.8);
|
|
416
|
+
margin: 0;
|
|
417
|
+
}
|
|
418
|
+
.leaflet-control-attribution,
|
|
419
|
+
.leaflet-control-scale-line {
|
|
420
|
+
padding: 0 5px;
|
|
421
|
+
color: #333;
|
|
422
|
+
line-height: 1.4;
|
|
423
|
+
}
|
|
424
|
+
.leaflet-control-attribution a {
|
|
425
|
+
text-decoration: none;
|
|
426
|
+
}
|
|
427
|
+
.leaflet-control-attribution a:hover,
|
|
428
|
+
.leaflet-control-attribution a:focus {
|
|
429
|
+
text-decoration: underline;
|
|
430
|
+
}
|
|
431
|
+
.leaflet-attribution-flag {
|
|
432
|
+
display: inline !important;
|
|
433
|
+
vertical-align: baseline !important;
|
|
434
|
+
width: 1em;
|
|
435
|
+
height: 0.6669em;
|
|
436
|
+
}
|
|
437
|
+
.leaflet-left .leaflet-control-scale {
|
|
438
|
+
margin-left: 5px;
|
|
439
|
+
}
|
|
440
|
+
.leaflet-bottom .leaflet-control-scale {
|
|
441
|
+
margin-bottom: 5px;
|
|
442
|
+
}
|
|
443
|
+
.leaflet-control-scale-line {
|
|
444
|
+
border: 2px solid #777;
|
|
445
|
+
border-top: none;
|
|
446
|
+
line-height: 1.1;
|
|
447
|
+
padding: 2px 5px 1px;
|
|
448
|
+
white-space: nowrap;
|
|
449
|
+
-moz-box-sizing: border-box;
|
|
450
|
+
box-sizing: border-box;
|
|
451
|
+
background: rgba(255, 255, 255, 0.8);
|
|
452
|
+
text-shadow: 1px 1px #fff;
|
|
453
|
+
}
|
|
454
|
+
.leaflet-control-scale-line:not(:first-child) {
|
|
455
|
+
border-top: 2px solid #777;
|
|
456
|
+
border-bottom: none;
|
|
457
|
+
margin-top: -2px;
|
|
458
|
+
}
|
|
459
|
+
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
|
|
460
|
+
border-bottom: 2px solid #777;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.leaflet-touch .leaflet-control-attribution,
|
|
464
|
+
.leaflet-touch .leaflet-control-layers,
|
|
465
|
+
.leaflet-touch .leaflet-bar {
|
|
466
|
+
box-shadow: none;
|
|
467
|
+
}
|
|
468
|
+
.leaflet-touch .leaflet-control-layers,
|
|
469
|
+
.leaflet-touch .leaflet-bar {
|
|
470
|
+
border: 2px solid rgba(0,0,0,0.2);
|
|
471
|
+
background-clip: padding-box;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
/* popup */
|
|
476
|
+
|
|
477
|
+
.leaflet-popup {
|
|
478
|
+
position: absolute;
|
|
479
|
+
text-align: center;
|
|
480
|
+
margin-bottom: 20px;
|
|
481
|
+
}
|
|
482
|
+
.leaflet-popup-content-wrapper {
|
|
483
|
+
padding: 1px;
|
|
484
|
+
text-align: left;
|
|
485
|
+
border-radius: 12px;
|
|
486
|
+
}
|
|
487
|
+
.leaflet-popup-content {
|
|
488
|
+
margin: 13px 24px 13px 20px;
|
|
489
|
+
line-height: 1.3;
|
|
490
|
+
font-size: 13px;
|
|
491
|
+
font-size: 1.08333em;
|
|
492
|
+
min-height: 1px;
|
|
493
|
+
}
|
|
494
|
+
.leaflet-popup-content p {
|
|
495
|
+
margin: 17px 0;
|
|
496
|
+
margin: 1.3em 0;
|
|
497
|
+
}
|
|
498
|
+
.leaflet-popup-tip-container {
|
|
499
|
+
width: 40px;
|
|
500
|
+
height: 20px;
|
|
501
|
+
position: absolute;
|
|
502
|
+
left: 50%;
|
|
503
|
+
margin-top: -1px;
|
|
504
|
+
margin-left: -20px;
|
|
505
|
+
overflow: hidden;
|
|
506
|
+
pointer-events: none;
|
|
507
|
+
}
|
|
508
|
+
.leaflet-popup-tip {
|
|
509
|
+
width: 17px;
|
|
510
|
+
height: 17px;
|
|
511
|
+
padding: 1px;
|
|
512
|
+
|
|
513
|
+
margin: -10px auto 0;
|
|
514
|
+
pointer-events: auto;
|
|
515
|
+
|
|
516
|
+
-webkit-transform: rotate(45deg);
|
|
517
|
+
-moz-transform: rotate(45deg);
|
|
518
|
+
-ms-transform: rotate(45deg);
|
|
519
|
+
transform: rotate(45deg);
|
|
520
|
+
}
|
|
521
|
+
.leaflet-popup-content-wrapper,
|
|
522
|
+
.leaflet-popup-tip {
|
|
523
|
+
background: white;
|
|
524
|
+
color: #333;
|
|
525
|
+
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
|
|
526
|
+
}
|
|
527
|
+
.leaflet-container a.leaflet-popup-close-button {
|
|
528
|
+
position: absolute;
|
|
529
|
+
top: 0;
|
|
530
|
+
right: 0;
|
|
531
|
+
border: none;
|
|
532
|
+
text-align: center;
|
|
533
|
+
width: 24px;
|
|
534
|
+
height: 24px;
|
|
535
|
+
font: 16px/24px Tahoma, Verdana, sans-serif;
|
|
536
|
+
color: #757575;
|
|
537
|
+
text-decoration: none;
|
|
538
|
+
background: transparent;
|
|
539
|
+
}
|
|
540
|
+
.leaflet-container a.leaflet-popup-close-button:hover,
|
|
541
|
+
.leaflet-container a.leaflet-popup-close-button:focus {
|
|
542
|
+
color: #585858;
|
|
543
|
+
}
|
|
544
|
+
.leaflet-popup-scrolled {
|
|
545
|
+
overflow: auto;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.leaflet-oldie .leaflet-popup-content-wrapper {
|
|
549
|
+
-ms-zoom: 1;
|
|
550
|
+
}
|
|
551
|
+
.leaflet-oldie .leaflet-popup-tip {
|
|
552
|
+
width: 24px;
|
|
553
|
+
margin: 0 auto;
|
|
554
|
+
|
|
555
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
|
|
556
|
+
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.leaflet-oldie .leaflet-control-zoom,
|
|
560
|
+
.leaflet-oldie .leaflet-control-layers,
|
|
561
|
+
.leaflet-oldie .leaflet-popup-content-wrapper,
|
|
562
|
+
.leaflet-oldie .leaflet-popup-tip {
|
|
563
|
+
border: 1px solid #999;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
/* div icon */
|
|
568
|
+
|
|
569
|
+
.leaflet-div-icon {
|
|
570
|
+
background: #fff;
|
|
571
|
+
border: 1px solid #666;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
/* Tooltip */
|
|
576
|
+
/* Base styles for the element that has a tooltip */
|
|
577
|
+
.leaflet-tooltip {
|
|
578
|
+
position: absolute;
|
|
579
|
+
padding: 6px;
|
|
580
|
+
background-color: #fff;
|
|
581
|
+
border: 1px solid #fff;
|
|
582
|
+
border-radius: 3px;
|
|
583
|
+
color: #222;
|
|
584
|
+
white-space: nowrap;
|
|
585
|
+
-webkit-user-select: none;
|
|
586
|
+
-moz-user-select: none;
|
|
587
|
+
-ms-user-select: none;
|
|
588
|
+
user-select: none;
|
|
589
|
+
pointer-events: none;
|
|
590
|
+
box-shadow: 0 1px 3px rgba(0,0,0,0.4);
|
|
591
|
+
}
|
|
592
|
+
.leaflet-tooltip.leaflet-interactive {
|
|
593
|
+
cursor: pointer;
|
|
594
|
+
pointer-events: auto;
|
|
595
|
+
}
|
|
596
|
+
.leaflet-tooltip-top:before,
|
|
597
|
+
.leaflet-tooltip-bottom:before,
|
|
598
|
+
.leaflet-tooltip-left:before,
|
|
599
|
+
.leaflet-tooltip-right:before {
|
|
600
|
+
position: absolute;
|
|
601
|
+
pointer-events: none;
|
|
602
|
+
border: 6px solid transparent;
|
|
603
|
+
background: transparent;
|
|
604
|
+
content: "";
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/* Directions */
|
|
608
|
+
|
|
609
|
+
.leaflet-tooltip-bottom {
|
|
610
|
+
margin-top: 6px;
|
|
611
|
+
}
|
|
612
|
+
.leaflet-tooltip-top {
|
|
613
|
+
margin-top: -6px;
|
|
614
|
+
}
|
|
615
|
+
.leaflet-tooltip-bottom:before,
|
|
616
|
+
.leaflet-tooltip-top:before {
|
|
617
|
+
left: 50%;
|
|
618
|
+
margin-left: -6px;
|
|
619
|
+
}
|
|
620
|
+
.leaflet-tooltip-top:before {
|
|
621
|
+
bottom: 0;
|
|
622
|
+
margin-bottom: -12px;
|
|
623
|
+
border-top-color: #fff;
|
|
624
|
+
}
|
|
625
|
+
.leaflet-tooltip-bottom:before {
|
|
626
|
+
top: 0;
|
|
627
|
+
margin-top: -12px;
|
|
628
|
+
margin-left: -6px;
|
|
629
|
+
border-bottom-color: #fff;
|
|
630
|
+
}
|
|
631
|
+
.leaflet-tooltip-left {
|
|
632
|
+
margin-left: -6px;
|
|
633
|
+
}
|
|
634
|
+
.leaflet-tooltip-right {
|
|
635
|
+
margin-left: 6px;
|
|
636
|
+
}
|
|
637
|
+
.leaflet-tooltip-left:before,
|
|
638
|
+
.leaflet-tooltip-right:before {
|
|
639
|
+
top: 50%;
|
|
640
|
+
margin-top: -6px;
|
|
641
|
+
}
|
|
642
|
+
.leaflet-tooltip-left:before {
|
|
643
|
+
right: 0;
|
|
644
|
+
margin-right: -12px;
|
|
645
|
+
border-left-color: #fff;
|
|
646
|
+
}
|
|
647
|
+
.leaflet-tooltip-right:before {
|
|
648
|
+
left: 0;
|
|
649
|
+
margin-left: -12px;
|
|
650
|
+
border-right-color: #fff;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/* Printing */
|
|
654
|
+
|
|
655
|
+
@media print {
|
|
656
|
+
/* Prevent printers from removing background-images of controls. */
|
|
657
|
+
.leaflet-control {
|
|
658
|
+
-webkit-print-color-adjust: exact;
|
|
659
|
+
print-color-adjust: exact;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/* unplugin-vue-components disabled */.c-map[data-v-09a5ef45] {
|
|
2
664
|
position: relative;
|
|
3
665
|
width: 100%;
|
|
4
666
|
min-height: 300px;
|
|
@@ -6,13 +668,13 @@
|
|
|
6
668
|
border-radius: 4px;
|
|
7
669
|
overflow: hidden;
|
|
8
670
|
}
|
|
9
|
-
.c-map .map-container[data-v-
|
|
671
|
+
.c-map .map-container[data-v-09a5ef45] {
|
|
10
672
|
width: 100%;
|
|
11
673
|
height: 100%;
|
|
12
674
|
border-radius: 4px;
|
|
13
675
|
overflow: hidden;
|
|
14
676
|
}
|
|
15
|
-
.c-map .map-loading[data-v-
|
|
677
|
+
.c-map .map-loading[data-v-09a5ef45] {
|
|
16
678
|
position: absolute;
|
|
17
679
|
top: 0;
|
|
18
680
|
left: 0;
|
|
@@ -25,5 +687,3 @@
|
|
|
25
687
|
border-radius: 4px;
|
|
26
688
|
z-index: 1000;
|
|
27
689
|
}
|
|
28
|
-
|
|
29
|
-
/*# sourceMappingURL=C_Map-CWMMN58_.css.map*/
|
package/dist/C_Map.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MapType, i as MapMarker, n as MAP_TYPES, o as OSM_TILE_CONFIG, r as MapConfig, s as _default, t as DEFAULT_MAP_CONFIG } from "./data.
|
|
1
|
+
import { a as MapType, i as MapMarker, n as MAP_TYPES, o as OSM_TILE_CONFIG, r as MapConfig, s as _default, t as DEFAULT_MAP_CONFIG } from "./data.cjs";
|
|
2
2
|
export { _default as C_Map, DEFAULT_MAP_CONFIG, MAP_TYPES, type MapConfig, type MapMarker, type MapType, OSM_TILE_CONFIG };
|
package/dist/C_Map2.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./export-helper.cjs`);let t=require(`vue`),n=require(`naive-ui`);const r=[{label:`OpenStreetMap`,value:`osm`},{label:`高德地图`,value:`amap`}],i={height:`400px`,center:[39.9042,116.4074],zoom:10,mapType:`osm`},a={url:`https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`,attribution:`© OpenStreetMap contributors`,maxZoom:19,minZoom:1,tileSize:256,detectRetina:!0},o={apiUrl:`https://webapi.amap.com/maps?v=2.0&key=`,note:`高德地图需要API Key,如需使用请申请:https://lbs.amap.com/api/javascript-api/guide/create/`};let s=null;function c(e){let t=window;return t.AMap?Promise.resolve(t.AMap):s||(s=new Promise((n,r)=>{let i=document.createElement(`script`);i.async=!0,i.dataset.cMapAmap=`true`,i.src=`${o.apiUrl}${encodeURIComponent(e)}`,i.onload=()=>{t.AMap?n(t.AMap):r(Error(`高德地图 API 加载完成但未找到全局对象`))},i.onerror=()=>{i.remove(),s=null,r(Error(`高德地图 API 加载失败`))},document.head.appendChild(i)}),s)}const l={class:`c-map`},u={key:0,class:`map-loading`},d=(0,t.defineComponent)({name:`C_Map`,__name:`index`,props:{height:{default:`400px`},center:{default:()=>[39.9042,116.4074]},zoom:{default:10},markers:{default:()=>[]},mapType:{default:`osm`},amapKey:{default:``}},emits:[`ready`,`markerClick`,`error`],setup(e,{emit:r}){let i=e,o=r,s=(0,t.ref)(),d=(0,t.ref)(!0),f=null,p=null,m=[],h=0,g=!1,_=e=>e instanceof Error?e:Error(String(e)),v=()=>{h+=1,m.forEach(e=>e.setMap?.(null)),m=[],f&&=(typeof f.remove==`function`?f.remove():typeof f.destroy==`function`&&f.destroy(),null)},y=async()=>{if(!s.value)return;let e=++h;try{if(v(),h=e,s.value.replaceChildren(),p??=await import(`leaflet`),g||e!==h||!s.value)return;let n=p;if(f=n.map(s.value,{center:i.center,zoom:i.zoom,zoomControl:!0,preferCanvas:!0}),n.tileLayer(a.url,a).addTo(f),g||e!==h){v();return}if(x(),await(0,t.nextTick)(),requestAnimationFrame(()=>{e===h&&f?.invalidateSize({reset:!0,pan:!1})}),g||e!==h)return;d.value=!1,o(`ready`,f)}catch(t){e===h&&(v(),o(`error`,_(t)),d.value=!1)}},b=async()=>{if(!s.value||!i.amapKey){i.amapKey||o(`error`,Error(`使用高德地图时必须提供 amapKey`)),d.value=!1;return}let e=++h;try{v(),h=e,s.value.replaceChildren();let t=await c(i.amapKey);if(g||e!==h||!s.value)return;f=new t.Map(s.value,{zoom:i.zoom,center:i.center}),S(f),d.value=!1,o(`ready`,f)}catch(t){e===h&&(o(`error`,_(t)),d.value=!1)}},x=()=>{if(!f||!p||i.mapType!==`osm`||!i.markers)return;let e=p;f.eachLayer(t=>{t instanceof e.Marker&&f.removeLayer(t)}),i.markers.forEach(t=>{if(!Number.isFinite(t.lat)||!Number.isFinite(t.lng))return;let n=e.marker([t.lat,t.lng]);if(t.popup){let e=document.createElement(`span`);e.textContent=t.popup,n.bindPopup(e),n.on(`click`,e=>{o(`markerClick`,t,e)})}n.addTo(f)})},S=e=>{!e||i.mapType!==`amap`||!i.markers||(m.forEach(e=>e.setMap?.(null)),m=[],i.markers.forEach(t=>{if(!Number.isFinite(t.lat)||!Number.isFinite(t.lng))return;let n=new window.AMap.Marker({position:[t.lat,t.lng],title:t.popup||``});if(t.popup){let r=document.createElement(`span`);r.textContent=t.popup;let i=new window.AMap.InfoWindow({content:r,offset:new window.AMap.Pixel(0,-30)});n.on(`click`,()=>{i.open(e,n.getPosition()),o(`markerClick`,t,null)})}n.setMap(e),m.push(n)}))};return(0,t.watch)(()=>i.markers,()=>{f&&(i.mapType===`osm`?x():S(f))},{deep:!0}),(0,t.watch)(()=>i.mapType,async(e,n)=>{e!==n&&(v(),d.value=!0,await(0,t.nextTick)(),e===`amap`?await b():await y())}),(0,t.watch)([()=>i.center,()=>i.zoom],()=>{f&&(i.mapType===`osm`?f.setView(i.center,i.zoom):(f.setCenter?.(i.center),f.setZoom?.(i.zoom)))},{deep:!0}),(0,t.onMounted)(async()=>{await(0,t.nextTick)(),i.mapType===`amap`?await b():await y()}),(0,t.onUnmounted)(()=>{g=!0,v()}),(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,l,[(0,t.createElementVNode)(`div`,{ref_key:`mapContainer`,ref:s,class:`map-container`,style:(0,t.normalizeStyle)({height:e.height})},null,4),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,u,[(0,t.createVNode)((0,t.unref)(n.NSpin),{size:`large`})])):(0,t.createCommentVNode)(`v-if`,!0)]))}});var f=e.t(d,[[`__scopeId`,`data-v-09a5ef45`]]);Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
|