@greypan/web-ui 6.4.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.CN.md +211 -50
- package/README.md +222 -61
- package/dist/assets/glass.js +1 -1
- package/dist/assets/glass.js.map +1 -1
- package/dist/assets/selection-control.js +6 -0
- package/dist/assets/selection-control.js.map +1 -0
- package/dist/assets/toast-containers.js.map +1 -1
- package/dist/components/autocomplete/index.d.ts +19 -5
- package/dist/components/autocomplete/index.js +142 -108
- package/dist/components/autocomplete/index.js.map +1 -1
- package/dist/components/autocomplete/style.js +1 -1
- package/dist/components/autocomplete/style.js.map +1 -1
- package/dist/components/avatar/index.js +4 -4
- package/dist/components/badge/style.js.map +1 -1
- package/dist/components/button/index.js +15 -15
- package/dist/components/button/style.js.map +1 -1
- package/dist/components/button-group/index.js +5 -5
- package/dist/components/checkbox/index.d.ts +9 -2
- package/dist/components/checkbox/index.js +50 -26
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/checkbox/style.js +1 -1
- package/dist/components/checkbox/style.js.map +1 -1
- package/dist/components/checkbox-group/index.d.ts +3 -0
- package/dist/components/checkbox-group/index.js +27 -16
- package/dist/components/checkbox-group/index.js.map +1 -1
- package/dist/components/checkbox-group/style.js +1 -1
- package/dist/components/checkbox-group/style.js.map +1 -1
- package/dist/components/collapse/index.js.map +1 -1
- package/dist/components/context-menu/index.d.ts +10 -0
- package/dist/components/context-menu/index.js +51 -34
- package/dist/components/context-menu/index.js.map +1 -1
- package/dist/components/dialog/index.d.ts +6 -0
- package/dist/components/dialog/index.js +49 -21
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dialog/style.js +1 -1
- package/dist/components/dialog/style.js.map +1 -1
- package/dist/components/drawer/index.d.ts +22 -4
- package/dist/components/drawer/index.js +141 -110
- package/dist/components/drawer/index.js.map +1 -1
- package/dist/components/drawer/style.js +1 -1
- package/dist/components/drawer/style.js.map +1 -1
- package/dist/components/dropdown/index.d.ts +21 -1
- package/dist/components/dropdown/index.js +77 -51
- package/dist/components/dropdown/index.js.map +1 -1
- package/dist/components/editable-text/index.d.ts +471 -0
- package/dist/components/editable-text/index.js +206 -0
- package/dist/components/editable-text/index.js.map +1 -0
- package/dist/components/editable-text/style.js +6 -0
- package/dist/components/editable-text/style.js.map +1 -0
- package/dist/components/image-preview/index.js +103 -80
- package/dist/components/image-preview/index.js.map +1 -1
- package/dist/components/image-preview/style.js +1 -1
- package/dist/components/image-preview/style.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +39 -38
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.js +12 -6
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/style.js.map +1 -1
- package/dist/components/input-number/index.js +15 -15
- package/dist/components/layout/index.js +9 -9
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/style.js +1 -1
- package/dist/components/layout/style.js.map +1 -1
- package/dist/components/popover/index.d.ts +8 -2
- package/dist/components/popover/index.js +53 -55
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/index.js +22 -21
- package/dist/components/radio/index.js.map +1 -1
- package/dist/components/radio/style.js +1 -1
- package/dist/components/radio/style.js.map +1 -1
- package/dist/components/radio-group/index.d.ts +3 -0
- package/dist/components/radio-group/index.js +27 -16
- package/dist/components/radio-group/index.js.map +1 -1
- package/dist/components/radio-group/style.js +1 -1
- package/dist/components/radio-group/style.js.map +1 -1
- package/dist/components/segmented/index.d.ts +4 -1
- package/dist/components/segmented/index.js +42 -29
- package/dist/components/segmented/index.js.map +1 -1
- package/dist/components/segmented/style.js +1 -1
- package/dist/components/segmented/style.js.map +1 -1
- package/dist/components/segmented-trigger/style.js +1 -1
- package/dist/components/segmented-trigger/style.js.map +1 -1
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +38 -34
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/slider/index.js +11 -11
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/slider/style.js +1 -1
- package/dist/components/slider/style.js.map +1 -1
- package/dist/components/svg-draw-lines/index.d.ts +13 -2
- package/dist/components/svg-draw-lines/index.js +44 -31
- package/dist/components/svg-draw-lines/index.js.map +1 -1
- package/dist/components/switch/index.js +12 -12
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/switch/style.js.map +1 -1
- package/dist/components/textarea/index.js +6 -6
- package/dist/components/textarea/index.js.map +1 -1
- package/dist/components/textarea/style.js.map +1 -1
- package/dist/components/theme/index.d.ts +15 -0
- package/dist/components/theme/index.js +178 -21
- package/dist/components/theme/index.js.map +1 -1
- package/dist/components/theme/style.js +1 -1
- package/dist/components/theme/style.js.map +1 -1
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/manager.d.ts +1 -3
- package/dist/components/toast/manager.js +92 -49
- package/dist/components/toast/manager.js.map +1 -1
- package/dist/components/toast/style.js.map +1 -1
- package/dist/components/toast/toast.d.ts +37 -0
- package/dist/components/toast/toast.js +74 -21
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toast/types.d.ts +0 -4
- package/dist/components/tooltip/index.d.ts +6 -1
- package/dist/components/tooltip/index.js +21 -19
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/shared/gesture/drag-gesture.js +66 -64
- package/dist/shared/gesture/drag-gesture.js.map +1 -1
- package/dist/shared/gesture/physics.js +7 -29
- package/dist/shared/gesture/physics.js.map +1 -1
- package/dist/shared/menu-behavior/index.js +3 -4
- package/dist/shared/menu-behavior/index.js.map +1 -1
- package/dist/shared/option-portal/combobox-shell.js +48 -7
- package/dist/shared/option-portal/combobox-shell.js.map +1 -1
- package/dist/shared/option-portal/index.js +9 -9
- package/dist/shared/overlay/anchored-panel.js +36 -31
- package/dist/shared/overlay/anchored-panel.js.map +1 -1
- package/dist/shared/overlay/native-dialog-presence.js +16 -0
- package/dist/shared/overlay/native-dialog-presence.js.map +1 -1
- package/dist/shared/overlay/nested-drawer-layers.js +7 -4
- package/dist/shared/overlay/nested-drawer-layers.js.map +1 -1
- package/dist/shared/overlay/open-overlay.js +198 -0
- package/dist/shared/overlay/open-overlay.js.map +1 -0
- package/dist/shared/overlay/presence.js +19 -22
- package/dist/shared/overlay/presence.js.map +1 -1
- package/dist/shared/theme/duration.js +9 -0
- package/dist/shared/theme/duration.js.map +1 -0
- package/dist/shared/theme/reduced-motion.js +15 -0
- package/dist/shared/theme/reduced-motion.js.map +1 -0
- package/dist/shared/theme/root-sync.js +42 -0
- package/dist/shared/theme/root-sync.js.map +1 -0
- package/package.json +1 -1
- package/dist/shared/overlay/composition.js +0 -57
- package/dist/shared/overlay/composition.js.map +0 -1
- package/dist/shared/overlay/lifecycle.js +0 -41
- package/dist/shared/overlay/lifecycle.js.map +0 -1
- package/dist/vite.svg +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","names":[],"sources":["../../../src/components/dialog/style.css?inline"],"sourcesContent":["*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n:host {\n display: contents;\n}\n\ndialog {\n /* 必须显式 position: fixed:UA 的 dialog:modal 默认就是 fixed,但作者样式若出现\n position: relative(本轮单层重构曾引入)会把它覆盖回文档流——top layer 里的\n modal dialog 变成按文档流定位:渲染在页面顶部(用户看到的“残影”)且跟随页面\n 滚动(“没有固定居中”)。显式写死 fixed 防御未来任何作者类再覆盖。 */\n position: fixed;\n\n /* 本元素不参与 opacity 过渡:opacity < 1 会让 dialog 成为 backdrop root,后代\n backdrop-filter 在该过渡期间被整体禁用。玻璃卡片(.wui-dialog-body)自身\n opacity + backdrop-filter 插值过渡(own opacity 不禁用自身 blur,见下)。 */\n\n /* 进场由大到小收缩(1.
|
|
1
|
+
{"version":3,"file":"style.js","names":[],"sources":["../../../src/components/dialog/style.css?inline"],"sourcesContent":["*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n:host {\n display: contents;\n}\n\ndialog {\n /* 必须显式 position: fixed:UA 的 dialog:modal 默认就是 fixed,但作者样式若出现\n position: relative(本轮单层重构曾引入)会把它覆盖回文档流——top layer 里的\n modal dialog 变成按文档流定位:渲染在页面顶部(用户看到的“残影”)且跟随页面\n 滚动(“没有固定居中”)。显式写死 fixed 防御未来任何作者类再覆盖。 */\n position: fixed;\n\n /* 本元素不参与 opacity 过渡:opacity < 1 会让 dialog 成为 backdrop root,后代\n backdrop-filter 在该过渡期间被整体禁用。玻璃卡片(.wui-dialog-body)自身\n opacity + backdrop-filter 插值过渡(own opacity 不禁用自身 blur,见下)。 */\n\n /* 进场由大到小收缩(1.1 → 1),退场反向。取消 .is-visible 后回落到本条起点值,\n enter/exit 共用同一 token。方向与浮动面板的 --wui-scale-enter 相反,故单独成 token。 */\n transform: scale(var(--wui-dialog-scale-enter, 1.1));\n\n overflow: visible;\n\n box-sizing: border-box;\n width: min(90vw, var(--wui-dialog-width, 360px));\n max-height: 90vh;\n max-height: min(90vh, 90dvh);\n padding: 0;\n border: none;\n\n font-family: inherit;\n color: var(--wui-color-text, #1b1b1b);\n\n background: transparent;\n\n transition: transform var(--wui-duration-dialog-enter, 320ms) var(--wui-ease-dialog, cubic-bezier(0.2, 0, 0, 1));\n\n &::backdrop {\n opacity: 0;\n background: var(--wui-dialog-overlay-bg, var(--wui-color-backdrop, rgb(0 0 0 / 0.12)));\n\n /* 与卡片共用同一条 dialog 缓动:用内置 ease 会让遮罩在卡片落位后才走完大半透明度。 */\n transition: opacity var(--wui-duration-dialog-enter, 320ms) var(--wui-ease-dialog, cubic-bezier(0.2, 0, 0, 1));\n }\n}\n\n/* 面板本身是模态表面,不作为可聚焦控件;Safari showModal() 会把焦点放到 dialog,不应画 UA ring。内部控件保留 focus ring。 */\ndialog:focus,\ndialog:focus-visible {\n outline: none;\n}\n\ndialog[open].is-visible {\n transform: scale(1);\n}\n\ndialog[open].is-closing {\n pointer-events: none;\n transition-duration: var(--wui-duration-dialog-exit, 260ms);\n}\n\ndialog.is-closing::backdrop {\n transition-duration: var(--wui-duration-dialog-exit, 260ms);\n}\n\ndialog[open].is-visible::backdrop {\n opacity: 1;\n}\n\n@media (prefers-reduced-motion: reduce) {\n dialog,\n dialog[open].is-visible {\n transform: none;\n transition-duration: var(--wui-duration-feedback, 100ms);\n }\n}\n\n/* ===== 玻璃卡片主体(样式由 glass.css 提供) ===== */\n\n/* 单层玻璃:卡片自身承担背景/阴影/backdrop-filter。blur(0px) ↔ blur(4px) 平滑插值\n (none↔blur 不可插值才是当年生硬跳变的根因),own opacity 过渡不禁用自身 blur,\n 因此卡片直接 opacity + backdrop-filter 同步过渡即可,无需双层。 */\n.wui-dialog-body {\n --wui-internal-glass-shadow: var(--wui-shadow-overlay, 2px 16px 40px rgb(0 0 0 / 0.4));\n --wui-glass-corner-radius: var(--wui-radius-overlay, 28px);\n padding: var(--wui-dialog-padding, 20px 24px 24px);\n border-radius: var(--wui-radius-overlay, 28px);\n\n opacity: 0;\n background-color: var(--wui-dialog-bg, var(--wui-color-surface-overlay, rgb(246 246 246 / 0.82)));\n backdrop-filter: blur(0) saturate(160%) brightness(var(--wui-glass-brightness, 1.06));\n\n /* transition 列表需手写 -webkit-backdrop-filter:lightningcss 不会在 transition\n 的 value 内追加 -webkit 项,而 iOS 16.4 上 blur 过渡依赖它(属性前缀会自动生成)。 */\n transition:\n opacity var(--wui-duration-dialog-enter, 320ms) var(--wui-ease-dialog, cubic-bezier(0.2, 0, 0, 1)),\n -webkit-backdrop-filter var(--wui-duration-dialog-enter, 320ms) var(--wui-ease-dialog, cubic-bezier(0.2, 0, 0, 1)),\n backdrop-filter var(--wui-duration-dialog-enter, 320ms) var(--wui-ease-dialog, cubic-bezier(0.2, 0, 0, 1));\n}\n\ndialog.is-closing .wui-dialog-body {\n transition-duration: var(--wui-duration-dialog-exit, 260ms);\n}\n\ndialog[open].is-visible .wui-dialog-body {\n opacity: 1;\n backdrop-filter: blur(4px) saturate(160%) brightness(var(--wui-glass-brightness, 1.06));\n}\n\n@media (prefers-reduced-motion: reduce) {\n dialog.is-closing .wui-dialog-body,\n dialog[open].is-visible .wui-dialog-body {\n transition-duration: var(--wui-duration-feedback, 100ms);\n }\n}\n\n.title {\n margin: 0 0 var(--wui-dialog-title-gap, 16px);\n padding: 0;\n\n font-size: 18px;\n font-weight: 600;\n line-height: 1.2;\n color: var(--wui-color-text, #1b1b1b);\n}\n\n.desc {\n margin: 0 0 var(--wui-dialog-desc-gap, 24px);\n padding: 0;\n\n font-size: 14px;\n line-height: 1.5;\n color: var(--wui-color-text, #1b1b1b);\n}\n\n.wui-dialog-footer {\n display: flex;\n flex-direction: column;\n gap: var(--wui-dialog-footer-gap, 10px);\n justify-content: var(--wui-dialog-footer-justify, flex-end);\n\n & ::slotted(web-ui-button) {\n display: flex;\n width: 100%;\n }\n}\n\n:host([horizontal]) .wui-dialog-footer {\n flex-direction: row;\n gap: 12px;\n justify-content: var(--wui-dialog-footer-justify, center);\n\n & ::slotted(web-ui-button:not([full])) {\n width: auto;\n }\n\n & ::slotted(web-ui-button[full]) {\n flex: 1;\n min-width: 0;\n }\n}\n"],"mappings":""}
|
|
@@ -40,31 +40,47 @@ export declare class WebUiDrawer extends LitElement {
|
|
|
40
40
|
private readonly _scrollLock;
|
|
41
41
|
private readonly _presence;
|
|
42
42
|
private readonly _nestedLayers;
|
|
43
|
+
private readonly _overlay;
|
|
44
|
+
/** 当前开启会话的句柄;未开启时为 null。 */
|
|
45
|
+
private _handle;
|
|
43
46
|
private _dragGesture;
|
|
44
47
|
private _dragInitialOffset;
|
|
45
48
|
private _dragOffset;
|
|
46
|
-
private
|
|
49
|
+
private _cancelBaseline;
|
|
50
|
+
private _lastAxisPos;
|
|
51
|
+
private _swipeIntentDisp;
|
|
52
|
+
private _swipeCancelled;
|
|
53
|
+
private _settleFinish;
|
|
54
|
+
private _settleTimer;
|
|
47
55
|
private _dragAwaitWriteback;
|
|
48
56
|
private _dragRequestTimer;
|
|
49
57
|
private get _dragAxis();
|
|
50
58
|
private get _dragCloseSign();
|
|
51
59
|
private _measureDragSize;
|
|
60
|
+
private _dragCloseThreshold;
|
|
52
61
|
private _readDrawerInset;
|
|
53
62
|
private _dragCloseDistance;
|
|
54
|
-
private _isReducedMotion;
|
|
55
63
|
private _isDragging;
|
|
64
|
+
private _syncDragInert;
|
|
56
65
|
private _cancelDragAwait;
|
|
57
66
|
private _handleDragPointerDown;
|
|
67
|
+
private _trackSwipeCancel;
|
|
58
68
|
private _cancelActiveDrag;
|
|
59
69
|
private _applyDragOffset;
|
|
60
70
|
private _clearDragStyles;
|
|
61
|
-
private
|
|
62
|
-
private
|
|
71
|
+
private _settleToClose;
|
|
72
|
+
private _settleRebound;
|
|
73
|
+
private _settleDuration;
|
|
74
|
+
private _startSettle;
|
|
75
|
+
private _finishSettle;
|
|
76
|
+
private _abortSettle;
|
|
63
77
|
private _closeFromDrag;
|
|
64
78
|
private readonly _handleDragWritebackTimeout;
|
|
65
79
|
connectedCallback(): void;
|
|
66
80
|
firstUpdated(): void;
|
|
67
81
|
disconnectedCallback(): void;
|
|
82
|
+
/** 「重挂载恢复」的调用方一半:模块刻意不观察 DOM 连接状态。 */
|
|
83
|
+
private _reclaimIfOpen;
|
|
68
84
|
private _checkSlotContent;
|
|
69
85
|
private handleHeaderSlotChange;
|
|
70
86
|
private handleFooterSlotChange;
|
|
@@ -76,6 +92,8 @@ export declare class WebUiDrawer extends LitElement {
|
|
|
76
92
|
private readonly _closeFromUser;
|
|
77
93
|
private handleCancel;
|
|
78
94
|
private handleNativeClose;
|
|
95
|
+
private _backdropPress;
|
|
96
|
+
private handleDialogPointerDown;
|
|
79
97
|
private handleBackdropClick;
|
|
80
98
|
private emitOpenChange;
|
|
81
99
|
private _syncScrollLock;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import e from "../../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/decorate.js";
|
|
2
2
|
import "../icon/index.js";
|
|
3
|
-
import t from "../../
|
|
4
|
-
import n from "../../
|
|
3
|
+
import t from "../../assets/glass.js";
|
|
4
|
+
import n from "../../icons/generated/ooui-close.js";
|
|
5
5
|
import { normalizeLiteral as r } from "../../shared/normalize/index.js";
|
|
6
|
+
import "../button/index.js";
|
|
6
7
|
import { dispatchOpenChangeEvent as i } from "../../shared/open-state/index.js";
|
|
7
|
-
import {
|
|
8
|
+
import { defineOpenOverlay as a } from "../../shared/overlay/open-overlay.js";
|
|
8
9
|
import { defineScrollLockLease as o } from "../../shared/scroll-lock/scroll-lock.js";
|
|
9
|
-
import "
|
|
10
|
-
import { UserChangeController as
|
|
11
|
-
import { defineNativeDialogPresence as
|
|
12
|
-
import { attachDragGesture as
|
|
13
|
-
import {
|
|
14
|
-
import { defineNestedDrawerLayers as
|
|
15
|
-
import
|
|
16
|
-
import { LitElement as
|
|
17
|
-
import { customElement as
|
|
10
|
+
import { prefersReducedMotion as s } from "../../shared/theme/reduced-motion.js";
|
|
11
|
+
import { UserChangeController as c } from "../../shared/events/user-change.js";
|
|
12
|
+
import { defineNativeDialogPresence as l } from "../../shared/overlay/native-dialog-presence.js";
|
|
13
|
+
import { attachDragGesture as u } from "../../shared/gesture/drag-gesture.js";
|
|
14
|
+
import { dampOverscroll as d } from "../../shared/gesture/physics.js";
|
|
15
|
+
import { defineNestedDrawerLayers as f } from "../../shared/overlay/nested-drawer-layers.js";
|
|
16
|
+
import p from "./style.js";
|
|
17
|
+
import { LitElement as m, html as h, nothing as g, unsafeCSS as _ } from "lit";
|
|
18
|
+
import { customElement as v, property as y } from "lit/decorators.js";
|
|
18
19
|
//#region src/components/drawer/index.ts
|
|
19
|
-
var
|
|
20
|
+
var b = [
|
|
20
21
|
"right",
|
|
21
22
|
"left",
|
|
22
23
|
"top",
|
|
23
24
|
"bottom"
|
|
24
|
-
],
|
|
25
|
+
], x = .5, S = 10, C = 500, w = 50, T = 10, E = 120, D = 10, O = 180, k = 420, A = "cubic-bezier(0.32, 0.72, 0, 1)", j = "cubic-bezier(0.22, 1.3, 0.36, 1)", M = 1, N = 80;
|
|
25
26
|
if (typeof CSS < "u" && "registerProperty" in CSS) {
|
|
26
27
|
try {
|
|
27
28
|
CSS.registerProperty({
|
|
@@ -39,24 +40,35 @@ if (typeof CSS < "u" && "registerProperty" in CSS) {
|
|
|
39
40
|
initialValue: "8px"
|
|
40
41
|
});
|
|
41
42
|
} catch {}
|
|
43
|
+
try {
|
|
44
|
+
CSS.registerProperty({
|
|
45
|
+
name: "--wui-internal-settle-duration",
|
|
46
|
+
syntax: "<time>",
|
|
47
|
+
inherits: !0,
|
|
48
|
+
initialValue: "280ms"
|
|
49
|
+
});
|
|
50
|
+
} catch {}
|
|
42
51
|
}
|
|
43
|
-
var
|
|
52
|
+
var P = class extends m {
|
|
44
53
|
constructor(...e) {
|
|
45
|
-
super(...e), this.open = !1, this.noScrollLock = !1, this.noBackdropClose = !1, this.controlled = !1, this._placement = "right", this.heading = "", this.closable = !1, this.headless = !1, this.dialogLabel = "", this.draggable = !1, this._hasHeaderSlot = !1, this._hasFooterSlot = !1, this._userOpenChange = new
|
|
54
|
+
super(...e), this.open = !1, this.noScrollLock = !1, this.noBackdropClose = !1, this.controlled = !1, this._placement = "right", this.heading = "", this.closable = !1, this.headless = !1, this.dialogLabel = "", this.draggable = !1, this._hasHeaderSlot = !1, this._hasFooterSlot = !1, this._userOpenChange = new c(), this._scrollLock = o().make(), this._presence = l().make({
|
|
46
55
|
getDialog: () => this.dialog,
|
|
47
56
|
isConnected: () => this.isConnected,
|
|
48
57
|
isOpen: () => this.open
|
|
49
|
-
}), this._nestedLayers =
|
|
58
|
+
}), this._nestedLayers = f().make({
|
|
50
59
|
getDialog: () => this.dialog,
|
|
51
60
|
getPlacement: () => this._placement
|
|
52
|
-
}), this.
|
|
61
|
+
}), this._overlay = a().make({
|
|
62
|
+
requestClose: () => this._closeFromUser(),
|
|
63
|
+
isConnected: () => this.isConnected
|
|
64
|
+
}), this._handle = null, this._dragGesture = null, this._dragInitialOffset = 0, this._dragOffset = 0, this._cancelBaseline = 0, this._lastAxisPos = 0, this._swipeIntentDisp = -1, this._swipeCancelled = !1, this._settleFinish = null, this._dragAwaitWriteback = !1, this._handleDragWritebackTimeout = () => {
|
|
53
65
|
if (this._dragRequestTimer = void 0, !this._dragAwaitWriteback || !this.open || this._isDragging()) {
|
|
54
66
|
this._dragAwaitWriteback = !1;
|
|
55
67
|
return;
|
|
56
68
|
}
|
|
57
69
|
this._dragAwaitWriteback = !1;
|
|
58
70
|
let e = this.dialog;
|
|
59
|
-
e && (e.classList.add("is-visible"), this.
|
|
71
|
+
e && (e.classList.add("is-visible"), this._settleRebound(e, 0, this._dragCloseDistance(e)));
|
|
60
72
|
}, this._closeFromUser = () => {
|
|
61
73
|
if (this.open && !this._dragAwaitWriteback) {
|
|
62
74
|
if (this.controlled) {
|
|
@@ -65,17 +77,17 @@ var E = class extends h {
|
|
|
65
77
|
}
|
|
66
78
|
this._userOpenChange.mark(), this.close();
|
|
67
79
|
}
|
|
68
|
-
};
|
|
80
|
+
}, this._backdropPress = null;
|
|
69
81
|
}
|
|
70
82
|
static {
|
|
71
|
-
this.styles = [
|
|
83
|
+
this.styles = [_(t), _(p)];
|
|
72
84
|
}
|
|
73
85
|
get placement() {
|
|
74
86
|
return this._placement;
|
|
75
87
|
}
|
|
76
88
|
set placement(e) {
|
|
77
89
|
let t = this._placement;
|
|
78
|
-
this._placement = r(e,
|
|
90
|
+
this._placement = r(e, b, "right"), this.requestUpdate("placement", t);
|
|
79
91
|
}
|
|
80
92
|
get dialog() {
|
|
81
93
|
return this.shadowRoot?.querySelector("dialog") ?? null;
|
|
@@ -95,6 +107,9 @@ var E = class extends h {
|
|
|
95
107
|
let e = this.dialog;
|
|
96
108
|
return e ? this._dragAxis === "x" ? e.offsetWidth : e.offsetHeight : 0;
|
|
97
109
|
}
|
|
110
|
+
_dragCloseThreshold(e) {
|
|
111
|
+
return Math.max(e * x, S);
|
|
112
|
+
}
|
|
98
113
|
_readDrawerInset(e) {
|
|
99
114
|
let t = getComputedStyle(e).getPropertyValue("--wui-internal-drawer-inset"), n = Number.parseFloat(t);
|
|
100
115
|
return Number.isFinite(n) ? n : 0;
|
|
@@ -102,18 +117,12 @@ var E = class extends h {
|
|
|
102
117
|
_dragCloseDistance(e) {
|
|
103
118
|
return this._measureDragSize() + this._readDrawerInset(e);
|
|
104
119
|
}
|
|
105
|
-
_isReducedMotion() {
|
|
106
|
-
let e = a(this);
|
|
107
|
-
if (e) return e.isReducedMotion();
|
|
108
|
-
try {
|
|
109
|
-
return typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
110
|
-
} catch {
|
|
111
|
-
return !1;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
120
|
_isDragging() {
|
|
115
121
|
return this._dragGesture?.isDragging() ?? !1;
|
|
116
122
|
}
|
|
123
|
+
_syncDragInert() {
|
|
124
|
+
this._handle?.setInert(this._isDragging());
|
|
125
|
+
}
|
|
117
126
|
_cancelDragAwait() {
|
|
118
127
|
this._dragRequestTimer !== void 0 && (clearTimeout(this._dragRequestTimer), this._dragRequestTimer = void 0), this._dragAwaitWriteback = !1;
|
|
119
128
|
}
|
|
@@ -122,27 +131,39 @@ var E = class extends h {
|
|
|
122
131
|
let t = this.dialog;
|
|
123
132
|
if (!t || !t.classList.contains("is-visible")) return;
|
|
124
133
|
let n = getComputedStyle(t).transform, r = n && n !== "none" && typeof DOMMatrixReadOnly == "function" ? new DOMMatrixReadOnly(n)[this._dragAxis === "x" ? "m41" : "m42"] : 0;
|
|
125
|
-
this.
|
|
134
|
+
this._abortSettle(), this._cancelDragAwait(), this._dragInitialOffset = r * this._dragCloseSign, this._dragOffset = this._dragInitialOffset;
|
|
135
|
+
let i = this._dragAxis === "x" ? e.clientX : e.clientY;
|
|
136
|
+
this._cancelBaseline = i, this._lastAxisPos = i, this._swipeIntentDisp = -1, this._swipeCancelled = !1, t.classList.add("is-dragging"), this._applyDragOffset(t, this._dragOffset), this._dragGesture = u(e, {
|
|
126
137
|
axis: this._dragAxis,
|
|
138
|
+
calibrateOnFirstMove: !0,
|
|
127
139
|
onMove: (e) => {
|
|
128
|
-
let n = this._dragAxis === "x" ? e.deltaX : e.deltaY
|
|
129
|
-
this._dragOffset = d(
|
|
130
|
-
let
|
|
131
|
-
t.classList.toggle("is-drag-close", i >
|
|
140
|
+
let n = (this._dragAxis === "x" ? e.deltaX : e.deltaY) * this._dragCloseSign;
|
|
141
|
+
this._dragOffset = this._dragInitialOffset + d(n), this._trackSwipeCancel(this._dragAxis === "x" ? e.clientX : e.clientY, n);
|
|
142
|
+
let r = this._measureDragSize(), i = this._dragOffset - this._dragInitialOffset;
|
|
143
|
+
t.classList.toggle("is-drag-close", i > this._dragCloseThreshold(r)), this._applyDragOffset(t, this._dragOffset);
|
|
132
144
|
},
|
|
133
145
|
onEnd: (e) => {
|
|
134
|
-
this._dragGesture = null, t.classList.remove("is-dragging", "is-drag-close");
|
|
135
|
-
let n = this._measureDragSize(), r = (this._dragAxis === "x" ? e.velocityX : e.velocityY) * this._dragCloseSign;
|
|
136
|
-
|
|
146
|
+
this._dragGesture = null, this._syncDragInert(), t.classList.remove("is-dragging", "is-drag-close");
|
|
147
|
+
let n = this._measureDragSize(), r = (this._dragAxis === "x" ? e.velocityX : e.velocityY) * this._dragCloseSign, i = this._dragOffset - this._dragInitialOffset, a = e.duration > 0 ? i / Math.max(e.duration, w) * 1e3 : 0, o = i > 0 && a >= C && !this._swipeCancelled;
|
|
148
|
+
i > this._dragCloseThreshold(n) || o ? this._settleToClose(t, r) : this._settleRebound(t, r, this._dragOffset);
|
|
137
149
|
},
|
|
138
150
|
onCancel: () => {
|
|
139
|
-
this._dragGesture = null, t.classList.remove("is-dragging", "is-drag-close"), this.
|
|
151
|
+
this._dragGesture = null, this._syncDragInert(), t.classList.remove("is-dragging", "is-drag-close"), this._settleRebound(t, 0, this._dragOffset);
|
|
140
152
|
}
|
|
141
|
-
});
|
|
153
|
+
}), this._syncDragInert();
|
|
154
|
+
}
|
|
155
|
+
_trackSwipeCancel(e, t) {
|
|
156
|
+
let n = e - this._lastAxisPos;
|
|
157
|
+
if (this._lastAxisPos = e, (n < 0 && e > this._cancelBaseline || n > 0 && e < this._cancelBaseline) && (this._cancelBaseline = e), this._swipeIntentDisp < 0) {
|
|
158
|
+
t > 0 && (this._swipeIntentDisp = t);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
let r = (e - this._cancelBaseline) * this._dragCloseSign;
|
|
162
|
+
r > this._dragCloseThreshold(this._measureDragSize()) ? this._swipeCancelled = !1 : this._swipeIntentDisp - r >= T && (this._swipeCancelled = !0);
|
|
142
163
|
}
|
|
143
164
|
_cancelActiveDrag() {
|
|
144
165
|
if (!this._isDragging()) return;
|
|
145
|
-
this._dragGesture?.destroy(), this._dragGesture = null;
|
|
166
|
+
this._dragGesture?.destroy(), this._dragGesture = null, this._syncDragInert();
|
|
146
167
|
let e = this.dialog;
|
|
147
168
|
e && (e.classList.remove("is-dragging", "is-drag-close"), this._clearDragStyles(e));
|
|
148
169
|
}
|
|
@@ -155,68 +176,63 @@ var E = class extends h {
|
|
|
155
176
|
_clearDragStyles(e) {
|
|
156
177
|
e.style.removeProperty("transform"), e.style.removeProperty("--wui-internal-drag-backdrop-opacity");
|
|
157
178
|
}
|
|
158
|
-
|
|
179
|
+
_settleToClose(e, t) {
|
|
159
180
|
let n = this._dragOffset;
|
|
160
181
|
this._dragOffset = 0;
|
|
161
|
-
let r = this.
|
|
162
|
-
|
|
163
|
-
let t = i;
|
|
164
|
-
e.style.transform = this._dragAxis === "x" ? `translateX(${t * r}px)` : `translateY(${t * r}px)`, e.style.setProperty("--wui-internal-drag-backdrop-opacity", "0");
|
|
165
|
-
} else e.classList.remove("is-visible"), this._clearDragStyles(e);
|
|
166
|
-
this._closeFromDrag();
|
|
182
|
+
let r = this._dragCloseDistance(e), i = () => {
|
|
183
|
+
this.controlled ? this._applyDragOffset(e, r) : (e.classList.remove("is-visible"), this._clearDragStyles(e)), this._closeFromDrag();
|
|
167
184
|
};
|
|
168
|
-
if (this
|
|
169
|
-
|
|
185
|
+
if (s(this) || Math.abs(r - n) < 1) {
|
|
186
|
+
e.classList.remove("is-dragging"), i();
|
|
170
187
|
return;
|
|
171
188
|
}
|
|
172
|
-
|
|
173
|
-
transform: this._dragAxis === "x" ? `translateX(${e * r}px)` : `translateY(${e * r}px)`,
|
|
174
|
-
"--wui-internal-drag-backdrop-opacity": String(Math.max(0, 1 - e / a))
|
|
175
|
-
})), l = (s.length - 1) * T, d = e.animate(c, {
|
|
176
|
-
duration: l,
|
|
177
|
-
easing: "linear",
|
|
178
|
-
fill: "both"
|
|
179
|
-
});
|
|
180
|
-
d.onfinish = () => {
|
|
181
|
-
o(), d.cancel();
|
|
182
|
-
};
|
|
189
|
+
this._startSettle(e, r, 0, this._settleDuration(Math.abs(r - n), t), A, i);
|
|
183
190
|
}
|
|
184
|
-
|
|
191
|
+
_settleRebound(e, t, n) {
|
|
185
192
|
this._dragOffset = 0;
|
|
186
193
|
let r = () => {
|
|
187
|
-
|
|
188
|
-
}, i = (t) => {
|
|
189
|
-
this._dragAnimation = null, e.isConnected && (t ? this._clearDragStyles(e) : r(), e.offsetWidth, e.classList.remove("is-dragging"));
|
|
194
|
+
this._clearDragStyles(e);
|
|
190
195
|
};
|
|
191
|
-
if (this
|
|
192
|
-
e.classList.
|
|
196
|
+
if (s(this) || Math.abs(n) < 1) {
|
|
197
|
+
e.classList.remove("is-dragging"), r();
|
|
193
198
|
return;
|
|
194
199
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
200
|
+
this._startSettle(e, 0, 1, this._settleDuration(Math.abs(n), t), j, r);
|
|
201
|
+
}
|
|
202
|
+
_settleDuration(e, t) {
|
|
203
|
+
let n = e / Math.max(Math.abs(t), M) * 1e3;
|
|
204
|
+
return Math.min(k, Math.max(O, n));
|
|
205
|
+
}
|
|
206
|
+
_startSettle(e, t, n, r, i, a) {
|
|
207
|
+
this._abortSettle();
|
|
208
|
+
let o = this._dragCloseSign;
|
|
209
|
+
e.style.setProperty("--wui-internal-settle-duration", `${r}ms`), e.style.setProperty("--wui-internal-settle-easing", i), e.style.transform = this._dragAxis === "x" ? `translateX(${t * o}px)` : `translateY(${t * o}px)`, e.style.setProperty("--wui-internal-drag-backdrop-opacity", String(n)), e.classList.add("is-settling"), e.classList.remove("is-dragging"), this._settleFinish = a, this._settleTimer = setTimeout(() => this._finishSettle(), r + N);
|
|
210
|
+
}
|
|
211
|
+
_finishSettle() {
|
|
212
|
+
let e = this._settleFinish;
|
|
213
|
+
e && (this._abortSettle(), e());
|
|
214
|
+
}
|
|
215
|
+
_abortSettle() {
|
|
216
|
+
this._settleFinish = null, this._settleTimer !== void 0 && (clearTimeout(this._settleTimer), this._settleTimer = void 0);
|
|
217
|
+
let e = this.dialog;
|
|
218
|
+
e && (e.classList.remove("is-settling"), e.style.removeProperty("--wui-internal-settle-duration"), e.style.removeProperty("--wui-internal-settle-easing"));
|
|
208
219
|
}
|
|
209
220
|
_closeFromDrag() {
|
|
210
|
-
this._closeFromUser(), this.controlled && (this._dragAwaitWriteback = !0, this._dragRequestTimer = setTimeout(this._handleDragWritebackTimeout,
|
|
221
|
+
this._closeFromUser(), this.controlled && (this._dragAwaitWriteback = !0, this._dragRequestTimer = setTimeout(this._handleDragWritebackTimeout, E));
|
|
211
222
|
}
|
|
212
223
|
connectedCallback() {
|
|
213
|
-
super.connectedCallback(), this._hasHeaderSlot = Array.from(this.children).some((e) => e.getAttribute?.("slot") === "header"), this._hasFooterSlot = Array.from(this.children).some((e) => e.getAttribute?.("slot") === "footer");
|
|
224
|
+
super.connectedCallback(), this._hasHeaderSlot = Array.from(this.children).some((e) => e.getAttribute?.("slot") === "header"), this._hasFooterSlot = Array.from(this.children).some((e) => e.getAttribute?.("slot") === "footer"), this._presence.reconcile(), this.open && this._nestedLayers.register(), this._syncScrollLock(), this._reclaimIfOpen();
|
|
214
225
|
}
|
|
215
226
|
firstUpdated() {
|
|
216
227
|
this._checkSlotContent("footer");
|
|
217
228
|
}
|
|
218
229
|
disconnectedCallback() {
|
|
219
|
-
super.disconnectedCallback(), this._nestedLayers.dispose(), this._dragGesture?.destroy(), this._dragGesture = null, this._presence.dispose(), this._scrollLock.release(), this.
|
|
230
|
+
super.disconnectedCallback(), this._nestedLayers.dispose(), this._dragGesture?.destroy(), this._dragGesture = null, this._presence.dispose(), this._scrollLock.release(), this._handle?.release(), this._handle = null, this._abortSettle(), this._cancelDragAwait();
|
|
231
|
+
}
|
|
232
|
+
_reclaimIfOpen() {
|
|
233
|
+
if (!this.open || this._handle) return;
|
|
234
|
+
let e = this.dialog;
|
|
235
|
+
e && (this._handle = this._overlay.claim(e, { ancestryFrom: this }), this._syncDragInert());
|
|
220
236
|
}
|
|
221
237
|
_checkSlotContent(e) {
|
|
222
238
|
let t = this.shadowRoot?.querySelector(`slot[name="${e}"]`);
|
|
@@ -238,22 +254,27 @@ var E = class extends h {
|
|
|
238
254
|
if (this._isDragging() && !this.open && this._cancelActiveDrag(), this._userOpenChange.consume() && this.emitOpenChange(), this._dragAwaitWriteback) {
|
|
239
255
|
this._cancelDragAwait();
|
|
240
256
|
let e = this.dialog;
|
|
241
|
-
e && !this.open ? (e.classList.remove("is-visible"), this._clearDragStyles(e)) : e && this.open && this.
|
|
257
|
+
e && !this.open ? (e.classList.remove("is-visible"), this._clearDragStyles(e)) : e && this.open && this._settleRebound(e, 0, this._dragCloseDistance(e));
|
|
242
258
|
}
|
|
243
|
-
if (!this.open &&
|
|
259
|
+
if (!this.open && !this._isDragging()) {
|
|
260
|
+
this._abortSettle();
|
|
244
261
|
let e = this.dialog;
|
|
245
262
|
e && this._clearDragStyles(e);
|
|
246
263
|
}
|
|
247
|
-
this._presence.sync(this.open), this.open
|
|
264
|
+
if (this._presence.sync(this.open), this.open) {
|
|
265
|
+
this._nestedLayers.register();
|
|
266
|
+
let e = this.dialog;
|
|
267
|
+
e && (this._handle?.release(), this._handle = this._overlay.claim(e, { ancestryFrom: this }), this._syncDragInert());
|
|
268
|
+
} else this._nestedLayers.unregister(), this._handle?.release(), this._handle = null;
|
|
248
269
|
}
|
|
249
270
|
(e.has("open") || e.has("noScrollLock")) && this._syncScrollLock();
|
|
250
271
|
}
|
|
251
272
|
}
|
|
252
273
|
handleTransitionEnd(e) {
|
|
253
|
-
this._presence.handleTransitionEnd(e);
|
|
274
|
+
e.target === e.currentTarget && (this._presence.handleTransitionEnd(e), e.propertyName === "transform" && this._finishSettle());
|
|
254
275
|
}
|
|
255
276
|
handleKeydown(e) {
|
|
256
|
-
if (e.key !== "Escape") return;
|
|
277
|
+
if (e.key !== "Escape" || e.defaultPrevented) return;
|
|
257
278
|
let t = e.composedPath(), n = t.indexOf(e.currentTarget);
|
|
258
279
|
if (!(n > 0 && t.slice(0, n).some((e) => e instanceof HTMLDialogElement))) {
|
|
259
280
|
if (this._isDragging()) {
|
|
@@ -289,8 +310,17 @@ var E = class extends h {
|
|
|
289
310
|
this._userOpenChange.mark(), this.open = !1;
|
|
290
311
|
}
|
|
291
312
|
}
|
|
313
|
+
handleDialogPointerDown(e) {
|
|
314
|
+
this._backdropPress = {
|
|
315
|
+
onMask: e.target === e.currentTarget,
|
|
316
|
+
x: e.clientX,
|
|
317
|
+
y: e.clientY
|
|
318
|
+
};
|
|
319
|
+
}
|
|
292
320
|
handleBackdropClick(e) {
|
|
293
|
-
e.target
|
|
321
|
+
if (e.target !== e.currentTarget || this.noBackdropClose || this._isDragging() || e.detail === 0) return;
|
|
322
|
+
let t = this._backdropPress;
|
|
323
|
+
this._backdropPress = null, t && t.onMask && (Math.hypot(e.clientX - t.x, e.clientY - t.y) > D || this._closeFromUser());
|
|
294
324
|
}
|
|
295
325
|
emitOpenChange(e = this.open) {
|
|
296
326
|
i(this, e);
|
|
@@ -299,26 +329,27 @@ var E = class extends h {
|
|
|
299
329
|
this._scrollLock.sync(e && !this.noScrollLock);
|
|
300
330
|
}
|
|
301
331
|
render() {
|
|
302
|
-
let e = this._hasHeaderSlot || !!this.heading,
|
|
332
|
+
let e = this._hasHeaderSlot || !!this.heading, t = this.dialogLabel.trim(), r = !t && !this.headless && e ? "wui-drawer-heading" : g, i = this.draggable ? h`
|
|
303
333
|
<div class="wui-drawer-drag-zone" @pointerdown=${this._handleDragPointerDown}>
|
|
304
334
|
<div class="wui-drawer-drag-bar"></div>
|
|
305
335
|
</div>
|
|
306
|
-
` :
|
|
307
|
-
return
|
|
336
|
+
` : g;
|
|
337
|
+
return h`
|
|
308
338
|
<dialog
|
|
309
|
-
aria-label=${
|
|
339
|
+
aria-label=${t || g}
|
|
310
340
|
aria-labelledby=${r}
|
|
311
341
|
@cancel=${this.handleCancel}
|
|
312
342
|
@close=${this.handleNativeClose}
|
|
313
343
|
@click=${this.handleBackdropClick}
|
|
344
|
+
@pointerdown=${this.handleDialogPointerDown}
|
|
314
345
|
@keydown=${this.handleKeydown}
|
|
315
346
|
@transitionend=${this.handleTransitionEnd}
|
|
316
347
|
>
|
|
317
|
-
${this.headless ?
|
|
348
|
+
${this.headless ? h`<slot></slot>${i}` : h`
|
|
318
349
|
<div class="wui-drawer-body wui-glass">
|
|
319
350
|
<div class="wui-drawer-header" id="wui-drawer-heading" ?hidden=${!e}>
|
|
320
351
|
<slot name="header" @slotchange=${this.handleHeaderSlotChange}>
|
|
321
|
-
${this.heading ?
|
|
352
|
+
${this.heading ? h`<span class="wui-drawer-heading">${this.heading}</span>` : g}
|
|
322
353
|
</slot>
|
|
323
354
|
</div>
|
|
324
355
|
<div class="wui-drawer-content">
|
|
@@ -328,7 +359,7 @@ var E = class extends h {
|
|
|
328
359
|
<slot name="footer" @slotchange=${this.handleFooterSlotChange}></slot>
|
|
329
360
|
</div>
|
|
330
361
|
</div>
|
|
331
|
-
${this.closable ?
|
|
362
|
+
${this.closable ? h`
|
|
332
363
|
<web-ui-button
|
|
333
364
|
class="wui-drawer-close"
|
|
334
365
|
@click=${this._closeFromUser}
|
|
@@ -337,46 +368,46 @@ var E = class extends h {
|
|
|
337
368
|
icon
|
|
338
369
|
size="26"
|
|
339
370
|
>
|
|
340
|
-
<web-ui-icon size="14" .icon=${
|
|
371
|
+
<web-ui-icon size="14" .icon=${n}></web-ui-icon>
|
|
341
372
|
</web-ui-button>
|
|
342
|
-
` :
|
|
373
|
+
` : g}
|
|
343
374
|
${i}
|
|
344
375
|
`}
|
|
345
376
|
</dialog>
|
|
346
377
|
`;
|
|
347
378
|
}
|
|
348
379
|
};
|
|
349
|
-
e([
|
|
380
|
+
e([y({
|
|
350
381
|
type: Boolean,
|
|
351
382
|
reflect: !0
|
|
352
|
-
})],
|
|
383
|
+
})], P.prototype, "open", void 0), e([y({
|
|
353
384
|
type: Boolean,
|
|
354
385
|
reflect: !0,
|
|
355
386
|
attribute: "no-scroll-lock"
|
|
356
|
-
})],
|
|
387
|
+
})], P.prototype, "noScrollLock", void 0), e([y({
|
|
357
388
|
type: Boolean,
|
|
358
389
|
reflect: !0,
|
|
359
390
|
attribute: "no-backdrop-close"
|
|
360
|
-
})],
|
|
391
|
+
})], P.prototype, "noBackdropClose", void 0), e([y({
|
|
361
392
|
type: Boolean,
|
|
362
393
|
reflect: !0
|
|
363
|
-
})],
|
|
394
|
+
})], P.prototype, "controlled", void 0), e([y({
|
|
364
395
|
type: String,
|
|
365
396
|
reflect: !0
|
|
366
|
-
})],
|
|
397
|
+
})], P.prototype, "placement", null), e([y({ type: String })], P.prototype, "heading", void 0), e([y({
|
|
367
398
|
type: Boolean,
|
|
368
399
|
reflect: !0
|
|
369
|
-
})],
|
|
400
|
+
})], P.prototype, "closable", void 0), e([y({
|
|
370
401
|
type: Boolean,
|
|
371
402
|
reflect: !0
|
|
372
|
-
})],
|
|
403
|
+
})], P.prototype, "headless", void 0), e([y({
|
|
373
404
|
type: String,
|
|
374
405
|
attribute: "dialog-label"
|
|
375
|
-
})],
|
|
406
|
+
})], P.prototype, "dialogLabel", void 0), e([y({
|
|
376
407
|
type: Boolean,
|
|
377
408
|
reflect: !0
|
|
378
|
-
})],
|
|
409
|
+
})], P.prototype, "draggable", void 0), P = e([v("web-ui-drawer")], P);
|
|
379
410
|
//#endregion
|
|
380
|
-
export {
|
|
411
|
+
export { P as WebUiDrawer };
|
|
381
412
|
|
|
382
413
|
//# sourceMappingURL=index.js.map
|