dou-ui 0.1.0-alpha.11 → 0.1.0-alpha.12
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-stack.js","names":["_sfc_main"],"sources":["../../../src/components/toast/toast-stack.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, reactive, ref, watch } from 'vue'\nimport { useNamespace } from '../../utils/namespace'\nimport { hasHover } from '../../utils/pointer'\nimport ToastItem from './toast-item.vue'\nimport type { ToastItemLayout } from './toast-item.vue'\nimport type { ToastRecord } from './toast'\n\ndefineOptions({ name: 'DouToastStack' })\n\nconst props = defineProps<{\n /** Oldest first, as they were shown. */\n items: ToastRecord[]\n stacked: boolean\n}>()\n\nconst emit = defineEmits<{ settled: [] }>()\n\nconst ns = useNamespace('toast')\n\n/** Space between open toasts. */\nconst GAP = 8\n/** How far each toast behind the newest one shows past it. */\nconst PEEK = 12\n/** How much smaller each toast behind is. */\nconst SHRINK = 0.05\n/** Toasts shown in a closed stack; the rest wait out of sight behind them. */\nconst VISIBLE = 3\n\nconst heights = reactive(new Map<number, number>())\nwatch(\n () => props.items.map((item) => item.id),\n (ids) => {\n for (const id of heights.keys()) if (!ids.includes(id)) heights.delete(id)\n },\n)\n\n// Open while the mouse is over the stack or focus is in it; a finger or\n// pen has no hover, so a tap opens it and a tap elsewhere closes it.\nconst hovered = ref(false)\nconst focused = ref(false)\nconst tapped = ref(false)\nconst held = computed(() => hovered.value || focused.value || tapped.value)\nconst expanded = computed(() => !props.stacked || held.value)\n\nconst list = ref<HTMLElement>()\n\nfunction onPointerEnter(event: PointerEvent) {\n if (hasHover(event.pointerType)) hovered.value = true\n}\nfunction onPointerLeave(event: PointerEvent) {\n if (hasHover(event.pointerType)) hovered.value = false\n}\nfunction onPointerDown(event: PointerEvent) {\n if (hasHover(event.pointerType) || tapped.value) return\n tapped.value = true\n document.addEventListener('pointerdown', onOutside, true)\n}\nfunction onOutside(event: PointerEvent) {\n if (list.value?.contains(event.target as Node)) return\n release()\n}\nfunction release() {\n tapped.value = false\n document.removeEventListener('pointerdown', onOutside, true)\n}\nonBeforeUnmount(release)\n\nfunction onFocusIn() {\n focused.value = true\n}\nfunction onFocusOut(event: FocusEvent) {\n if (!list.value?.contains(event.relatedTarget as Node | null)) focused.value = false\n}\n\n// A toast closed from the keyboard takes the focus with it, and not every\n// browser says so: once it is gone, check where the focus went.\nfunction onAfterLeave() {\n if (focused.value && !list.value?.contains(document.activeElement)) focused.value = false\n if (props.items.length === 0) {\n hovered.value = false\n release()\n emit('settled')\n }\n}\n\nconst
|
|
1
|
+
{"version":3,"file":"toast-stack.js","names":["_sfc_main"],"sources":["../../../src/components/toast/toast-stack.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, reactive, ref, watch } from 'vue'\nimport { useNamespace } from '../../utils/namespace'\nimport { hasHover } from '../../utils/pointer'\nimport ToastItem from './toast-item.vue'\nimport type { ToastItemLayout } from './toast-item.vue'\nimport type { ToastRecord } from './toast'\n\ndefineOptions({ name: 'DouToastStack' })\n\nconst props = defineProps<{\n /** Oldest first, as they were shown. */\n items: ToastRecord[]\n stacked: boolean\n}>()\n\nconst emit = defineEmits<{ settled: [] }>()\n\nconst ns = useNamespace('toast')\n\n/** Space between open toasts. */\nconst GAP = 8\n/** How far each toast behind the newest one shows past it. */\nconst PEEK = 12\n/** How much smaller each toast behind is. */\nconst SHRINK = 0.05\n/** Toasts shown in a closed stack; the rest wait out of sight behind them. */\nconst VISIBLE = 3\n\nconst heights = reactive(new Map<number, number>())\nwatch(\n () => props.items.map((item) => item.id),\n (ids) => {\n for (const id of heights.keys()) if (!ids.includes(id)) heights.delete(id)\n },\n)\n\n// Open while the mouse is over the stack or focus is in it; a finger or\n// pen has no hover, so a tap opens it and a tap elsewhere closes it.\nconst hovered = ref(false)\nconst focused = ref(false)\nconst tapped = ref(false)\nconst held = computed(() => hovered.value || focused.value || tapped.value)\nconst expanded = computed(() => !props.stacked || held.value)\n\nconst list = ref<HTMLElement>()\n\nfunction onPointerEnter(event: PointerEvent) {\n if (hasHover(event.pointerType)) hovered.value = true\n}\nfunction onPointerLeave(event: PointerEvent) {\n if (hasHover(event.pointerType)) hovered.value = false\n}\nfunction onPointerDown(event: PointerEvent) {\n if (hasHover(event.pointerType) || tapped.value) return\n tapped.value = true\n document.addEventListener('pointerdown', onOutside, true)\n}\nfunction onOutside(event: PointerEvent) {\n if (list.value?.contains(event.target as Node)) return\n release()\n}\nfunction release() {\n tapped.value = false\n document.removeEventListener('pointerdown', onOutside, true)\n}\nonBeforeUnmount(release)\n\nfunction onFocusIn() {\n focused.value = true\n}\nfunction onFocusOut(event: FocusEvent) {\n if (!list.value?.contains(event.relatedTarget as Node | null)) focused.value = false\n}\n\n// A toast closed from the keyboard takes the focus with it, and not every\n// browser says so: once it is gone, check where the focus went.\nfunction onAfterLeave() {\n if (focused.value && !list.value?.contains(document.activeElement)) focused.value = false\n if (props.items.length === 0) {\n hovered.value = false\n release()\n emit('settled')\n }\n}\n\n// A toast just added has no height yet: it is measured as it mounts,\n// which makes the browser work out the styles right then. Leaving it out\n// of the layout until then keeps the others where they are at that moment,\n// so they move from their old places to the new ones in one transition\n// rather than starting from where a height of zero would put them.\nconst placed = computed(() => {\n const result: { id: number; height: number }[] = []\n for (let index = props.items.length - 1; index >= 0; index--) {\n const { id } = props.items[index]!\n const height = heights.get(id)\n if (height !== undefined) result.push({ id, height })\n }\n return result\n})\n\nconst layout = computed(() => {\n const result = new Map<number, ToastItemLayout>()\n const toasts = placed.value\n const front = toasts[0]?.height\n let offset = 0\n toasts.forEach(({ id, height }, index) => {\n const zIndex = toasts.length - index\n if (expanded.value) {\n result.set(id, { offset, scale: 1, height, behind: false, hidden: false, zIndex })\n offset += height + GAP\n return\n }\n // A closed stack shows the newest toast whole and the edges of the\n // ones behind it, each a little smaller, all at the newest one's height.\n const depth = Math.min(index, VISIBLE - 1)\n result.set(id, {\n offset: depth * PEEK,\n scale: 1 - Math.min(index, VISIBLE) * SHRINK,\n height: index === 0 ? height : front,\n behind: index > 0,\n hidden: index >= VISIBLE,\n zIndex,\n })\n })\n for (const { id } of props.items) {\n if (!result.has(id)) {\n const zIndex = toasts.length + 1\n result.set(id, { offset: 0, scale: 1, behind: false, hidden: false, zIndex })\n }\n }\n return result\n})\n\nconst height = computed(() => {\n const toasts = placed.value\n if (expanded.value) {\n let total = 0\n for (const toast of toasts) total += toast.height + GAP\n return Math.max(0, total - GAP)\n }\n const front = toasts[0]?.height ?? 0\n return front + PEEK * Math.max(0, Math.min(toasts.length, VISIBLE) - 1)\n})\n</script>\n\n<template>\n <ol\n ref=\"list\"\n :class=\"[ns.e('list'), ns.is('expanded', expanded && items.length > 1)]\"\n :style=\"{ height: `${height}px` }\"\n @pointerenter=\"onPointerEnter\"\n @pointerleave=\"onPointerLeave\"\n @pointerdown=\"onPointerDown\"\n @focusin=\"onFocusIn\"\n @focusout=\"onFocusOut\"\n >\n <TransitionGroup name=\"dou-toast\" @after-leave=\"onAfterLeave\">\n <ToastItem\n v-for=\"item in items\"\n :key=\"item.id\"\n :toast=\"item\"\n :layout=\"layout.get(item.id)!\"\n :paused=\"held\"\n @resize=\"heights.set(item.id, $event)\"\n />\n </TransitionGroup>\n </ol>\n</template>\n"],"mappings":""}
|
|
@@ -67,16 +67,27 @@ var toast_stack_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
67
67
|
emit("settled");
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
const
|
|
70
|
+
const placed = computed(() => {
|
|
71
|
+
const result = [];
|
|
72
|
+
for (let index = props.items.length - 1; index >= 0; index--) {
|
|
73
|
+
const { id } = props.items[index];
|
|
74
|
+
const height = heights.get(id);
|
|
75
|
+
if (height !== void 0) result.push({
|
|
76
|
+
id,
|
|
77
|
+
height
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return result;
|
|
81
|
+
});
|
|
71
82
|
const layout = computed(() => {
|
|
72
83
|
const result = /* @__PURE__ */ new Map();
|
|
73
|
-
const
|
|
84
|
+
const toasts = placed.value;
|
|
85
|
+
const front = toasts[0]?.height;
|
|
74
86
|
let offset = 0;
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
const zIndex = newestFirst.value.length - index;
|
|
87
|
+
toasts.forEach(({ id, height }, index) => {
|
|
88
|
+
const zIndex = toasts.length - index;
|
|
78
89
|
if (expanded.value) {
|
|
79
|
-
result.set(
|
|
90
|
+
result.set(id, {
|
|
80
91
|
offset,
|
|
81
92
|
scale: 1,
|
|
82
93
|
height,
|
|
@@ -84,11 +95,11 @@ var toast_stack_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
84
95
|
hidden: false,
|
|
85
96
|
zIndex
|
|
86
97
|
});
|
|
87
|
-
offset +=
|
|
98
|
+
offset += height + GAP;
|
|
88
99
|
return;
|
|
89
100
|
}
|
|
90
101
|
const depth = Math.min(index, 2);
|
|
91
|
-
result.set(
|
|
102
|
+
result.set(id, {
|
|
92
103
|
offset: depth * PEEK,
|
|
93
104
|
scale: 1 - Math.min(index, VISIBLE) * SHRINK,
|
|
94
105
|
height: index === 0 ? height : front,
|
|
@@ -97,16 +108,26 @@ var toast_stack_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
97
108
|
zIndex
|
|
98
109
|
});
|
|
99
110
|
});
|
|
111
|
+
for (const { id } of props.items) if (!result.has(id)) {
|
|
112
|
+
const zIndex = toasts.length + 1;
|
|
113
|
+
result.set(id, {
|
|
114
|
+
offset: 0,
|
|
115
|
+
scale: 1,
|
|
116
|
+
behind: false,
|
|
117
|
+
hidden: false,
|
|
118
|
+
zIndex
|
|
119
|
+
});
|
|
120
|
+
}
|
|
100
121
|
return result;
|
|
101
122
|
});
|
|
102
123
|
const height = computed(() => {
|
|
103
|
-
const
|
|
124
|
+
const toasts = placed.value;
|
|
104
125
|
if (expanded.value) {
|
|
105
126
|
let total = 0;
|
|
106
|
-
for (const
|
|
127
|
+
for (const toast of toasts) total += toast.height + GAP;
|
|
107
128
|
return Math.max(0, total - GAP);
|
|
108
129
|
}
|
|
109
|
-
return (
|
|
130
|
+
return (toasts[0]?.height ?? 0) + PEEK * Math.max(0, Math.min(toasts.length, VISIBLE) - 1);
|
|
110
131
|
});
|
|
111
132
|
return (_ctx, _cache) => {
|
|
112
133
|
return openBlock(), createElementBlock("ol", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-stack.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_normalizeClass","_unref","_normalizeStyle","_createVNode","_TransitionGroup","_withCtx","_Fragment","_renderList","_createBlock","ToastItem"],"sources":["../../../src/components/toast/toast-stack.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, reactive, ref, watch } from 'vue'\nimport { useNamespace } from '../../utils/namespace'\nimport { hasHover } from '../../utils/pointer'\nimport ToastItem from './toast-item.vue'\nimport type { ToastItemLayout } from './toast-item.vue'\nimport type { ToastRecord } from './toast'\n\ndefineOptions({ name: 'DouToastStack' })\n\nconst props = defineProps<{\n /** Oldest first, as they were shown. */\n items: ToastRecord[]\n stacked: boolean\n}>()\n\nconst emit = defineEmits<{ settled: [] }>()\n\nconst ns = useNamespace('toast')\n\n/** Space between open toasts. */\nconst GAP = 8\n/** How far each toast behind the newest one shows past it. */\nconst PEEK = 12\n/** How much smaller each toast behind is. */\nconst SHRINK = 0.05\n/** Toasts shown in a closed stack; the rest wait out of sight behind them. */\nconst VISIBLE = 3\n\nconst heights = reactive(new Map<number, number>())\nwatch(\n () => props.items.map((item) => item.id),\n (ids) => {\n for (const id of heights.keys()) if (!ids.includes(id)) heights.delete(id)\n },\n)\n\n// Open while the mouse is over the stack or focus is in it; a finger or\n// pen has no hover, so a tap opens it and a tap elsewhere closes it.\nconst hovered = ref(false)\nconst focused = ref(false)\nconst tapped = ref(false)\nconst held = computed(() => hovered.value || focused.value || tapped.value)\nconst expanded = computed(() => !props.stacked || held.value)\n\nconst list = ref<HTMLElement>()\n\nfunction onPointerEnter(event: PointerEvent) {\n if (hasHover(event.pointerType)) hovered.value = true\n}\nfunction onPointerLeave(event: PointerEvent) {\n if (hasHover(event.pointerType)) hovered.value = false\n}\nfunction onPointerDown(event: PointerEvent) {\n if (hasHover(event.pointerType) || tapped.value) return\n tapped.value = true\n document.addEventListener('pointerdown', onOutside, true)\n}\nfunction onOutside(event: PointerEvent) {\n if (list.value?.contains(event.target as Node)) return\n release()\n}\nfunction release() {\n tapped.value = false\n document.removeEventListener('pointerdown', onOutside, true)\n}\nonBeforeUnmount(release)\n\nfunction onFocusIn() {\n focused.value = true\n}\nfunction onFocusOut(event: FocusEvent) {\n if (!list.value?.contains(event.relatedTarget as Node | null)) focused.value = false\n}\n\n// A toast closed from the keyboard takes the focus with it, and not every\n// browser says so: once it is gone, check where the focus went.\nfunction onAfterLeave() {\n if (focused.value && !list.value?.contains(document.activeElement)) focused.value = false\n if (props.items.length === 0) {\n hovered.value = false\n release()\n emit('settled')\n }\n}\n\nconst
|
|
1
|
+
{"version":3,"file":"toast-stack.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_normalizeClass","_unref","_normalizeStyle","_createVNode","_TransitionGroup","_withCtx","_Fragment","_renderList","_createBlock","ToastItem"],"sources":["../../../src/components/toast/toast-stack.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, reactive, ref, watch } from 'vue'\nimport { useNamespace } from '../../utils/namespace'\nimport { hasHover } from '../../utils/pointer'\nimport ToastItem from './toast-item.vue'\nimport type { ToastItemLayout } from './toast-item.vue'\nimport type { ToastRecord } from './toast'\n\ndefineOptions({ name: 'DouToastStack' })\n\nconst props = defineProps<{\n /** Oldest first, as they were shown. */\n items: ToastRecord[]\n stacked: boolean\n}>()\n\nconst emit = defineEmits<{ settled: [] }>()\n\nconst ns = useNamespace('toast')\n\n/** Space between open toasts. */\nconst GAP = 8\n/** How far each toast behind the newest one shows past it. */\nconst PEEK = 12\n/** How much smaller each toast behind is. */\nconst SHRINK = 0.05\n/** Toasts shown in a closed stack; the rest wait out of sight behind them. */\nconst VISIBLE = 3\n\nconst heights = reactive(new Map<number, number>())\nwatch(\n () => props.items.map((item) => item.id),\n (ids) => {\n for (const id of heights.keys()) if (!ids.includes(id)) heights.delete(id)\n },\n)\n\n// Open while the mouse is over the stack or focus is in it; a finger or\n// pen has no hover, so a tap opens it and a tap elsewhere closes it.\nconst hovered = ref(false)\nconst focused = ref(false)\nconst tapped = ref(false)\nconst held = computed(() => hovered.value || focused.value || tapped.value)\nconst expanded = computed(() => !props.stacked || held.value)\n\nconst list = ref<HTMLElement>()\n\nfunction onPointerEnter(event: PointerEvent) {\n if (hasHover(event.pointerType)) hovered.value = true\n}\nfunction onPointerLeave(event: PointerEvent) {\n if (hasHover(event.pointerType)) hovered.value = false\n}\nfunction onPointerDown(event: PointerEvent) {\n if (hasHover(event.pointerType) || tapped.value) return\n tapped.value = true\n document.addEventListener('pointerdown', onOutside, true)\n}\nfunction onOutside(event: PointerEvent) {\n if (list.value?.contains(event.target as Node)) return\n release()\n}\nfunction release() {\n tapped.value = false\n document.removeEventListener('pointerdown', onOutside, true)\n}\nonBeforeUnmount(release)\n\nfunction onFocusIn() {\n focused.value = true\n}\nfunction onFocusOut(event: FocusEvent) {\n if (!list.value?.contains(event.relatedTarget as Node | null)) focused.value = false\n}\n\n// A toast closed from the keyboard takes the focus with it, and not every\n// browser says so: once it is gone, check where the focus went.\nfunction onAfterLeave() {\n if (focused.value && !list.value?.contains(document.activeElement)) focused.value = false\n if (props.items.length === 0) {\n hovered.value = false\n release()\n emit('settled')\n }\n}\n\n// A toast just added has no height yet: it is measured as it mounts,\n// which makes the browser work out the styles right then. Leaving it out\n// of the layout until then keeps the others where they are at that moment,\n// so they move from their old places to the new ones in one transition\n// rather than starting from where a height of zero would put them.\nconst placed = computed(() => {\n const result: { id: number; height: number }[] = []\n for (let index = props.items.length - 1; index >= 0; index--) {\n const { id } = props.items[index]!\n const height = heights.get(id)\n if (height !== undefined) result.push({ id, height })\n }\n return result\n})\n\nconst layout = computed(() => {\n const result = new Map<number, ToastItemLayout>()\n const toasts = placed.value\n const front = toasts[0]?.height\n let offset = 0\n toasts.forEach(({ id, height }, index) => {\n const zIndex = toasts.length - index\n if (expanded.value) {\n result.set(id, { offset, scale: 1, height, behind: false, hidden: false, zIndex })\n offset += height + GAP\n return\n }\n // A closed stack shows the newest toast whole and the edges of the\n // ones behind it, each a little smaller, all at the newest one's height.\n const depth = Math.min(index, VISIBLE - 1)\n result.set(id, {\n offset: depth * PEEK,\n scale: 1 - Math.min(index, VISIBLE) * SHRINK,\n height: index === 0 ? height : front,\n behind: index > 0,\n hidden: index >= VISIBLE,\n zIndex,\n })\n })\n for (const { id } of props.items) {\n if (!result.has(id)) {\n const zIndex = toasts.length + 1\n result.set(id, { offset: 0, scale: 1, behind: false, hidden: false, zIndex })\n }\n }\n return result\n})\n\nconst height = computed(() => {\n const toasts = placed.value\n if (expanded.value) {\n let total = 0\n for (const toast of toasts) total += toast.height + GAP\n return Math.max(0, total - GAP)\n }\n const front = toasts[0]?.height ?? 0\n return front + PEEK * Math.max(0, Math.min(toasts.length, VISIBLE) - 1)\n})\n</script>\n\n<template>\n <ol\n ref=\"list\"\n :class=\"[ns.e('list'), ns.is('expanded', expanded && items.length > 1)]\"\n :style=\"{ height: `${height}px` }\"\n @pointerenter=\"onPointerEnter\"\n @pointerleave=\"onPointerLeave\"\n @pointerdown=\"onPointerDown\"\n @focusin=\"onFocusIn\"\n @focusout=\"onFocusOut\"\n >\n <TransitionGroup name=\"dou-toast\" @after-leave=\"onAfterLeave\">\n <ToastItem\n v-for=\"item in items\"\n :key=\"item.id\"\n :toast=\"item\"\n :layout=\"layout.get(item.id)!\"\n :paused=\"held\"\n @resize=\"heights.set(item.id, $event)\"\n />\n </TransitionGroup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alpha.12",
|
|
4
4
|
"description": "为自己打造的 Vue 3 组件库:简洁克制,样式与组件分离,内置无障碍支持",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"vue": "^3.5.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@dou-ui/icons": "0.1.0-alpha.
|
|
53
|
-
"@dou-ui/theme": "0.1.0-alpha.
|
|
52
|
+
"@dou-ui/icons": "0.1.0-alpha.12",
|
|
53
|
+
"@dou-ui/theme": "0.1.0-alpha.12"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|