@m3ui-vue/m3ui-vue 1.0.0 → 1.0.1
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/dist/API.md +3 -2
- package/dist/{MTextField-TZ7lfr09.js → MTextField-BPbFeI9M.js} +76 -73
- package/dist/MTextField-BPbFeI9M.js.map +1 -0
- package/dist/api.json +1 -1
- package/dist/components/MNavigationDrawer.vue.d.ts +9 -6
- package/dist/components/MTransition.vue.d.ts +0 -9
- package/dist/composables/_springAnimation.d.ts +17 -0
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +2952 -2765
- package/dist/m3ui.js.map +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/__tests__/MAppBarWithSearch.test.ts +12 -0
- package/src/__tests__/MBottomSheetScaffold.test.ts +21 -0
- package/src/__tests__/MNavigationDrawer.test.ts +185 -0
- package/src/__tests__/MNavigationRail.test.ts +17 -1
- package/src/__tests__/MPullToRefresh.test.ts +18 -1
- package/src/__tests__/MTransition.test.ts +12 -0
- package/src/__tests__/sheets.test.ts +19 -15
- package/src/components/MBottomSheetScaffold.vue +23 -2
- package/src/components/MContextMenu.vue +34 -33
- package/src/components/MMenu.vue +34 -33
- package/src/components/MNavigationDrawer.vue +297 -37
- package/src/components/MNavigationRail.vue +69 -15
- package/src/components/MPullToRefresh.vue +18 -0
- package/src/components/MSearchBar.vue +4 -3
- package/src/components/MTransition.vue +36 -41
- package/src/composables/_springAnimation.ts +74 -0
- package/src/composables/_useSheetMotion.ts +101 -88
- package/dist/MTextField-TZ7lfr09.js.map +0 -1
package/dist/rich-text-editor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e } from "./useLocale-CuvWRZ1h.js";
|
|
2
|
-
import { a as t, n, o as r, r as i, t as a } from "./MTextField-
|
|
2
|
+
import { a as t, n, o as r, r as i, t as a } from "./MTextField-BPbFeI9M.js";
|
|
3
3
|
import { t as o } from "./MIcon-DLOkQduI.js";
|
|
4
4
|
import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
5
5
|
import { Fragment as c, computed as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, renderList as S, shallowRef as C, toDisplayString as w, watch as T, withCtx as E, withKeys as D } from "vue";
|
package/dist/styles.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.code-editor-container[data-v-f0196990]{flex-direction:column;flex:auto;min-height:0;display:flex}.code-editor-container[data-v-f0196990] .cm-editor{flex:1;min-height:0;font-size:.8125rem}.code-editor-container[data-v-f0196990] .cm-editor.cm-focused{outline:none}.code-editor-container[data-v-f0196990] .cm-scroller{min-height:0;font-family:var(--font-mono,"Roboto Mono", monospace);line-height:1.6;flex:1!important;align-items:stretch!important}.code-editor-container[data-v-f0196990] .cm-content{padding:12px 0}.code-editor-container[data-v-f0196990] .cm-line{padding:0 16px}.code-editor-container[data-v-f0196990] .cm-gutters{background:var(--color-surface-container);border-right:1px solid var(--color-outline-variant);color:var(--color-outline);padding:0 4px;font-size:.75rem;align-self:stretch!important;height:auto!important}.code-editor-container[data-v-f0196990] .cm-activeLineGutter{background:var(--color-surface-container-high);color:var(--color-on-surface-variant)}.code-editor-container[data-v-f0196990] .cm-activeLine{background:color-mix(in srgb, var(--color-on-surface) 5%, transparent)}.code-editor-container[data-v-f0196990] .cm-selectionBackground{background:var(--color-primary-container)!important}.code-editor-container[data-v-f0196990] .cm-cursor{border-left-color:var(--color-primary);border-left-width:2px}.code-editor-container[data-v-f0196990] .cm-matchingBracket{background:var(--color-tertiary-container);color:var(--color-on-tertiary-container);border-radius:2px}.code-editor-container[data-v-f0196990] .cm-foldGutter span{color:var(--color-on-surface-variant)}@keyframes m3-wavy-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes m3-wavy-travel{0%{stroke-dashoffset:0}to{stroke-dashoffset:calc(var(--m3-wave-len) * -1px)}}@media (prefers-reduced-motion:reduce){.animate-\[m3-wavy-spin_2\.8s_linear_infinite\]{animation:2.8s linear infinite m3-wavy-spin}.animate-\[m3-wavy-travel_2s_linear_infinite\]{animation:none!important}}.m3-dialog-enter-active[data-v-0aac9ebd],.m3-dialog-leave-active[data-v-0aac9ebd]{transition:opacity .15s}.m3-dialog-enter-from[data-v-0aac9ebd],.m3-dialog-leave-to[data-v-0aac9ebd]{opacity:0}.m3-dialog-enter-active .dialog-box[data-v-0aac9ebd],.m3-dialog-leave-active .dialog-box[data-v-0aac9ebd]{transition:transform .15s}.m3-dialog-enter-from .dialog-box[data-v-0aac9ebd],.m3-dialog-leave-to .dialog-box[data-v-0aac9ebd]{transform:scale(.95)}.m3-dialog-fs-enter-active[data-v-0aac9ebd],.m3-dialog-fs-leave-active[data-v-0aac9ebd]{transition:transform .25s cubic-bezier(.2,0,0,1),opacity .15s}.m3-dialog-fs-enter-from[data-v-0aac9ebd],.m3-dialog-fs-leave-to[data-v-0aac9ebd]{opacity:0;transform:translateY(100%)}.toast-row[data-v-1c9345cc]{grid-template-rows:1fr;padding-bottom:8px;display:grid}.toast-row>.toast-inner[data-v-1c9345cc]{min-height:0}.m3-toast-bot-enter-active[data-v-1c9345cc]{transition:grid-template-rows .22s cubic-bezier(.2,0,0,1),padding-bottom .22s cubic-bezier(.2,0,0,1)}.m3-toast-bot-enter-active>.toast-inner[data-v-1c9345cc]{transition:opacity .18s,transform .22s cubic-bezier(.2,0,0,1)}.m3-toast-bot-enter-from[data-v-1c9345cc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-bot-enter-from>.toast-inner[data-v-1c9345cc]{opacity:0;transform:translateY(20px)scale(.94)}.m3-toast-bot-leave-active[data-v-1c9345cc]{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1),padding-bottom .3s cubic-bezier(.2,0,0,1)}.m3-toast-bot-leave-active>.toast-inner[data-v-1c9345cc]{transition:opacity .18s,transform .18s}.m3-toast-bot-leave-to[data-v-1c9345cc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-bot-leave-to>.toast-inner[data-v-1c9345cc]{opacity:0;transform:scale(.92)}.m3-toast-bot-leave-active>.toast-count-badge[data-v-1c9345cc]{transition:opacity .15s,transform .15s}.m3-toast-bot-leave-to>.toast-count-badge[data-v-1c9345cc]{opacity:0;transform:scale(.5)}.m3-toast-top-enter-active[data-v-1c9345cc]{transition:grid-template-rows .22s cubic-bezier(.2,0,0,1),padding-bottom .22s cubic-bezier(.2,0,0,1)}.m3-toast-top-enter-active>.toast-inner[data-v-1c9345cc]{transition:opacity .18s,transform .22s cubic-bezier(.2,0,0,1)}.m3-toast-top-enter-from[data-v-1c9345cc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-top-enter-from>.toast-inner[data-v-1c9345cc]{opacity:0;transform:translateY(-20px)scale(.94)}.m3-toast-top-leave-active[data-v-1c9345cc]{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1),padding-bottom .3s cubic-bezier(.2,0,0,1)}.m3-toast-top-leave-active>.toast-inner[data-v-1c9345cc]{transition:opacity .18s,transform .18s}.m3-toast-top-leave-to[data-v-1c9345cc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-top-leave-to>.toast-inner[data-v-1c9345cc]{opacity:0;transform:scale(.92)}.m3-toast-top-leave-active>.toast-count-badge[data-v-1c9345cc]{transition:opacity .15s,transform .15s}.m3-toast-top-leave-to>.toast-count-badge[data-v-1c9345cc]{opacity:0;transform:scale(.5)}.m3-badge-enter-active[data-v-1c9345cc]{transition:opacity .2s,transform .2s cubic-bezier(.34,1.56,.64,1)}.m3-badge-leave-active[data-v-1c9345cc]{transition:opacity .15s,transform .15s}.m3-badge-enter-from[data-v-1c9345cc],.m3-badge-leave-to[data-v-1c9345cc]{opacity:0;transform:scale(.5)}.m3-count-enter-active[data-v-1c9345cc]{transition:opacity .12s,transform .12s}.m3-count-leave-active[data-v-1c9345cc]{transition:opacity 80ms,transform 80ms}.m3-count-enter-from[data-v-1c9345cc]{opacity:0;transform:scale(1.5)translateY(-3px)}.m3-count-leave-to[data-v-1c9345cc]{opacity:0;transform:scale(.6)translateY(2px)}@keyframes m3-toast-progress-1c9345cc{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.notif-row[data-v-d0c68af4]{grid-template-rows:1fr;padding-bottom:6px;display:grid}.notif-row>.notif-inner[data-v-d0c68af4]{min-height:0}.m3-notif-bot-enter-active[data-v-d0c68af4]{transition:grid-template-rows .2s,padding-bottom .2s}.m3-notif-bot-enter-active>.notif-inner[data-v-d0c68af4]{transition:opacity .15s,transform .2s;overflow:hidden}.m3-notif-bot-enter-from[data-v-d0c68af4]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-bot-enter-from>.notif-inner[data-v-d0c68af4]{opacity:0;transform:translateY(12px)scale(.95)}.m3-notif-bot-leave-active[data-v-d0c68af4]{transition:grid-template-rows .25s,padding-bottom .25s}.m3-notif-bot-leave-active>.notif-inner[data-v-d0c68af4]{transition:opacity .15s,transform .15s;overflow:hidden}.m3-notif-bot-leave-to[data-v-d0c68af4]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-bot-leave-to>.notif-inner[data-v-d0c68af4]{opacity:0;transform:scale(.93)}.m3-notif-bot-leave-active>.notif-count-badge[data-v-d0c68af4]{transition:opacity .15s,transform .15s}.m3-notif-bot-leave-to>.notif-count-badge[data-v-d0c68af4]{opacity:0;transform:scale(.5)}.m3-notif-top-enter-active[data-v-d0c68af4]{transition:grid-template-rows .2s,padding-bottom .2s}.m3-notif-top-enter-active>.notif-inner[data-v-d0c68af4]{transition:opacity .15s,transform .2s;overflow:hidden}.m3-notif-top-enter-from[data-v-d0c68af4]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-top-enter-from>.notif-inner[data-v-d0c68af4]{opacity:0;transform:translateY(-12px)scale(.95)}.m3-notif-top-leave-active[data-v-d0c68af4]{transition:grid-template-rows .25s,padding-bottom .25s}.m3-notif-top-leave-active>.notif-inner[data-v-d0c68af4]{transition:opacity .15s,transform .15s;overflow:hidden}.m3-notif-top-leave-to[data-v-d0c68af4]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-top-leave-to>.notif-inner[data-v-d0c68af4]{opacity:0;transform:scale(.93)}.m3-notif-top-leave-active>.notif-count-badge[data-v-d0c68af4]{transition:opacity .15s,transform .15s}.m3-notif-top-leave-to>.notif-count-badge[data-v-d0c68af4]{opacity:0;transform:scale(.5)}.m3-badge-enter-active[data-v-d0c68af4]{transition:opacity .2s,transform .2s cubic-bezier(.34,1.56,.64,1)}.m3-badge-leave-active[data-v-d0c68af4]{transition:opacity .15s,transform .15s}.m3-badge-enter-from[data-v-d0c68af4],.m3-badge-leave-to[data-v-d0c68af4]{opacity:0;transform:scale(.5)}.m3-count-enter-active[data-v-d0c68af4]{transition:opacity .12s,transform .12s}.m3-count-leave-active[data-v-d0c68af4]{transition:opacity 80ms,transform 80ms}.m3-count-enter-from[data-v-d0c68af4]{opacity:0;transform:scale(1.5)translateY(-3px)}.m3-count-leave-to[data-v-d0c68af4]{opacity:0;transform:scale(.6)translateY(2px)}.m3-ac-modal-enter-active[data-v-3b2bf843],.m3-ac-modal-leave-active[data-v-3b2bf843]{transition:opacity .15s}.m3-ac-modal-enter-from[data-v-3b2bf843],.m3-ac-modal-leave-to[data-v-3b2bf843]{opacity:0}.m3-ac-modal-enter-active .ac-modal-box[data-v-3b2bf843],.m3-ac-modal-leave-active .ac-modal-box[data-v-3b2bf843]{transition:transform .15s}.m3-ac-modal-enter-from .ac-modal-box[data-v-3b2bf843],.m3-ac-modal-leave-to .ac-modal-box[data-v-3b2bf843]{transform:scale(.95)}.m3-searchbar-docked-enter-active[data-v-a91889d6],.m3-searchbar-docked-leave-active[data-v-a91889d6]{transform-origin:top;transition:opacity .15s,transform .15s cubic-bezier(.2,0,0,1)}.m3-searchbar-docked-enter-from[data-v-a91889d6],.m3-searchbar-docked-leave-to[data-v-a91889d6]{opacity:0;transform:scaleY(.9)}.m3-searchbar-full-enter-active[data-v-a91889d6],.m3-searchbar-full-leave-active[data-v-a91889d6]{transition:opacity .15s}.m3-searchbar-full-enter-from[data-v-a91889d6],.m3-searchbar-full-leave-to[data-v-a91889d6]{opacity:0}.m3-bar-btn{width:46px;height:100%;color:var(--color-on-surface-variant);cursor:pointer;justify-content:center;align-items:center;transition:background-color .1s,color .1s;display:inline-flex}.m3-bar-btn:hover{background-color:var(--color-surface-container-highest);color:var(--color-on-surface)}.m3-bar-btn-close:hover{background-color:var(--color-error);color:var(--color-on-error)}.m3-typing-dot[data-v-df4ba2e8]{animation:1.2s ease-in-out infinite m3-typing-dot-df4ba2e8}@keyframes m3-typing-dot-df4ba2e8{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}.m3-typing-mic[data-v-df4ba2e8]{animation:1.4s ease-in-out infinite m3-typing-mic-df4ba2e8}@keyframes m3-typing-mic-df4ba2e8{0%,to{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.9)}}.m3-typing-bar[data-v-df4ba2e8]{transform-origin:50%;animation:.9s ease-in-out infinite m3-typing-bar-df4ba2e8}@keyframes m3-typing-bar-df4ba2e8{0%,to{transform:scaleY(.25)}50%{transform:scaleY(1)}}@media (prefers-reduced-motion:reduce){.m3-typing-dot[data-v-df4ba2e8],.m3-typing-mic[data-v-df4ba2e8],.m3-typing-bar[data-v-df4ba2e8]{animation:none}.m3-typing-bar[data-v-df4ba2e8]{transform:scaleY(.6)}}.m3-cp-hue[data-v-87647feb]{background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.m3-cp-swatch[data-v-87647feb]{box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--color-on-surface) 12%, transparent)}.m3-cp-morph[data-v-87647feb]{border-radius:30%;transition:border-radius .25s cubic-bezier(.2,0,0,1)}.m3-cp-morph[data-v-87647feb]:hover{border-radius:40%}.m3-cp-morph-selected[data-v-87647feb],.m3-cp-morph-selected[data-v-87647feb]:hover{border-radius:50%}.m3-cp-area-thumb[data-v-87647feb]{box-shadow:0 0 0 1px #0003,0 1px 3px 1px #00000040}.m3-cp-slider[data-v-87647feb]{cursor:pointer;touch-action:none;outline:none;height:32px;position:relative}.m3-cp-track[data-v-87647feb]{box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--color-on-surface) 12%, transparent);border-radius:9999px;position:absolute;inset:4px 0}.m3-cp-handle[data-v-87647feb]{pointer-events:none;background:#fff;border-radius:9999px;width:6px;height:32px;transition:width .15s cubic-bezier(.2,0,0,1);position:absolute;top:0;translate:-50%;box-shadow:0 0 0 1px #0003,0 1px 3px #0000004d}.m3-cp-handle-pressed[data-v-87647feb]{width:4px}.group:focus-visible .m3-cp-handle[data-v-87647feb]{outline:2px solid var(--color-primary);outline-offset:2px}.m3-cp-field[data-v-87647feb]{border-radius:var(--radius-sm);background:var(--color-surface-container-highest);text-align:center;height:40px;color:var(--color-on-surface);caret-color:var(--color-primary);outline-offset:-2px;border:none;outline:2px solid #0000;padding:0 8px;transition:outline-color .15s}.m3-cp-field[data-v-87647feb]:hover{outline-color:color-mix(in srgb, var(--color-on-surface) 12%, transparent)}.m3-cp-field[data-v-87647feb]:focus{outline-color:var(--color-primary)}.m3-cp-swatch[data-v-53c0dfc5]{box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--color-on-surface) 12%, transparent)}.m3-cp-drop-enter-active[data-v-53c0dfc5]{transition:opacity .15s cubic-bezier(.2,0,0,1),transform .25s cubic-bezier(.2,0,0,1)}.m3-cp-drop-leave-active[data-v-53c0dfc5]{transition:opacity .1s,transform .1s}.m3-cp-drop-enter-from[data-v-53c0dfc5],.m3-cp-drop-leave-to[data-v-53c0dfc5]{opacity:0;transform:translateY(-4px)scale(.98)}.m3-cmd-enter-active[data-v-99dca97f],.m3-cmd-leave-active[data-v-99dca97f]{transition:opacity .15s}.m3-cmd-enter-from[data-v-99dca97f],.m3-cmd-leave-to[data-v-99dca97f]{opacity:0}.m3-cmd-enter-active .cmd-box[data-v-99dca97f],.m3-cmd-leave-active .cmd-box[data-v-99dca97f]{transition:transform .15s}.m3-cmd-enter-from .cmd-box[data-v-99dca97f],.m3-cmd-leave-to .cmd-box[data-v-99dca97f]{transform:scale(.95)translateY(-10px)}.dt-expand-grid[data-v-e345a463]{grid-template-rows:0fr;transition:grid-template-rows .25s cubic-bezier(.2,0,0,1);display:grid}.dt-expand-grid.dt-expand-open[data-v-e345a463]{grid-template-rows:1fr}.dt-expand-body[data-v-e345a463]{min-height:0;overflow:hidden}.m3-dp-modal-enter-active[data-v-e5202410],.m3-dp-modal-leave-active[data-v-e5202410]{transition:opacity .15s}.m3-dp-modal-enter-from[data-v-e5202410],.m3-dp-modal-leave-to[data-v-e5202410]{opacity:0}.m3-dp-modal-enter-active .dp-box[data-v-e5202410],.m3-dp-modal-leave-active .dp-box[data-v-e5202410]{transition:transform .15s}.m3-dp-modal-enter-from .dp-box[data-v-e5202410],.m3-dp-modal-leave-to .dp-box[data-v-e5202410]{transform:scale(.95)}.m3-drp-modal-enter-active[data-v-e249b679],.m3-drp-modal-leave-active[data-v-e249b679]{transition:opacity .15s}.m3-drp-modal-enter-from[data-v-e249b679],.m3-drp-modal-leave-to[data-v-e249b679]{opacity:0}.m3-drp-modal-enter-active .drp-box[data-v-e249b679],.m3-drp-modal-leave-active .drp-box[data-v-e249b679]{transition:transform .15s}.m3-drp-modal-enter-from .drp-box[data-v-e249b679],.m3-drp-modal-leave-to .drp-box[data-v-e249b679]{transform:scale(.95)}.m3-dd-bare-lifted[data-v-1b63e23a]{filter:drop-shadow(0 2px 3px #0000004d)drop-shadow(0 6px 10px #00000026)}.expand-grid[data-v-8019cbed]{grid-template-rows:0fr;transition:grid-template-rows .3s ease-in-out;display:grid}.expand-grid.expand-open[data-v-8019cbed]{grid-template-rows:1fr}.expand-body[data-v-8019cbed]{min-height:0;overflow:hidden}.m3-fab-content-scale-enter-active[data-v-ade711cb]{transition:opacity .2s,transform .2s cubic-bezier(.2,0,0,1)}.m3-fab-content-scale-leave-active[data-v-ade711cb]{transition:opacity .15s,transform .15s}.m3-fab-content-scale-enter-from[data-v-ade711cb]{opacity:0;transform:scale(.85)}.m3-fab-content-scale-leave-to[data-v-ade711cb]{opacity:0;transform:scale(.9)}.m3-fab-content-fade-enter-active[data-v-ade711cb],.m3-fab-content-fade-leave-active[data-v-ade711cb]{transition:opacity .22s}.m3-fab-content-fade-enter-from[data-v-ade711cb],.m3-fab-content-fade-leave-to[data-v-ade711cb]{opacity:0}.m3-fab-scrim-enter-active[data-v-ade711cb],.m3-fab-scrim-leave-active[data-v-ade711cb]{transition:opacity .2s}.m3-fab-scrim-enter-from[data-v-ade711cb],.m3-fab-scrim-leave-to[data-v-ade711cb]{opacity:0}.m3-fabmenu-item-inner[data-v-90e98c33]{clip-path:inset(0 0 0 0%);transition:clip-path .22s cubic-bezier(.3,1.2,.4,1)}.m3-fabmenu-item-enter-active .m3-fabmenu-item-inner[data-v-90e98c33]{transition-delay:var(--m3-fabmenu-delay,0s)}.m3-fabmenu-item-enter-active[data-v-90e98c33],.m3-fabmenu-item-leave-active[data-v-90e98c33]{transition:opacity .14s ease-out}.m3-fabmenu-item-enter-active[data-v-90e98c33]{transition-delay:var(--m3-fabmenu-delay,0s)}.m3-fabmenu-item-enter-from[data-v-90e98c33],.m3-fabmenu-item-leave-to[data-v-90e98c33]{opacity:0}.m3-fabmenu-item--from-end.m3-fabmenu-item-enter-from .m3-fabmenu-item-inner[data-v-90e98c33],.m3-fabmenu-item--from-end.m3-fabmenu-item-leave-to .m3-fabmenu-item-inner[data-v-90e98c33]{clip-path:inset(0 0 0 100%)}.m3-fabmenu-item--from-start.m3-fabmenu-item-enter-from .m3-fabmenu-item-inner[data-v-90e98c33],.m3-fabmenu-item--from-start.m3-fabmenu-item-leave-to .m3-fabmenu-item-inner[data-v-90e98c33]{clip-path:inset(0 100% 0 0)}@media (prefers-reduced-motion:reduce){.m3-fabmenu-item-inner[data-v-90e98c33],.m3-fabmenu-item-enter-active[data-v-90e98c33],.m3-fabmenu-item-leave-active[data-v-90e98c33]{transition:none}}.m3-file-enter-active[data-v-c977ca1c],.m3-file-leave-active[data-v-c977ca1c]{transition:all .2s}.m3-file-enter-from[data-v-c977ca1c],.m3-file-leave-to[data-v-c977ca1c]{opacity:0;transform:translateY(-8px)}.mli-expand-grid{grid-template-rows:1fr;display:grid}.mli-expand-body{min-height:0;padding-left:2rem;overflow:hidden}.mli-expand-enter-active{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1)}.mli-expand-enter-active>.mli-expand-body{transition:opacity .2s cubic-bezier(.2,0,0,1) 80ms}.mli-expand-enter-from{grid-template-rows:0fr}.mli-expand-enter-from>.mli-expand-body{opacity:0}.mli-expand-leave-active{transition:grid-template-rows .25s cubic-bezier(.4,0,1,1)}.mli-expand-leave-active>.mli-expand-body{transition:opacity .12s cubic-bezier(.4,0,1,1)}.mli-expand-leave-to{grid-template-rows:0fr}.mli-expand-leave-to>.mli-expand-body{opacity:0}.m3-mac-modal-enter-active[data-v-b076c3ba],.m3-mac-modal-leave-active[data-v-b076c3ba]{transition:opacity .15s}.m3-mac-modal-enter-from[data-v-b076c3ba],.m3-mac-modal-leave-to[data-v-b076c3ba]{opacity:0}.m3-mac-modal-enter-active .mac-modal-box[data-v-b076c3ba],.m3-mac-modal-leave-active .mac-modal-box[data-v-b076c3ba]{transition:transform .15s}.m3-mac-modal-enter-from .mac-modal-box[data-v-b076c3ba],.m3-mac-modal-leave-to .mac-modal-box[data-v-b076c3ba]{transform:scale(.95)}.m3-ms-modal-enter-active[data-v-66489a75],.m3-ms-modal-leave-active[data-v-66489a75]{transition:opacity .15s}.m3-ms-modal-enter-from[data-v-66489a75],.m3-ms-modal-leave-to[data-v-66489a75]{opacity:0}.m3-ms-modal-enter-active .ms-modal-box[data-v-66489a75],.m3-ms-modal-leave-active .ms-modal-box[data-v-66489a75]{transition:transform .15s}.m3-ms-modal-enter-from .ms-modal-box[data-v-66489a75],.m3-ms-modal-leave-to .ms-modal-box[data-v-66489a75]{transform:scale(.95)}input[type=number][data-v-e67c821c]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-e67c821c]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-e67c821c]{-moz-appearance:textfield}.nd-scrim[data-v-5b664f2a]{transition:opacity .28s}.nd-enter-from .nd-scrim[data-v-5b664f2a],.nd-leave-to .nd-scrim[data-v-5b664f2a]{opacity:0}.nd-panel[data-v-5b664f2a]{transition:transform .3s cubic-bezier(.2,0,0,1)}.nd-enter-from .nd-panel-left[data-v-5b664f2a],.nd-leave-to .nd-panel-left[data-v-5b664f2a]{transform:translate(-100%)}.nd-enter-from .nd-panel-right[data-v-5b664f2a],.nd-leave-to .nd-panel-right[data-v-5b664f2a]{transform:translate(100%)}.nd-enter-from .nd-panel-top[data-v-5b664f2a],.nd-leave-to .nd-panel-top[data-v-5b664f2a]{transform:translateY(-100%)}.nd-enter-from .nd-panel-bottom[data-v-5b664f2a],.nd-leave-to .nd-panel-bottom[data-v-5b664f2a]{transform:translateY(100%)}.nd-section-grid[data-v-5b664f2a]{grid-template-rows:1fr;display:grid}.nd-section-body[data-v-5b664f2a]{min-height:0;overflow:hidden}.nd-section-enter-active[data-v-5b664f2a]{transition:grid-template-rows .35s cubic-bezier(.2,0,0,1)}.nd-section-enter-active>.nd-section-body[data-v-5b664f2a]{transition:opacity .25s cubic-bezier(.2,0,0,1) 80ms}.nd-section-enter-from[data-v-5b664f2a]{grid-template-rows:0fr}.nd-section-enter-from>.nd-section-body[data-v-5b664f2a]{opacity:0}.nd-section-leave-active[data-v-5b664f2a]{transition:grid-template-rows .28s cubic-bezier(.4,0,1,1)}.nd-section-leave-active>.nd-section-body[data-v-5b664f2a]{transition:opacity .15s cubic-bezier(.4,0,1,1)}.nd-section-leave-to[data-v-5b664f2a]{grid-template-rows:0fr}.nd-section-leave-to>.nd-section-body[data-v-5b664f2a]{opacity:0}.nd-inline[data-v-5b664f2a]{transition:width .3s cubic-bezier(.2,0,0,1);overflow:hidden}.nd-inline[data-v-5b664f2a]>*{min-width:var(--nd-width,22.5rem)}.nd-inline.nd-collapsed[data-v-5b664f2a]>*{min-width:0}.nd-toggle[data-v-5b664f2a]{align-items:center;display:flex}.nd-toggle-inner[data-v-5b664f2a]{flex-shrink:0;justify-content:center;align-items:center;width:72px;height:64px;display:flex}.nd-label[data-v-5b664f2a]{transition:opacity .2s cubic-bezier(.2,0,0,1) 80ms}.nd-inline.nd-collapsed .nd-label[data-v-5b664f2a],.nd-inline.nd-collapsed[data-v-5b664f2a] .nd-label{opacity:0;transition:opacity .1s cubic-bezier(.2,0,0,1)}.nd-inline .nd-collapse-h[data-v-5b664f2a]{max-height:80px;transition:max-height .3s cubic-bezier(.2,0,0,1)}.nd-inline.nd-collapsed .nd-collapse-h[data-v-5b664f2a]{max-height:0}.nd-inline .nd-section-body[data-v-5b664f2a]>*,.nd-inline[data-v-5b664f2a] .nd-section-body>*{transition:padding .3s cubic-bezier(.2,0,0,1)}.nd-children-divider[data-v-5b664f2a]{border-top:1px solid #0000;height:0;margin:0 .75rem;transition:border-color .1s,margin .1s}.nd-inline.nd-collapsed .nd-children-divider[data-v-5b664f2a]{border-top-color:var(--color-outline-variant);margin:.25rem .75rem;transition:border-color .2s .3s,margin .2s .3s}.wnr-scrim[data-v-ebbd2c97]{transition:opacity .22s}.m3-ld-pane[data-v-0dbdf89f]{transition:transform .4s cubic-bezier(.2,0,0,1),opacity .2s linear,visibility}.m3-ld-list-hidden[data-v-0dbdf89f]{opacity:0;visibility:hidden;transition:transform .4s cubic-bezier(.2,0,0,1),opacity .2s linear,visibility 0s .4s;transform:translate(-12%)}.m3-ld-detail-hidden[data-v-0dbdf89f]{opacity:0;visibility:hidden;transition:transform .4s cubic-bezier(.2,0,0,1),opacity .2s linear .2s,visibility 0s .4s;transform:translate(100%)}[dir=rtl]{transform:translate(-100%)}@media (prefers-reduced-motion:reduce){.m3-ld-pane[data-v-0dbdf89f],.m3-ld-list-hidden[data-v-0dbdf89f],.m3-ld-detail-hidden[data-v-0dbdf89f]{transition:visibility}}@keyframes m3-wave-flow{0%{transform:translate(0)}to{transform:translate(-20px)}}@keyframes m3-progress-indeterminate{0%{left:-40%}to{left:100%}}@media (prefers-reduced-motion:reduce){.animate-\[m3-wave-flow_1\.2s_linear_infinite\],.animate-\[m3-wave-flow_0\.9s_linear_infinite\],.animate-\[m3-progress-indeterminate_1\.6s_ease-in-out_infinite\]{animation:none!important}}@keyframes m3-cpb-spin{0%{transform:rotate(-90deg)}to{transform:rotate(270deg)}}@keyframes m3-cpb-arc{0%{stroke-dasharray:5 246.3;stroke-dashoffset:0}50%{stroke-dasharray:176 75.3;stroke-dashoffset:-70px}to{stroke-dasharray:5 246.3;stroke-dashoffset:-251.3px}}.m3-radio-dot[data-v-35f87b1d]{transform-box:fill-box;transform-origin:50%;transition:transform .15s;transform:scale(0)}.m3-radio-dot.is-checked[data-v-35f87b1d]{transform:scale(1)}.m3-scrollable-hidden{scrollbar-width:none}.m3-scrollable-hidden::-webkit-scrollbar{display:none}.m3-scrollable-thumb{background:color-mix(in srgb, var(--color-outline) 70%, transparent);pointer-events:none;opacity:0;border-radius:9999px;position:absolute;top:0}.m3-scrollable-thumb-v{width:4px;inset-inline-end:0}.m3-scrollable-thumb-h{height:4px;left:0}.m3-select-modal-enter-active[data-v-bb74f417],.m3-select-modal-leave-active[data-v-bb74f417]{transition:opacity .15s}.m3-select-modal-enter-from[data-v-bb74f417],.m3-select-modal-leave-to[data-v-bb74f417]{opacity:0}.m3-select-modal-enter-active .select-modal-box[data-v-bb74f417],.m3-select-modal-leave-active .select-modal-box[data-v-bb74f417]{transition:transform .15s}.m3-select-modal-enter-from .select-modal-box[data-v-bb74f417],.m3-select-modal-leave-to .select-modal-box[data-v-bb74f417]{transform:scale(.95)}.carousel-track[data-v-66c72f6d]{scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}.carousel-track[data-v-66c72f6d]::-webkit-scrollbar{display:none}.snap-center[data-v-66c72f6d]>*{scroll-snap-align:center}.snap-start[data-v-66c72f6d]>*{scroll-snap-align:start}@keyframes skeleton-wave-move-6990fb2a{0%{transform:translate(-100%)}60%{transform:translate(100%)}to{transform:translate(100%)}}.skeleton-wave[data-v-6990fb2a]{position:relative;overflow:hidden}.skeleton-wave[data-v-6990fb2a]:after{content:"";background:linear-gradient(90deg, transparent 0%, var(--color-on-surface) 50%, transparent 100%);opacity:.06;animation:1.8s ease-in-out infinite skeleton-wave-move-6990fb2a;position:absolute;inset:0}.toggle-btn[data-v-0c465e16]{transition:border-radius .25s,background-color .15s}.m3-spot-enter-active[data-v-8a710ca6],.m3-spot-leave-active[data-v-8a710ca6]{transition:opacity .15s}.m3-spot-enter-from[data-v-8a710ca6],.m3-spot-leave-to[data-v-8a710ca6]{opacity:0}.m3-spot-enter-active .spot-box[data-v-8a710ca6],.m3-spot-leave-active .spot-box[data-v-8a710ca6]{transition:transform .15s,opacity .15s}.m3-spot-enter-from .spot-box[data-v-8a710ca6]{opacity:0;transform:scale(.96)translateY(-8px)}.m3-spot-leave-to .spot-box[data-v-8a710ca6]{opacity:0;transform:scale(.98)}.m3-tp-modal-enter-active[data-v-42595b1f],.m3-tp-modal-leave-active[data-v-42595b1f]{transition:opacity .15s}.m3-tp-modal-enter-from[data-v-42595b1f],.m3-tp-modal-leave-to[data-v-42595b1f]{opacity:0}.m3-tp-modal-enter-active .tp-box[data-v-42595b1f],.m3-tp-modal-leave-active .tp-box[data-v-42595b1f]{transition:transform .15s}.m3-tp-modal-enter-from .tp-box[data-v-42595b1f],.m3-tp-modal-leave-to .tp-box[data-v-42595b1f]{transform:scale(.95)}.m3-tour-highlight{box-shadow:0 0 0 4px var(--color-primary);border-radius:8px;position:relative;z-index:201!important}.m3-tour-enter-active,.m3-tour-leave-active{transition:opacity .2s}.m3-tour-enter-from,.m3-tour-leave-to{opacity:0}.m3-tl-start-move[data-v-50eeaba2],.m3-tl-end-move[data-v-50eeaba2]{transition:transform .25s cubic-bezier(.2,0,0,1)}.m3-tl-start-enter-active[data-v-50eeaba2],.m3-tl-end-enter-active[data-v-50eeaba2]{transition:opacity .2s,transform .25s cubic-bezier(.2,0,0,1)}.m3-tl-start-leave-active[data-v-50eeaba2],.m3-tl-end-leave-active[data-v-50eeaba2]{transition:opacity .15s;position:absolute;left:0;right:0}.m3-tl-start-enter-from[data-v-50eeaba2]{opacity:0;transform:translate(-16px)}.m3-tl-end-enter-from[data-v-50eeaba2]{opacity:0;transform:translate(16px)}.m3-tl-start-leave-to[data-v-50eeaba2],.m3-tl-end-leave-to[data-v-50eeaba2]{opacity:0}@media (prefers-reduced-motion:reduce){.m3-tl-start-move[data-v-50eeaba2],.m3-tl-end-move[data-v-50eeaba2],.m3-tl-start-enter-active[data-v-50eeaba2],.m3-tl-end-enter-active[data-v-50eeaba2],.m3-tl-start-leave-active[data-v-50eeaba2],.m3-tl-end-leave-active[data-v-50eeaba2]{transition:none}}.m3-transition>*{grid-area:1/1;min-width:0}.m3-window-btn[data-v-86c88a3c]{cursor:pointer;width:32px;height:32px;color:var(--color-on-surface-variant);border-radius:9999px;outline:none;flex-shrink:0;justify-content:center;align-items:center;transition:background-color .15s,color .15s;display:flex;position:relative}.m3-window-btn[data-v-86c88a3c]:hover{background-color:color-mix(in srgb, var(--color-on-surface-variant) 8%, transparent)}.m3-window-btn[data-v-86c88a3c]:active{background-color:color-mix(in srgb, var(--color-on-surface-variant) 10%, transparent)}.m3-window-btn[data-v-86c88a3c]:focus-visible{box-shadow:0 0 0 2px var(--color-secondary)}.m3-window-btn-close[data-v-86c88a3c]:hover{color:var(--color-error);background-color:color-mix(in srgb, var(--color-error) 8%, transparent)}.m3-window-btn-close[data-v-86c88a3c]:active{background-color:color-mix(in srgb, var(--color-error) 10%, transparent)}.m3-window-geometry[data-v-86c88a3c]{transition-property:left,top,width,height,box-shadow,border-radius;transition-duration:.3s;transition-timing-function:cubic-bezier(.2,0,0,1)}.m3-window-snap-preview[data-v-86c88a3c]{transition:left .2s cubic-bezier(.2,0,0,1),width .2s cubic-bezier(.2,0,0,1),opacity .15s linear,transform .2s cubic-bezier(.2,0,0,1)}.m3-window-snap-enter-from[data-v-86c88a3c],.m3-window-snap-leave-to[data-v-86c88a3c]{opacity:0;transform:scale(.96)}.m3-window-enter-active[data-v-86c88a3c]{transition:opacity .15s linear,transform .3s cubic-bezier(.05,.7,.1,1)}.m3-window-leave-active[data-v-86c88a3c]{transition:opacity .15s linear,transform .2s cubic-bezier(.3,0,.8,.15)}.m3-window-enter-from[data-v-86c88a3c],.m3-window-leave-to[data-v-86c88a3c]{opacity:0;transform:scale(.92)}@media (prefers-reduced-motion:reduce){.m3-window-geometry[data-v-86c88a3c],.m3-window-snap-preview[data-v-86c88a3c],.m3-window-enter-active[data-v-86c88a3c],.m3-window-leave-active[data-v-86c88a3c]{transition:none}}.m3-markdown[data-v-488700bc] h1{font-size:var(--text-headline-large);line-height:var(--text-headline-large--line-height);color:var(--color-on-surface);margin:1em 0 .5em;font-weight:600}.m3-markdown[data-v-488700bc] h2{font-size:var(--text-headline-medium);line-height:var(--text-headline-medium--line-height);color:var(--color-on-surface);margin:1em 0 .5em;font-weight:600}.m3-markdown[data-v-488700bc] h3{font-size:var(--text-headline-small);line-height:var(--text-headline-small--line-height);color:var(--color-on-surface);margin:.75em 0 .25em;font-weight:600}.m3-markdown[data-v-488700bc] h4{font-size:var(--text-title-large);line-height:var(--text-title-large--line-height);color:var(--color-on-surface);margin:.75em 0 .25em;font-weight:600}.m3-markdown[data-v-488700bc] p{margin:.5em 0}.m3-markdown[data-v-488700bc] a{color:var(--color-primary);text-underline-offset:2px;text-decoration:underline}.m3-markdown[data-v-488700bc] a:hover{opacity:.8}.m3-markdown[data-v-488700bc] strong{color:var(--color-on-surface);font-weight:600}.m3-markdown[data-v-488700bc] em{font-style:italic}.m3-markdown[data-v-488700bc] ul{margin:.5em 0;padding-left:1.5em;list-style-type:disc}.m3-markdown[data-v-488700bc] ol{margin:.5em 0;padding-left:1.5em;list-style-type:decimal}.m3-markdown[data-v-488700bc] li{margin:.25em 0}.m3-markdown[data-v-488700bc] li::marker{color:var(--color-on-surface-variant)}.m3-markdown[data-v-488700bc] blockquote{border-left:3px solid var(--color-primary);background:var(--color-surface-container);color:var(--color-on-surface-variant);border-radius:0 8px 8px 0;margin:.75em 0;padding:.5em 1em}.m3-markdown[data-v-488700bc] code{background:var(--color-surface-container-highest);font-family:var(--font-mono,"Roboto Mono", monospace);color:var(--color-primary);border-radius:4px;padding:.15em .4em;font-size:.875em}.m3-markdown[data-v-488700bc] pre{background:var(--color-surface-container-highest);border:1px solid var(--color-outline-variant);border-radius:12px;margin:.75em 0;padding:1em;overflow-x:auto}.m3-markdown[data-v-488700bc] pre code{color:var(--color-on-surface);background:0 0;padding:0;font-size:.8125rem;line-height:1.6}.m3-markdown[data-v-488700bc] .hljs-keyword,.m3-markdown[data-v-488700bc] .hljs-selector-tag,.m3-markdown[data-v-488700bc] .hljs-built_in,.m3-markdown[data-v-488700bc] .hljs-tag .hljs-keyword{color:var(--color-primary)}.m3-markdown[data-v-488700bc] .hljs-string,.m3-markdown[data-v-488700bc] .hljs-regexp,.m3-markdown[data-v-488700bc] .hljs-template-variable{color:var(--color-tertiary)}.m3-markdown[data-v-488700bc] .hljs-number,.m3-markdown[data-v-488700bc] .hljs-literal{color:var(--color-error)}.m3-markdown[data-v-488700bc] .hljs-title.function_,.m3-markdown[data-v-488700bc] .hljs-title.function_>.hljs-keyword{color:var(--color-secondary);font-weight:500}.m3-markdown[data-v-488700bc] .hljs-type,.m3-markdown[data-v-488700bc] .hljs-title.class_{color:var(--color-primary);font-style:italic}.m3-markdown[data-v-488700bc] .hljs-comment,.m3-markdown[data-v-488700bc] .hljs-quote{color:var(--color-outline);font-style:italic}.m3-markdown[data-v-488700bc] .hljs-attr,.m3-markdown[data-v-488700bc] .hljs-attribute{color:var(--color-tertiary)}.m3-markdown[data-v-488700bc] .hljs-tag{color:var(--color-on-surface-variant)}.m3-markdown[data-v-488700bc] .hljs-name{color:var(--color-primary)}.m3-markdown[data-v-488700bc] .hljs-punctuation,.m3-markdown[data-v-488700bc] .hljs-operator,.m3-markdown[data-v-488700bc] .hljs-meta,.m3-markdown[data-v-488700bc] .hljs-meta .hljs-keyword{color:var(--color-on-surface-variant)}.m3-markdown[data-v-488700bc] .hljs-variable,.m3-markdown[data-v-488700bc] .hljs-property,.m3-markdown[data-v-488700bc] .hljs-symbol,.m3-markdown[data-v-488700bc] .hljs-params{color:var(--color-on-surface)}.m3-markdown[data-v-488700bc] .m3-code-block{position:relative}.m3-markdown[data-v-488700bc] .m3-code-copy{background:var(--color-surface-container);width:28px;height:28px;color:var(--color-on-surface-variant);cursor:pointer;opacity:0;z-index:1;border:none;border-radius:6px;justify-content:center;align-items:center;transition:opacity .15s;display:flex;position:absolute;top:8px;right:8px}.m3-markdown[data-v-488700bc] .m3-code-block:hover .m3-code-copy{opacity:1}.m3-markdown[data-v-488700bc] .m3-code-copy:hover{background:var(--color-surface-container-high);color:var(--color-on-surface)}.m3-markdown[data-v-488700bc] .m3-code-line{display:block}.m3-markdown[data-v-488700bc] .m3-line-hl{background:color-mix(in srgb, var(--color-primary) 8%, transparent);border-left:2px solid color-mix(in srgb, var(--color-primary) 40%, transparent);margin:0 -1em;padding:0 1em 0 calc(1em - 2px)}.m3-markdown[data-v-488700bc] hr{border:none;border-top:1px solid var(--color-outline-variant);margin:1.5em 0}.m3-markdown[data-v-488700bc] table{border-collapse:collapse;width:100%;margin:.75em 0}.m3-markdown[data-v-488700bc] th{background:var(--color-surface-container);text-align:left;border-bottom:2px solid var(--color-outline-variant);font-weight:600;font-size:var(--text-label-large);color:var(--color-on-surface);padding:.5em .75em}.m3-markdown[data-v-488700bc] td{border-bottom:1px solid var(--color-outline-variant);padding:.5em .75em}.m3-markdown[data-v-488700bc] img{border-radius:12px;max-width:100%;height:auto;margin:.5em 0}.rte-content[data-v-201025d1] .tiptap{min-height:inherit;outline:none}.rte-content[data-v-201025d1] .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--color-on-surface-variant);opacity:.5;pointer-events:none;height:0}.rte-content[data-v-201025d1] h1{font-size:var(--text-headline-large);line-height:var(--text-headline-large--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-201025d1] h2{font-size:var(--text-headline-medium);line-height:var(--text-headline-medium--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-201025d1] h3{font-size:var(--text-headline-small);line-height:var(--text-headline-small--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-201025d1] p{margin:.5em 0}.rte-content[data-v-201025d1] ul{margin:.5em 0;padding-left:1.5em;list-style-type:disc}.rte-content[data-v-201025d1] ol{margin:.5em 0;padding-left:1.5em;list-style-type:decimal}.rte-content[data-v-201025d1] blockquote{border-left:3px solid var(--color-primary);color:var(--color-on-surface-variant);margin:.5em 0;padding-left:1em}.rte-content[data-v-201025d1] code{background:var(--color-surface-container-highest);border-radius:4px;padding:.15em .4em;font-size:.875em}.rte-content[data-v-201025d1] pre{background:var(--color-surface-container-highest);border-radius:8px;margin:.5em 0;padding:1em;overflow-x:auto}.rte-content[data-v-201025d1] pre code{background:0 0;padding:0}.rte-content[data-v-201025d1] a{color:var(--color-primary);text-decoration:underline}.rte-content[data-v-201025d1] mark{background:var(--color-tertiary-container);color:var(--color-on-tertiary-container);border-radius:2px;padding:.1em .2em}.rte-content[data-v-201025d1] img{border-radius:8px;max-width:100%;height:auto;margin:.5em 0}
|
|
1
|
+
.code-editor-container[data-v-f0196990]{flex-direction:column;flex:auto;min-height:0;display:flex}.code-editor-container[data-v-f0196990] .cm-editor{flex:1;min-height:0;font-size:.8125rem}.code-editor-container[data-v-f0196990] .cm-editor.cm-focused{outline:none}.code-editor-container[data-v-f0196990] .cm-scroller{min-height:0;font-family:var(--font-mono,"Roboto Mono", monospace);line-height:1.6;flex:1!important;align-items:stretch!important}.code-editor-container[data-v-f0196990] .cm-content{padding:12px 0}.code-editor-container[data-v-f0196990] .cm-line{padding:0 16px}.code-editor-container[data-v-f0196990] .cm-gutters{background:var(--color-surface-container);border-right:1px solid var(--color-outline-variant);color:var(--color-outline);padding:0 4px;font-size:.75rem;align-self:stretch!important;height:auto!important}.code-editor-container[data-v-f0196990] .cm-activeLineGutter{background:var(--color-surface-container-high);color:var(--color-on-surface-variant)}.code-editor-container[data-v-f0196990] .cm-activeLine{background:color-mix(in srgb, var(--color-on-surface) 5%, transparent)}.code-editor-container[data-v-f0196990] .cm-selectionBackground{background:var(--color-primary-container)!important}.code-editor-container[data-v-f0196990] .cm-cursor{border-left-color:var(--color-primary);border-left-width:2px}.code-editor-container[data-v-f0196990] .cm-matchingBracket{background:var(--color-tertiary-container);color:var(--color-on-tertiary-container);border-radius:2px}.code-editor-container[data-v-f0196990] .cm-foldGutter span{color:var(--color-on-surface-variant)}@keyframes m3-wavy-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes m3-wavy-travel{0%{stroke-dashoffset:0}to{stroke-dashoffset:calc(var(--m3-wave-len) * -1px)}}@media (prefers-reduced-motion:reduce){.animate-\[m3-wavy-spin_2\.8s_linear_infinite\]{animation:2.8s linear infinite m3-wavy-spin}.animate-\[m3-wavy-travel_2s_linear_infinite\]{animation:none!important}}.m3-dialog-enter-active[data-v-0aac9ebd],.m3-dialog-leave-active[data-v-0aac9ebd]{transition:opacity .15s}.m3-dialog-enter-from[data-v-0aac9ebd],.m3-dialog-leave-to[data-v-0aac9ebd]{opacity:0}.m3-dialog-enter-active .dialog-box[data-v-0aac9ebd],.m3-dialog-leave-active .dialog-box[data-v-0aac9ebd]{transition:transform .15s}.m3-dialog-enter-from .dialog-box[data-v-0aac9ebd],.m3-dialog-leave-to .dialog-box[data-v-0aac9ebd]{transform:scale(.95)}.m3-dialog-fs-enter-active[data-v-0aac9ebd],.m3-dialog-fs-leave-active[data-v-0aac9ebd]{transition:transform .25s cubic-bezier(.2,0,0,1),opacity .15s}.m3-dialog-fs-enter-from[data-v-0aac9ebd],.m3-dialog-fs-leave-to[data-v-0aac9ebd]{opacity:0;transform:translateY(100%)}.toast-row[data-v-1c9345cc]{grid-template-rows:1fr;padding-bottom:8px;display:grid}.toast-row>.toast-inner[data-v-1c9345cc]{min-height:0}.m3-toast-bot-enter-active[data-v-1c9345cc]{transition:grid-template-rows .22s cubic-bezier(.2,0,0,1),padding-bottom .22s cubic-bezier(.2,0,0,1)}.m3-toast-bot-enter-active>.toast-inner[data-v-1c9345cc]{transition:opacity .18s,transform .22s cubic-bezier(.2,0,0,1)}.m3-toast-bot-enter-from[data-v-1c9345cc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-bot-enter-from>.toast-inner[data-v-1c9345cc]{opacity:0;transform:translateY(20px)scale(.94)}.m3-toast-bot-leave-active[data-v-1c9345cc]{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1),padding-bottom .3s cubic-bezier(.2,0,0,1)}.m3-toast-bot-leave-active>.toast-inner[data-v-1c9345cc]{transition:opacity .18s,transform .18s}.m3-toast-bot-leave-to[data-v-1c9345cc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-bot-leave-to>.toast-inner[data-v-1c9345cc]{opacity:0;transform:scale(.92)}.m3-toast-bot-leave-active>.toast-count-badge[data-v-1c9345cc]{transition:opacity .15s,transform .15s}.m3-toast-bot-leave-to>.toast-count-badge[data-v-1c9345cc]{opacity:0;transform:scale(.5)}.m3-toast-top-enter-active[data-v-1c9345cc]{transition:grid-template-rows .22s cubic-bezier(.2,0,0,1),padding-bottom .22s cubic-bezier(.2,0,0,1)}.m3-toast-top-enter-active>.toast-inner[data-v-1c9345cc]{transition:opacity .18s,transform .22s cubic-bezier(.2,0,0,1)}.m3-toast-top-enter-from[data-v-1c9345cc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-top-enter-from>.toast-inner[data-v-1c9345cc]{opacity:0;transform:translateY(-20px)scale(.94)}.m3-toast-top-leave-active[data-v-1c9345cc]{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1),padding-bottom .3s cubic-bezier(.2,0,0,1)}.m3-toast-top-leave-active>.toast-inner[data-v-1c9345cc]{transition:opacity .18s,transform .18s}.m3-toast-top-leave-to[data-v-1c9345cc]{grid-template-rows:0fr;padding-bottom:0}.m3-toast-top-leave-to>.toast-inner[data-v-1c9345cc]{opacity:0;transform:scale(.92)}.m3-toast-top-leave-active>.toast-count-badge[data-v-1c9345cc]{transition:opacity .15s,transform .15s}.m3-toast-top-leave-to>.toast-count-badge[data-v-1c9345cc]{opacity:0;transform:scale(.5)}.m3-badge-enter-active[data-v-1c9345cc]{transition:opacity .2s,transform .2s cubic-bezier(.34,1.56,.64,1)}.m3-badge-leave-active[data-v-1c9345cc]{transition:opacity .15s,transform .15s}.m3-badge-enter-from[data-v-1c9345cc],.m3-badge-leave-to[data-v-1c9345cc]{opacity:0;transform:scale(.5)}.m3-count-enter-active[data-v-1c9345cc]{transition:opacity .12s,transform .12s}.m3-count-leave-active[data-v-1c9345cc]{transition:opacity 80ms,transform 80ms}.m3-count-enter-from[data-v-1c9345cc]{opacity:0;transform:scale(1.5)translateY(-3px)}.m3-count-leave-to[data-v-1c9345cc]{opacity:0;transform:scale(.6)translateY(2px)}@keyframes m3-toast-progress-1c9345cc{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.notif-row[data-v-d0c68af4]{grid-template-rows:1fr;padding-bottom:6px;display:grid}.notif-row>.notif-inner[data-v-d0c68af4]{min-height:0}.m3-notif-bot-enter-active[data-v-d0c68af4]{transition:grid-template-rows .2s,padding-bottom .2s}.m3-notif-bot-enter-active>.notif-inner[data-v-d0c68af4]{transition:opacity .15s,transform .2s;overflow:hidden}.m3-notif-bot-enter-from[data-v-d0c68af4]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-bot-enter-from>.notif-inner[data-v-d0c68af4]{opacity:0;transform:translateY(12px)scale(.95)}.m3-notif-bot-leave-active[data-v-d0c68af4]{transition:grid-template-rows .25s,padding-bottom .25s}.m3-notif-bot-leave-active>.notif-inner[data-v-d0c68af4]{transition:opacity .15s,transform .15s;overflow:hidden}.m3-notif-bot-leave-to[data-v-d0c68af4]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-bot-leave-to>.notif-inner[data-v-d0c68af4]{opacity:0;transform:scale(.93)}.m3-notif-bot-leave-active>.notif-count-badge[data-v-d0c68af4]{transition:opacity .15s,transform .15s}.m3-notif-bot-leave-to>.notif-count-badge[data-v-d0c68af4]{opacity:0;transform:scale(.5)}.m3-notif-top-enter-active[data-v-d0c68af4]{transition:grid-template-rows .2s,padding-bottom .2s}.m3-notif-top-enter-active>.notif-inner[data-v-d0c68af4]{transition:opacity .15s,transform .2s;overflow:hidden}.m3-notif-top-enter-from[data-v-d0c68af4]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-top-enter-from>.notif-inner[data-v-d0c68af4]{opacity:0;transform:translateY(-12px)scale(.95)}.m3-notif-top-leave-active[data-v-d0c68af4]{transition:grid-template-rows .25s,padding-bottom .25s}.m3-notif-top-leave-active>.notif-inner[data-v-d0c68af4]{transition:opacity .15s,transform .15s;overflow:hidden}.m3-notif-top-leave-to[data-v-d0c68af4]{grid-template-rows:0fr;padding-bottom:0}.m3-notif-top-leave-to>.notif-inner[data-v-d0c68af4]{opacity:0;transform:scale(.93)}.m3-notif-top-leave-active>.notif-count-badge[data-v-d0c68af4]{transition:opacity .15s,transform .15s}.m3-notif-top-leave-to>.notif-count-badge[data-v-d0c68af4]{opacity:0;transform:scale(.5)}.m3-badge-enter-active[data-v-d0c68af4]{transition:opacity .2s,transform .2s cubic-bezier(.34,1.56,.64,1)}.m3-badge-leave-active[data-v-d0c68af4]{transition:opacity .15s,transform .15s}.m3-badge-enter-from[data-v-d0c68af4],.m3-badge-leave-to[data-v-d0c68af4]{opacity:0;transform:scale(.5)}.m3-count-enter-active[data-v-d0c68af4]{transition:opacity .12s,transform .12s}.m3-count-leave-active[data-v-d0c68af4]{transition:opacity 80ms,transform 80ms}.m3-count-enter-from[data-v-d0c68af4]{opacity:0;transform:scale(1.5)translateY(-3px)}.m3-count-leave-to[data-v-d0c68af4]{opacity:0;transform:scale(.6)translateY(2px)}.m3-ac-modal-enter-active[data-v-3b2bf843],.m3-ac-modal-leave-active[data-v-3b2bf843]{transition:opacity .15s}.m3-ac-modal-enter-from[data-v-3b2bf843],.m3-ac-modal-leave-to[data-v-3b2bf843]{opacity:0}.m3-ac-modal-enter-active .ac-modal-box[data-v-3b2bf843],.m3-ac-modal-leave-active .ac-modal-box[data-v-3b2bf843]{transition:transform .15s}.m3-ac-modal-enter-from .ac-modal-box[data-v-3b2bf843],.m3-ac-modal-leave-to .ac-modal-box[data-v-3b2bf843]{transform:scale(.95)}.m3-searchbar-docked-enter-active[data-v-23312253],.m3-searchbar-docked-leave-active[data-v-23312253]{transform-origin:top;transition:opacity .15s,transform .15s cubic-bezier(.2,0,0,1)}.m3-searchbar-docked-enter-from[data-v-23312253],.m3-searchbar-docked-leave-to[data-v-23312253]{opacity:0;transform:scaleY(.9)}.m3-searchbar-full-enter-active[data-v-23312253],.m3-searchbar-full-leave-active[data-v-23312253]{transition:opacity .15s}.m3-searchbar-full-enter-from[data-v-23312253],.m3-searchbar-full-leave-to[data-v-23312253]{opacity:0}.m3-bar-btn{width:46px;height:100%;color:var(--color-on-surface-variant);cursor:pointer;justify-content:center;align-items:center;transition:background-color .1s,color .1s;display:inline-flex}.m3-bar-btn:hover{background-color:var(--color-surface-container-highest);color:var(--color-on-surface)}.m3-bar-btn-close:hover{background-color:var(--color-error);color:var(--color-on-error)}.m3-typing-dot[data-v-df4ba2e8]{animation:1.2s ease-in-out infinite m3-typing-dot-df4ba2e8}@keyframes m3-typing-dot-df4ba2e8{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}.m3-typing-mic[data-v-df4ba2e8]{animation:1.4s ease-in-out infinite m3-typing-mic-df4ba2e8}@keyframes m3-typing-mic-df4ba2e8{0%,to{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.9)}}.m3-typing-bar[data-v-df4ba2e8]{transform-origin:50%;animation:.9s ease-in-out infinite m3-typing-bar-df4ba2e8}@keyframes m3-typing-bar-df4ba2e8{0%,to{transform:scaleY(.25)}50%{transform:scaleY(1)}}@media (prefers-reduced-motion:reduce){.m3-typing-dot[data-v-df4ba2e8],.m3-typing-mic[data-v-df4ba2e8],.m3-typing-bar[data-v-df4ba2e8]{animation:none}.m3-typing-bar[data-v-df4ba2e8]{transform:scaleY(.6)}}.m3-cp-hue[data-v-87647feb]{background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.m3-cp-swatch[data-v-87647feb]{box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--color-on-surface) 12%, transparent)}.m3-cp-morph[data-v-87647feb]{border-radius:30%;transition:border-radius .25s cubic-bezier(.2,0,0,1)}.m3-cp-morph[data-v-87647feb]:hover{border-radius:40%}.m3-cp-morph-selected[data-v-87647feb],.m3-cp-morph-selected[data-v-87647feb]:hover{border-radius:50%}.m3-cp-area-thumb[data-v-87647feb]{box-shadow:0 0 0 1px #0003,0 1px 3px 1px #00000040}.m3-cp-slider[data-v-87647feb]{cursor:pointer;touch-action:none;outline:none;height:32px;position:relative}.m3-cp-track[data-v-87647feb]{box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--color-on-surface) 12%, transparent);border-radius:9999px;position:absolute;inset:4px 0}.m3-cp-handle[data-v-87647feb]{pointer-events:none;background:#fff;border-radius:9999px;width:6px;height:32px;transition:width .15s cubic-bezier(.2,0,0,1);position:absolute;top:0;translate:-50%;box-shadow:0 0 0 1px #0003,0 1px 3px #0000004d}.m3-cp-handle-pressed[data-v-87647feb]{width:4px}.group:focus-visible .m3-cp-handle[data-v-87647feb]{outline:2px solid var(--color-primary);outline-offset:2px}.m3-cp-field[data-v-87647feb]{border-radius:var(--radius-sm);background:var(--color-surface-container-highest);text-align:center;height:40px;color:var(--color-on-surface);caret-color:var(--color-primary);outline-offset:-2px;border:none;outline:2px solid #0000;padding:0 8px;transition:outline-color .15s}.m3-cp-field[data-v-87647feb]:hover{outline-color:color-mix(in srgb, var(--color-on-surface) 12%, transparent)}.m3-cp-field[data-v-87647feb]:focus{outline-color:var(--color-primary)}.m3-cp-swatch[data-v-53c0dfc5]{box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--color-on-surface) 12%, transparent)}.m3-cp-drop-enter-active[data-v-53c0dfc5]{transition:opacity .15s cubic-bezier(.2,0,0,1),transform .25s cubic-bezier(.2,0,0,1)}.m3-cp-drop-leave-active[data-v-53c0dfc5]{transition:opacity .1s,transform .1s}.m3-cp-drop-enter-from[data-v-53c0dfc5],.m3-cp-drop-leave-to[data-v-53c0dfc5]{opacity:0;transform:translateY(-4px)scale(.98)}.m3-cmd-enter-active[data-v-99dca97f],.m3-cmd-leave-active[data-v-99dca97f]{transition:opacity .15s}.m3-cmd-enter-from[data-v-99dca97f],.m3-cmd-leave-to[data-v-99dca97f]{opacity:0}.m3-cmd-enter-active .cmd-box[data-v-99dca97f],.m3-cmd-leave-active .cmd-box[data-v-99dca97f]{transition:transform .15s}.m3-cmd-enter-from .cmd-box[data-v-99dca97f],.m3-cmd-leave-to .cmd-box[data-v-99dca97f]{transform:scale(.95)translateY(-10px)}.dt-expand-grid[data-v-e345a463]{grid-template-rows:0fr;transition:grid-template-rows .25s cubic-bezier(.2,0,0,1);display:grid}.dt-expand-grid.dt-expand-open[data-v-e345a463]{grid-template-rows:1fr}.dt-expand-body[data-v-e345a463]{min-height:0;overflow:hidden}.m3-dp-modal-enter-active[data-v-e5202410],.m3-dp-modal-leave-active[data-v-e5202410]{transition:opacity .15s}.m3-dp-modal-enter-from[data-v-e5202410],.m3-dp-modal-leave-to[data-v-e5202410]{opacity:0}.m3-dp-modal-enter-active .dp-box[data-v-e5202410],.m3-dp-modal-leave-active .dp-box[data-v-e5202410]{transition:transform .15s}.m3-dp-modal-enter-from .dp-box[data-v-e5202410],.m3-dp-modal-leave-to .dp-box[data-v-e5202410]{transform:scale(.95)}.m3-drp-modal-enter-active[data-v-e249b679],.m3-drp-modal-leave-active[data-v-e249b679]{transition:opacity .15s}.m3-drp-modal-enter-from[data-v-e249b679],.m3-drp-modal-leave-to[data-v-e249b679]{opacity:0}.m3-drp-modal-enter-active .drp-box[data-v-e249b679],.m3-drp-modal-leave-active .drp-box[data-v-e249b679]{transition:transform .15s}.m3-drp-modal-enter-from .drp-box[data-v-e249b679],.m3-drp-modal-leave-to .drp-box[data-v-e249b679]{transform:scale(.95)}.m3-dd-bare-lifted[data-v-1b63e23a]{filter:drop-shadow(0 2px 3px #0000004d)drop-shadow(0 6px 10px #00000026)}.expand-grid[data-v-8019cbed]{grid-template-rows:0fr;transition:grid-template-rows .3s ease-in-out;display:grid}.expand-grid.expand-open[data-v-8019cbed]{grid-template-rows:1fr}.expand-body[data-v-8019cbed]{min-height:0;overflow:hidden}.m3-fab-content-scale-enter-active[data-v-ade711cb]{transition:opacity .2s,transform .2s cubic-bezier(.2,0,0,1)}.m3-fab-content-scale-leave-active[data-v-ade711cb]{transition:opacity .15s,transform .15s}.m3-fab-content-scale-enter-from[data-v-ade711cb]{opacity:0;transform:scale(.85)}.m3-fab-content-scale-leave-to[data-v-ade711cb]{opacity:0;transform:scale(.9)}.m3-fab-content-fade-enter-active[data-v-ade711cb],.m3-fab-content-fade-leave-active[data-v-ade711cb]{transition:opacity .22s}.m3-fab-content-fade-enter-from[data-v-ade711cb],.m3-fab-content-fade-leave-to[data-v-ade711cb]{opacity:0}.m3-fab-scrim-enter-active[data-v-ade711cb],.m3-fab-scrim-leave-active[data-v-ade711cb]{transition:opacity .2s}.m3-fab-scrim-enter-from[data-v-ade711cb],.m3-fab-scrim-leave-to[data-v-ade711cb]{opacity:0}.m3-fabmenu-item-inner[data-v-90e98c33]{clip-path:inset(0 0 0 0%);transition:clip-path .22s cubic-bezier(.3,1.2,.4,1)}.m3-fabmenu-item-enter-active .m3-fabmenu-item-inner[data-v-90e98c33]{transition-delay:var(--m3-fabmenu-delay,0s)}.m3-fabmenu-item-enter-active[data-v-90e98c33],.m3-fabmenu-item-leave-active[data-v-90e98c33]{transition:opacity .14s ease-out}.m3-fabmenu-item-enter-active[data-v-90e98c33]{transition-delay:var(--m3-fabmenu-delay,0s)}.m3-fabmenu-item-enter-from[data-v-90e98c33],.m3-fabmenu-item-leave-to[data-v-90e98c33]{opacity:0}.m3-fabmenu-item--from-end.m3-fabmenu-item-enter-from .m3-fabmenu-item-inner[data-v-90e98c33],.m3-fabmenu-item--from-end.m3-fabmenu-item-leave-to .m3-fabmenu-item-inner[data-v-90e98c33]{clip-path:inset(0 0 0 100%)}.m3-fabmenu-item--from-start.m3-fabmenu-item-enter-from .m3-fabmenu-item-inner[data-v-90e98c33],.m3-fabmenu-item--from-start.m3-fabmenu-item-leave-to .m3-fabmenu-item-inner[data-v-90e98c33]{clip-path:inset(0 100% 0 0)}@media (prefers-reduced-motion:reduce){.m3-fabmenu-item-inner[data-v-90e98c33],.m3-fabmenu-item-enter-active[data-v-90e98c33],.m3-fabmenu-item-leave-active[data-v-90e98c33]{transition:none}}.m3-file-enter-active[data-v-c977ca1c],.m3-file-leave-active[data-v-c977ca1c]{transition:all .2s}.m3-file-enter-from[data-v-c977ca1c],.m3-file-leave-to[data-v-c977ca1c]{opacity:0;transform:translateY(-8px)}.mli-expand-grid{grid-template-rows:1fr;display:grid}.mli-expand-body{min-height:0;padding-left:2rem;overflow:hidden}.mli-expand-enter-active{transition:grid-template-rows .3s cubic-bezier(.2,0,0,1)}.mli-expand-enter-active>.mli-expand-body{transition:opacity .2s cubic-bezier(.2,0,0,1) 80ms}.mli-expand-enter-from{grid-template-rows:0fr}.mli-expand-enter-from>.mli-expand-body{opacity:0}.mli-expand-leave-active{transition:grid-template-rows .25s cubic-bezier(.4,0,1,1)}.mli-expand-leave-active>.mli-expand-body{transition:opacity .12s cubic-bezier(.4,0,1,1)}.mli-expand-leave-to{grid-template-rows:0fr}.mli-expand-leave-to>.mli-expand-body{opacity:0}.m3-mac-modal-enter-active[data-v-b076c3ba],.m3-mac-modal-leave-active[data-v-b076c3ba]{transition:opacity .15s}.m3-mac-modal-enter-from[data-v-b076c3ba],.m3-mac-modal-leave-to[data-v-b076c3ba]{opacity:0}.m3-mac-modal-enter-active .mac-modal-box[data-v-b076c3ba],.m3-mac-modal-leave-active .mac-modal-box[data-v-b076c3ba]{transition:transform .15s}.m3-mac-modal-enter-from .mac-modal-box[data-v-b076c3ba],.m3-mac-modal-leave-to .mac-modal-box[data-v-b076c3ba]{transform:scale(.95)}.m3-ms-modal-enter-active[data-v-66489a75],.m3-ms-modal-leave-active[data-v-66489a75]{transition:opacity .15s}.m3-ms-modal-enter-from[data-v-66489a75],.m3-ms-modal-leave-to[data-v-66489a75]{opacity:0}.m3-ms-modal-enter-active .ms-modal-box[data-v-66489a75],.m3-ms-modal-leave-active .ms-modal-box[data-v-66489a75]{transition:transform .15s}.m3-ms-modal-enter-from .ms-modal-box[data-v-66489a75],.m3-ms-modal-leave-to .ms-modal-box[data-v-66489a75]{transform:scale(.95)}input[type=number][data-v-e67c821c]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-e67c821c]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-e67c821c]{-moz-appearance:textfield}.nd-section-grid[data-v-19a483d9]{grid-template-rows:1fr;display:grid}.nd-section-body[data-v-19a483d9]{min-height:0;overflow:hidden}.nd-section-enter-active[data-v-19a483d9]{transition:grid-template-rows .35s cubic-bezier(.2,0,0,1)}.nd-section-enter-active>.nd-section-body[data-v-19a483d9]{transition:opacity .25s cubic-bezier(.2,0,0,1) 80ms}.nd-section-enter-from[data-v-19a483d9]{grid-template-rows:0fr}.nd-section-enter-from>.nd-section-body[data-v-19a483d9]{opacity:0}.nd-section-leave-active[data-v-19a483d9]{transition:grid-template-rows .28s cubic-bezier(.4,0,1,1)}.nd-section-leave-active>.nd-section-body[data-v-19a483d9]{transition:opacity .15s cubic-bezier(.4,0,1,1)}.nd-section-leave-to[data-v-19a483d9]{grid-template-rows:0fr}.nd-section-leave-to>.nd-section-body[data-v-19a483d9]{opacity:0}.nd-inline[data-v-19a483d9]{transition:width .3s cubic-bezier(.2,0,0,1);overflow:hidden}.nd-inline[data-v-19a483d9]>*{min-width:var(--nd-width,22.5rem)}.nd-inline.nd-collapsed[data-v-19a483d9]>*{min-width:0}.nd-toggle[data-v-19a483d9]{align-items:center;display:flex}.nd-toggle-inner[data-v-19a483d9]{flex-shrink:0;justify-content:center;align-items:center;width:72px;height:64px;display:flex}.nd-label[data-v-19a483d9]{transition:opacity .2s cubic-bezier(.2,0,0,1) 80ms}.nd-inline.nd-collapsed .nd-label[data-v-19a483d9],.nd-inline.nd-collapsed[data-v-19a483d9] .nd-label{opacity:0;transition:opacity .1s cubic-bezier(.2,0,0,1)}.nd-inline .nd-collapse-h[data-v-19a483d9]{max-height:80px;transition:max-height .3s cubic-bezier(.2,0,0,1)}.nd-inline.nd-collapsed .nd-collapse-h[data-v-19a483d9]{max-height:0}.nd-inline .nd-section-body[data-v-19a483d9]>*,.nd-inline[data-v-19a483d9] .nd-section-body>*{transition:padding .3s cubic-bezier(.2,0,0,1)}.nd-children-divider[data-v-19a483d9]{border-top:1px solid #0000;height:0;margin:0 .75rem;transition:border-color .1s,margin .1s}.nd-inline.nd-collapsed .nd-children-divider[data-v-19a483d9]{border-top-color:var(--color-outline-variant);margin:.25rem .75rem;transition:border-color .2s .3s,margin .2s .3s}.wnr-scrim[data-v-8020b477]{transition:opacity .22s}.m3-ld-pane[data-v-0dbdf89f]{transition:transform .4s cubic-bezier(.2,0,0,1),opacity .2s linear,visibility}.m3-ld-list-hidden[data-v-0dbdf89f]{opacity:0;visibility:hidden;transition:transform .4s cubic-bezier(.2,0,0,1),opacity .2s linear,visibility 0s .4s;transform:translate(-12%)}.m3-ld-detail-hidden[data-v-0dbdf89f]{opacity:0;visibility:hidden;transition:transform .4s cubic-bezier(.2,0,0,1),opacity .2s linear .2s,visibility 0s .4s;transform:translate(100%)}[dir=rtl]{transform:translate(-100%)}@media (prefers-reduced-motion:reduce){.m3-ld-pane[data-v-0dbdf89f],.m3-ld-list-hidden[data-v-0dbdf89f],.m3-ld-detail-hidden[data-v-0dbdf89f]{transition:visibility}}@keyframes m3-wave-flow{0%{transform:translate(0)}to{transform:translate(-20px)}}@keyframes m3-progress-indeterminate{0%{left:-40%}to{left:100%}}@media (prefers-reduced-motion:reduce){.animate-\[m3-wave-flow_1\.2s_linear_infinite\],.animate-\[m3-wave-flow_0\.9s_linear_infinite\],.animate-\[m3-progress-indeterminate_1\.6s_ease-in-out_infinite\]{animation:none!important}}@keyframes m3-cpb-spin{0%{transform:rotate(-90deg)}to{transform:rotate(270deg)}}@keyframes m3-cpb-arc{0%{stroke-dasharray:5 246.3;stroke-dashoffset:0}50%{stroke-dasharray:176 75.3;stroke-dashoffset:-70px}to{stroke-dasharray:5 246.3;stroke-dashoffset:-251.3px}}.m3-radio-dot[data-v-35f87b1d]{transform-box:fill-box;transform-origin:50%;transition:transform .15s;transform:scale(0)}.m3-radio-dot.is-checked[data-v-35f87b1d]{transform:scale(1)}.m3-scrollable-hidden{scrollbar-width:none}.m3-scrollable-hidden::-webkit-scrollbar{display:none}.m3-scrollable-thumb{background:color-mix(in srgb, var(--color-outline) 70%, transparent);pointer-events:none;opacity:0;border-radius:9999px;position:absolute;top:0}.m3-scrollable-thumb-v{width:4px;inset-inline-end:0}.m3-scrollable-thumb-h{height:4px;left:0}.m3-select-modal-enter-active[data-v-bb74f417],.m3-select-modal-leave-active[data-v-bb74f417]{transition:opacity .15s}.m3-select-modal-enter-from[data-v-bb74f417],.m3-select-modal-leave-to[data-v-bb74f417]{opacity:0}.m3-select-modal-enter-active .select-modal-box[data-v-bb74f417],.m3-select-modal-leave-active .select-modal-box[data-v-bb74f417]{transition:transform .15s}.m3-select-modal-enter-from .select-modal-box[data-v-bb74f417],.m3-select-modal-leave-to .select-modal-box[data-v-bb74f417]{transform:scale(.95)}.carousel-track[data-v-66c72f6d]{scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}.carousel-track[data-v-66c72f6d]::-webkit-scrollbar{display:none}.snap-center[data-v-66c72f6d]>*{scroll-snap-align:center}.snap-start[data-v-66c72f6d]>*{scroll-snap-align:start}@keyframes skeleton-wave-move-6990fb2a{0%{transform:translate(-100%)}60%{transform:translate(100%)}to{transform:translate(100%)}}.skeleton-wave[data-v-6990fb2a]{position:relative;overflow:hidden}.skeleton-wave[data-v-6990fb2a]:after{content:"";background:linear-gradient(90deg, transparent 0%, var(--color-on-surface) 50%, transparent 100%);opacity:.06;animation:1.8s ease-in-out infinite skeleton-wave-move-6990fb2a;position:absolute;inset:0}.toggle-btn[data-v-0c465e16]{transition:border-radius .25s,background-color .15s}.m3-spot-enter-active[data-v-8a710ca6],.m3-spot-leave-active[data-v-8a710ca6]{transition:opacity .15s}.m3-spot-enter-from[data-v-8a710ca6],.m3-spot-leave-to[data-v-8a710ca6]{opacity:0}.m3-spot-enter-active .spot-box[data-v-8a710ca6],.m3-spot-leave-active .spot-box[data-v-8a710ca6]{transition:transform .15s,opacity .15s}.m3-spot-enter-from .spot-box[data-v-8a710ca6]{opacity:0;transform:scale(.96)translateY(-8px)}.m3-spot-leave-to .spot-box[data-v-8a710ca6]{opacity:0;transform:scale(.98)}.m3-tp-modal-enter-active[data-v-42595b1f],.m3-tp-modal-leave-active[data-v-42595b1f]{transition:opacity .15s}.m3-tp-modal-enter-from[data-v-42595b1f],.m3-tp-modal-leave-to[data-v-42595b1f]{opacity:0}.m3-tp-modal-enter-active .tp-box[data-v-42595b1f],.m3-tp-modal-leave-active .tp-box[data-v-42595b1f]{transition:transform .15s}.m3-tp-modal-enter-from .tp-box[data-v-42595b1f],.m3-tp-modal-leave-to .tp-box[data-v-42595b1f]{transform:scale(.95)}.m3-tour-highlight{box-shadow:0 0 0 4px var(--color-primary);border-radius:8px;position:relative;z-index:201!important}.m3-tour-enter-active,.m3-tour-leave-active{transition:opacity .2s}.m3-tour-enter-from,.m3-tour-leave-to{opacity:0}.m3-tl-start-move[data-v-50eeaba2],.m3-tl-end-move[data-v-50eeaba2]{transition:transform .25s cubic-bezier(.2,0,0,1)}.m3-tl-start-enter-active[data-v-50eeaba2],.m3-tl-end-enter-active[data-v-50eeaba2]{transition:opacity .2s,transform .25s cubic-bezier(.2,0,0,1)}.m3-tl-start-leave-active[data-v-50eeaba2],.m3-tl-end-leave-active[data-v-50eeaba2]{transition:opacity .15s;position:absolute;left:0;right:0}.m3-tl-start-enter-from[data-v-50eeaba2]{opacity:0;transform:translate(-16px)}.m3-tl-end-enter-from[data-v-50eeaba2]{opacity:0;transform:translate(16px)}.m3-tl-start-leave-to[data-v-50eeaba2],.m3-tl-end-leave-to[data-v-50eeaba2]{opacity:0}@media (prefers-reduced-motion:reduce){.m3-tl-start-move[data-v-50eeaba2],.m3-tl-end-move[data-v-50eeaba2],.m3-tl-start-enter-active[data-v-50eeaba2],.m3-tl-end-enter-active[data-v-50eeaba2],.m3-tl-start-leave-active[data-v-50eeaba2],.m3-tl-end-leave-active[data-v-50eeaba2]{transition:none}}.m3-transition>*{grid-area:1/1;min-width:0}.m3-window-btn[data-v-86c88a3c]{cursor:pointer;width:32px;height:32px;color:var(--color-on-surface-variant);border-radius:9999px;outline:none;flex-shrink:0;justify-content:center;align-items:center;transition:background-color .15s,color .15s;display:flex;position:relative}.m3-window-btn[data-v-86c88a3c]:hover{background-color:color-mix(in srgb, var(--color-on-surface-variant) 8%, transparent)}.m3-window-btn[data-v-86c88a3c]:active{background-color:color-mix(in srgb, var(--color-on-surface-variant) 10%, transparent)}.m3-window-btn[data-v-86c88a3c]:focus-visible{box-shadow:0 0 0 2px var(--color-secondary)}.m3-window-btn-close[data-v-86c88a3c]:hover{color:var(--color-error);background-color:color-mix(in srgb, var(--color-error) 8%, transparent)}.m3-window-btn-close[data-v-86c88a3c]:active{background-color:color-mix(in srgb, var(--color-error) 10%, transparent)}.m3-window-geometry[data-v-86c88a3c]{transition-property:left,top,width,height,box-shadow,border-radius;transition-duration:.3s;transition-timing-function:cubic-bezier(.2,0,0,1)}.m3-window-snap-preview[data-v-86c88a3c]{transition:left .2s cubic-bezier(.2,0,0,1),width .2s cubic-bezier(.2,0,0,1),opacity .15s linear,transform .2s cubic-bezier(.2,0,0,1)}.m3-window-snap-enter-from[data-v-86c88a3c],.m3-window-snap-leave-to[data-v-86c88a3c]{opacity:0;transform:scale(.96)}.m3-window-enter-active[data-v-86c88a3c]{transition:opacity .15s linear,transform .3s cubic-bezier(.05,.7,.1,1)}.m3-window-leave-active[data-v-86c88a3c]{transition:opacity .15s linear,transform .2s cubic-bezier(.3,0,.8,.15)}.m3-window-enter-from[data-v-86c88a3c],.m3-window-leave-to[data-v-86c88a3c]{opacity:0;transform:scale(.92)}@media (prefers-reduced-motion:reduce){.m3-window-geometry[data-v-86c88a3c],.m3-window-snap-preview[data-v-86c88a3c],.m3-window-enter-active[data-v-86c88a3c],.m3-window-leave-active[data-v-86c88a3c]{transition:none}}.m3-markdown[data-v-488700bc] h1{font-size:var(--text-headline-large);line-height:var(--text-headline-large--line-height);color:var(--color-on-surface);margin:1em 0 .5em;font-weight:600}.m3-markdown[data-v-488700bc] h2{font-size:var(--text-headline-medium);line-height:var(--text-headline-medium--line-height);color:var(--color-on-surface);margin:1em 0 .5em;font-weight:600}.m3-markdown[data-v-488700bc] h3{font-size:var(--text-headline-small);line-height:var(--text-headline-small--line-height);color:var(--color-on-surface);margin:.75em 0 .25em;font-weight:600}.m3-markdown[data-v-488700bc] h4{font-size:var(--text-title-large);line-height:var(--text-title-large--line-height);color:var(--color-on-surface);margin:.75em 0 .25em;font-weight:600}.m3-markdown[data-v-488700bc] p{margin:.5em 0}.m3-markdown[data-v-488700bc] a{color:var(--color-primary);text-underline-offset:2px;text-decoration:underline}.m3-markdown[data-v-488700bc] a:hover{opacity:.8}.m3-markdown[data-v-488700bc] strong{color:var(--color-on-surface);font-weight:600}.m3-markdown[data-v-488700bc] em{font-style:italic}.m3-markdown[data-v-488700bc] ul{margin:.5em 0;padding-left:1.5em;list-style-type:disc}.m3-markdown[data-v-488700bc] ol{margin:.5em 0;padding-left:1.5em;list-style-type:decimal}.m3-markdown[data-v-488700bc] li{margin:.25em 0}.m3-markdown[data-v-488700bc] li::marker{color:var(--color-on-surface-variant)}.m3-markdown[data-v-488700bc] blockquote{border-left:3px solid var(--color-primary);background:var(--color-surface-container);color:var(--color-on-surface-variant);border-radius:0 8px 8px 0;margin:.75em 0;padding:.5em 1em}.m3-markdown[data-v-488700bc] code{background:var(--color-surface-container-highest);font-family:var(--font-mono,"Roboto Mono", monospace);color:var(--color-primary);border-radius:4px;padding:.15em .4em;font-size:.875em}.m3-markdown[data-v-488700bc] pre{background:var(--color-surface-container-highest);border:1px solid var(--color-outline-variant);border-radius:12px;margin:.75em 0;padding:1em;overflow-x:auto}.m3-markdown[data-v-488700bc] pre code{color:var(--color-on-surface);background:0 0;padding:0;font-size:.8125rem;line-height:1.6}.m3-markdown[data-v-488700bc] .hljs-keyword,.m3-markdown[data-v-488700bc] .hljs-selector-tag,.m3-markdown[data-v-488700bc] .hljs-built_in,.m3-markdown[data-v-488700bc] .hljs-tag .hljs-keyword{color:var(--color-primary)}.m3-markdown[data-v-488700bc] .hljs-string,.m3-markdown[data-v-488700bc] .hljs-regexp,.m3-markdown[data-v-488700bc] .hljs-template-variable{color:var(--color-tertiary)}.m3-markdown[data-v-488700bc] .hljs-number,.m3-markdown[data-v-488700bc] .hljs-literal{color:var(--color-error)}.m3-markdown[data-v-488700bc] .hljs-title.function_,.m3-markdown[data-v-488700bc] .hljs-title.function_>.hljs-keyword{color:var(--color-secondary);font-weight:500}.m3-markdown[data-v-488700bc] .hljs-type,.m3-markdown[data-v-488700bc] .hljs-title.class_{color:var(--color-primary);font-style:italic}.m3-markdown[data-v-488700bc] .hljs-comment,.m3-markdown[data-v-488700bc] .hljs-quote{color:var(--color-outline);font-style:italic}.m3-markdown[data-v-488700bc] .hljs-attr,.m3-markdown[data-v-488700bc] .hljs-attribute{color:var(--color-tertiary)}.m3-markdown[data-v-488700bc] .hljs-tag{color:var(--color-on-surface-variant)}.m3-markdown[data-v-488700bc] .hljs-name{color:var(--color-primary)}.m3-markdown[data-v-488700bc] .hljs-punctuation,.m3-markdown[data-v-488700bc] .hljs-operator,.m3-markdown[data-v-488700bc] .hljs-meta,.m3-markdown[data-v-488700bc] .hljs-meta .hljs-keyword{color:var(--color-on-surface-variant)}.m3-markdown[data-v-488700bc] .hljs-variable,.m3-markdown[data-v-488700bc] .hljs-property,.m3-markdown[data-v-488700bc] .hljs-symbol,.m3-markdown[data-v-488700bc] .hljs-params{color:var(--color-on-surface)}.m3-markdown[data-v-488700bc] .m3-code-block{position:relative}.m3-markdown[data-v-488700bc] .m3-code-copy{background:var(--color-surface-container);width:28px;height:28px;color:var(--color-on-surface-variant);cursor:pointer;opacity:0;z-index:1;border:none;border-radius:6px;justify-content:center;align-items:center;transition:opacity .15s;display:flex;position:absolute;top:8px;right:8px}.m3-markdown[data-v-488700bc] .m3-code-block:hover .m3-code-copy{opacity:1}.m3-markdown[data-v-488700bc] .m3-code-copy:hover{background:var(--color-surface-container-high);color:var(--color-on-surface)}.m3-markdown[data-v-488700bc] .m3-code-line{display:block}.m3-markdown[data-v-488700bc] .m3-line-hl{background:color-mix(in srgb, var(--color-primary) 8%, transparent);border-left:2px solid color-mix(in srgb, var(--color-primary) 40%, transparent);margin:0 -1em;padding:0 1em 0 calc(1em - 2px)}.m3-markdown[data-v-488700bc] hr{border:none;border-top:1px solid var(--color-outline-variant);margin:1.5em 0}.m3-markdown[data-v-488700bc] table{border-collapse:collapse;width:100%;margin:.75em 0}.m3-markdown[data-v-488700bc] th{background:var(--color-surface-container);text-align:left;border-bottom:2px solid var(--color-outline-variant);font-weight:600;font-size:var(--text-label-large);color:var(--color-on-surface);padding:.5em .75em}.m3-markdown[data-v-488700bc] td{border-bottom:1px solid var(--color-outline-variant);padding:.5em .75em}.m3-markdown[data-v-488700bc] img{border-radius:12px;max-width:100%;height:auto;margin:.5em 0}.rte-content[data-v-201025d1] .tiptap{min-height:inherit;outline:none}.rte-content[data-v-201025d1] .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--color-on-surface-variant);opacity:.5;pointer-events:none;height:0}.rte-content[data-v-201025d1] h1{font-size:var(--text-headline-large);line-height:var(--text-headline-large--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-201025d1] h2{font-size:var(--text-headline-medium);line-height:var(--text-headline-medium--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-201025d1] h3{font-size:var(--text-headline-small);line-height:var(--text-headline-small--line-height);margin:.75em 0 .25em;font-weight:600}.rte-content[data-v-201025d1] p{margin:.5em 0}.rte-content[data-v-201025d1] ul{margin:.5em 0;padding-left:1.5em;list-style-type:disc}.rte-content[data-v-201025d1] ol{margin:.5em 0;padding-left:1.5em;list-style-type:decimal}.rte-content[data-v-201025d1] blockquote{border-left:3px solid var(--color-primary);color:var(--color-on-surface-variant);margin:.5em 0;padding-left:1em}.rte-content[data-v-201025d1] code{background:var(--color-surface-container-highest);border-radius:4px;padding:.15em .4em;font-size:.875em}.rte-content[data-v-201025d1] pre{background:var(--color-surface-container-highest);border-radius:8px;margin:.5em 0;padding:1em;overflow-x:auto}.rte-content[data-v-201025d1] pre code{background:0 0;padding:0}.rte-content[data-v-201025d1] a{color:var(--color-primary);text-decoration:underline}.rte-content[data-v-201025d1] mark{background:var(--color-tertiary-container);color:var(--color-on-tertiary-container);border-radius:2px;padding:.1em .2em}.rte-content[data-v-201025d1] img{border-radius:8px;max-width:100%;height:auto;margin:.5em 0}
|
|
2
2
|
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -45,6 +45,18 @@ describe('MSearchBar fullscreen-contained', () => {
|
|
|
45
45
|
})
|
|
46
46
|
})
|
|
47
47
|
|
|
48
|
+
describe('MSearchBar elevation', () => {
|
|
49
|
+
it('is flat standalone and docked, as Compose (ShadowElevation = Level0)', async () => {
|
|
50
|
+
wrapper = mount(MSearchBar, { props: { variant: 'docked' }, attachTo: document.body })
|
|
51
|
+
expect(pill().classes().some((c) => c.startsWith('shadow-'))).toBe(false)
|
|
52
|
+
await wrapper.setProps({ expanded: true })
|
|
53
|
+
await nextTick()
|
|
54
|
+
const panel = document.body.querySelector('.fixed.rounded-\\[28px\\]')!
|
|
55
|
+
expect(panel).not.toBeNull()
|
|
56
|
+
expect([...panel.classList].some((c) => c.startsWith('shadow-'))).toBe(false)
|
|
57
|
+
})
|
|
58
|
+
})
|
|
59
|
+
|
|
48
60
|
describe('MAppBarWithSearch', () => {
|
|
49
61
|
it('lays out navigation, a flat search bar and actions', () => {
|
|
50
62
|
wrapper = mount(MAppBarWithSearch, {
|
|
@@ -98,4 +98,25 @@ describe('MBottomSheetScaffold', () => {
|
|
|
98
98
|
drag(content.firstElementChild as HTMLElement, 150)
|
|
99
99
|
expect(wrapper!.emitted('update:modelValue')).toEqual([['partial']])
|
|
100
100
|
})
|
|
101
|
+
|
|
102
|
+
it('keeps the sheet\'s drag out of touch-action: none, pan-down at the content\'s top, pan-y once scrolled', () => {
|
|
103
|
+
vi.stubGlobal('CSS', { supports: (p: string, v: string) => p === 'touch-action' && v === 'pan-down' })
|
|
104
|
+
let sheet = setup()
|
|
105
|
+
let content = sheet.querySelector('.content')!.parentElement as HTMLElement
|
|
106
|
+
expect(sheet.classList.contains('touch-none')).toBe(true)
|
|
107
|
+
// Partial: the content can't scroll, every drag on it moves the sheet
|
|
108
|
+
expect(content.style.touchAction).toBe('none')
|
|
109
|
+
wrapper!.unmount()
|
|
110
|
+
|
|
111
|
+
sheet = setup({ modelValue: 'expanded' })
|
|
112
|
+
content = sheet.querySelector('.content')!.parentElement as HTMLElement
|
|
113
|
+
Object.defineProperty(content, 'scrollHeight', { value: 1000 })
|
|
114
|
+
Object.defineProperty(content, 'clientHeight', { value: 300 })
|
|
115
|
+
content.dispatchEvent(new Event('scroll'))
|
|
116
|
+
expect(content.style.touchAction).toBe('pan-down')
|
|
117
|
+
content.scrollTop = 200
|
|
118
|
+
content.dispatchEvent(new Event('scroll'))
|
|
119
|
+
expect(content.style.touchAction).toBe('pan-y')
|
|
120
|
+
vi.unstubAllGlobals()
|
|
121
|
+
})
|
|
101
122
|
})
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { describe, it, expect, afterEach, vi } from 'vitest'
|
|
2
|
+
import { mount, type VueWrapper } from '@vue/test-utils'
|
|
3
|
+
import MNavigationDrawer from '../components/MNavigationDrawer.vue'
|
|
4
|
+
|
|
5
|
+
const sections = [{ items: [{ value: 'inbox', label: 'Inbox', icon: 'inbox' }, { value: 'sent', label: 'Sent', icon: 'send' }] }]
|
|
6
|
+
|
|
7
|
+
let wrapper: VueWrapper | undefined
|
|
8
|
+
afterEach(() => {
|
|
9
|
+
wrapper?.unmount()
|
|
10
|
+
wrapper = undefined
|
|
11
|
+
document.body.innerHTML = ''
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
function open(props: Record<string, unknown> = {}) {
|
|
15
|
+
wrapper = mount(MNavigationDrawer, {
|
|
16
|
+
props: { modelValue: true, sections, ...props },
|
|
17
|
+
attachTo: document.body,
|
|
18
|
+
global: { stubs: { transition: false } },
|
|
19
|
+
})
|
|
20
|
+
const panel = document.body.querySelector<HTMLElement>('.nd-panel')!
|
|
21
|
+
// The open is a Web Animation, and happy-dom's timeline doesn't advance on its own
|
|
22
|
+
panel.getAnimations().forEach((a) => a.finish())
|
|
23
|
+
// happy-dom has no layout
|
|
24
|
+
Object.defineProperty(panel, 'offsetWidth', { value: 300 })
|
|
25
|
+
Object.defineProperty(panel, 'offsetHeight', { value: 300 })
|
|
26
|
+
return panel
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Moves 25px per step toward `to`, `msPerStep` apart (the events' timeStamp is what the fling velocity is measured
|
|
30
|
+
// from), along x, or along y with `vertical`, starting on `target` (the panel by default)
|
|
31
|
+
function swipe(panel: HTMLElement, from: number, to: number, msPerStep = 100, vertical = false, target: HTMLElement = panel) {
|
|
32
|
+
let t = 1000
|
|
33
|
+
const send = (type: string, p: number) => {
|
|
34
|
+
const e = new PointerEvent(type, { pointerId: 1, button: 0, bubbles: true, clientX: vertical ? 150 : p, clientY: vertical ? p : 300 })
|
|
35
|
+
Object.defineProperty(e, 'timeStamp', { value: t })
|
|
36
|
+
;(type === 'pointerdown' ? target : panel).dispatchEvent(e)
|
|
37
|
+
}
|
|
38
|
+
const dir = Math.sign(to - from)
|
|
39
|
+
send('pointerdown', from)
|
|
40
|
+
for (let x = from; dir * (to - x) >= 0; x += dir * 25) {
|
|
41
|
+
t += msPerStep
|
|
42
|
+
send('pointermove', x)
|
|
43
|
+
}
|
|
44
|
+
send('pointerup', to)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
describe('MNavigationDrawer swipe to close', () => {
|
|
48
|
+
it('opens as a Web Animation (compositor-run), with the open state inline underneath', () => {
|
|
49
|
+
wrapper = mount(MNavigationDrawer, {
|
|
50
|
+
props: { modelValue: true, sections },
|
|
51
|
+
attachTo: document.body,
|
|
52
|
+
global: { stubs: { transition: false } },
|
|
53
|
+
})
|
|
54
|
+
const panel = document.body.querySelector<HTMLElement>('.nd-panel')!
|
|
55
|
+
expect(panel.getAnimations()).toHaveLength(1)
|
|
56
|
+
expect(panel.style.transform).toBe('translateX(0%)')
|
|
57
|
+
expect(document.body.querySelector<HTMLElement>('.nd-scrim')!.getAnimations()).toHaveLength(1)
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
it('closes when slowly swiped past half its width, and springs back from a short swipe', () => {
|
|
61
|
+
const panel = open()
|
|
62
|
+
swipe(panel, 250, 175, 400)
|
|
63
|
+
expect(wrapper!.emitted('update:modelValue')).toBeUndefined()
|
|
64
|
+
swipe(panel, 250, 50, 400)
|
|
65
|
+
expect(wrapper!.emitted('update:modelValue')).toEqual([[false]])
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
it('closes on a quick flick even when it moved less than half', () => {
|
|
69
|
+
const panel = open()
|
|
70
|
+
swipe(panel, 250, 175, 16)
|
|
71
|
+
expect(wrapper!.emitted('update:modelValue')).toEqual([[false]])
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
it('swipes toward its own side when it opens from the right', () => {
|
|
75
|
+
const panel = open({ side: 'right' })
|
|
76
|
+
swipe(panel, 100, 25, 16)
|
|
77
|
+
expect(wrapper!.emitted('update:modelValue')).toBeUndefined()
|
|
78
|
+
swipe(panel, 100, 300, 400)
|
|
79
|
+
expect(wrapper!.emitted('update:modelValue')).toEqual([[false]])
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
it('ignores a vertical drag (the items scroll)', () => {
|
|
83
|
+
const panel = open()
|
|
84
|
+
const opts = { pointerId: 1, button: 0, bubbles: true, clientX: 250 }
|
|
85
|
+
panel.dispatchEvent(new PointerEvent('pointerdown', { ...opts, clientY: 300 }))
|
|
86
|
+
panel.dispatchEvent(new PointerEvent('pointermove', { ...opts, clientX: 240, clientY: 200 }))
|
|
87
|
+
panel.dispatchEvent(new PointerEvent('pointermove', { ...opts, clientX: 40, clientY: 200 }))
|
|
88
|
+
panel.dispatchEvent(new PointerEvent('pointerup', { ...opts, clientX: 40, clientY: 200 }))
|
|
89
|
+
expect(wrapper!.emitted('update:modelValue')).toBeUndefined()
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
it('does not swipe with swipeEnabled false', () => {
|
|
93
|
+
swipe(open({ swipeEnabled: false }), 250, 0, 16)
|
|
94
|
+
expect(wrapper!.emitted('update:modelValue')).toBeUndefined()
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
it('closes a bottom drawer swiped down and a top drawer swiped up', () => {
|
|
98
|
+
let panel = open({ side: 'bottom' })
|
|
99
|
+
swipe(panel, 100, 175, 400, true)
|
|
100
|
+
expect(wrapper!.emitted('update:modelValue')).toBeUndefined()
|
|
101
|
+
swipe(panel, 100, 300, 400, true)
|
|
102
|
+
expect(wrapper!.emitted('update:modelValue')).toEqual([[false]])
|
|
103
|
+
wrapper!.unmount()
|
|
104
|
+
panel = open({ side: 'top' })
|
|
105
|
+
swipe(panel, 250, 175, 16, true)
|
|
106
|
+
expect(wrapper!.emitted('update:modelValue')).toEqual([[false]])
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
it('lets a vertical drawer\'s list scroll first: the drawer follows only once the list is at its edge', () => {
|
|
110
|
+
const panel = open({ side: 'bottom' })
|
|
111
|
+
const list = panel.querySelector<HTMLElement>('[data-nd-list]')!
|
|
112
|
+
Object.defineProperty(list, 'scrollHeight', { value: 600 })
|
|
113
|
+
Object.defineProperty(list, 'clientHeight', { value: 200 })
|
|
114
|
+
list.scrollTop = 50
|
|
115
|
+
swipe(panel, 100, 300, 16, true, list)
|
|
116
|
+
expect(wrapper!.emitted('update:modelValue')).toBeUndefined()
|
|
117
|
+
// Swiping up never moves it: there's nothing further to open
|
|
118
|
+
list.scrollTop = 0
|
|
119
|
+
swipe(panel, 300, 100, 16, true, list)
|
|
120
|
+
expect(wrapper!.emitted('update:modelValue')).toBeUndefined()
|
|
121
|
+
swipe(panel, 100, 300, 16, true, list)
|
|
122
|
+
expect(wrapper!.emitted('update:modelValue')).toEqual([[false]])
|
|
123
|
+
})
|
|
124
|
+
|
|
125
|
+
it('claims a top/bottom touch swipe on its first move, so the browser never starts its own pan', () => {
|
|
126
|
+
const panel = open({ side: 'bottom' })
|
|
127
|
+
const list = panel.querySelector<HTMLElement>('[data-nd-list]')!
|
|
128
|
+
let ts = 1000
|
|
129
|
+
const touch = (type: string, y: number) => {
|
|
130
|
+
const t = { identifier: 1, clientX: 150, clientY: y, target: list }
|
|
131
|
+
const ev = new Event(type, { bubbles: true, cancelable: true }) as Event & Record<string, unknown>
|
|
132
|
+
Object.assign(ev, { touches: type === 'touchend' ? [] : [t], changedTouches: [t] })
|
|
133
|
+
Object.defineProperty(ev, 'timeStamp', { value: (ts += 400) })
|
|
134
|
+
list.dispatchEvent(ev)
|
|
135
|
+
return ev
|
|
136
|
+
}
|
|
137
|
+
touch('touchstart', 100)
|
|
138
|
+
expect(touch('touchmove', 103).defaultPrevented).toBe(true)
|
|
139
|
+
touch('touchmove', 300)
|
|
140
|
+
touch('touchend', 300)
|
|
141
|
+
expect(wrapper!.emitted('update:modelValue')).toEqual([[false]])
|
|
142
|
+
})
|
|
143
|
+
|
|
144
|
+
it('leaves a top/bottom touch swipe toward the open side to the list', () => {
|
|
145
|
+
const panel = open({ side: 'bottom' })
|
|
146
|
+
const list = panel.querySelector<HTMLElement>('[data-nd-list]')!
|
|
147
|
+
const touch = (type: string, y: number) => {
|
|
148
|
+
const t = { identifier: 1, clientX: 150, clientY: y, target: list }
|
|
149
|
+
const ev = new Event(type, { bubbles: true, cancelable: true }) as Event & Record<string, unknown>
|
|
150
|
+
Object.assign(ev, { touches: type === 'touchend' ? [] : [t], changedTouches: [t] })
|
|
151
|
+
list.dispatchEvent(ev)
|
|
152
|
+
return ev
|
|
153
|
+
}
|
|
154
|
+
touch('touchstart', 300)
|
|
155
|
+
expect(touch('touchmove', 297).defaultPrevented).toBe(false)
|
|
156
|
+
expect(touch('touchmove', 100).defaultPrevented).toBe(false)
|
|
157
|
+
touch('touchend', 100)
|
|
158
|
+
expect(wrapper!.emitted('update:modelValue')).toBeUndefined()
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
it('keeps a top/bottom swipe out of the list\'s touch-action while the list is at that edge', async () => {
|
|
162
|
+
vi.stubGlobal('CSS', { supports: (p: string, v: string) => p === 'touch-action' && v === 'pan-down' })
|
|
163
|
+
const nextFrame = () => new Promise((r) => requestAnimationFrame(r))
|
|
164
|
+
let panel = open({ side: 'bottom' })
|
|
165
|
+
let list = panel.querySelector<HTMLElement>('[data-nd-list]')!
|
|
166
|
+
Object.defineProperty(list, 'scrollHeight', { value: 600 })
|
|
167
|
+
Object.defineProperty(list, 'clientHeight', { value: 200 })
|
|
168
|
+
await nextFrame()
|
|
169
|
+
// At the top only the finger moving up scrolls natively; down is the drawer's
|
|
170
|
+
expect(list.style.touchAction).toBe('pan-down')
|
|
171
|
+
expect(panel.classList.contains('touch-none')).toBe(true)
|
|
172
|
+
list.scrollTop = 50
|
|
173
|
+
list.dispatchEvent(new Event('scroll'))
|
|
174
|
+
expect(list.style.touchAction).toBe('pan-y')
|
|
175
|
+
wrapper!.unmount()
|
|
176
|
+
|
|
177
|
+
panel = open({ side: 'top' })
|
|
178
|
+
list = panel.querySelector<HTMLElement>('[data-nd-list]')!
|
|
179
|
+
Object.defineProperty(list, 'scrollHeight', { value: 200 })
|
|
180
|
+
Object.defineProperty(list, 'clientHeight', { value: 200 })
|
|
181
|
+
await nextFrame()
|
|
182
|
+
expect(list.style.touchAction).toBe('pan-up')
|
|
183
|
+
vi.unstubAllGlobals()
|
|
184
|
+
})
|
|
185
|
+
})
|
|
@@ -20,7 +20,10 @@ function open(props: Record<string, unknown> = {}) {
|
|
|
20
20
|
attachTo: document.body,
|
|
21
21
|
global: { stubs: { transition: false } },
|
|
22
22
|
})
|
|
23
|
-
|
|
23
|
+
const panel = document.body.querySelector<HTMLElement>('.wnr-panel')!
|
|
24
|
+
// The slide-in is a Web Animation, and happy-dom's timeline doesn't advance on its own
|
|
25
|
+
panel?.getAnimations().forEach((a) => a.finish())
|
|
26
|
+
return panel
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
// Moves 25px per step, `msPerStep` apart (the events' timeStamp is what the fling velocity is measured from)
|
|
@@ -46,6 +49,19 @@ describe('MNavigationRail', () => {
|
|
|
46
49
|
expect(wrapper!.find('nav').exists()).toBe(false)
|
|
47
50
|
})
|
|
48
51
|
|
|
52
|
+
it('slides the hideOnCollapse panel in as a Web Animation, the open state inline underneath', async () => {
|
|
53
|
+
wrapper = mount(MNavigationRail, {
|
|
54
|
+
props: { modelValue: 'inbox', items, modal: true, hideOnCollapse: true, expanded: false },
|
|
55
|
+
attachTo: document.body,
|
|
56
|
+
global: { stubs: { transition: false } },
|
|
57
|
+
})
|
|
58
|
+
await wrapper.setProps({ expanded: true })
|
|
59
|
+
const panel = document.body.querySelector<HTMLElement>('.wnr-panel')!
|
|
60
|
+
const [slide] = panel.getAnimations()
|
|
61
|
+
expect((slide!.effect as KeyframeEffect).getKeyframes()[0]!.transform).toBe('translateX(-100%)')
|
|
62
|
+
expect(panel.style.transform).toBe('translateX(0%)')
|
|
63
|
+
})
|
|
64
|
+
|
|
49
65
|
it('keeps the collapsed rail on screen in the default modal', () => {
|
|
50
66
|
open({ hideOnCollapse: false })
|
|
51
67
|
expect(wrapper!.find('nav').exists()).toBe(true)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { describe, it, expect } from 'vitest'
|
|
1
|
+
import { describe, it, expect, vi } from 'vitest'
|
|
2
2
|
import { mount } from '@vue/test-utils'
|
|
3
3
|
import MPullToRefresh from '../components/MPullToRefresh.vue'
|
|
4
4
|
|
|
@@ -103,4 +103,21 @@ describe('MPullToRefresh (mouse)', () => {
|
|
|
103
103
|
expect(wrapper.emitted('refresh')).toHaveLength(1)
|
|
104
104
|
wrapper.unmount()
|
|
105
105
|
})
|
|
106
|
+
|
|
107
|
+
it('lets the browser pan only upward while a pull can start, both ways once scrolled or refreshing', async () => {
|
|
108
|
+
vi.stubGlobal('CSS', { supports: (p: string, v: string) => p === 'touch-action' && v === 'pan-down' })
|
|
109
|
+
const { wrapper, scrollEl } = mountPtr()
|
|
110
|
+
const el = scrollEl as HTMLElement
|
|
111
|
+
expect(el.style.touchAction).toBe('pan-down')
|
|
112
|
+
el.scrollTop = 120
|
|
113
|
+
el.dispatchEvent(new Event('scroll'))
|
|
114
|
+
expect(el.style.touchAction).toBe('pan-y')
|
|
115
|
+
el.scrollTop = 0
|
|
116
|
+
el.dispatchEvent(new Event('scroll'))
|
|
117
|
+
expect(el.style.touchAction).toBe('pan-down')
|
|
118
|
+
await wrapper.setProps({ refreshing: true })
|
|
119
|
+
expect(el.style.touchAction).toBe('pan-y')
|
|
120
|
+
wrapper.unmount()
|
|
121
|
+
vi.unstubAllGlobals()
|
|
122
|
+
})
|
|
106
123
|
})
|
|
@@ -24,4 +24,16 @@ describe('MTransition', () => {
|
|
|
24
24
|
await wait(800)
|
|
25
25
|
expect(wrapper.findAll('.page').map((p) => p.text())).toEqual(['b'])
|
|
26
26
|
})
|
|
27
|
+
|
|
28
|
+
it('slides the entering view in from 20% of its width as a Web Animation', async () => {
|
|
29
|
+
const page = ref('a')
|
|
30
|
+
wrapper = mount(defineComponent({
|
|
31
|
+
setup: () => () => h(MTransition, null, () => h('div', { key: page.value, class: 'page' }, page.value)),
|
|
32
|
+
}), { attachTo: document.body, global: { stubs: { transition: false } } })
|
|
33
|
+
page.value = 'b'
|
|
34
|
+
await nextTick()
|
|
35
|
+
const entering = wrapper.findAll('.page')[1]!.element as HTMLElement
|
|
36
|
+
const slide = entering.getAnimations().find((a) => 'transform' in (a.effect as KeyframeEffect).getKeyframes()[0]!)
|
|
37
|
+
expect((slide!.effect as KeyframeEffect).getKeyframes()[0]!.transform).toBe('translateX(20%)')
|
|
38
|
+
})
|
|
27
39
|
})
|
|
@@ -27,20 +27,23 @@ describe.each([
|
|
|
27
27
|
const w = mount(Comp as any, { props: { modelValue: false }, attachTo: document.body, global: { stubs: { transition: false } } })
|
|
28
28
|
await w.setProps({ modelValue: true })
|
|
29
29
|
await nextTick()
|
|
30
|
-
|
|
31
|
-
expect(
|
|
32
|
-
|
|
33
|
-
vi.advanceTimersByTime(80)
|
|
34
|
-
const mid = parseFloat(panel()!.style.transform.match(/\(([-\d.]+)px/)![1]!)
|
|
35
|
-
expect(mid).toBeGreaterThan(0)
|
|
36
|
-
expect(mid).toBeLessThan(size)
|
|
37
|
-
|
|
38
|
-
vi.advanceTimersByTime(1500)
|
|
39
|
-
expect(panel()!.style.transform).toBe(`${fn}(0px)`)
|
|
30
|
+
// Played as Web Animations over the open state written inline
|
|
31
|
+
expect(panel()!.style.transform).toBe(`${fn}(0%)`)
|
|
40
32
|
expect(scrim()!.style.opacity).toBe('1')
|
|
33
|
+
const [slide] = panel()!.getAnimations()
|
|
34
|
+
const frames = (slide!.effect as KeyframeEffect).getKeyframes()
|
|
35
|
+
expect(frames[0]!.transform).toBe(`${fn}(100%)`)
|
|
36
|
+
expect(frames[frames.length - 1]!.transform).toBe(`${fn}(0%)`)
|
|
37
|
+
const [fade] = scrim()!.getAnimations()
|
|
38
|
+
expect((fade!.effect as KeyframeEffect).getKeyframes()[0]!.opacity).toBe('0')
|
|
41
39
|
|
|
40
|
+
slide!.finish()
|
|
41
|
+
fade!.finish()
|
|
42
42
|
await w.setProps({ modelValue: false })
|
|
43
|
-
|
|
43
|
+
await nextTick()
|
|
44
|
+
expect(panel()!.style.transform).toBe(`${fn}(100%)`)
|
|
45
|
+
panel()!.getAnimations().forEach((a) => a.finish())
|
|
46
|
+
scrim()!.getAnimations().forEach((a) => a.finish())
|
|
44
47
|
await nextTick()
|
|
45
48
|
expect(panel()).toBeNull()
|
|
46
49
|
w.unmount()
|
|
@@ -49,7 +52,8 @@ describe.each([
|
|
|
49
52
|
it('a short drag springs back; a long one dismisses', async () => {
|
|
50
53
|
const w = mount(Comp as any, { props: { modelValue: true }, attachTo: document.body, global: { stubs: { transition: false } } })
|
|
51
54
|
await nextTick()
|
|
52
|
-
|
|
55
|
+
panel()!.getAnimations().forEach((a) => a.finish())
|
|
56
|
+
scrim()!.getAnimations().forEach((a) => a.finish())
|
|
53
57
|
const handle = (fn === 'translateY'
|
|
54
58
|
? panel()!.querySelector('.cursor-grab')
|
|
55
59
|
: panel()!.querySelector('.cursor-ew-resize')) as HTMLElement
|
|
@@ -59,11 +63,11 @@ describe.each([
|
|
|
59
63
|
handle.dispatchEvent(new PointerEvent('pointerdown', { ...at(0), pointerId: 1 }))
|
|
60
64
|
vi.advanceTimersByTime(16)
|
|
61
65
|
handle.dispatchEvent(new PointerEvent('pointermove', { ...at(40), pointerId: 1 }))
|
|
62
|
-
expect(panel()!.style.transform).toBe(`${fn}(
|
|
66
|
+
expect(panel()!.style.transform).toBe(`${fn}(${(40 / size) * 100}%)`)
|
|
63
67
|
vi.advanceTimersByTime(200)
|
|
64
68
|
handle.dispatchEvent(new PointerEvent('pointerup', { pointerId: 1 }))
|
|
65
|
-
|
|
66
|
-
expect(panel()!.
|
|
69
|
+
expect(panel()!.style.transform).toBe(`${fn}(0%)`)
|
|
70
|
+
expect(panel()!.getAnimations().filter((a) => a.playState === 'running')).toHaveLength(1)
|
|
67
71
|
expect(w.emitted('update:modelValue')).toBeUndefined()
|
|
68
72
|
|
|
69
73
|
handle.dispatchEvent(new PointerEvent('pointerdown', { ...at(0), pointerId: 1 }))
|
|
@@ -83,6 +83,23 @@ function write() {
|
|
|
83
83
|
if (sheetEl.value) sheetEl.value.style.transform = `translateY(${y}px)`
|
|
84
84
|
// The content scrolls only once the sheet is fully up; until then a drag on it moves the sheet
|
|
85
85
|
if (contentEl.value) contentEl.value.style.overflowY = settled.value === 'expanded' && target === null ? 'auto' : 'hidden'
|
|
86
|
+
updateContentTouchAction()
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Wherever touch-action lets the browser pan along the sheet's drag, Chrome treats that drag as a possible scroll
|
|
90
|
+
// and delivers it at 60Hz on a 120Hz phone, so the sheet moves every other frame (see CLAUDE.md). So the sheet is
|
|
91
|
+
// touch-action: none, and the content allows only the scroll that can actually happen: none while it can't
|
|
92
|
+
// scroll, only the finger moving up (pan-down) while it's at its top (down drags the sheet), both ways elsewhere.
|
|
93
|
+
// Browsers without directional pan values (Safari) keep pan-y there.
|
|
94
|
+
function updateContentTouchAction() {
|
|
95
|
+
const content = contentEl.value
|
|
96
|
+
if (!content || !props.swipeEnabled) return
|
|
97
|
+
let action = 'none'
|
|
98
|
+
if (settled.value === 'expanded' && target === null && content.scrollHeight > content.clientHeight) {
|
|
99
|
+
const directional = typeof CSS !== 'undefined' && !!CSS.supports?.('touch-action', 'pan-down')
|
|
100
|
+
action = content.scrollTop <= 0 && directional ? 'pan-down' : 'pan-y'
|
|
101
|
+
}
|
|
102
|
+
if (content.style.touchAction !== action) content.style.touchAction = action
|
|
86
103
|
}
|
|
87
104
|
|
|
88
105
|
function frame(now: number) {
|
|
@@ -240,6 +257,7 @@ let observer: ResizeObserver | null = null
|
|
|
240
257
|
onMounted(() => {
|
|
241
258
|
measure()
|
|
242
259
|
sheetEl.value?.addEventListener('touchmove', onTouchMove, { passive: false })
|
|
260
|
+
contentEl.value?.addEventListener('scroll', updateContentTouchAction, { passive: true })
|
|
243
261
|
if (typeof ResizeObserver !== 'undefined') {
|
|
244
262
|
observer = new ResizeObserver(() => measure())
|
|
245
263
|
if (sheetEl.value) observer.observe(sheetEl.value)
|
|
@@ -250,6 +268,7 @@ onUnmounted(() => {
|
|
|
250
268
|
cancelAnimationFrame(raf)
|
|
251
269
|
observer?.disconnect()
|
|
252
270
|
sheetEl.value?.removeEventListener('touchmove', onTouchMove)
|
|
271
|
+
contentEl.value?.removeEventListener('scroll', updateContentTouchAction)
|
|
253
272
|
})
|
|
254
273
|
</script>
|
|
255
274
|
|
|
@@ -267,7 +286,8 @@ onUnmounted(() => {
|
|
|
267
286
|
<div
|
|
268
287
|
ref="sheetEl"
|
|
269
288
|
role="region"
|
|
270
|
-
class="absolute inset-x-0 bottom-0 z-10 mx-auto flex max-h-full w-full
|
|
289
|
+
class="absolute inset-x-0 bottom-0 z-10 mx-auto flex max-h-full w-full select-none flex-col rounded-t-[28px] bg-surface-container-low text-on-surface shadow-elevation-1 after:absolute after:inset-x-0 after:top-full after:h-24 after:bg-surface-container-low"
|
|
290
|
+
:class="swipeEnabled ? 'touch-none' : 'touch-pan-y'"
|
|
271
291
|
:style="{ maxWidth: `${maxWidth}px` }"
|
|
272
292
|
@pointerdown="onPointerDown"
|
|
273
293
|
@pointermove="onPointerMove"
|
|
@@ -287,7 +307,8 @@ onUnmounted(() => {
|
|
|
287
307
|
<span class="h-1 w-8 rounded-full bg-on-surface-variant" />
|
|
288
308
|
</button>
|
|
289
309
|
</div>
|
|
290
|
-
<!-- touch-action stops at a scroll container, so the content needs its own pan-y
|
|
310
|
+
<!-- touch-action stops at a scroll container, so the content needs its own (pan-y, narrowed by
|
|
311
|
+
updateContentTouchAction while the sheet can be dragged) -->
|
|
291
312
|
<div ref="contentEl" class="min-h-0 flex-1 touch-pan-y select-text overflow-y-hidden">
|
|
292
313
|
<slot name="sheet" />
|
|
293
314
|
</div>
|