hys-ui 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/README.md +68 -59
- package/dist/components/HysAlert/HysAlert.vue.js +5 -54
- package/dist/components/HysAlert/HysAlert2.vue.js +159 -2
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +5 -41
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber2.vue.js +146 -2
- package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +2 -2
- package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +285 -273
- package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +1 -1
- package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +102 -98
- package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +1 -1
- package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +273 -59
- package/dist/components/HysButton/HysButton.vue.js +2 -2
- package/dist/components/HysButton/HysButton2.vue.js +227 -60
- package/dist/components/HysButtonGroup/HysButtonGroup.vue.js +7 -0
- package/dist/components/HysButtonGroup/HysButtonGroup2.vue.js +51 -0
- package/dist/components/HysCalendar/HysCalendar.vue.js +3 -3
- package/dist/components/HysCalendar/HysCalendar2.vue.js +237 -225
- package/dist/components/HysCascader/HysCascader.vue.js +2 -2
- package/dist/components/HysCascader/HysCascader2.vue.js +337 -324
- package/dist/components/HysColorPicker/HysColorPanel.vue.js +7 -0
- package/dist/components/HysColorPicker/HysColorPanel2.vue.js +238 -0
- package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
- package/dist/components/HysColorPicker/HysColorPicker2.vue.js +239 -217
- package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +90 -76
- package/dist/components/HysContextMenu/HysContextMenu.vue.js +5 -89
- package/dist/components/HysContextMenu/HysContextMenu2.vue.js +247 -2
- package/dist/components/HysContextMenu/HysMenuPanel.vue.js +7 -0
- package/dist/components/HysContextMenu/HysMenuPanel2.vue.js +208 -0
- package/dist/components/HysContextMenu/HysMenuSlot.js +10 -0
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +1008 -559
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +2 -0
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +2 -2
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +539 -526
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +5 -3
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +434 -84
- package/dist/components/HysEmpty/HysEmpty.vue.js +5 -41
- package/dist/components/HysEmpty/HysEmpty2.vue.js +181 -2
- package/dist/components/HysFormItem/HysFormItem.vue.js +2 -2
- package/dist/components/HysFormItem/HysFormItem2.vue.js +171 -164
- package/dist/components/HysGantt/HysGantt.vue.js +1 -1
- package/dist/components/HysGantt/HysGantt2.vue.js +810 -795
- package/dist/components/HysMention/HysMention.vue.js +1 -1
- package/dist/components/HysMention/HysMention2.vue.js +1092 -142
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +491 -85
- package/dist/components/HysPagination/HysPagination.vue.js +2 -2
- package/dist/components/HysPagination/HysPagination2.vue.js +243 -180
- package/dist/components/HysPopover/HysPopover.vue.js +5 -91
- package/dist/components/HysPopover/HysPopover2.vue.js +120 -2
- package/dist/components/HysProgress/HysProgress.vue.js +2 -2
- package/dist/components/HysProgress/HysProgress2.vue.js +319 -52
- package/dist/components/HysSearch/HysSearch.vue.js +5 -82
- package/dist/components/HysSearch/HysSearch2.vue.js +176 -2
- package/dist/components/HysSelect/HysSelect.vue.js +2 -2
- package/dist/components/HysSelect/HysSelect2.vue.js +755 -590
- package/dist/components/HysSlider/HysSlider.vue.js +2 -2
- package/dist/components/HysSlider/HysSlider2.vue.js +192 -188
- package/dist/components/HysSlider/SliderTooltip.vue.js +2 -2
- package/dist/components/HysSlider/SliderTooltip2.vue.js +103 -89
- package/dist/components/HysSplitPane/HysSplitPane.vue.js +315 -58
- package/dist/components/HysSplitPane/HysSplitPane3.vue.js +5 -0
- package/dist/components/HysTable/HysTable.vue.js +2 -2
- package/dist/components/HysTable/HysTable2.vue.js +1416 -1127
- package/dist/components/HysTagInput/HysTagInput.vue.js +5 -82
- package/dist/components/HysTagInput/HysTagInput2.vue.js +396 -2
- package/dist/components/HysTimeline/HysTimeline.vue.js +2 -2
- package/dist/components/HysTimeline/HysTimeline2.vue.js +243 -24
- package/dist/components/HysTooltip/HysTooltip.vue.js +5 -64
- package/dist/components/HysTooltip/HysTooltip2.vue.js +110 -2
- package/dist/components/HysTour/HysTour.vue.js +291 -63
- package/dist/components/HysTour/HysTour3.vue.js +5 -0
- package/dist/components/HysTransfer/HysTransfer.vue.js +2 -2
- package/dist/components/HysTransfer/HysTransfer2.vue.js +237 -207
- package/dist/components/HysTransfer/HysTransferPanel.vue.js +1 -1
- package/dist/components/HysTransfer/HysTransferPanel2.vue.js +320 -271
- package/dist/components/HysTree/HysTree.vue.js +2 -2
- package/dist/components/HysTree/HysTree2.vue.js +195 -184
- package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +4 -4
- package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +389 -377
- package/dist/components/HysUpload/HysUpload.vue.js +2 -2
- package/dist/components/HysUpload/HysUpload2.vue.js +459 -125
- package/dist/components/HysVirtualTable/HysVirtualTable.vue.js +5 -94
- package/dist/components/HysVirtualTable/HysVirtualTable2.vue.js +656 -2
- package/dist/composables/buttonGroup.js +12 -0
- package/dist/composables/color.js +97 -0
- package/dist/composables/dataGrid.js +68 -0
- package/dist/composables/drawer.js +17 -0
- package/dist/composables/feedback.js +14 -0
- package/dist/composables/floatingPosition.js +18 -0
- package/dist/composables/mentionDocument.js +79 -0
- package/dist/composables/mentionEditor.js +58 -0
- package/dist/composables/menu.js +96 -0
- package/dist/composables/modal.js +14 -0
- package/dist/composables/overlayManager.js +48 -18
- package/dist/composables/progress.js +94 -0
- package/dist/composables/selectOptions.js +44 -38
- package/dist/composables/splitPaneSizes.js +58 -0
- package/dist/composables/table.js +128 -105
- package/dist/composables/tagInput.js +16 -0
- package/dist/composables/timeline.js +19 -0
- package/dist/composables/transfer.js +19 -17
- package/dist/composables/upload.js +55 -0
- package/dist/composables/uploadRequest.js +58 -0
- package/dist/composables/useAlert.js +124 -0
- package/dist/composables/useColorPicker.js +402 -0
- package/dist/composables/useContextMenu.js +514 -0
- package/dist/composables/useDataGridRemote.js +67 -0
- package/dist/composables/useDialog.js +86 -43
- package/dist/composables/useDrawerPush.js +33 -0
- package/dist/composables/useDrawerResize.js +221 -0
- package/dist/composables/useFloating.js +118 -80
- package/dist/composables/useHysModal.js +185 -0
- package/dist/composables/useMentionCaret.js +81 -0
- package/dist/composables/useMentionList.js +81 -0
- package/dist/composables/useMentionModel.js +90 -0
- package/dist/composables/useMentionOptions.js +421 -0
- package/dist/composables/useModal.js +295 -0
- package/dist/composables/useModalInteraction.js +394 -0
- package/dist/composables/usePopupSurface.js +458 -0
- package/dist/composables/useSplitPaneDrag.js +52 -0
- package/dist/composables/useSplitPaneStorage.js +38 -0
- package/dist/composables/useTable.js +344 -312
- package/dist/composables/useTableSticky.js +79 -0
- package/dist/composables/useTagInput.js +313 -0
- package/dist/composables/useTourLayout.js +129 -0
- package/dist/composables/useTransferMotion.js +185 -0
- package/dist/composables/useUpload.js +472 -0
- package/dist/composables/useUploadModel.js +65 -0
- package/dist/composables/useUploadRequests.js +266 -0
- package/dist/composables/useVirtualTableLayout.js +277 -0
- package/dist/composables/virtualTable.js +43 -0
- package/dist/config.js +11 -11
- package/dist/index.js +175 -153
- package/dist/internal/MultiSplitPane.vue.js +305 -0
- package/dist/internal/MultiSplitPane2.vue.js +4 -0
- package/dist/internal/PopupReference.js +39 -0
- package/dist/internal/PopupSurfacePanel.vue.js +7 -0
- package/dist/internal/PopupSurfacePanel2.vue.js +92 -0
- package/dist/motion/PopupMotion.js +105 -0
- package/dist/motion/popup.js +10 -0
- package/dist/style.css +1 -1
- package/dist/types/components/HysAlert/HysAlert.vue.d.ts +32 -22
- package/dist/types/components/HysAnimatedNumber/HysAnimatedNumber.vue.d.ts +61 -7
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +7 -7
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +6 -1
- package/dist/types/components/HysBadge/HysBadge.vue.d.ts +3 -3
- package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +54 -31
- package/dist/types/components/HysButton/HysButton.vue.d.ts +82 -22
- package/dist/types/components/HysButtonGroup/HysButtonGroup.vue.d.ts +30 -0
- package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +3 -2
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +7 -7
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +2 -2
- package/dist/types/components/HysColorPicker/HysColorPanel.vue.d.ts +58 -0
- package/dist/types/components/HysColorPicker/HysColorPicker.vue.d.ts +63 -10
- package/dist/types/components/HysCommandPalette/HysCommandPalette.vue.d.ts +2 -1
- package/dist/types/components/HysContextMenu/HysContextMenu.vue.d.ts +50 -34
- package/dist/types/components/HysContextMenu/HysMenuPanel.vue.d.ts +79 -0
- package/dist/types/components/HysContextMenu/HysMenuSlot.d.ts +8 -0
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +65 -118
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +3 -3
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +92 -35
- package/dist/types/components/HysEmpty/HysEmpty.vue.d.ts +24 -20
- package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +2 -2
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +2 -1
- package/dist/types/components/HysMention/HysMention.vue.d.ts +91 -39
- package/dist/types/components/HysModal/HysModal.vue.d.ts +111 -34
- package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +2 -2
- package/dist/types/components/HysPagination/HysPagination.vue.d.ts +55 -4
- package/dist/types/components/HysPopover/HysPopover.vue.d.ts +41 -29
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +18 -24
- package/dist/types/components/HysRating/HysRating.vue.d.ts +1 -1
- package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +2 -2
- package/dist/types/components/HysSearch/HysSearch.vue.d.ts +45 -7
- package/dist/types/components/HysSelect/HysSelect.vue.d.ts +19 -5
- package/dist/types/components/HysSlider/HysSlider.vue.d.ts +5 -4
- package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +3 -1
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +125 -14
- package/dist/types/components/HysSteps/HysSteps.vue.d.ts +1 -1
- package/dist/types/components/HysTable/HysTable.vue.d.ts +1742 -5
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +2 -2
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +47 -25
- package/dist/types/components/HysTimeline/HysTimeline.vue.d.ts +19 -32
- package/dist/types/components/HysTooltip/HysTooltip.vue.d.ts +39 -19
- package/dist/types/components/HysTour/HysTour.vue.d.ts +46 -8
- package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +2 -2
- package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +5 -3
- package/dist/types/components/HysTree/HysTree.vue.d.ts +2 -2
- package/dist/types/components/HysUpload/HysUpload.vue.d.ts +55 -67
- package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +71 -40
- package/dist/types/composables/autocomplete.d.ts +3 -0
- package/dist/types/composables/avatar.d.ts +3 -0
- package/dist/types/composables/buttonGroup.d.ts +9 -0
- package/dist/types/composables/cascader.d.ts +3 -0
- package/dist/types/composables/color.d.ts +97 -0
- package/dist/types/composables/dataGrid.d.ts +100 -0
- package/dist/types/composables/datePicker.d.ts +3 -0
- package/dist/types/composables/drawer.d.ts +102 -0
- package/dist/types/composables/feedback.d.ts +98 -0
- package/dist/types/composables/floatingPosition.d.ts +14 -0
- package/dist/types/composables/formContext.d.ts +2 -0
- package/dist/types/composables/mention.d.ts +284 -0
- package/dist/types/composables/mentionDocument.d.ts +15 -0
- package/dist/types/composables/mentionEditor.d.ts +7 -0
- package/dist/types/composables/menu.d.ts +183 -0
- package/dist/types/composables/modal.d.ts +185 -0
- package/dist/types/composables/overlayManager.d.ts +7 -3
- package/dist/types/composables/popupSurface.d.ts +83 -0
- package/dist/types/composables/progress.d.ts +92 -0
- package/dist/types/composables/selectOptions.d.ts +7 -0
- package/dist/types/composables/splitPaneSizes.d.ts +11 -0
- package/dist/types/composables/table.d.ts +119 -6
- package/dist/types/composables/tagInput.d.ts +96 -0
- package/dist/types/composables/timeline.d.ts +82 -0
- package/dist/types/composables/tour.d.ts +68 -0
- package/dist/types/composables/transfer.d.ts +7 -0
- package/dist/types/composables/tree.d.ts +3 -0
- package/dist/types/composables/treeSelect.d.ts +3 -0
- package/dist/types/composables/upload.d.ts +202 -0
- package/dist/types/composables/uploadRequest.d.ts +3 -0
- package/dist/types/composables/useAlert.d.ts +21 -0
- package/dist/types/composables/useCascader.d.ts +1 -1
- package/dist/types/composables/useColorPicker.d.ts +101 -0
- package/dist/types/composables/useContextMenu.d.ts +81 -0
- package/dist/types/composables/useDataGridRemote.d.ts +15 -0
- package/dist/types/composables/useDialog.d.ts +16 -3
- package/dist/types/composables/useDrawerPush.d.ts +6 -0
- package/dist/types/composables/useDrawerResize.d.ts +27 -0
- package/dist/types/composables/useFloating.d.ts +22 -3
- package/dist/types/composables/useHysModal.d.ts +44 -0
- package/dist/types/composables/useMentionCaret.d.ts +6 -0
- package/dist/types/composables/useMentionList.d.ts +23 -0
- package/dist/types/composables/useMentionModel.d.ts +14 -0
- package/dist/types/composables/useMentionOptions.d.ts +26 -0
- package/dist/types/composables/useModal.d.ts +62 -0
- package/dist/types/composables/useModalInteraction.d.ts +27 -0
- package/dist/types/composables/usePopupSurface.d.ts +3341 -0
- package/dist/types/composables/useSplitPaneDrag.d.ts +14 -0
- package/dist/types/composables/useSplitPaneStorage.d.ts +4 -0
- package/dist/types/composables/useTable.d.ts +7 -3
- package/dist/types/composables/useTableSticky.d.ts +22 -0
- package/dist/types/composables/useTagInput.d.ts +66 -0
- package/dist/types/composables/useTourLayout.d.ts +33 -0
- package/dist/types/composables/useTransferMotion.d.ts +36 -0
- package/dist/types/composables/useUpload.d.ts +94 -0
- package/dist/types/composables/useUploadModel.d.ts +14 -0
- package/dist/types/composables/useUploadRequests.d.ts +38 -0
- package/dist/types/composables/useVirtualTableLayout.d.ts +51 -0
- package/dist/types/composables/virtualTable.d.ts +126 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/types/index.d.ts +53 -3
- package/dist/types/internal/MultiSplitPane.vue.d.ts +54 -0
- package/dist/types/internal/PopupReference.d.ts +18 -0
- package/dist/types/internal/PopupSurfacePanel.vue.d.ts +37 -0
- package/dist/types/motion/PopupMotion.d.ts +59 -0
- package/dist/types/motion/popup.d.ts +12 -0
- package/package.json +3 -2
- package/dist/components/HysSplitPane/HysSplitPane2.vue.js +0 -4
- package/dist/components/HysTour/HysTour2.vue.js +0 -4
|
@@ -1,86 +1,314 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as ce, useModel as de, ref as W, computed as o, watch as O, openBlock as d, createBlock as D, createSlots as ve, withCtx as v, createElementBlock as C, renderSlot as y, normalizeProps as k, guardReactiveProps as g, createVNode as p, createCommentVNode as I, createElementVNode as j, createTextVNode as Y, toDisplayString as M, mergeProps as Z, resolveDynamicComponent as pe, unref as f, normalizeStyle as fe, mergeModels as _, nextTick as he } from "vue";
|
|
2
|
+
import { X as me } from "lucide-vue-next";
|
|
3
|
+
import H from "../HysButton/HysButton.vue.js";
|
|
4
|
+
import ye from "../HysModal/HysModal.vue.js";
|
|
5
|
+
import { useTourLayout as ke } from "../../composables/useTourLayout.js";
|
|
6
|
+
const ge = ["viewBox"], xe = ["width", "height"], we = ["d", "fill"], Te = ["id"], Be = { key: 0 }, be = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "hys-ui-tour-cover"
|
|
9
|
+
}, Ce = { key: 1 }, Se = {
|
|
10
|
+
class: "hys-ui-tour-indicators",
|
|
11
|
+
"aria-live": "polite"
|
|
12
|
+
}, Ve = /* @__PURE__ */ ce({
|
|
5
13
|
__name: "HysTour",
|
|
6
|
-
props: /* @__PURE__ */
|
|
14
|
+
props: /* @__PURE__ */ _({
|
|
7
15
|
steps: {},
|
|
16
|
+
open: { type: Boolean, default: void 0 },
|
|
8
17
|
current: {},
|
|
9
|
-
closeOnEscape: { type: Boolean, default: !0 }
|
|
18
|
+
closeOnEscape: { type: Boolean, default: !0 },
|
|
19
|
+
appendTo: { type: [String, Boolean], default: "body" },
|
|
20
|
+
zIndex: {},
|
|
21
|
+
skipText: { default: "跳过" },
|
|
22
|
+
prevText: { default: "上一步" },
|
|
23
|
+
nextText: { default: "下一步" },
|
|
24
|
+
finishText: { default: "完成" },
|
|
25
|
+
popupTransition: {},
|
|
26
|
+
popupTransitionDuration: {},
|
|
27
|
+
placement: { default: "bottom" },
|
|
28
|
+
mask: { type: [Boolean, Object], default: !0 },
|
|
29
|
+
gap: {},
|
|
30
|
+
showArrow: { type: Boolean, default: void 0 },
|
|
31
|
+
arrow: { type: [Boolean, Object], default: void 0 },
|
|
32
|
+
type: { default: "default" },
|
|
33
|
+
contentStyle: {},
|
|
34
|
+
scrollIntoViewOptions: { type: Boolean, default: !0 },
|
|
35
|
+
targetAreaClickable: { type: Boolean, default: !0 },
|
|
36
|
+
showClose: { type: Boolean, default: !0 },
|
|
37
|
+
closeIcon: {},
|
|
38
|
+
prevButtonProps: {},
|
|
39
|
+
nextButtonProps: {}
|
|
10
40
|
}, {
|
|
11
41
|
modelValue: { type: Boolean, default: !1 },
|
|
12
42
|
modelModifiers: {}
|
|
13
43
|
}),
|
|
14
|
-
emits: /* @__PURE__ */
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
44
|
+
emits: /* @__PURE__ */ _(["update:open", "update:current", "change", "finish", "close"], ["update:modelValue"]),
|
|
45
|
+
setup(i, { expose: ee, emit: te }) {
|
|
46
|
+
const a = i, F = de(i, "modelValue"), x = te, V = W(), S = o(() => a.open ?? F.value), u = W(h(a.current ?? 0));
|
|
47
|
+
let z;
|
|
48
|
+
const l = o(() => a.steps[u.value]), R = o(() => u.value >= a.steps.length - 1), s = o(() => {
|
|
49
|
+
var e, t;
|
|
50
|
+
return {
|
|
51
|
+
...a,
|
|
52
|
+
...l.value,
|
|
53
|
+
gap: { ...a.gap, ...(e = l.value) == null ? void 0 : e.gap },
|
|
54
|
+
contentStyle: { ...a.contentStyle, ...(t = l.value) == null ? void 0 : t.contentStyle }
|
|
55
|
+
};
|
|
56
|
+
}), { bounds: oe, view: $, card: w, arrow: q, path: L } = ke(
|
|
57
|
+
o(() => {
|
|
58
|
+
var e;
|
|
59
|
+
return ((e = V.value) == null ? void 0 : e.open) === !0;
|
|
60
|
+
}),
|
|
61
|
+
o(() => {
|
|
62
|
+
var e;
|
|
63
|
+
return (e = V.value) == null ? void 0 : e.element;
|
|
64
|
+
}),
|
|
65
|
+
s,
|
|
66
|
+
o(() => {
|
|
67
|
+
var e;
|
|
68
|
+
return (e = l.value) == null ? void 0 : e.target;
|
|
69
|
+
})
|
|
70
|
+
), X = o(() => s.value.mask !== !1), G = o(() => !!oe.value && s.value.targetAreaClickable !== !1), J = o(() => {
|
|
71
|
+
const e = s.value.mask;
|
|
72
|
+
return typeof e == "object" ? e : void 0;
|
|
73
|
+
}), ae = {
|
|
74
|
+
background: "transparent",
|
|
75
|
+
backdropFilter: "none",
|
|
76
|
+
pointerEvents: "none"
|
|
77
|
+
}, le = o(() => {
|
|
78
|
+
var e, t;
|
|
79
|
+
return {
|
|
80
|
+
...s.value.contentStyle,
|
|
81
|
+
pointerEvents: "auto",
|
|
82
|
+
...w.value ? { position: "fixed", left: w.value.x + "px", top: w.value.y + "px" } : {},
|
|
83
|
+
"--hys-ui-tour-arrow-x": (((e = q.value) == null ? void 0 : e.x) ?? 0) + "px",
|
|
84
|
+
"--hys-ui-tour-arrow-y": (((t = q.value) == null ? void 0 : t.y) ?? 0) + "px"
|
|
85
|
+
};
|
|
86
|
+
}), ne = o(() => {
|
|
87
|
+
const e = s.value.showArrow ?? s.value.arrow !== !1;
|
|
88
|
+
if (!(!w.value || !e))
|
|
89
|
+
return w.value.placement;
|
|
90
|
+
}), se = o(() => {
|
|
91
|
+
var e;
|
|
92
|
+
return typeof ((e = l.value) == null ? void 0 : e.title) == "string" ? l.value.title : "引导";
|
|
93
|
+
}), ue = o(() => {
|
|
94
|
+
var e;
|
|
95
|
+
return ((e = l.value) == null ? void 0 : e.title) && typeof l.value.title != "string";
|
|
96
|
+
}), ie = o(() => a.popupTransition === "none" ? !1 : a.popupTransition === "slide-fade" ? "slide" : a.popupTransition), T = ({ value: e }) => typeof e == "function" ? e() : e;
|
|
97
|
+
function h(e) {
|
|
98
|
+
return Math.max(0, Math.min(a.steps.length - 1, Number.isFinite(e) ? Math.floor(e) : 0));
|
|
19
99
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}),
|
|
23
|
-
|
|
24
|
-
}),
|
|
25
|
-
|
|
100
|
+
O(() => a.current, (e) => {
|
|
101
|
+
e !== void 0 && (u.value = h(e));
|
|
102
|
+
}), O(S, (e) => {
|
|
103
|
+
e && z === void 0 && (u.value = h(a.current ?? 0));
|
|
104
|
+
}, { flush: "sync" }), O(() => a.steps.length, () => {
|
|
105
|
+
u.value = h(u.value);
|
|
26
106
|
});
|
|
27
|
-
function
|
|
28
|
-
|
|
107
|
+
function K(e) {
|
|
108
|
+
a.open !== void 0 ? x("update:open", e) : F.value = e;
|
|
29
109
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
110
|
+
function B(e) {
|
|
111
|
+
const t = h(e);
|
|
112
|
+
u.value !== t && (u.value = t, x("change", t), x("update:current", t));
|
|
32
113
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
114
|
+
function re(e = a.current ?? 0) {
|
|
115
|
+
const t = h(e);
|
|
116
|
+
S.value || (z = t, K(!0), he(() => {
|
|
117
|
+
z === t && (z = void 0);
|
|
118
|
+
})), B(t);
|
|
35
119
|
}
|
|
36
|
-
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
120
|
+
function b() {
|
|
121
|
+
var e, t;
|
|
122
|
+
S.value && (K(!1), (t = (e = l.value) == null ? void 0 : e.onClose) == null || t.call(e), x("close"));
|
|
123
|
+
}
|
|
124
|
+
function A() {
|
|
125
|
+
B(u.value - 1);
|
|
126
|
+
}
|
|
127
|
+
function E() {
|
|
128
|
+
if (!R.value) {
|
|
129
|
+
B(u.value + 1);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
x("finish"), b();
|
|
133
|
+
}
|
|
134
|
+
function Q(e) {
|
|
135
|
+
const { children: t, onClick: c, ...n } = e ?? {};
|
|
136
|
+
return { children: t, onClick: c, props: n };
|
|
137
|
+
}
|
|
138
|
+
const P = o(() => Q(s.value.prevButtonProps)), N = o(() => Q(s.value.nextButtonProps));
|
|
139
|
+
function U(e, t) {
|
|
140
|
+
var n;
|
|
141
|
+
const c = t === "previous" ? P.value : N.value;
|
|
142
|
+
(n = c.onClick) == null || n.call(c, e), e.defaultPrevented || (t === "previous" ? A : E)();
|
|
143
|
+
}
|
|
144
|
+
const m = o(() => ({
|
|
145
|
+
step: l.value,
|
|
146
|
+
current: u.value,
|
|
147
|
+
total: a.steps.length,
|
|
148
|
+
goTo: B,
|
|
149
|
+
previous: A,
|
|
150
|
+
next: E,
|
|
151
|
+
close: b
|
|
152
|
+
}));
|
|
153
|
+
return ee({ start: re, close: b, goTo: B, previous: A, next: E }), (e, t) => {
|
|
154
|
+
var c;
|
|
155
|
+
return d(), D(ye, {
|
|
156
|
+
ref_key: "modal",
|
|
157
|
+
ref: V,
|
|
158
|
+
open: S.value,
|
|
159
|
+
title: se.value,
|
|
160
|
+
modal: X.value && !G.value,
|
|
161
|
+
"modal-penetrable": "",
|
|
162
|
+
"close-on-escape": i.closeOnEscape,
|
|
42
163
|
"close-on-mask": !1,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
164
|
+
"show-close": s.value.showClose !== !1,
|
|
165
|
+
"append-to": i.appendTo,
|
|
166
|
+
"z-index": i.zIndex,
|
|
167
|
+
transition: ie.value,
|
|
168
|
+
"transition-duration": i.popupTransitionDuration,
|
|
169
|
+
overflow: "",
|
|
170
|
+
"keep-handle-visible": !1,
|
|
171
|
+
width: (c = l.value) != null && c.target ? "min(380px, calc(100vw - 24px))" : void 0,
|
|
172
|
+
"data-hys-tour-placement": ne.value,
|
|
173
|
+
"modal-class": "hys-ui-tour-card hys-ui-tour-card-" + (s.value.type ?? "default"),
|
|
174
|
+
"modal-style": le.value,
|
|
175
|
+
"mask-style": ae,
|
|
176
|
+
onClose: b
|
|
177
|
+
}, ve({
|
|
178
|
+
"close-icon": v(() => [
|
|
179
|
+
y(e.$slots, "close-icon", k(g(m.value)), () => [
|
|
180
|
+
typeof s.value.closeIcon == "string" ? (d(), C("span", Be, M(s.value.closeIcon), 1)) : (d(), D(pe(s.value.closeIcon ?? f(me)), {
|
|
181
|
+
key: 1,
|
|
182
|
+
size: 18
|
|
183
|
+
}))
|
|
184
|
+
])
|
|
185
|
+
]),
|
|
186
|
+
footer: v(() => [
|
|
187
|
+
y(e.$slots, "footer", k(g(m.value)), () => [
|
|
188
|
+
j("span", Se, [
|
|
189
|
+
y(e.$slots, "indicators", k(g(m.value)), () => [
|
|
190
|
+
Y(M(i.steps.length ? u.value + 1 : 0) + " / " + M(i.steps.length), 1)
|
|
191
|
+
])
|
|
69
192
|
]),
|
|
70
|
-
|
|
71
|
-
|
|
193
|
+
p(H, {
|
|
194
|
+
size: "sm",
|
|
195
|
+
variant: "ghost",
|
|
196
|
+
onClick: b
|
|
197
|
+
}, {
|
|
198
|
+
default: v(() => [
|
|
199
|
+
Y(M(i.skipText), 1)
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
}),
|
|
203
|
+
p(H, Z({
|
|
204
|
+
size: "sm",
|
|
205
|
+
variant: "secondary"
|
|
206
|
+
}, P.value.props, {
|
|
207
|
+
disabled: u.value === 0 || P.value.props.disabled,
|
|
208
|
+
onClick: t[0] || (t[0] = (n) => U(n, "previous"))
|
|
209
|
+
}), {
|
|
210
|
+
default: v(() => [
|
|
211
|
+
p(T, {
|
|
212
|
+
value: P.value.children ?? i.prevText
|
|
213
|
+
}, null, 8, ["value"])
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
}, 16, ["disabled"]),
|
|
217
|
+
p(H, Z({
|
|
218
|
+
size: "sm",
|
|
219
|
+
variant: s.value.type === "primary" ? "secondary" : "primary"
|
|
220
|
+
}, N.value.props, {
|
|
221
|
+
onClick: t[1] || (t[1] = (n) => U(n, "next"))
|
|
222
|
+
}), {
|
|
223
|
+
default: v(() => [
|
|
224
|
+
p(T, {
|
|
225
|
+
value: N.value.children ?? (R.value ? i.finishText : i.nextText)
|
|
226
|
+
}, null, 8, ["value"])
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
}, 16, ["variant"])
|
|
230
|
+
])
|
|
72
231
|
]),
|
|
73
|
-
default:
|
|
74
|
-
var
|
|
232
|
+
default: v(() => {
|
|
233
|
+
var n;
|
|
75
234
|
return [
|
|
76
|
-
|
|
235
|
+
(n = l.value) != null && n.cover || e.$slots.cover ? (d(), C("div", be, [
|
|
236
|
+
y(e.$slots, "cover", k(g(m.value)), () => {
|
|
237
|
+
var r;
|
|
238
|
+
return [
|
|
239
|
+
p(T, {
|
|
240
|
+
value: (r = l.value) == null ? void 0 : r.cover
|
|
241
|
+
}, null, 8, ["value"])
|
|
242
|
+
];
|
|
243
|
+
})
|
|
244
|
+
])) : I("", !0),
|
|
245
|
+
y(e.$slots, "default", k(g(m.value)), () => {
|
|
246
|
+
var r;
|
|
247
|
+
return [
|
|
248
|
+
(r = l.value) != null && r.description ? (d(), D(T, {
|
|
249
|
+
key: 0,
|
|
250
|
+
value: l.value.description
|
|
251
|
+
}, null, 8, ["value"])) : l.value ? I("", !0) : (d(), C("span", Ce, "暂无引导步骤"))
|
|
252
|
+
];
|
|
253
|
+
})
|
|
77
254
|
];
|
|
78
255
|
}),
|
|
79
|
-
_:
|
|
80
|
-
},
|
|
256
|
+
_: 2
|
|
257
|
+
}, [
|
|
258
|
+
X.value ? {
|
|
259
|
+
name: "backdrop",
|
|
260
|
+
fn: v(() => {
|
|
261
|
+
var n, r;
|
|
262
|
+
return [
|
|
263
|
+
f(L) ? (d(), C("svg", {
|
|
264
|
+
key: 0,
|
|
265
|
+
class: "hys-ui-tour-mask",
|
|
266
|
+
viewBox: `0 0 ${f($).width} ${f($).height}`,
|
|
267
|
+
preserveAspectRatio: "none",
|
|
268
|
+
"aria-hidden": "true",
|
|
269
|
+
style: fe((n = J.value) == null ? void 0 : n.style)
|
|
270
|
+
}, [
|
|
271
|
+
G.value ? I("", !0) : (d(), C("rect", {
|
|
272
|
+
key: 0,
|
|
273
|
+
width: f($).width,
|
|
274
|
+
height: f($).height,
|
|
275
|
+
fill: "transparent",
|
|
276
|
+
class: "hys-ui-tour-mask-hit"
|
|
277
|
+
}, null, 8, xe)),
|
|
278
|
+
j("path", {
|
|
279
|
+
d: f(L),
|
|
280
|
+
"fill-rule": "evenodd",
|
|
281
|
+
fill: ((r = J.value) == null ? void 0 : r.color) ?? "rgba(11, 24, 61, 0.48)",
|
|
282
|
+
class: "hys-ui-tour-mask-hit"
|
|
283
|
+
}, null, 8, we)
|
|
284
|
+
], 12, ge)) : I("", !0)
|
|
285
|
+
];
|
|
286
|
+
}),
|
|
287
|
+
key: "0"
|
|
288
|
+
} : void 0,
|
|
289
|
+
ue.value || e.$slots.header ? {
|
|
290
|
+
name: "header",
|
|
291
|
+
fn: v(({ titleId: n }) => [
|
|
292
|
+
j("h2", {
|
|
293
|
+
id: n,
|
|
294
|
+
class: "hys-ui-tour-heading"
|
|
295
|
+
}, [
|
|
296
|
+
y(e.$slots, "header", k(g(m.value)), () => {
|
|
297
|
+
var r;
|
|
298
|
+
return [
|
|
299
|
+
p(T, {
|
|
300
|
+
value: (r = l.value) == null ? void 0 : r.title
|
|
301
|
+
}, null, 8, ["value"])
|
|
302
|
+
];
|
|
303
|
+
})
|
|
304
|
+
], 8, Te)
|
|
305
|
+
]),
|
|
306
|
+
key: "1"
|
|
307
|
+
} : void 0
|
|
308
|
+
]), 1032, ["open", "title", "modal", "close-on-escape", "show-close", "append-to", "z-index", "transition", "transition-duration", "width", "data-hys-tour-placement", "modal-class", "modal-style"]);
|
|
81
309
|
};
|
|
82
310
|
}
|
|
83
311
|
});
|
|
84
312
|
export {
|
|
85
|
-
|
|
313
|
+
Ve as default
|
|
86
314
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./HysTransfer2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-8f1c6909"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|