vue-devui 1.6.3-select.0 → 1.6.4-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auto-complete/index.es.js +5 -2
- package/auto-complete/index.umd.js +1 -1
- package/button/index.es.js +1 -2
- package/button/index.umd.js +1 -1
- package/carousel/index.es.js +36 -213
- package/carousel/index.umd.js +1 -1
- package/carousel/style.css +1 -1
- package/category-search/index.es.js +12333 -0
- package/category-search/index.umd.js +66 -0
- package/category-search/package.json +8 -0
- package/category-search/style.css +1 -0
- package/collapse/index.es.js +15 -18
- package/collapse/index.umd.js +5 -5
- package/data-grid/index.es.js +11546 -0
- package/data-grid/index.umd.js +45 -0
- package/data-grid/package.json +8 -0
- package/data-grid/style.css +1 -0
- package/date-picker-pro/index.es.js +25 -6
- package/date-picker-pro/index.umd.js +12 -12
- package/date-picker-pro/style.css +1 -1
- package/dragdrop-new/index.es.js +5174 -0
- package/dragdrop-new/index.umd.js +24 -0
- package/dragdrop-new/package.json +8 -0
- package/editable-select/index.es.js +5 -2
- package/editable-select/index.umd.js +2 -2
- package/global.d.ts +10 -0
- package/icon/index.es.js +1 -2
- package/icon/index.umd.js +1 -1
- package/input/index.es.js +25 -6
- package/input/index.umd.js +11 -11
- package/input/style.css +1 -1
- package/mention/index.es.js +1 -2
- package/mention/index.umd.js +1 -1
- package/message/index.es.js +1 -2
- package/message/index.umd.js +1 -1
- package/modal/index.es.js +27 -4
- package/modal/index.umd.js +7 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +1 -2
- package/notification/index.umd.js +2 -2
- package/nuxt/components/CategorySearch.js +3 -0
- package/nuxt/components/DataGrid.js +3 -0
- package/nuxt/components/DataGridInjectionKey.js +3 -0
- package/nuxt/components/DescendantChildren.js +2 -0
- package/nuxt/components/DescendantRegisterService.js +2 -0
- package/nuxt/components/DescendantRoot.js +2 -0
- package/nuxt/components/DragDropService.js +2 -0
- package/nuxt/components/DragDropSyncBox.js +2 -0
- package/nuxt/components/DragDropSyncService.js +2 -0
- package/nuxt/components/DragPreviewCloneDomRefComponent.js +2 -0
- package/nuxt/components/DragPreviewComponent.js +2 -0
- package/nuxt/components/DragPreviewTemplate.js +2 -0
- package/nuxt/components/DragSync.js +2 -0
- package/nuxt/components/DragSyncDescendantRegisterService.js +2 -0
- package/nuxt/components/Draggable.js +2 -0
- package/nuxt/components/DropEvent.js +2 -0
- package/nuxt/components/DropScrollEnhanceTimingFunctionGroup.js +2 -0
- package/nuxt/components/DropScrollEnhanced.js +2 -0
- package/nuxt/components/DropScrollEnhancedSide.js +2 -0
- package/nuxt/components/DropScrollOrientation.js +2 -0
- package/nuxt/components/DropSortSync.js +2 -0
- package/nuxt/components/DropSortSyncDescendantRegisterService.js +2 -0
- package/nuxt/components/Droppable.js +2 -0
- package/nuxt/components/Sortable.js +2 -0
- package/nuxt/components/categorySearchDropdownProps.js +3 -0
- package/nuxt/components/categorySearchInjectionKey.js +3 -0
- package/nuxt/components/categorySearchProps.js +3 -0
- package/nuxt/components/categorySearchTagProps.js +3 -0
- package/nuxt/components/dataGridProps.js +3 -0
- package/nuxt/components/extendIconProps.js +3 -0
- package/nuxt/components/gridBodyProps.js +3 -0
- package/nuxt/components/gridHeadProps.js +3 -0
- package/nuxt/components/gridTdProps.js +3 -0
- package/nuxt/components/gridThFilterProps.js +3 -0
- package/nuxt/components/gridThProps.js +3 -0
- package/nuxt/components/typeMenuProps.js +3 -0
- package/nuxt/components/useDragDropService.js +2 -0
- package/package.json +4 -2
- package/pagination/index.es.js +54 -238
- package/pagination/index.umd.js +16 -21
- package/pagination/style.css +1 -1
- package/result/index.es.js +1 -2
- package/result/index.umd.js +1 -1
- package/search/index.es.js +52 -27
- package/search/index.umd.js +19 -15
- package/search/style.css +1 -1
- package/select/index.es.js +44 -42
- package/select/index.umd.js +10 -15
- package/select/style.css +1 -1
- package/splitter/index.es.js +4 -0
- package/splitter/index.umd.js +7 -7
- package/steps/index.es.js +1 -2
- package/steps/index.umd.js +1 -1
- package/style.css +2 -2
- package/table/index.es.js +5 -2
- package/table/index.umd.js +2 -2
- package/time-picker/index.es.js +25 -6
- package/time-picker/index.umd.js +16 -16
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +44 -42
- package/time-select/index.umd.js +6 -11
- package/time-select/style.css +1 -1
- package/timeline/index.es.js +1 -2
- package/timeline/index.umd.js +1 -1
- package/tree/index.es.js +4 -0
- package/tree/index.umd.js +1 -1
- package/types/accordion/src/accordion-item-hreflink.d.ts +2 -2
- package/types/accordion/src/accordion-item-routerlink.d.ts +2 -2
- package/types/accordion/src/accordion-item.d.ts +2 -2
- package/types/accordion/src/accordion-list.d.ts +2 -2
- package/types/accordion/src/accordion-menu.d.ts +2 -2
- package/types/accordion/src/accordion.d.ts +2 -2
- package/types/action-timeline/src/action-timeline.d.ts +1 -53
- package/types/alert/src/alert.d.ts +1 -1
- package/types/anchor/src/anchor.d.ts +2 -2
- package/types/auto-complete/src/auto-complete.d.ts +1 -247
- package/types/auto-complete/src/components/dropdown.d.ts +1 -1
- package/types/avatar/src/avatar.d.ts +1 -1
- package/types/avatar/src/components/avatar-body-icon.d.ts +2 -2
- package/types/avatar/src/components/avatar-nobody-icon.d.ts +2 -2
- package/types/back-top/src/back-top.d.ts +2 -2
- package/types/badge/src/badge.d.ts +2 -2
- package/types/breadcrumb/src/breadcrumb-item.d.ts +2 -2
- package/types/breadcrumb/src/breadcrumb.d.ts +2 -2
- package/types/button/src/button-group.d.ts +2 -2
- package/types/button/src/button.d.ts +1 -1
- package/types/card/src/card.d.ts +2 -2
- package/types/carousel/src/carousel.d.ts +1 -1
- package/types/carousel/src/components/carousel-icons.d.ts +2 -0
- package/types/carousel/src/item.d.ts +1 -1
- package/types/cascader/components/cascader-list/index.d.ts +2 -2
- package/types/cascader/src/cascader.d.ts +1 -1
- package/types/category-search/index.d.ts +11 -0
- package/types/category-search/src/category-search-const.d.ts +6 -0
- package/types/category-search/src/category-search-types.d.ts +276 -0
- package/types/category-search/src/category-search.d.ts +3 -0
- package/types/category-search/src/components/category-search-clear.d.ts +14 -0
- package/types/category-search/src/components/category-search-icons.d.ts +4 -0
- package/types/category-search/src/components/category-search-input.d.ts +2 -0
- package/types/category-search/src/components/category-search-more.d.ts +14 -0
- package/types/category-search/src/components/category-search-save.d.ts +14 -0
- package/types/category-search/src/components/category-search-tag-dropdown.d.ts +24 -0
- package/types/category-search/src/components/category-search-tag.d.ts +23 -0
- package/types/category-search/src/components/checkbox-menu.d.ts +2 -0
- package/types/category-search/src/components/label-menu.d.ts +2 -0
- package/types/category-search/src/components/number-range-menu.d.ts +2 -0
- package/types/category-search/src/components/radio-menu.d.ts +14 -0
- package/types/category-search/src/components/text-input-menu.d.ts +2 -0
- package/types/category-search/src/composables/use-category-search-icons.d.ts +18 -0
- package/types/category-search/src/composables/use-category-search-input.d.ts +8 -0
- package/types/category-search/src/composables/use-category-search.d.ts +20 -0
- package/types/checkbox/src/checkbox-button.d.ts +1 -146
- package/types/checkbox/src/checkbox-group.d.ts +1 -168
- package/types/checkbox/src/checkbox.d.ts +1 -146
- package/types/code-editor/src/code-editor.d.ts +1 -118
- package/types/code-review/src/code-review.d.ts +1 -84
- package/types/code-review/src/components/code-review-header.d.ts +1 -1
- package/types/collapse/src/collapse-item.d.ts +2 -2
- package/types/collapse/src/collapse.d.ts +1 -1
- package/types/color-picker/src/color-picker.d.ts +1 -1
- package/types/color-picker/src/components/color-alpha-slider/color-alpha-slider.d.ts +1 -1
- package/types/color-picker/src/components/color-basic/color-basic.d.ts +2 -2
- package/types/color-picker/src/components/color-edit/color-edit.d.ts +1 -1
- package/types/color-picker/src/components/color-history/color-history.d.ts +1 -1
- package/types/color-picker/src/components/color-hue-slider/color-hue-slider.d.ts +1 -1
- package/types/color-picker/src/components/color-palette/color-palette.d.ts +1 -1
- package/types/color-picker/src/components/color-picker-panel/color-picker-panel.d.ts +1 -1
- package/types/comment/src/comment.d.ts +2 -2
- package/types/countdown/src/countdown.d.ts +1 -1
- package/types/data-grid/index.d.ts +11 -0
- package/types/data-grid/src/components/fix-head-grid.d.ts +2 -0
- package/types/data-grid/src/components/grid-body.d.ts +69 -0
- package/types/data-grid/src/components/grid-head.d.ts +50 -0
- package/types/data-grid/src/components/grid-icons.d.ts +4 -0
- package/types/data-grid/src/components/grid-td.d.ts +50 -0
- package/types/data-grid/src/components/grid-th-filter.d.ts +2 -0
- package/types/data-grid/src/components/grid-th-multiple-filter.d.ts +2 -0
- package/types/data-grid/src/components/grid-th-single-filter.d.ts +2 -0
- package/types/data-grid/src/components/grid-th.d.ts +32 -0
- package/types/data-grid/src/components/normal-head-grid.d.ts +2 -0
- package/types/data-grid/src/composables/use-column-sort.d.ts +7 -0
- package/types/data-grid/src/composables/use-data-grid-drag.d.ts +5 -0
- package/types/data-grid/src/composables/use-data-grid-scroll.d.ts +86 -0
- package/types/data-grid/src/composables/use-data-grid-tree.d.ts +13 -0
- package/types/data-grid/src/composables/use-data-grid.d.ts +210 -0
- package/types/data-grid/src/composables/use-grid-th.d.ts +31 -0
- package/types/data-grid/src/composables/use-overflow-tooltip.d.ts +13 -0
- package/types/data-grid/src/const.d.ts +6 -0
- package/types/data-grid/src/data-grid-types.d.ts +330 -0
- package/types/data-grid/src/data-grid.d.ts +3 -0
- package/types/data-grid/src/utils.d.ts +7 -0
- package/types/date-picker/src/components/popup/index.d.ts +2 -2
- package/types/date-picker/src/components/timepicker/index.d.ts +2 -2
- package/types/date-picker/src/components/vertical-slider/index.d.ts +2 -2
- package/types/date-picker/src/date-picker.d.ts +3 -3
- package/types/date-picker/src/stick-slider/index.d.ts +2 -2
- package/types/date-picker-pro/src/components/calendar-panel.d.ts +1 -94
- package/types/date-picker-pro/src/components/date-picker-panel.d.ts +1 -94
- package/types/date-picker-pro/src/components/month-calendar-panel.d.ts +1 -94
- package/types/date-picker-pro/src/components/range-date-picker-pro.d.ts +1 -88
- package/types/date-picker-pro/src/components/time-picker-panel.d.ts +1 -22
- package/types/date-picker-pro/src/components/year-calendar-panel.d.ts +1 -94
- package/types/date-picker-pro/src/date-picker-pro.d.ts +1 -79
- package/types/dragdrop-new/index.d.ts +23 -0
- package/types/dragdrop-new/src/batch-draggable.directive.d.ts +59 -0
- package/types/dragdrop-new/src/directive-base.d.ts +49 -0
- package/types/dragdrop-new/src/drag-drop.service.d.ts +75 -0
- package/types/dragdrop-new/src/drag-preview-clone-dom-ref.component.d.ts +43 -0
- package/types/dragdrop-new/src/drag-preview.component.d.ts +20 -0
- package/types/dragdrop-new/src/drag-preview.directive.d.ts +45 -0
- package/types/dragdrop-new/src/draggable.directive.d.ts +119 -0
- package/types/dragdrop-new/src/drop-scroll-enhance.directive.d.ts +111 -0
- package/types/dragdrop-new/src/droppable.directive.d.ts +137 -0
- package/types/dragdrop-new/src/preserve-next-event-emitter.d.ts +15 -0
- package/types/dragdrop-new/src/sortable.directive.d.ts +32 -0
- package/types/dragdrop-new/src/sync/desc-reg.service.d.ts +31 -0
- package/types/dragdrop-new/src/sync/drag-drop-descendant-sync.service.d.ts +10 -0
- package/types/dragdrop-new/src/sync/drag-drop-sync-box.directive.d.ts +36 -0
- package/types/dragdrop-new/src/sync/drag-drop-sync.service.d.ts +13 -0
- package/types/dragdrop-new/src/sync/drag-sync.directive.d.ts +44 -0
- package/types/dragdrop-new/src/sync/drop-sort-sync.directive.d.ts +55 -0
- package/types/dragdrop-new/src/sync/index.d.ts +17 -0
- package/types/dragdrop-new/src/sync/query-list.d.ts +42 -0
- package/types/dragdrop-new/src/touch-support/dragdrop-touch.d.ts +148 -0
- package/types/dragdrop-new/src/utils.d.ts +38 -0
- package/types/drawer/src/components/drawer-overlay.d.ts +1 -19
- package/types/drawer/src/drawer.d.ts +1 -1
- package/types/dropdown/src/dropdown-menu.d.ts +1 -1
- package/types/dropdown/src/dropdown.d.ts +1 -1
- package/types/echarts/src/echarts.d.ts +1 -1
- package/types/editable-select/src/components/dropdown/dropdown.d.ts +1 -1
- package/types/editable-select/src/components/option/option.d.ts +1 -1
- package/types/editable-select/src/editable-select.d.ts +1 -130
- package/types/editor-md/src/components/font-color.d.ts +1 -1
- package/types/editor-md/src/components/font-size.d.ts +1 -1
- package/types/editor-md/src/components/md-render.d.ts +1 -94
- package/types/editor-md/src/components/toolbar-item.d.ts +2 -2
- package/types/editor-md/src/components/toolbar.d.ts +1 -1
- package/types/editor-md/src/editor-md.d.ts +1 -199
- package/types/form/src/components/form-control/form-control.d.ts +2 -2
- package/types/form/src/components/form-item/form-item.d.ts +2 -2
- package/types/form/src/components/form-label/form-label.d.ts +1 -1
- package/types/form/src/components/form-operation/form-operation.d.ts +1 -1
- package/types/form/src/form.d.ts +1 -124
- package/types/fullscreen/src/fullscreen.d.ts +1 -31
- package/types/gantt/src/gantt-bar/index.d.ts +2 -2
- package/types/gantt/src/gantt-bar-parent/index.d.ts +5 -5
- package/types/gantt/src/gantt-milestone/index.d.ts +2 -2
- package/types/gantt/src/gantt-scale/index.d.ts +1 -1
- package/types/gantt/src/gantt-service.d.ts +5 -5
- package/types/gantt/src/gantt-tools/index.d.ts +1 -1
- package/types/gantt/src/gantt.d.ts +2 -2
- package/types/git-graph/src/git-graph.d.ts +1 -9
- package/types/grid/src/col.d.ts +2 -2
- package/types/grid/src/row.d.ts +1 -1
- package/types/icon/src/icon-group.d.ts +1 -1
- package/types/icon/src/icon-types.d.ts +0 -1
- package/types/icon/src/icon.d.ts +1 -75
- package/types/icon/src/svg-icon.d.ts +2 -2
- package/types/image-preview/src/image-preview.d.ts +1 -1
- package/types/input/src/input.d.ts +1 -109
- package/types/input-icon/src/input-icon.d.ts +2 -2
- package/types/input-number/src/input-number.d.ts +1 -73
- package/types/layout/src/aside.d.ts +1 -1
- package/types/layout/src/content.d.ts +1 -1
- package/types/layout/src/footer.d.ts +1 -1
- package/types/layout/src/header.d.ts +1 -1
- package/types/layout/src/layout.d.ts +1 -1
- package/types/list/src/list-item.d.ts +1 -1
- package/types/list/src/list.d.ts +1 -1
- package/types/locale/lang/en-us.d.ts +4 -0
- package/types/locale/lang/zh-cn.d.ts +4 -0
- package/types/mention/src/mention.d.ts +1 -1
- package/types/menu/src/components/menu-item/menu-item.d.ts +2 -2
- package/types/menu/src/components/menu-transition/menu-transition.d.ts +1 -1
- package/types/menu/src/components/sub-menu/sub-menu.d.ts +2 -2
- package/types/menu/src/menu.d.ts +1 -1
- package/types/message/src/message-icon-close.d.ts +1 -1
- package/types/message/src/message.d.ts +1 -1
- package/types/modal/src/components/body.d.ts +1 -1
- package/types/modal/src/components/footer.d.ts +1 -1
- package/types/modal/src/components/header.d.ts +1 -1
- package/types/modal/src/components/modal-icons.d.ts +1 -0
- package/types/modal/src/modal.d.ts +1 -1
- package/types/multi-auto-complete/src/multi-auto-complete.d.ts +1 -7
- package/types/nav-sprite/src/nav-sprite.d.ts +1 -1
- package/types/notification/src/notification-icon-close.d.ts +1 -1
- package/types/notification/src/notification-image.d.ts +2 -2
- package/types/notification/src/notification.d.ts +1 -1
- package/types/overlay/src/base-overlay.d.ts +1 -1
- package/types/overlay/src/fixed-overlay/index.d.ts +1 -31
- package/types/overlay/src/flexible-overlay/index.d.ts +1 -1
- package/types/pagination/src/components/config-menu.d.ts +2 -2
- package/types/pagination/src/components/jump-page.d.ts +1 -1
- package/types/pagination/src/components/page-nums.d.ts +1 -1
- package/types/pagination/src/components/page-size.d.ts +1 -1
- package/types/pagination/src/pagination.d.ts +1 -1
- package/types/panel/src/components/panel-body.d.ts +2 -2
- package/types/panel/src/components/panel-footer.d.ts +1 -1
- package/types/panel/src/components/panel-header.d.ts +1 -1
- package/types/panel/src/panel.d.ts +1 -1
- package/types/popover/src/popover-icon.d.ts +2 -2
- package/types/popover/src/popover.d.ts +1 -1
- package/types/progress/src/progress.d.ts +2 -2
- package/types/quadrant-diagram/src/components/axis/index.d.ts +2 -2
- package/types/quadrant-diagram/src/quadrant-diagram.d.ts +2 -2
- package/types/radio/src/radio-button.d.ts +1 -75
- package/types/radio/src/radio-group.d.ts +1 -91
- package/types/radio/src/radio.d.ts +1 -75
- package/types/rate/src/rate.d.ts +1 -1
- package/types/read-tip/src/read-tip-template.d.ts +1 -1
- package/types/read-tip/src/read-tip.d.ts +1 -1
- package/types/result/src/result.d.ts +2 -2
- package/types/search/src/search.d.ts +1 -1
- package/types/select/src/components/option-group.d.ts +2 -2
- package/types/select/src/components/option.d.ts +2 -2
- package/types/select/src/components/select-content.d.ts +1 -1
- package/types/select/src/select.d.ts +1 -202
- package/types/shared/components/popper-trigger/src/popper-trigger.d.ts +1 -1
- package/types/shared/devui-api/devui-api.d.ts +2 -2
- package/types/shared/devui-api-table/devui-api-table.d.ts +2 -2
- package/types/shared/devui-codebox/codebox-collapse-icon.d.ts +1 -1
- package/types/shared/devui-codebox/codebox-copied-icon.d.ts +1 -1
- package/types/shared/devui-codebox/codebox-copy-icon.d.ts +1 -1
- package/types/shared/devui-codebox/devui-codebox.d.ts +2 -2
- package/types/shared/devui-highlight/devui-highlight.d.ts +2 -2
- package/types/skeleton/src/components/skeleton-item.d.ts +2 -2
- package/types/skeleton/src/skeleton.d.ts +2 -2
- package/types/slider/src/slider.d.ts +1 -58
- package/types/splitter/src/components/splitter-bar.d.ts +2 -2
- package/types/splitter/src/components/splitter-pane.d.ts +2 -2
- package/types/splitter/src/splitter.d.ts +1 -1
- package/types/statistic/src/statistic.d.ts +1 -1
- package/types/status/src/status.d.ts +2 -2
- package/types/steps/src/step.d.ts +2 -2
- package/types/steps/src/steps.d.ts +1 -1
- package/types/steps-guide/__tests__/steps-guide-demo.d.ts +1 -1
- package/types/steps-guide/src/steps-guide.d.ts +1 -1
- package/types/sticky/src/sticky.d.ts +1 -1
- package/types/svg-icons/index.d.ts +3 -0
- package/types/switch/src/switch.d.ts +1 -73
- package/types/table/src/components/body/body.d.ts +1 -1
- package/types/table/src/components/body-td/body-td.d.ts +1 -43
- package/types/table/src/components/colgroup/colgroup.d.ts +1 -1
- package/types/table/src/components/column/column.d.ts +1 -187
- package/types/table/src/components/filter/filter.d.ts +1 -22
- package/types/table/src/components/filter/multiple-filter.d.ts +1 -15
- package/types/table/src/components/filter/single-filter.d.ts +1 -15
- package/types/table/src/components/fix-header.d.ts +2 -2
- package/types/table/src/components/header/header.d.ts +1 -1
- package/types/table/src/components/header-th/header-th.d.ts +2 -2
- package/types/table/src/components/normal-header.d.ts +2 -2
- package/types/table/src/components/sort/sort.d.ts +1 -1
- package/types/table/src/table.d.ts +1 -1
- package/types/tabs/src/components/tab/tab.d.ts +2 -2
- package/types/tabs/src/components/tab-nav/tab-nav.d.ts +1 -94
- package/types/tabs/src/tabs.d.ts +1 -94
- package/types/tag/src/tag.d.ts +3 -3
- package/types/tag-input/src/tag-input.d.ts +1 -131
- package/types/textarea/src/textarea.d.ts +1 -85
- package/types/time-picker/src/components/popup-line/index.d.ts +1 -68
- package/types/time-picker/src/components/time-popup/index.d.ts +1 -76
- package/types/time-picker/src/components/time-scroll/index.d.ts +2 -2
- package/types/time-picker/src/time-picker.d.ts +1 -100
- package/types/time-select/src/time-select.d.ts +1 -97
- package/types/timeline/src/components/timeline-item.d.ts +1 -1
- package/types/timeline/src/timeline.d.ts +1 -1
- package/types/tooltip/src/tooltip.d.ts +2 -2
- package/types/transfer/src/components/transfer-body.d.ts +1 -120
- package/types/transfer/src/components/transfer-header.d.ts +1 -72
- package/types/transfer/src/components/transfer-operate.d.ts +2 -2
- package/types/transfer/src/components/transfer-panel.d.ts +1 -147
- package/types/transfer/src/transfer.d.ts +1 -171
- package/types/tree/src/components/tree-node-content.d.ts +2 -2
- package/types/tree/src/components/tree-node-loading.d.ts +1 -1
- package/types/tree/src/components/tree-node-toggle.d.ts +2 -2
- package/types/tree/src/components/tree-node.d.ts +2 -2
- package/types/tree/src/composables/use-tree.d.ts +19 -1
- package/types/tree/src/tree.d.ts +1 -46
- package/types/tree-select/src/tree-select.d.ts +1 -104
- package/types/upload/src/upload.d.ts +1 -1
- package/types/virtual-list/src/components/container.d.ts +2 -2
- package/types/virtual-list/src/components/resize-observer.d.ts +1 -1
- package/types/virtual-list/src/components/scroll-bar.d.ts +2 -2
- package/types/virtual-list/src/virtual-list.d.ts +2 -2
- package/types/vue-devui.d.ts +5 -1
- package/upload/index.es.js +5 -2
- package/upload/index.umd.js +2 -2
- package/vue-devui.es.js +19380 -9309
- package/vue-devui.umd.js +148 -99
- package/types/search/src/components/search-close-icon.d.ts +0 -2
- package/types/search/src/components/search-icon.d.ts +0 -2
- package/types/select/src/components/select-arrow-icon.d.ts +0 -2
- package/types/transfer/src/composables/use-transfer-body.d.ts +0 -80
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var xr=Object.defineProperty;var Pr=(g,D,L)=>D in g?xr(g,D,{enumerable:!0,configurable:!0,writable:!0,value:L}):g[D]=L;var o=(g,D,L)=>(Pr(g,typeof D!="symbol"?D+"":D,L),L);(function(g,D){typeof exports=="object"&&typeof module!="undefined"?D(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],D):(g=typeof globalThis!="undefined"?globalThis:g||self,D(g.index={},g.Vue))})(this,function(g,D){var _r;"use strict";/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var L=function(i,e){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},L(i,e)};function R(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");L(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function yt(i,e,t,r){function n(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function l(h){try{d(r.next(h))}catch(u){a(u)}}function c(h){try{d(r.throw(h))}catch(u){a(u)}}function d(h){h.done?s(h.value):n(h.value).then(l,c)}d((r=r.apply(i,e||[])).next())})}function xe(i,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(d){return function(h){return c([d,h])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(s=d[0]&2?n.return:d[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,d[1])).done)return s;switch(n=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){t.label=d[1];break}if(d[0]===6&&t.label<s[1]){t.label=s[1],s=d;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(d);break}s[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(i,t)}catch(h){d=[6,h],n=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function U(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function H(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),n,s=[],a;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return s}function k(i,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))}function q(i){return this instanceof q?(this.v=i,this):new q(i)}function bt(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(i,e||[]),n,s=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(f){r[f]&&(n[f]=function(y){return new Promise(function(w,S){s.push([f,y,w,S])>1||l(f,y)})})}function l(f,y){try{c(r[f](y))}catch(w){u(s[0][3],w)}}function c(f){f.value instanceof q?Promise.resolve(f.value.v).then(d,h):u(s[0][2],f)}function d(f){l("next",f)}function h(f){l("throw",f)}function u(f,y){f(y),s.shift(),s.length&&l(s[0][0],s[0][1])}}function Et(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof U=="function"?U(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=i[s]&&function(a){return new Promise(function(l,c){a=i[s](a),n(l,c,a.done,a.value)})}}function n(s,a,l,c){Promise.resolve(c).then(function(d){s({value:d,done:l})},a)}}function v(i){return typeof i=="function"}function Pe(i){var e=function(r){Error.call(r),r.stack=new Error().stack},t=i(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ge=Pe(function(i){return function(t){i(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
15
|
+
`+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function se(i,e){if(i){var t=i.indexOf(e);0<=t&&i.splice(t,1)}}var C=function(){function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var e,t,r,n,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=U(a),c=l.next();!c.done;c=l.next()){var d=c.value;d.remove(this)}}catch(S){e={error:S}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}else a.remove(this);var h=this.initialTeardown;if(v(h))try{h()}catch(S){s=S instanceof ge?S.errors:[S]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=U(u),y=f.next();!y.done;y=f.next()){var w=y.value;try{Le(w)}catch(S){s=s!=null?s:[],S instanceof ge?s=k(k([],H(s)),H(S.errors)):s.push(S)}}}catch(S){r={error:S}}finally{try{y&&!y.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}}if(s)throw new ge(s)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Le(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&se(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&se(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=function(){var e=new i;return e.closed=!0,e}(),i}(),_e=C.EMPTY;function Ne(i){return i instanceof C||i&&"closed"in i&&v(i.remove)&&v(i.add)&&v(i.unsubscribe)}function Le(i){v(i)?i():i.unsubscribe()}var re={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},oe={setTimeout:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n=oe.delegate;return(n==null?void 0:n.setTimeout)?n.setTimeout.apply(n,k([i,e],H(t))):setTimeout.apply(void 0,k([i,e],H(t)))},clearTimeout:function(i){var e=oe.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(i)},delegate:void 0};function Re(i){oe.setTimeout(function(){var e=re.onUnhandledError;if(e)e(i);else throw i})}function Fe(){}var wt=function(){return fe("C",void 0,void 0)}();function It(i){return fe("E",void 0,i)}function Ot(i){return fe("N",i,void 0)}function fe(i,e,t){return{kind:i,value:e,error:t}}var ae=null;function le(i){if(re.useDeprecatedSynchronousErrorHandling){var e=!ae;if(e&&(ae={errorThrown:!1,error:null}),i(),e){var t=ae,r=t.errorThrown,n=t.error;if(ae=null,r)throw n}}else i()}var pe=function(i){R(e,i);function e(t){var r=i.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Ne(t)&&t.add(r)):r.destination=xt,r}return e.create=function(t,r,n){return new me(t,r,n)},e.prototype.next=function(t){this.isStopped?Se(Ot(t),this):this._next(t)},e.prototype.error=function(t){this.isStopped?Se(It(t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?Se(wt,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(C),Ct=Function.prototype.bind;function ve(i,e){return Ct.call(i,e)}var At=function(){function i(e){this.partialObserver=e}return i.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){ce(r)}},i.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){ce(r)}else ce(e)},i.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){ce(t)}},i}(),me=function(i){R(e,i);function e(t,r,n){var s=i.call(this)||this,a;if(v(t)||!t)a={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:n!=null?n:void 0};else{var l;s&&re.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return s.unsubscribe()},a={next:t.next&&ve(t.next,l),error:t.error&&ve(t.error,l),complete:t.complete&&ve(t.complete,l)}):a=t}return s.destination=new At(a),s}return e}(pe);function ce(i){Re(i)}function Tt(i){throw i}function Se(i,e){var t=re.onStoppedNotification;t&&oe.setTimeout(function(){return t(i,e)})}var xt={closed:!0,next:Fe,error:Tt,complete:Fe},De=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function de(i){return i}function Pt(i){return i.length===0?de:i.length===1?i[0]:function(t){return i.reduce(function(r,n){return n(r)},t)}}var T=function(){function i(e){e&&(this._subscribe=e)}return i.prototype.lift=function(e){var t=new i;return t.source=this,t.operator=e,t},i.prototype.subscribe=function(e,t,r){var n=this,s=Nt(e)?e:new me(e,t,r);return le(function(){var a=n,l=a.operator,c=a.source;s.add(l?l.call(s,c):c?n._subscribe(s):n._trySubscribe(s))}),s},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(e,t){var r=this;return t=Me(t),new t(function(n,s){var a=new me({next:function(l){try{e(l)}catch(c){s(c),a.unsubscribe()}},error:s,complete:n});r.subscribe(a)})},i.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},i.prototype[De]=function(){return this},i.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Pt(e)(this)},i.prototype.toPromise=function(e){var t=this;return e=Me(e),new e(function(r,n){var s;t.subscribe(function(a){return s=a},function(a){return n(a)},function(){return r(s)})})},i.create=function(e){return new i(e)},i}();function Me(i){var e;return(e=i!=null?i:re.Promise)!==null&&e!==void 0?e:Promise}function _t(i){return i&&v(i.next)&&v(i.error)&&v(i.complete)}function Nt(i){return i&&i instanceof pe||_t(i)&&Ne(i)}function Lt(i){return v(i==null?void 0:i.lift)}function F(i){return function(e){if(Lt(e))return e.lift(function(t){try{return i(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(i,e,t,r,n){return new Rt(i,e,t,r,n)}var Rt=function(i){R(e,i);function e(t,r,n,s,a,l){var c=i.call(this,t)||this;return c.onFinalize=a,c.shouldUnsubscribe=l,c._next=r?function(d){try{r(d)}catch(h){t.error(h)}}:i.prototype._next,c._error=s?function(d){try{s(d)}catch(h){t.error(h)}finally{this.unsubscribe()}}:i.prototype._error,c._complete=n?function(){try{n()}catch(d){t.error(d)}finally{this.unsubscribe()}}:i.prototype._complete,c}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;i.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(pe),Ft=Pe(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),P=function(i){R(e,i);function e(){var t=i.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new Be(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Ft},e.prototype.next=function(t){var r=this;le(function(){var n,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=U(r.currentObservers),l=a.next();!l.done;l=a.next()){var c=l.value;c.next(t)}}catch(d){n={error:d}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var r=this;le(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var n=r.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;le(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,n=this,s=n.hasError,a=n.isStopped,l=n.observers;return s||a?_e:(this.currentObservers=null,l.push(t),new C(function(){r.currentObservers=null,se(l,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,n=r.hasError,s=r.thrownError,a=r.isStopped;n?t.error(s):a&&t.complete()},e.prototype.asObservable=function(){var t=new T;return t.source=this,t},e.create=function(t,r){return new Be(t,r)},e}(T),Be=function(i){R(e,i);function e(t,r){var n=i.call(this)||this;return n.destination=t,n.source=r,n}return e.prototype.next=function(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)},e.prototype.error=function(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:_e},e}(P),Mt=function(i){R(e,i);function e(t){var r=i.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=i.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,n=t.thrownError,s=t._value;if(r)throw n;return this._throwIfClosed(),s},e.prototype.next=function(t){i.prototype.next.call(this,this._value=t)},e}(P),Ke={now:function(){return(Ke.delegate||Date).now()},delegate:void 0},Bt=function(i){R(e,i);function e(t,r){return i.call(this)||this}return e.prototype.schedule=function(t,r){return this},e}(C),he={setInterval:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n=he.delegate;return(n==null?void 0:n.setInterval)?n.setInterval.apply(n,k([i,e],H(t))):setInterval.apply(void 0,k([i,e],H(t)))},clearInterval:function(i){var e=he.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(i)},delegate:void 0},Kt=function(i){R(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return e.prototype.schedule=function(t,r){var n;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var s=this.id,a=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(a,s,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(a,this.id,r),this},e.prototype.requestAsyncId=function(t,r,n){return n===void 0&&(n=0),he.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,r,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&he.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var n=!1,s;try{this.work(t)}catch(a){n=!0,s=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,n=t.scheduler,s=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,se(s,this),r!=null&&(this.id=this.recycleAsyncId(n,r,null)),this.delay=null,i.prototype.unsubscribe.call(this)}},e}(Bt),He=function(){function i(e,t){t===void 0&&(t=i.now),this.schedulerActionCtor=e,this.now=t}return i.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},i.now=Ke.now,i}(),Ht=function(i){R(e,i);function e(t,r){r===void 0&&(r=He.now);var n=i.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,n){for(;t=r.shift();)t.unsubscribe();throw n}},e}(He),ye=new Ht(Kt),Vt=ye,Gt=new T(function(i){return i.complete()});function Ve(i){return i&&v(i.schedule)}function Ge(i){return i[i.length-1]}function Yt(i){return Ve(Ge(i))?i.pop():void 0}function kt(i,e){return typeof Ge(i)=="number"?i.pop():e}var be=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function Ye(i){return v(i==null?void 0:i.then)}function ke(i){return v(i[De])}function je(i){return Symbol.asyncIterator&&v(i==null?void 0:i[Symbol.asyncIterator])}function We(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function jt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ue=jt();function qe(i){return v(i==null?void 0:i[Ue])}function Xe(i){return bt(this,arguments,function(){var t,r,n,s;return xe(this,function(a){switch(a.label){case 0:t=i.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,q(t.read())];case 3:return r=a.sent(),n=r.value,s=r.done,s?[4,q(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,q(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function ze(i){return v(i==null?void 0:i.getReader)}function V(i){if(i instanceof T)return i;if(i!=null){if(ke(i))return Wt(i);if(be(i))return Ut(i);if(Ye(i))return qt(i);if(je(i))return Ze(i);if(qe(i))return Xt(i);if(ze(i))return zt(i)}throw We(i)}function Wt(i){return new T(function(e){var t=i[De]();if(v(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ut(i){return new T(function(e){for(var t=0;t<i.length&&!e.closed;t++)e.next(i[t]);e.complete()})}function qt(i){return new T(function(e){i.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Re)})}function Xt(i){return new T(function(e){var t,r;try{for(var n=U(i),s=n.next();!s.done;s=n.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(l){t={error:l}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}function Ze(i){return new T(function(e){Zt(i,e).catch(function(t){return e.error(t)})})}function zt(i){return Ze(Xe(i))}function Zt(i,e){var t,r,n,s;return yt(this,void 0,void 0,function(){var a,l;return xe(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),t=Et(i),c.label=1;case 1:return[4,t.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(a=r.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=c.sent(),n={error:l},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(s=t.return)?[4,s.call(t)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function G(i,e,t,r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var s=e.schedule(function(){t(),n?i.add(this.schedule(null,r)):this.unsubscribe()},r);if(i.add(s),!n)return s}function Qe(i,e){return e===void 0&&(e=0),F(function(t,r){t.subscribe(_(r,function(n){return G(r,i,function(){return r.next(n)},e)},function(){return G(r,i,function(){return r.complete()},e)},function(n){return G(r,i,function(){return r.error(n)},e)}))})}function Je(i,e){return e===void 0&&(e=0),F(function(t,r){r.add(i.schedule(function(){return t.subscribe(r)},e))})}function Qt(i,e){return V(i).pipe(Je(e),Qe(e))}function Jt(i,e){return V(i).pipe(Je(e),Qe(e))}function $t(i,e){return new T(function(t){var r=0;return e.schedule(function(){r===i.length?t.complete():(t.next(i[r++]),t.closed||this.schedule())})})}function er(i,e){return new T(function(t){var r;return G(t,e,function(){r=i[Ue](),G(t,e,function(){var n,s,a;try{n=r.next(),s=n.value,a=n.done}catch(l){t.error(l);return}a?t.complete():t.next(s)},0,!0)}),function(){return v(r==null?void 0:r.return)&&r.return()}})}function $e(i,e){if(!i)throw new Error("Iterable cannot be null");return new T(function(t){G(t,e,function(){var r=i[Symbol.asyncIterator]();G(t,e,function(){r.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function tr(i,e){return $e(Xe(i),e)}function rr(i,e){if(i!=null){if(ke(i))return Qt(i,e);if(be(i))return $t(i,e);if(Ye(i))return Jt(i,e);if(je(i))return $e(i,e);if(qe(i))return er(i,e);if(ze(i))return tr(i,e)}throw We(i)}function ir(i,e){return e?rr(i,e):V(i)}function nr(i){return i instanceof Date&&!isNaN(i)}function et(i,e){return F(function(t,r){var n=0;t.subscribe(_(r,function(s){r.next(i.call(e,s,n++))}))})}var sr=Array.isArray;function or(i,e){return sr(e)?i.apply(void 0,k([],H(e))):i(e)}function ar(i){return et(function(e){return or(i,e)})}function lr(i,e,t,r,n,s,a,l){var c=[],d=0,h=0,u=!1,f=function(){u&&!c.length&&!d&&e.complete()},y=function(S){return d<r?w(S):c.push(S)},w=function(S){s&&e.next(S),d++;var x=!1;V(t(S,h++)).subscribe(_(e,function(O){n==null||n(O),s?y(O):e.next(O)},function(){x=!0},void 0,function(){if(x)try{d--;for(var O=function(){var te=c.shift();a?G(e,a,function(){return w(te)}):w(te)};c.length&&d<r;)O();f()}catch(te){e.error(te)}}))};return i.subscribe(_(e,y,function(){u=!0,f()})),function(){l==null||l()}}function Ee(i,e,t){return t===void 0&&(t=1/0),v(e)?Ee(function(r,n){return et(function(s,a){return e(r,s,n,a)})(V(i(r,n)))},t):(typeof e=="number"&&(t=e),F(function(r,n){return lr(r,n,i,t)}))}function cr(i){return i===void 0&&(i=1/0),Ee(de,i)}var dr=["addListener","removeListener"],hr=["addEventListener","removeEventListener"],ur=["on","off"];function I(i,e,t,r){if(v(t)&&(r=t,t=void 0),r)return I(i,e,t).pipe(ar(r));var n=H(pr(i)?hr.map(function(l){return function(c){return i[l](e,c,t)}}):gr(i)?dr.map(tt(i,e)):fr(i)?ur.map(tt(i,e)):[],2),s=n[0],a=n[1];if(!s&&be(i))return Ee(function(l){return I(l,e,t)})(V(i));if(!s)throw new TypeError("Invalid event target");return new T(function(l){var c=function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return l.next(1<d.length?d:d[0])};return s(c),function(){return a(c)}})}function tt(i,e){return function(t){return function(r){return i[t](e,r)}}}function gr(i){return v(i.addListener)&&v(i.removeListener)}function fr(i){return v(i.on)&&v(i.off)}function pr(i){return v(i.addEventListener)&&v(i.removeEventListener)}function vr(i,e,t){i===void 0&&(i=0),t===void 0&&(t=Vt);var r=-1;return e!=null&&(Ve(e)?t=e:r=e),new T(function(n){var s=nr(i)?+i-t.now():i;s<0&&(s=0);var a=0;return t.schedule(function(){n.closed||(n.next(a++),0<=r?this.schedule(void 0,r):n.complete())},s)})}function we(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var t=Yt(i),r=kt(i,1/0),n=i;return n.length?n.length===1?V(n[0]):cr(r)(ir(n,t)):Gt}function mr(i,e){return F(function(t,r){var n=0;t.subscribe(_(r,function(s){return i.call(e,s,n++)&&r.next(s)}))})}function Sr(i,e){return e===void 0&&(e=ye),F(function(t,r){var n=null,s=null,a=null,l=function(){if(n){n.unsubscribe(),n=null;var d=s;s=null,r.next(d)}};function c(){var d=a+i,h=e.now();if(h<d){n=this.schedule(void 0,d-h),r.add(n);return}l()}t.subscribe(_(r,function(d){s=d,a=e.now(),n||(n=e.schedule(c,i),r.add(n))},function(){l(),r.complete()},void 0,function(){s=n=null}))})}function Dr(i,e){return e===void 0&&(e=de),i=i!=null?i:yr,F(function(t,r){var n,s=!0;t.subscribe(_(r,function(a){var l=e(a);(s||!i(n,l))&&(s=!1,n=l,r.next(a))}))})}function yr(i,e){return i===e}function rt(i,e,t){var r=v(i)||e||t?{next:i,error:e,complete:t}:i;return r?F(function(n,s){var a;(a=r.subscribe)===null||a===void 0||a.call(r);var l=!0;n.subscribe(_(s,function(c){var d;(d=r.next)===null||d===void 0||d.call(r,c),s.next(c)},function(){var c;l=!1,(c=r.complete)===null||c===void 0||c.call(r),s.complete()},function(c){var d;l=!1,(d=r.error)===null||d===void 0||d.call(r,c),s.error(c)},function(){var c,d;l&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(d=r.finalize)===null||d===void 0||d.call(r)}))}):de}function br(i,e){return F(function(t,r){var n=e!=null?e:{},s=n.leading,a=s===void 0?!0:s,l=n.trailing,c=l===void 0?!1:l,d=!1,h=null,u=null,f=!1,y=function(){u==null||u.unsubscribe(),u=null,c&&(x(),f&&r.complete())},w=function(){u=null,f&&r.complete()},S=function(O){return u=V(i(O)).subscribe(_(r,y,w))},x=function(){if(d){d=!1;var O=h;h=null,r.next(O),!f&&S(O)}};t.subscribe(_(r,function(O){d=!0,h=O,!(u&&!u.closed)&&(a?x():S(O))},function(){f=!0,!(c&&d&&u&&!u.closed)&&r.complete()}))})}function ue(i,e,t){e===void 0&&(e=ye);var r=vr(i,e);return br(function(){return r},t)}class p{static matches(e,t){const r=Element.prototype;return(r.matches||r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector||function(s){const a=(this.document||this.ownerDocument).querySelectorAll(s);let l=a.length;for(;--l>=0&&a.item(l)!==this;);return l>-1}).call(e,t)}static addClass(e,t){if(t===void 0)return;const r=this.getElementWithValidClassList(e);r&&r.classList.add(t)}static removeClass(e,t){if(t===void 0)return;const r=this.getElementWithValidClassList(e);r&&r.classList.remove(t)}static getElementWithValidClassList(e){const t=e.nativeElement?e.nativeElement:e;return t.classList!==void 0&&t.classList!==null?t:null}static slice(e,t,r){const n=[];let s=e.length;if(s===0)return n;const a=t<0?Math.max(0,t+s):t||0;for(r!==void 0&&(s=r<0?r+s:r);s-- >a;)n[s-a]=e[s];return n}static addElStyles(e,t){if(t instanceof Object)for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(Array.isArray(t[r])?t[r].forEach(n=>{e.style[r]=n}):e.style[r]=t[r])}static dispatchEventToUnderElement(e,t,r){const n=t||e.target;n.style.display="none";const{x:s,y:a}={x:e.clientX,y:e.clientY},l=document.elementFromPoint(s,a);if(n.style.display="",!l)return e;const c=document.createEvent("DragEvent");return c.initMouseEvent(r||e.type,!0,!0,window,0,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),c.dataTransfer!==null&&(c.dataTransfer.setData("text",""),c.dataTransfer.effectAllowed=e.dataTransfer.effectAllowed),setTimeout(()=>{l.dispatchEvent(c)},0),e}}function b(i,e){return e[i]}function X(i,e,t){t[i]=e}const m=class{constructor(){o(this,"dataTransfer");o(this,"lastClick",0);o(this,"lastTouch");o(this,"lastTarget");o(this,"dragSource");o(this,"ptDown");o(this,"isDragEnabled");o(this,"isDropZone");o(this,"pressHoldInterval");o(this,"img");o(this,"imgCustom");o(this,"imgOffset");o(this,"dragoverTimer");o(this,"touchTarget");o(this,"touchmoveListener");o(this,"touchendListener");o(this,"listenerOpt");o(this,"touchstart",e=>{if(this.shouldHandle(e)){if(Date.now()-this.lastClick<m.DBLCLICK&&this.dispatchEvent(e,"dblclick",e.target)){e.preventDefault(),this.reset();return}this.reset();const t=this.closestDraggable(e.target);t&&(this.dragSource=t,this.ptDown=this.getPoint(e),this.lastTouch=e,m.IS_PRESS_HOLD_MODE?this.pressHoldInterval=setTimeout(()=>{this.bindTouchmoveTouchend(e),this.isDragEnabled=!0,this.touchmove(e)},m.PRESS_HOLD_AWAIT):(e.preventDefault(),this.bindTouchmoveTouchend(e)))}});o(this,"touchmoveOnDocument",e=>{if(this.shouldCancelPressHoldMove(e)){this.reset();return}});o(this,"touchmove",e=>{if(this.shouldCancelPressHoldMove(e)){this.reset();return}if(this.shouldHandleMove(e)||this.shouldHandlePressHoldMove(e)){const t=this.getTarget(e);this.dragSource&&!this.img&&this.shouldStartDragging(e)&&(this.dispatchEvent(e,"dragstart",this.dragSource),this.createImage(e)),this.img&&(this.clearDragoverInterval(),this.lastTouch=e,e.preventDefault(),t!==this.lastTarget&&(this.dispatchEvent(e,"dragenter",t),this.dispatchEvent(this.lastTouch,"dragleave",this.lastTarget),this.lastTarget=t),this.moveImage(e),this.isDropZone=this.dispatchEvent(e,"dragover",t),this.setDragoverInterval(e))}});o(this,"touchendOnDocument",e=>{this.shouldHandle(e)&&(this.img||(this.dragSource=null,this.lastClick=Date.now()),this.destroyImage(),this.dragSource&&this.reset())});o(this,"touchend",e=>{this.shouldHandle(e)&&(this.img||(this.dragSource=null,this.lastClick=Date.now()),this.destroyImage(),this.dragSource&&(e.type.indexOf("cancel")<0&&this.isDropZone&&this.dispatchEvent(this.lastTouch,"drop",this.lastTarget),this.dispatchEvent(this.lastTouch,"dragend",this.dragSource),this.reset()))});if(m.instance)throw new Error("DragDropTouch instance already created.");let e=!1;if(typeof document!="undefined"&&(document.addEventListener("test",()=>{},{get passive(){return e=!0,!0}}),m.isTouchDevice())){const t=document,r=this.touchstart,n=this.touchmoveOnDocument,s=this.touchendOnDocument,a=e?{passive:!1,capture:!1}:!1,l=e?{passive:!0}:!1;t.addEventListener("touchstart",r,a),t.addEventListener("touchmove",n,l),t.addEventListener("touchend",s),t.addEventListener("touchcancel",s),this.touchmoveListener=this.touchmove,this.touchendListener=this.touchend,this.listenerOpt=a}}static getInstance(){return m.instance||(m.instance=new m),m.instance}static isTouchDevice(){var n;if(typeof window=="undefined"||typeof document=="undefined")return!1;const e=document,t=window;let r;if("ontouchstart"in e||"ontouchstart"in t||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch)r=!0;else{const s=document.createElement("fakebody");s.innerHTML+=`
|
|
17
|
+
<style>
|
|
18
|
+
@media (touch-enabled),(-webkit-touch-enabled),(-moz-touch-enabled),(-o-touch-enabled){
|
|
19
|
+
#touch_test {
|
|
20
|
+
top: 42px;
|
|
21
|
+
position: absolute;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
</style>`,document.documentElement.appendChild(s);const a=document.createElement("div");a.id="touch_test",s.appendChild(a),r=a.offsetTop===42,(n=s.parentElement)==null||n.removeChild(s)}return r}bindTouchmoveTouchend(e){this.touchTarget=e.target,e.target.addEventListener("touchmove",this.touchmoveListener,this.listenerOpt),e.target.addEventListener("touchend",this.touchendListener),e.target.addEventListener("touchcancel",this.touchendListener)}removeTouchmoveTouchend(){this.touchTarget&&(this.touchTarget.removeEventListener("touchmove",this.touchmoveListener),this.touchTarget.removeEventListener("touchend",this.touchendListener),this.touchTarget.removeEventListener("touchcancel",this.touchendListener),this.touchTarget=void 0)}shouldHandle(e){return e&&!e.defaultPrevented&&e.touches&&e.touches.length<2}shouldHandleMove(e){return!m.IS_PRESS_HOLD_MODE&&this.shouldHandle(e)}shouldHandlePressHoldMove(e){return m.IS_PRESS_HOLD_MODE&&this.isDragEnabled&&e&&e.touches&&e.touches.length}shouldCancelPressHoldMove(e){return m.IS_PRESS_HOLD_MODE&&!this.isDragEnabled&&this.getDelta(e)>m.PRESS_HOLD_MARGIN}shouldStartDragging(e){const t=this.getDragHandle();if(t&&!this.matchSelector(e.target,t))return!1;const r=this.getDelta(e);return r>m.THRESHOLD||m.IS_PRESS_HOLD_MODE&&r>=m.PRESS_HOLD_THRESHOLD}getDragHandle(){return this.dragSource&&this.dragSource.getAttribute(m.DRAG_HANDLE_ATTR)||""}matchSelector(e,t){if(t){const r=Element.prototype;return(r.matches||r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector||function(s){const a=(this.document||this.ownerDocument).querySelectorAll(s);let l=a.length;for(;--l>=0&&a.item(l)!==this;);return l>-1}).call(e,t)}return!0}reset(){this.removeTouchmoveTouchend(),this.destroyImage(),this.dragSource=null,this.lastTouch=null,this.lastTarget=null,this.ptDown=null,this.isDragEnabled=!1,this.isDropZone=!1,this.dataTransfer=new m.DataTransfer,clearInterval(this.pressHoldInterval),this.clearDragoverInterval()}getPoint(e,t){return e&&e.touches&&(e=e.touches[0]),{x:t?e.pageX:e.clientX,y:t?e.pageY:e.clientY}}getDelta(e){if(m.IS_PRESS_HOLD_MODE&&!this.ptDown)return 0;const t=this.getPoint(e);return Math.abs(t.x-this.ptDown.x)+Math.abs(t.y-this.ptDown.y)}getTarget(e){const t=this.getPoint(e);let r=document.elementFromPoint(t.x,t.y);for(;r&&getComputedStyle(r).pointerEvents==="none";)r=r.parentElement;return r}createImage(e){this.img&&this.destroyImage();const t=this.imgCustom||this.dragSource;if(this.img=t.cloneNode(!0),this.copyStyle(t,this.img),this.img.style.top=this.img.style.left="-9999px",!this.imgCustom){const r=t.getBoundingClientRect(),n=this.getPoint(e);this.imgOffset={x:n.x-r.left,y:n.y-r.top},this.img.style.opacity=m.OPACITY.toString()}this.moveImage(e),document.body.appendChild(this.img)}destroyImage(){this.img&&this.img.parentElement&&this.img.parentElement.removeChild(this.img),this.img=null,this.imgCustom=null}moveImage(e){requestAnimationFrame(()=>{if(this.img){const t=this.getPoint(e,!0),r=this.img.style;r.position="absolute",r.pointerEvents="none",r.zIndex="999999",r.left=Math.round(t.x-this.imgOffset.x)+"px",r.top=Math.round(t.y-this.imgOffset.y)+"px"}})}copyProps(e,t,r){for(let n=0;n<r.length;n++){const s=r[n];e[s]=t[s]}}copyStyle(e,t){if(m.rmvAttrs.forEach(function(s){t.removeAttribute(s)}),e instanceof HTMLCanvasElement){const s=e,a=t;a.width=s.width,a.height=s.height,a.getContext("2d").drawImage(s,0,0)}const r=e.querySelectorAll("canvas");if(r.length>0){const s=t.querySelectorAll("canvas");for(let a=0;a<s.length;a++){const l=r[a];s[a].getContext("2d").drawImage(l,0,0)}}const n=getComputedStyle(e);for(let s=0;s<n.length;s++){const a=n[s];a.indexOf("transition")<0&&(t.style[a]=n[a])}t.style.pointerEvents="none";for(let s=0;s<e.children.length;s++)this.copyStyle(e.children[s],t.children[s])}dispatchEvent(e,t,r){if(e&&r){const n=document.createEvent("Event"),s=e.touches?e.touches[0]:e;n.initEvent(t,!0,!0);const a={button:0,which:0,buttons:1,dataTransfer:this.dataTransfer};return this.copyProps(n,e,m.kbdProps),this.copyProps(n,s,m.ptProps),this.copyProps(n,{fromTouch:!0},["fromTouch"]),this.copyProps(n,a,Object.keys(a)),r.dispatchEvent(n),n.defaultPrevented}return!1}closestDraggable(e){for(;e;e=e.parentElement)if(e.hasAttribute("draggable")&&e.draggable)return e;return null}setDragoverInterval(e){this.dragoverTimer=setInterval(()=>{const t=this.getTarget(e);t!==this.lastTarget&&(this.dispatchEvent(e,"dragenter",t),this.dispatchEvent(e,"dragleave",this.lastTarget),this.lastTarget=t),this.isDropZone=this.dispatchEvent(e,"dragover",t)},m.DRAG_OVER_TIME)}clearDragoverInterval(){this.dragoverTimer&&(clearInterval(this.dragoverTimer),this.dragoverTimer=void 0)}};let E=m;o(E,"THRESHOLD",5),o(E,"OPACITY",.5),o(E,"DBLCLICK",500),o(E,"DRAG_OVER_TIME",300),o(E,"CTX_MENU",900),o(E,"IS_PRESS_HOLD_MODE",!0),o(E,"PRESS_HOLD_AWAIT",400),o(E,"PRESS_HOLD_MARGIN",25),o(E,"PRESS_HOLD_THRESHOLD",0),o(E,"DRAG_HANDLE_ATTR","data-drag-handle-selector"),o(E,"rmvAttrs","id,class,style,draggable".split(",")),o(E,"kbdProps","altKey,ctrlKey,metaKey,shiftKey".split(",")),o(E,"ptProps","pageX,pageY,clientX,clientY,screenX,screenY".split(",")),o(E,"instance",null),(i=>{class e{constructor(){o(this,"files");o(this,"items");o(this,"_data");o(this,"_dropEffect");o(this,"_effectAllowed");o(this,"_types");this._dropEffect="move",this._effectAllowed="all",this._data={}}get dropEffect(){return this._dropEffect}set dropEffect(r){this._dropEffect=r}get effectAllowed(){return this._effectAllowed}set effectAllowed(r){this._effectAllowed=r}get types(){return Object.keys(this._data)}clearData(r){r!==null?delete this._data[r]:this._data=null}getData(r){return this._data[r]||""}setData(r,n){this._data[r]=n}setDragImage(r,n,s){const a=i.getInstance();a.imgCustom=r,a.imgOffset={x:n,y:s}}}i.DataTransfer=e})(E||(E={}));class A{constructor(){o(this,"dragData");o(this,"draggedEl");o(this,"draggedElIdentity");o(this,"batchDragData");o(this,"batchDragGroup");o(this,"batchDragStyle");o(this,"batchDragging");o(this,"scope");o(this,"dropTargets",[]);o(this,"dropEvent",new P);o(this,"dragEndEvent",new P);o(this,"dragStartEvent",new P);o(this,"dropOnItem");o(this,"dragFollow");o(this,"dragFollowOptions");o(this,"dropOnOrigin");o(this,"draggedElFollowingMouse");o(this,"dragOffset");o(this,"subscription",new C);o(this,"_dragEmptyImage");o(this,"dragCloneNode");o(this,"dragOriginPlaceholder");o(this,"dragItemContainer");o(this,"dragItemParentName","");o(this,"dragItemChildrenName","");o(this,"intersectionObserver",null);o(this,"sub");o(this,"dragOriginPlaceholderNextSibling");o(this,"touchInstance");o(this,"dragElShowHideEvent",new P);o(this,"dragSyncGroupDirectives");o(this,"dragPreviewDirective");o(this,"followMouse4CloneNode",e=>{const{offsetLeft:t,offsetTop:r}=this.dragOffset,{clientX:n,clientY:s}=e;requestAnimationFrame(()=>{!this.dragCloneNode||(this.dragCloneNode.style.left=n-t+"px",this.dragCloneNode.style.top=s-r+"px")})});this.touchInstance=E.getInstance()}get dragEmptyImage(){return this._dragEmptyImage||(this._dragEmptyImage=new Image,this._dragEmptyImage.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg=="),this._dragEmptyImage}get document(){return window.document}newSubscription(){return this.subscription.unsubscribe(),this.subscription=new C}enableDraggedCloneNodeFollowMouse(){if(!this.dragCloneNode){if(this.dragItemContainer=this.draggedEl.parentElement,this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate?(this.dragPreviewDirective.createPreview(),this.dragCloneNode=this.dragPreviewDirective.getPreviewElement(),this.dragItemContainer=this.document.body):this.dragCloneNode=this.draggedEl.cloneNode(!0),this.dragCloneNode.style.margin="0",this.dragFollowOptions&&this.dragFollowOptions.appendToBody&&(this.dragItemContainer=this.document.body,this.copyStyle(this.draggedEl,this.dragCloneNode)),this.dragItemChildrenName!==""){const r=this.dragItemParentName===""?this.dragCloneNode:this.document.querySelector(this.dragItemParentName),n=r.querySelectorAll(this.dragItemChildrenName);this.interceptChildNode(r,n)}const e=this.draggedEl.querySelectorAll("canvas"),t=this.dragCloneNode.querySelectorAll("canvas");if([].forEach.call(t,(r,n)=>{r.getContext("2d").drawImage(e[n],0,0)}),this.document.addEventListener("dragover",this.followMouse4CloneNode,{capture:!0,passive:!0}),this.dragCloneNode.style.width=this.dragOffset.width+"px",this.dragCloneNode.style.height=this.dragOffset.height+"px",!(this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate&&this.dragPreviewDirective.dragPreviewOptions&&this.dragPreviewDirective.dragPreviewOptions.skipBatchPreview)&&this.batchDragging&&this.batchDragData&&this.batchDragData.length>1){const r=this.document.createElement("div");if(r.appendChild(this.dragCloneNode),r.classList.add("batch-dragged-node"),this.batchDragStyle&&this.batchDragStyle.length&&this.batchDragStyle.indexOf("badge")>-1){const n=this.document.createElement("div");n.innerText=String(this.batchDragData.length),n.classList.add("batch-dragged-node-count"),r.style.position="relative";const s={position:"absolute",right:"5px",top:"-12px",height:"24px",width:"24px",borderRadius:"12px",fontSize:"14px",lineHeight:"24px",textAlign:"center",color:"#fff",background:["#5170ff","var(--brand-1, #5170ff)"]};p.addElStyles(n,s),r.appendChild(n)}if(this.batchDragStyle&&this.batchDragStyle.length&&this.batchDragStyle.indexOf("stack")>-1){let n=2;this.batchDragData.length===2&&(n=1);for(let s=0;s<n;s++){const a=this.dragCloneNode.cloneNode(!1),l={position:"absolute",left:-5*(s+1)+"px",top:-5*(s+1)+"px",zIndex:String(-(s+1)),width:this.dragOffset.width+"px",height:this.dragOffset.height+"px",background:"#fff",border:["1px solid #5170ff","1px solid var(--brand-1, #5170ff)"]};p.addElStyles(a,l),r.appendChild(a)}}this.dragCloneNode=r}this.dragCloneNode.classList.add("drag-clone-node"),this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate||(this.dragCloneNode.style.width=this.dragOffset.width+"px",this.dragCloneNode.style.height=this.dragOffset.height+"px"),this.dragCloneNode.style.position="fixed",this.dragCloneNode.style.zIndex="1090",this.dragCloneNode.style.pointerEvents="none",this.dragCloneNode.style.top=this.dragOffset.top+"px",this.dragCloneNode.style.left=this.dragOffset.left+"px",this.dragCloneNode.style.willChange="left, top",this.dragItemContainer.appendChild(this.dragCloneNode),setTimeout(()=>{this.draggedEl&&(this.draggedEl.style.display="none",this.dragElShowHideEvent.next(!1),this.dragOriginPlaceholder&&(this.dragOriginPlaceholder.style.display="block"))})}}disableDraggedCloneNodeFollowMouse(){this.dragCloneNode&&(this.document.removeEventListener("dragover",this.followMouse4CloneNode,{capture:!0}),this.dragItemContainer.removeChild(this.dragCloneNode),this.draggedEl.style.display="",this.dragElShowHideEvent.next(!0)),this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate&&this.dragPreviewDirective.destroyPreview(),this.dragCloneNode=void 0,this.dragItemContainer=void 0,this.intersectionObserver&&this.intersectionObserver.disconnect()}interceptChildNode(e,t){const r={root:e};this.intersectionObserver=new IntersectionObserver(this.setChildNodeHide,r),[].forEach.call(t,n=>{this.intersectionObserver.observe(n)})}setChildNodeHide(e){e.forEach(t=>{const{isIntersecting:r,target:n}=t;r?n.style.display="block":n.style.display="none"})}getBatchDragData(e,t="draggedElFirst"){const r=this.batchDragData.map(n=>n.dragData);if(typeof t=="function")r.sort(t);else if(t==="draggedElFirst"){let n=this.dragData;e&&(n=this.batchDragData.filter(a=>a.identity===e).pop().dragData),r.splice(r.indexOf(n),1),r.splice(0,0,n)}return r}cleanBatchDragData(){const e=this.batchDragData;return this.batchDragData&&(this.batchDragData.filter(t=>t.draggable).map(t=>t.draggable).forEach(t=>{t.batchDraggable.dragData=void 0}),this.batchDragData=void 0,this.batchDragGroup=void 0),e}copyStyle(e,t){["id","class","style","draggable"].forEach(function(n){t.removeAttribute(n)});const r=getComputedStyle(e);for(let n=0;n<r.length;n++){const s=r[n];s.indexOf("transition")<0&&(t.style[s]=r[s])}t.style.pointerEvents="none";for(let n=0;n<e.children.length;n++)this.copyStyle(e.children[n],t.children[n])}}o(A,"TOKEN",Symbol("DRAG_DROP_SERVICE_TOKEN"));function Er(){const i=new A;return D.provide(A.TOKEN,new A),i}class M extends P{constructor(e=!1){super();o(this,"__isAsync");this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){let n,s=c=>null,a=()=>null;e&&typeof e=="object"?(n=this.__isAsync?c=>{setTimeout(()=>e.next(c))}:c=>{e.next(c)},e.error&&(s=this.__isAsync?c=>{setTimeout(()=>e.error(c))}:c=>{e.error(c)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(n=this.__isAsync?c=>{setTimeout(()=>e(c))}:c=>{e(c)},t&&(s=this.__isAsync?c=>{setTimeout(()=>t(c))}:c=>{t(c)}),r&&(a=this.__isAsync?()=>{setTimeout(()=>r())}:()=>{r()}));const l=super.subscribe(n,s,a);return e instanceof C&&e.add(l),l}}class it extends M{constructor(){super(...arguments);o(this,"_schedulerFns");o(this,"_isAsync",!1)}get schedulerFns(){return this._schedulerFns}forceCallback(e,t=!1){this.schedulerFns&&this.schedulerFns.size&&(this.schedulerFns.forEach(r=>{r(e)}),t&&this.cleanCallbackFn())}cleanCallbackFn(){this._schedulerFns=void 0}subscribe(e,t,r){let n;return e&&typeof e=="object"?n=this._isAsync?s=>{setTimeout(()=>e.next(s))}:s=>{e.next(s)}:n=this._isAsync?s=>{setTimeout(()=>e(s))}:s=>{e(s)},this._schedulerFns||(this._schedulerFns=new Set),this._schedulerFns.add(n),super.subscribe(e,t,r)}}class wr{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}class B{constructor(){o(this,"__eventListenerMap",new Map);o(this,"el",{nativeElement:null});o(this,"hostBindingMap");o(this,"hostListenerMap");o(this,"inputNameMap");o(this,"outputNameMap")}mounted(){this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(e=>{this[e]!==void 0&&this.hostBinding(this.hostBindingMap[e],e)}),this.hostListenerMap&&this.el.nativeElement&&Object.keys(this.hostListenerMap).forEach(e=>{this[e]&&this.hostListener(this.hostListenerMap[e],e)})}setInput(e){if(!e)return;const t=new Map;Object.keys(e).forEach(r=>{if(r.startsWith("@")){const n=this.getOutputKey(r.slice(1));this.eventListener(n,e[r])}else{const n=this.getInputKey(r),s=this[n];this[n]=e[r],t.set(n,{previousValue:s,currentValue:e[r],firstChange:!0})}}),this.notifyOnChanges(t),this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(r=>{e[r]&&this.hostBinding(this.hostBindingMap[r],r)})}updateInput(e,t){const r=new Map;e&&Object.keys(e).forEach(n=>{const s=this.getInputKey(n);e[n]!==(t==null?void 0:t[n])&&r.set(s,{previousValue:t[n],currentValue:e[n],firstChange:t[n]===void 0})}),t&&Object.keys(t).filter(n=>!Object.keys(e).includes(n)).forEach(n=>{if(t[n]!==(e==null?void 0:e[n])){const s=this.getInputKey(n);r.set(s,{previousValue:t[n],currentValue:e[n],firstChange:t[n]===void 0})}}),r.forEach((n,s)=>{s.startsWith("@")?this.eventListener(s.slice(1),n.currentValue):this[s]=n.currentValue}),this.notifyOnChanges(r),this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(n=>{r.get(n)&&this.hostBinding(this.hostBindingMap[n],n)})}hostBinding(e,t){const r=this.el.nativeElement,n=this[t];r.setAttribute(e,n)}hostListener(e,t){this.el.nativeElement.addEventListener(e,this[t].bind(this))}eventListener(e,t){var n;const r=this[e].subscribe(s=>{t(s)});this.__eventListenerMap.get(e)&&((n=this.__eventListenerMap.get(e))==null||n.unsubscribe(),this.__eventListenerMap.delete(e)),this.__eventListenerMap.set(e,r)}getInputKey(e){return this.inputNameMap&&this.inputNameMap[e]||e}getOutputKey(e){return this.outputNameMap&&this.outputNameMap[e]||e}notifyOnChanges(e){if(this.ngOnChanges){const t=[...e.entries()].filter(([r,n])=>!r.startsWith("@")).reduce((r,[n,s])=>{const{previousValue:a,currentValue:l,firstChange:c}=s;return r[n]=new wr(a,l,c),r},{});Object.keys(t).length&&this.ngOnChanges(t)}}}const nt=D.defineComponent({name:"DDragPreviewTemplate",setup(i,{slots:e,expose:t}){return t({template:e.default}),()=>null}}),st=D.defineComponent({name:"DDragPreviewContainer",props:{template:Function,context:Object},setup(i){return()=>{var e;return(e=i.template)==null?void 0:e.call(i,i.context)}}});class Y extends B{constructor(e,t){super();o(this,"inputNameMap",{dragPreview:"dragPreviewTemplate"});o(this,"dragPreviewTemplate");o(this,"dragPreviewData");o(this,"dragPreviewOptions",{skipBatchPreview:!1});o(this,"previewRef");o(this,"context");o(this,"el",{nativeElement:null});this.dragDropService=t,this.el.nativeElement=e}createPreview(){var a;const e={data:this.dragPreviewData,draggedEl:this.dragDropService.draggedEl,dragData:this.dragDropService.dragData,batchDragData:this.dragDropService.batchDragData&&this.dragDropService.getBatchDragData(),dragSyncDOMElements:this.dragDropService.dragSyncGroupDirectives&&this.getDragSyncDOMElements()},t=D.createApp(st,{context:e,template:(a=this.dragPreviewTemplate)==null?void 0:a.template});t._context.provides=Object.create(this.context);const r=document.createElement("div"),n=t.mount(r),s=()=>{t.unmount()};this.previewRef={instance:n,element:r,unmount:s}}destroyPreview(){this.previewRef&&(this.previewRef.unmount(),this.previewRef=void 0)}getPreviewElement(){return this.previewRef&&this.previewRef.element}getDragSyncDOMElements(){return this.dragDropService.dragSyncGroupDirectives.map(e=>e.el.nativeElement)}}o(Y,"INSTANCE_KEY","__vueDevuiDragPreviewDirectiveInstance"),o(Y,"TOKEN",Symbol("DRAG_PREVIEW_DIRECTIVE_TOKEN"));var Ir={mounted(i,e,t){const r=t.ctx.provides,n=b(A.TOKEN,r),s=i[Y.INSTANCE_KEY]=new Y(i,n);X(Y.TOKEN,s,r),s.setInput({context:r}),s.setInput(e.value),s.mounted()},updated(i,e){i[Y.INSTANCE_KEY].updateInput(e.value,e.oldValue)}};class N extends B{constructor(e,t,r){super();o(this,"hostBindingMap",{draggable:"draggable","data-drag-handle-selector":"dragHandle"});o(this,"draggable",!0);o(this,"dragData");o(this,"dragScope","default");o(this,"dragHandle");o(this,"dragHandleClass","drag-handle");o(this,"dragOverClass");o(this,"dragEffect","move");o(this,"_disabled",!1);o(this,"dragStartEvent",new M);o(this,"dragEvent",new it);o(this,"dragEndEvent",new M);o(this,"dropEndEvent",new it);o(this,"document",window.document);o(this,"mouseOverElement");o(this,"enableDragFollow",!1);o(this,"dragFollowOptions");o(this,"originPlaceholder");o(this,"dragIdentity");o(this,"dragItemParentName","");o(this,"dragItemChildrenName","");o(this,"dragsSub",new C);o(this,"destroyDragEndSub",new C);o(this,"isDestroyed");o(this,"delayRemoveOriginPlaceholderTimer");o(this,"batchDraggable");o(this,"dragOriginPlaceholder");o(this,"dragOriginPlaceholderNextSibling");o(this,"dragElShowHideEvent",new P);o(this,"beforeDragStartEvent",new P);o(this,"el",{nativeElement:null});o(this,"dragDropService");o(this,"dragPreviewDirective");o(this,"insertOriginPlaceholder",(e=!0,t=!0)=>{var s,a,l;this.delayRemoveOriginPlaceholderTimer&&(clearTimeout(this.delayRemoveOriginPlaceholderTimer),this.delayRemoveOriginPlaceholderTimer=void 0);const r=this.document.createElement(((s=this.originPlaceholder)==null?void 0:s.tag)||"div"),n=this.el.nativeElement.getBoundingClientRect();if(e?r.style.display="block":r.style.display="none",r.style.width=n.width+"px",r.style.height=n.height+"px",r.classList.add("drag-origin-placeholder"),((a=this.originPlaceholder)==null?void 0:a.text)&&(r.innerText=this.originPlaceholder.text),((l=this.originPlaceholder)==null?void 0:l.style)&&p.addElStyles(r,this.originPlaceholder.style),t)this.dragDropService.dragOriginPlaceholder=r,this.dragDropService.dragOriginPlaceholderNextSibling=this.el.nativeElement.nextSibling;else{r.classList.add("side-drag-origin-placeholder");const c=this.el.nativeElement.cloneNode(!0);c.style.margin=0,c.style.pointerEvents="none",c.style.opacity="0.3",r.appendChild(c)}this.dragOriginPlaceholder=r,this.dragOriginPlaceholderNextSibling=this.el.nativeElement.nextSibling,this.el.nativeElement.parentElement.insertBefore(r,this.el.nativeElement.nextSibling)});o(this,"removeOriginPlaceholder",(e=!0)=>{var t;this.dragOriginPlaceholder&&((t=this.dragOriginPlaceholder.parentElement)==null||t.removeChild(this.dragOriginPlaceholder)),e&&(this.dragDropService.dragOriginPlaceholder=void 0,this.dragDropService.dragOriginPlaceholderNextSibling=void 0),this.dragOriginPlaceholder=void 0,this.dragOriginPlaceholderNextSibling=void 0});o(this,"delayRemoveOriginPlaceholder",(e=!0)=>{var s,a;const t=(s=this.originPlaceholder)==null?void 0:s.removeDelay,r=this.dragOriginPlaceholder,n=this.findNextSibling(this.dragOriginPlaceholderNextSibling);((a=r==null?void 0:r.parentElement)==null?void 0:a.contains(n))&&r.parentElement.insertBefore(r,n),setTimeout(()=>{var l;((l=r==null?void 0:r.parentElement)==null?void 0:l.contains(n))&&r.parentElement.insertBefore(r,n),r==null||r.classList.add("delay-deletion"),this.delayRemoveOriginPlaceholderTimer=setTimeout(()=>{var c;(c=r==null?void 0:r.parentElement)==null||c.removeChild(r),this.document.body.contains(this.el.nativeElement)&&(this.el.nativeElement.style.display="",this.dragDropService.dragElShowHideEvent.next(!1))},t),e&&(this.dragDropService.dragOriginPlaceholder=void 0,this.dragDropService.dragOriginPlaceholderNextSibling=void 0),this.dragOriginPlaceholder=void 0,this.dragOriginPlaceholderNextSibling=void 0})});this.el.nativeElement=e,this.dragDropService=t,this.dragPreviewDirective=r}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.draggable=!this._disabled}ngOnInit(){this.dragsSub.add(I(this.el.nativeElement,"mouseover").subscribe(e=>this.mouseover(e))),this.dragsSub.add(I(this.el.nativeElement,"dragstart").subscribe(e=>this.dragStart(e))),this.dragsSub.add(I(this.el.nativeElement,"dragend").subscribe(e=>this.dragEnd(e)))}dropSubscription(){const e=this.dragDropService.newSubscription();e.add(this.dragDropService.dropEvent.subscribe(t=>{this.mouseOverElement=void 0,p.removeClass(this.el.nativeElement,this.dragOverClass),this.dropEndEvent.emit(t),this.isDestroyed&&this.dropEndEvent.schedulerFns&&this.dropEndEvent.schedulerFns.size>0&&this.dropEndEvent.forceCallback(t,!0),this.dragDropService.dragOriginPlaceholder&&(this.originPlaceholder&&this.originPlaceholder.removeDelay>0&&!this.dragDropService.dropOnOrigin?this.delayRemoveOriginPlaceholder():this.removeOriginPlaceholder(),this.dragDropService.draggedElIdentity=void 0),this.dragDropService.subscription.unsubscribe()})),e.add(this.dragDropService.dragElShowHideEvent.subscribe(this.dragElShowHideEvent))}ngAfterViewInit(){this.applyDragHandleClass(),this.dragIdentity&&this.dragDropService.draggedEl&&this.dragIdentity===this.dragDropService.draggedElIdentity&&(this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.insertOriginPlaceholder(),this.dragDropService.draggedEl=this.el.nativeElement,this.el.nativeElement.style.display="none")}ngOnDestroy(){this.isDestroyed=!0,this.dragDropService.draggedEl===this.el.nativeElement&&(this.destroyDragEndSub=new C,this.destroyDragEndSub.add(I(this.el.nativeElement,"dragend").subscribe(e=>{this.dragEnd(e),this.dropEndEvent.schedulerFns&&this.dropEndEvent.schedulerFns.size>0&&this.dropEndEvent.forceCallback(e,!0),this.destroyDragEndSub.unsubscribe(),this.destroyDragEndSub=void 0})),this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.dragDropService.dragOriginPlaceholder&&this.dragDropService.draggedElIdentity&&this.removeOriginPlaceholder()),this.dragsSub.unsubscribe()}dragStart(e){var t;if(this.allowDrag(e)){p.addClass(this.el.nativeElement,this.dragOverClass),this.dragDropService.dragData=this.dragData,this.dragDropService.scope=this.dragScope,this.dragDropService.draggedEl=this.el.nativeElement,this.dragDropService.draggedElIdentity=this.dragIdentity,this.dragDropService.dragFollow=this.enableDragFollow,this.dragDropService.dragFollowOptions=this.dragFollowOptions,this.dragDropService.dragItemParentName=this.dragItemParentName,this.dragDropService.dragItemChildrenName=this.dragItemChildrenName,this.beforeDragStartEvent.next(!0),this.dragPreviewDirective&&((t=this.dragPreviewDirective)==null?void 0:t.dragPreviewTemplate)&&(this.dragDropService.dragFollow=!0,this.dragDropService.dragPreviewDirective=this.dragPreviewDirective),this.batchDraggable&&(this.batchDraggable.dragData?this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&(this.dragDropService.batchDragging=!0,this.dragDropService.batchDragStyle=this.batchDraggable.batchDragStyle):this.batchDraggable.batchDragLastOneAutoActiveEventKeys&&this.batchDraggable.batchDragLastOneAutoActiveEventKeys.map(s=>e[s]).some(s=>s===!0)&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>0&&(this.batchDraggable.active(),this.batchDraggable.dragData||this.batchDraggable.addToBatchGroup(),this.dragDropService.batchDragData.some(s=>s.draggable===this)&&(this.dragDropService.batchDragging=!0,this.dragDropService.batchDragStyle=this.batchDraggable.batchDragStyle)));const r=this.el.nativeElement.getBoundingClientRect();if(this.dragDropService.dragFollow){const n=this.mousePosition(e),s=this.checkAndGetViewPointChange(this.el.nativeElement);this.dragDropService.dragOffset={left:r.left,top:r.top,offsetLeft:n.x-r.left+s.offsetX,offsetTop:n.y-r.top+s.offsetY,width:r.width,height:r.height},this.dragDropService.enableDraggedCloneNodeFollowMouse()}else this.dragDropService.dragOffset={left:r.left,top:r.top,offsetLeft:null,offsetTop:null,width:r.width,height:r.height};this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.insertOriginPlaceholder(!1),this.dragDropService.batchDragging&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&this.dragDropService.batchDragData.map(n=>n.draggable).filter(n=>n&&n!==this).forEach(n=>{n.originPlaceholder&&n.originPlaceholder.show!==!1?(n.insertOriginPlaceholder(!0,!1),n.el.nativeElement.style.display="none"):setTimeout(()=>{n.el.nativeElement.style.display="none"})}),e.dataTransfer!==null&&e.dataTransfer.setData("text",""),e.dataTransfer.effectAllowed=this.dragEffect,this.dropSubscription(),this.dragDropService.dragFollow&&(typeof DataTransfer.prototype.setDragImage=="function"?e.dataTransfer.setDragImage(this.dragDropService.dragEmptyImage,0,0):(e.srcElement.style.display="none",this.dragDropService.dragElShowHideEvent.next(!1))),e.stopPropagation(),this.dragStartEvent.emit(e),this.dragDropService.dragStartEvent.next(e)}else e.preventDefault()}dragEnd(e){p.removeClass(this.el.nativeElement,this.dragOverClass),this.dragDropService.dragEndEvent.next(e),this.mouseOverElement=void 0,this.dragDropService.draggedEl&&(this.dragDropService.dragFollow&&this.dragDropService.disableDraggedCloneNodeFollowMouse(),this.dragDropService.dragOriginPlaceholder&&this.removeOriginPlaceholder(),this.dragDropService.batchDragging&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&this.dragDropService.batchDragData.map(t=>t.draggable).filter(t=>t&&t!==this).forEach(t=>{t.originPlaceholder&&t.originPlaceholder.show!==!1?(t.el.nativeElement.style.display="",t.removeOriginPlaceholder()):t.el.nativeElement.style.display=""}),this.batchDraggable&&!this.batchDraggable.batchDragActive&&(this.batchDraggable.removeFromBatchGroup(),this.dragDropService.batchDragging=!1,this.dragDropService.batchDragStyle=void 0),this.dragDropService.subscription&&this.dragDropService.subscription.unsubscribe(),this.dragDropService.dragData=void 0,this.dragDropService.scope=void 0,this.dragDropService.draggedEl=void 0,this.dragDropService.dragFollow=void 0,this.dragDropService.dragFollowOptions=void 0,this.dragDropService.dragOffset=void 0,this.dragDropService.draggedElIdentity=void 0,this.dragDropService.dragPreviewDirective=void 0),e.stopPropagation(),e.preventDefault(),this.dragEndEvent.emit(e)}mouseover(e){this.mouseOverElement=e.target}allowDrag(e){return!this.draggable||this.batchDraggable&&!this.batchDraggable.allowAddToBatchGroup()?!1:this.dragHandle?e&&e.fromTouch?!0:this.mouseOverElement?p.matches(this.mouseOverElement,this.dragHandle):!1:!0}applyDragHandleClass(){const e=this.getDragHandleElement();!e||(this.draggable?p.addClass(e,this.dragHandleClass):p.removeClass(this.el,this.dragHandleClass))}getDragHandleElement(){let e=this.el;return this.dragHandle&&(e=this.el.nativeElement.querySelector(this.dragHandle)),e}mousePosition(e){return{x:e.clientX,y:e.clientY}}findNextSibling(e){return this.dragDropService.batchDragData&&this.dragDropService.batchDragData.map(t=>t.draggable&&t.draggable.el.nativeElement).indexOf(e)>-1&&(e=e.nextSibling),e}checkAndGetViewPointChange(e){if(!e.parentNode)return null;const t=e.getBoundingClientRect(),r=this.document.createElement("div");p.addElStyles(r,{opacity:"0",position:"fixed",top:t.top+"px",left:t.left+"px",width:"1px",height:"1px",zIndex:"-999999"}),e.parentNode.appendChild(r);const n=r.getBoundingClientRect();return e.parentNode.removeChild(r),{offsetX:n.left-t.left,offsetY:n.top-t.top}}}o(N,"INSTANCE_KEY","__vueDevuiDraggableDirectiveInstance"),o(N,"TOKEN",Symbol("DRAGGABLE_DIRECTIVE_TOKEN"));var ot={mounted(i,e,t){var l,c,d;const r=(l=t.ctx)==null?void 0:l.provides,n=b(A.TOKEN,r);let s=b(Y.TOKEN,r);(s==null?void 0:s.el.nativeElement)!==i&&(s=void 0);const a=i[N.INSTANCE_KEY]=new N(i,n,s);X(N.TOKEN,a,r),a.setInput(e.value),a.mounted(),(c=a.ngOnInit)==null||c.call(a),(d=a.ngAfterViewInit)==null||d.call(a)},updated(i,e){i[N.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[N.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class at{constructor(e,t,r,n,s,a,l,c){o(this,"nativeEvent");o(this,"dragData");o(this,"batchDragData");o(this,"dropSubject");o(this,"dropIndex");o(this,"dragFromIndex");o(this,"dropOnItem");o(this,"dropOnOrigin");this.nativeEvent=e,this.dragData=t,this.dropSubject=r,this.dropIndex=n,this.dragFromIndex=s,this.dropOnItem=a,this.dropOnOrigin=l,this.batchDragData=c}}class K extends B{constructor(e,t){super();o(this,"hostListenerMap",{drop:"drop"});o(this,"dragEnterEvent",new M);o(this,"dragOverEvent",new M);o(this,"dragLeaveEvent",new M);o(this,"dropEvent",new M);o(this,"dragOverClass");o(this,"dropScope","default");o(this,"placeholderTag","div");o(this,"placeholderStyle",{backgroundColor:["#859bff","var(--devui-brand-foil, #859bff)"],opacity:".4"});o(this,"placeholderText","");o(this,"allowDropOnItem",!1);o(this,"dragOverItemClass");o(this,"nestingTargetRect");o(this,"switchWhileCrossEdge",!1);o(this,"defaultDropPosition","closest");o(this,"dropSortCountSelector");o(this,"dropSortVirtualScrollOption");o(this,"dropFlag");o(this,"sortContainer");o(this,"sortDirection");o(this,"sortDirectionZMode");o(this,"placeholder");o(this,"dragCount",0);o(this,"dropIndex");o(this,"dragStartSubscription");o(this,"dragEndSubscription");o(this,"dropEndSubscription");o(this,"overElement");o(this,"dragPartEventSub");o(this,"allowDropCache");o(this,"dragElIndex");o(this,"placeholderInsertionEvent",new P);o(this,"placeholderRenderEvent",new P);o(this,"document");o(this,"el",{nativeElement:null});o(this,"dragDropService");o(this,"dropSortCountSelectorFilterFn",e=>p.matches(e,this.dropSortCountSelector)||e.contains(this.placeholder)||e===this.dragDropService.dragOriginPlaceholder);o(this,"setPlaceholder",()=>{this.placeholder.style.width=this.dragDropService.dragOffset.width+"px",this.placeholder.style.height=this.dragDropService.dragOffset.height+"px",p.addElStyles(this.placeholder,this.placeholderStyle),this.placeholderRenderEvent.next({width:this.dragDropService.dragOffset.width,height:this.dragDropService.dragOffset.height})});this.document=window.document,this.el.nativeElement=e,this.dragDropService=t}ngOnInit(){this.placeholder=this.document.createElement(this.placeholderTag),this.placeholder.className="drag-placeholder",this.placeholder.innerText=this.placeholderText,this.dragStartSubscription=this.dragDropService.dragStartEvent.subscribe(()=>this.setPlaceholder()),this.dragDropService.draggedEl&&this.setPlaceholder(),this.dropEndSubscription=this.dragDropService.dropEvent.subscribe(()=>{this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(p.addElStyles(this.dragDropService.draggedEl,{display:""}),this.dragDropService.dragElShowHideEvent.next(!0))),this.removePlaceholder(),this.overElement=void 0,this.allowDropCache=void 0,this.dragElIndex=void 0,this.dropIndex=void 0}),this.dragEndSubscription=this.dragDropService.dragEndEvent.subscribe(()=>{this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(p.addElStyles(this.dragDropService.draggedEl,{display:""}),this.dragDropService.dragElShowHideEvent.next(!0))),this.removePlaceholder(),this.dragCount=0,this.overElement=void 0,this.allowDropCache=void 0,this.dragElIndex=void 0,this.dropIndex=void 0}),this.dragPartEventSub=new C,this.dragPartEventSub.add(I(this.el.nativeElement,"dragover").pipe(mr(e=>this.allowDrop(e)),Dr((e,t)=>{const r=e.clientX===t.clientX&&e.clientY===t.clientY&&e.target===t.target;return r&&(t.preventDefault(),t.stopPropagation()),r})).subscribe(e=>this.dragOver(e))),this.dragPartEventSub.add(I(this.el.nativeElement,"dragenter").subscribe(e=>this.dragEnter(e))),this.dragPartEventSub.add(I(this.el.nativeElement,"dragleave").subscribe(e=>this.dragLeave(e)))}ngAfterViewInit(){this.el.nativeElement.hasAttribute("d-sortable")?this.sortContainer=this.el.nativeElement:this.sortContainer=this.el.nativeElement.querySelector("[d-sortable]"),this.sortDirection=this.sortContainer&&this.sortContainer.getAttribute("dsortable")||"v",this.sortDirectionZMode=this.sortContainer&&this.sortContainer.getAttribute("d-sortable-zmode")==="true"||!1}ngOnDestroy(){var e,t,r;(e=this.dragStartSubscription)==null||e.unsubscribe(),(t=this.dragEndSubscription)==null||t.unsubscribe(),(r=this.dropEndSubscription)==null||r.unsubscribe(),this.dragPartEventSub&&this.dragPartEventSub.unsubscribe()}dragEnter(e){this.dragCount++,e.preventDefault(),this.dragEnterEvent.emit(e)}dragOver(e){if(this.allowDrop(e)){this.dragDropService.dropTargets.indexOf(this.el)===-1&&(this.dragDropService.dropTargets.forEach(r=>{const n=r.nativeElement.querySelector(".drag-placeholder");n&&n.parentElement.removeChild(n),p.removeClass(r,this.dragOverClass),this.removeDragoverItemClass(r.nativeElement)}),this.dragDropService.dropTargets=[this.el],this.overElement=void 0),p.addClass(this.el,this.dragOverClass);const t=this.dragDropService.dragOriginPlaceholder&&this.dragDropService.dragOriginPlaceholder.contains(e.target);if(this.sortContainer&&(t&&this.overElement===void 0||!(e.target.contains(this.placeholder)||t)||this.switchWhileCrossEdge&&!this.placeholder.contains(e.target)&&!t||!this.sortContainer.contains(e.target)&&this.defaultDropPosition==="closest")){const r=this.findSortableEl(e);!(this.overElement&&r)||this.overElement.index!==r.index||this.allowDropOnItem&&this.overElement.position!==r.position&&(this.overElement.position==="inside"||r.position==="inside")?(this.overElement=r,this.insertPlaceholder(r),this.removeDragoverItemClass(this.sortContainer,r),r.position==="inside"&&this.dragOverItemClass&&p.addClass(r.el,this.dragOverItemClass)):this.overElement=r}else this.sortContainer&&this.overElement&&this.overElement.el&&(this.overElement.el.contains(e.target)?this.overElement.realEl=void 0:this.overElement.realEl=e.target);this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(p.addElStyles(this.dragDropService.draggedEl,{display:"none"}),this.dragDropService.dragElShowHideEvent.next(!1),this.dragDropService.dragOriginPlaceholder&&p.addElStyles(this.dragDropService.dragOriginPlaceholder,{display:"block"}))),e.preventDefault(),e.stopPropagation(),this.dragOverEvent.emit(e)}}dragLeave(e){this.dragCount--,this.dragCount===0&&(this.dragDropService.dropTargets.indexOf(this.el)!==-1&&(this.dragDropService.dropTargets=[]),p.removeClass(this.el,this.dragOverClass),this.removePlaceholder(),this.removeDragoverItemClass(this.el.nativeElement),this.overElement=void 0,this.dragElIndex=void 0,this.dropIndex=void 0),e.preventDefault(),this.dragLeaveEvent.emit(e)}drop(e){if(!this.allowDrop(e))return;this.dragCount=0,p.removeClass(this.el,this.dragOverClass),this.removeDragoverItemClass(this.sortContainer),this.removePlaceholder(),e.preventDefault(),e.stopPropagation(),this.dragDropService.dropOnOrigin=this.isDragPlaceholderPosition(this.dropIndex);const t=this.dragDropService.draggedElIdentity;this.dragDropService.draggedElIdentity=void 0;let r=[];this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&(r=this.dragDropService.batchDragData.map(n=>n.draggable).filter(n=>n&&n.el.nativeElement!==this.dragDropService.draggedEl)),this.dropEvent.emit(new at(e,this.dragDropService.dragData,this.dragDropService.dropEvent,this.dropSortVirtualScrollOption?this.getRealIndex(this.dropIndex,this.dropFlag):this.dropIndex,this.sortContainer?this.checkSelfFromIndex(this.dragDropService.draggedEl):-1,this.dragDropService.dropOnItem,this.dragDropService.dropOnOrigin,this.dragDropService.batchDragging?this.dragDropService.getBatchDragData(t):void 0)),this.dragDropService.dragFollow?this.dragDropService.disableDraggedCloneNodeFollowMouse():(p.addElStyles(this.dragDropService.draggedEl,{display:void 0}),this.dragDropService.dragElShowHideEvent.next(!1)),r.length>0&&this.dragDropService.batchDragging&&r.forEach(n=>{!n.originPlaceholder||n.originPlaceholder.show===!1?n.el.nativeElement.style.display="":n.originPlaceholder.removeDelay>0&&!this.dragDropService.dropOnOrigin?n.delayRemoveOriginPlaceholder(!1):(n.el.nativeElement.style.display="",n.removeOriginPlaceholder(!1))}),this.dragDropService.dropEvent.next(e),this.dragDropService.dragData=void 0,this.dragDropService.scope=void 0,this.dragDropService.draggedEl=void 0,this.dragDropService.dragFollow=void 0,this.dragDropService.dragFollowOptions=void 0,this.dragDropService.dragOffset=void 0,this.dragDropService.dropOnOrigin=void 0,this.dragDropService.batchDragging=!1,this.dragDropService.batchDragStyle=void 0,this.dragDropService.dragPreviewDirective=void 0}allowDrop(e){if(!e)return!1;if(this.allowDropCache!==void 0)return this.allowDropCache;let t=!1;return typeof this.dropScope=="string"&&(typeof this.dragDropService.scope=="string"&&(t=this.dragDropService.scope===this.dropScope),this.dragDropService.scope instanceof Array&&(t=this.dragDropService.scope.indexOf(this.dropScope)>-1)),this.dropScope instanceof Array&&(typeof this.dragDropService.scope=="string"&&(t=this.dropScope.indexOf(this.dragDropService.scope)>-1),this.dragDropService.scope instanceof Array&&(t=this.dropScope.filter(r=>this.dragDropService.scope.indexOf(r)!==-1).length>0)),this.allowDropCache=t,t}findSortableEl(e){var d;const t=e.target;let r=null;if(!this.sortContainer)return r;r={index:0,el:null,position:"before"},this.dropIndex=0,this.dropFlag=void 0;let n=p.slice(this.sortContainer.children);if(this.dropSortCountSelector&&(n=n.filter(this.dropSortCountSelectorFilterFn)),n.some(h=>h!==this.dragDropService.dragOriginPlaceholder&&h.classList.contains("drag-origin-placeholder"))&&(n=n.filter(h=>!(h.classList.contains("drag-origin-placeholder")&&h!==this.dragDropService.dragOriginPlaceholder))),this.dragDropService.dragFollow&&this.dragDropService.dragCloneNode){const h=n.findIndex(u=>u===this.dragDropService.dragCloneNode);h!==-1&&n.splice(h,1)}if(this.dragDropService.dragOriginPlaceholder){const h=n.findIndex(u=>u===this.dragDropService.dragOriginPlaceholder);h!==-1?(this.dragElIndex=h-1,n.splice(h,1)):this.dragElIndex=-1}else this.dragElIndex=-1;const s=n.findIndex(h=>h.contains(this.placeholder));s!==-1&&n.splice(s,1),s!==-1&&this.dragElIndex!==-1&&s<this.dragElIndex&&this.dragElIndex--;const a=s!==-1?s:this.dragElIndex,l=n.findIndex(h=>h.contains(t)||h.nextElementSibling===t&&h.nextElementSibling.classList.contains("drag-origin-placeholder"));if(this.switchWhileCrossEdge&&!this.allowDropOnItem&&n.length&&a!==-1&&l>-1){const h=a,u=this.overElement&&(this.overElement.realEl||this.overElement.el);return l!==-1&&u===n[l]?(this.dropIndex=this.overElement.index,this.overElement):(r={index:h>l?l:l+1,el:n[l],position:h>l?"before":"after"},this.dragDropService.dropOnItem=!1,this.dropIndex=r.index,r)}if(t===this.sortContainer||((d=t.classList)==null?void 0:d.contains("drag-origin-placeholder"))||t===(this.dragDropService&&this.dragDropService.dragOriginPlaceholder)||!this.sortContainer.contains(t)&&this.defaultDropPosition==="closest"){if(!n.length)return this.dropIndex=0,this.dragDropService.dropOnItem=!1,r;let h=!1;for(let u=0;u<n.length;u++){const f=n[u];if(n[u].nextSibling===t&&t.classList.contains("drag-origin-placeholder")){const w=this.calcPosition(e,t);return this.dragDropService.dropOnItem=w==="inside",r={index:w==="after"?u+1:u,el:n[u],position:w},this.dropIndex=r.index,r}const y=this.calcPositionOutside(e,f);if(y==="before"){this.dragDropService.dropOnItem=!1,r={index:u,el:n[u],position:y,realEl:t},this.dropIndex=r.index,h=!0;break}}return h||(this.dragDropService.dropOnItem=!1,r={index:n.length,el:n[n.length-1],position:"after",realEl:t},this.dropIndex=n.length),r}if(!this.sortContainer.contains(t))return this.defaultDropPosition==="before"?(r={index:0,el:n.length?n[0]:null,position:"before",realEl:t},this.dropFlag="beforeAll"):(r={index:n.length,el:n.length?n[n.length-1]:null,position:"after",realEl:t},this.dropFlag="afterAll"),this.dropIndex=r.index,r;let c=!1;for(let h=0;h<n.length;h++)if(n[h].contains(t)){const u=n[h],f=this.calcPosition(e,u);this.dragDropService.dropOnItem=f==="inside",r={index:f==="after"?h+1:h,el:n[h],position:f},this.dropIndex=r.index,c=!0;break}return c||(n.length&&(r={index:n.length,el:n[n.length-1],position:"after"}),this.dropIndex=n.length,this.dragDropService.dropOnItem=!1),r}calcPosition(e,t){const r=t.getBoundingClientRect(),n=e.clientY-(r.y||r.top),s=e.clientX-(r.x||r.left);if(this.allowDropOnItem){const a={height:this.nestingTargetRect&&this.nestingTargetRect.height||r.height,width:this.nestingTargetRect&&this.nestingTargetRect.width||r.width},l=a.height*3/4,c=a.width*3/4,d=Number(a.height)/4,h=Number(a.width)/4;if(this.sortDirectionZMode){const u=n/a.height+s/a.width;if(u>.3&&u<=.7)return"inside";if(u>.7&&(n-r.height+a.height)/a.height+(s-r.width+a.width)/a.width<=.7)return"inside"}if(this.sortDirection==="v"&&n>d&&n<=l||this.sortDirection!=="v"&&s>h&&s<=c)return"inside";if(this.sortDirection==="v"&&n>l&&n<=r.height-d||this.sortDirection!=="v"&&s>c&&s<=r.width-h)return"inside"}return this.sortDirectionZMode?n/r.height+s/r.width<1?"before":"after":this.sortDirection==="v"&&n>r.height/2||this.sortDirection!=="v"&&s>r.width/2?"after":"before"}calcPositionOutside(e,t){const r=this.getBoundingRectAndRealPosition(t),n=e.clientY-(r.y||r.top),s=e.clientX-(r.x||r.left);return this.sortDirectionZMode?this.sortDirection==="v"&&(n<0||n<r.height&&s<0)||this.sortDirection!=="v"&&(s<0||s<r.width&&n<0)?"before":"notsure":this.sortDirection==="v"&&n<r.height/2||this.sortDirection!=="v"&&s<r.width/2?"before":"notsure"}insertPlaceholder(e){const t=this.sortContainer.scrollTop,r=this.sortContainer.scrollLeft;let n=!1,s;const a=(l,c,d)=>{const h=l.indexOf(c);return h>-1?h:d};if(e!==null){const l=p.slice(this.sortContainer.children).filter(c=>c!==this.dragDropService.dragCloneNode);e.el===null?(s={command:"append"},this.sortContainer.appendChild(this.placeholder)):e.position==="inside"?(s={command:"remove"},this.removePlaceholder()):this.dragDropService.dragOriginPlaceholder&&this.isDragPlaceholderPosition(e.index)?(s={command:"remove"},this.removePlaceholder(),n=!0):e.position==="after"?e.el.nextSibling&&e.el.nextSibling.classList&&e.el.nextSibling.classList.contains("drag-origin-placeholder")?(s={command:"insertBefore",index:a(l,e.el.nextSibling,l.length)+1},this.sortContainer.insertBefore(this.placeholder,e.el.nextSibling.nextSibling)):(s={command:"insertBefore",index:a(l,e.el,l.length)+1},this.sortContainer.insertBefore(this.placeholder,e.el.nextSibling)):(s={command:"insertBefore",index:a(l,e.el,l.length)},this.sortContainer.insertBefore(this.placeholder,e.el))}this.placeholderInsertionEvent.next(s),this.sortContainer.scrollTop=t,this.sortContainer.scrollLeft=r,this.dragDropService.dragOriginPlaceholder&&(n?this.hitDragOriginPlaceholder():this.hitDragOriginPlaceholder(!1))}isDragPlaceholderPosition(e){return this.dragElIndex>-1&&(e===this.dragElIndex||e===this.dragElIndex+1)}hitDragOriginPlaceholder(e=!0){const t=this.dragDropService.dragOriginPlaceholder;e?t.classList.add("hit-origin-placeholder"):t.classList.remove("hit-origin-placeholder")}removePlaceholder(){this.sortContainer&&this.sortContainer.contains(this.placeholder)&&(this.sortContainer.removeChild(this.placeholder),this.placeholderInsertionEvent.next({command:"remove"}))}removeDragoverItemClass(e,t){if(this.dragOverItemClass){const r=e.querySelectorAll("."+this.dragOverItemClass);if(r&&r.length>0)for(const n of r)t?(n!==t.el||t.position!=="inside")&&p.removeClass(n,this.dragOverItemClass):p.removeClass(n,this.dragOverItemClass)}}checkSelfFromIndex(e){let t=-1;if(!this.sortContainer.contains(e))return t;let r=p.slice(this.sortContainer.children);this.dropSortCountSelector&&(r=r.filter(this.dropSortCountSelectorFilterFn));for(let n=0;n<r.length;n++)if(r[n].contains(this.dragDropService.draggedEl)){t=n;break}return this.getRealIndex(t)}getRealIndex(e,t){let r;const n=this.dropSortVirtualScrollOption&&this.dropSortVirtualScrollOption.startIndex||0,s=this.dropSortVirtualScrollOption&&this.dropSortVirtualScrollOption.totalLength;return t==="beforeAll"?r=0:t==="afterAll"?r=s||e:r=n+e,r}getBoundingRectAndRealPosition(e){let t=e.getBoundingClientRect();const{bottom:r,right:n,width:s,height:a}=t;if(t.width===0&&t.height===0&&(e.style.display==="none"||getComputedStyle(e).display==="none")&&e.nextElementSibling){const{top:l,left:c}=e.nextElementSibling.getBoundingClientRect();t={x:c,y:l,top:l,left:c,bottom:r,right:n,width:s,height:a}}return t}getSortContainer(){return this.sortContainer}}o(K,"INSTANCE_KEY","__vueDevuiDroppableDirectiveInstance"),o(K,"TOKEN",Symbol("DROPPABLE_DIRECTIVE_TOKEN"));var lt={mounted(i,e,t){var a;const r=t.ctx.provides,n=b(A.TOKEN,r),s=i[K.INSTANCE_KEY]=new K(i,n);X(K.TOKEN,s,r),s.setInput(e.value),s.mounted(),(a=s.ngOnInit)==null||a.call(s),setTimeout(()=>{var l;(l=s.ngAfterViewInit)==null||l.call(s)},0)},updated(i,e){i[K.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[K.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class ie extends B{constructor(e){super();o(this,"dSortDirection","v");o(this,"dSortableZMode",!1);o(this,"dSortable",!0);o(this,"hostBindingMap",{dSortDirection:"dsortable",dSortableZMode:"d-sortable-zmode",dSortable:"d-sortable"});o(this,"inputNameMap",{dSortable:"dSortDirection"});o(this,"el",{nativeElement:null});this.el.nativeElement=e}}o(ie,"INSTANCE_KEY","__vueDevuiSortableDirectiveInstance");var ct={mounted(i,e){const t=i[ie.INSTANCE_KEY]=new ie(i);t.setInput(e.value),t.mounted()},updated(i,e){i[ie.INSTANCE_KEY].updateInput(e.value,e.oldValue)}},dt=(i=>(i[i.forward=0]="forward",i[i.backward=1]="backward",i))(dt||{});const ht={default:i=>Math.ceil((1-i)*18)*100};class j extends B{constructor(e,t){super();o(this,"minSpeed",50);o(this,"maxSpeed",1e3);o(this,"responseEdgeWidth","100px");o(this,"speedFn",ht.default);o(this,"direction","v");o(this,"viewOffset");o(this,"dropScrollScope");o(this,"backSpaceDroppable",!0);o(this,"forwardScrollArea");o(this,"backwardScrollArea");o(this,"subscription",new C);o(this,"forwardScrollFn");o(this,"backwardScrollFn");o(this,"lastScrollTime");o(this,"animationFrameId");o(this,"document");o(this,"el",{nativeElement:null});o(this,"dragDropService");this.el.nativeElement=e,this.dragDropService=t,this.document=window.document}ngAfterViewInit(){this.el.nativeElement.parentNode.style.position="relative",this.el.nativeElement.parentNode.style.display="block",this.forwardScrollArea=this.createScrollArea(this.direction,0),this.backwardScrollArea=this.createScrollArea(this.direction,1),this.forwardScrollFn=this.createScrollFn(this.direction,0,this.speedFn),this.backwardScrollFn=this.createScrollFn(this.direction,1,this.speedFn),this.subscription.add(I(this.forwardScrollArea,"dragover").pipe(rt(e=>{e.preventDefault(),e.stopPropagation()}),ue(100,void 0,{leading:!0,trailing:!1})).subscribe(e=>this.forwardScrollFn(e))),this.subscription.add(I(this.backwardScrollArea,"dragover").pipe(rt(e=>{e.preventDefault(),e.stopPropagation()}),ue(100,void 0,{leading:!0,trailing:!1})).subscribe(e=>this.backwardScrollFn(e))),this.subscription.add(we(I(this.forwardScrollArea,"drop"),I(this.backwardScrollArea,"drop")).subscribe(e=>this.delegateDropEvent(e))),this.subscription.add(we(I(this.forwardScrollArea,"dragleave",{passive:!0}),I(this.backwardScrollArea,"dragleave",{passive:!0})).subscribe(e=>this.cleanLastScrollTime())),this.subscription.add(I(this.el.nativeElement,"scroll",{passive:!0}).pipe(ue(300,void 0,{leading:!0,trailing:!0})).subscribe(e=>{this.toggleScrollToOneEnd(this.el.nativeElement,this.forwardScrollArea,this.direction,0),this.toggleScrollToOneEnd(this.el.nativeElement,this.backwardScrollArea,this.direction,1)})),this.subscription.add(I(window,"resize",{passive:!0}).pipe(ue(300,void 0,{leading:!0,trailing:!0})).subscribe(e=>this.resizeArea())),this.subscription.add(this.dragDropService.dragStartEvent.subscribe(()=>{!this.allowScroll()||setTimeout(()=>{this.forwardScrollArea.style.display="block",this.backwardScrollArea.style.display="block"})})),this.subscription.add(we(this.dragDropService.dragEndEvent,this.dragDropService.dropEvent).subscribe(()=>{this.forwardScrollArea.style.display="none",this.backwardScrollArea.style.display="none",this.lastScrollTime=void 0})),setTimeout(()=>{this.resizeArea()},0)}ngOnDestroy(){this.subscription.unsubscribe()}createScrollFn(e,t,r){if(typeof window=="undefined")return;const n=e==="v"?"scrollTop":"scrollLeft",s=e==="v"?"clientY":"clientX",a=e==="v"?"scrollHeight":"scrollWidth",l=e==="v"?"offsetHeight":"offsetWidth",c=e==="v"?"clientHeight":"clientWidth",d=e==="v"?"height":"width",h=t===0?this.forwardScrollArea:this.backwardScrollArea,u=this.getCriticalEdge(e,t),f=this.el.nativeElement;return y=>{const w=h.getBoundingClientRect(),S=y[s]-w[u];let x=r(Math.abs(S/(w[d]||1)));x<this.minSpeed&&(x=this.minSpeed),x>this.maxSpeed&&(x=this.maxSpeed),S<0&&(x=-x),this.animationFrameId&&(window.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),this.animationFrameId=requestAnimationFrame(()=>{const O=new Date().getTime(),te=Math.ceil(x*(O-(this.lastScrollTime||O))/1e3);f[n]-=te,this.lastScrollTime=O,(f[n]===0&&t===1||f[n]+f.getBoundingClientRect()[d]-f[l]+f[c]===f[a]&&t===0)&&(h.style.pointerEvents="none",this.toggleActiveClass(h,!1)),this.animationFrameId=void 0}),this.backSpaceDroppable&&p.dispatchEventToUnderElement(y)}}delegateDropEvent(e){this.backSpaceDroppable&&p.dispatchEventToUnderElement(e).defaultPrevented&&(e.preventDefault(),e.stopPropagation())}getCriticalEdge(e,t){return e==="v"&&t===0&&"bottom"||e==="v"&&t===1&&"top"||e!=="v"&&t===0&&"right"||e!=="v"&&t===1&&"left"||"bottom"}getSecondEdge(e){return e==="v"&&"left"||e!=="v"&&"top"||"left"}createScrollArea(e,t){const r=this.document.createElement("div");return r.className=`dropover-scroll-area dropover-scroll-area-${this.getCriticalEdge(e,t)}`,r.classList.add("active"),this.setAreaSize(r,e,t),r.style.position="absolute",this.setAreaStyleLayout(r,e,t),r.style.display="none",this.el.nativeElement.parentNode.appendChild(r,this.el.nativeElement),r}setAreaSize(e,t,r){const n=this.el.nativeElement.getBoundingClientRect(),s=t==="v"?"height":"width",a=typeof this.responseEdgeWidth=="string"?this.responseEdgeWidth:this.responseEdgeWidth(n[s]),l=this.viewOffset&&(r===0?this.viewOffset.forward:this.viewOffset.backward);let c=t==="v"?n.width+"px":a,d=t==="v"?a:n.height+"px";l&&(l.widthOffset&&(c="calc("+c+" + "+l.widthOffset+"px)"),l.heightOffset&&(d="calc("+d+" + "+l.heightOffset+"px)")),e.style.width=c,e.style.height=d}setAreaStyleLayout(e,t,r){const n=this.el.nativeElement,s=this.el.nativeElement.parentNode,a={left:0,right:0,top:0,bottom:0},l=this.viewOffset&&(r===0?this.viewOffset.forward:this.viewOffset.backward)||a,c=this.getCriticalEdge(t,r),d=this.getSecondEdge(t);[c,d].forEach(h=>{e.style[h]=this.getRelatedPosition(n,s,h,l[h])})}getRelatedPosition(e,t,r,n){if(typeof window=="undefined")return"0px";const s=window.getComputedStyle(t),a=t.getBoundingClientRect(),l=e.getBoundingClientRect(),c={left:["left","Left"],right:["right","Right"],top:["top","Top"],bottom:["bottom","Bottom"]};let d=1;return(r==="right"||r==="bottom")&&(d=-1),(l[c[r][0]]-a[c[r][0]]+parseInt(s["border"+c[r][1]+"Width"],10))*d+(n||0)+"px"}resizeArea(){[{area:this.forwardScrollArea,orientation:0},{area:this.backwardScrollArea,orientation:1}].forEach(e=>{this.setAreaSize(e.area,this.direction,e.orientation),this.setAreaStyleLayout(e.area,this.direction,e.orientation)})}toggleScrollToOneEnd(e,t,r,n){const s=r==="v"?"scrollTop":"scrollLeft",a=r==="v"?"scrollHeight":"scrollWidth",l=r==="v"?"offsetHeight":"offsetWidth",c=r==="v"?"clientHeight":"clientWidth",d=r==="v"?"height":"width";e[s]===0&&n===1||Math.abs(e[s]+e.getBoundingClientRect()[d]-e[a]-e[l]+e[c])<1&&n===0?(t.style.pointerEvents="none",this.toggleActiveClass(t,!1)):(t.style.pointerEvents="auto",this.toggleActiveClass(t,!0))}cleanLastScrollTime(){this.animationFrameId&&typeof window!="undefined"&&(window.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),this.lastScrollTime=void 0}toggleActiveClass(e,t){t?(e.classList.remove("inactive"),e.classList.add("active")):(e.classList.remove("active"),e.classList.add("inactive"))}allowScroll(){if(!this.dropScrollScope)return!0;let e=!1;return typeof this.dropScrollScope=="string"&&(typeof this.dragDropService.scope=="string"&&(e=this.dragDropService.scope===this.dropScrollScope),this.dragDropService.scope instanceof Array&&(e=this.dragDropService.scope.indexOf(this.dropScrollScope)>-1)),this.dropScrollScope instanceof Array&&(typeof this.dragDropService.scope=="string"&&(e=this.dropScrollScope.indexOf(this.dragDropService.scope)>-1),this.dragDropService.scope instanceof Array&&(e=this.dropScrollScope.filter(t=>this.dragDropService.scope.indexOf(t)!==-1).length>0)),e}}o(j,"INSTANCE_KEY","__vueDevuiDropScrollEnhancedDirectiveInstance");var ut={mounted(i,e,t){const r=t.ctx.provides,n=b(A.TOKEN,r),s=i[j.INSTANCE_KEY]=new j(i,n);s.setInput(e.value),s.mounted(),setTimeout(()=>{var a;(a=s.ngAfterViewInit)==null||a.call(s)},0)},updated(i,e){i[j.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[j.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class ne extends j{constructor(){super(...arguments);o(this,"inputNameMap",{direction:"sideDirection"});o(this,"sideDirection","h");o(this,"direction","v")}ngOnInit(){this.direction=this.sideDirection==="v"?"h":"v"}}const gt={mounted(i,e,t){const r=t.ctx.provides,n=b(A.TOKEN,r),s=i[ne.INSTANCE_KEY]=new ne(i,n);s.setInput(e.value),s.mounted(),setTimeout(()=>{var a;(a=s.ngAfterViewInit)==null||a.call(s)},0)},updated(i,e){i[ne.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[ne.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class z extends B{constructor(e,t){super();o(this,"batchDragGroup","default");o(this,"batchDragActive",!1);o(this,"batchDragLastOneAutoActiveEventKeys",["ctrlKey"]);o(this,"batchDragStyle",["badge","stack"]);o(this,"batchDragActiveEvent",new M);o(this,"dragData");o(this,"needToRestore",!1);this.draggable=e,this.dragDropService=t,this.draggable.batchDraggable=this}ngOnInit(){this.initDragDataByIdentity()}ngOnDestroy(){this.draggable.batchDraggable=void 0,this.dragData&&this.dragData.draggable===this.draggable&&(this.dragData.draggable=void 0,this.dragData.identity||this.removeFromBatchGroup())}ngOnChanges(e){e.batchDragActive&&(this.initDragDataByIdentity()||(this.batchDragActive?!this.dragData&&this.allowAddToBatchGroup()&&this.addToBatchGroup():this.removeFromBatchGroup()))}ngAfterViewInit(){this.needToRestore&&(this.restoreDragDataViewAfterViewInit(),this.needToRestore=!1)}initDragDataByIdentity(){const e=this.findInBatchDragDataByIdentities();return e&&(this.batchDragActive?this.dragData||(this.addToBatchGroup(e),this.registerRestoreDragDataViewAfterViewInitWhiteDragging()):this.removeFromBatchGroup(e)),e}registerRestoreDragDataViewAfterViewInitWhiteDragging(){this.dragDropService.draggedEl&&this.dragDropService.draggedElIdentity&&this.dragDropService.draggedEl!==this.draggable.el.nativeElement&&(this.needToRestore=!0)}restoreDragDataViewAfterViewInit(){const e=this.draggable;e.originPlaceholder&&e.originPlaceholder.show!==!1&&e.insertOriginPlaceholder(!0,!1),e.el.nativeElement.style.display="none"}allowAddToBatchGroup(){return this.dragDropService.batchDragGroup?this.batchDragGroup===this.dragDropService.batchDragGroup:!0}addToBatchGroup(e){this.dragDropService.batchDragGroup=this.dragDropService.batchDragGroup||this.batchDragGroup,e?(e.draggable=this.draggable,e.dragData=this.draggable.dragData,this.dragData=e):(this.dragData=this.dragData||{identity:this.draggable.dragIdentity||void 0,draggable:this.draggable,dragData:this.draggable.dragData},this.dragDropService.batchDragData=this.addToArrayIfNotExist(this.dragDropService.batchDragData,this.dragData))}removeFromBatchGroup(e){this.deleteFromArrayIfExist(this.dragDropService.batchDragData,e||this.dragData),this.dragData=void 0,this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length||(this.dragDropService.batchDragGroup=void 0)}addToArrayIfNotExist(e,t){return e=e||[],e.indexOf(t)===-1&&e.push(t),e}deleteFromArrayIfExist(e,t){if(!!e){if(e.length>0){const r=e.indexOf(t);r>-1&&e.splice(r,1)}return e}}findInBatchDragDataByIdentities(){return this.draggable.dragIdentity?this.dragDropService.batchDragData?this.dragDropService.batchDragData.filter(e=>e.identity===this.draggable.dragIdentity).pop():void 0:null}active(){this.batchDragActiveEvent.emit({el:this.draggable.el.nativeElement,data:this.draggable.dragData})}updateDragData(){!this.dragData||Object.assign(this.dragData,{identity:this.draggable.dragIdentity||void 0,draggable:this.draggable,dragData:this.draggable.dragData})}}o(z,"INSTANCE_KEY","__vueDevuiBatchDraggableDirectiveInstance");var Or={mounted(i,e,t){var l;const r=t.ctx.provides,n=b(A.TOKEN,r),s=b(N.TOKEN,r),a=i[z.INSTANCE_KEY]=new z(s,n);a.setInput(e.value),a.mounted(),(l=a.ngOnInit)==null||l.call(a),setTimeout(()=>{var c;(c=a.ngAfterViewInit)==null||c.call(a)},0)},updated(i,e){i[z.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[z.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class Ie extends B{constructor(e,t){super();o(this,"copyStyle",!0);this.el=e,this.dragDropService=t}ngAfterViewInit(){this.cloneNode||this.createView()}ngOnChanges(e){e.domRef&&(this.cloneNode?(this.destroyView(),this.createView()):this.createView())}ngOnDestroy(){this.cloneNode&&this.destroyView()}createView(){this.domRef&&(this.cloneNode=this.domRef.cloneNode(!0),this.copyStyle&&this.dragDropService.copyStyle(this.domRef,this.cloneNode),setTimeout(()=>{this.el.nativeElement.appendChild(this.cloneNode)},0))}destroyView(){this.cloneNode&&(this.el.nativeElement.contains(this.cloneNode)&&this.el.nativeElement.removeChild(this.cloneNode),this.cloneNode=void 0)}updateTemplate(){}}o(Ie,"NAME","d-drag-preview-clone-dom-ref");var ft=D.defineComponent({name:"DDragPreviewCloneDomRef",props:{domRef:Object,copyStyle:{type:Boolean,default:!0}},setup(i,{expose:e}){const t={nativeElement:null},r=D.inject(A.TOKEN),n=new Ie(t,r);return n.setInput(i),D.onMounted(()=>{n.mounted(),D.nextTick(()=>{var s;(s=n.ngAfterViewInit)==null||s.call(n)})}),D.watch(()=>i,(s,a)=>{n.updateInput(s,a)}),D.onBeforeUnmount(()=>{var s;(s=n.ngOnDestroy)==null||s.call(n)}),e({instance:n}),()=>D.createVNode("div",{ref:s=>t.nativeElement=s},null)}});function pt(i,e){e===void 0&&(e=i);for(let t=0;t<i.length;t++){let r=i[t];Array.isArray(r)?(e===i&&(e=i.slice(0,t)),pt(r,e)):e!==i&&e.push(r)}return e}function Cr(){return this._results[Symbol.iterator]()}const Te=class{constructor(){o(this,"dirty",!0);o(this,"_results",[]);o(this,"changes",new M);o(this,"length",0);o(this,"first");o(this,"last");o(this,_r);const e=Symbol.iterator,t=Te.prototype;t[e]||(t[e]=Cr)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=pt(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}};let vt=Te;_r=Symbol.iterator;class Oe{constructor(){o(this,"_result",[]);o(this,"changeSubject",new Mt([]));o(this,"changes",this.changeSubject.asObservable().pipe(Sr(200)))}register(e){if(!e)return;this._result.indexOf(e)===-1&&(this._result.push(e),this.changeSubject.next(this._result))}unregister(e){if(!e)return;const t=this._result.indexOf(e);t>-1&&(this._result.splice(t,1),this.changeSubject.next(this._result))}queryResult(){return this._result.concat([])}}class Ce extends B{constructor(e){super();o(this,"descendantItem");this.drs=e}ngOnInit(){this.drs.register(this.descendantItem)}ngOnDestroy(){this.drs.unregister(this.descendantItem)}}class Ae extends vt{constructor(e){super();o(this,"sub");this.drs=e}on(){this.sub||(this.reset(this.drs.queryResult()),this.sub=this.drs.changes.subscribe(e=>{this.reset(e)}))}off(){this.sub&&this.sub.unsubscribe()}}class Z extends Oe{}o(Z,"TOKEN",Symbol("DRAG_SYNC_DR_SERVICE"));class Q extends Oe{}o(Q,"TOKEN",Symbol("DROP_SORT_SYNC_DR_SERVICE"));class W{constructor(){o(this,"dragSyncList");o(this,"dropSortSyncList")}updateDragSyncList(e){this.dragSyncList=e}getDragSyncByGroup(e){return e?[]:this.dragSyncList?this.dragSyncList.filter(t=>t.dragSyncGroup===e):[]}updateDropSyncList(e){this.dropSortSyncList=e}getDropSyncByGroup(e){return e?[]:this.dropSortSyncList?this.dropSortSyncList.filter(t=>t.dropSyncGroup===e):[]}}o(W,"TOKEN",Symbol("DRAG_DROP_SYNC_SERVICE"));class J extends B{constructor(e,t,r){super();o(this,"sub",new C);o(this,"dragSyncList");o(this,"dropSyncList");this.dragDropSyncService=e,this.dragSyncDrs=t,this.dropSortSyncDrs=r}ngOnInit(){this.dragSyncList=new Ae(this.dragSyncDrs),this.dropSyncList=new Ae(this.dropSortSyncDrs)}ngAfterViewInit(){this.dragSyncList.on(),this.dropSyncList.on(),this.dragDropSyncService.updateDragSyncList(this.dragSyncList),this.dragDropSyncService.updateDropSyncList(this.dropSyncList),this.sub.add(this.dragSyncList.changes.subscribe(e=>this.dragDropSyncService.updateDragSyncList(e))),this.sub.add(this.dropSyncList.changes.subscribe(e=>this.dragDropSyncService.updateDropSyncList(e)))}ngOnDestroy(){this.sub&&this.sub.unsubscribe(),this.dragSyncList.off(),this.dropSyncList.off()}}o(J,"INSTANCE_KEY","__vueDevuiDragDropSyncBoxDirectiveInstance");var mt={created(i,e,t){const r=t.ctx.provides,n=new W,s=new Z,a=new Q;X(W.TOKEN,n,r),X(Z.TOKEN,s,r),X(Q.TOKEN,a,r)},mounted(i,e,t){var c;const r=t.ctx.provides,n=b(W.TOKEN,r),s=b(Z.TOKEN,r),a=b(Q.TOKEN,r),l=i[J.INSTANCE_KEY]=new J(n,s,a);l.setInput(e.value),l.mounted(),(c=l.ngOnInit)==null||c.call(l),setTimeout(()=>{var d;(d=l.ngAfterViewInit)==null||d.call(l)},0)},updated(i,e){i[J.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[J.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class $ extends Ce{constructor(e,t,r,n,s){super(s);o(this,"inputNameMap",{dragSync:"dragSyncGroup",dragSyncGroup:"dragSyncGroup"});o(this,"dragSyncGroup","");o(this,"subscription",new C);o(this,"syncGroupDirectives");o(this,"el",{nativeElement:null});o(this,"subDragElEvent",e=>{this.syncGroupDirectives.forEach(t=>this.renderDisplay(t.el.nativeElement,e))});this.draggable=t,this.dragDropSyncService=r,this.dragDropService=n,this.el.nativeElement=e,this.descendantItem=this}ngOnInit(){this.draggable&&(this.subscription.add(this.draggable.dragElShowHideEvent.subscribe(this.subDragElEvent)),this.subscription.add(this.draggable.beforeDragStartEvent.subscribe(()=>{this.syncGroupDirectives=this.dragDropSyncService.getDragSyncByGroup(this.dragSyncGroup).filter(e=>e!==this),this.dragDropService.dragSyncGroupDirectives=this.syncGroupDirectives})),this.subscription.add(this.draggable.dropEndEvent.subscribe(()=>{this.dragDropService.dragSyncGroupDirectives=void 0,this.syncGroupDirectives=void 0}))),super.ngOnInit()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}renderDisplay(e,t){e.style.display=t?"":"none"}}o($,"INSTANCE_KEY","__vueDevuiDragSyncDirectiveInstance");var St={mounted(i,e,t){var d;const r=t.ctx.provides;let n=b(N.TOKEN,r);(n==null?void 0:n.el.nativeElement)!==i&&(n=void 0);const s=b(W.TOKEN,r),a=b(A.TOKEN,r),l=b(Z.TOKEN,r),c=i[$.INSTANCE_KEY]=new $(i,n,s,a,l);c.setInput(e.value),c.mounted(),(d=c.ngOnInit)==null||d.call(c)},updated(i,e){i[$.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[$.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class ee extends Ce{constructor(e,t,r,n){super(n);o(this,"inputNameMap",{dropSortSync:"dropSyncGroup",dropSyncGroup:"dropSyncGroup",dropSyncDirection:"direction"});o(this,"dropSyncGroup","");o(this,"direction","v");o(this,"subscription",new C);o(this,"syncGroupDirectives");o(this,"placeholder");o(this,"sortContainer");o(this,"el",{nativeElement:null});o(this,"subRenderEvent",e=>{this.syncGroupDirectives=this.dragDropSyncService.getDropSyncByGroup(this.dropSyncGroup).filter(t=>t!==this),this.syncGroupDirectives.forEach(t=>{t.renderPlaceholder(e,this.droppable)})});o(this,"subInsertionEvent",e=>{this.syncGroupDirectives=this.dragDropSyncService.getDropSyncByGroup(this.dropSyncGroup).filter(t=>t!==this),this.syncGroupDirectives.forEach(t=>{t.insertPlaceholderCommand({command:e.command,container:t.sortContainer,relatedEl:t.getChildrenElByIndex(t.sortContainer,e.index)})})});this.droppable=t,this.dragDropSyncService=r,this.el.nativeElement=e,this.descendantItem=this}ngOnInit(){this.sortContainer=this.el.nativeElement,this.droppable&&(this.sortContainer=this.droppable.getSortContainer(),this.subscription.add(this.droppable.placeholderInsertionEvent.subscribe(this.subInsertionEvent)),this.subscription.add(this.droppable.placeholderRenderEvent.subscribe(this.subRenderEvent))),super.ngOnInit()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}getChildrenElByIndex(e,t){return t===void 0||e&&e.children&&e.children.length<t||t<0?null:this.sortContainer.children.item(t)}renderPlaceholder(e,t){this.placeholder||(this.placeholder=document.createElement(t.placeholderTag),this.placeholder.className="drag-placeholder",this.placeholder.classList.add("drag-sync-placeholder"),this.placeholder.innerText=t.placeholderText);const{width:r,height:n}=e;this.direction==="v"?(this.placeholder.style.width=r+"px",this.placeholder.style.height=this.sortContainer.getBoundingClientRect().height+"px"):(this.placeholder.style.height=n+"px",this.placeholder.style.width=this.sortContainer.getBoundingClientRect().width+"px"),p.addElStyles(this.placeholder,t.placeholderStyle)}insertPlaceholderCommand(e){if(e.command==="insertBefore"&&e.container){e.container.insertBefore(this.placeholder,e.relatedEl);return}if(e.command==="append"&&e.container){e.container.appendChild(this.placeholder);return}if(e.command==="remove"&&e.container){e.container.contains(this.placeholder)&&e.container.removeChild(this.placeholder);return}}}o(ee,"INSTANCE_KEY","__vueDevuiDropSortSyncDirectiveInstance");var Dt={mounted(i,e,t){var c;const r=t.ctx.provides;let n=b(K.TOKEN,r);(n==null?void 0:n.el.nativeElement)!==i&&(n=void 0);const s=b(W.TOKEN,r),a=b(Q.TOKEN,r),l=i[ee.INSTANCE_KEY]=new ee(i,n,s,a);l.setInput(e.value),l.mounted(),(c=l.ngOnInit)==null||c.call(l)},updated(i,e){i[ee.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[ee.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}},Ar={title:"DragDropSync \u62D6\u62FD\u540C\u6B65",category:"\u57FA\u7840\u7EC4\u4EF6",install(i){i.directive("dDragDropSyncBox",mt),i.directive("dDragSync",St),i.directive("dDropSortSync",Dt)}},Tr={title:"DragDrop 2.0 \u62D6\u62FD",category:"\u901A\u7528",status:"100%",install(i){i.directive("dDraggable",ot),i.directive("dDroppable",lt),i.directive("dSortable",ct),i.directive("dDropScrollEnhanced",ut),i.directive("dDropScrollEnhancedSide",gt),i.directive("dDraggableBatchDrag",Or),i.directive("dDragPreview",Ir),i.component("DDragPreviewTemplate",nt),i.component(ft.name,ft),i.provide(A.TOKEN,new A),i.use(Ar)}};g.BatchDraggableDirective=z,g.DescendantChildren=Ce,g.DescendantRegisterService=Oe,g.DescendantRoot=Ae,g.DragDropService=A,g.DragDropSyncBox=mt,g.DragDropSyncBoxDirective=J,g.DragDropSyncService=W,g.DragPreviewCloneDomRefComponent=Ie,g.DragPreviewComponent=st,g.DragPreviewDirective=Y,g.DragPreviewTemplate=nt,g.DragSync=St,g.DragSyncDescendantRegisterService=Z,g.DragSyncDirective=$,g.Draggable=ot,g.DraggableDirective=N,g.DropEvent=at,g.DropScrollEnhanceTimingFunctionGroup=ht,g.DropScrollEnhanced=ut,g.DropScrollEnhancedDirective=j,g.DropScrollEnhancedSide=gt,g.DropScrollEnhancedSideDirective=ne,g.DropScrollOrientation=dt,g.DropSortSync=Dt,g.DropSortSyncDescendantRegisterService=Q,g.DropSortSyncDirective=ee,g.Droppable=lt,g.DroppableDirective=K,g.Sortable=ct,g.SortableDirective=ie,g.default=Tr,g.useDragDropService=Er,Object.defineProperty(g,"__esModule",{value:!0}),g[Symbol.toStringTag]="Module"});
|
|
@@ -86,8 +86,7 @@ const DEFAULT_PREFIX = "icon";
|
|
|
86
86
|
const iconProps = {
|
|
87
87
|
name: {
|
|
88
88
|
type: String,
|
|
89
|
-
default: ""
|
|
90
|
-
required: true
|
|
89
|
+
default: ""
|
|
91
90
|
},
|
|
92
91
|
size: {
|
|
93
92
|
type: [Number, String],
|
|
@@ -6379,6 +6378,10 @@ var zhCN = {
|
|
|
6379
6378
|
selectAll: "\u5168\u9009",
|
|
6380
6379
|
ok: "\u786E\u5B9A"
|
|
6381
6380
|
},
|
|
6381
|
+
dataGrid: {
|
|
6382
|
+
selectAll: "\u5168\u9009",
|
|
6383
|
+
ok: "\u786E\u5B9A"
|
|
6384
|
+
},
|
|
6382
6385
|
timePopup: {
|
|
6383
6386
|
ok: "\u786E\u5B9A"
|
|
6384
6387
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var p0=Object.defineProperty;var Ul=Object.getOwnPropertySymbols;var _0=Object.prototype.hasOwnProperty,v0=Object.prototype.propertyIsEnumerable;var Xi=(j,d,vn)=>d in j?p0(j,d,{enumerable:!0,configurable:!0,writable:!0,value:vn}):j[d]=vn,xt=(j,d)=>{for(var vn in d||(d={}))_0.call(d,vn)&&Xi(j,vn,d[vn]);if(Ul)for(var vn of Ul(d))v0.call(d,vn)&&Xi(j,vn,d[vn]);return j};var ee=(j,d,vn)=>(Xi(j,typeof d!="symbol"?d+"":d,vn),vn);(function(j,d){typeof exports=="object"&&typeof module!="undefined"?d(exports,require("vue"),require("@vueuse/core"),require("@floating-ui/dom")):typeof define=="function"&&define.amd?define(["exports","vue","@vueuse/core","@floating-ui/dom"],d):(j=typeof globalThis!="undefined"?globalThis:j||self,d(j.index={},j.Vue,j.core,j.dom))})(this,function(j,d,vn,Xe){"use strict";const Ji={modelValue:{type:[String,Number]},appendToBody:{type:Boolean,default:!1},position:{type:Array,default:["bottom"]},options:{type:Array,default:()=>[]},width:{type:Number},maxHeight:{type:Number},size:{type:String},placeholder:{type:String,default:"Select"},loading:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledKey:{type:String,default:""},remote:{type:Boolean,default:!1},filterMethod:{type:Function},remoteMethod:{type:Function},enableLazyLoad:{type:Boolean,default:!1}},At=Symbol("EditableSelect"),Vl={name:{type:String,default:"",required:!0},size:{type:[Number,String],default:"inherit"},color:{type:String,default:"inherit"},component:{type:Object,default:null},classPrefix:{type:String,default:"icon"},operable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rotate:{type:[Number,String]}},$l={name:{type:String,default:"",required:!0},color:{type:String,default:"inherit"},size:{type:[Number,String],default:"inherit"}};function Et(a,p,u){let x=a;return p&&(x+=`__${p}`),u&&(x+=`--${u}`),x}function Xn(a,p=!1){const u=p?`.devui-${a}`:`devui-${a}`;return{b:()=>Et(u),e:E=>E?Et(u,E):"",m:E=>E?Et(u,"",E):"",em:(E,$)=>E&&$?Et(u,E,$):""}}var w0="",Hl=d.defineComponent({name:"DSvgIcon",props:$l,setup(a){const{name:p,color:u,size:x}=d.toRefs(a),y=Xn("svg-icon"),S=d.computed(()=>`#icon-${p.value}`),A=d.computed(()=>typeof x.value=="number"?`${x.value}px`:x.value),E={width:A.value,height:A.value};return()=>d.createVNode("svg",{class:y.b(),style:E},[d.createVNode("use",{"xlink:href":S.value,fill:u.value},null)])}});function zl(a){return/^((http|https):)?\/\//.test(a)}function Gl(a,p){const{component:u,name:x,size:y,color:S,classPrefix:A,rotate:E}=d.toRefs(a),$=Xn("icon"),Q=d.computed(()=>typeof y.value=="number"?`${y.value}px`:y.value),M=u.value?d.resolveDynamicComponent(u.value):d.resolveDynamicComponent(Hl),z=()=>d.createVNode("img",d.mergeProps({src:x.value,alt:x.value.split("/")[x.value.split("/").length-1],class:[(E==null?void 0:E.value)==="infinite"&&$.m("spin")],style:{width:Q.value||"",transform:`rotate(${E==null?void 0:E.value}deg)`,verticalAlign:"middle"}},p.attrs),null),q=()=>d.createVNode(M,d.mergeProps({name:x.value,color:S.value,size:Q.value,class:[(E==null?void 0:E.value)==="infinite"&&$.m("spin")],style:{transform:`rotate(${E==null?void 0:E.value}deg)`}},p.attrs),null),nn=()=>{const ln=/^icon-/.test(x.value)?x.value:`${A.value}-${x.value}`;return d.createVNode("i",d.mergeProps({class:[A.value,ln,(E==null?void 0:E.value)==="infinite"&&$.m("spin")],style:{fontSize:Q.value,color:S.value,transform:`rotate(${E==null?void 0:E.value}deg)`}},p.attrs),null)};return{iconDom:()=>u.value?q():zl(x.value)?z():nn()}}var Qi=d.defineComponent({name:"DIcon",props:Vl,emits:["click"],setup(a,p){const{disabled:u,operable:x}=d.toRefs(a),{iconDom:y}=Gl(a,p),S=Xn("icon"),A=d.computed(()=>({[S.e("container")]:!0,[S.m("disabled")]:u.value,[S.m("operable")]:x.value,[S.m("no-slots")]:!Object.keys(p.slots).length})),E=$=>{u.value||p.emit("click",$)};return()=>{var $,Q,M,z;return d.createVNode("div",{class:A.value,onClick:E},[(Q=($=p.slots).prefix)==null?void 0:Q.call($),y(),(z=(M=p.slots).suffix)==null?void 0:z.call(M)])}}});const Kl={modelValue:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}};function ql(){if(document.documentElement.scrollHeight>document.documentElement.clientHeight){const a=document.documentElement.scrollTop,p=document.documentElement.getAttribute("style");return document.documentElement.style.position="fixed",document.documentElement.style.top=`-${a}px`,document.documentElement.style.width=document.documentElement.style.width||"100%",document.documentElement.style.overflowY="scroll",()=>{p?document.documentElement.setAttribute("style",p):document.documentElement.removeAttribute("style"),document.documentElement.scrollTop=a}}}function Yl(a,p){let u;const x=S=>{S.preventDefault(),p.emit("click",S),a.closeOnClickOverlay&&p.emit("update:modelValue",!1)},y=()=>{u==null||u()};return d.watch(()=>a.modelValue,S=>{S?a.lockScroll&&(u=ql()):y()}),d.onUnmounted(y),{onClick:x}}var y0="";d.defineComponent({name:"DFixedOverlay",inheritAttrs:!1,props:Kl,emits:["update:modelValue","click"],setup(a,p){const{modelValue:u}=d.toRefs(a),x=Xn("fixed-overlay"),{onClick:y}=Yl(a,p);return()=>d.createVNode(d.Transition,{name:x.m("fade")},{default:()=>{var S,A;return[u.value&&d.createVNode("div",d.mergeProps({class:x.b()},p.attrs,{onClick:y}),[(A=(S=p.slots).default)==null?void 0:A.call(S)])]}})}});const Zl={modelValue:{type:Boolean,default:!1},origin:{type:Object,require:!0},position:{type:Array,default:["bottom"]},offset:{type:[Number,Object],default:8},shiftOffset:{type:Number},align:{type:String,default:null},showArrow:{type:Boolean,default:!1},isArrowCenter:{type:Boolean,default:!0},clickEventBubble:{type:Boolean,default:!1}};function Xl(a){const p=/(auto|scroll|hidden)/;for(let u=a;u=u.parentElement;u.parentElement!==document.body){const x=window.getComputedStyle(u);if(p.test(x.overflow+x.overflowX+x.overflowY))return u}return window}function Jl(a,p,u,x){let{x:y,y:S}=p;if(!a){const{width:A,height:E}=x;y&&u.includes("start")&&(y=12),y&&u.includes("end")&&(y=Math.round(A-24)),S&&u.includes("start")&&(S=10),S&&u.includes("end")&&(S=E-14)}return{x:y,y:S}}function Ql(a,p){const u=d.ref(),x=d.ref();let y=null;const S=(E,$,Q,M)=>{const{x:z,y:q}=Jl(a.isArrowCenter,Q,$,M.getBoundingClientRect()),nn={top:"bottom",right:"left",bottom:"top",left:"right"}[$.split("-")[0]];Object.assign(E.style,{left:z?`${z}px`:"",top:q?`${q}px`:"",right:"",bottom:"",[nn]:"-4px"})},A=async()=>{const E=a.origin,$=d.unref(u.value),Q=d.unref(x.value),M=[Xe.offset(a.offset),Xe.autoPlacement({alignment:a.align,allowedPlacements:a.position})];if(a.showArrow&&M.push(Xe.arrow({element:Q})),a.shiftOffset!==void 0&&M.push(Xe.shift()),!$)return;const{x:z,y:q,placement:nn,middlewareData:rn}=await Xe.computePosition(E,$,{strategy:"fixed",middleware:M});let ln=z,T=q;if(a.shiftOffset!==void 0){const{x:O,y:hn}=rn.shift;O<0&&(ln-=a.shiftOffset),O>0&&(ln+=a.shiftOffset),hn<0&&(T-=a.shiftOffset),hn>0&&(T+=a.shiftOffset)}p("positionChange",nn),Object.assign($.style,{top:`${T}px`,left:`${ln}px`}),a.showArrow&&S(Q,nn,rn.arrow,$)};return d.watch(()=>a.modelValue,()=>{a.modelValue&&a.origin?(y=Xl(a.origin),d.nextTick(A),y==null||y.addEventListener("scroll",A),y!==window&&window.addEventListener("scroll",A),window.addEventListener("resize",A)):(y==null||y.removeEventListener("scroll",A),y!==window&&window.removeEventListener("scroll",A),window.removeEventListener("resize",A))}),d.onUnmounted(()=>{y==null||y.removeEventListener("scroll",A),y!==window&&window.removeEventListener("scroll",A),window.removeEventListener("resize",A)}),{arrowRef:x,overlayRef:u,updatePosition:A}}var x0="";const kl=d.defineComponent({name:"DFlexibleOverlay",inheritAttrs:!1,props:Zl,emits:["update:modelValue","positionChange"],setup(a,{slots:p,attrs:u,emit:x,expose:y}){const S=Xn("flexible-overlay"),{clickEventBubble:A}=d.toRefs(a),{arrowRef:E,overlayRef:$,updatePosition:Q}=Ql(a,x);return y({updatePosition:Q}),()=>{var M;return a.modelValue&&d.createVNode("div",d.mergeProps({ref:$,class:S.b()},u,{onClick:d.withModifiers(()=>({}),[A.value?"":"stop"]),onPointerup:d.withModifiers(()=>({}),["stop"])}),[(M=p.default)==null?void 0:M.call(p),a.showArrow&&d.createVNode("div",{ref:E,class:S.e("arrow")},null)])}}}),jl={options:{type:Array,default:()=>[]},width:{type:Number},maxHeight:{type:Number}},nf={label:{type:String},value:{type:[String,Number]},disabled:{type:Boolean,default:!1},hovering:{type:Boolean,default:!1}};function ef(a){const p=Xn("editable-select"),u=d.inject(At),{disabled:x,hovering:y}=d.toRefs(a),S=d.computed(()=>{var E;return((E=u==null?void 0:u.modelValue)==null?void 0:E.value)===a.value});return{optionClasses:d.computed(()=>({[p.e("item")]:!0,[p.em("item","selected")]:S.value,[p.em("item","disabled")]:x.value,[p.em("item","hover")]:y.value,[p.em("item","no-data-tip")]:!(a.label||a.value)}))}}var tf=d.defineComponent({name:"DEditableSelectOption",props:nf,emits:["select"],setup(a,p){const{optionClasses:u}=ef(a),x=d.computed(()=>a.label||a.value),y=()=>{a.disabled||p.emit("select")};return()=>d.createVNode("li",{class:u.value,onClick:y},[p.slots.default?p.slots.default():x.value])}});class ki{constructor(){ee(this,"top","50%");ee(this,"left","50%")}}const rf={message:String,backdrop:Boolean,view:{type:Object,default:()=>new ki},zIndex:Number,isFull:{type:Boolean,default:!1}};class uf{constructor(){ee(this,"target");ee(this,"message");ee(this,"loadingTemplateRef");ee(this,"backdrop",!0);ee(this,"positionType","relative");ee(this,"view",new ki);ee(this,"zIndex")}}var A0="",of=d.defineComponent({name:"Loading",inheritAttrs:!1,props:rf,setup(a){const p={top:a.view.top,left:a.view.left,zIndex:a.zIndex};a.message||(p.background="none");const u=d.ref(!1);return{style:p,isShow:u,open:()=>{u.value=!0},close:()=>{u.value=!1}}},render(){var E;const{isShow:a,isFull:p,backdrop:u,style:x,message:y,$slots:S}=this,A=Xn("loading");return a&&d.createVNode("div",{class:[A.b(),p?A.m("full"):""]},[((E=S.default)==null?void 0:E.call(S))||d.createVNode("div",{class:A.e("wrapper")},[u?d.createVNode("div",{class:A.e("mask")},null):null,d.createVNode("div",{style:x,class:A.e("area")},[d.createVNode("div",{class:A.e("busy-default-spinner")},[d.createVNode("div",{class:A.e("bar1")},null),d.createVNode("div",{class:A.e("bar2")},null),d.createVNode("div",{class:A.e("bar3")},null),d.createVNode("div",{class:A.e("bar4")},null)]),y?d.createVNode("span",{class:A.e("text")},[y]):null])])])}});const ji=Symbol("dev_component_container");function lf(a,p,u=null){const x=d.h(a,xt({},p),u),y=document.createElement("div");return x[ji]=y,d.render(x,y),x.component}function ff(a){d.render(null,a==null?void 0:a.vnode[ji])}const sf=d.defineComponent(of),Je=new WeakSet,yr=a=>{if(!a)return!0;if(Array.isArray(a))return a.length===0;if(a instanceof Set||a instanceof Map)return a.size===0;if(a instanceof Promise)return!1;if(typeof a=="object")try{return Object.keys(a).length===0}catch{return!1}return!1},nu=a=>Object.prototype.toString.call(a).slice(8,-1).toLowerCase(),af=a=>{switch(nu(a)){case"promise":return[a];case"array":return a.some(u=>nu(u)!=="promise")?(console.error(new TypeError("Binding values should all be of type Promise")),"error"):a;default:return!1}},eu=a=>{Je.delete(a),a.instance.proxy.close(),ff(a.instance)},tu=(a,p)=>{var u,x,y;if(p.value){const S=af(p.value);if(S==="error")return;(y=(x=(u=a==null?void 0:a.instance)==null?void 0:u.proxy)==null?void 0:x.open)==null||y.call(x),a.appendChild(a.mask),Je.add(a),S&&Promise.all(S).catch(A=>{console.error(new Error("Promise handling errors"),A)}).finally(()=>{eu(a)})}else eu(a)},ru=a=>{a.removeAttribute("zindex"),a.removeAttribute("positiontype"),a.removeAttribute("backdrop"),a.removeAttribute("message"),a.removeAttribute("view"),a.removeAttribute("loadingtemplateref")},iu=(a,p)=>{var S;const u=xt(xt({},new uf),p),x=u.loadingTemplateRef,y=lf(sf,xt({},u),x?()=>x:null);a.style.position=u.positionType||"relative",a.options=u,a.instance=y,a.mask=(S=y==null?void 0:y.proxy)==null?void 0:S.$el},cf={mounted:function(a,p,u){iu(a,u.props),ru(a),!yr(p.value)&&tu(a,p)},updated:function(a,p,u){!yr(p.value)&&Je.has(a)||yr(p.value)&&!Je.has(a)||(!Je.has(a)&&iu(a,u.props),ru(a),tu(a,p))}};var Qe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Jn={exports:{}};/**
|
|
1
|
+
var p0=Object.defineProperty;var Ul=Object.getOwnPropertySymbols;var _0=Object.prototype.hasOwnProperty,v0=Object.prototype.propertyIsEnumerable;var Xi=(j,d,vn)=>d in j?p0(j,d,{enumerable:!0,configurable:!0,writable:!0,value:vn}):j[d]=vn,xt=(j,d)=>{for(var vn in d||(d={}))_0.call(d,vn)&&Xi(j,vn,d[vn]);if(Ul)for(var vn of Ul(d))v0.call(d,vn)&&Xi(j,vn,d[vn]);return j};var ee=(j,d,vn)=>(Xi(j,typeof d!="symbol"?d+"":d,vn),vn);(function(j,d){typeof exports=="object"&&typeof module!="undefined"?d(exports,require("vue"),require("@vueuse/core"),require("@floating-ui/dom")):typeof define=="function"&&define.amd?define(["exports","vue","@vueuse/core","@floating-ui/dom"],d):(j=typeof globalThis!="undefined"?globalThis:j||self,d(j.index={},j.Vue,j.core,j.dom))})(this,function(j,d,vn,Xe){"use strict";const Ji={modelValue:{type:[String,Number]},appendToBody:{type:Boolean,default:!1},position:{type:Array,default:["bottom"]},options:{type:Array,default:()=>[]},width:{type:Number},maxHeight:{type:Number},size:{type:String},placeholder:{type:String,default:"Select"},loading:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledKey:{type:String,default:""},remote:{type:Boolean,default:!1},filterMethod:{type:Function},remoteMethod:{type:Function},enableLazyLoad:{type:Boolean,default:!1}},At=Symbol("EditableSelect"),Vl={name:{type:String,default:""},size:{type:[Number,String],default:"inherit"},color:{type:String,default:"inherit"},component:{type:Object,default:null},classPrefix:{type:String,default:"icon"},operable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rotate:{type:[Number,String]}},$l={name:{type:String,default:"",required:!0},color:{type:String,default:"inherit"},size:{type:[Number,String],default:"inherit"}};function Et(a,p,u){let x=a;return p&&(x+=`__${p}`),u&&(x+=`--${u}`),x}function Xn(a,p=!1){const u=p?`.devui-${a}`:`devui-${a}`;return{b:()=>Et(u),e:E=>E?Et(u,E):"",m:E=>E?Et(u,"",E):"",em:(E,$)=>E&&$?Et(u,E,$):""}}var w0="",Hl=d.defineComponent({name:"DSvgIcon",props:$l,setup(a){const{name:p,color:u,size:x}=d.toRefs(a),y=Xn("svg-icon"),S=d.computed(()=>`#icon-${p.value}`),A=d.computed(()=>typeof x.value=="number"?`${x.value}px`:x.value),E={width:A.value,height:A.value};return()=>d.createVNode("svg",{class:y.b(),style:E},[d.createVNode("use",{"xlink:href":S.value,fill:u.value},null)])}});function zl(a){return/^((http|https):)?\/\//.test(a)}function Gl(a,p){const{component:u,name:x,size:y,color:S,classPrefix:A,rotate:E}=d.toRefs(a),$=Xn("icon"),Q=d.computed(()=>typeof y.value=="number"?`${y.value}px`:y.value),M=u.value?d.resolveDynamicComponent(u.value):d.resolveDynamicComponent(Hl),z=()=>d.createVNode("img",d.mergeProps({src:x.value,alt:x.value.split("/")[x.value.split("/").length-1],class:[(E==null?void 0:E.value)==="infinite"&&$.m("spin")],style:{width:Q.value||"",transform:`rotate(${E==null?void 0:E.value}deg)`,verticalAlign:"middle"}},p.attrs),null),q=()=>d.createVNode(M,d.mergeProps({name:x.value,color:S.value,size:Q.value,class:[(E==null?void 0:E.value)==="infinite"&&$.m("spin")],style:{transform:`rotate(${E==null?void 0:E.value}deg)`}},p.attrs),null),nn=()=>{const ln=/^icon-/.test(x.value)?x.value:`${A.value}-${x.value}`;return d.createVNode("i",d.mergeProps({class:[A.value,ln,(E==null?void 0:E.value)==="infinite"&&$.m("spin")],style:{fontSize:Q.value,color:S.value,transform:`rotate(${E==null?void 0:E.value}deg)`}},p.attrs),null)};return{iconDom:()=>u.value?q():zl(x.value)?z():nn()}}var Qi=d.defineComponent({name:"DIcon",props:Vl,emits:["click"],setup(a,p){const{disabled:u,operable:x}=d.toRefs(a),{iconDom:y}=Gl(a,p),S=Xn("icon"),A=d.computed(()=>({[S.e("container")]:!0,[S.m("disabled")]:u.value,[S.m("operable")]:x.value,[S.m("no-slots")]:!Object.keys(p.slots).length})),E=$=>{u.value||p.emit("click",$)};return()=>{var $,Q,M,z;return d.createVNode("div",{class:A.value,onClick:E},[(Q=($=p.slots).prefix)==null?void 0:Q.call($),y(),(z=(M=p.slots).suffix)==null?void 0:z.call(M)])}}});const Kl={modelValue:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}};function ql(){if(document.documentElement.scrollHeight>document.documentElement.clientHeight){const a=document.documentElement.scrollTop,p=document.documentElement.getAttribute("style");return document.documentElement.style.position="fixed",document.documentElement.style.top=`-${a}px`,document.documentElement.style.width=document.documentElement.style.width||"100%",document.documentElement.style.overflowY="scroll",()=>{p?document.documentElement.setAttribute("style",p):document.documentElement.removeAttribute("style"),document.documentElement.scrollTop=a}}}function Yl(a,p){let u;const x=S=>{S.preventDefault(),p.emit("click",S),a.closeOnClickOverlay&&p.emit("update:modelValue",!1)},y=()=>{u==null||u()};return d.watch(()=>a.modelValue,S=>{S?a.lockScroll&&(u=ql()):y()}),d.onUnmounted(y),{onClick:x}}var y0="";d.defineComponent({name:"DFixedOverlay",inheritAttrs:!1,props:Kl,emits:["update:modelValue","click"],setup(a,p){const{modelValue:u}=d.toRefs(a),x=Xn("fixed-overlay"),{onClick:y}=Yl(a,p);return()=>d.createVNode(d.Transition,{name:x.m("fade")},{default:()=>{var S,A;return[u.value&&d.createVNode("div",d.mergeProps({class:x.b()},p.attrs,{onClick:y}),[(A=(S=p.slots).default)==null?void 0:A.call(S)])]}})}});const Zl={modelValue:{type:Boolean,default:!1},origin:{type:Object,require:!0},position:{type:Array,default:["bottom"]},offset:{type:[Number,Object],default:8},shiftOffset:{type:Number},align:{type:String,default:null},showArrow:{type:Boolean,default:!1},isArrowCenter:{type:Boolean,default:!0},clickEventBubble:{type:Boolean,default:!1}};function Xl(a){const p=/(auto|scroll|hidden)/;for(let u=a;u=u.parentElement;u.parentElement!==document.body){const x=window.getComputedStyle(u);if(p.test(x.overflow+x.overflowX+x.overflowY))return u}return window}function Jl(a,p,u,x){let{x:y,y:S}=p;if(!a){const{width:A,height:E}=x;y&&u.includes("start")&&(y=12),y&&u.includes("end")&&(y=Math.round(A-24)),S&&u.includes("start")&&(S=10),S&&u.includes("end")&&(S=E-14)}return{x:y,y:S}}function Ql(a,p){const u=d.ref(),x=d.ref();let y=null;const S=(E,$,Q,M)=>{const{x:z,y:q}=Jl(a.isArrowCenter,Q,$,M.getBoundingClientRect()),nn={top:"bottom",right:"left",bottom:"top",left:"right"}[$.split("-")[0]];Object.assign(E.style,{left:z?`${z}px`:"",top:q?`${q}px`:"",right:"",bottom:"",[nn]:"-4px"})},A=async()=>{const E=a.origin,$=d.unref(u.value),Q=d.unref(x.value),M=[Xe.offset(a.offset),Xe.autoPlacement({alignment:a.align,allowedPlacements:a.position})];if(a.showArrow&&M.push(Xe.arrow({element:Q})),a.shiftOffset!==void 0&&M.push(Xe.shift()),!$)return;const{x:z,y:q,placement:nn,middlewareData:rn}=await Xe.computePosition(E,$,{strategy:"fixed",middleware:M});let ln=z,T=q;if(a.shiftOffset!==void 0){const{x:O,y:hn}=rn.shift;O<0&&(ln-=a.shiftOffset),O>0&&(ln+=a.shiftOffset),hn<0&&(T-=a.shiftOffset),hn>0&&(T+=a.shiftOffset)}p("positionChange",nn),Object.assign($.style,{top:`${T}px`,left:`${ln}px`}),a.showArrow&&S(Q,nn,rn.arrow,$)};return d.watch(()=>a.modelValue,()=>{a.modelValue&&a.origin?(y=Xl(a.origin),d.nextTick(A),y==null||y.addEventListener("scroll",A),y!==window&&window.addEventListener("scroll",A),window.addEventListener("resize",A)):(y==null||y.removeEventListener("scroll",A),y!==window&&window.removeEventListener("scroll",A),window.removeEventListener("resize",A))}),d.onUnmounted(()=>{y==null||y.removeEventListener("scroll",A),y!==window&&window.removeEventListener("scroll",A),window.removeEventListener("resize",A)}),{arrowRef:x,overlayRef:u,updatePosition:A}}var x0="";const kl=d.defineComponent({name:"DFlexibleOverlay",inheritAttrs:!1,props:Zl,emits:["update:modelValue","positionChange"],setup(a,{slots:p,attrs:u,emit:x,expose:y}){const S=Xn("flexible-overlay"),{clickEventBubble:A}=d.toRefs(a),{arrowRef:E,overlayRef:$,updatePosition:Q}=Ql(a,x);return y({updatePosition:Q}),()=>{var M;return a.modelValue&&d.createVNode("div",d.mergeProps({ref:$,class:S.b()},u,{onClick:d.withModifiers(()=>({}),[A.value?"":"stop"]),onPointerup:d.withModifiers(()=>({}),["stop"])}),[(M=p.default)==null?void 0:M.call(p),a.showArrow&&d.createVNode("div",{ref:E,class:S.e("arrow")},null)])}}}),jl={options:{type:Array,default:()=>[]},width:{type:Number},maxHeight:{type:Number}},nf={label:{type:String},value:{type:[String,Number]},disabled:{type:Boolean,default:!1},hovering:{type:Boolean,default:!1}};function ef(a){const p=Xn("editable-select"),u=d.inject(At),{disabled:x,hovering:y}=d.toRefs(a),S=d.computed(()=>{var E;return((E=u==null?void 0:u.modelValue)==null?void 0:E.value)===a.value});return{optionClasses:d.computed(()=>({[p.e("item")]:!0,[p.em("item","selected")]:S.value,[p.em("item","disabled")]:x.value,[p.em("item","hover")]:y.value,[p.em("item","no-data-tip")]:!(a.label||a.value)}))}}var tf=d.defineComponent({name:"DEditableSelectOption",props:nf,emits:["select"],setup(a,p){const{optionClasses:u}=ef(a),x=d.computed(()=>a.label||a.value),y=()=>{a.disabled||p.emit("select")};return()=>d.createVNode("li",{class:u.value,onClick:y},[p.slots.default?p.slots.default():x.value])}});class ki{constructor(){ee(this,"top","50%");ee(this,"left","50%")}}const rf={message:String,backdrop:Boolean,view:{type:Object,default:()=>new ki},zIndex:Number,isFull:{type:Boolean,default:!1}};class uf{constructor(){ee(this,"target");ee(this,"message");ee(this,"loadingTemplateRef");ee(this,"backdrop",!0);ee(this,"positionType","relative");ee(this,"view",new ki);ee(this,"zIndex")}}var A0="",of=d.defineComponent({name:"Loading",inheritAttrs:!1,props:rf,setup(a){const p={top:a.view.top,left:a.view.left,zIndex:a.zIndex};a.message||(p.background="none");const u=d.ref(!1);return{style:p,isShow:u,open:()=>{u.value=!0},close:()=>{u.value=!1}}},render(){var E;const{isShow:a,isFull:p,backdrop:u,style:x,message:y,$slots:S}=this,A=Xn("loading");return a&&d.createVNode("div",{class:[A.b(),p?A.m("full"):""]},[((E=S.default)==null?void 0:E.call(S))||d.createVNode("div",{class:A.e("wrapper")},[u?d.createVNode("div",{class:A.e("mask")},null):null,d.createVNode("div",{style:x,class:A.e("area")},[d.createVNode("div",{class:A.e("busy-default-spinner")},[d.createVNode("div",{class:A.e("bar1")},null),d.createVNode("div",{class:A.e("bar2")},null),d.createVNode("div",{class:A.e("bar3")},null),d.createVNode("div",{class:A.e("bar4")},null)]),y?d.createVNode("span",{class:A.e("text")},[y]):null])])])}});const ji=Symbol("dev_component_container");function lf(a,p,u=null){const x=d.h(a,xt({},p),u),y=document.createElement("div");return x[ji]=y,d.render(x,y),x.component}function ff(a){d.render(null,a==null?void 0:a.vnode[ji])}const sf=d.defineComponent(of),Je=new WeakSet,yr=a=>{if(!a)return!0;if(Array.isArray(a))return a.length===0;if(a instanceof Set||a instanceof Map)return a.size===0;if(a instanceof Promise)return!1;if(typeof a=="object")try{return Object.keys(a).length===0}catch{return!1}return!1},nu=a=>Object.prototype.toString.call(a).slice(8,-1).toLowerCase(),af=a=>{switch(nu(a)){case"promise":return[a];case"array":return a.some(u=>nu(u)!=="promise")?(console.error(new TypeError("Binding values should all be of type Promise")),"error"):a;default:return!1}},eu=a=>{Je.delete(a),a.instance.proxy.close(),ff(a.instance)},tu=(a,p)=>{var u,x,y;if(p.value){const S=af(p.value);if(S==="error")return;(y=(x=(u=a==null?void 0:a.instance)==null?void 0:u.proxy)==null?void 0:x.open)==null||y.call(x),a.appendChild(a.mask),Je.add(a),S&&Promise.all(S).catch(A=>{console.error(new Error("Promise handling errors"),A)}).finally(()=>{eu(a)})}else eu(a)},ru=a=>{a.removeAttribute("zindex"),a.removeAttribute("positiontype"),a.removeAttribute("backdrop"),a.removeAttribute("message"),a.removeAttribute("view"),a.removeAttribute("loadingtemplateref")},iu=(a,p)=>{var S;const u=xt(xt({},new uf),p),x=u.loadingTemplateRef,y=lf(sf,xt({},u),x?()=>x:null);a.style.position=u.positionType||"relative",a.options=u,a.instance=y,a.mask=(S=y==null?void 0:y.proxy)==null?void 0:S.$el},cf={mounted:function(a,p,u){iu(a,u.props),ru(a),!yr(p.value)&&tu(a,p)},updated:function(a,p,u){!yr(p.value)&&Je.has(a)||yr(p.value)&&!Je.has(a)||(!Je.has(a)&&iu(a,u.props),ru(a),tu(a,p))}};var Qe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Jn={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -24,4 +24,4 @@ __p += '`),H&&(w+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+w+`return __p
|
|
27
|
-
}`;var N=Ml(function(){return G(l,I+"return "+w).apply(u,f)});if(N.source=w,Wi(N))throw N;return N}function Ap(n){return K(n).toLowerCase()}function Ep(n){return K(n).toUpperCase()}function bp(n,e,t){if(n=K(n),n&&(t||e===u))return Gu(n);if(!n||!(e=Tn(e)))return n;var r=Kn(n),i=Kn(e),l=Ku(r,i),f=qu(r,i)+1;return Ae(r,l,f).join("")}function Sp(n,e,t){if(n=K(n),n&&(t||e===u))return n.slice(0,Zu(n)+1);if(!n||!(e=Tn(e)))return n;var r=Kn(n),i=qu(r,Kn(e))+1;return Ae(r,0,i).join("")}function Cp(n,e,t){if(n=K(n),n&&(t||e===u))return n.replace(Wr,"");if(!n||!(e=Tn(e)))return n;var r=Kn(n),i=Ku(r,Kn(e));return Ae(r,i).join("")}function Ip(n,e){var t=Er,r=br;if(en(e)){var i="separator"in e?e.separator:i;t="length"in e?P(e.length):t,r="omission"in e?Tn(e.omission):r}n=K(n);var l=n.length;if(Ne(n)){var f=Kn(n);l=f.length}if(t>=l)return n;var s=t-We(r);if(s<1)return r;var h=f?Ae(f,0,s).join(""):n.slice(0,s);if(i===u)return h+r;if(f&&(s+=h.length-s),Ui(i)){if(n.slice(s).search(i)){var v,m=h;for(i.global||(i=ei(i.source,K(hu.exec(i))+"g")),i.lastIndex=0;v=i.exec(m);)var w=v.index;h=h.slice(0,w===u?s:w)}}else if(n.indexOf(Tn(i),s)!=s){var b=h.lastIndexOf(i);b>-1&&(h=h.slice(0,b))}return h+r}function Fp(n){return n=K(n),n&&Uf.test(n)?n.replace(su,ra):n}var Tp=Ke(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Hi=No("toUpperCase");function Pl(n,e,t){return n=K(n),e=t?u:e,e===u?ks(n)?oa(n):zs(n):n.match(e)||[]}var Ml=W(function(n,e){try{return In(n,u,e)}catch(t){return Wi(t)?t:new B(t)}}),Rp=se(function(n,e){return Pn(e,function(t){t=ne(t),le(n,t,Mi(n[t],n))}),n});function Lp(n){var e=n==null?0:n.length,t=F();return n=e?k(n,function(r){if(typeof r[1]!="function")throw new Mn(A);return[t(r[0]),r[1]]}):[],W(function(r){for(var i=-1;++i<e;){var l=n[i];if(In(l[0],this,r))return In(l[1],this,r)}})}function Op(n){return rc(Wn(n,z))}function zi(n){return function(){return n}}function Bp(n,e){return n==null||n!==n?e:n}var Dp=Uo(),Pp=Uo(!0);function Cn(n){return n}function Gi(n){return po(typeof n=="function"?n:Wn(n,z))}function Mp(n){return vo(Wn(n,z))}function Np(n,e){return mo(n,Wn(e,z))}var Wp=W(function(n,e){return function(t){return gt(t,n,e)}}),Up=W(function(n,e){return function(t){return gt(n,t,e)}});function Ki(n,e,t){var r=cn(e),i=nr(e,r);t==null&&!(en(e)&&(i.length||!r.length))&&(t=e,e=n,n=this,i=nr(e,cn(e)));var l=!(en(t)&&"chain"in t)||!!t.chain,f=ce(n);return Pn(i,function(s){var h=e[s];n[s]=h,f&&(n.prototype[s]=function(){var v=this.__chain__;if(l||v){var m=n(this.__wrapped__),w=m.__actions__=En(this.__actions__);return w.push({func:h,args:arguments,thisArg:n}),m.__chain__=v,m}return h.apply(n,_e([this.value()],arguments))})}),n}function Vp(){return dn._===this&&(dn._=ha),this}function qi(){}function $p(n){return n=P(n),W(function(e){return wo(e,n)})}var Hp=Ei(k),zp=Ei(Uu),Gp=Ei(Zr);function Nl(n){return Ri(n)?Xr(ne(n)):yc(n)}function Kp(n){return function(e){return n==null?u:Te(n,e)}}var qp=$o(),Yp=$o(!0);function Yi(){return[]}function Zi(){return!1}function Zp(){return{}}function Xp(){return""}function Jp(){return!0}function Qp(n,e){if(n=P(n),n<1||n>An)return[];var t=Qn,r=pn(n,Qn);e=F(e),n-=Qn;for(var i=kr(r,e);++t<n;)e(t);return i}function kp(n){return D(n)?k(n,ne):Rn(n)?[n]:En(rl(K(n)))}function jp(n){var e=++aa;return K(n)+e}var n0=or(function(n,e){return n+e},0),e0=bi("ceil"),t0=or(function(n,e){return n/e},1),r0=bi("floor");function i0(n){return n&&n.length?jt(n,Cn,si):u}function u0(n,e){return n&&n.length?jt(n,F(e,2),si):u}function o0(n){return Hu(n,Cn)}function l0(n,e){return Hu(n,F(e,2))}function f0(n){return n&&n.length?jt(n,Cn,di):u}function s0(n,e){return n&&n.length?jt(n,F(e,2),di):u}var a0=or(function(n,e){return n*e},1),c0=bi("round"),h0=or(function(n,e){return n-e},0);function d0(n){return n&&n.length?Qr(n,Cn):0}function g0(n,e){return n&&n.length?Qr(n,F(e,2)):0}return o.after=Md,o.ary=gl,o.assign=Eg,o.assignIn=Fl,o.assignInWith=wr,o.assignWith=bg,o.at=Sg,o.before=pl,o.bind=Mi,o.bindAll=Rp,o.bindKey=_l,o.castArray=Zd,o.chain=cl,o.chunk=rh,o.compact=ih,o.concat=uh,o.cond=Lp,o.conforms=Op,o.constant=zi,o.countBy=dd,o.create=Cg,o.curry=vl,o.curryRight=ml,o.debounce=wl,o.defaults=Ig,o.defaultsDeep=Fg,o.defer=Nd,o.delay=Wd,o.difference=oh,o.differenceBy=lh,o.differenceWith=fh,o.drop=sh,o.dropRight=ah,o.dropRightWhile=ch,o.dropWhile=hh,o.fill=dh,o.filter=pd,o.flatMap=md,o.flatMapDeep=wd,o.flatMapDepth=yd,o.flatten=ll,o.flattenDeep=gh,o.flattenDepth=ph,o.flip=Ud,o.flow=Dp,o.flowRight=Pp,o.fromPairs=_h,o.functions=Pg,o.functionsIn=Mg,o.groupBy=xd,o.initial=mh,o.intersection=wh,o.intersectionBy=yh,o.intersectionWith=xh,o.invert=Wg,o.invertBy=Ug,o.invokeMap=Ed,o.iteratee=Gi,o.keyBy=bd,o.keys=cn,o.keysIn=Sn,o.map=dr,o.mapKeys=$g,o.mapValues=Hg,o.matches=Mp,o.matchesProperty=Np,o.memoize=pr,o.merge=zg,o.mergeWith=Tl,o.method=Wp,o.methodOf=Up,o.mixin=Ki,o.negate=_r,o.nthArg=$p,o.omit=Gg,o.omitBy=Kg,o.once=Vd,o.orderBy=Sd,o.over=Hp,o.overArgs=$d,o.overEvery=zp,o.overSome=Gp,o.partial=Ni,o.partialRight=yl,o.partition=Cd,o.pick=qg,o.pickBy=Rl,o.property=Nl,o.propertyOf=Kp,o.pull=Sh,o.pullAll=sl,o.pullAllBy=Ch,o.pullAllWith=Ih,o.pullAt=Fh,o.range=qp,o.rangeRight=Yp,o.rearg=Hd,o.reject=Td,o.remove=Th,o.rest=zd,o.reverse=Di,o.sampleSize=Ld,o.set=Zg,o.setWith=Xg,o.shuffle=Od,o.slice=Rh,o.sortBy=Pd,o.sortedUniq=Nh,o.sortedUniqBy=Wh,o.split=mp,o.spread=Gd,o.tail=Uh,o.take=Vh,o.takeRight=$h,o.takeRightWhile=Hh,o.takeWhile=zh,o.tap=id,o.throttle=Kd,o.thru=hr,o.toArray=Sl,o.toPairs=Ll,o.toPairsIn=Ol,o.toPath=kp,o.toPlainObject=Il,o.transform=Jg,o.unary=qd,o.union=Gh,o.unionBy=Kh,o.unionWith=qh,o.uniq=Yh,o.uniqBy=Zh,o.uniqWith=Xh,o.unset=Qg,o.unzip=Pi,o.unzipWith=al,o.update=kg,o.updateWith=jg,o.values=Ze,o.valuesIn=np,o.without=Jh,o.words=Pl,o.wrap=Yd,o.xor=Qh,o.xorBy=kh,o.xorWith=jh,o.zip=nd,o.zipObject=ed,o.zipObjectDeep=td,o.zipWith=rd,o.entries=Ll,o.entriesIn=Ol,o.extend=Fl,o.extendWith=wr,Ki(o,o),o.add=n0,o.attempt=Ml,o.camelCase=ip,o.capitalize=Bl,o.ceil=e0,o.clamp=ep,o.clone=Xd,o.cloneDeep=Qd,o.cloneDeepWith=kd,o.cloneWith=Jd,o.conformsTo=jd,o.deburr=Dl,o.defaultTo=Bp,o.divide=t0,o.endsWith=up,o.eq=Yn,o.escape=op,o.escapeRegExp=lp,o.every=gd,o.find=_d,o.findIndex=ul,o.findKey=Tg,o.findLast=vd,o.findLastIndex=ol,o.findLastKey=Rg,o.floor=r0,o.forEach=hl,o.forEachRight=dl,o.forIn=Lg,o.forInRight=Og,o.forOwn=Bg,o.forOwnRight=Dg,o.get=Vi,o.gt=ng,o.gte=eg,o.has=Ng,o.hasIn=$i,o.head=fl,o.identity=Cn,o.includes=Ad,o.indexOf=vh,o.inRange=tp,o.invoke=Vg,o.isArguments=Oe,o.isArray=D,o.isArrayBuffer=tg,o.isArrayLike=bn,o.isArrayLikeObject=un,o.isBoolean=rg,o.isBuffer=Ee,o.isDate=ig,o.isElement=ug,o.isEmpty=og,o.isEqual=lg,o.isEqualWith=fg,o.isError=Wi,o.isFinite=sg,o.isFunction=ce,o.isInteger=xl,o.isLength=vr,o.isMap=Al,o.isMatch=ag,o.isMatchWith=cg,o.isNaN=hg,o.isNative=dg,o.isNil=pg,o.isNull=gg,o.isNumber=El,o.isObject=en,o.isObjectLike=tn,o.isPlainObject=yt,o.isRegExp=Ui,o.isSafeInteger=_g,o.isSet=bl,o.isString=mr,o.isSymbol=Rn,o.isTypedArray=Ye,o.isUndefined=vg,o.isWeakMap=mg,o.isWeakSet=wg,o.join=Ah,o.kebabCase=fp,o.last=Vn,o.lastIndexOf=Eh,o.lowerCase=sp,o.lowerFirst=ap,o.lt=yg,o.lte=xg,o.max=i0,o.maxBy=u0,o.mean=o0,o.meanBy=l0,o.min=f0,o.minBy=s0,o.stubArray=Yi,o.stubFalse=Zi,o.stubObject=Zp,o.stubString=Xp,o.stubTrue=Jp,o.multiply=a0,o.nth=bh,o.noConflict=Vp,o.noop=qi,o.now=gr,o.pad=cp,o.padEnd=hp,o.padStart=dp,o.parseInt=gp,o.random=rp,o.reduce=Id,o.reduceRight=Fd,o.repeat=pp,o.replace=_p,o.result=Yg,o.round=c0,o.runInContext=c,o.sample=Rd,o.size=Bd,o.snakeCase=vp,o.some=Dd,o.sortedIndex=Lh,o.sortedIndexBy=Oh,o.sortedIndexOf=Bh,o.sortedLastIndex=Dh,o.sortedLastIndexBy=Ph,o.sortedLastIndexOf=Mh,o.startCase=wp,o.startsWith=yp,o.subtract=h0,o.sum=d0,o.sumBy=g0,o.template=xp,o.times=Qp,o.toFinite=he,o.toInteger=P,o.toLength=Cl,o.toLower=Ap,o.toNumber=$n,o.toSafeInteger=Ag,o.toString=K,o.toUpper=Ep,o.trim=bp,o.trimEnd=Sp,o.trimStart=Cp,o.truncate=Ip,o.unescape=Fp,o.uniqueId=jp,o.upperCase=Tp,o.upperFirst=Hi,o.each=hl,o.eachRight=dl,o.first=fl,Ki(o,function(){var n={};return kn(o,function(e,t){Y.call(o.prototype,t)||(n[t]=e)}),n}(),{chain:!1}),o.VERSION=x,Pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){o[n].placeholder=o}),Pn(["drop","take"],function(n,e){V.prototype[n]=function(t){t=t===u?1:an(P(t),0);var r=this.__filtered__&&!e?new V(this):this.clone();return r.__filtered__?r.__takeCount__=pn(t,r.__takeCount__):r.__views__.push({size:pn(t,Qn),type:n+(r.__dir__<0?"Right":"")}),r},V.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Pn(["filter","map","takeWhile"],function(n,e){var t=e+1,r=t==St||t==Ct;V.prototype[n]=function(i){var l=this.clone();return l.__iteratees__.push({iteratee:F(i,3),type:t}),l.__filtered__=l.__filtered__||r,l}}),Pn(["head","last"],function(n,e){var t="take"+(e?"Right":"");V.prototype[n]=function(){return this[t](1).value()[0]}}),Pn(["initial","tail"],function(n,e){var t="drop"+(e?"":"Right");V.prototype[n]=function(){return this.__filtered__?new V(this):this[t](1)}}),V.prototype.compact=function(){return this.filter(Cn)},V.prototype.find=function(n){return this.filter(n).head()},V.prototype.findLast=function(n){return this.reverse().find(n)},V.prototype.invokeMap=W(function(n,e){return typeof n=="function"?new V(this):this.map(function(t){return gt(t,n,e)})}),V.prototype.reject=function(n){return this.filter(_r(F(n)))},V.prototype.slice=function(n,e){n=P(n);var t=this;return t.__filtered__&&(n>0||e<0)?new V(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==u&&(e=P(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},V.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},V.prototype.toArray=function(){return this.take(Qn)},kn(V.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=o[r?"take"+(e=="last"?"Right":""):e],l=r||/^find/.test(e);!i||(o.prototype[e]=function(){var f=this.__wrapped__,s=r?[1]:arguments,h=f instanceof V,v=s[0],m=h||D(f),w=function(U){var H=i.apply(o,_e([U],s));return r&&b?H[0]:H};m&&t&&typeof v=="function"&&v.length!=1&&(h=m=!1);var b=this.__chain__,I=!!this.__actions__.length,R=l&&!b,N=h&&!I;if(!l&&m){f=N?f:new V(this);var L=n.apply(f,s);return L.__actions__.push({func:hr,args:[w],thisArg:u}),new Nn(L,b)}return R&&N?n.apply(this,s):(L=this.thru(w),R?r?L.value()[0]:L.value():L)})}),Pn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Wt[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);o.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var l=this.value();return e.apply(D(l)?l:[],i)}return this[t](function(f){return e.apply(D(f)?f:[],i)})}}),kn(V.prototype,function(n,e){var t=o[e];if(t){var r=t.name+"";Y.call(He,r)||(He[r]=[]),He[r].push({name:e,func:t})}}),He[ur(u,O).name]=[{name:"wrapper",func:u}],V.prototype.clone=Fa,V.prototype.reverse=Ta,V.prototype.value=Ra,o.prototype.at=ud,o.prototype.chain=od,o.prototype.commit=ld,o.prototype.next=fd,o.prototype.plant=ad,o.prototype.reverse=cd,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=hd,o.prototype.first=o.prototype.head,lt&&(o.prototype[lt]=sd),o},Ue=la();be?((be.exports=Ue)._=Ue,Gr._=Ue):dn._=Ue}).call(Qe)})(Jn,Jn.exports);var hf=d.defineComponent({name:"DEditableSelectDropdown",directives:{Loading:cf},props:jl,setup(a,{slots:p}){const u=Xn("editable-select"),{width:x,maxHeight:y}=d.toRefs(a),S=d.inject(At),{dropdownRef:A,hoveringIndex:E,handleOptionSelect:$,loadMore:Q,emptyText:M}=S,z=T=>E.value===T,q=T=>S.disabledKey?!!T[S.disabledKey]:!1,nn=Jn.exports.debounce(Q,300),rn=()=>{nn()},ln=()=>a.options.length===0?d.createVNode("li",{class:u.em("item","no-data-tip")},[p.noResultItem?p.noResultItem():M.value]):a.options.map((T,O)=>d.createVNode(tf,{label:T.label,value:T.value,hovering:z(O),disabled:q(T),onSelect:()=>{$(T,!0)}},p.item?{default:()=>d.renderSlot(d.useSlots(),"item",{option:T,index:O})}:{}));return()=>d.withDirectives(d.createVNode("div",{class:u.e("dropdown"),style:{width:`${x==null?void 0:x.value}px`}},[d.createVNode("div",{ref:A,class:u.e("inner"),style:{maxHeight:`${y==null?void 0:y.value}px`},onScroll:rn},[ln()])]),[[d.resolveDirective("loading"),S.loading.value]])}});function uu(...a){const p=u=>u&&typeof u=="object";return a.reduce((u,x)=>(Object.keys(x).forEach(y=>{const S=u[y],A=x[y];Array.isArray(S)&&Array.isArray(A)?u[y]=Array.from(new Set([...A,...S])):p(S)&&p(A)?u[y]=uu(S,A):u[y]=A}),u),{})}var df={pagination:{totalItemText:"\u6240\u6709\u6761\u76EE",goToText:"\u8DF3\u81F3",perPage:"\u6761/\u9875"},accordion:{loading:"\u52A0\u8F7D\u4E2D",noData:"\u6CA1\u6709\u6570\u636E"},autoCompleteDropdown:{latestInput:"\u6700\u8FD1\u8F93\u5165"},cascaderList:{noData:"\u6CA1\u6709\u6570\u636E"},colorPicker:{foundationPanel:"\u57FA\u7840\u9762\u677F",advancedPanel:"\u9AD8\u7EA7\u9762\u677F"},datePickerPro:{ok:"\u786E\u5B9A",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",month1:"1\u6708",month2:"2\u6708",month3:"3\u6708",month4:"4\u6708",month5:"5\u6708",month6:"6\u6708",month7:"7\u6708",month8:"8\u6708",month9:"9\u6708",month10:"10\u6708",month11:"11\u6708",month12:"12\u6708",year:"\u5E74",startPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",getWeekDays(){return["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},getTimeArr(){return["\u65F6","\u5206","\u79D2"]},getYearMonthStr(a,p){return`${a}\u5E74${p}\u6708`}},editableSelect:{noRelatedRecords:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",noData:"\u6CA1\u6709\u6570\u636E"},input:{placeholder:"\u8BF7\u8F93\u5165"},splitterBar:{collapse:"\u6536\u8D77",expand:"\u5C55\u5F00"},stepsGuide:{previous:"\u4E0A\u4E00\u6B65",continue:"\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",ok:"\u6211\u77E5\u9053\u5566"},table:{selectAll:"\u5168\u9009",ok:"\u786E\u5B9A"},timePopup:{ok:"\u786E\u5B9A"},transfer:{unit:"\u9879",panelUnit:"\u9879",headerUnit:"\u9879",noData:"\u6682\u65E0\u6570\u636E",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"},tree:{loading:"\u52A0\u8F7D\u4E2D",newNode:"\u65B0\u8282\u70B9",selectPlaceholder:"\u8BF7\u9009\u62E9"},upload:{placeholder:"\u9009\u62E9\u6587\u4EF6",getExistSameNameFilesMsg(a){return`\u60A8\u4E0A\u4F20\u7684 "${a}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`},getAllFilesBeyondMaximalFileSizeMsg(a){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${a}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getBeyondMaximalFileSizeMsg(a,p){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${p}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${a}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getNotAllowedFileTypeMsg(a,p){return`\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${p}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${a}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`}},search:{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57"},select:{placeholder:"\u8BF7\u9009\u62E9",noDataText:"\u65E0\u6570\u636E",noMatchText:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",loadingText:"\u52A0\u8F7D\u4E2D..."},tagInput:{maxTagsText:"\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"},timeSelect:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4"}};const bt=d.ref("zh-CN");let xr=d.reactive({[bt.value]:df});const gf={messages(){return xr[bt.value]},lang(){return bt.value},use(a,p){bt.value=a,this.add({[a]:p})},add(a={}){xr=uu(xr,a)}},pf=a=>a.substring(1).replace(/^\S/,p=>p.toLocaleLowerCase());function ou(a,p){const u=p.split(".");let x=a;return u.forEach(y=>{var S;x=(S=x[y])!=null?S:""}),x}function _f(a,p,u){const x=u||pf(a)+".";return y=>{var E;const S=((E=p==null?void 0:p.appContext.config.globalProperties.langMessages)==null?void 0:E.value)||gf.messages();return ou(S,x+y)||ou(S,y)}}function vf(){return d.reactive({hoveringIndex:-1,selectedIndex:-1,query:"",inputValue:"",selectedLabel:"",isFocus:!1,visible:!1,softFocus:!1,isSilentBlur:!1,inputHovering:!1})}function mf(a,p,u,x,y){const S=d.getCurrentInstance(),A=_f("DEditableSelect",S),E=d.ref(p.options),$=()=>p.remote&&Jn.exports.isFunction(p.remoteMethod)||Jn.exports.isFunction(p.filterMethod),Q=d.computed(()=>E.value.filter(O=>$()?!0:O.label.toLocaleLowerCase().includes(u.query.toLocaleLowerCase().trim()))),M=d.computed(()=>{let O="";return p.remote?O=A("noData"):O=A("noRelatedRecords"),O}),z=d.computed(()=>{const O=!Jn.exports.isNil(p.modelValue)&&p.modelValue!=="";return p.allowClear&&!p.disabled&&u.inputHovering&&O}),q=()=>{p.disabled||(u.visible=!u.visible)},nn=O=>{u.hoveringIndex=O,u.selectedIndex=O},rn=()=>{const O=E.value;if(Jn.exports.isNil(p.modelValue))u.inputValue="";else{const hn=O.findIndex(fn=>fn.value===p.modelValue);hn!==-1?(u.inputValue=O[hn].label,u.selectedLabel=O[hn].label,nn(hn)):(u.inputValue=`${p.modelValue}`,u.selectedLabel=`${p.modelValue}`)}},ln=(O,hn)=>{y.emit("update:modelValue",O.value),y.emit("change",O.value),u.isSilentBlur=hn,x(),u.visible=!1},T=O=>{const hn=a.value,fn=hn.children[O];d.nextTick(()=>{if(fn.scrollIntoViewIfNeeded)fn.scrollIntoViewIfNeeded(!1);else{const Bn=hn.getBoundingClientRect(),mn=fn.getBoundingClientRect();(mn.bottom>Bn.bottom||mn.top<Bn.top)&&fn.scrollIntoView(!1)}})};return d.watch(()=>u.visible,O=>{O?u.selectedIndex!==-1&&d.nextTick(()=>{T(u.selectedIndex)}):(u.query="",u.inputValue=u.selectedLabel),y.emit("visibleChange",O)}),d.watch(()=>p.modelValue,()=>{rn()}),d.watch(()=>p.options,O=>{O.length!==0&&(E.value=O)}),d.onMounted(()=>{rn()}),{cachedOptions:E,filteredOptions:Q,emptyText:M,showClearable:z,toggleMenu:q,handleOptionSelect:ln,scrollToItem:T}}const wf={tab:"Tab",enter:"Enter",up:"ArrowUp",down:"ArrowDown",esc:"Escape"};function yf(a,p,u,x,y){const S=M=>{p.hoveringIndex=M},A=(M,z=p.hoveringIndex)=>{if(!p.visible){p.visible=!0;return}if(u.value.length===0||a.loading)return;let q=0;if(M==="ArrowDown"?(q=z+1,q>u.value.length-1&&(q=0)):M==="ArrowUp"&&(q=z-1,q<0&&(q=u.value.length-1)),u.value[q][a.disabledKey])return A(M,q);S(q),x(q)},E=()=>{p.visible=!1},$=()=>{if(!p.visible)return p.visible=!0;const M=u.value[p.hoveringIndex];M&&y(M,!1)};return{onKeydown:M=>{const z=M.key||M.code,{tab:q,esc:nn,down:rn,up:ln,enter:T}=wf;switch((z===ln||z===rn)&&M.preventDefault(),z){case ln:A("ArrowUp");break;case rn:A("ArrowDown");break;case nn:case q:E();break;case T:$();break}}}}function xf(a,p){const u=Xn("editable-select-input"),x=d.computed(()=>({[u.b()]:!0,[u.m("sm")]:a.size==="sm",[u.m("lg")]:a.size==="lg",[u.m("open")]:p.visible})),y=d.computed(()=>({[u.e("wrapper")]:!0,[u.em("wrapper","focus")]:p.isFocus,[u.em("wrapper","disabled")]:a.disabled})),S=d.computed(()=>({[u.e("inner")]:!0})),A=d.computed(()=>({[u.e("placeholder")]:!0})),E=d.computed(()=>({[u.e("suffix")]:!0}));return{inputClasses:x,inputWrapperClasses:y,inputInnerClasses:S,inputPlaceholderClasses:A,inputSuffixClasses:E}}function Af(a,p,u,x){const y=d.computed(()=>p.remote?300:0),S=()=>{var O;const T=a.value;T&&((O=T.focus)==null||O.call(T))},A=T=>{u.softFocus?u.softFocus=!1:(x.emit("focus",T),u.isFocus=!0)},E=async T=>{u.isSilentBlur?u.isSilentBlur=!1:(x.emit("blur",T),u.isFocus=!0),u.softFocus=!1},$=T=>{u.inputValue=T},Q=T=>{p.remote&&Jn.exports.isFunction(p.remoteMethod)?p.remoteMethod(T):Jn.exports.isFunction(p.filterMethod)&&p.filterMethod(T)},M=()=>{u.query=u.inputValue,x.emit("inputChange",u.query),Q(u.query)},z=Jn.exports.debounce(M,y.value);return{blur,setSoftFocus:S,handleFocus:A,handleBlur:E,handleClear:()=>{x.emit("update:modelValue",""),x.emit("change",""),x.emit("clear"),u.hoveringIndex=-1,u.visible=!1},onInput:T=>{const O=T.target.value;$(O),u.inputValue.length>0&&!u.visible&&(u.visible=!0),p.remote?z():M()},onMouseenter:()=>{u.inputHovering=!0},onMouseleave:()=>{u.inputHovering=!1}}}function Ef(a,p,u){const{enableLazyLoad:x}=d.toRefs(p);return{loadMore:()=>{!a.value||!x.value||(a==null?void 0:a.value.clientHeight)+a.value.scrollTop>=a.value.scrollHeight-12&&u.emit("loadMore")}}}var E0="";function bf(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!d.isVNode(a)}var Ar=d.defineComponent({name:"DEditableSelect",props:Ji,emits:["update:modelValue","focus","blur","clear","change","visibleChange","loadMore","inputChange"],setup(a,p){const u=Xn("editable-select"),x=d.ref(),y=d.ref(),S=d.ref(),A=d.ref(),E=vf(),{appendToBody:$,disabled:Q,modelValue:M,position:z,placeholder:q}=d.toRefs(a),{onInput:nn,onMouseenter:rn,onMouseleave:ln,setSoftFocus:T,handleBlur:O,handleFocus:hn,handleClear:fn}=Af(x,a,E,p),{filteredOptions:Bn,emptyText:mn,showClearable:te,toggleMenu:Hn,handleOptionSelect:ge,scrollToItem:ke}=mf(S,a,E,T,p),{onKeydown:Er}=yf(a,E,Bn,ke,ge),{loadMore:br}=Ef(S,a,p);d.provide(At,{dropdownRef:S,disabledKey:a.disabledKey,modelValue:M,inputValue:d.toRef(E,"inputValue"),query:d.toRef(E,"query"),hoveringIndex:d.toRef(E,"hoveringIndex"),loading:d.toRef(a,"loading"),emptyText:mn,loadMore:br,handleOptionSelect:ge,setSoftFocus:T}),vn.onClickOutside(y,()=>{E.visible=!1,E.isFocus=!1},{ignore:[A]});const{inputClasses:Sr,inputWrapperClasses:Cr,inputInnerClasses:St,inputSuffixClasses:Ir}=xf(a,E),Ct=()=>d.createVNode(d.Transition,{name:"fade"},{default:()=>[d.createVNode(kl,{ref:A,modelValue:E.visible,"onUpdate:modelValue":An=>E.visible=An,origin:y.value,position:z.value,style:{zIndex:"var(--devui-z-index-dropdown, 1052)"}},{default:()=>[d.createVNode(hf,{options:Bn.value,width:a.width,maxHeight:a.maxHeight},p.slots)]})]}),re=()=>{if($.value){let An;return d.createVNode(d.Teleport,{to:"body"},bf(An=Ct())?An:{default:()=>[An]})}else return Ct()};return()=>d.createVNode("div",{ref:y,class:u.b(),style:{width:a.width+"px"},onClick:Hn},[d.createVNode("div",{class:Sr.value,onMouseenter:rn,onMouseleave:ln},[d.createVNode("div",{class:Cr.value},[d.createVNode("input",{ref:x,class:St.value,disabled:Q.value,placeholder:q.value,value:E.inputValue,type:"text",onInput:nn,onFocus:hn,onBlur:O,onKeydown:Er},null),d.createVNode("span",{class:Ir.value},[d.withDirectives(d.createVNode("span",{class:u.e("clear-icon"),onClick:d.withModifiers(fn,["stop"])},[d.createVNode(Qi,{name:"icon-remove"},null)]),[[d.vShow,te.value]]),d.withDirectives(d.createVNode("span",{class:u.e("arrow-icon")},[d.createVNode(Qi,{name:"select-arrow"},null)]),[[d.vShow,!te.value]])])])]),re()])}}),Sf={title:"EditableSelect \u53EF\u8F93\u5165\u4E0B\u62C9\u9009\u62E9\u6846",category:"\u6570\u636E\u5F55\u5165",status:"100%",install(a){a.component(Ar.name,Ar)}};j.EditableSelect=Ar,j.SELECT_KEY=At,j.default=Sf,j.editableSelectProps=Ji,Object.defineProperty(j,"__esModule",{value:!0}),j[Symbol.toStringTag]="Module"});
|
|
27
|
+
}`;var N=Ml(function(){return G(l,I+"return "+w).apply(u,f)});if(N.source=w,Wi(N))throw N;return N}function Ap(n){return K(n).toLowerCase()}function Ep(n){return K(n).toUpperCase()}function bp(n,e,t){if(n=K(n),n&&(t||e===u))return Gu(n);if(!n||!(e=Tn(e)))return n;var r=Kn(n),i=Kn(e),l=Ku(r,i),f=qu(r,i)+1;return Ae(r,l,f).join("")}function Sp(n,e,t){if(n=K(n),n&&(t||e===u))return n.slice(0,Zu(n)+1);if(!n||!(e=Tn(e)))return n;var r=Kn(n),i=qu(r,Kn(e))+1;return Ae(r,0,i).join("")}function Cp(n,e,t){if(n=K(n),n&&(t||e===u))return n.replace(Wr,"");if(!n||!(e=Tn(e)))return n;var r=Kn(n),i=Ku(r,Kn(e));return Ae(r,i).join("")}function Ip(n,e){var t=Er,r=br;if(en(e)){var i="separator"in e?e.separator:i;t="length"in e?P(e.length):t,r="omission"in e?Tn(e.omission):r}n=K(n);var l=n.length;if(Ne(n)){var f=Kn(n);l=f.length}if(t>=l)return n;var s=t-We(r);if(s<1)return r;var h=f?Ae(f,0,s).join(""):n.slice(0,s);if(i===u)return h+r;if(f&&(s+=h.length-s),Ui(i)){if(n.slice(s).search(i)){var v,m=h;for(i.global||(i=ei(i.source,K(hu.exec(i))+"g")),i.lastIndex=0;v=i.exec(m);)var w=v.index;h=h.slice(0,w===u?s:w)}}else if(n.indexOf(Tn(i),s)!=s){var b=h.lastIndexOf(i);b>-1&&(h=h.slice(0,b))}return h+r}function Fp(n){return n=K(n),n&&Uf.test(n)?n.replace(su,ra):n}var Tp=Ke(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Hi=No("toUpperCase");function Pl(n,e,t){return n=K(n),e=t?u:e,e===u?ks(n)?oa(n):zs(n):n.match(e)||[]}var Ml=W(function(n,e){try{return In(n,u,e)}catch(t){return Wi(t)?t:new B(t)}}),Rp=se(function(n,e){return Pn(e,function(t){t=ne(t),le(n,t,Mi(n[t],n))}),n});function Lp(n){var e=n==null?0:n.length,t=F();return n=e?k(n,function(r){if(typeof r[1]!="function")throw new Mn(A);return[t(r[0]),r[1]]}):[],W(function(r){for(var i=-1;++i<e;){var l=n[i];if(In(l[0],this,r))return In(l[1],this,r)}})}function Op(n){return rc(Wn(n,z))}function zi(n){return function(){return n}}function Bp(n,e){return n==null||n!==n?e:n}var Dp=Uo(),Pp=Uo(!0);function Cn(n){return n}function Gi(n){return po(typeof n=="function"?n:Wn(n,z))}function Mp(n){return vo(Wn(n,z))}function Np(n,e){return mo(n,Wn(e,z))}var Wp=W(function(n,e){return function(t){return gt(t,n,e)}}),Up=W(function(n,e){return function(t){return gt(n,t,e)}});function Ki(n,e,t){var r=cn(e),i=nr(e,r);t==null&&!(en(e)&&(i.length||!r.length))&&(t=e,e=n,n=this,i=nr(e,cn(e)));var l=!(en(t)&&"chain"in t)||!!t.chain,f=ce(n);return Pn(i,function(s){var h=e[s];n[s]=h,f&&(n.prototype[s]=function(){var v=this.__chain__;if(l||v){var m=n(this.__wrapped__),w=m.__actions__=En(this.__actions__);return w.push({func:h,args:arguments,thisArg:n}),m.__chain__=v,m}return h.apply(n,_e([this.value()],arguments))})}),n}function Vp(){return dn._===this&&(dn._=ha),this}function qi(){}function $p(n){return n=P(n),W(function(e){return wo(e,n)})}var Hp=Ei(k),zp=Ei(Uu),Gp=Ei(Zr);function Nl(n){return Ri(n)?Xr(ne(n)):yc(n)}function Kp(n){return function(e){return n==null?u:Te(n,e)}}var qp=$o(),Yp=$o(!0);function Yi(){return[]}function Zi(){return!1}function Zp(){return{}}function Xp(){return""}function Jp(){return!0}function Qp(n,e){if(n=P(n),n<1||n>An)return[];var t=Qn,r=pn(n,Qn);e=F(e),n-=Qn;for(var i=kr(r,e);++t<n;)e(t);return i}function kp(n){return D(n)?k(n,ne):Rn(n)?[n]:En(rl(K(n)))}function jp(n){var e=++aa;return K(n)+e}var n0=or(function(n,e){return n+e},0),e0=bi("ceil"),t0=or(function(n,e){return n/e},1),r0=bi("floor");function i0(n){return n&&n.length?jt(n,Cn,si):u}function u0(n,e){return n&&n.length?jt(n,F(e,2),si):u}function o0(n){return Hu(n,Cn)}function l0(n,e){return Hu(n,F(e,2))}function f0(n){return n&&n.length?jt(n,Cn,di):u}function s0(n,e){return n&&n.length?jt(n,F(e,2),di):u}var a0=or(function(n,e){return n*e},1),c0=bi("round"),h0=or(function(n,e){return n-e},0);function d0(n){return n&&n.length?Qr(n,Cn):0}function g0(n,e){return n&&n.length?Qr(n,F(e,2)):0}return o.after=Md,o.ary=gl,o.assign=Eg,o.assignIn=Fl,o.assignInWith=wr,o.assignWith=bg,o.at=Sg,o.before=pl,o.bind=Mi,o.bindAll=Rp,o.bindKey=_l,o.castArray=Zd,o.chain=cl,o.chunk=rh,o.compact=ih,o.concat=uh,o.cond=Lp,o.conforms=Op,o.constant=zi,o.countBy=dd,o.create=Cg,o.curry=vl,o.curryRight=ml,o.debounce=wl,o.defaults=Ig,o.defaultsDeep=Fg,o.defer=Nd,o.delay=Wd,o.difference=oh,o.differenceBy=lh,o.differenceWith=fh,o.drop=sh,o.dropRight=ah,o.dropRightWhile=ch,o.dropWhile=hh,o.fill=dh,o.filter=pd,o.flatMap=md,o.flatMapDeep=wd,o.flatMapDepth=yd,o.flatten=ll,o.flattenDeep=gh,o.flattenDepth=ph,o.flip=Ud,o.flow=Dp,o.flowRight=Pp,o.fromPairs=_h,o.functions=Pg,o.functionsIn=Mg,o.groupBy=xd,o.initial=mh,o.intersection=wh,o.intersectionBy=yh,o.intersectionWith=xh,o.invert=Wg,o.invertBy=Ug,o.invokeMap=Ed,o.iteratee=Gi,o.keyBy=bd,o.keys=cn,o.keysIn=Sn,o.map=dr,o.mapKeys=$g,o.mapValues=Hg,o.matches=Mp,o.matchesProperty=Np,o.memoize=pr,o.merge=zg,o.mergeWith=Tl,o.method=Wp,o.methodOf=Up,o.mixin=Ki,o.negate=_r,o.nthArg=$p,o.omit=Gg,o.omitBy=Kg,o.once=Vd,o.orderBy=Sd,o.over=Hp,o.overArgs=$d,o.overEvery=zp,o.overSome=Gp,o.partial=Ni,o.partialRight=yl,o.partition=Cd,o.pick=qg,o.pickBy=Rl,o.property=Nl,o.propertyOf=Kp,o.pull=Sh,o.pullAll=sl,o.pullAllBy=Ch,o.pullAllWith=Ih,o.pullAt=Fh,o.range=qp,o.rangeRight=Yp,o.rearg=Hd,o.reject=Td,o.remove=Th,o.rest=zd,o.reverse=Di,o.sampleSize=Ld,o.set=Zg,o.setWith=Xg,o.shuffle=Od,o.slice=Rh,o.sortBy=Pd,o.sortedUniq=Nh,o.sortedUniqBy=Wh,o.split=mp,o.spread=Gd,o.tail=Uh,o.take=Vh,o.takeRight=$h,o.takeRightWhile=Hh,o.takeWhile=zh,o.tap=id,o.throttle=Kd,o.thru=hr,o.toArray=Sl,o.toPairs=Ll,o.toPairsIn=Ol,o.toPath=kp,o.toPlainObject=Il,o.transform=Jg,o.unary=qd,o.union=Gh,o.unionBy=Kh,o.unionWith=qh,o.uniq=Yh,o.uniqBy=Zh,o.uniqWith=Xh,o.unset=Qg,o.unzip=Pi,o.unzipWith=al,o.update=kg,o.updateWith=jg,o.values=Ze,o.valuesIn=np,o.without=Jh,o.words=Pl,o.wrap=Yd,o.xor=Qh,o.xorBy=kh,o.xorWith=jh,o.zip=nd,o.zipObject=ed,o.zipObjectDeep=td,o.zipWith=rd,o.entries=Ll,o.entriesIn=Ol,o.extend=Fl,o.extendWith=wr,Ki(o,o),o.add=n0,o.attempt=Ml,o.camelCase=ip,o.capitalize=Bl,o.ceil=e0,o.clamp=ep,o.clone=Xd,o.cloneDeep=Qd,o.cloneDeepWith=kd,o.cloneWith=Jd,o.conformsTo=jd,o.deburr=Dl,o.defaultTo=Bp,o.divide=t0,o.endsWith=up,o.eq=Yn,o.escape=op,o.escapeRegExp=lp,o.every=gd,o.find=_d,o.findIndex=ul,o.findKey=Tg,o.findLast=vd,o.findLastIndex=ol,o.findLastKey=Rg,o.floor=r0,o.forEach=hl,o.forEachRight=dl,o.forIn=Lg,o.forInRight=Og,o.forOwn=Bg,o.forOwnRight=Dg,o.get=Vi,o.gt=ng,o.gte=eg,o.has=Ng,o.hasIn=$i,o.head=fl,o.identity=Cn,o.includes=Ad,o.indexOf=vh,o.inRange=tp,o.invoke=Vg,o.isArguments=Oe,o.isArray=D,o.isArrayBuffer=tg,o.isArrayLike=bn,o.isArrayLikeObject=un,o.isBoolean=rg,o.isBuffer=Ee,o.isDate=ig,o.isElement=ug,o.isEmpty=og,o.isEqual=lg,o.isEqualWith=fg,o.isError=Wi,o.isFinite=sg,o.isFunction=ce,o.isInteger=xl,o.isLength=vr,o.isMap=Al,o.isMatch=ag,o.isMatchWith=cg,o.isNaN=hg,o.isNative=dg,o.isNil=pg,o.isNull=gg,o.isNumber=El,o.isObject=en,o.isObjectLike=tn,o.isPlainObject=yt,o.isRegExp=Ui,o.isSafeInteger=_g,o.isSet=bl,o.isString=mr,o.isSymbol=Rn,o.isTypedArray=Ye,o.isUndefined=vg,o.isWeakMap=mg,o.isWeakSet=wg,o.join=Ah,o.kebabCase=fp,o.last=Vn,o.lastIndexOf=Eh,o.lowerCase=sp,o.lowerFirst=ap,o.lt=yg,o.lte=xg,o.max=i0,o.maxBy=u0,o.mean=o0,o.meanBy=l0,o.min=f0,o.minBy=s0,o.stubArray=Yi,o.stubFalse=Zi,o.stubObject=Zp,o.stubString=Xp,o.stubTrue=Jp,o.multiply=a0,o.nth=bh,o.noConflict=Vp,o.noop=qi,o.now=gr,o.pad=cp,o.padEnd=hp,o.padStart=dp,o.parseInt=gp,o.random=rp,o.reduce=Id,o.reduceRight=Fd,o.repeat=pp,o.replace=_p,o.result=Yg,o.round=c0,o.runInContext=c,o.sample=Rd,o.size=Bd,o.snakeCase=vp,o.some=Dd,o.sortedIndex=Lh,o.sortedIndexBy=Oh,o.sortedIndexOf=Bh,o.sortedLastIndex=Dh,o.sortedLastIndexBy=Ph,o.sortedLastIndexOf=Mh,o.startCase=wp,o.startsWith=yp,o.subtract=h0,o.sum=d0,o.sumBy=g0,o.template=xp,o.times=Qp,o.toFinite=he,o.toInteger=P,o.toLength=Cl,o.toLower=Ap,o.toNumber=$n,o.toSafeInteger=Ag,o.toString=K,o.toUpper=Ep,o.trim=bp,o.trimEnd=Sp,o.trimStart=Cp,o.truncate=Ip,o.unescape=Fp,o.uniqueId=jp,o.upperCase=Tp,o.upperFirst=Hi,o.each=hl,o.eachRight=dl,o.first=fl,Ki(o,function(){var n={};return kn(o,function(e,t){Y.call(o.prototype,t)||(n[t]=e)}),n}(),{chain:!1}),o.VERSION=x,Pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){o[n].placeholder=o}),Pn(["drop","take"],function(n,e){V.prototype[n]=function(t){t=t===u?1:an(P(t),0);var r=this.__filtered__&&!e?new V(this):this.clone();return r.__filtered__?r.__takeCount__=pn(t,r.__takeCount__):r.__views__.push({size:pn(t,Qn),type:n+(r.__dir__<0?"Right":"")}),r},V.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Pn(["filter","map","takeWhile"],function(n,e){var t=e+1,r=t==St||t==Ct;V.prototype[n]=function(i){var l=this.clone();return l.__iteratees__.push({iteratee:F(i,3),type:t}),l.__filtered__=l.__filtered__||r,l}}),Pn(["head","last"],function(n,e){var t="take"+(e?"Right":"");V.prototype[n]=function(){return this[t](1).value()[0]}}),Pn(["initial","tail"],function(n,e){var t="drop"+(e?"":"Right");V.prototype[n]=function(){return this.__filtered__?new V(this):this[t](1)}}),V.prototype.compact=function(){return this.filter(Cn)},V.prototype.find=function(n){return this.filter(n).head()},V.prototype.findLast=function(n){return this.reverse().find(n)},V.prototype.invokeMap=W(function(n,e){return typeof n=="function"?new V(this):this.map(function(t){return gt(t,n,e)})}),V.prototype.reject=function(n){return this.filter(_r(F(n)))},V.prototype.slice=function(n,e){n=P(n);var t=this;return t.__filtered__&&(n>0||e<0)?new V(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==u&&(e=P(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},V.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},V.prototype.toArray=function(){return this.take(Qn)},kn(V.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=o[r?"take"+(e=="last"?"Right":""):e],l=r||/^find/.test(e);!i||(o.prototype[e]=function(){var f=this.__wrapped__,s=r?[1]:arguments,h=f instanceof V,v=s[0],m=h||D(f),w=function(U){var H=i.apply(o,_e([U],s));return r&&b?H[0]:H};m&&t&&typeof v=="function"&&v.length!=1&&(h=m=!1);var b=this.__chain__,I=!!this.__actions__.length,R=l&&!b,N=h&&!I;if(!l&&m){f=N?f:new V(this);var L=n.apply(f,s);return L.__actions__.push({func:hr,args:[w],thisArg:u}),new Nn(L,b)}return R&&N?n.apply(this,s):(L=this.thru(w),R?r?L.value()[0]:L.value():L)})}),Pn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Wt[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);o.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var l=this.value();return e.apply(D(l)?l:[],i)}return this[t](function(f){return e.apply(D(f)?f:[],i)})}}),kn(V.prototype,function(n,e){var t=o[e];if(t){var r=t.name+"";Y.call(He,r)||(He[r]=[]),He[r].push({name:e,func:t})}}),He[ur(u,O).name]=[{name:"wrapper",func:u}],V.prototype.clone=Fa,V.prototype.reverse=Ta,V.prototype.value=Ra,o.prototype.at=ud,o.prototype.chain=od,o.prototype.commit=ld,o.prototype.next=fd,o.prototype.plant=ad,o.prototype.reverse=cd,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=hd,o.prototype.first=o.prototype.head,lt&&(o.prototype[lt]=sd),o},Ue=la();be?((be.exports=Ue)._=Ue,Gr._=Ue):dn._=Ue}).call(Qe)})(Jn,Jn.exports);var hf=d.defineComponent({name:"DEditableSelectDropdown",directives:{Loading:cf},props:jl,setup(a,{slots:p}){const u=Xn("editable-select"),{width:x,maxHeight:y}=d.toRefs(a),S=d.inject(At),{dropdownRef:A,hoveringIndex:E,handleOptionSelect:$,loadMore:Q,emptyText:M}=S,z=T=>E.value===T,q=T=>S.disabledKey?!!T[S.disabledKey]:!1,nn=Jn.exports.debounce(Q,300),rn=()=>{nn()},ln=()=>a.options.length===0?d.createVNode("li",{class:u.em("item","no-data-tip")},[p.noResultItem?p.noResultItem():M.value]):a.options.map((T,O)=>d.createVNode(tf,{label:T.label,value:T.value,hovering:z(O),disabled:q(T),onSelect:()=>{$(T,!0)}},p.item?{default:()=>d.renderSlot(d.useSlots(),"item",{option:T,index:O})}:{}));return()=>d.withDirectives(d.createVNode("div",{class:u.e("dropdown"),style:{width:`${x==null?void 0:x.value}px`}},[d.createVNode("div",{ref:A,class:u.e("inner"),style:{maxHeight:`${y==null?void 0:y.value}px`},onScroll:rn},[ln()])]),[[d.resolveDirective("loading"),S.loading.value]])}});function uu(...a){const p=u=>u&&typeof u=="object";return a.reduce((u,x)=>(Object.keys(x).forEach(y=>{const S=u[y],A=x[y];Array.isArray(S)&&Array.isArray(A)?u[y]=Array.from(new Set([...A,...S])):p(S)&&p(A)?u[y]=uu(S,A):u[y]=A}),u),{})}var df={pagination:{totalItemText:"\u6240\u6709\u6761\u76EE",goToText:"\u8DF3\u81F3",perPage:"\u6761/\u9875"},accordion:{loading:"\u52A0\u8F7D\u4E2D",noData:"\u6CA1\u6709\u6570\u636E"},autoCompleteDropdown:{latestInput:"\u6700\u8FD1\u8F93\u5165"},cascaderList:{noData:"\u6CA1\u6709\u6570\u636E"},colorPicker:{foundationPanel:"\u57FA\u7840\u9762\u677F",advancedPanel:"\u9AD8\u7EA7\u9762\u677F"},datePickerPro:{ok:"\u786E\u5B9A",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",month1:"1\u6708",month2:"2\u6708",month3:"3\u6708",month4:"4\u6708",month5:"5\u6708",month6:"6\u6708",month7:"7\u6708",month8:"8\u6708",month9:"9\u6708",month10:"10\u6708",month11:"11\u6708",month12:"12\u6708",year:"\u5E74",startPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",getWeekDays(){return["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},getTimeArr(){return["\u65F6","\u5206","\u79D2"]},getYearMonthStr(a,p){return`${a}\u5E74${p}\u6708`}},editableSelect:{noRelatedRecords:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",noData:"\u6CA1\u6709\u6570\u636E"},input:{placeholder:"\u8BF7\u8F93\u5165"},splitterBar:{collapse:"\u6536\u8D77",expand:"\u5C55\u5F00"},stepsGuide:{previous:"\u4E0A\u4E00\u6B65",continue:"\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",ok:"\u6211\u77E5\u9053\u5566"},table:{selectAll:"\u5168\u9009",ok:"\u786E\u5B9A"},dataGrid:{selectAll:"\u5168\u9009",ok:"\u786E\u5B9A"},timePopup:{ok:"\u786E\u5B9A"},transfer:{unit:"\u9879",panelUnit:"\u9879",headerUnit:"\u9879",noData:"\u6682\u65E0\u6570\u636E",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"},tree:{loading:"\u52A0\u8F7D\u4E2D",newNode:"\u65B0\u8282\u70B9",selectPlaceholder:"\u8BF7\u9009\u62E9"},upload:{placeholder:"\u9009\u62E9\u6587\u4EF6",getExistSameNameFilesMsg(a){return`\u60A8\u4E0A\u4F20\u7684 "${a}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`},getAllFilesBeyondMaximalFileSizeMsg(a){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${a}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getBeyondMaximalFileSizeMsg(a,p){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${p}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${a}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getNotAllowedFileTypeMsg(a,p){return`\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${p}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${a}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`}},search:{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57"},select:{placeholder:"\u8BF7\u9009\u62E9",noDataText:"\u65E0\u6570\u636E",noMatchText:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",loadingText:"\u52A0\u8F7D\u4E2D..."},tagInput:{maxTagsText:"\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"},timeSelect:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4"}};const bt=d.ref("zh-CN");let xr=d.reactive({[bt.value]:df});const gf={messages(){return xr[bt.value]},lang(){return bt.value},use(a,p){bt.value=a,this.add({[a]:p})},add(a={}){xr=uu(xr,a)}},pf=a=>a.substring(1).replace(/^\S/,p=>p.toLocaleLowerCase());function ou(a,p){const u=p.split(".");let x=a;return u.forEach(y=>{var S;x=(S=x[y])!=null?S:""}),x}function _f(a,p,u){const x=u||pf(a)+".";return y=>{var E;const S=((E=p==null?void 0:p.appContext.config.globalProperties.langMessages)==null?void 0:E.value)||gf.messages();return ou(S,x+y)||ou(S,y)}}function vf(){return d.reactive({hoveringIndex:-1,selectedIndex:-1,query:"",inputValue:"",selectedLabel:"",isFocus:!1,visible:!1,softFocus:!1,isSilentBlur:!1,inputHovering:!1})}function mf(a,p,u,x,y){const S=d.getCurrentInstance(),A=_f("DEditableSelect",S),E=d.ref(p.options),$=()=>p.remote&&Jn.exports.isFunction(p.remoteMethod)||Jn.exports.isFunction(p.filterMethod),Q=d.computed(()=>E.value.filter(O=>$()?!0:O.label.toLocaleLowerCase().includes(u.query.toLocaleLowerCase().trim()))),M=d.computed(()=>{let O="";return p.remote?O=A("noData"):O=A("noRelatedRecords"),O}),z=d.computed(()=>{const O=!Jn.exports.isNil(p.modelValue)&&p.modelValue!=="";return p.allowClear&&!p.disabled&&u.inputHovering&&O}),q=()=>{p.disabled||(u.visible=!u.visible)},nn=O=>{u.hoveringIndex=O,u.selectedIndex=O},rn=()=>{const O=E.value;if(Jn.exports.isNil(p.modelValue))u.inputValue="";else{const hn=O.findIndex(fn=>fn.value===p.modelValue);hn!==-1?(u.inputValue=O[hn].label,u.selectedLabel=O[hn].label,nn(hn)):(u.inputValue=`${p.modelValue}`,u.selectedLabel=`${p.modelValue}`)}},ln=(O,hn)=>{y.emit("update:modelValue",O.value),y.emit("change",O.value),u.isSilentBlur=hn,x(),u.visible=!1},T=O=>{const hn=a.value,fn=hn.children[O];d.nextTick(()=>{if(fn.scrollIntoViewIfNeeded)fn.scrollIntoViewIfNeeded(!1);else{const Bn=hn.getBoundingClientRect(),mn=fn.getBoundingClientRect();(mn.bottom>Bn.bottom||mn.top<Bn.top)&&fn.scrollIntoView(!1)}})};return d.watch(()=>u.visible,O=>{O?u.selectedIndex!==-1&&d.nextTick(()=>{T(u.selectedIndex)}):(u.query="",u.inputValue=u.selectedLabel),y.emit("visibleChange",O)}),d.watch(()=>p.modelValue,()=>{rn()}),d.watch(()=>p.options,O=>{O.length!==0&&(E.value=O)}),d.onMounted(()=>{rn()}),{cachedOptions:E,filteredOptions:Q,emptyText:M,showClearable:z,toggleMenu:q,handleOptionSelect:ln,scrollToItem:T}}const wf={tab:"Tab",enter:"Enter",up:"ArrowUp",down:"ArrowDown",esc:"Escape"};function yf(a,p,u,x,y){const S=M=>{p.hoveringIndex=M},A=(M,z=p.hoveringIndex)=>{if(!p.visible){p.visible=!0;return}if(u.value.length===0||a.loading)return;let q=0;if(M==="ArrowDown"?(q=z+1,q>u.value.length-1&&(q=0)):M==="ArrowUp"&&(q=z-1,q<0&&(q=u.value.length-1)),u.value[q][a.disabledKey])return A(M,q);S(q),x(q)},E=()=>{p.visible=!1},$=()=>{if(!p.visible)return p.visible=!0;const M=u.value[p.hoveringIndex];M&&y(M,!1)};return{onKeydown:M=>{const z=M.key||M.code,{tab:q,esc:nn,down:rn,up:ln,enter:T}=wf;switch((z===ln||z===rn)&&M.preventDefault(),z){case ln:A("ArrowUp");break;case rn:A("ArrowDown");break;case nn:case q:E();break;case T:$();break}}}}function xf(a,p){const u=Xn("editable-select-input"),x=d.computed(()=>({[u.b()]:!0,[u.m("sm")]:a.size==="sm",[u.m("lg")]:a.size==="lg",[u.m("open")]:p.visible})),y=d.computed(()=>({[u.e("wrapper")]:!0,[u.em("wrapper","focus")]:p.isFocus,[u.em("wrapper","disabled")]:a.disabled})),S=d.computed(()=>({[u.e("inner")]:!0})),A=d.computed(()=>({[u.e("placeholder")]:!0})),E=d.computed(()=>({[u.e("suffix")]:!0}));return{inputClasses:x,inputWrapperClasses:y,inputInnerClasses:S,inputPlaceholderClasses:A,inputSuffixClasses:E}}function Af(a,p,u,x){const y=d.computed(()=>p.remote?300:0),S=()=>{var O;const T=a.value;T&&((O=T.focus)==null||O.call(T))},A=T=>{u.softFocus?u.softFocus=!1:(x.emit("focus",T),u.isFocus=!0)},E=async T=>{u.isSilentBlur?u.isSilentBlur=!1:(x.emit("blur",T),u.isFocus=!0),u.softFocus=!1},$=T=>{u.inputValue=T},Q=T=>{p.remote&&Jn.exports.isFunction(p.remoteMethod)?p.remoteMethod(T):Jn.exports.isFunction(p.filterMethod)&&p.filterMethod(T)},M=()=>{u.query=u.inputValue,x.emit("inputChange",u.query),Q(u.query)},z=Jn.exports.debounce(M,y.value);return{blur,setSoftFocus:S,handleFocus:A,handleBlur:E,handleClear:()=>{x.emit("update:modelValue",""),x.emit("change",""),x.emit("clear"),u.hoveringIndex=-1,u.visible=!1},onInput:T=>{const O=T.target.value;$(O),u.inputValue.length>0&&!u.visible&&(u.visible=!0),p.remote?z():M()},onMouseenter:()=>{u.inputHovering=!0},onMouseleave:()=>{u.inputHovering=!1}}}function Ef(a,p,u){const{enableLazyLoad:x}=d.toRefs(p);return{loadMore:()=>{!a.value||!x.value||(a==null?void 0:a.value.clientHeight)+a.value.scrollTop>=a.value.scrollHeight-12&&u.emit("loadMore")}}}var E0="";function bf(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!d.isVNode(a)}var Ar=d.defineComponent({name:"DEditableSelect",props:Ji,emits:["update:modelValue","focus","blur","clear","change","visibleChange","loadMore","inputChange"],setup(a,p){const u=Xn("editable-select"),x=d.ref(),y=d.ref(),S=d.ref(),A=d.ref(),E=vf(),{appendToBody:$,disabled:Q,modelValue:M,position:z,placeholder:q}=d.toRefs(a),{onInput:nn,onMouseenter:rn,onMouseleave:ln,setSoftFocus:T,handleBlur:O,handleFocus:hn,handleClear:fn}=Af(x,a,E,p),{filteredOptions:Bn,emptyText:mn,showClearable:te,toggleMenu:Hn,handleOptionSelect:ge,scrollToItem:ke}=mf(S,a,E,T,p),{onKeydown:Er}=yf(a,E,Bn,ke,ge),{loadMore:br}=Ef(S,a,p);d.provide(At,{dropdownRef:S,disabledKey:a.disabledKey,modelValue:M,inputValue:d.toRef(E,"inputValue"),query:d.toRef(E,"query"),hoveringIndex:d.toRef(E,"hoveringIndex"),loading:d.toRef(a,"loading"),emptyText:mn,loadMore:br,handleOptionSelect:ge,setSoftFocus:T}),vn.onClickOutside(y,()=>{E.visible=!1,E.isFocus=!1},{ignore:[A]});const{inputClasses:Sr,inputWrapperClasses:Cr,inputInnerClasses:St,inputSuffixClasses:Ir}=xf(a,E),Ct=()=>d.createVNode(d.Transition,{name:"fade"},{default:()=>[d.createVNode(kl,{ref:A,modelValue:E.visible,"onUpdate:modelValue":An=>E.visible=An,origin:y.value,position:z.value,style:{zIndex:"var(--devui-z-index-dropdown, 1052)"}},{default:()=>[d.createVNode(hf,{options:Bn.value,width:a.width,maxHeight:a.maxHeight},p.slots)]})]}),re=()=>{if($.value){let An;return d.createVNode(d.Teleport,{to:"body"},bf(An=Ct())?An:{default:()=>[An]})}else return Ct()};return()=>d.createVNode("div",{ref:y,class:u.b(),style:{width:a.width+"px"},onClick:Hn},[d.createVNode("div",{class:Sr.value,onMouseenter:rn,onMouseleave:ln},[d.createVNode("div",{class:Cr.value},[d.createVNode("input",{ref:x,class:St.value,disabled:Q.value,placeholder:q.value,value:E.inputValue,type:"text",onInput:nn,onFocus:hn,onBlur:O,onKeydown:Er},null),d.createVNode("span",{class:Ir.value},[d.withDirectives(d.createVNode("span",{class:u.e("clear-icon"),onClick:d.withModifiers(fn,["stop"])},[d.createVNode(Qi,{name:"icon-remove"},null)]),[[d.vShow,te.value]]),d.withDirectives(d.createVNode("span",{class:u.e("arrow-icon")},[d.createVNode(Qi,{name:"select-arrow"},null)]),[[d.vShow,!te.value]])])])]),re()])}}),Sf={title:"EditableSelect \u53EF\u8F93\u5165\u4E0B\u62C9\u9009\u62E9\u6846",category:"\u6570\u636E\u5F55\u5165",status:"100%",install(a){a.component(Ar.name,Ar)}};j.EditableSelect=Ar,j.SELECT_KEY=At,j.default=Sf,j.editableSelectProps=Ji,Object.defineProperty(j,"__esModule",{value:!0}),j[Symbol.toStringTag]="Module"});
|
package/global.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ DButtonGroup: typeof import('./types/vue-devui')['ButtonGroup']
|
|
|
16
16
|
DCard: typeof import('./types/vue-devui')['Card']
|
|
17
17
|
DCarousel: typeof import('./types/vue-devui')['Carousel']
|
|
18
18
|
DCarouselItem: typeof import('./types/vue-devui')['CarouselItem']
|
|
19
|
+
DCategorySearch: typeof import('./types/vue-devui')['CategorySearch']
|
|
19
20
|
DCheckbox: typeof import('./types/vue-devui')['Checkbox']
|
|
20
21
|
DCheckboxGroup: typeof import('./types/vue-devui')['CheckboxGroup']
|
|
21
22
|
DCheckboxButton: typeof import('./types/vue-devui')['CheckboxButton']
|
|
@@ -24,8 +25,10 @@ DCodeReview: typeof import('./types/vue-devui')['CodeReview']
|
|
|
24
25
|
DCollapse: typeof import('./types/vue-devui')['Collapse']
|
|
25
26
|
DCollapseItem: typeof import('./types/vue-devui')['CollapseItem']
|
|
26
27
|
DCountdown: typeof import('./types/vue-devui')['Countdown']
|
|
28
|
+
DDataGrid: typeof import('./types/vue-devui')['DataGrid']
|
|
27
29
|
DDatePickerPro: typeof import('./types/vue-devui')['DatePickerPro']
|
|
28
30
|
DDRangeDatePickerPro: typeof import('./types/vue-devui')['DRangeDatePickerPro']
|
|
31
|
+
DDragPreviewCloneDomRef: typeof import('./types/vue-devui')['DragPreviewCloneDomRef']
|
|
29
32
|
DDrawer: typeof import('./types/vue-devui')['Drawer']
|
|
30
33
|
DDropdown: typeof import('./types/vue-devui')['Dropdown']
|
|
31
34
|
DDropdownMenu: typeof import('./types/vue-devui')['DropdownMenu']
|
|
@@ -105,6 +108,13 @@ DUpload: typeof import('./types/vue-devui')['Upload']
|
|
|
105
108
|
export interface ComponentCustomProps {
|
|
106
109
|
vCodeHighlight?: typeof import('./types/vue-devui')['CodeHighlightDirective']
|
|
107
110
|
vSortable?: typeof import('./types/vue-devui')['SortableDirective']
|
|
111
|
+
vDraggable?: typeof import('./types/vue-devui')['DraggableDirective']
|
|
112
|
+
vDroppable?: typeof import('./types/vue-devui')['DroppableDirective']
|
|
113
|
+
vSortable?: typeof import('./types/vue-devui')['SortableDirective']
|
|
114
|
+
vDropScrollEnhanced?: typeof import('./types/vue-devui')['DropScrollEnhancedDirective']
|
|
115
|
+
vDropScrollEnhancedSide?: typeof import('./types/vue-devui')['DropScrollEnhancedSideDirective']
|
|
116
|
+
vBatchDraggable?: typeof import('./types/vue-devui')['BatchDraggableDirective']
|
|
117
|
+
vDragPreview?: typeof import('./types/vue-devui')['DragPreviewDirective']
|
|
108
118
|
vDImagePreview?: typeof import('./types/vue-devui')['ImagePreviewDirective']
|
|
109
119
|
vLoading?: typeof import('./types/vue-devui')['LoadingDirective']
|
|
110
120
|
vRipple?: typeof import('./types/vue-devui')['RippleDirective']
|
package/icon/index.es.js
CHANGED
package/icon/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(i,n){typeof exports=="object"&&typeof module!="undefined"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(i=typeof globalThis!="undefined"?globalThis:i||self,n(i.index={},i.Vue))})(this,function(i,n){"use strict";const I={name:{type:String,default:""
|
|
1
|
+
(function(i,n){typeof exports=="object"&&typeof module!="undefined"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(i=typeof globalThis!="undefined"?globalThis:i||self,n(i.index={},i.Vue))})(this,function(i,n){"use strict";const I={name:{type:String,default:""},size:{type:[Number,String],default:"inherit"},color:{type:String,default:"inherit"},component:{type:Object,default:null},classPrefix:{type:String,default:"icon"},operable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rotate:{type:[Number,String]}},b={name:{type:String,default:"",required:!0},color:{type:String,default:"inherit"},size:{type:[Number,String],default:"inherit"}};function p(l,t,s){let o=l;return t&&(o+=`__${t}`),s&&(o+=`--${s}`),o}function d(l,t=!1){const s=t?`.devui-${l}`:`devui-${l}`;return{b:()=>p(s),e:e=>e?p(s,e):"",m:e=>e?p(s,"",e):"",em:(e,a)=>e&&a?p(s,e,a):""}}var V="",h=n.defineComponent({name:"DSvgIcon",props:b,setup(l){const{name:t,color:s,size:o}=n.toRefs(l),c=d("svg-icon"),r=n.computed(()=>`#icon-${t.value}`),u=n.computed(()=>typeof o.value=="number"?`${o.value}px`:o.value),e={width:u.value,height:u.value};return()=>n.createVNode("svg",{class:c.b(),style:e},[n.createVNode("use",{"xlink:href":r.value,fill:s.value},null)])}});function D(l){return/^((http|https):)?\/\//.test(l)}function S(l,t){const{component:s,name:o,size:c,color:r,classPrefix:u,rotate:e}=n.toRefs(l),a=d("icon"),m=n.computed(()=>typeof c.value=="number"?`${c.value}px`:c.value),f=s.value?n.resolveDynamicComponent(s.value):n.resolveDynamicComponent(h),v=()=>n.createVNode("img",n.mergeProps({src:o.value,alt:o.value.split("/")[o.value.split("/").length-1],class:[(e==null?void 0:e.value)==="infinite"&&a.m("spin")],style:{width:m.value||"",transform:`rotate(${e==null?void 0:e.value}deg)`,verticalAlign:"middle"}},t.attrs),null),P=()=>n.createVNode(f,n.mergeProps({name:o.value,color:r.value,size:m.value,class:[(e==null?void 0:e.value)==="infinite"&&a.m("spin")],style:{transform:`rotate(${e==null?void 0:e.value}deg)`}},t.attrs),null),$=()=>{const C=/^icon-/.test(o.value)?o.value:`${u.value}-${o.value}`;return n.createVNode("i",n.mergeProps({class:[u.value,C,(e==null?void 0:e.value)==="infinite"&&a.m("spin")],style:{fontSize:m.value,color:r.value,transform:`rotate(${e==null?void 0:e.value}deg)`}},t.attrs),null)};return{iconDom:()=>s.value?P():D(o.value)?v():$()}}var g=n.defineComponent({name:"DIcon",props:I,emits:["click"],setup(l,t){const{disabled:s,operable:o}=n.toRefs(l),{iconDom:c}=S(l,t),r=d("icon"),u=n.computed(()=>({[r.e("container")]:!0,[r.m("disabled")]:s.value,[r.m("operable")]:o.value,[r.m("no-slots")]:!Object.keys(t.slots).length})),e=a=>{s.value||t.emit("click",a)};return()=>{var a,m,f,v;return n.createVNode("div",{class:u.value,onClick:e},[(m=(a=t.slots).prefix)==null?void 0:m.call(a),c(),(v=(f=t.slots).suffix)==null?void 0:v.call(f)])}}}),_="",y=n.defineComponent({name:"DIconGroup",setup(l,t){const s=d("icon-group");return()=>{var o,c;return n.createVNode("div",{class:s.b()},[(c=(o=t.slots).default)==null?void 0:c.call(o)])}}}),N={title:"Icon \u56FE\u6807",category:"\u901A\u7528",status:"100%",install(l){l.component(g.name,g),l.component(y.name,y)}};i.Icon=g,i.IconGroup=y,i.default=N,i.iconProps=I,i.svgIconProps=b,Object.defineProperty(i,"__esModule",{value:!0}),i[Symbol.toStringTag]="Module"});
|