@das-fed/upf-ui 6.4.0-dev.238 → 6.4.0-dev.240
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/esm-map.json +1 -0
- package/front-end/i18n/front-end-page/dasui_en-US.js +5 -5
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +5 -5
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +5 -5
- package/package.json +3 -3
- package/packages/business-components/ai-panel/{index-CDBVlFmp.js → index-BdLFU3HT.js} +22 -20
- package/packages/business-components/ai-panel/index-BdLFU3HT.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-BtiuhwME.js → index-Cc1_Wpca.js} +24 -21
- package/packages/business-components/ai-panel/index-Cc1_Wpca.js.gz +0 -0
- package/packages/business-components/ai-panel/index.d.ts +28 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/ai-panel/src/dasAI/components/aiChat/index.vue.d.ts +13 -0
- package/packages/business-components/ai-panel/src/dasAI/components/chat/index.vue.d.ts +11 -0
- package/packages/business-components/ai-panel/src/dasAI/components/folderDialog/index.vue.d.ts +16 -0
- package/packages/business-components/ai-panel/src/dasAI/components/history/index.vue.d.ts +13 -0
- package/packages/business-components/ai-panel/src/dasAI/components/prompt/index.vue.d.ts +11 -0
- package/packages/business-components/ai-panel/src/dasAI/components/referenceContent/index.vue.d.ts +15 -0
- package/packages/business-components/ai-panel/src/dasAI/components/selectType/index.vue.d.ts +11 -0
- package/packages/business-components/ai-panel/src/dasAI/components/sender/index.vue.d.ts +11 -0
- package/packages/business-components/ai-panel/src/dasAI/components/useChat/index.vue.d.ts +11 -0
- package/packages/business-components/ai-panel/src/dasAI/hooks/audio.d.ts +1 -1
- package/packages/business-components/ai-panel/src/dasAI/hooks/knowbase.d.ts +1 -1
- package/packages/business-components/ai-panel/src/index.vue.d.ts +2 -2
- package/packages/business-components/ai-panel/style.css +1 -1
- package/packages/business-components/ai-panel/style.css.gz +0 -0
- package/packages/business-components/app-container/index.d.ts +0 -1
- package/packages/business-components/app-container/index.js +162 -198
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/index.vue.d.ts +0 -1
- package/packages/business-components/app-container/src/type.d.ts +0 -1
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/area-phone-select/index.d.ts +24 -24
- package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +3 -3
- package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +6 -6
- package/packages/business-components/device-panel/index.js +2072 -2070
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/listItem.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-device-detail.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-device-operate-log.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-operating-data.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-operation-plan.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-video-monitoring.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/index.vue.d.ts +8 -8
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/listItem.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-alarm-log.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-device-detail.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-device-operate-log.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-operating-data.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-operation-plan.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-video-monitoring.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/devicePanelModal/type.d.ts +3 -3
- package/packages/business-components/device-panel/src/components/drag-resize/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/videoDialog/hooks/use-video/PlayerProvider.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/videoDialog/hooks/use-video/index.d.ts +1 -1
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/echarts/index.d.ts +5 -5
- package/packages/business-components/echarts/index.js +570 -553
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/echarts/src/Index.vue.d.ts +1 -1
- package/packages/business-components/echarts/style.css +1 -1
- package/packages/business-components/export-button/index.d.ts +3 -3
- package/packages/business-components/export-button/index.js +91 -90
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/export-button/src/App.vue.d.ts +1 -1
- package/packages/business-components/import-button/index.d.ts +11 -11
- package/packages/business-components/import-button/index.js +178 -176
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/src/App.vue.d.ts +4 -4
- package/packages/business-components/layout-breadcrumb/index.js +38 -44
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/index.d.ts +45 -45
- package/packages/business-components/model-table-dialog/src/Index.vue.d.ts +5 -5
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +1 -1
- package/packages/business-components/process-configuration/index.js +1 -1
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/src/hooks/useCopyDialog.d.ts +1 -1
- package/packages/business-components/process-configuration/src/hooks/useDeleteDialog.d.ts +1 -1
- package/packages/business-components/process-form/index.js +483 -427
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/hooks/useForm.d.ts +9 -9
- package/packages/business-components/process-form/src/hooks/useSelector.d.ts +5 -15
- package/packages/business-components/process-form/src/type.d.ts +38 -35
- package/packages/business-components/process-form/src/utils/processRules.d.ts +41 -38
- package/packages/business-components/process-form/src/widgets/layout/accordion/accordion.d.ts +1 -1
- package/packages/business-components/process-form/src/widgets/layout/grid/grid.d.ts +1 -1
- package/packages/business-components/process-form/src/widgets/layout/grid/gridLayout.vue.d.ts +1 -1
- package/packages/business-components/process-form/src/widgets/store.d.ts +7 -7
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-log/index.js +165 -175
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/process-search-form/hooks/useSearchOptions.d.ts +64 -2
- package/packages/business-components/process-search-form/index.js +4 -5
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/hooks/useProcessTable.d.ts +1 -1
- package/packages/business-components/process-table/hooks/useTableShow.d.ts +1 -1
- package/packages/business-components/process-table/index.js +1 -1
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +848 -844
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/src/components/drag-resize/index.vue.d.ts +1 -1
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/EventInfo.vue.d.ts +1 -1
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/use-select-list.d.ts +1 -1
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/use-select-org-user.d.ts +1 -1
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/use-select-user.d.ts +1 -1
- package/packages/business-components/urgent-panel/style.css +1 -1
- package/packages/business-components/urgent-panel/style.css.gz +0 -0
- package/packages/business-components/user-org-dialog/index.d.ts +5 -0
- package/packages/business-components/user-org-dialog/index.js +1 -0
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/src/Index.vue.d.ts +1 -0
- package/packages/business-components/user-org-dialog/src/hooks/use-select-list.d.ts +1 -1
- package/packages/business-components/user-org-dialog/src/hooks/use-select-org.d.ts +1 -1
- package/packages/business-components/user-org-dialog/src/hooks/use-select-user.d.ts +1 -1
- package/packages/business-components/user-org-dialog/src/type.d.ts +1 -0
- package/packages/business-components/video-dialog/index.js +141 -141
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/component/Player/index.vue.d.ts +1 -1
- package/packages/business-components/video-dialog/src/hooks/use-video/PlayerProvider.d.ts +2 -2
- package/packages/components/alert/index.d.ts +0 -1
- package/packages/components/alert/index.js +38 -54
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/alert/style.css +1 -1
- package/packages/components/alert/style.css.gz +0 -0
- package/packages/components/audio-video/index.d.ts +8 -8
- package/packages/components/audio-video/src/player/index.vue.d.ts +2 -2
- package/packages/components/autocomplete/index.d.ts +31 -31
- package/packages/components/autocomplete/index.js +7 -5
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +4 -4
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/breadcrumb/index.js +27 -35
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/breadcrumb/style.css +1 -1
- package/packages/components/breadcrumb/style.css.gz +0 -0
- package/packages/components/button/index.d.ts +15 -15
- package/packages/components/button/index.js +184 -206
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/src/Index.vue.d.ts +5 -5
- package/packages/components/button/src/type.d.ts +1 -1
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/calendar/index.js +92 -113
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/calendar/style.css +1 -1
- package/packages/components/calendar/style.css.gz +0 -0
- package/packages/components/cascader/index.d.ts +23 -23
- package/packages/components/cascader/index.js +124 -157
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/src/Index.vue.d.ts +3 -3
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/checkbox/index.d.ts +51 -51
- package/packages/components/checkbox/index.js +143 -158
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/src/Index.vue.d.ts +7 -7
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/collapse-panel/index.d.ts +9 -9
- package/packages/components/collapse-panel/index.js +19 -24
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collapse-panel/src/Index.vue.d.ts +1 -1
- package/packages/components/collapse-panel/style.css +1 -1
- package/packages/components/collapse-panel/style.css.gz +0 -0
- package/packages/components/collaspe/index.d.ts +9 -9
- package/packages/components/collaspe/index.js +5 -4
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/collaspe/src/Index.vue.d.ts +1 -1
- package/packages/components/color-picker/index.d.ts +5 -5
- package/packages/components/color-picker/index.js +80 -89
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/src/Index.vue.d.ts +1 -1
- package/packages/components/color-picker/src/type.d.ts +1 -1
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/custom-search-item/index.d.ts +9 -9
- package/packages/components/custom-search-item/index.js +8 -15
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/custom-search-item/src/Index.vue.d.ts +1 -1
- package/packages/components/custom-search-item/src/type.d.ts +3 -2
- package/packages/components/custom-search-item/style.css +1 -1
- package/packages/components/date-picker/index.d.ts +73 -73
- package/packages/components/date-picker/index.js +520 -546
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +6 -6
- package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +5 -5
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +5 -5
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +5 -5
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +5 -5
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/index.d.ts +17 -14
- package/packages/components/dialog/index.js +243 -225
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/src/Index.vue.d.ts +27 -23
- package/packages/components/dialog/src/type.d.ts +5 -0
- package/packages/components/dialog/src/use-micro-app-dialog/index.d.ts +12 -7
- package/packages/components/dialog/src/use-micro-app-dialog/micro-frontend.d.ts +1 -2
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dimple-layout/editor/plugins/$route/type.d.ts +3 -2
- package/packages/components/dimple-layout/editor/type.d.ts +7 -0
- package/packages/components/dimple-layout/index.js +7845 -7068
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dimple-layout/style.css +1 -1
- package/packages/components/dimple-layout/style.css.gz +0 -0
- package/packages/components/drawer/index.js +28 -48
- package/packages/components/drawer/index.js.gz +0 -0
- package/packages/components/drawer/src/Index.vue.d.ts +1 -1
- package/packages/components/drawer/style.css +1 -1
- package/packages/components/dropdown/index.d.ts +3 -3
- package/packages/components/dropdown/index.js +28 -35
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +879 -879
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/utils.d.ts +2 -2
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/empty/index.d.ts +3 -4
- package/packages/components/empty/index.js +34 -40
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/empty/src/Index.vue.d.ts +1 -1
- package/packages/components/empty/style.css +1 -1
- package/packages/components/error-overlay-model/index.d.ts +1 -1
- package/packages/components/error-overlay-model/index.js +48 -45
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/error-overlay-model/src/index.vue.d.ts +1 -1
- package/packages/components/form/index.d.ts +9 -9
- package/packages/components/form/src/Index.vue.d.ts +1 -1
- package/packages/components/form-item/index.d.ts +7 -0
- package/packages/components/form-item/index.js +872 -911
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/src/Index.vue.d.ts +2 -0
- package/packages/components/form-item/src/hooks/use-error.d.ts +1 -12
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/icon/index.js +1 -1
- package/packages/components/icon/index.js.gz +0 -0
- package/packages/components/icon/src/icon.d.ts +13 -0
- package/packages/components/image-upload/index.d.ts +0 -1
- package/packages/components/image-upload/index.js +91 -102
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-upload/style.css +1 -1
- package/packages/components/image-upload/style.css.gz +0 -0
- package/packages/components/image-viewer/index.d.ts +1 -2
- package/packages/components/image-viewer/index.js +442 -447
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/src/Index.vue.d.ts +1 -1
- package/packages/components/image-viewer/src/hooks/use-imageViewer.d.ts +4 -2
- package/packages/components/image-viewer/src/type.d.ts +1 -1
- package/packages/components/image-viewer/style.css +1 -1
- package/packages/components/image-viewer/style.css.gz +0 -0
- package/packages/components/input/index.d.ts +3 -4262
- package/packages/components/input/index.js +1965 -302
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/hooks/use-overflow-tip.d.ts +1 -1
- package/packages/components/input/src/index.vue.d.ts +21 -18
- package/packages/components/input/style.css +9 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.d.ts +4 -4
- package/packages/components/input-dialog-select/index.js +74 -98
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/src/Index.vue.d.ts +4 -4
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.d.ts +5 -5
- package/packages/components/input-number/index.js +84 -96
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/src/App.vue.d.ts +1 -1
- package/packages/components/input-number/src/type.d.ts +2 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/loading/index.js +140 -149
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/loading/src/utils/tool.d.ts +3 -3
- package/packages/components/loading/style.css +1 -1
- package/packages/components/loading/style.css.gz +0 -0
- package/packages/components/map/index.js +308 -308
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.d.ts +0 -3
- package/packages/components/menu-aside/index.js +503 -643
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/src/Index.vue.d.ts +0 -1
- package/packages/components/menu-aside/src/sub-menu/sub-menu.vue.d.ts +1 -1
- package/packages/components/menu-aside/src/type.d.ts +0 -2
- package/packages/components/menu-aside/style.css +1 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-header/index.d.ts +0 -3
- package/packages/components/menu-header/index.js +69 -144
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/menu-header/src/Index.vue.d.ts +0 -1
- package/packages/components/menu-header/src/type.d.ts +0 -1
- package/packages/components/menu-header/src/use-layout-header.d.ts +2 -1
- package/packages/components/message/index.d.ts +4 -1
- package/packages/components/message/index.js +50 -74
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/message/src/message.d.ts +5 -1
- package/packages/components/message/style.css +1 -1
- package/packages/components/message/style.css.gz +0 -0
- package/packages/components/notification/index.js +38 -46
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/notification/src/notification.d.ts +6 -12
- package/packages/components/notification/style.css +1 -1
- package/packages/components/notification/style.css.gz +0 -0
- package/packages/components/overlay/index.js +2 -2
- package/packages/components/overlay/index.js.gz +0 -0
- package/packages/components/pagination/index.d.ts +15 -15
- package/packages/components/pagination/index.js +102 -111
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/src/Pagination.vue.d.ts +2 -2
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popup-mask/index.d.ts +38 -38
- package/packages/components/popup-mask/index.js +12 -11
- package/packages/components/popup-mask/index.js.gz +0 -0
- package/packages/components/popup-mask/src/Index.vue.d.ts +5 -5
- package/packages/components/progress/index.js +103 -113
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/progress/style.css +1 -1
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/radio/index.d.ts +30 -30
- package/packages/components/radio/index.js +190 -173
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/radio/src/Index.vue.d.ts +4 -4
- package/packages/components/radio/style.css +1 -1
- package/packages/components/radio/style.css.gz +0 -0
- package/packages/components/rich-editor/index.js +774 -778
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/rich-editor/src/hooks/use-custom-menu.d.ts +1 -0
- package/packages/components/rich-editor/src/hooks/use-rich-editor.d.ts +1 -0
- package/packages/components/rich-editor/src/type.d.ts +2 -2
- package/packages/components/scrollbar/index.js +420 -420
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/scrollbar/src/hooks/use-observer.d.ts +1 -1
- package/packages/components/scrollbar/style.css +1 -1
- package/packages/components/scrollbar/style.css.gz +0 -0
- package/packages/components/search/index.d.ts +1 -1
- package/packages/components/search/index.js +37 -49
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/src/Index.vue.d.ts +1 -1
- package/packages/components/search/src/type.d.ts +8 -8
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/search-form/index.d.ts +5 -0
- package/packages/components/search-form/index.js +491 -503
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +1 -1
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.d.ts +24 -24
- package/packages/components/select/index.js +200 -249
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/Select.vue.d.ts +8 -8
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-input/index.d.ts +2 -2
- package/packages/components/select-input/index.js +15 -20
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/src/Index.vue.d.ts +2 -2
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/select-list/index.js +233 -240
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/src/hooks/use-drag.d.ts +1 -1
- package/packages/components/select-list/src/hooks/use-select-list.d.ts +1 -1
- package/packages/components/select-list/src/type.d.ts +1 -1
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/index.d.ts +1 -1
- package/packages/components/special-range-picker-month/index.js +158 -176
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/src/Index.vue.d.ts +1 -1
- package/packages/components/special-range-picker-month/src/hooks/use-date-popover.d.ts +1 -1
- package/packages/components/special-range-picker-month/src/hooks/use-error.d.ts +4 -13
- package/packages/components/special-range-picker-month/style.css +1 -1
- package/packages/components/special-range-picker-month/style.css.gz +0 -0
- package/packages/components/special-range-picker-year/index.d.ts +1 -1
- package/packages/components/special-range-picker-year/index.js +188 -206
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/src/Index.vue.d.ts +1 -1
- package/packages/components/special-range-picker-year/src/hooks/use-date-popover.d.ts +1 -1
- package/packages/components/special-range-picker-year/src/hooks/use-error.d.ts +4 -13
- package/packages/components/special-range-picker-year/style.css +1 -1
- package/packages/components/special-range-picker-year/style.css.gz +0 -0
- package/packages/components/spin/index.js +43 -52
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +105 -112
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/split-panel/style.css +1 -1
- package/packages/components/split-panel/style.css.gz +0 -0
- package/packages/components/step/index.d.ts +3 -0
- package/packages/components/step/index.js +21 -31
- package/packages/components/step/index.js.gz +0 -0
- package/packages/components/step/src/stepItem.vue.d.ts +1 -1
- package/packages/components/step/style.css +1 -1
- package/packages/components/steps/index.js +12 -22
- package/packages/components/steps/style.css +1 -1
- package/packages/components/steps/style.css.gz +0 -0
- package/packages/components/switch/index.d.ts +1 -1
- package/packages/components/switch/index.js +27 -35
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/switch/src/Index.vue.d.ts +1 -1
- package/packages/components/switch/src/type.d.ts +1 -1
- package/packages/components/switch/style.css +1 -1
- package/packages/components/switch/style.css.gz +0 -0
- package/packages/components/table/index.d.ts +37 -37
- package/packages/components/table/index.js +1779 -1812
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +5 -5
- package/packages/components/table/src/filter-pane/filterPane.vue.d.ts +2 -2
- package/packages/components/table/src/hooks/use-high-performance.d.ts +1 -1
- package/packages/components/table/src/hooks/use-operation.d.ts +1 -49
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/index.d.ts +5 -8
- package/packages/components/tabs/index.js +276 -302
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tabs/src/Tabs.vue.d.ts +2 -5
- package/packages/components/tabs/src/type.d.ts +0 -2
- package/packages/components/tabs/style.css +1 -1
- package/packages/components/tabs/style.css.gz +0 -0
- package/packages/components/tag/index.d.ts +6 -6
- package/packages/components/tag/index.js +57 -95
- package/packages/components/tag/index.js.gz +0 -0
- package/packages/components/tag/src/Index.vue.d.ts +2 -2
- package/packages/components/tag/style.css +1 -1
- package/packages/components/tag/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +839 -856
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/time-line/index.d.ts +4 -0
- package/packages/components/time-line/index.js +22 -30
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/time-line/style.css +1 -1
- package/packages/components/time-line/style.css.gz +0 -0
- package/packages/components/tooltip/index.d.ts +16 -17
- package/packages/components/tooltip/index.js +24 -31
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/src/index.vue.d.ts +2 -2
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tree/index.d.ts +9 -0
- package/packages/components/tree/index.js +1462 -1476
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +1 -1
- package/packages/components/tree/src/hooks/use-tree.d.ts +1 -2
- package/packages/components/tree/style.css +1 -1
- package/packages/components/tree/style.css.gz +0 -0
- package/packages/components/tree-select/index.d.ts +8 -0
- package/packages/components/tree-select/index.js +49 -55
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +41 -6457
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +35 -6451
- package/packages/components/tree-select/style.css +1 -1
- package/packages/components/tree-select/style.css.gz +0 -0
- package/packages/components/tree-table/index.d.ts +9 -9
- package/packages/components/tree-table/index.js +111 -119
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-table/src/App.vue.d.ts +1 -1
- package/packages/components/tree-table/style.css +1 -1
- package/packages/components/tree-table/style.css.gz +0 -0
- package/packages/components/tree-v2/index.d.ts +2 -672
- package/packages/components/tree-v2/index.js +5699 -2907
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/src/App.vue.d.ts +4026 -68
- package/packages/components/tree-v2/src/hooks/use-tree.d.ts +2 -3
- package/packages/components/tree-v2/src/type.d.ts +4 -2
- package/packages/components/tree-v2/style.css +9 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/upload/index.js +91 -101
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/upload/src/hook/use-upload.d.ts +1 -1
- package/packages/components/upload/style.css +1 -1
- package/packages/components/upload/style.css.gz +0 -0
- package/packages/components/virtual-tree/index.d.ts +8 -0
- package/packages/components/virtual-tree/index.js +187 -95
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/virtual-tree/src/App.vue.d.ts +13 -10
- package/packages/components/virtual-tree/style.css +1 -1
- package/packages/components/virtual-tree/style.css.gz +0 -0
- package/packages/global/theme/index.js +2 -42
- package/packages/icons/index.d.ts +1 -0
- package/packages/icons/index.js +1 -0
- package/packages/icons/theme-set-icon/index.d.ts +1 -0
- package/packages/icons/theme-set-icon/index.js +17 -0
- package/packages/icons/theme-set-icon/index.js.gz +0 -0
- package/packages/icons/theme-set-icon/index.vue.d.ts +12 -0
- package/packages/business-components/ai-panel/index-BtiuhwME.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CDBVlFmp.js.gz +0 -0
- package/packages/business-components/app-container/src/style-theme.d.ts +0 -13
- package/packages/business-components/app-container/theme/index.d.ts +0 -8
- package/packages/business-components/layout-breadcrumb/theme/base.d.ts +0 -5
- package/packages/business-components/process-log/theme/index.d.ts +0 -11
- package/packages/components/alert/theme/index.d.ts +0 -12
- package/packages/components/breadcrumb/theme/index.d.ts +0 -7
- package/packages/components/button/theme/index.d.ts +0 -21
- package/packages/components/calendar/theme/base.d.ts +0 -11
- package/packages/components/cascader/theme/base.d.ts +0 -19
- package/packages/components/checkbox/theme/index.d.ts +0 -14
- package/packages/components/collapse-panel/theme/index.d.ts +0 -7
- package/packages/components/color-picker/theme/index.d.ts +0 -8
- package/packages/components/custom-search-item/theme/index.d.ts +0 -7
- package/packages/components/date-picker/theme/base.d.ts +0 -16
- package/packages/components/dialog/theme/base.d.ts +0 -17
- package/packages/components/drawer/theme/base.d.ts +0 -11
- package/packages/components/dropdown/theme/index.d.ts +0 -7
- package/packages/components/empty/theme/index.d.ts +0 -9
- package/packages/components/form-item/theme/index.d.ts +0 -12
- package/packages/components/image-upload/theme/index.d.ts +0 -18
- package/packages/components/image-viewer/theme/index.d.ts +0 -12
- package/packages/components/input/theme/base.d.ts +0 -19
- package/packages/components/input-dialog-select/theme/index.d.ts +0 -17
- package/packages/components/input-number/theme/index.d.ts +0 -12
- package/packages/components/loading/theme/index.d.ts +0 -9
- package/packages/components/menu-aside/src/style-theme.d.ts +0 -98
- package/packages/components/menu-aside/theme/base.d.ts +0 -27
- package/packages/components/menu-header/src/style-theme.d.ts +0 -48
- package/packages/components/menu-header/theme/base.d.ts +0 -12
- package/packages/components/message/theme/index.d.ts +0 -24
- package/packages/components/notification/theme/index.d.ts +0 -10
- package/packages/components/pagination/theme/index.d.ts +0 -9
- package/packages/components/progress/theme/index.d.ts +0 -10
- package/packages/components/radio/theme/index.d.ts +0 -15
- package/packages/components/rich-editor/theme/base.d.ts +0 -4
- package/packages/components/search/theme/index.d.ts +0 -11
- package/packages/components/search-form/theme/index.d.ts +0 -13
- package/packages/components/select/theme/base.d.ts +0 -27
- package/packages/components/select-input/theme/index.d.ts +0 -9
- package/packages/components/select-list/theme/index.d.ts +0 -11
- package/packages/components/special-range-picker-month/theme/index.d.ts +0 -48
- package/packages/components/special-range-picker-year/theme/index.d.ts +0 -48
- package/packages/components/spin/theme/index.d.ts +0 -9
- package/packages/components/split-panel/theme/base.d.ts +0 -6
- package/packages/components/step/theme/base.d.ts +0 -9
- package/packages/components/steps/index.js.gz +0 -0
- package/packages/components/steps/theme/base.d.ts +0 -9
- package/packages/components/switch/theme/base.d.ts +0 -7
- package/packages/components/table/theme/index.d.ts +0 -21
- package/packages/components/tabs/src/style-theme.d.ts +0 -13
- package/packages/components/tabs/theme/base.d.ts +0 -13
- package/packages/components/tag/theme/base.d.ts +0 -29
- package/packages/components/text-tooltip/theme/index.d.ts +0 -10
- package/packages/components/time-line/theme/index.d.ts +0 -7
- package/packages/components/tooltip/theme/index.d.ts +0 -6
- package/packages/components/tree/theme/base.d.ts +0 -16
- package/packages/components/tree-select/theme/base.d.ts +0 -5
- package/packages/components/tree-table/theme/base.d.ts +0 -7
- package/packages/components/tree-v2/theme/base.d.ts +0 -16
- package/packages/components/upload/theme/index.d.ts +0 -16
- package/packages/global/theme/index.js.gz +0 -0
- /package/packages/business-components/area-phone-select/src/{Index.vue.d.ts → index.vue.d.ts} +0 -0
- /package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/{use-data-Trends.d.ts → use-data-trends.d.ts} +0 -0
- /package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/{use-data-Trends.d.ts → use-data-trends.d.ts} +0 -0
|
@@ -1,17 +1,1706 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/components/input/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import {
|
|
4
|
-
import { unref as x, getCurrentScope as oe, onScopeDispose as ne, getCurrentInstance as G, onMounted as re, nextTick as M, computed as h, ref as v, watch as B, defineComponent as ae, openBlock as z, createElementBlock as P, normalizeStyle as le, normalizeClass as D, createCommentVNode as I, createVNode as N, withCtx as C, mergeProps as se, createSlots as ie, renderSlot as k, Fragment as ue, withDirectives as de, createTextVNode as ce, toDisplayString as fe, createBlock as pe } from "vue";
|
|
2
|
+
import { withInstall as ys } from "@das-fed/upf-utils/with-install/index";
|
|
3
|
+
import { defineComponent as To, useCssVars as xs, useAttrs as ws, computed as ct, ref as K, onMounted as $o, onBeforeMount as Ss, openBlock as ht, createBlock as Io, unref as Bt, mergeProps as En, withCtx as Dt, createVNode as io, createElementVNode as Re, normalizeClass as Pe, renderSlot as ee, createElementBlock as St, Fragment as Le, createTextVNode as Tn, toDisplayString as ze, createCommentVNode as Lt, normalizeStyle as Ve, nextTick as be, Teleport as Os, getCurrentScope as Cs, onScopeDispose as Es, getCurrentInstance as $n, watch as Gt, createSlots as Ts, withDirectives as $s } from "vue";
|
|
5
4
|
import "element-plus/es/components/input/style/css";
|
|
6
|
-
import { ElInput as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
import { ElTooltip as Is, ElInput as Ls } from "element-plus";
|
|
6
|
+
import { currentLang as Fo, t as Hs, setI18nRule as ks } from "@das-fed/upf-web/packages/i18n/index";
|
|
7
|
+
import { DasScrollbar as Ms } from "@das-fed/upf-ui/packages/components/scrollbar/index";
|
|
8
|
+
import "element-plus/es/components/tooltip/style/css";
|
|
9
|
+
import { createStyle as As } from "@das-fed/upf-utils/style";
|
|
10
|
+
import { useZIndex as Rs } from "@das-fed/upf-utils/hooks/popup-manager/use-zindex";
|
|
11
|
+
const Ps = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "das-tooltip-virtual-placeholder"
|
|
14
|
+
}, zs = ["innerHTML"], Vs = { key: 1 }, Bs = /* @__PURE__ */ To({
|
|
15
|
+
__name: "index",
|
|
16
|
+
props: {
|
|
17
|
+
selfPopperClass: { default: "" },
|
|
18
|
+
effect: { default: "light" },
|
|
19
|
+
placement: { default: "top" },
|
|
20
|
+
customClass: { default: "" },
|
|
21
|
+
content: { default: "" },
|
|
22
|
+
disabled: { type: Boolean, default: void 0 },
|
|
23
|
+
text: { default: "" },
|
|
24
|
+
row: { default: 1 },
|
|
25
|
+
textWidth: { default: "100%" },
|
|
26
|
+
textHtml: { type: Boolean, default: !1 },
|
|
27
|
+
isMaxheight: { type: Boolean, default: !0 }
|
|
28
|
+
},
|
|
29
|
+
emits: ["show", "hide"],
|
|
30
|
+
setup(t, { expose: e, emit: o }) {
|
|
31
|
+
xs((m) => ({
|
|
32
|
+
v65704ba4: d.value
|
|
33
|
+
}));
|
|
34
|
+
const n = t, s = o, r = ws(), c = ct(() => {
|
|
35
|
+
const m = "virtual-triggering" in r || "virtualTriggering" in r || r["virtual-triggering"] !== void 0 || r.virtualTriggering !== void 0, E = "virtual-ref" in r || "virtualRef" in r || r["virtual-ref"] !== void 0 || r.virtualRef !== void 0;
|
|
36
|
+
return m || E;
|
|
37
|
+
}), l = K(), a = K(!1), d = ct(() => Number(n.row)), i = ct(() => n.disabled ?? (n.text ? !a.value : !1)), u = ct(() => n.content || n.text), f = (m) => {
|
|
38
|
+
a.value = m.target.scrollHeight > m.target.clientHeight;
|
|
39
|
+
}, x = (m) => {
|
|
40
|
+
s("show", m), window.addEventListener("wheel", v);
|
|
41
|
+
}, C = (m) => {
|
|
42
|
+
s("hide", m), window.removeEventListener("wheel", v);
|
|
43
|
+
}, v = (m) => {
|
|
44
|
+
const E = document.querySelector('[id^="el-popper-container"]');
|
|
45
|
+
if (!E) return;
|
|
46
|
+
const w = E.querySelector(".das-ui-tooltip-popper");
|
|
47
|
+
if (!w) return;
|
|
48
|
+
const g = m.clientX, O = m.clientY, p = w == null ? void 0 : w.getBoundingClientRect();
|
|
49
|
+
w && g >= p.left && g <= p.right && O >= p.top && O <= p.bottom || (w.style.display = "none", w.style.opacity = "0", be(() => {
|
|
50
|
+
C();
|
|
51
|
+
}));
|
|
52
|
+
};
|
|
53
|
+
return $o(() => {
|
|
54
|
+
}), Ss(() => {
|
|
55
|
+
window.removeEventListener("wheel", v);
|
|
56
|
+
}), e({
|
|
57
|
+
$tooltipRef: l
|
|
58
|
+
}), (m, E) => (ht(), Io(Bt(Is), En({
|
|
59
|
+
ref_key: "$tooltipRef",
|
|
60
|
+
ref: l,
|
|
61
|
+
class: "das-ui-tooltip",
|
|
62
|
+
disabled: i.value,
|
|
63
|
+
effect: t.effect,
|
|
64
|
+
placement: t.placement,
|
|
65
|
+
"popper-class": `das-ui-tooltip-popper ${t.isMaxheight ? "max-height" : ""} ${t.selfPopperClass}`,
|
|
66
|
+
"hide-after": 100,
|
|
67
|
+
"show-after": 100
|
|
68
|
+
}, m.$attrs, {
|
|
69
|
+
onShow: x,
|
|
70
|
+
onHide: C
|
|
71
|
+
}), {
|
|
72
|
+
content: Dt(() => [
|
|
73
|
+
io(Bt(Ms), null, {
|
|
74
|
+
default: Dt(() => [
|
|
75
|
+
Re(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
class: Pe({ "max-height": t.isMaxheight, "das-popper-content": !0 })
|
|
79
|
+
},
|
|
80
|
+
[
|
|
81
|
+
ee(m.$slots, "content", {}, void 0, !0),
|
|
82
|
+
u.value && !m.$slots.content ? (ht(), St(
|
|
83
|
+
Le,
|
|
84
|
+
{ key: 0 },
|
|
85
|
+
[
|
|
86
|
+
Tn(
|
|
87
|
+
ze(u.value),
|
|
88
|
+
1
|
|
89
|
+
/* TEXT */
|
|
90
|
+
)
|
|
91
|
+
],
|
|
92
|
+
64
|
|
93
|
+
/* STABLE_FRAGMENT */
|
|
94
|
+
)) : Lt("v-if", !0)
|
|
95
|
+
],
|
|
96
|
+
2
|
|
97
|
+
/* CLASS */
|
|
98
|
+
)
|
|
99
|
+
]),
|
|
100
|
+
_: 3
|
|
101
|
+
/* FORWARDED */
|
|
102
|
+
})
|
|
103
|
+
]),
|
|
104
|
+
default: Dt(() => [
|
|
105
|
+
c.value ? (ht(), St("span", Ps, " ")) : (ht(), St(
|
|
106
|
+
Le,
|
|
107
|
+
{ key: 1 },
|
|
108
|
+
[
|
|
109
|
+
Lt(" 默认 slot 内容 "),
|
|
110
|
+
ee(m.$slots, "default", {}, () => [
|
|
111
|
+
t.text ? (ht(), St(
|
|
112
|
+
"div",
|
|
113
|
+
{
|
|
114
|
+
key: 0,
|
|
115
|
+
onMouseenter: E[0] || (E[0] = (w) => f(w)),
|
|
116
|
+
class: Pe(`das-tooltip-text-wrap ${t.customClass}`),
|
|
117
|
+
style: Ve({ width: n.textWidth })
|
|
118
|
+
},
|
|
119
|
+
[
|
|
120
|
+
t.textHtml ? (ht(), St("div", {
|
|
121
|
+
key: 0,
|
|
122
|
+
innerHTML: t.text
|
|
123
|
+
}, null, 8, zs)) : (ht(), St(
|
|
124
|
+
"div",
|
|
125
|
+
Vs,
|
|
126
|
+
ze(t.text),
|
|
127
|
+
1
|
|
128
|
+
/* TEXT */
|
|
129
|
+
))
|
|
130
|
+
],
|
|
131
|
+
38
|
|
132
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
133
|
+
)) : (ht(), St(
|
|
134
|
+
Le,
|
|
135
|
+
{ key: 1 },
|
|
136
|
+
[
|
|
137
|
+
Lt(" 当没有 text 且没有 slot 内容时,提供一个占位元素避免 ElOnlyChild 错误 "),
|
|
138
|
+
E[1] || (E[1] = Re(
|
|
139
|
+
"span",
|
|
140
|
+
{ class: "das-tooltip-virtual-placeholder" },
|
|
141
|
+
" ",
|
|
142
|
+
-1
|
|
143
|
+
/* CACHED */
|
|
144
|
+
))
|
|
145
|
+
],
|
|
146
|
+
2112
|
|
147
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
148
|
+
))
|
|
149
|
+
], !0)
|
|
150
|
+
],
|
|
151
|
+
2112
|
|
152
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
153
|
+
))
|
|
154
|
+
]),
|
|
155
|
+
_: 3
|
|
156
|
+
/* FORWARDED */
|
|
157
|
+
}, 16, ["disabled", "effect", "placement", "popper-class"]));
|
|
158
|
+
}
|
|
159
|
+
}), In = (t, e) => {
|
|
160
|
+
const o = t.__vccOpts || t;
|
|
161
|
+
for (const [n, s] of e)
|
|
162
|
+
o[n] = s;
|
|
163
|
+
return o;
|
|
164
|
+
}, Ds = /* @__PURE__ */ In(Bs, [["__scopeId", "data-v-e1652f58"]]), Ws = /* @__PURE__ */ To({
|
|
165
|
+
__name: "index",
|
|
166
|
+
props: {
|
|
167
|
+
getEl: {},
|
|
168
|
+
errorLabel: { default: "" },
|
|
169
|
+
errorModelZIndex: { default: 2e3 },
|
|
170
|
+
errorWidth: { default: void 0 }
|
|
171
|
+
},
|
|
172
|
+
setup(t) {
|
|
173
|
+
const e = t, o = K(null), n = K(), s = K({
|
|
174
|
+
x: 0,
|
|
175
|
+
y: 0
|
|
176
|
+
}), r = ct(() => ({
|
|
177
|
+
"box-sizing": "border-box",
|
|
178
|
+
"font-size": "12px",
|
|
179
|
+
// 错误浮层直接消费 upf 根变量,确保 Teleport 到 body 后仍随主题同步。
|
|
180
|
+
"background-color": "var(--upf-message-error-bg, var(--upf-bg-primary))",
|
|
181
|
+
"box-shadow": "var(--upf-box-shadow-elevated, 0px 4px 12px rgba(38, 38, 38, 0.12))",
|
|
182
|
+
"border-radius": "var(--upf-border-radius, 4px)",
|
|
183
|
+
padding: "2px 8px",
|
|
184
|
+
"z-index": e.errorModelZIndex
|
|
185
|
+
})), c = ct(() => {
|
|
186
|
+
const d = n.value ?? "0";
|
|
187
|
+
return {
|
|
188
|
+
...r.value,
|
|
189
|
+
width: d + (/px$/.test(d) ? "" : "px"),
|
|
190
|
+
position: "fixed",
|
|
191
|
+
visibility: "visible",
|
|
192
|
+
top: s.value.y + "px",
|
|
193
|
+
left: s.value.x + "px"
|
|
194
|
+
};
|
|
195
|
+
}), l = K({
|
|
196
|
+
// display: 'block',
|
|
197
|
+
color: "var(--upf-message-error-text, var(--upf-color-error))",
|
|
198
|
+
"white-space": "break-spaces"
|
|
199
|
+
}), a = () => {
|
|
200
|
+
const d = (O = 0) => {
|
|
201
|
+
const p = document.createElement("div");
|
|
202
|
+
for (let [V, I] of Object.entries({
|
|
203
|
+
...r.value,
|
|
204
|
+
...l.value,
|
|
205
|
+
width: O + "px"
|
|
206
|
+
}))
|
|
207
|
+
p.style[V] = I;
|
|
208
|
+
const S = document.createElement("span");
|
|
209
|
+
for (let [V, I] of Object.entries(l.value))
|
|
210
|
+
S.style[V] = I;
|
|
211
|
+
S.textContent = e.errorLabel, p.appendChild(S), document.body.appendChild(p);
|
|
212
|
+
const R = p.offsetHeight, W = S.offsetWidth;
|
|
213
|
+
return document.body.removeChild(p), { height: R, textWidth: W };
|
|
214
|
+
}, i = () => {
|
|
215
|
+
const O = document.documentElement.clientHeight, S = document.documentElement.scrollHeight - O;
|
|
216
|
+
return O - S;
|
|
217
|
+
}, u = e.getEl(), f = (u == null ? void 0 : u.clientWidth) ?? 0, x = d(f), C = x.textWidth;
|
|
218
|
+
e.errorWidth ? n.value = e.errorWidth : C > f ? n.value = C + 2 + 8 + "px" : n.value = f + "px";
|
|
219
|
+
const { left: v = 0, bottom: m = 0, height: E = 0 } = (u == null ? void 0 : u.getBoundingClientRect()) ?? {}, w = i(), g = x.height;
|
|
220
|
+
s.value.y = Math.ceil(m + g) >= w ? m - E - g : m, s.value.x = v;
|
|
221
|
+
};
|
|
222
|
+
return $o(async () => {
|
|
223
|
+
await be(), a();
|
|
224
|
+
}), (d, i) => (ht(), Io(Os, { to: "body" }, [
|
|
225
|
+
Re(
|
|
226
|
+
"div",
|
|
227
|
+
{
|
|
228
|
+
ref_key: "$errorModel",
|
|
229
|
+
ref: o,
|
|
230
|
+
style: Ve(c.value)
|
|
231
|
+
},
|
|
232
|
+
[
|
|
233
|
+
Re(
|
|
234
|
+
"span",
|
|
235
|
+
{
|
|
236
|
+
style: Ve(l.value)
|
|
237
|
+
},
|
|
238
|
+
ze(t.errorLabel),
|
|
239
|
+
5
|
|
240
|
+
/* TEXT, STYLE */
|
|
241
|
+
)
|
|
242
|
+
],
|
|
243
|
+
4
|
|
244
|
+
/* STYLE */
|
|
245
|
+
)
|
|
246
|
+
]));
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
/*!
|
|
250
|
+
* OverlayScrollbars
|
|
251
|
+
* Version: 2.6.1
|
|
252
|
+
*
|
|
253
|
+
* Copyright (c) Rene Haas | KingSora.
|
|
254
|
+
* https://github.com/KingSora
|
|
255
|
+
*
|
|
256
|
+
* Released under the MIT license.
|
|
257
|
+
*/
|
|
258
|
+
const Ct = (t, e) => {
|
|
259
|
+
const { o, u: n, _: s } = t;
|
|
260
|
+
let r = o, c;
|
|
261
|
+
const l = (i, u) => {
|
|
262
|
+
const f = r, x = i, C = u || (n ? !n(f, x) : f !== x);
|
|
263
|
+
return (C || s) && (r = x, c = f), [r, C, c];
|
|
264
|
+
};
|
|
265
|
+
return [e ? (i) => l(e(r, c), i) : l, (i) => [r, !!i, c]];
|
|
266
|
+
}, Lo = typeof window < "u", yt = Lo ? window : {}, He = Math.max, _s = Math.min, ao = Math.round, Ln = yt.cancelAnimationFrame, Hn = yt.requestAnimationFrame, uo = yt.setTimeout, fo = yt.clearTimeout, Fe = (t) => typeof yt[t] < "u" ? yt[t] : void 0, Ns = Fe("MutationObserver"), Uo = Fe("IntersectionObserver"), Be = Fe("ResizeObserver"), po = Fe("ScrollTimeline"), kn = Lo && Node.ELEMENT_NODE, { toString: Fs, hasOwnProperty: oo } = Object.prototype, Us = /^\[object (.+)\]$/, we = (t) => t === void 0, Ue = (t) => t === null, js = (t) => we(t) || Ue(t) ? `${t}` : Fs.call(t).replace(Us, "$1").toLowerCase(), Ht = (t) => typeof t == "number", je = (t) => typeof t == "string", Mn = (t) => typeof t == "boolean", kt = (t) => typeof t == "function", Tt = (t) => Array.isArray(t), ye = (t) => typeof t == "object" && !Tt(t) && !Ue(t), Xe = (t) => {
|
|
267
|
+
const e = !!t && t.length, o = Ht(e) && e > -1 && e % 1 == 0;
|
|
268
|
+
return Tt(t) || !kt(t) && o ? e > 0 && ye(t) ? e - 1 in t : !0 : !1;
|
|
269
|
+
}, De = (t) => {
|
|
270
|
+
if (!t || !ye(t) || js(t) !== "object")
|
|
271
|
+
return !1;
|
|
272
|
+
let e;
|
|
273
|
+
const o = "constructor", n = t[o], s = n && n.prototype, r = oo.call(t, o), c = s && oo.call(s, "isPrototypeOf");
|
|
274
|
+
if (n && !r && !c)
|
|
275
|
+
return !1;
|
|
276
|
+
for (e in t)
|
|
277
|
+
;
|
|
278
|
+
return we(e) || oo.call(t, e);
|
|
279
|
+
}, me = (t) => {
|
|
280
|
+
const e = HTMLElement;
|
|
281
|
+
return t ? e ? t instanceof e : t.nodeType === kn : !1;
|
|
282
|
+
}, Ye = (t) => {
|
|
283
|
+
const e = Element;
|
|
284
|
+
return t ? e ? t instanceof e : t.nodeType === kn : !1;
|
|
285
|
+
};
|
|
286
|
+
function G(t, e) {
|
|
287
|
+
if (Xe(t))
|
|
288
|
+
for (let o = 0; o < t.length && e(t[o], o, t) !== !1; o++)
|
|
289
|
+
;
|
|
290
|
+
else t && G(Object.keys(t), (o) => e(t[o], o, t));
|
|
291
|
+
return t;
|
|
292
|
+
}
|
|
293
|
+
const Ze = (t, e) => t.indexOf(e) >= 0, Mt = (t, e) => t.concat(e), tt = (t, e, o) => (!je(e) && Xe(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Kt = (t) => Array.from(t || []), An = (t) => Tt(t) ? t : [t], ho = (t) => !!t && !t.length, jo = (t) => Kt(new Set(t)), xt = (t, e, o) => {
|
|
294
|
+
G(t, (s) => s && s.apply(void 0, e || [])), !o && (t.length = 0);
|
|
295
|
+
}, Rn = "paddingTop", Pn = "paddingRight", zn = "paddingLeft", Vn = "paddingBottom", Bn = "marginLeft", Dn = "marginRight", Wn = "marginBottom", Ge = "overflowX", qe = "overflowY", ce = "width", le = "height", ie = "hidden", _n = "visible", Ho = (t, e, o, n) => {
|
|
296
|
+
if (t && e) {
|
|
297
|
+
let s = !0;
|
|
298
|
+
return G(o, (r) => {
|
|
299
|
+
const c = t[r], l = e[r];
|
|
300
|
+
c !== l && (s = !1);
|
|
301
|
+
}), s;
|
|
302
|
+
}
|
|
303
|
+
return !1;
|
|
304
|
+
}, Nn = (t, e) => Ho(t, e, ["w", "h"]), Fn = (t, e) => Ho(t, e, ["x", "y"]), Xs = (t, e) => Ho(t, e, ["t", "r", "b", "l"]), Et = () => {
|
|
305
|
+
}, D = (t, ...e) => t.bind(0, ...e), zt = (t) => {
|
|
306
|
+
let e;
|
|
307
|
+
const o = t ? uo : Hn, n = t ? fo : Ln;
|
|
308
|
+
return [(s) => {
|
|
309
|
+
n(e), e = o(s, kt(t) ? t() : t);
|
|
310
|
+
}, () => n(e)];
|
|
311
|
+
}, Un = (t, e) => {
|
|
312
|
+
let o, n, s, r = Et;
|
|
313
|
+
const { v: c, p: l, S: a } = e || {}, d = function(C) {
|
|
314
|
+
r(), fo(o), o = n = void 0, r = Et, t.apply(this, C);
|
|
315
|
+
}, i = (x) => a && n ? a(n, x) : x, u = () => {
|
|
316
|
+
r !== Et && d(i(s) || s);
|
|
317
|
+
}, f = function() {
|
|
318
|
+
const C = Kt(arguments), v = kt(c) ? c() : c;
|
|
319
|
+
if (Ht(v) && v >= 0) {
|
|
320
|
+
const E = kt(l) ? l() : l, w = Ht(E) && E >= 0, g = v > 0 ? uo : Hn, O = v > 0 ? fo : Ln, S = i(C) || C, R = d.bind(0, S);
|
|
321
|
+
r();
|
|
322
|
+
const W = g(R, v);
|
|
323
|
+
r = () => O(W), w && !o && (o = uo(u, E)), n = s = S;
|
|
324
|
+
} else
|
|
325
|
+
d(C);
|
|
326
|
+
};
|
|
327
|
+
return f.m = u, f;
|
|
328
|
+
}, jn = (t, e) => Object.prototype.hasOwnProperty.call(t, e), At = (t) => t ? Object.keys(t) : [], Y = (t, e, o, n, s, r, c) => {
|
|
329
|
+
const l = [e, o, n, s, r, c];
|
|
330
|
+
return (typeof t != "object" || Ue(t)) && !kt(t) && (t = {}), G(l, (a) => {
|
|
331
|
+
G(a, (d, i) => {
|
|
332
|
+
const u = a[i];
|
|
333
|
+
if (t === u)
|
|
334
|
+
return !0;
|
|
335
|
+
const f = Tt(u);
|
|
336
|
+
if (u && De(u)) {
|
|
337
|
+
const x = t[i];
|
|
338
|
+
let C = x;
|
|
339
|
+
f && !Tt(x) ? C = [] : !f && !De(x) && (C = {}), t[i] = Y(C, u);
|
|
340
|
+
} else
|
|
341
|
+
t[i] = f ? u.slice() : u;
|
|
342
|
+
});
|
|
343
|
+
}), t;
|
|
344
|
+
}, Xn = (t, e) => G(Y({}, t), (o, n, s) => {
|
|
345
|
+
o === void 0 ? delete s[n] : o && De(o) && (s[n] = Xn(o));
|
|
346
|
+
}), ko = (t) => {
|
|
347
|
+
for (const e in t)
|
|
348
|
+
return !1;
|
|
349
|
+
return !0;
|
|
350
|
+
}, vo = (t, e, o) => He(t, _s(e, o)), Yt = (t) => Kt(new Set((Tt(t) ? t : (t || "").split(" ")).filter((e) => e))), Qe = (t, e) => t && t.getAttribute(e), Ot = (t, e, o) => {
|
|
351
|
+
G(Yt(e), (n) => {
|
|
352
|
+
t && t.setAttribute(n, o || "");
|
|
353
|
+
});
|
|
354
|
+
}, It = (t, e) => {
|
|
355
|
+
G(Yt(e), (o) => t && t.removeAttribute(o));
|
|
356
|
+
}, Ke = (t, e) => {
|
|
357
|
+
const o = Yt(Qe(t, e)), n = D(Ot, t, e), s = (r, c) => {
|
|
358
|
+
const l = new Set(o);
|
|
359
|
+
return G(Yt(r), (a) => l[c](a)), Kt(l).join(" ");
|
|
360
|
+
};
|
|
361
|
+
return {
|
|
362
|
+
O: (r) => n(s(r, "delete")),
|
|
363
|
+
$: (r) => n(s(r, "add")),
|
|
364
|
+
C: (r) => {
|
|
365
|
+
const c = Yt(r);
|
|
366
|
+
return c.reduce((l, a) => l && o.includes(a), c.length > 0);
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
}, Yn = (t, e, o) => {
|
|
370
|
+
Ke(t, e).O(o);
|
|
371
|
+
}, xe = (t, e, o) => (Ke(t, e).$(o), D(Yn, t, e, o)), ke = (t, e, o, n) => {
|
|
372
|
+
(n ? xe : Yn)(t, e, o);
|
|
373
|
+
}, Ys = (t, e, o) => Ke(t, e).C(o), Zn = (t) => Ke(t, "class"), Mo = (t, e) => {
|
|
374
|
+
Zn(t).O(e);
|
|
375
|
+
}, We = (t, e) => (Zn(t).$(e), D(Mo, t, e)), Xo = Lo && Element.prototype, Gn = (t, e) => {
|
|
376
|
+
const o = [], n = e ? Ye(e) && e : document;
|
|
377
|
+
return n ? tt(o, n.querySelectorAll(t)) : o;
|
|
378
|
+
}, Zs = (t, e) => {
|
|
379
|
+
const o = e ? Ye(e) && e : document;
|
|
380
|
+
return o ? o.querySelector(t) : null;
|
|
381
|
+
}, mo = (t, e) => Ye(t) ? (Xo.matches || Xo.msMatchesSelector).call(t, e) : !1, go = (t) => t ? Kt(t.childNodes) : [], ae = (t) => t && t.parentElement, oe = (t, e) => Ye(t) && t.closest(e), Gs = (t, e, o) => {
|
|
382
|
+
const n = oe(t, e), s = t && Zs(o, n), r = oe(s, e) === n;
|
|
383
|
+
return n && s ? n === t || s === t || r && oe(oe(t, o), e) !== n : !1;
|
|
384
|
+
}, Nt = (t) => {
|
|
385
|
+
if (Xe(t))
|
|
386
|
+
G(Kt(t), (e) => Nt(e));
|
|
387
|
+
else if (t) {
|
|
388
|
+
const e = ae(t);
|
|
389
|
+
e && e.removeChild(t);
|
|
390
|
+
}
|
|
391
|
+
}, qn = (t, e, o) => {
|
|
392
|
+
if (o && t) {
|
|
393
|
+
let n = e, s;
|
|
394
|
+
return Xe(o) ? (s = document.createDocumentFragment(), G(o, (r) => {
|
|
395
|
+
r === n && (n = r.previousSibling), s.appendChild(r);
|
|
396
|
+
})) : s = o, e && (n ? n !== e && (n = n.nextSibling) : n = t.firstChild), t.insertBefore(s, n || null), () => Nt(o);
|
|
397
|
+
}
|
|
398
|
+
return Et;
|
|
399
|
+
}, bt = (t, e) => qn(t, null, e), Yo = (t, e) => qn(ae(t), t && t.nextSibling, e), ne = (t) => {
|
|
400
|
+
const e = document.createElement("div");
|
|
401
|
+
return Ot(e, "class", t), e;
|
|
402
|
+
}, Qn = (t) => {
|
|
403
|
+
const e = ne();
|
|
404
|
+
return e.innerHTML = t.trim(), G(go(e), (o) => Nt(o));
|
|
405
|
+
}, qs = /^--/, Zo = (t, e) => t.getPropertyValue(e) || t[e] || "", Ao = (t) => {
|
|
406
|
+
const e = t || 0;
|
|
407
|
+
return isFinite(e) ? e : 0;
|
|
408
|
+
}, Te = (t) => Ao(parseFloat(t || "")), Go = (t) => `${(Ao(t) * 100).toFixed(3)}%`, bo = (t) => `${Ao(t)}px`;
|
|
409
|
+
function ue(t, e) {
|
|
410
|
+
t && G(e, (o, n) => {
|
|
411
|
+
try {
|
|
412
|
+
const s = t.style, r = Ht(o) ? bo(o) : (o || "") + "";
|
|
413
|
+
qs.test(n) ? s.setProperty(n, r) : s[n] = r;
|
|
414
|
+
} catch {
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
function qt(t, e, o) {
|
|
419
|
+
const n = je(e);
|
|
420
|
+
let s = n ? "" : {};
|
|
421
|
+
if (t) {
|
|
422
|
+
const r = yt.getComputedStyle(t, o) || t.style;
|
|
423
|
+
s = n ? Zo(r, e) : e.reduce((c, l) => (c[l] = Zo(r, l), c), s);
|
|
424
|
+
}
|
|
425
|
+
return s;
|
|
426
|
+
}
|
|
427
|
+
const _t = (t) => qt(t, "direction") === "rtl", qo = (t, e, o) => {
|
|
428
|
+
const n = e ? `${e}-` : "", s = o ? `-${o}` : "", r = `${n}top${s}`, c = `${n}right${s}`, l = `${n}bottom${s}`, a = `${n}left${s}`, d = qt(t, [r, c, l, a]);
|
|
429
|
+
return {
|
|
430
|
+
t: Te(d[r]),
|
|
431
|
+
r: Te(d[c]),
|
|
432
|
+
b: Te(d[l]),
|
|
433
|
+
l: Te(d[a])
|
|
434
|
+
};
|
|
435
|
+
}, no = (t, e) => `translate${ye(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`, Qs = {
|
|
436
|
+
w: 0,
|
|
437
|
+
h: 0
|
|
438
|
+
}, Je = (t, e) => e ? {
|
|
439
|
+
w: e[`${t}Width`],
|
|
440
|
+
h: e[`${t}Height`]
|
|
441
|
+
} : Qs, Ks = (t) => Je("inner", t || yt), ge = D(Je, "offset"), Kn = D(Je, "client"), yo = D(Je, "scroll"), Ro = (t) => {
|
|
442
|
+
const e = parseFloat(qt(t, ce)) || 0, o = parseFloat(qt(t, le)) || 0;
|
|
443
|
+
return {
|
|
444
|
+
w: e - ao(e),
|
|
445
|
+
h: o - ao(o)
|
|
446
|
+
};
|
|
447
|
+
}, se = (t) => t.getBoundingClientRect(), xo = (t) => !!(t && (t[le] || t[ce])), Jn = (t, e) => {
|
|
448
|
+
const o = xo(t);
|
|
449
|
+
return !xo(e) && o;
|
|
450
|
+
}, Qo = (t, e, o, n) => {
|
|
451
|
+
G(Yt(e), (s) => {
|
|
452
|
+
t.removeEventListener(s, o, n);
|
|
453
|
+
});
|
|
454
|
+
}, st = (t, e, o, n) => {
|
|
455
|
+
var s;
|
|
456
|
+
const r = (s = n && n.H) != null ? s : !0, c = n && n.I || !1, l = n && n.A || !1, a = {
|
|
457
|
+
passive: r,
|
|
458
|
+
capture: c
|
|
459
|
+
};
|
|
460
|
+
return D(xt, Yt(e).map((d) => {
|
|
461
|
+
const i = l ? (u) => {
|
|
462
|
+
Qo(t, d, i, c), o(u);
|
|
463
|
+
} : o;
|
|
464
|
+
return t.addEventListener(d, i, a), D(Qo, t, d, i, c);
|
|
465
|
+
}));
|
|
466
|
+
}, Po = (t) => t.stopPropagation(), Ko = (t) => t.preventDefault(), Js = {
|
|
467
|
+
x: 0,
|
|
468
|
+
y: 0
|
|
469
|
+
}, so = (t) => {
|
|
470
|
+
const e = t && se(t);
|
|
471
|
+
return e ? {
|
|
472
|
+
x: e.left + yt.scrollX,
|
|
473
|
+
y: e.top + yt.scrollY
|
|
474
|
+
} : Js;
|
|
475
|
+
}, _e = (t, e, o) => o ? o.n ? -t + 0 : o.i ? e - t : t : t, Jo = (t, e) => [_e(0, t, e), _e(t, t, e)], tn = (t, e, o) => vo(0, 1, _e(t, e, o) / e || 0), Ft = (t, e) => {
|
|
476
|
+
const { x: o, y: n } = Ht(e) ? {
|
|
477
|
+
x: e,
|
|
478
|
+
y: e
|
|
479
|
+
} : e || {};
|
|
480
|
+
Ht(o) && (t.scrollLeft = o), Ht(n) && (t.scrollTop = n);
|
|
481
|
+
}, de = (t) => ({
|
|
482
|
+
x: t.scrollLeft,
|
|
483
|
+
y: t.scrollTop
|
|
484
|
+
}), en = (t, e) => {
|
|
485
|
+
G(An(e), t);
|
|
486
|
+
}, wo = (t) => {
|
|
487
|
+
const e = /* @__PURE__ */ new Map(), o = (r, c) => {
|
|
488
|
+
if (r) {
|
|
489
|
+
const l = e.get(r);
|
|
490
|
+
en((a) => {
|
|
491
|
+
l && l[a ? "delete" : "clear"](a);
|
|
492
|
+
}, c);
|
|
493
|
+
} else
|
|
494
|
+
e.forEach((l) => {
|
|
495
|
+
l.clear();
|
|
496
|
+
}), e.clear();
|
|
497
|
+
}, n = (r, c) => {
|
|
498
|
+
if (je(r)) {
|
|
499
|
+
const d = e.get(r) || /* @__PURE__ */ new Set();
|
|
500
|
+
return e.set(r, d), en((i) => {
|
|
501
|
+
kt(i) && d.add(i);
|
|
502
|
+
}, c), D(o, r, c);
|
|
503
|
+
}
|
|
504
|
+
Mn(c) && c && o();
|
|
505
|
+
const l = At(r), a = [];
|
|
506
|
+
return G(l, (d) => {
|
|
507
|
+
const i = r[d];
|
|
508
|
+
i && tt(a, n(d, i));
|
|
509
|
+
}), D(xt, a);
|
|
510
|
+
}, s = (r, c) => {
|
|
511
|
+
G(Kt(e.get(r)), (l) => {
|
|
512
|
+
c && !ho(c) ? l.apply(0, c) : l();
|
|
513
|
+
});
|
|
514
|
+
};
|
|
515
|
+
return n(t || {}), [n, o, s];
|
|
516
|
+
}, on = (t) => JSON.stringify(t, (e, o) => {
|
|
517
|
+
if (kt(o))
|
|
518
|
+
throw 0;
|
|
519
|
+
return o;
|
|
520
|
+
}), nn = (t, e) => t ? `${e}`.split(".").reduce((o, n) => o && jn(o, n) ? o[n] : void 0, t) : void 0, tr = {
|
|
521
|
+
paddingAbsolute: !1,
|
|
522
|
+
showNativeOverlaidScrollbars: !1,
|
|
523
|
+
update: {
|
|
524
|
+
elementEvents: [["img", "load"]],
|
|
525
|
+
debounce: [0, 33],
|
|
526
|
+
attributes: null,
|
|
527
|
+
ignoreMutation: null
|
|
528
|
+
},
|
|
529
|
+
overflow: {
|
|
530
|
+
x: "scroll",
|
|
531
|
+
y: "scroll"
|
|
532
|
+
},
|
|
533
|
+
scrollbars: {
|
|
534
|
+
theme: "os-theme-dark",
|
|
535
|
+
visibility: "auto",
|
|
536
|
+
autoHide: "never",
|
|
537
|
+
autoHideDelay: 1300,
|
|
538
|
+
autoHideSuspend: !1,
|
|
539
|
+
dragScroll: !0,
|
|
540
|
+
clickScroll: !1,
|
|
541
|
+
pointers: ["mouse", "touch", "pen"]
|
|
542
|
+
}
|
|
543
|
+
}, ts = (t, e) => {
|
|
544
|
+
const o = {}, n = Mt(At(e), At(t));
|
|
545
|
+
return G(n, (s) => {
|
|
546
|
+
const r = t[s], c = e[s];
|
|
547
|
+
if (ye(r) && ye(c))
|
|
548
|
+
Y(o[s] = {}, ts(r, c)), ko(o[s]) && delete o[s];
|
|
549
|
+
else if (jn(e, s) && c !== r) {
|
|
550
|
+
let l = !0;
|
|
551
|
+
if (Tt(r) || Tt(c))
|
|
552
|
+
try {
|
|
553
|
+
on(r) === on(c) && (l = !1);
|
|
554
|
+
} catch {
|
|
555
|
+
}
|
|
556
|
+
l && (o[s] = c);
|
|
557
|
+
}
|
|
558
|
+
}), o;
|
|
559
|
+
}, sn = (t, e, o) => (n) => [nn(t, n), o || nn(e, n) !== void 0], Se = "data-overlayscrollbars", es = "os-environment", er = `${es}-scrollbar-hidden`, ro = `${Se}-initialize`, gt = Se, os = `${gt}-overflow-x`, ns = `${gt}-overflow-y`, ss = "overflowVisible", or = "scrollbarPressed", So = "updating", nr = "body", Vt = `${Se}-viewport`, sr = "arrange", rs = "scrollbarHidden", re = ss, Oo = `${Se}-padding`, rr = re, rn = `${Se}-content`, zo = "os-size-observer", cr = `${zo}-appear`, lr = `${zo}-listener`, ir = "os-trinsic-observer", ar = "os-theme-none", vt = "os-scrollbar", ur = `${vt}-rtl`, dr = `${vt}-horizontal`, fr = `${vt}-vertical`, cs = `${vt}-track`, Vo = `${vt}-handle`, pr = `${vt}-visible`, hr = `${vt}-cornerless`, cn = `${vt}-interaction`, ln = `${vt}-unusable`, Co = `${vt}-auto-hide`, an = `${Co}-hidden`, un = `${vt}-wheel`, vr = `${cs}-interactive`, mr = `${Vo}-interactive`, ls = {}, is = {}, gr = (t) => {
|
|
560
|
+
G(t, (e) => G(e, (o, n) => {
|
|
561
|
+
ls[n] = e[n];
|
|
562
|
+
}));
|
|
563
|
+
}, as = (t, e, o) => At(t).map((n) => {
|
|
564
|
+
const { static: s, instance: r } = t[n], [c, l, a] = o || [], d = o ? r : s;
|
|
565
|
+
if (d) {
|
|
566
|
+
const i = o ? d(c, l, e) : d(e);
|
|
567
|
+
return (a || is)[n] = i;
|
|
568
|
+
}
|
|
569
|
+
}), fe = (t) => is[t], br = "__osOptionsValidationPlugin", yr = "__osSizeObserverPlugin", xr = (t, e) => {
|
|
570
|
+
const { T: o } = e, [n, s] = t("showNativeOverlaidScrollbars");
|
|
571
|
+
return [n && o.x && o.y, s];
|
|
572
|
+
}, Ne = (t) => t.indexOf(_n) === 0, us = (t, e) => {
|
|
573
|
+
const { D: o } = t, n = (a) => {
|
|
574
|
+
const d = qt(o, a), u = (e ? e[a] : d) === "scroll";
|
|
575
|
+
return [d, u];
|
|
576
|
+
}, [s, r] = n(Ge), [c, l] = n(qe);
|
|
577
|
+
return {
|
|
578
|
+
k: {
|
|
579
|
+
x: s,
|
|
580
|
+
y: c
|
|
581
|
+
},
|
|
582
|
+
R: {
|
|
583
|
+
x: r,
|
|
584
|
+
y: l
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
}, wr = (t, e, o, n) => {
|
|
588
|
+
const s = e.x || e.y, r = (i, u) => {
|
|
589
|
+
const f = Ne(i), x = f && s ? "hidden" : "", C = u && f && i.replace(`${_n}-`, "") || x;
|
|
590
|
+
return [u && !f ? i : "", Ne(C) ? "hidden" : C];
|
|
591
|
+
}, [c, l] = r(o.x, e.x), [a, d] = r(o.y, e.y);
|
|
592
|
+
return n[Ge] = l && a ? l : c, n[qe] = d && c ? d : a, us(t, n);
|
|
593
|
+
}, Bo = "__osScrollbarsHidingPlugin", Sr = "__osClickScrollPlugin";
|
|
594
|
+
let co;
|
|
595
|
+
const Or = () => {
|
|
596
|
+
const t = (g, O, p, S) => {
|
|
597
|
+
bt(g, O);
|
|
598
|
+
const R = Kn(O), W = ge(O), V = Ro(p);
|
|
599
|
+
return S && Nt(O), {
|
|
600
|
+
x: W.h - R.h + V.h,
|
|
601
|
+
y: W.w - R.w + V.w
|
|
602
|
+
};
|
|
603
|
+
}, e = (g) => {
|
|
604
|
+
let O = !1;
|
|
605
|
+
const p = We(g, er);
|
|
606
|
+
try {
|
|
607
|
+
O = qt(g, "scrollbar-width") === "none" || qt(g, "display", "::-webkit-scrollbar") === "none";
|
|
608
|
+
} catch {
|
|
609
|
+
}
|
|
610
|
+
return p(), O;
|
|
611
|
+
}, o = (g, O) => {
|
|
612
|
+
ue(g, {
|
|
613
|
+
[Ge]: ie,
|
|
614
|
+
[qe]: ie,
|
|
615
|
+
direction: "rtl"
|
|
616
|
+
}), Ft(g, {
|
|
617
|
+
x: 0
|
|
618
|
+
});
|
|
619
|
+
const p = so(g), S = so(O);
|
|
620
|
+
Ft(g, {
|
|
621
|
+
x: -999
|
|
622
|
+
});
|
|
623
|
+
const R = so(O);
|
|
624
|
+
return {
|
|
625
|
+
i: p.x === S.x,
|
|
626
|
+
n: S.x !== R.x
|
|
627
|
+
};
|
|
628
|
+
}, { body: n } = document, r = Qn(`<div class="${es}"><div></div></div>`)[0], c = r.firstChild, [l, , a] = wo(), [d, i] = Ct({
|
|
629
|
+
o: t(n, r, c),
|
|
630
|
+
u: Fn
|
|
631
|
+
}, D(t, n, r, c, !0)), [u] = i(), f = e(r), x = {
|
|
632
|
+
x: u.x === 0,
|
|
633
|
+
y: u.y === 0
|
|
634
|
+
}, C = {
|
|
635
|
+
elements: {
|
|
636
|
+
host: null,
|
|
637
|
+
padding: !f,
|
|
638
|
+
viewport: (g) => f && g === g.ownerDocument.body && g,
|
|
639
|
+
content: !1
|
|
640
|
+
},
|
|
641
|
+
scrollbars: {
|
|
642
|
+
slot: !0
|
|
643
|
+
},
|
|
644
|
+
cancel: {
|
|
645
|
+
nativeScrollbarsOverlaid: !1,
|
|
646
|
+
body: null
|
|
647
|
+
}
|
|
648
|
+
}, v = Y({}, tr), m = D(Y, {}, v), E = D(Y, {}, C), w = {
|
|
649
|
+
P: u,
|
|
650
|
+
T: x,
|
|
651
|
+
L: f,
|
|
652
|
+
J: !!po,
|
|
653
|
+
K: o(r, c),
|
|
654
|
+
Z: D(l, "r"),
|
|
655
|
+
G: E,
|
|
656
|
+
tt: (g) => Y(C, g) && E(),
|
|
657
|
+
nt: m,
|
|
658
|
+
ot: (g) => Y(v, g) && m(),
|
|
659
|
+
st: Y({}, C),
|
|
660
|
+
et: Y({}, v)
|
|
661
|
+
};
|
|
662
|
+
return It(r, "style"), Nt(r), yt.addEventListener("resize", () => {
|
|
663
|
+
let g;
|
|
664
|
+
if (!f && (!x.x || !x.y)) {
|
|
665
|
+
const O = fe(Bo);
|
|
666
|
+
g = !!(O ? O.Y() : Et)(w, d);
|
|
667
|
+
}
|
|
668
|
+
a("r", [g]);
|
|
669
|
+
}), w;
|
|
670
|
+
}, wt = () => (co || (co = Or()), co), Do = (t, e) => kt(e) ? e.apply(0, t) : e, Cr = (t, e, o, n) => {
|
|
671
|
+
const s = we(n) ? o : n;
|
|
672
|
+
return Do(t, s) || e.apply(0, t);
|
|
673
|
+
}, ds = (t, e, o, n) => {
|
|
674
|
+
const s = we(n) ? o : n, r = Do(t, s);
|
|
675
|
+
return !!r && (me(r) ? r : e.apply(0, t));
|
|
676
|
+
}, Er = (t, e) => {
|
|
677
|
+
const { nativeScrollbarsOverlaid: o, body: n } = e || {}, { T: s, L: r, G: c } = wt(), { nativeScrollbarsOverlaid: l, body: a } = c().cancel, d = o ?? l, i = we(n) ? a : n, u = (s.x || s.y) && d, f = t && (Ue(i) ? !r : i);
|
|
678
|
+
return !!u || !!f;
|
|
679
|
+
}, Wo = /* @__PURE__ */ new WeakMap(), Tr = (t, e) => {
|
|
680
|
+
Wo.set(t, e);
|
|
681
|
+
}, $r = (t) => {
|
|
682
|
+
Wo.delete(t);
|
|
683
|
+
}, fs = (t) => Wo.get(t), Ir = (t, e, o) => {
|
|
684
|
+
let n = !1;
|
|
685
|
+
const s = o ? /* @__PURE__ */ new WeakMap() : !1, r = () => {
|
|
686
|
+
n = !0;
|
|
687
|
+
}, c = (l) => {
|
|
688
|
+
if (s && o) {
|
|
689
|
+
const a = o.map((d) => {
|
|
690
|
+
const [i, u] = d || [];
|
|
691
|
+
return [u && i ? (l || Gn)(i, t) : [], u];
|
|
692
|
+
});
|
|
693
|
+
G(a, (d) => G(d[0], (i) => {
|
|
694
|
+
const u = d[1], f = s.get(i) || [];
|
|
695
|
+
if (t.contains(i) && u) {
|
|
696
|
+
const C = st(i, u, (v) => {
|
|
697
|
+
n ? (C(), s.delete(i)) : e(v);
|
|
698
|
+
});
|
|
699
|
+
s.set(i, tt(f, C));
|
|
700
|
+
} else
|
|
701
|
+
xt(f), s.delete(i);
|
|
702
|
+
}));
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
return c(), [r, c];
|
|
706
|
+
}, dn = (t, e, o, n) => {
|
|
707
|
+
let s = !1;
|
|
708
|
+
const { ct: r, rt: c, lt: l, it: a, ut: d, ft: i } = n || {}, u = Un(() => s && o(!0), {
|
|
709
|
+
v: 33,
|
|
710
|
+
p: 99
|
|
711
|
+
}), [f, x] = Ir(t, u, l), C = r || [], v = c || [], m = Mt(C, v), E = (g, O) => {
|
|
712
|
+
if (!ho(O)) {
|
|
713
|
+
const p = d || Et, S = i || Et, R = [], W = [];
|
|
714
|
+
let V = !1, I = !1;
|
|
715
|
+
if (G(O, ($) => {
|
|
716
|
+
const { attributeName: A, target: H, type: M, oldValue: L, addedNodes: j, removedNodes: N } = $, U = M === "attributes", Z = M === "childList", _ = t === H, et = U && A, ot = et && Qe(H, A || "") || null, P = et && L !== ot, Q = Ze(v, A) && P;
|
|
717
|
+
if (e && (Z || !_)) {
|
|
718
|
+
const nt = U && P, ut = nt && a && mo(H, a), b = (ut ? !p(H, A, L, ot) : !U || nt) && !S($, !!ut, t, n);
|
|
719
|
+
G(j, (y) => tt(R, y)), G(N, (y) => tt(R, y)), I = I || b;
|
|
720
|
+
}
|
|
721
|
+
!e && _ && P && !p(H, A, L, ot) && (tt(W, A), V = V || Q);
|
|
722
|
+
}), x(($) => jo(R).reduce((A, H) => (tt(A, Gn($, H)), mo(H, $) ? tt(A, H) : A), [])), e)
|
|
723
|
+
return !g && I && o(!1), [!1];
|
|
724
|
+
if (!ho(W) || V) {
|
|
725
|
+
const $ = [jo(W), V];
|
|
726
|
+
return !g && o.apply(0, $), $;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
}, w = new Ns(D(E, !1));
|
|
730
|
+
return [() => (w.observe(t, {
|
|
731
|
+
attributes: !0,
|
|
732
|
+
attributeOldValue: !0,
|
|
733
|
+
attributeFilter: m,
|
|
734
|
+
subtree: e,
|
|
735
|
+
childList: e,
|
|
736
|
+
characterData: e
|
|
737
|
+
}), s = !0, () => {
|
|
738
|
+
s && (f(), w.disconnect(), s = !1);
|
|
739
|
+
}), () => {
|
|
740
|
+
if (s)
|
|
741
|
+
return u.m(), E(!0, w.takeRecords());
|
|
742
|
+
}];
|
|
743
|
+
}, ps = (t, e, o) => {
|
|
744
|
+
const { _t: s, dt: r } = o || {}, c = fe(yr), { K: l } = wt(), a = D(_t, t), [d] = Ct({
|
|
745
|
+
o: !1,
|
|
746
|
+
_: !0
|
|
747
|
+
});
|
|
748
|
+
return () => {
|
|
749
|
+
const i = [], f = Qn(`<div class="${zo}"><div class="${lr}"></div></div>`)[0], x = f.firstChild, C = (v) => {
|
|
750
|
+
const m = v instanceof ResizeObserverEntry, E = !m && Tt(v);
|
|
751
|
+
let w = !1, g = !1, O = !0;
|
|
752
|
+
if (m) {
|
|
753
|
+
const [p, , S] = d(v.contentRect), R = xo(p), W = Jn(p, S);
|
|
754
|
+
g = !S || W, w = !g && !R, O = !w;
|
|
755
|
+
} else E ? [, O] = v : g = v === !0;
|
|
756
|
+
if (s && O) {
|
|
757
|
+
const p = E ? v[0] : _t(f);
|
|
758
|
+
Ft(f, {
|
|
759
|
+
x: _e(3333333, 3333333, p && l),
|
|
760
|
+
y: 3333333
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
w || e({
|
|
764
|
+
vt: E ? v : void 0,
|
|
765
|
+
ht: !E,
|
|
766
|
+
dt: g
|
|
767
|
+
});
|
|
768
|
+
};
|
|
769
|
+
if (Be) {
|
|
770
|
+
const v = new Be((m) => C(m.pop()));
|
|
771
|
+
v.observe(x), tt(i, () => {
|
|
772
|
+
v.disconnect();
|
|
773
|
+
});
|
|
774
|
+
} else if (c) {
|
|
775
|
+
const [v, m] = c(x, C, r);
|
|
776
|
+
tt(i, Mt([We(f, cr), st(f, "animationstart", v)], m));
|
|
777
|
+
} else
|
|
778
|
+
return Et;
|
|
779
|
+
if (s) {
|
|
780
|
+
const [v] = Ct({
|
|
781
|
+
o: void 0
|
|
782
|
+
}, a);
|
|
783
|
+
tt(i, st(f, "scroll", (m) => {
|
|
784
|
+
const E = v(), [w, g, O] = E;
|
|
785
|
+
g && (Mo(x, "ltr rtl"), We(x, w ? "rtl" : "ltr"), C([!!w, g, O])), Po(m);
|
|
786
|
+
}));
|
|
787
|
+
}
|
|
788
|
+
return D(xt, tt(i, bt(t, f)));
|
|
789
|
+
};
|
|
790
|
+
}, Lr = (t, e) => {
|
|
791
|
+
let o;
|
|
792
|
+
const n = (a) => a.h === 0 || a.isIntersecting || a.intersectionRatio > 0, s = ne(ir), [r] = Ct({
|
|
793
|
+
o: !1
|
|
794
|
+
}), c = (a, d) => {
|
|
795
|
+
if (a) {
|
|
796
|
+
const i = r(n(a)), [, u] = i;
|
|
797
|
+
return u && !d && e(i) && [i];
|
|
798
|
+
}
|
|
799
|
+
}, l = (a, d) => c(d.pop(), a);
|
|
800
|
+
return [() => {
|
|
801
|
+
const a = [];
|
|
802
|
+
if (Uo)
|
|
803
|
+
o = new Uo(D(l, !1), {
|
|
804
|
+
root: t
|
|
805
|
+
}), o.observe(s), tt(a, () => {
|
|
806
|
+
o.disconnect();
|
|
807
|
+
});
|
|
808
|
+
else {
|
|
809
|
+
const d = () => {
|
|
810
|
+
const i = ge(s);
|
|
811
|
+
c(i);
|
|
812
|
+
};
|
|
813
|
+
tt(a, ps(s, d)()), d();
|
|
814
|
+
}
|
|
815
|
+
return D(xt, tt(a, bt(t, s)));
|
|
816
|
+
}, () => o && l(!0, o.takeRecords())];
|
|
817
|
+
}, Hr = (t, e, o, n) => {
|
|
818
|
+
let s, r, c, l, a, d;
|
|
819
|
+
const { L: i } = wt(), u = `[${gt}]`, f = `[${Vt}]`, x = ["tabindex"], C = ["wrap", "cols", "rows"], v = ["id", "class", "style", "open"], { gt: m, bt: E, D: w, wt: g, St: O, V: p, yt: S, Ot: R } = t, W = {
|
|
820
|
+
$t: !1,
|
|
821
|
+
N: _t(m)
|
|
822
|
+
}, V = wt(), I = fe(Bo), [$] = Ct({
|
|
823
|
+
u: Nn,
|
|
824
|
+
o: {
|
|
825
|
+
w: 0,
|
|
826
|
+
h: 0
|
|
827
|
+
}
|
|
828
|
+
}, () => {
|
|
829
|
+
const h = I && I.M(t, e, W, V, o).W, b = S(re), y = !p && S(sr), T = y && de(w);
|
|
830
|
+
R(re), p && R(So, !0);
|
|
831
|
+
const k = y && h && h()[0], z = yo(g), B = yo(w), F = Ro(w);
|
|
832
|
+
return R(re, b), p && R(So), k && k(), Ft(w, T), {
|
|
833
|
+
w: B.w + z.w + F.w,
|
|
834
|
+
h: B.h + z.h + F.h
|
|
835
|
+
};
|
|
836
|
+
}), A = O ? C : Mt(v, C), H = Un(n, {
|
|
837
|
+
v: () => s,
|
|
838
|
+
p: () => r,
|
|
839
|
+
S(h, b) {
|
|
840
|
+
const [y] = h, [T] = b;
|
|
841
|
+
return [Mt(At(y), At(T)).reduce((k, z) => (k[z] = y[z] || T[z], k), {})];
|
|
842
|
+
}
|
|
843
|
+
}), M = (h) => {
|
|
844
|
+
if (p) {
|
|
845
|
+
const b = _t(m);
|
|
846
|
+
Y(h, {
|
|
847
|
+
Ct: d !== b
|
|
848
|
+
}), Y(W, {
|
|
849
|
+
N: b
|
|
850
|
+
}), d = b;
|
|
851
|
+
}
|
|
852
|
+
}, L = (h) => {
|
|
853
|
+
G(h || x, (b) => {
|
|
854
|
+
if (Ze(x, b)) {
|
|
855
|
+
const y = Qe(E, b);
|
|
856
|
+
je(y) ? Ot(w, b, y) : It(w, b);
|
|
857
|
+
}
|
|
858
|
+
});
|
|
859
|
+
}, j = (h, b) => {
|
|
860
|
+
const [y, T] = h, k = {
|
|
861
|
+
xt: T
|
|
862
|
+
};
|
|
863
|
+
return Y(W, {
|
|
864
|
+
$t: y
|
|
865
|
+
}), !b && n(k), k;
|
|
866
|
+
}, N = ({ ht: h, vt: b, dt: y }) => {
|
|
867
|
+
const k = !(h && !y && !b) && i ? H : n, [z, B] = b || [], F = {
|
|
868
|
+
ht: h || y,
|
|
869
|
+
dt: y,
|
|
870
|
+
Ct: B
|
|
871
|
+
};
|
|
872
|
+
M(F), b && Y(W, {
|
|
873
|
+
N: z
|
|
874
|
+
}), k(F);
|
|
875
|
+
}, U = (h, b) => {
|
|
876
|
+
const [, y] = $(), T = {
|
|
877
|
+
Ht: y
|
|
878
|
+
};
|
|
879
|
+
return M(T), y && !b && (h ? n : H)(T), T;
|
|
880
|
+
}, Z = (h, b, y) => {
|
|
881
|
+
const T = {
|
|
882
|
+
It: b
|
|
883
|
+
};
|
|
884
|
+
return M(T), b && !y ? H(T) : p || L(h), T;
|
|
885
|
+
}, { Z: _ } = V, [et, ot] = g ? Lr(E, j) : [], P = !p && ps(E, N, {
|
|
886
|
+
dt: !0,
|
|
887
|
+
_t: !0
|
|
888
|
+
}), [Q, nt] = dn(E, !1, Z, {
|
|
889
|
+
rt: v,
|
|
890
|
+
ct: Mt(v, x)
|
|
891
|
+
}), ut = p && Be && new Be((h) => {
|
|
892
|
+
const b = h[h.length - 1].contentRect;
|
|
893
|
+
N({
|
|
894
|
+
ht: !0,
|
|
895
|
+
dt: Jn(b, a)
|
|
896
|
+
}), a = b;
|
|
897
|
+
});
|
|
898
|
+
return [() => {
|
|
899
|
+
L(), ut && ut.observe(E);
|
|
900
|
+
const h = P && P(), b = et && et(), y = Q(), T = _((k) => {
|
|
901
|
+
const [, z] = $();
|
|
902
|
+
H({
|
|
903
|
+
zt: k,
|
|
904
|
+
Ht: z
|
|
905
|
+
});
|
|
906
|
+
});
|
|
907
|
+
return () => {
|
|
908
|
+
ut && ut.disconnect(), h && h(), b && b(), l && l(), y(), T();
|
|
909
|
+
};
|
|
910
|
+
}, ({ Et: h, At: b, Tt: y }) => {
|
|
911
|
+
const T = {}, [k] = h("update.ignoreMutation"), [z, B] = h("update.attributes"), [F, q] = h("update.elementEvents"), [it, dt] = h("update.debounce"), J = q || B, at = b || y, Ut = (X) => kt(k) && k(X);
|
|
912
|
+
if (J) {
|
|
913
|
+
c && c(), l && l();
|
|
914
|
+
const [X, lt] = dn(g || w, !0, U, {
|
|
915
|
+
ct: Mt(A, z || []),
|
|
916
|
+
lt: F,
|
|
917
|
+
it: u,
|
|
918
|
+
ft: (ft, pt) => {
|
|
919
|
+
const { target: rt, attributeName: mt } = ft;
|
|
920
|
+
return (!pt && mt && !p ? Gs(rt, u, f) : !1) || !!oe(rt, `.${vt}`) || !!Ut(ft);
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
l = X(), c = lt;
|
|
924
|
+
}
|
|
925
|
+
if (dt)
|
|
926
|
+
if (H.m(), Tt(it)) {
|
|
927
|
+
const X = it[0], lt = it[1];
|
|
928
|
+
s = Ht(X) && X, r = Ht(lt) && lt;
|
|
929
|
+
} else Ht(it) ? (s = it, r = !1) : (s = !1, r = !1);
|
|
930
|
+
if (at) {
|
|
931
|
+
const X = nt(), lt = ot && ot(), ft = c && c();
|
|
932
|
+
X && Y(T, Z(X[0], X[1], at)), lt && Y(T, j(lt[0], at)), ft && Y(T, U(ft[0], at));
|
|
933
|
+
}
|
|
934
|
+
return M(T), T;
|
|
935
|
+
}, W];
|
|
936
|
+
}, kr = (t, e, o, n) => {
|
|
937
|
+
const { G: s, K: r } = wt(), { scrollbars: c } = s(), { slot: l } = c, { gt: a, bt: d, D: i, Dt: u, kt: f, Rt: x, V: C } = e, { scrollbars: v } = u ? {} : t, { slot: m } = v || {}, E = /* @__PURE__ */ new Map(), w = (h) => po && new po({
|
|
938
|
+
source: f,
|
|
939
|
+
axis: h
|
|
940
|
+
}), g = w("x"), O = w("y"), p = ds([a, d, i], () => C && x ? a : d, l, m), S = (h, b) => {
|
|
941
|
+
if (b) {
|
|
942
|
+
const F = h ? ce : le, { Mt: q, Vt: it } = b, dt = se(it)[F], J = se(q)[F];
|
|
943
|
+
return vo(0, 1, dt / J || 0);
|
|
944
|
+
}
|
|
945
|
+
const y = h ? "x" : "y", { Lt: T, Pt: k } = o, z = k[y], B = T[y];
|
|
946
|
+
return vo(0, 1, z / (z + B) || 0);
|
|
947
|
+
}, R = (h, b, y, T) => {
|
|
948
|
+
const k = S(y, h);
|
|
949
|
+
return 1 / k * (1 - k) * (T ? 1 - b : b) || 0;
|
|
950
|
+
}, W = (h, b) => Y(h, b ? {
|
|
951
|
+
clear: ["left"]
|
|
952
|
+
} : {}), V = (h) => {
|
|
953
|
+
E.forEach((b, y) => {
|
|
954
|
+
(h ? Ze(An(h), y) : !0) && (G(b || [], (k) => {
|
|
955
|
+
k && k.cancel();
|
|
956
|
+
}), E.delete(y));
|
|
957
|
+
});
|
|
958
|
+
}, I = (h, b, y, T) => {
|
|
959
|
+
const k = E.get(h) || [], z = k.find((B) => B && B.timeline === b);
|
|
960
|
+
z ? z.effect = new KeyframeEffect(h, y, {
|
|
961
|
+
composite: T
|
|
962
|
+
}) : E.set(h, Mt(k, [h.animate(y, {
|
|
963
|
+
timeline: b,
|
|
964
|
+
composite: T
|
|
965
|
+
})]));
|
|
966
|
+
}, $ = (h, b, y) => {
|
|
967
|
+
const T = y ? We : Mo;
|
|
968
|
+
G(h, (k) => {
|
|
969
|
+
T(k.Ut, b);
|
|
970
|
+
});
|
|
971
|
+
}, A = (h, b) => {
|
|
972
|
+
G(h, (y) => {
|
|
973
|
+
const [T, k] = b(y);
|
|
974
|
+
ue(T, k);
|
|
975
|
+
});
|
|
976
|
+
}, H = (h, b) => {
|
|
977
|
+
A(h, (y) => {
|
|
978
|
+
const { Vt: T } = y;
|
|
979
|
+
return [T, {
|
|
980
|
+
[b ? ce : le]: Go(S(b))
|
|
981
|
+
}];
|
|
982
|
+
});
|
|
983
|
+
}, M = (h, b) => {
|
|
984
|
+
const { Lt: y } = o, T = b ? y.x : y.y, k = (z, B, F) => no(Go(R(z, tn(B, T, F), b, F)), b);
|
|
985
|
+
if (g && O)
|
|
986
|
+
G(h, (z) => {
|
|
987
|
+
const { Ut: B, Vt: F } = z, q = b && _t(B) && r;
|
|
988
|
+
I(F, b ? g : O, W({
|
|
989
|
+
transform: Jo(T, q).map((it) => k(z, it, q))
|
|
990
|
+
}, q));
|
|
991
|
+
});
|
|
992
|
+
else {
|
|
993
|
+
const z = de(f);
|
|
994
|
+
A(h, (B) => {
|
|
995
|
+
const { Vt: F, Ut: q } = B;
|
|
996
|
+
return [F, {
|
|
997
|
+
transform: k(B, b ? z.x : z.y, b && _t(q) && r)
|
|
998
|
+
}];
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
1001
|
+
}, L = (h) => C && !x && ae(h) === i, j = [], N = [], U = [], Z = (h, b, y) => {
|
|
1002
|
+
const T = Mn(y), k = T ? y : !0, z = T ? !y : !0;
|
|
1003
|
+
k && $(N, h, b), z && $(U, h, b);
|
|
1004
|
+
}, _ = () => {
|
|
1005
|
+
H(N, !0), H(U);
|
|
1006
|
+
}, et = () => {
|
|
1007
|
+
M(N, !0), M(U);
|
|
1008
|
+
}, ot = () => {
|
|
1009
|
+
if (C) {
|
|
1010
|
+
const { Lt: h } = o, b = 0.5;
|
|
1011
|
+
if (g && O)
|
|
1012
|
+
G(Mt(U, N), ({ Ut: y }) => {
|
|
1013
|
+
if (L(y)) {
|
|
1014
|
+
const T = (k, z, B) => {
|
|
1015
|
+
const F = B && _t(y) && r;
|
|
1016
|
+
I(y, k, W({
|
|
1017
|
+
transform: Jo(z - b, F).map((q) => no(bo(q), B))
|
|
1018
|
+
}, F), "add");
|
|
1019
|
+
};
|
|
1020
|
+
T(g, h.x, !0), T(O, h.y);
|
|
1021
|
+
} else
|
|
1022
|
+
V(y);
|
|
1023
|
+
});
|
|
1024
|
+
else {
|
|
1025
|
+
const y = de(f), T = (k) => {
|
|
1026
|
+
const { Ut: z } = k, B = L(z) && z, F = (q, it, dt) => {
|
|
1027
|
+
const J = tn(q, it, dt), at = it * J;
|
|
1028
|
+
return bo(dt ? -at : at);
|
|
1029
|
+
};
|
|
1030
|
+
return [B, {
|
|
1031
|
+
transform: B ? no({
|
|
1032
|
+
x: F(y.x, h.x, _t(z) && r),
|
|
1033
|
+
y: F(y.y, h.y)
|
|
1034
|
+
}) : ""
|
|
1035
|
+
}];
|
|
1036
|
+
};
|
|
1037
|
+
A(N, T), A(U, T);
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
}, P = (h) => {
|
|
1041
|
+
const y = ne(`${vt} ${h ? dr : fr}`), T = ne(cs), k = ne(Vo), z = {
|
|
1042
|
+
Ut: y,
|
|
1043
|
+
Mt: T,
|
|
1044
|
+
Vt: k
|
|
1045
|
+
};
|
|
1046
|
+
return tt(h ? N : U, z), tt(j, [bt(y, T), bt(T, k), D(Nt, y), V, n(z, Z, M, h)]), z;
|
|
1047
|
+
}, Q = D(P, !0), nt = D(P, !1), ut = () => (bt(p, N[0].Ut), bt(p, U[0].Ut), D(xt, j));
|
|
1048
|
+
return Q(), nt(), [{
|
|
1049
|
+
Bt: _,
|
|
1050
|
+
Nt: et,
|
|
1051
|
+
jt: ot,
|
|
1052
|
+
Ft: Z,
|
|
1053
|
+
qt: {
|
|
1054
|
+
J: g,
|
|
1055
|
+
Wt: N,
|
|
1056
|
+
Xt: Q,
|
|
1057
|
+
Yt: D(A, N)
|
|
1058
|
+
},
|
|
1059
|
+
Jt: {
|
|
1060
|
+
J: O,
|
|
1061
|
+
Wt: U,
|
|
1062
|
+
Xt: nt,
|
|
1063
|
+
Yt: D(A, U)
|
|
1064
|
+
}
|
|
1065
|
+
}, ut];
|
|
1066
|
+
}, Mr = (t, e, o) => {
|
|
1067
|
+
const { bt: n, kt: s, Kt: r } = e;
|
|
1068
|
+
return (c, l, a, d) => {
|
|
1069
|
+
const { Ut: i, Mt: u, Vt: f } = c, [x, C] = zt(333), [v, m] = zt(), E = D(a, [c], d), w = !!s.scrollBy, g = `client${d ? "X" : "Y"}`, O = d ? ce : le, p = d ? "left" : "top", S = d ? "w" : "h", R = d ? "x" : "y", W = ($) => $.propertyName.indexOf(O) > -1, V = () => {
|
|
1070
|
+
const $ = "pointerup pointerleave pointercancel lostpointercapture", A = (H, M) => (L) => {
|
|
1071
|
+
const { Lt: j } = o, N = ge(u)[S] - ge(f)[S], Z = M * L / N * j[R];
|
|
1072
|
+
Ft(s, {
|
|
1073
|
+
[R]: H + Z
|
|
1074
|
+
});
|
|
1075
|
+
};
|
|
1076
|
+
return st(u, "pointerdown", (H) => {
|
|
1077
|
+
const M = oe(H.target, `.${Vo}`) === f, L = M ? f : u, j = t.scrollbars, { button: N, isPrimary: U, pointerType: Z } = H, { pointers: _ } = j;
|
|
1078
|
+
if (N === 0 && U && j[M ? "dragScroll" : "clickScroll"] && (_ || []).includes(Z)) {
|
|
1079
|
+
const ot = !M && H.shiftKey, P = D(se, f), Q = D(se, u), nt = (J, at) => (J || P())[p] - (at || Q())[p], ut = ao(se(s)[O]) / ge(s)[S] || 1, h = A(de(s)[R] || 0, 1 / ut), b = H[g], y = P(), T = Q(), k = y[O], z = nt(y, T) + k / 2, B = b - T[p], F = M ? 0 : B - z, q = (J) => {
|
|
1080
|
+
xt(dt), L.releasePointerCapture(J.pointerId);
|
|
1081
|
+
}, dt = [xe(n, gt, or), st(r, $, q), st(r, "selectstart", (J) => Ko(J), {
|
|
1082
|
+
H: !1
|
|
1083
|
+
}), st(u, $, q), st(u, "pointermove", (J) => {
|
|
1084
|
+
const at = J[g] - b;
|
|
1085
|
+
(M || ot) && h(F + at);
|
|
1086
|
+
})];
|
|
1087
|
+
if (L.setPointerCapture(H.pointerId), ot)
|
|
1088
|
+
h(F);
|
|
1089
|
+
else if (!M) {
|
|
1090
|
+
const J = fe(Sr);
|
|
1091
|
+
J && tt(dt, J(h, nt, F, k, B));
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
});
|
|
1095
|
+
};
|
|
1096
|
+
let I = !0;
|
|
1097
|
+
return D(xt, [st(i, "pointerenter", () => {
|
|
1098
|
+
l(cn, !0);
|
|
1099
|
+
}), st(i, "pointerleave pointercancel", () => {
|
|
1100
|
+
l(cn, !1);
|
|
1101
|
+
}), st(i, "wheel", ($) => {
|
|
1102
|
+
const { deltaX: A, deltaY: H, deltaMode: M } = $;
|
|
1103
|
+
w && I && M === 0 && ae(i) === n && s.scrollBy({
|
|
1104
|
+
left: A,
|
|
1105
|
+
top: H,
|
|
1106
|
+
behavior: "smooth"
|
|
1107
|
+
}), I = !1, l(un, !0), x(() => {
|
|
1108
|
+
I = !0, l(un);
|
|
1109
|
+
}), Ko($);
|
|
1110
|
+
}, {
|
|
1111
|
+
H: !1,
|
|
1112
|
+
I: !0
|
|
1113
|
+
}), st(f, "transitionstart", ($) => {
|
|
1114
|
+
if (W($)) {
|
|
1115
|
+
const A = () => {
|
|
1116
|
+
E(), v(A);
|
|
1117
|
+
};
|
|
1118
|
+
A();
|
|
1119
|
+
}
|
|
1120
|
+
}), st(f, "transitionend transitioncancel", ($) => {
|
|
1121
|
+
W($) && (m(), E());
|
|
1122
|
+
}), st(i, "mousedown", D(st, r, "click", Po, {
|
|
1123
|
+
A: !0,
|
|
1124
|
+
I: !0
|
|
1125
|
+
}), {
|
|
1126
|
+
I: !0
|
|
1127
|
+
}), V(), C, m]);
|
|
1128
|
+
};
|
|
1129
|
+
}, Ar = (t, e, o, n, s, r) => {
|
|
1130
|
+
let c, l, a, d, i, u = Et, f = 0;
|
|
1131
|
+
const [x, C] = zt(), [v, m] = zt(), [E, w] = zt(100), [g, O] = zt(100), [p, S] = zt(100), [R, W] = zt(() => f), [V, I] = kr(t, s, n, Mr(e, s, n)), { bt: $, Zt: A, Rt: H } = s, { Ft: M, Bt: L, Nt: j, jt: N } = V, U = (P) => {
|
|
1132
|
+
M(Co, P, !0), M(Co, P, !1);
|
|
1133
|
+
}, Z = (P, Q) => {
|
|
1134
|
+
if (W(), P)
|
|
1135
|
+
M(an);
|
|
1136
|
+
else {
|
|
1137
|
+
const nt = D(M, an, !0);
|
|
1138
|
+
f > 0 && !Q ? R(nt) : nt();
|
|
1139
|
+
}
|
|
1140
|
+
}, _ = (P) => P.pointerType === "mouse", et = (P) => {
|
|
1141
|
+
_(P) && (d = l, d && Z(!0));
|
|
1142
|
+
}, ot = [w, W, O, S, m, C, () => u(), st($, "pointerover", et, {
|
|
1143
|
+
A: !0
|
|
1144
|
+
}), st($, "pointerenter", et), st($, "pointerleave", (P) => {
|
|
1145
|
+
_(P) && (d = !1, l && Z(!1));
|
|
1146
|
+
}), st($, "pointermove", (P) => {
|
|
1147
|
+
_(P) && c && x(() => {
|
|
1148
|
+
w(), Z(!0), g(() => {
|
|
1149
|
+
c && Z(!1);
|
|
1150
|
+
});
|
|
1151
|
+
});
|
|
1152
|
+
}), st(A, "scroll", (P) => {
|
|
1153
|
+
v(() => {
|
|
1154
|
+
j(), a && Z(!0), E(() => {
|
|
1155
|
+
a && !d && Z(!1);
|
|
1156
|
+
});
|
|
1157
|
+
}), r(P), N();
|
|
1158
|
+
})];
|
|
1159
|
+
return [() => D(xt, tt(ot, I())), ({ Et: P, Tt: Q, Gt: nt, Qt: ut }) => {
|
|
1160
|
+
const { tn: h, nn: b, sn: y } = ut || {}, { Ct: T, dt: k } = nt || {}, { N: z } = o, { T: B } = wt(), { k: F, en: q } = n, [it, dt] = P("showNativeOverlaidScrollbars"), [J, at] = P("scrollbars.theme"), [Ut, X] = P("scrollbars.visibility"), [lt, ft] = P("scrollbars.autoHide"), [pt, rt] = P("scrollbars.autoHideSuspend"), [mt] = P("scrollbars.autoHideDelay"), [jt, Jt] = P("scrollbars.dragScroll"), [$t, Xt] = P("scrollbars.clickScroll"), [Rt, to] = P("overflow"), Pt = k && !Q, eo = q.x || q.y, pe = h || b || T || Q, Ce = y || X || to, Ee = it && B.x && B.y, he = (ve, te, _o) => {
|
|
1161
|
+
const No = ve.includes("scroll") && (Ut === "visible" || Ut === "auto" && te === "scroll");
|
|
1162
|
+
return M(pr, No, _o), No;
|
|
1163
|
+
};
|
|
1164
|
+
if (f = mt, Pt && (pt && eo ? (U(!1), u(), p(() => {
|
|
1165
|
+
u = st(A, "scroll", D(U, !0), {
|
|
1166
|
+
A: !0
|
|
1167
|
+
});
|
|
1168
|
+
})) : U(!0)), dt && M(ar, Ee), at && (M(i), M(J, !0), i = J), rt && !pt && U(!0), ft && (c = lt === "move", l = lt === "leave", a = lt !== "never", Z(!a, !0)), Jt && M(mr, jt), Xt && M(vr, $t), Ce) {
|
|
1169
|
+
const ve = he(Rt.x, F.x, !0), te = he(Rt.y, F.y, !1);
|
|
1170
|
+
M(hr, !(ve && te));
|
|
1171
|
+
}
|
|
1172
|
+
pe && (L(), j(), N(), M(ln, !q.x, !0), M(ln, !q.y, !1), M(ur, z && !H));
|
|
1173
|
+
}, {}, V];
|
|
1174
|
+
}, Rr = (t) => {
|
|
1175
|
+
const e = wt(), { G: o, L: n } = e, { elements: s } = o(), { host: r, padding: c, viewport: l, content: a } = s, d = me(t), i = d ? {} : t, { elements: u } = i, { host: f, padding: x, viewport: C, content: v } = u || {}, m = d ? t : i.target, E = mo(m, "textarea"), w = m.ownerDocument, g = w.documentElement, O = m === w.body, p = w.defaultView, S = () => w.activeElement, R = (X) => {
|
|
1176
|
+
X && X.focus && X.focus();
|
|
1177
|
+
}, W = D(Cr, [m]), V = D(ds, [m]), I = D(Do, [m]), $ = D(ne, ""), A = D(W, $, l), H = D(V, $, a), M = A(C), L = M === m, j = L && O, N = !L && H(v), U = !L && me(M) && M === N, Z = U && !!I(a), _ = Z ? A() : M, et = Z ? N : H(), P = j ? g : U ? _ : M, Q = E ? W($, r, f) : m, nt = j ? P : Q, ut = U ? et : N, h = {
|
|
1178
|
+
gt: m,
|
|
1179
|
+
bt: nt,
|
|
1180
|
+
D: P,
|
|
1181
|
+
cn: !L && V($, c, x),
|
|
1182
|
+
wt: ut,
|
|
1183
|
+
kt: j ? g : P,
|
|
1184
|
+
Zt: j ? w : P,
|
|
1185
|
+
rn: O ? g : m,
|
|
1186
|
+
ln: p,
|
|
1187
|
+
Kt: w,
|
|
1188
|
+
St: E,
|
|
1189
|
+
Rt: O,
|
|
1190
|
+
Dt: d,
|
|
1191
|
+
V: L,
|
|
1192
|
+
an: U,
|
|
1193
|
+
yt: (X) => Ys(P, L ? gt : Vt, X),
|
|
1194
|
+
Ot: (X, lt) => ke(P, L ? gt : Vt, X, lt)
|
|
1195
|
+
}, b = At(h).reduce((X, lt) => {
|
|
1196
|
+
const ft = h[lt];
|
|
1197
|
+
return tt(X, ft && me(ft) && !ae(ft) ? ft : !1);
|
|
1198
|
+
}, []), y = (X) => X ? Ze(b, X) : null, { gt: T, bt: k, cn: z, D: B, wt: F } = h, q = [() => {
|
|
1199
|
+
It(k, [gt, ro]), It(T, ro), O && It(g, [ro, gt]);
|
|
1200
|
+
}], it = E && y(k);
|
|
1201
|
+
let dt = E ? T : go([F, B, z, k, T].find((X) => y(X) === !1));
|
|
1202
|
+
const J = j ? T : F || B, at = D(xt, q);
|
|
1203
|
+
return [h, () => {
|
|
1204
|
+
const X = S(), lt = (rt) => {
|
|
1205
|
+
bt(ae(rt), go(rt)), Nt(rt);
|
|
1206
|
+
}, ft = (rt) => rt ? st(rt, "focusin focusout focus blur", (mt) => {
|
|
1207
|
+
Po(mt), mt.stopImmediatePropagation();
|
|
1208
|
+
}, {
|
|
1209
|
+
I: !0,
|
|
1210
|
+
H: !1
|
|
1211
|
+
}) : Et, pt = ft(X);
|
|
1212
|
+
if (Ot(k, gt, L ? "viewport" : "host"), Ot(z, Oo, ""), Ot(F, rn, ""), L || (Ot(B, Vt, ""), O && xe(g, gt, nr)), it && (Yo(T, k), tt(q, () => {
|
|
1213
|
+
Yo(k, T), Nt(k);
|
|
1214
|
+
})), bt(J, dt), bt(k, z), bt(z || k, !L && B), bt(B, F), tt(q, [pt, () => {
|
|
1215
|
+
const rt = S(), mt = ft(rt);
|
|
1216
|
+
It(z, Oo), It(F, rn), It(B, [os, ns, Vt]), y(F) && lt(F), y(B) && lt(B), y(z) && lt(z), R(rt), mt();
|
|
1217
|
+
}]), n && !L && (xe(B, Vt, rs), tt(q, D(It, B, Vt))), !L && p.top === p && X === m) {
|
|
1218
|
+
const rt = "tabindex", mt = Qe(B, rt);
|
|
1219
|
+
Ot(B, rt, "-1"), R(B);
|
|
1220
|
+
const jt = () => mt ? Ot(B, rt, mt) : It(B, rt), Jt = st(w, "pointerdown keydown", () => {
|
|
1221
|
+
jt(), Jt();
|
|
1222
|
+
});
|
|
1223
|
+
tt(q, [jt, Jt]);
|
|
1224
|
+
} else
|
|
1225
|
+
R(X);
|
|
1226
|
+
return pt(), dt = 0, at;
|
|
1227
|
+
}, at];
|
|
1228
|
+
}, Pr = ({ wt: t }) => ({ Gt: e, un: o, Tt: n }) => {
|
|
1229
|
+
const { xt: s } = e || {}, { $t: r } = o;
|
|
1230
|
+
t && (s || n) && ue(t, {
|
|
1231
|
+
[le]: r && "100%"
|
|
1232
|
+
});
|
|
1233
|
+
}, zr = ({ bt: t, cn: e, D: o, V: n }, s) => {
|
|
1234
|
+
const [r, c] = Ct({
|
|
1235
|
+
u: Xs,
|
|
1236
|
+
o: qo()
|
|
1237
|
+
}, D(qo, t, "padding", ""));
|
|
1238
|
+
return ({ Et: l, Gt: a, un: d, Tt: i }) => {
|
|
1239
|
+
let [u, f] = c(i);
|
|
1240
|
+
const { L: x } = wt(), { ht: C, Ht: v, Ct: m } = a || {}, { N: E } = d, [w, g] = l("paddingAbsolute");
|
|
1241
|
+
(C || f || (i || v)) && ([u, f] = r(i));
|
|
1242
|
+
const p = !n && (g || m || f);
|
|
1243
|
+
if (p) {
|
|
1244
|
+
const S = !w || !e && !x, R = u.r + u.l, W = u.t + u.b, V = {
|
|
1245
|
+
[Dn]: S && !E ? -R : 0,
|
|
1246
|
+
[Wn]: S ? -W : 0,
|
|
1247
|
+
[Bn]: S && E ? -R : 0,
|
|
1248
|
+
top: S ? -u.t : 0,
|
|
1249
|
+
right: S ? E ? -u.r : "auto" : 0,
|
|
1250
|
+
left: S ? E ? "auto" : -u.l : 0,
|
|
1251
|
+
[ce]: S && `calc(100% + ${R}px)`
|
|
1252
|
+
}, I = {
|
|
1253
|
+
[Rn]: S ? u.t : 0,
|
|
1254
|
+
[Pn]: S ? u.r : 0,
|
|
1255
|
+
[Vn]: S ? u.b : 0,
|
|
1256
|
+
[zn]: S ? u.l : 0
|
|
1257
|
+
};
|
|
1258
|
+
ue(e || o, V), ue(o, I), Y(s, {
|
|
1259
|
+
cn: u,
|
|
1260
|
+
fn: !S,
|
|
1261
|
+
j: e ? I : Y({}, V, I)
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
return {
|
|
1265
|
+
_n: p
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1268
|
+
}, Vr = (t, e) => {
|
|
1269
|
+
const o = wt(), { bt: n, cn: s, D: r, V: c, Ot: l, Rt: a, ln: d } = t, { L: i } = o, u = a && c, f = D(He, 0), x = {
|
|
1270
|
+
u: Nn,
|
|
1271
|
+
o: {
|
|
1272
|
+
w: 0,
|
|
1273
|
+
h: 0
|
|
1274
|
+
}
|
|
1275
|
+
}, C = {
|
|
1276
|
+
u: Fn,
|
|
1277
|
+
o: {
|
|
1278
|
+
x: ie,
|
|
1279
|
+
y: ie
|
|
1280
|
+
}
|
|
1281
|
+
}, v = (I, $) => {
|
|
1282
|
+
const A = yt.devicePixelRatio % 1 !== 0 ? 1 : 0, H = {
|
|
1283
|
+
w: f(I.w - $.w),
|
|
1284
|
+
h: f(I.h - $.h)
|
|
1285
|
+
};
|
|
1286
|
+
return {
|
|
1287
|
+
w: H.w > A ? H.w : 0,
|
|
1288
|
+
h: H.h > A ? H.h : 0
|
|
1289
|
+
};
|
|
1290
|
+
}, [m, E] = Ct(x, D(Ro, r)), [w, g] = Ct(x, D(yo, r)), [O, p] = Ct(x), [S, R] = Ct(x), [W] = Ct(C), V = fe(Bo);
|
|
1291
|
+
return ({ Et: I, Gt: $, un: A, Tt: H }, { _n: M }) => {
|
|
1292
|
+
const { ht: L, Ht: j, Ct: N, zt: U } = $ || {}, Z = V && V.M(t, e, A, o, I), { q: _, W: et, X: ot } = Z || {}, [P, Q] = xr(I, o), [nt, ut] = I("overflow"), h = L || M || j || N || U || Q, b = Ne(nt.x), y = Ne(nt.y), T = b || y;
|
|
1293
|
+
let k = E(H), z = g(H), B = p(H), F = R(H), q;
|
|
1294
|
+
if (Q && i && l(rs, !P), h) {
|
|
1295
|
+
T && l(re, !1);
|
|
1296
|
+
const [$t, Xt] = et ? et(q) : [], [Rt, to] = k = m(H), [Pt, eo] = z = w(H), pe = Kn(r), Ce = Pt, Ee = pe;
|
|
1297
|
+
$t && $t(), (eo || to || Q) && Xt && !P && _ && _(Xt, Pt, Rt);
|
|
1298
|
+
const he = Ks(d), ve = {
|
|
1299
|
+
w: f(He(Pt.w, Ce.w) + Rt.w),
|
|
1300
|
+
h: f(He(Pt.h, Ce.h) + Rt.h)
|
|
1301
|
+
}, te = {
|
|
1302
|
+
w: f((u ? he.w : Ee.w + f(pe.w - Pt.w)) + Rt.w),
|
|
1303
|
+
h: f((u ? he.h : Ee.h + f(pe.h - Pt.h)) + Rt.h)
|
|
1304
|
+
};
|
|
1305
|
+
F = S(te), B = O(v(ve, te), H);
|
|
1306
|
+
}
|
|
1307
|
+
const [it, dt] = F, [J, at] = B, [Ut, X] = z, [lt, ft] = k, pt = {
|
|
1308
|
+
x: J.w > 0,
|
|
1309
|
+
y: J.h > 0
|
|
1310
|
+
}, rt = b && y && (pt.x || pt.y) || b && pt.x && !pt.y || y && pt.y && !pt.x;
|
|
1311
|
+
if (M || N || U || ft || X || dt || at || ut || Q || h) {
|
|
1312
|
+
const $t = {}, Xt = wr(t, pt, nt, $t);
|
|
1313
|
+
ot && ot(Xt, A, !!_ && _(Xt, Ut, lt), $t), c ? (Ot(n, os, $t[Ge]), Ot(n, ns, $t[qe])) : ue(r, $t);
|
|
1314
|
+
}
|
|
1315
|
+
ke(n, gt, ss, rt), ke(s, Oo, rr, rt), c || ke(r, Vt, re, T);
|
|
1316
|
+
const [jt, Jt] = W(us(t).k);
|
|
1317
|
+
return Y(e, {
|
|
1318
|
+
k: jt,
|
|
1319
|
+
Pt: {
|
|
1320
|
+
x: it.w,
|
|
1321
|
+
y: it.h
|
|
1322
|
+
},
|
|
1323
|
+
Lt: {
|
|
1324
|
+
x: J.w,
|
|
1325
|
+
y: J.h
|
|
1326
|
+
},
|
|
1327
|
+
en: pt
|
|
1328
|
+
}), {
|
|
1329
|
+
sn: Jt,
|
|
1330
|
+
tn: dt,
|
|
1331
|
+
nn: at
|
|
1332
|
+
};
|
|
1333
|
+
};
|
|
1334
|
+
}, Br = (t) => {
|
|
1335
|
+
const [e, o, n] = Rr(t), s = {
|
|
1336
|
+
cn: {
|
|
1337
|
+
t: 0,
|
|
1338
|
+
r: 0,
|
|
1339
|
+
b: 0,
|
|
1340
|
+
l: 0
|
|
1341
|
+
},
|
|
1342
|
+
fn: !1,
|
|
1343
|
+
j: {
|
|
1344
|
+
[Dn]: 0,
|
|
1345
|
+
[Wn]: 0,
|
|
1346
|
+
[Bn]: 0,
|
|
1347
|
+
[Rn]: 0,
|
|
1348
|
+
[Pn]: 0,
|
|
1349
|
+
[Vn]: 0,
|
|
1350
|
+
[zn]: 0
|
|
1351
|
+
},
|
|
1352
|
+
Pt: {
|
|
1353
|
+
x: 0,
|
|
1354
|
+
y: 0
|
|
1355
|
+
},
|
|
1356
|
+
Lt: {
|
|
1357
|
+
x: 0,
|
|
1358
|
+
y: 0
|
|
1359
|
+
},
|
|
1360
|
+
k: {
|
|
1361
|
+
x: ie,
|
|
1362
|
+
y: ie
|
|
1363
|
+
},
|
|
1364
|
+
en: {
|
|
1365
|
+
x: !1,
|
|
1366
|
+
y: !1
|
|
1367
|
+
}
|
|
1368
|
+
}, { gt: r, D: c, V: l } = e, { L: a, T: d } = wt(), i = !a && (d.x || d.y), u = [Pr(e), zr(e, s), Vr(e, s)];
|
|
1369
|
+
return [o, (f) => {
|
|
1370
|
+
const x = {}, v = i && de(c), m = l ? xe(c, gt, So) : Et;
|
|
1371
|
+
return G(u, (E) => {
|
|
1372
|
+
Y(x, E(f, x) || {});
|
|
1373
|
+
}), m(), Ft(c, v), !l && Ft(r, 0), x;
|
|
1374
|
+
}, s, e, n];
|
|
1375
|
+
}, Dr = (t, e, o, n) => {
|
|
1376
|
+
const s = sn(e, {}), [r, c, l, a, d] = Br(t), [i, u, f] = Hr(a, l, s, (w) => {
|
|
1377
|
+
E({}, w);
|
|
1378
|
+
}), [x, C, , v] = Ar(t, e, f, l, a, n), m = (w) => At(w).some((g) => !!w[g]), E = (w, g) => {
|
|
1379
|
+
const { dn: O, Tt: p, At: S, vn: R } = w, W = O || {}, V = !!p, I = {
|
|
1380
|
+
Et: sn(e, W, V),
|
|
1381
|
+
dn: W,
|
|
1382
|
+
Tt: V
|
|
1383
|
+
};
|
|
1384
|
+
if (R)
|
|
1385
|
+
return C(I), !1;
|
|
1386
|
+
const $ = g || u(Y({}, I, {
|
|
1387
|
+
At: S
|
|
1388
|
+
})), A = c(Y({}, I, {
|
|
1389
|
+
un: f,
|
|
1390
|
+
Gt: $
|
|
1391
|
+
}));
|
|
1392
|
+
C(Y({}, I, {
|
|
1393
|
+
Gt: $,
|
|
1394
|
+
Qt: A
|
|
1395
|
+
}));
|
|
1396
|
+
const H = m($), M = m(A), L = H || M || !ko(W) || V;
|
|
1397
|
+
return L && o(w, {
|
|
1398
|
+
Gt: $,
|
|
1399
|
+
Qt: A
|
|
1400
|
+
}), L;
|
|
1401
|
+
};
|
|
1402
|
+
return [() => {
|
|
1403
|
+
const { rn: w, D: g } = a, O = de(w), p = [i(), r(), x()];
|
|
1404
|
+
return Ft(g, O), D(xt, p);
|
|
1405
|
+
}, E, () => ({
|
|
1406
|
+
hn: f,
|
|
1407
|
+
pn: l
|
|
1408
|
+
}), {
|
|
1409
|
+
gn: a,
|
|
1410
|
+
bn: v
|
|
1411
|
+
}, d];
|
|
1412
|
+
}, Qt = (t, e, o) => {
|
|
1413
|
+
const { nt: n } = wt(), s = me(t), r = s ? t : t.target, c = fs(r);
|
|
1414
|
+
if (e && !c) {
|
|
1415
|
+
let l = !1;
|
|
1416
|
+
const a = [], d = {}, i = (I) => {
|
|
1417
|
+
const $ = Xn(I), A = fe(br);
|
|
1418
|
+
return A ? A($, !0) : $;
|
|
1419
|
+
}, u = Y({}, n(), i(e)), [f, x, C] = wo(), [v, m, E] = wo(o), w = (I, $) => {
|
|
1420
|
+
E(I, $), C(I, $);
|
|
1421
|
+
}, [g, O, p, S, R] = Dr(t, u, ({ dn: I, Tt: $ }, { Gt: A, Qt: H }) => {
|
|
1422
|
+
const { ht: M, Ct: L, xt: j, Ht: N, It: U, dt: Z } = A, { tn: _, nn: et, sn: ot } = H;
|
|
1423
|
+
w("updated", [V, {
|
|
1424
|
+
updateHints: {
|
|
1425
|
+
sizeChanged: !!M,
|
|
1426
|
+
directionChanged: !!L,
|
|
1427
|
+
heightIntrinsicChanged: !!j,
|
|
1428
|
+
overflowEdgeChanged: !!_,
|
|
1429
|
+
overflowAmountChanged: !!et,
|
|
1430
|
+
overflowStyleChanged: !!ot,
|
|
1431
|
+
contentMutation: !!N,
|
|
1432
|
+
hostMutation: !!U,
|
|
1433
|
+
appear: !!Z
|
|
1434
|
+
},
|
|
1435
|
+
changedOptions: I || {},
|
|
1436
|
+
force: !!$
|
|
1437
|
+
}]);
|
|
1438
|
+
}, (I) => w("scroll", [V, I])), W = (I) => {
|
|
1439
|
+
$r(r), xt(a), l = !0, w("destroyed", [V, I]), x(), m();
|
|
1440
|
+
}, V = {
|
|
1441
|
+
options(I, $) {
|
|
1442
|
+
if (I) {
|
|
1443
|
+
const A = $ ? n() : {}, H = ts(u, Y(A, i(I)));
|
|
1444
|
+
ko(H) || (Y(u, H), O({
|
|
1445
|
+
dn: H
|
|
1446
|
+
}));
|
|
1447
|
+
}
|
|
1448
|
+
return Y({}, u);
|
|
1449
|
+
},
|
|
1450
|
+
on: v,
|
|
1451
|
+
off: (I, $) => {
|
|
1452
|
+
I && $ && m(I, $);
|
|
1453
|
+
},
|
|
1454
|
+
state() {
|
|
1455
|
+
const { hn: I, pn: $ } = p(), { N: A } = I, { Pt: H, Lt: M, k: L, en: j, cn: N, fn: U } = $;
|
|
1456
|
+
return Y({}, {
|
|
1457
|
+
overflowEdge: H,
|
|
1458
|
+
overflowAmount: M,
|
|
1459
|
+
overflowStyle: L,
|
|
1460
|
+
hasOverflow: j,
|
|
1461
|
+
padding: N,
|
|
1462
|
+
paddingAbsolute: U,
|
|
1463
|
+
directionRTL: A,
|
|
1464
|
+
destroyed: l
|
|
1465
|
+
});
|
|
1466
|
+
},
|
|
1467
|
+
elements() {
|
|
1468
|
+
const { gt: I, bt: $, cn: A, D: H, wt: M, kt: L, Zt: j } = S.gn, { qt: N, Jt: U } = S.bn, Z = (et) => {
|
|
1469
|
+
const { Vt: ot, Mt: P, Ut: Q } = et;
|
|
1470
|
+
return {
|
|
1471
|
+
scrollbar: Q,
|
|
1472
|
+
track: P,
|
|
1473
|
+
handle: ot
|
|
1474
|
+
};
|
|
1475
|
+
}, _ = (et) => {
|
|
1476
|
+
const { Wt: ot, Xt: P } = et, Q = Z(ot[0]);
|
|
1477
|
+
return Y({}, Q, {
|
|
1478
|
+
clone: () => {
|
|
1479
|
+
const nt = Z(P());
|
|
1480
|
+
return O({
|
|
1481
|
+
vn: !0
|
|
1482
|
+
}), nt;
|
|
1483
|
+
}
|
|
1484
|
+
});
|
|
1485
|
+
};
|
|
1486
|
+
return Y({}, {
|
|
1487
|
+
target: I,
|
|
1488
|
+
host: $,
|
|
1489
|
+
padding: A || H,
|
|
1490
|
+
viewport: H,
|
|
1491
|
+
content: M || H,
|
|
1492
|
+
scrollOffsetElement: L,
|
|
1493
|
+
scrollEventElement: j,
|
|
1494
|
+
scrollbarHorizontal: _(N),
|
|
1495
|
+
scrollbarVertical: _(U)
|
|
1496
|
+
});
|
|
1497
|
+
},
|
|
1498
|
+
update: (I) => O({
|
|
1499
|
+
Tt: I,
|
|
1500
|
+
At: !0
|
|
1501
|
+
}),
|
|
1502
|
+
destroy: D(W, !1),
|
|
1503
|
+
plugin: (I) => d[At(I)[0]]
|
|
1504
|
+
};
|
|
1505
|
+
return tt(a, [R]), Tr(r, V), as(ls, Qt, [V, f, d]), Er(S.gn.Rt, !s && t.cancel) ? (W(!0), V) : (tt(a, g()), w("initialized", [V]), V.update(!0), V);
|
|
1506
|
+
}
|
|
1507
|
+
return c;
|
|
1508
|
+
};
|
|
1509
|
+
Qt.plugin = (t) => {
|
|
1510
|
+
const e = Tt(t), o = e ? t : [t], n = o.map((s) => as(s, Qt)[0]);
|
|
1511
|
+
return gr(o), e ? n : n[0];
|
|
1512
|
+
};
|
|
1513
|
+
Qt.valid = (t) => {
|
|
1514
|
+
const e = t && t.elements, o = kt(e) && e();
|
|
1515
|
+
return De(o) && !!fs(o.target);
|
|
1516
|
+
};
|
|
1517
|
+
Qt.env = () => {
|
|
1518
|
+
const { P: t, T: e, L: o, K: n, J: s, st: r, et: c, G: l, tt: a, nt: d, ot: i } = wt();
|
|
1519
|
+
return Y({}, {
|
|
1520
|
+
scrollbarsSize: t,
|
|
1521
|
+
scrollbarsOverlaid: e,
|
|
1522
|
+
scrollbarsHiding: o,
|
|
1523
|
+
rtlScrollBehavior: n,
|
|
1524
|
+
scrollTimeline: s,
|
|
1525
|
+
staticDefaultInitialization: r,
|
|
1526
|
+
staticDefaultOptions: c,
|
|
1527
|
+
getDefaultInitialization: l,
|
|
1528
|
+
setDefaultInitialization: a,
|
|
1529
|
+
getDefaultOptions: d,
|
|
1530
|
+
setDefaultOptions: i
|
|
1531
|
+
});
|
|
1532
|
+
};
|
|
1533
|
+
const Me = K(999999), $e = K(380), Wr = "var(--upf-text-tooltip-text, var(--upf-text-primary, #212121))", Eo = "var(--upf-text-tooltip-bg, var(--upf-bg-elevated, #ffffff))", fn = "var(--upf-text-tooltip-border, var(--upf-border-color, #D9D9D9))", _r = "var(--upf-border-radius, 4px)", pn = "var(--upf-text-tooltip-shadow-color, rgba(38, 38, 38, 0.16))", Nr = "var(--upf-text-tooltip-scrollbar-thumb, var(--upf-text-disabled, #B2B2B2))", hn = "var(--upf-text-tooltip-scrollbar-thumb-hover, var(--upf-text-secondary, #666666))", Fr = "var(--upf-text-tooltip-scrollbar-padding, 1px)", vn = (t) => {
|
|
1534
|
+
const e = document.createElement("span"), o = document.createElement("span");
|
|
1535
|
+
return e.style.position = "absolute", e.style.width = "0", e.style.height = "0", e.style.pointerEvents = "none", e.style.zIndex = "2", o.style.position = "absolute", o.style.width = "0", o.style.height = "0", o.style.pointerEvents = "none", t === "top" ? (e.style.borderLeft = "7px solid transparent", e.style.borderRight = "7px solid transparent", e.style.borderBottom = `7px solid ${fn}`, e.style.top = "-7px", o.style.borderLeft = "6px solid transparent", o.style.borderRight = "6px solid transparent", o.style.borderBottom = `6px solid ${Eo}`, o.style.top = "1px", o.style.left = "-6px") : (e.style.borderLeft = "7px solid transparent", e.style.borderRight = "7px solid transparent", e.style.borderTop = `7px solid ${fn}`, e.style.bottom = "-7px", o.style.borderLeft = "6px solid transparent", o.style.borderRight = "6px solid transparent", o.style.borderTop = `6px solid ${Eo}`, o.style.bottom = "1px", o.style.left = "-6px"), e.appendChild(o), e;
|
|
1536
|
+
}, Ur = () => {
|
|
1537
|
+
As("das-ui-text", [
|
|
1538
|
+
{
|
|
1539
|
+
className: ".das-ui-text-context",
|
|
1540
|
+
style: { position: "relative", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap", "letter-spacing": "-0.1px" }
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
className: "#das-ui-text-tooltip",
|
|
1544
|
+
style: {
|
|
1545
|
+
position: "fixed",
|
|
1546
|
+
"z-index": Me.value
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
className: "#das-ui-text-tooltip-context",
|
|
1551
|
+
style: {
|
|
1552
|
+
"box-sizing": "border-box",
|
|
1553
|
+
"max-width": "380px",
|
|
1554
|
+
"max-height": "114px",
|
|
1555
|
+
padding: "10px",
|
|
1556
|
+
"font-size": "12px",
|
|
1557
|
+
color: Wr,
|
|
1558
|
+
background: Eo,
|
|
1559
|
+
// border: `1px solid ${tooltipBorderVar}`,
|
|
1560
|
+
"border-radius": _r,
|
|
1561
|
+
"line-height": 1.5,
|
|
1562
|
+
"overflow-y": "hidden"
|
|
1563
|
+
}
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
className: "#das-ui-text-tooltip-context *",
|
|
1567
|
+
style: {
|
|
1568
|
+
color: "inherit !important"
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
className: "#tooltip-scroll-content",
|
|
1573
|
+
style: {
|
|
1574
|
+
width: "100%",
|
|
1575
|
+
height: "100%"
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
className: ".das-scrollbar",
|
|
1580
|
+
style: {
|
|
1581
|
+
"--os-handle-bg": Nr,
|
|
1582
|
+
"--os-handle-bg-hover": hn,
|
|
1583
|
+
"--os-handle-bg-active": hn,
|
|
1584
|
+
"--os-padding-perpendicular": Fr,
|
|
1585
|
+
"--os-size": "10px",
|
|
1586
|
+
"box-sizing": "border-box",
|
|
1587
|
+
":hover": {
|
|
1588
|
+
// 悬浮时滚动条变大
|
|
1589
|
+
"--os-padding-perpendicular": 0
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
]);
|
|
1594
|
+
}, hs = (t) => {
|
|
1595
|
+
window.inTextTooltip = !0, t.stopPropagation();
|
|
1596
|
+
}, Ie = K(0);
|
|
1597
|
+
let vs = K(null);
|
|
1598
|
+
const Ae = () => {
|
|
1599
|
+
var o;
|
|
1600
|
+
clearTimeout(vs.value);
|
|
1601
|
+
const t = document.getElementById("das-ui-text-tooltip");
|
|
1602
|
+
t && ((o = document.body) == null || o.removeChild(t)), window.inTextTooltip = !1;
|
|
1603
|
+
const e = document.getElementById("das-ui-text-tooltip-context");
|
|
1604
|
+
e && e.removeEventListener("mouseover", hs);
|
|
1605
|
+
}, mn = (t) => {
|
|
1606
|
+
let e = document.getElementById("das-ui-text-tooltip");
|
|
1607
|
+
const o = t.clientX, n = t.clientY, s = e == null ? void 0 : e.getBoundingClientRect();
|
|
1608
|
+
if (e && o >= s.left && o <= s.right && n >= s.top && n <= s.bottom)
|
|
1609
|
+
return !0;
|
|
1610
|
+
Ae();
|
|
1611
|
+
}, jr = async (t, e) => {
|
|
1612
|
+
let o = t;
|
|
1613
|
+
return e.target && (typeof e.target == "string" && (o = e.target), typeof e.target == "function" && (o = await e.target(t))), o;
|
|
1614
|
+
}, Xr = {
|
|
1615
|
+
beforeMount() {
|
|
1616
|
+
Ur();
|
|
1617
|
+
},
|
|
1618
|
+
async mounted(t, e, o) {
|
|
1619
|
+
const n = (o ? e.value : e) || {};
|
|
1620
|
+
let s = (n == null ? void 0 : n.deep) ?? !0;
|
|
1621
|
+
if ((n == null ? void 0 : n.disabled) ?? !1) {
|
|
1622
|
+
const i = document.querySelectorAll(".das-ui-text-context");
|
|
1623
|
+
i.length && (i[0].style.textOverflow = "auto", i[0].style.overflow = "visible");
|
|
1624
|
+
return;
|
|
1625
|
+
}
|
|
1626
|
+
let c = (n == null ? void 0 : n.customContent) || "";
|
|
1627
|
+
Ie.value === 0 && window.addEventListener("wheel", mn), Ie.value++;
|
|
1628
|
+
let l = await jr(t, n);
|
|
1629
|
+
const a = l.classList;
|
|
1630
|
+
l.dataset.customContent = c;
|
|
1631
|
+
let d = !0;
|
|
1632
|
+
a.contains("das-ui-text-context") || a.add("das-ui-text-context"), l.onmouseenter = (i) => {
|
|
1633
|
+
const f = i.composedPath()[0], { x, y: C, width: v, height: m, top: E, left: w, bottom: g, right: O } = f.getBoundingClientRect(), p = window.getComputedStyle(f, null), S = parseFloat(p.getPropertyValue("padding-left"));
|
|
1634
|
+
Me.value = Rs().nextZIndex();
|
|
1635
|
+
const R = document.createRange();
|
|
1636
|
+
R.setStart(l, 0);
|
|
1637
|
+
let W = s ? l.childNodes.length : 1;
|
|
1638
|
+
R.setEnd(l, W);
|
|
1639
|
+
const V = parseFloat(p.paddingRight), I = parseFloat(p.paddingLeft), $ = Math.round(R.getBoundingClientRect().width), A = Math.round(l.getBoundingClientRect().width) - V - I;
|
|
1640
|
+
if ($ > A) {
|
|
1641
|
+
const M = (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) - O;
|
|
1642
|
+
setTimeout(async () => {
|
|
1643
|
+
let L = document.getElementById("das-ui-text-tooltip");
|
|
1644
|
+
if (!L) {
|
|
1645
|
+
L = document.createElement("div"), L.style.cssText = `left: ${x + S}px;`, L.style.zIndex = `${Me.value}`, L.setAttribute("id", "das-ui-text-tooltip");
|
|
1646
|
+
const _ = document.createElement("div");
|
|
1647
|
+
_.setAttribute("id", "das-ui-text-tooltip-context"), _ && (_.style.wordBreak = Fo.value == "zh-CN" ? "break-all" : "normal"), _.addEventListener("mouseover", hs);
|
|
1648
|
+
const et = document.createElement("div");
|
|
1649
|
+
et.setAttribute("id", "tooltip-scroll-content"), _.appendChild(et), L.appendChild(_), document.body.appendChild(L);
|
|
1650
|
+
const ot = "os-theme-dark das-scrollbar", P = document.getElementById("tooltip-scroll-content");
|
|
1651
|
+
if (P) {
|
|
1652
|
+
P.innerHTML = l.dataset.customContent || l.innerHTML;
|
|
1653
|
+
const Q = {
|
|
1654
|
+
scrollbars: {
|
|
1655
|
+
autoHide: "leave",
|
|
1656
|
+
autoHideDelay: 0,
|
|
1657
|
+
theme: ot
|
|
1658
|
+
},
|
|
1659
|
+
overflow: { y: "scroll" }
|
|
1660
|
+
};
|
|
1661
|
+
l.dataset.customContent ? vs.value = setTimeout(() => {
|
|
1662
|
+
Qt(_, Q);
|
|
1663
|
+
}, 10) : Qt(_, Q);
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
const j = L.querySelector('[data-tooltip-arrow="true"]');
|
|
1667
|
+
j == null || j.remove();
|
|
1668
|
+
const N = vn("bottom");
|
|
1669
|
+
if (N.setAttribute("data-tooltip-arrow", "true"), N.style.left = "14px", M + v <= $e.value) {
|
|
1670
|
+
let _ = L.offsetWidth >= $e.value ? $e.value : L.offsetWidth;
|
|
1671
|
+
L.style.cssText = `left: ${x + S - _ / 4}px;`, L.style.zIndex = `${Me.value}`, N.style.left = `${_ / 2}px`;
|
|
1672
|
+
}
|
|
1673
|
+
L.appendChild(N);
|
|
1674
|
+
let U = l.dataset.customContent && Fo.value != "zh-CN" ? L.offsetHeight - 10 : L.offsetHeight, Z = C - 10 - U;
|
|
1675
|
+
if (Z * 1 < 0) {
|
|
1676
|
+
L.style.top = `${g + 5}px`, N.remove();
|
|
1677
|
+
const _ = vn("top");
|
|
1678
|
+
_.setAttribute("data-tooltip-arrow", "true"), _.style.left = M + v <= $e.value ? N.style.left : "14px", L.appendChild(_), L.style.boxShadow = `0px -4px 10px 0px ${pn}`;
|
|
1679
|
+
} else
|
|
1680
|
+
L.style.top = `${Z}px`, L.style.boxShadow = `0px 4px 10px 0px ${pn}`;
|
|
1681
|
+
L.onmouseenter = (_) => {
|
|
1682
|
+
d = !1;
|
|
1683
|
+
}, L.onmouseleave = (_) => {
|
|
1684
|
+
d = !0, setTimeout(() => {
|
|
1685
|
+
Ae();
|
|
1686
|
+
}, 200);
|
|
1687
|
+
};
|
|
1688
|
+
}, 200);
|
|
1689
|
+
}
|
|
1690
|
+
}, l.onmouseleave = (i) => {
|
|
1691
|
+
setTimeout(() => {
|
|
1692
|
+
d && Ae();
|
|
1693
|
+
}, 200);
|
|
1694
|
+
};
|
|
1695
|
+
},
|
|
1696
|
+
// 指令与元素解绑时
|
|
1697
|
+
unmounted() {
|
|
1698
|
+
Ae(), Ie.value--, Ie.value === 0 && window.removeEventListener("wheel", mn);
|
|
1699
|
+
}
|
|
1700
|
+
}, Yr = ["auto", "fit-content", "inherit", "initial", "max-content", "min-content", "revert", "unset", "-webkit-fill-available"], Zr = (t) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(t), Gr = (t) => {
|
|
1701
|
+
if (t)
|
|
1702
|
+
return typeof t == "string" && Zr(t) || typeof t == "string" && Yr.includes(t) ? t : t + "px";
|
|
1703
|
+
}, lo = {
|
|
15
1704
|
large: {
|
|
16
1705
|
height: "40px",
|
|
17
1706
|
fontSize: "14px",
|
|
@@ -32,195 +1721,195 @@ const ge = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
32
1721
|
fontSize: "12",
|
|
33
1722
|
defaultWidth: "132px"
|
|
34
1723
|
}
|
|
35
|
-
},
|
|
1724
|
+
}, gn = {
|
|
36
1725
|
view: {
|
|
37
|
-
color: "
|
|
1726
|
+
color: "var(--upf-border-color)"
|
|
38
1727
|
},
|
|
39
1728
|
disabled: {
|
|
40
|
-
color: "
|
|
1729
|
+
color: "var(--upf-border-color)"
|
|
41
1730
|
},
|
|
42
1731
|
error: {
|
|
43
|
-
color: "
|
|
1732
|
+
color: "var(--upf-color-error)"
|
|
44
1733
|
}
|
|
45
1734
|
};
|
|
46
|
-
var
|
|
47
|
-
const
|
|
1735
|
+
var bn;
|
|
1736
|
+
const ms = typeof window < "u", qr = (t) => typeof t == "string", Qr = () => {
|
|
48
1737
|
};
|
|
49
|
-
|
|
50
|
-
function
|
|
51
|
-
return typeof
|
|
1738
|
+
ms && ((bn = window == null ? void 0 : window.navigator) != null && bn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1739
|
+
function gs(t) {
|
|
1740
|
+
return typeof t == "function" ? t() : Bt(t);
|
|
52
1741
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
1742
|
+
function Kr(t) {
|
|
1743
|
+
return t;
|
|
55
1744
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
1745
|
+
function bs(t) {
|
|
1746
|
+
return Cs() ? (Es(t), !0) : !1;
|
|
58
1747
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
1748
|
+
function Jr(t, e = !0) {
|
|
1749
|
+
$n() ? $o(t) : e ? t() : be(t);
|
|
61
1750
|
}
|
|
62
|
-
function
|
|
63
|
-
var
|
|
64
|
-
const
|
|
65
|
-
return (
|
|
1751
|
+
function Zt(t) {
|
|
1752
|
+
var e;
|
|
1753
|
+
const o = gs(t);
|
|
1754
|
+
return (e = o == null ? void 0 : o.$el) != null ? e : o;
|
|
66
1755
|
}
|
|
67
|
-
const
|
|
68
|
-
function
|
|
69
|
-
let o, n,
|
|
70
|
-
if (
|
|
71
|
-
return
|
|
72
|
-
Array.isArray(
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
}, { immediate: !0, flush: "post" }),
|
|
78
|
-
|
|
1756
|
+
const Oe = ms ? window : void 0;
|
|
1757
|
+
function Wt(...t) {
|
|
1758
|
+
let e, o, n, s;
|
|
1759
|
+
if (qr(t[0]) || Array.isArray(t[0]) ? ([o, n, s] = t, e = Oe) : [e, o, n, s] = t, !e)
|
|
1760
|
+
return Qr;
|
|
1761
|
+
Array.isArray(o) || (o = [o]), Array.isArray(n) || (n = [n]);
|
|
1762
|
+
const r = [], c = () => {
|
|
1763
|
+
r.forEach((i) => i()), r.length = 0;
|
|
1764
|
+
}, l = (i, u, f, x) => (i.addEventListener(u, f, x), () => i.removeEventListener(u, f, x)), a = Gt(() => [Zt(e), gs(s)], ([i, u]) => {
|
|
1765
|
+
c(), i && r.push(...o.flatMap((f) => n.map((x) => l(i, f, x, u))));
|
|
1766
|
+
}, { immediate: !0, flush: "post" }), d = () => {
|
|
1767
|
+
a(), c();
|
|
79
1768
|
};
|
|
80
|
-
return
|
|
1769
|
+
return bs(d), d;
|
|
81
1770
|
}
|
|
82
|
-
function
|
|
83
|
-
const
|
|
84
|
-
return
|
|
1771
|
+
function tc(t, e = !1) {
|
|
1772
|
+
const o = K(), n = () => o.value = !!t();
|
|
1773
|
+
return n(), Jr(n, e), o;
|
|
85
1774
|
}
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
var
|
|
89
|
-
var
|
|
90
|
-
for (var
|
|
91
|
-
|
|
92
|
-
if (
|
|
93
|
-
for (var
|
|
94
|
-
|
|
95
|
-
return
|
|
1775
|
+
const yn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, xn = "__vueuse_ssr_handlers__";
|
|
1776
|
+
yn[xn] = yn[xn] || {};
|
|
1777
|
+
var wn = Object.getOwnPropertySymbols, ec = Object.prototype.hasOwnProperty, oc = Object.prototype.propertyIsEnumerable, nc = (t, e) => {
|
|
1778
|
+
var o = {};
|
|
1779
|
+
for (var n in t)
|
|
1780
|
+
ec.call(t, n) && e.indexOf(n) < 0 && (o[n] = t[n]);
|
|
1781
|
+
if (t != null && wn)
|
|
1782
|
+
for (var n of wn(t))
|
|
1783
|
+
e.indexOf(n) < 0 && oc.call(t, n) && (o[n] = t[n]);
|
|
1784
|
+
return o;
|
|
96
1785
|
};
|
|
97
|
-
function
|
|
98
|
-
const
|
|
99
|
-
let
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
}, { immediate: !0, flush: "post" }),
|
|
105
|
-
|
|
1786
|
+
function sc(t, e, o = {}) {
|
|
1787
|
+
const n = o, { window: s = Oe } = n, r = nc(n, ["window"]);
|
|
1788
|
+
let c;
|
|
1789
|
+
const l = tc(() => s && "ResizeObserver" in s), a = () => {
|
|
1790
|
+
c && (c.disconnect(), c = void 0);
|
|
1791
|
+
}, d = Gt(() => Zt(t), (u) => {
|
|
1792
|
+
a(), l.value && s && u && (c = new ResizeObserver(e), c.observe(u, r));
|
|
1793
|
+
}, { immediate: !0, flush: "post" }), i = () => {
|
|
1794
|
+
a(), d();
|
|
106
1795
|
};
|
|
107
|
-
return
|
|
108
|
-
isSupported:
|
|
109
|
-
stop:
|
|
1796
|
+
return bs(i), {
|
|
1797
|
+
isSupported: l,
|
|
1798
|
+
stop: i
|
|
110
1799
|
};
|
|
111
1800
|
}
|
|
112
|
-
function
|
|
113
|
-
const { window:
|
|
114
|
-
var
|
|
115
|
-
return (
|
|
116
|
-
}),
|
|
117
|
-
return
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
120
|
-
const
|
|
121
|
-
if (
|
|
122
|
-
const
|
|
123
|
-
|
|
1801
|
+
function rc(t, e = { width: 0, height: 0 }, o = {}) {
|
|
1802
|
+
const { window: n = Oe, box: s = "content-box" } = o, r = ct(() => {
|
|
1803
|
+
var a, d;
|
|
1804
|
+
return (d = (a = Zt(t)) == null ? void 0 : a.namespaceURI) == null ? void 0 : d.includes("svg");
|
|
1805
|
+
}), c = K(e.width), l = K(e.height);
|
|
1806
|
+
return sc(t, ([a]) => {
|
|
1807
|
+
const d = s === "border-box" ? a.borderBoxSize : s === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
|
|
1808
|
+
if (n && r.value) {
|
|
1809
|
+
const i = Zt(t);
|
|
1810
|
+
if (i) {
|
|
1811
|
+
const u = n.getComputedStyle(i);
|
|
1812
|
+
c.value = parseFloat(u.width), l.value = parseFloat(u.height);
|
|
124
1813
|
}
|
|
125
|
-
} else if (
|
|
126
|
-
const
|
|
127
|
-
|
|
1814
|
+
} else if (d) {
|
|
1815
|
+
const i = Array.isArray(d) ? d : [d];
|
|
1816
|
+
c.value = i.reduce((u, { inlineSize: f }) => u + f, 0), l.value = i.reduce((u, { blockSize: f }) => u + f, 0);
|
|
128
1817
|
} else
|
|
129
|
-
|
|
130
|
-
},
|
|
131
|
-
|
|
1818
|
+
c.value = a.contentRect.width, l.value = a.contentRect.height;
|
|
1819
|
+
}, o), Gt(() => Zt(t), (a) => {
|
|
1820
|
+
c.value = a ? e.width : 0, l.value = a ? e.height : 0;
|
|
132
1821
|
}), {
|
|
133
|
-
width:
|
|
134
|
-
height:
|
|
1822
|
+
width: c,
|
|
1823
|
+
height: l
|
|
135
1824
|
};
|
|
136
1825
|
}
|
|
137
|
-
function
|
|
138
|
-
const { initialValue:
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
get: () =>
|
|
142
|
-
set(
|
|
143
|
-
var
|
|
144
|
-
!
|
|
1826
|
+
function cc(t, e = {}) {
|
|
1827
|
+
const { initialValue: o = !1 } = e, n = K(!1), s = ct(() => Zt(t));
|
|
1828
|
+
Wt(s, "focus", () => n.value = !0), Wt(s, "blur", () => n.value = !1);
|
|
1829
|
+
const r = ct({
|
|
1830
|
+
get: () => n.value,
|
|
1831
|
+
set(c) {
|
|
1832
|
+
var l, a;
|
|
1833
|
+
!c && n.value ? (l = s.value) == null || l.blur() : c && !n.value && ((a = s.value) == null || a.focus());
|
|
145
1834
|
}
|
|
146
1835
|
});
|
|
147
|
-
return
|
|
148
|
-
|
|
149
|
-
}, { immediate: !0, flush: "post" }), { focused:
|
|
1836
|
+
return Gt(s, () => {
|
|
1837
|
+
r.value = o;
|
|
1838
|
+
}, { immediate: !0, flush: "post" }), { focused: r };
|
|
150
1839
|
}
|
|
151
|
-
function
|
|
1840
|
+
function lc(t = {}) {
|
|
152
1841
|
const {
|
|
153
|
-
type:
|
|
154
|
-
touch:
|
|
155
|
-
resetOnTouchEnds:
|
|
156
|
-
initialValue:
|
|
157
|
-
window:
|
|
158
|
-
eventFilter:
|
|
159
|
-
} =
|
|
160
|
-
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
},
|
|
164
|
-
if (
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
return
|
|
170
|
-
x:
|
|
171
|
-
y:
|
|
172
|
-
sourceType:
|
|
1842
|
+
type: e = "page",
|
|
1843
|
+
touch: o = !0,
|
|
1844
|
+
resetOnTouchEnds: n = !1,
|
|
1845
|
+
initialValue: s = { x: 0, y: 0 },
|
|
1846
|
+
window: r = Oe,
|
|
1847
|
+
eventFilter: c
|
|
1848
|
+
} = t, l = K(s.x), a = K(s.y), d = K(null), i = (v) => {
|
|
1849
|
+
e === "page" ? (l.value = v.pageX, a.value = v.pageY) : e === "client" ? (l.value = v.clientX, a.value = v.clientY) : e === "movement" && (l.value = v.movementX, a.value = v.movementY), d.value = "mouse";
|
|
1850
|
+
}, u = () => {
|
|
1851
|
+
l.value = s.x, a.value = s.y;
|
|
1852
|
+
}, f = (v) => {
|
|
1853
|
+
if (v.touches.length > 0) {
|
|
1854
|
+
const m = v.touches[0];
|
|
1855
|
+
e === "page" ? (l.value = m.pageX, a.value = m.pageY) : e === "client" && (l.value = m.clientX, a.value = m.clientY), d.value = "touch";
|
|
1856
|
+
}
|
|
1857
|
+
}, x = (v) => c === void 0 ? i(v) : c(() => i(v), {}), C = (v) => c === void 0 ? f(v) : c(() => f(v), {});
|
|
1858
|
+
return r && (Wt(r, "mousemove", x, { passive: !0 }), Wt(r, "dragover", x, { passive: !0 }), o && e !== "movement" && (Wt(r, "touchstart", C, { passive: !0 }), Wt(r, "touchmove", C, { passive: !0 }), n && Wt(r, "touchend", u, { passive: !0 }))), {
|
|
1859
|
+
x: l,
|
|
1860
|
+
y: a,
|
|
1861
|
+
sourceType: d
|
|
173
1862
|
};
|
|
174
1863
|
}
|
|
175
|
-
function
|
|
1864
|
+
function ic(t, e = {}) {
|
|
176
1865
|
const {
|
|
177
|
-
handleOutside:
|
|
178
|
-
window:
|
|
179
|
-
} =
|
|
180
|
-
let
|
|
1866
|
+
handleOutside: o = !0,
|
|
1867
|
+
window: n = Oe
|
|
1868
|
+
} = e, { x: s, y: r, sourceType: c } = lc(e), l = K(t ?? (n == null ? void 0 : n.document.body)), a = K(0), d = K(0), i = K(0), u = K(0), f = K(0), x = K(0), C = K(!0);
|
|
1869
|
+
let v = () => {
|
|
181
1870
|
};
|
|
182
|
-
return
|
|
183
|
-
const
|
|
184
|
-
if (!
|
|
1871
|
+
return n && (v = Gt([l, s, r], () => {
|
|
1872
|
+
const m = Zt(l);
|
|
1873
|
+
if (!m)
|
|
185
1874
|
return;
|
|
186
1875
|
const {
|
|
187
|
-
left:
|
|
188
|
-
top:
|
|
189
|
-
width:
|
|
190
|
-
height:
|
|
191
|
-
} =
|
|
192
|
-
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
}, { immediate: !0 }),
|
|
196
|
-
|
|
1876
|
+
left: E,
|
|
1877
|
+
top: w,
|
|
1878
|
+
width: g,
|
|
1879
|
+
height: O
|
|
1880
|
+
} = m.getBoundingClientRect();
|
|
1881
|
+
i.value = E + n.pageXOffset, u.value = w + n.pageYOffset, f.value = O, x.value = g;
|
|
1882
|
+
const p = s.value - i.value, S = r.value - u.value;
|
|
1883
|
+
C.value = g === 0 || O === 0 || p < 0 || S < 0 || p > g || S > O, (o || !C.value) && (a.value = p, d.value = S);
|
|
1884
|
+
}, { immediate: !0 }), Wt(document, "mouseleave", () => {
|
|
1885
|
+
C.value = !0;
|
|
197
1886
|
})), {
|
|
198
|
-
x:
|
|
199
|
-
y:
|
|
200
|
-
sourceType:
|
|
201
|
-
elementX:
|
|
202
|
-
elementY:
|
|
203
|
-
elementPositionX:
|
|
204
|
-
elementPositionY:
|
|
205
|
-
elementHeight:
|
|
206
|
-
elementWidth:
|
|
207
|
-
isOutside:
|
|
208
|
-
stop:
|
|
1887
|
+
x: s,
|
|
1888
|
+
y: r,
|
|
1889
|
+
sourceType: c,
|
|
1890
|
+
elementX: a,
|
|
1891
|
+
elementY: d,
|
|
1892
|
+
elementPositionX: i,
|
|
1893
|
+
elementPositionY: u,
|
|
1894
|
+
elementHeight: f,
|
|
1895
|
+
elementWidth: x,
|
|
1896
|
+
isOutside: C,
|
|
1897
|
+
stop: v
|
|
209
1898
|
};
|
|
210
1899
|
}
|
|
211
|
-
var
|
|
212
|
-
(function(
|
|
213
|
-
|
|
214
|
-
})(
|
|
215
|
-
var
|
|
216
|
-
for (var
|
|
217
|
-
|
|
218
|
-
if (
|
|
219
|
-
for (var
|
|
220
|
-
|
|
221
|
-
return
|
|
1900
|
+
var Sn;
|
|
1901
|
+
(function(t) {
|
|
1902
|
+
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
1903
|
+
})(Sn || (Sn = {}));
|
|
1904
|
+
var ac = Object.defineProperty, On = Object.getOwnPropertySymbols, uc = Object.prototype.hasOwnProperty, dc = Object.prototype.propertyIsEnumerable, Cn = (t, e, o) => e in t ? ac(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, fc = (t, e) => {
|
|
1905
|
+
for (var o in e)
|
|
1906
|
+
uc.call(e, o) && Cn(t, o, e[o]);
|
|
1907
|
+
if (On)
|
|
1908
|
+
for (var o of On(e))
|
|
1909
|
+
dc.call(e, o) && Cn(t, o, e[o]);
|
|
1910
|
+
return t;
|
|
222
1911
|
};
|
|
223
|
-
const
|
|
1912
|
+
const pc = {
|
|
224
1913
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
225
1914
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
226
1915
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -246,42 +1935,39 @@ const De = {
|
|
|
246
1935
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
247
1936
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
248
1937
|
};
|
|
249
|
-
|
|
250
|
-
linear:
|
|
251
|
-
},
|
|
252
|
-
function
|
|
253
|
-
elInputRef:
|
|
254
|
-
inputValue:
|
|
255
|
-
placeholder:
|
|
1938
|
+
fc({
|
|
1939
|
+
linear: Kr
|
|
1940
|
+
}, pc);
|
|
1941
|
+
function hc({
|
|
1942
|
+
elInputRef: t,
|
|
1943
|
+
inputValue: e,
|
|
1944
|
+
placeholder: o
|
|
256
1945
|
}) {
|
|
257
|
-
var
|
|
258
|
-
const
|
|
259
|
-
var
|
|
260
|
-
return (
|
|
261
|
-
})),
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
a && (o.value || (a.value = n.value, await M()), d.value = a.scrollWidth > a.clientWidth, a.value = o.value);
|
|
1946
|
+
var i;
|
|
1947
|
+
const n = (i = $n()) == null ? void 0 : i.props, s = ct(() => {
|
|
1948
|
+
var u;
|
|
1949
|
+
return (u = t.value) == null ? void 0 : u.ref;
|
|
1950
|
+
}), { focused: r } = cc(s), c = K(!1), l = ct(() => c.value && !r.value && n.isTitle), a = ct(() => e.value ? e.value : o.value), d = async () => {
|
|
1951
|
+
const u = s.value;
|
|
1952
|
+
u && (e.value || (u.value = o.value, await be()), c.value = u.scrollWidth > u.clientWidth, u.value = e.value);
|
|
265
1953
|
};
|
|
266
|
-
return
|
|
267
|
-
|
|
268
|
-
}),
|
|
269
|
-
() => [
|
|
1954
|
+
return Gt(t, () => {
|
|
1955
|
+
t.value && d();
|
|
1956
|
+
}), Gt(
|
|
1957
|
+
() => [e.value, o.value],
|
|
270
1958
|
() => {
|
|
271
|
-
|
|
1959
|
+
be(d);
|
|
272
1960
|
}
|
|
273
1961
|
), {
|
|
274
|
-
showToolTip:
|
|
275
|
-
tooltipContent:
|
|
1962
|
+
showToolTip: l,
|
|
1963
|
+
tooltipContent: a
|
|
276
1964
|
};
|
|
277
1965
|
}
|
|
278
|
-
const
|
|
1966
|
+
const vc = {
|
|
279
1967
|
key: 0,
|
|
280
1968
|
class: "das-input-message"
|
|
281
|
-
},
|
|
282
|
-
inheritAttrs: !1
|
|
283
|
-
}, Ye = /* @__PURE__ */ ae({
|
|
284
|
-
...Xe,
|
|
1969
|
+
}, mc = ["title"], gc = /* @__PURE__ */ To({
|
|
1970
|
+
inheritAttrs: !1,
|
|
285
1971
|
__name: "index",
|
|
286
1972
|
props: {
|
|
287
1973
|
modelValue: { default: "" },
|
|
@@ -307,102 +1993,102 @@ const Fe = {
|
|
|
307
1993
|
clearable: { type: Boolean }
|
|
308
1994
|
},
|
|
309
1995
|
emits: ["update:modelValue", "change"],
|
|
310
|
-
setup(
|
|
311
|
-
const
|
|
312
|
-
var
|
|
1996
|
+
setup(t, { expose: e, emit: o }) {
|
|
1997
|
+
const n = t, s = ct(() => n.placeholder || Hs("请输入")), r = ct(() => n.disabled ? "disabled" : n.isView ? "view" : n.error ? "error" : "default"), c = ct(() => {
|
|
1998
|
+
var p, S, R, W, V;
|
|
313
1999
|
return {
|
|
314
|
-
"--das-input-width":
|
|
315
|
-
"--das-input-height": (
|
|
316
|
-
"--das-input-font-size": (
|
|
317
|
-
"--das-input-border-color": (
|
|
318
|
-
"--das-input-message-color": (
|
|
2000
|
+
"--das-input-width": Gr(n.width ?? ((p = lo[n.size]) == null ? void 0 : p.defaultWidth)),
|
|
2001
|
+
"--das-input-height": (S = lo[n.size]) == null ? void 0 : S.height,
|
|
2002
|
+
"--das-input-font-size": (R = lo[n.size]) == null ? void 0 : R.fontSize,
|
|
2003
|
+
"--das-input-border-color": (W = gn[r.value]) == null ? void 0 : W.color,
|
|
2004
|
+
"--das-input-message-color": (V = gn[r.value]) == null ? void 0 : V.color
|
|
319
2005
|
};
|
|
320
|
-
}),
|
|
2006
|
+
}), l = ct(() => [
|
|
321
2007
|
"das-ui-input",
|
|
322
|
-
`das-ui-input--border-type-${
|
|
2008
|
+
`das-ui-input--border-type-${n.borderType}`,
|
|
323
2009
|
{
|
|
324
|
-
"das-ui-input--view":
|
|
325
|
-
"das-ui-input--disabled":
|
|
326
|
-
"das-ui-textarea":
|
|
2010
|
+
"das-ui-input--view": n.isView,
|
|
2011
|
+
"das-ui-input--disabled": n.disabled,
|
|
2012
|
+
"das-ui-textarea": n.type === "textarea"
|
|
327
2013
|
}
|
|
328
|
-
]),
|
|
329
|
-
get: () =>
|
|
330
|
-
set: (
|
|
331
|
-
}),
|
|
332
|
-
var
|
|
333
|
-
return (
|
|
334
|
-
})),
|
|
335
|
-
elInputRef:
|
|
336
|
-
inputValue:
|
|
337
|
-
placeholder:
|
|
338
|
-
}), { width:
|
|
339
|
-
let
|
|
340
|
-
|
|
2014
|
+
]), a = o, d = ct({
|
|
2015
|
+
get: () => n.modelValue,
|
|
2016
|
+
set: (p) => a("update:modelValue", p)
|
|
2017
|
+
}), i = K(null), u = K(), { isOutside: f } = ic(ct(() => {
|
|
2018
|
+
var p;
|
|
2019
|
+
return (p = u.value) == null ? void 0 : p.$el;
|
|
2020
|
+
})), x = ct(() => !f.value && n.errorMode === "overlay"), C = ct(() => n.type === "textarea" ? n.showWordLimit : n.showTextWordLimit), v = ct(() => n.isView || n.disabled), m = ct(() => v.value ? n.noSetDefaultVal ? "" : "-" : s.value ?? ""), { showToolTip: E, tooltipContent: w } = hc({
|
|
2021
|
+
elInputRef: u,
|
|
2022
|
+
inputValue: d,
|
|
2023
|
+
placeholder: s
|
|
2024
|
+
}), { width: g } = rc(i), O = (p) => {
|
|
2025
|
+
let S = p + "";
|
|
2026
|
+
n.type !== "textarea" && n.filterSpace && (S = S.trim()), d.value = S, a("change", S);
|
|
341
2027
|
};
|
|
342
|
-
return
|
|
343
|
-
elInputRef:
|
|
344
|
-
}), (
|
|
2028
|
+
return e({
|
|
2029
|
+
elInputRef: u
|
|
2030
|
+
}), (p, S) => (ht(), St(
|
|
345
2031
|
"div",
|
|
346
2032
|
{
|
|
347
2033
|
ref_key: "containerRef",
|
|
348
|
-
ref:
|
|
349
|
-
style:
|
|
350
|
-
class:
|
|
2034
|
+
ref: i,
|
|
2035
|
+
style: Ve(c.value),
|
|
2036
|
+
class: Pe(l.value)
|
|
351
2037
|
},
|
|
352
2038
|
[
|
|
353
|
-
|
|
354
|
-
|
|
2039
|
+
Lt(" 这里tooltip不能使用v-model:visible 有响应问题 "),
|
|
2040
|
+
io(Ds, {
|
|
355
2041
|
effect: "light",
|
|
356
2042
|
placement: "top",
|
|
357
|
-
disabled: !
|
|
358
|
-
content:
|
|
2043
|
+
disabled: !Bt(E),
|
|
2044
|
+
content: Bt(w)
|
|
359
2045
|
}, {
|
|
360
|
-
default:
|
|
361
|
-
|
|
2046
|
+
default: Dt(() => [
|
|
2047
|
+
io(Bt(Ls), En({
|
|
362
2048
|
ref_key: "elInputRef",
|
|
363
|
-
ref:
|
|
364
|
-
},
|
|
365
|
-
modelValue:
|
|
366
|
-
"onUpdate:modelValue":
|
|
367
|
-
placeholder:
|
|
368
|
-
disabled:
|
|
369
|
-
readonly:
|
|
370
|
-
type:
|
|
371
|
-
autosize:
|
|
372
|
-
showWordLimit:
|
|
373
|
-
maxlength:
|
|
374
|
-
onChange:
|
|
375
|
-
}),
|
|
2049
|
+
ref: u
|
|
2050
|
+
}, p.$attrs, {
|
|
2051
|
+
modelValue: d.value,
|
|
2052
|
+
"onUpdate:modelValue": S[0] || (S[0] = (R) => d.value = R),
|
|
2053
|
+
placeholder: m.value,
|
|
2054
|
+
disabled: t.disabled,
|
|
2055
|
+
readonly: t.isView,
|
|
2056
|
+
type: n.type,
|
|
2057
|
+
autosize: n.autosize,
|
|
2058
|
+
showWordLimit: C.value,
|
|
2059
|
+
maxlength: n.maxlength,
|
|
2060
|
+
onChange: O
|
|
2061
|
+
}), Ts({
|
|
376
2062
|
_: 2
|
|
377
2063
|
/* DYNAMIC */
|
|
378
2064
|
}, [
|
|
379
|
-
|
|
2065
|
+
p.$slots.prepend ? {
|
|
380
2066
|
name: "prepend",
|
|
381
|
-
fn:
|
|
382
|
-
|
|
383
|
-
|
|
2067
|
+
fn: Dt(() => [
|
|
2068
|
+
Lt(" 输入框前置内容 "),
|
|
2069
|
+
ee(p.$slots, "prepend", {}, void 0, !0)
|
|
384
2070
|
]),
|
|
385
2071
|
key: "0"
|
|
386
2072
|
} : void 0,
|
|
387
|
-
|
|
2073
|
+
p.$slots.append ? {
|
|
388
2074
|
name: "append",
|
|
389
|
-
fn:
|
|
390
|
-
|
|
391
|
-
|
|
2075
|
+
fn: Dt(() => [
|
|
2076
|
+
Lt(" 输入框后置内容 "),
|
|
2077
|
+
ee(p.$slots, "append", {}, void 0, !0)
|
|
392
2078
|
]),
|
|
393
2079
|
key: "1"
|
|
394
2080
|
} : void 0,
|
|
395
|
-
|
|
2081
|
+
p.$slots.suffix ? {
|
|
396
2082
|
name: "suffix",
|
|
397
|
-
fn:
|
|
398
|
-
|
|
2083
|
+
fn: Dt(() => [
|
|
2084
|
+
ee(p.$slots, "suffix", {}, void 0, !0)
|
|
399
2085
|
]),
|
|
400
2086
|
key: "2"
|
|
401
2087
|
} : void 0,
|
|
402
|
-
|
|
2088
|
+
p.$slots.prefix ? {
|
|
403
2089
|
name: "prefix",
|
|
404
|
-
fn:
|
|
405
|
-
|
|
2090
|
+
fn: Dt(() => [
|
|
2091
|
+
ee(p.$slots, "prefix", {}, void 0, !0)
|
|
406
2092
|
]),
|
|
407
2093
|
key: "3"
|
|
408
2094
|
} : void 0
|
|
@@ -411,75 +2097,52 @@ const Fe = {
|
|
|
411
2097
|
_: 3
|
|
412
2098
|
/* FORWARDED */
|
|
413
2099
|
}, 8, ["disabled", "content"]),
|
|
414
|
-
|
|
415
|
-
|
|
2100
|
+
t.error && t.errorLabel ? (ht(), St(
|
|
2101
|
+
Le,
|
|
416
2102
|
{ key: 0 },
|
|
417
2103
|
[
|
|
418
|
-
|
|
419
|
-
|
|
2104
|
+
t.errorMode === "default" ? (ht(), St("div", vc, [
|
|
2105
|
+
t.error ? $s((ht(), St("span", {
|
|
420
2106
|
key: 0,
|
|
421
|
-
class:
|
|
422
|
-
title:
|
|
2107
|
+
class: Pe(["das-input-message_content", { "is-ellipsis": t.isErrorTitle }]),
|
|
2108
|
+
title: t.isErrorTitle ? t.errorLabel : ""
|
|
423
2109
|
}, [
|
|
424
|
-
|
|
425
|
-
|
|
2110
|
+
Tn(
|
|
2111
|
+
ze(t.errorLabel),
|
|
426
2112
|
1
|
|
427
2113
|
/* TEXT */
|
|
428
2114
|
)
|
|
429
|
-
], 10,
|
|
430
|
-
[
|
|
431
|
-
]) :
|
|
432
|
-
])) :
|
|
433
|
-
|
|
2115
|
+
], 10, mc)), [
|
|
2116
|
+
[Bt(Xr)]
|
|
2117
|
+
]) : Lt("v-if", !0)
|
|
2118
|
+
])) : Lt("v-if", !0),
|
|
2119
|
+
x.value ? (ht(), Io(Ws, {
|
|
434
2120
|
key: 1,
|
|
435
|
-
errorLabel:
|
|
436
|
-
errorWidth: `${
|
|
2121
|
+
errorLabel: t.errorLabel,
|
|
2122
|
+
errorWidth: `${Bt(g)}`,
|
|
437
2123
|
getEl: () => {
|
|
438
|
-
var
|
|
439
|
-
return (
|
|
2124
|
+
var R;
|
|
2125
|
+
return (R = u.value) == null ? void 0 : R.$el;
|
|
440
2126
|
},
|
|
441
|
-
errorModelZIndex:
|
|
442
|
-
}, null, 8, ["errorLabel", "errorWidth", "getEl", "errorModelZIndex"])) :
|
|
2127
|
+
errorModelZIndex: t.errorModelZIndex
|
|
2128
|
+
}, null, 8, ["errorLabel", "errorWidth", "getEl", "errorModelZIndex"])) : Lt("v-if", !0)
|
|
443
2129
|
],
|
|
444
2130
|
64
|
|
445
2131
|
/* STABLE_FRAGMENT */
|
|
446
|
-
)) :
|
|
2132
|
+
)) : Lt("v-if", !0)
|
|
447
2133
|
],
|
|
448
2134
|
6
|
|
449
2135
|
/* CLASS, STYLE */
|
|
450
2136
|
));
|
|
451
2137
|
}
|
|
452
|
-
}),
|
|
453
|
-
const n = e.__vccOpts || e;
|
|
454
|
-
for (const [t, l] of o)
|
|
455
|
-
n[t] = l;
|
|
456
|
-
return n;
|
|
457
|
-
}, je = /* @__PURE__ */ Ue(Ye, [["__scopeId", "data-v-62991ba4"]]), He = {
|
|
458
|
-
"--das-ui-input-default-text-color": "#212121",
|
|
459
|
-
"--das-ui-input-default-placeholder-text-color": "#B2B2B2",
|
|
460
|
-
"--das-ui-input-full-border-color": "#D9D9D9",
|
|
461
|
-
"--das-ui-input-active-full-border-color": "#5582F3",
|
|
462
|
-
"--das-ui-input-disabled-full-border-color": "#d9d9d9",
|
|
463
|
-
"--das-ui-input-disabled-full-border-text-color": "#B2B2B2",
|
|
464
|
-
"--das-ui-input-view-full-border-color": "#E5E5E5",
|
|
465
|
-
"--das-ui-input-textarea-count-color": "#ccc",
|
|
466
|
-
"--das-ui-input-ground-bg-color": "#fafafa",
|
|
467
|
-
"--das-ui-input-only-bottom-color": "#999",
|
|
468
|
-
"--das-ui-input-only-bottom-active-border-color": "#5582F3",
|
|
469
|
-
"--das-ui-input-only-bottom-disabled-border-color": "#E5E5E5",
|
|
470
|
-
"--das-ui-input-only-bottom-disabled-border-text-color": "#B2B2B2",
|
|
471
|
-
"--das-ui-input-only-bottom-view-border-color": "#E5E5E5",
|
|
472
|
-
"--das-ui-input-success-color": "#1BA854",
|
|
473
|
-
"--das-ui-input-error-color": "#FB2323"
|
|
474
|
-
}, Ze = {
|
|
2138
|
+
}), bc = /* @__PURE__ */ In(gc, [["__scopeId", "data-v-bcb6665b"]]), yc = {
|
|
475
2139
|
共: { "zh-CN": "共", en: "Total", "zh-MO": "共", _appCode: "framework" },
|
|
476
2140
|
项: { "zh-CN": "项", en: "Item", "zh-MO": "項", _appCode: "framework" },
|
|
477
2141
|
请输入: { "zh-CN": "请输入", en: "Please enter", "zh-MO": "請輸入", _appCode: "framework" }
|
|
478
2142
|
};
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
const at = ee(je);
|
|
2143
|
+
ks(yc);
|
|
2144
|
+
const Lc = ys(bc);
|
|
482
2145
|
export {
|
|
483
|
-
|
|
484
|
-
|
|
2146
|
+
Lc as DasInput,
|
|
2147
|
+
Lc as default
|
|
485
2148
|
};
|