@editora/ui-core 0.1.13 → 0.1.15
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.md +95 -5
- package/dist/color-picker.cjs.js +1 -1
- package/dist/color-picker.esm.js +2 -1
- package/dist/components/date-time-utils.d.ts.map +1 -1
- package/dist/components/ui-context-menu.d.ts +6 -0
- package/dist/components/ui-context-menu.d.ts.map +1 -1
- package/dist/components/ui-dialog.d.ts.map +1 -1
- package/dist/components/ui-floating-toolbar.d.ts +3 -0
- package/dist/components/ui-floating-toolbar.d.ts.map +1 -1
- package/dist/components/ui-gantt.d.ts +30 -1
- package/dist/components/ui-gantt.d.ts.map +1 -1
- package/dist/components/ui-hover-card.d.ts +3 -0
- package/dist/components/ui-hover-card.d.ts.map +1 -1
- package/dist/components/ui-positioner.d.ts.map +1 -1
- package/dist/components/ui-sortable.d.ts.map +1 -1
- package/dist/context-menu.cjs.js +12 -12
- package/dist/context-menu.esm.js +159 -132
- package/dist/date-field.cjs.js +1 -1
- package/dist/date-field.esm.js +2 -1
- package/dist/date-picker.cjs.js +1 -1
- package/dist/date-picker.esm.js +2 -1
- package/dist/date-range-picker.cjs.js +1 -1
- package/dist/date-range-picker.esm.js +2 -1
- package/dist/date-range-time-picker.cjs.js +2 -2
- package/dist/date-range-time-picker.esm.js +2 -1
- package/dist/date-time-picker.cjs.js +2 -2
- package/dist/date-time-picker.esm.js +2 -1
- package/dist/date-time-utils-66480de4.js +1 -0
- package/dist/date-time-utils-a2c7af25.mjs +307 -0
- package/dist/dialog.cjs.js +11 -11
- package/dist/dialog.esm.js +2 -8
- package/dist/floating-toolbar.cjs.js +4 -4
- package/dist/floating-toolbar.esm.js +52 -25
- package/dist/gantt.cjs.js +656 -74
- package/dist/gantt.esm.js +1050 -100
- package/dist/hover-card.cjs.js +4 -4
- package/dist/hover-card.esm.js +61 -38
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +158 -146
- package/dist/menu.cjs.js +1 -1
- package/dist/menu.esm.js +2 -2
- package/dist/menubar.cjs.js +1 -1
- package/dist/menubar.esm.js +2 -2
- package/dist/popover.cjs.js +1 -1
- package/dist/popover.esm.js +2 -2
- package/dist/portal-c69756c0.js +1 -0
- package/dist/portal-fe73e5cc.mjs +123 -0
- package/dist/portal.d.ts +29 -3
- package/dist/portal.d.ts.map +1 -1
- package/dist/positioner-33529bb8.js +1 -0
- package/dist/positioner-e9770c66.mjs +582 -0
- package/dist/positioner.cjs.js +2 -2
- package/dist/positioner.esm.js +36 -26
- package/dist/primitives/positioner.d.ts +199 -1
- package/dist/primitives/positioner.d.ts.map +1 -1
- package/dist/{runtime-864efe2f.mjs → runtime-161f68a2.mjs} +24 -23
- package/dist/runtime-3f13807b.js +1 -0
- package/dist/runtime.cjs.js +1 -1
- package/dist/runtime.d.ts +2 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.esm.js +39 -24
- package/dist/sortable.cjs.js +1 -1
- package/dist/sortable.esm.js +49 -48
- package/dist/split-button.cjs.js +1 -1
- package/dist/split-button.esm.js +2 -2
- package/dist/time-field.cjs.js +1 -1
- package/dist/time-field.esm.js +14 -13
- package/dist/time-picker.cjs.js +1 -1
- package/dist/time-picker.esm.js +2 -1
- package/dist/tooltip.cjs.js +1 -1
- package/dist/tooltip.esm.js +2 -1
- package/package.json +1 -1
- package/dist/date-time-utils-378ecc21.js +0 -1
- package/dist/date-time-utils-a8b17ea7.mjs +0 -299
- package/dist/portal-9060f7a6.mjs +0 -114
- package/dist/portal-d9bae456.js +0 -1
- package/dist/positioner-16f3cca1.mjs +0 -132
- package/dist/positioner-43b1c75a.js +0 -1
- package/dist/runtime-668914fe.js +0 -1
package/dist/positioner.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { E as a } from "./ElementBase-909688f3.mjs";
|
|
2
|
+
import { l as h } from "./positioner-e9770c66.mjs";
|
|
3
|
+
const c = `
|
|
4
4
|
:host {
|
|
5
5
|
display: contents;
|
|
6
6
|
color-scheme: light dark;
|
|
7
7
|
}
|
|
8
8
|
`;
|
|
9
|
-
function
|
|
9
|
+
function r(s, t = 0) {
|
|
10
10
|
const e = Number(s);
|
|
11
11
|
return Number.isFinite(e) ? e : t;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function o(s) {
|
|
14
14
|
if (s == null)
|
|
15
15
|
return !1;
|
|
16
16
|
const t = s.toLowerCase();
|
|
@@ -32,10 +32,10 @@ function u(s) {
|
|
|
32
32
|
"left-end"
|
|
33
33
|
])).has(s) ? s : "bottom";
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function d(s) {
|
|
36
36
|
return s === "absolute" ? "absolute" : "fixed";
|
|
37
37
|
}
|
|
38
|
-
class
|
|
38
|
+
class f extends a {
|
|
39
39
|
constructor() {
|
|
40
40
|
super(...arguments), this._positioner = null, this._observer = null;
|
|
41
41
|
}
|
|
@@ -50,6 +50,11 @@ class d extends c {
|
|
|
50
50
|
"shift",
|
|
51
51
|
"match-width",
|
|
52
52
|
"fit-viewport",
|
|
53
|
+
"auto-placement",
|
|
54
|
+
"hide-when-detached",
|
|
55
|
+
"inline",
|
|
56
|
+
"boundary-padding",
|
|
57
|
+
"dir",
|
|
53
58
|
"anchor",
|
|
54
59
|
"headless"
|
|
55
60
|
];
|
|
@@ -61,8 +66,8 @@ class d extends c {
|
|
|
61
66
|
var t;
|
|
62
67
|
(t = this._observer) == null || t.disconnect(), this._observer = null, this._destroyPositioner(), super.disconnectedCallback();
|
|
63
68
|
}
|
|
64
|
-
attributeChangedCallback(t, e,
|
|
65
|
-
e !==
|
|
69
|
+
attributeChangedCallback(t, e, i) {
|
|
70
|
+
e !== i && this._syncPositioner();
|
|
66
71
|
}
|
|
67
72
|
open() {
|
|
68
73
|
this.setAttribute("open", "");
|
|
@@ -81,12 +86,12 @@ class d extends c {
|
|
|
81
86
|
_resolveAnchor() {
|
|
82
87
|
const t = this.getAttribute("anchor");
|
|
83
88
|
if (t) {
|
|
84
|
-
const
|
|
85
|
-
if (r instanceof HTMLElement)
|
|
86
|
-
return r;
|
|
87
|
-
const n = document.querySelector(t);
|
|
89
|
+
const i = this.getRootNode(), n = i instanceof ShadowRoot || i instanceof Document ? i.querySelector(t) : null;
|
|
88
90
|
if (n instanceof HTMLElement)
|
|
89
91
|
return n;
|
|
92
|
+
const l = document.querySelector(t);
|
|
93
|
+
if (l instanceof HTMLElement)
|
|
94
|
+
return l;
|
|
90
95
|
}
|
|
91
96
|
const e = this.querySelector('[slot="anchor"]');
|
|
92
97
|
return e instanceof HTMLElement ? e : null;
|
|
@@ -107,31 +112,36 @@ class d extends c {
|
|
|
107
112
|
this._destroyPositioner();
|
|
108
113
|
return;
|
|
109
114
|
}
|
|
110
|
-
this._destroyPositioner(), this._positioner =
|
|
115
|
+
this._destroyPositioner(), this._positioner = h({
|
|
111
116
|
anchor: t,
|
|
112
117
|
floating: e,
|
|
113
118
|
placement: u(this.getAttribute("placement")),
|
|
114
|
-
strategy:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
strategy: d(this.getAttribute("strategy")),
|
|
120
|
+
dir: this.getAttribute("dir") === "rtl" ? "rtl" : "ltr",
|
|
121
|
+
offset: r(this.getAttribute("offset"), 8),
|
|
122
|
+
crossOffset: r(this.getAttribute("cross-offset"), 0),
|
|
123
|
+
flip: !this.hasAttribute("flip") || o(this.getAttribute("flip")),
|
|
124
|
+
shift: !this.hasAttribute("shift") || o(this.getAttribute("shift")),
|
|
125
|
+
matchWidth: o(this.getAttribute("match-width")),
|
|
126
|
+
fitViewport: o(this.getAttribute("fit-viewport")),
|
|
127
|
+
autoPlacement: o(this.getAttribute("auto-placement")),
|
|
128
|
+
hideWhenDetached: o(this.getAttribute("hide-when-detached")),
|
|
129
|
+
inline: o(this.getAttribute("inline")),
|
|
130
|
+
boundaryPadding: r(this.getAttribute("boundary-padding"), 4),
|
|
121
131
|
arrow: this.querySelector('[slot="arrow"], .arrow'),
|
|
122
|
-
onUpdate: (
|
|
123
|
-
this.dispatchEvent(new CustomEvent("position-change", { detail:
|
|
132
|
+
onUpdate: (i) => {
|
|
133
|
+
this.dispatchEvent(new CustomEvent("position-change", { detail: i, bubbles: !0, composed: !0 }));
|
|
124
134
|
}
|
|
125
135
|
});
|
|
126
136
|
}
|
|
127
137
|
render() {
|
|
128
|
-
this.setContent(`<style>${
|
|
138
|
+
this.setContent(`<style>${c}</style><slot name="anchor"></slot><slot name="content"></slot><slot></slot>`);
|
|
129
139
|
}
|
|
130
140
|
shouldRenderOnAttributeChange() {
|
|
131
141
|
return !1;
|
|
132
142
|
}
|
|
133
143
|
}
|
|
134
|
-
typeof customElements < "u" && !customElements.get("ui-positioner") && customElements.define("ui-positioner",
|
|
144
|
+
typeof customElements < "u" && !customElements.get("ui-positioner") && customElements.define("ui-positioner", f);
|
|
135
145
|
export {
|
|
136
|
-
|
|
146
|
+
f as UIPositioner
|
|
137
147
|
};
|
|
@@ -1,21 +1,139 @@
|
|
|
1
1
|
export type PositionerPlacement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
2
2
|
export type PositionerStrategy = 'absolute' | 'fixed';
|
|
3
3
|
export type PositionerSticky = 'partial' | 'always' | 'never';
|
|
4
|
-
export type
|
|
4
|
+
export type PositionerSide = 'top' | 'right' | 'bottom' | 'left';
|
|
5
|
+
export type PositionerAlign = 'center' | 'start' | 'end';
|
|
6
|
+
export type PositionerVirtualElement = {
|
|
5
7
|
getBoundingClientRect: () => DOMRect;
|
|
8
|
+
getClientRects?: () => DOMRectList | DOMRect[];
|
|
9
|
+
contextElement?: Element;
|
|
6
10
|
};
|
|
11
|
+
export type PositionerAnchor = HTMLElement | DOMRect | PositionerVirtualElement;
|
|
12
|
+
export interface PositionerMiddlewareData {
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
offset?: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
};
|
|
18
|
+
flip?: {
|
|
19
|
+
overflows: Array<{
|
|
20
|
+
placement: PositionerPlacement;
|
|
21
|
+
overflow: PositionerOverflow;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
autoPlacement?: {
|
|
25
|
+
index: number;
|
|
26
|
+
overflows: Array<{
|
|
27
|
+
placement: PositionerPlacement;
|
|
28
|
+
overflow: PositionerOverflow;
|
|
29
|
+
}>;
|
|
30
|
+
};
|
|
31
|
+
shift?: {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
};
|
|
35
|
+
arrow?: {
|
|
36
|
+
x?: number;
|
|
37
|
+
y?: number;
|
|
38
|
+
centerOffset: number;
|
|
39
|
+
};
|
|
40
|
+
size?: {
|
|
41
|
+
availableWidth: number;
|
|
42
|
+
availableHeight: number;
|
|
43
|
+
};
|
|
44
|
+
hide?: {
|
|
45
|
+
referenceHidden: boolean;
|
|
46
|
+
escaped: boolean;
|
|
47
|
+
referenceHiddenOffsets: PositionerOverflow;
|
|
48
|
+
escapedOffsets: PositionerOverflow;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
7
51
|
export interface PositionerState {
|
|
8
52
|
x: number;
|
|
9
53
|
y: number;
|
|
10
54
|
placement: PositionerPlacement;
|
|
55
|
+
strategy?: PositionerStrategy;
|
|
11
56
|
availableWidth: number;
|
|
12
57
|
availableHeight: number;
|
|
58
|
+
middlewareData?: PositionerMiddlewareData;
|
|
59
|
+
referenceHidden?: boolean;
|
|
60
|
+
escaped?: boolean;
|
|
61
|
+
rects?: PositionerRects;
|
|
62
|
+
}
|
|
63
|
+
export type PositionerOverflow = {
|
|
64
|
+
top: number;
|
|
65
|
+
right: number;
|
|
66
|
+
bottom: number;
|
|
67
|
+
left: number;
|
|
68
|
+
};
|
|
69
|
+
export type PositionerRects = {
|
|
70
|
+
reference: DOMRect;
|
|
71
|
+
floating: DOMRect;
|
|
72
|
+
};
|
|
73
|
+
export type PositionerBoundaryRect = {
|
|
74
|
+
top: number;
|
|
75
|
+
left: number;
|
|
76
|
+
right: number;
|
|
77
|
+
bottom: number;
|
|
78
|
+
width: number;
|
|
79
|
+
height: number;
|
|
80
|
+
};
|
|
81
|
+
export interface PositionerPlatform {
|
|
82
|
+
getElementRects?: (data: {
|
|
83
|
+
anchor: PositionerAnchor;
|
|
84
|
+
floating: HTMLElement | DOMRect;
|
|
85
|
+
placement: PositionerPlacement;
|
|
86
|
+
inline: boolean;
|
|
87
|
+
}) => PositionerRects;
|
|
88
|
+
getClientRects?: (anchor: PositionerAnchor) => DOMRect[] | DOMRectList;
|
|
89
|
+
getClippingRect?: (data: {
|
|
90
|
+
anchor: PositionerAnchor;
|
|
91
|
+
floating: HTMLElement | DOMRect;
|
|
92
|
+
boundary: HTMLElement | null;
|
|
93
|
+
}) => PositionerBoundaryRect;
|
|
94
|
+
}
|
|
95
|
+
export interface PositionerMiddlewareState {
|
|
96
|
+
x: number;
|
|
97
|
+
y: number;
|
|
98
|
+
initialPlacement: PositionerPlacement;
|
|
99
|
+
placement: PositionerPlacement;
|
|
100
|
+
strategy: PositionerStrategy;
|
|
101
|
+
rects: PositionerRects;
|
|
102
|
+
elements: {
|
|
103
|
+
anchor: PositionerAnchor;
|
|
104
|
+
floating: HTMLElement | DOMRect;
|
|
105
|
+
};
|
|
106
|
+
boundary: ViewportRect;
|
|
107
|
+
padding: number;
|
|
108
|
+
rtl: boolean;
|
|
109
|
+
middlewareData: PositionerMiddlewareData;
|
|
110
|
+
getRects(placement: PositionerPlacement): PositionerRects;
|
|
111
|
+
getAnchorRect(placement: PositionerPlacement): DOMRect;
|
|
112
|
+
getCoords(placement: PositionerPlacement, referenceRect?: DOMRect): {
|
|
113
|
+
x: number;
|
|
114
|
+
y: number;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
export interface PositionerMiddlewareReturn {
|
|
118
|
+
x?: number;
|
|
119
|
+
y?: number;
|
|
120
|
+
placement?: PositionerPlacement;
|
|
121
|
+
data?: unknown;
|
|
122
|
+
reset?: boolean | {
|
|
123
|
+
placement?: PositionerPlacement;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export interface PositionerMiddleware {
|
|
127
|
+
name: string;
|
|
128
|
+
options?: unknown;
|
|
129
|
+
fn(state: PositionerMiddlewareState): PositionerMiddlewareReturn | void;
|
|
13
130
|
}
|
|
14
131
|
export interface PositionerOptions {
|
|
15
132
|
anchor: PositionerAnchor;
|
|
16
133
|
floating: HTMLElement;
|
|
17
134
|
placement?: PositionerPlacement;
|
|
18
135
|
strategy?: PositionerStrategy;
|
|
136
|
+
dir?: 'ltr' | 'rtl';
|
|
19
137
|
offset?: number;
|
|
20
138
|
crossOffset?: number;
|
|
21
139
|
flip?: boolean;
|
|
@@ -23,18 +141,98 @@ export interface PositionerOptions {
|
|
|
23
141
|
matchWidth?: boolean;
|
|
24
142
|
fitViewport?: boolean;
|
|
25
143
|
arrow?: HTMLElement | null;
|
|
144
|
+
arrowPadding?: number;
|
|
26
145
|
boundary?: HTMLElement | null;
|
|
146
|
+
boundaryPadding?: number;
|
|
147
|
+
autoPlacement?: boolean;
|
|
148
|
+
allowedPlacements?: PositionerPlacement[];
|
|
149
|
+
fallbackPlacements?: PositionerPlacement[];
|
|
150
|
+
inline?: boolean;
|
|
151
|
+
hideWhenDetached?: boolean;
|
|
152
|
+
platform?: PositionerPlatform;
|
|
153
|
+
middleware?: PositionerMiddleware[];
|
|
27
154
|
sticky?: PositionerSticky;
|
|
28
155
|
observeWindowResize?: boolean;
|
|
29
156
|
observeScroll?: boolean;
|
|
157
|
+
observeAncestorScroll?: boolean;
|
|
158
|
+
observeAncestorResize?: boolean;
|
|
159
|
+
observeLayoutShift?: boolean;
|
|
30
160
|
observeAnchorResize?: boolean;
|
|
31
161
|
observeFloatingResize?: boolean;
|
|
162
|
+
animationFrame?: boolean;
|
|
32
163
|
onUpdate?: (data: PositionerState) => void;
|
|
33
164
|
}
|
|
34
165
|
export interface PositionerHandle {
|
|
35
166
|
update(): PositionerState;
|
|
36
167
|
destroy(): void;
|
|
37
168
|
}
|
|
169
|
+
export interface PositionerAutoUpdateOptions {
|
|
170
|
+
observeWindowResize?: boolean;
|
|
171
|
+
observeScroll?: boolean;
|
|
172
|
+
observeAncestorScroll?: boolean;
|
|
173
|
+
observeAncestorResize?: boolean;
|
|
174
|
+
observeLayoutShift?: boolean;
|
|
175
|
+
observeAnchorResize?: boolean;
|
|
176
|
+
observeFloatingResize?: boolean;
|
|
177
|
+
animationFrame?: boolean;
|
|
178
|
+
}
|
|
179
|
+
type ViewportRect = PositionerBoundaryRect;
|
|
180
|
+
type OffsetMiddlewareOptions = number | {
|
|
181
|
+
mainAxis?: number;
|
|
182
|
+
crossAxis?: number;
|
|
183
|
+
};
|
|
184
|
+
type ShiftMiddlewareOptions = {
|
|
185
|
+
padding?: number;
|
|
186
|
+
mainAxis?: boolean;
|
|
187
|
+
crossAxis?: boolean;
|
|
188
|
+
};
|
|
189
|
+
type FlipMiddlewareOptions = {
|
|
190
|
+
padding?: number;
|
|
191
|
+
fallbackPlacements?: PositionerPlacement[];
|
|
192
|
+
};
|
|
193
|
+
type AutoPlacementMiddlewareOptions = {
|
|
194
|
+
padding?: number;
|
|
195
|
+
allowedPlacements?: PositionerPlacement[];
|
|
196
|
+
};
|
|
197
|
+
type ArrowMiddlewareOptions = {
|
|
198
|
+
element?: HTMLElement | null;
|
|
199
|
+
padding?: number;
|
|
200
|
+
};
|
|
201
|
+
type SizeMiddlewareOptions = {
|
|
202
|
+
padding?: number;
|
|
203
|
+
apply?: (data: {
|
|
204
|
+
availableWidth: number;
|
|
205
|
+
availableHeight: number;
|
|
206
|
+
rects: PositionerRects;
|
|
207
|
+
elements: PositionerMiddlewareState['elements'];
|
|
208
|
+
}) => void;
|
|
209
|
+
};
|
|
210
|
+
type HideMiddlewareOptions = {
|
|
211
|
+
padding?: number;
|
|
212
|
+
};
|
|
213
|
+
export declare function createVirtualPoint(x: number, y: number, contextElement?: Element): PositionerVirtualElement;
|
|
214
|
+
export declare function createVirtualRect(rect: DOMRect | {
|
|
215
|
+
x?: number;
|
|
216
|
+
y?: number;
|
|
217
|
+
top: number;
|
|
218
|
+
left: number;
|
|
219
|
+
width: number;
|
|
220
|
+
height: number;
|
|
221
|
+
}, contextElement?: Element): PositionerVirtualElement;
|
|
222
|
+
export declare function createVirtualRange(range: Range, contextElement?: Element): PositionerVirtualElement;
|
|
223
|
+
export declare function detectPositionerOverflow(state: Pick<PositionerMiddlewareState, 'x' | 'y' | 'rects' | 'boundary' | 'padding'>, options?: {
|
|
224
|
+
elementContext?: 'floating' | 'reference';
|
|
225
|
+
padding?: number;
|
|
226
|
+
}): PositionerOverflow;
|
|
227
|
+
export declare function offsetMiddleware(options?: OffsetMiddlewareOptions): PositionerMiddleware;
|
|
228
|
+
export declare function flipMiddleware(options?: FlipMiddlewareOptions): PositionerMiddleware;
|
|
229
|
+
export declare function autoPlacementMiddleware(options?: AutoPlacementMiddlewareOptions): PositionerMiddleware;
|
|
230
|
+
export declare function shiftMiddleware(options?: ShiftMiddlewareOptions): PositionerMiddleware;
|
|
231
|
+
export declare function sizeMiddleware(options?: SizeMiddlewareOptions): PositionerMiddleware;
|
|
232
|
+
export declare function arrowMiddleware(options?: ArrowMiddlewareOptions): PositionerMiddleware;
|
|
233
|
+
export declare function hideMiddleware(options?: HideMiddlewareOptions): PositionerMiddleware;
|
|
38
234
|
export declare function computePositionState(anchor: PositionerAnchor, floating: HTMLElement | DOMRect, options?: Omit<PositionerOptions, 'anchor' | 'floating' | 'onUpdate'>): PositionerState;
|
|
235
|
+
export declare function autoUpdatePositioner(anchor: PositionerAnchor, floating: HTMLElement, update: () => void, options?: PositionerAutoUpdateOptions): () => void;
|
|
39
236
|
export declare function createPositioner(options: PositionerOptions): PositionerHandle;
|
|
237
|
+
export {};
|
|
40
238
|
//# sourceMappingURL=positioner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positioner.d.ts","sourceRoot":"","sources":["../../src/primitives/positioner.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAC3B,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEf,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,OAAO,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC9D,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"positioner.d.ts","sourceRoot":"","sources":["../../src/primitives/positioner.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAC3B,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEf,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,OAAO,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAEzD,MAAM,MAAM,wBAAwB,GAAG;IACrC,qBAAqB,EAAE,MAAM,OAAO,CAAC;IACrC,cAAc,CAAC,EAAE,MAAM,WAAW,GAAG,OAAO,EAAE,CAAC;IAC/C,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,OAAO,GACP,w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AAO,GAAE,qBAA0B,GAAG,oBAAoB,CAsBxF;AAED,wBAAgB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,oBAAoB,CAwC1F;AAED,wBAAgB,cAAc,CAAC,OAAO,GAAE,qBAA0B,GAAG,oBAAoB,CAuBxF;AA4ED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,gBAAgB,EACxB,QAAQ,EAAE,WAAW,GAAG,OAAO,EAC/B,OAAO,GAAE,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAM,GACxE,eAAe,CAiEjB;AA4HD,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,gBAAgB,EACxB,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,MAAM,IAAI,EAClB,OAAO,GAAE,2BAAgC,GACxC,MAAM,IAAI,CAWZ;AA4ED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,GAAG,gBAAgB,CA4C7E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import "./portal-
|
|
1
|
+
import "./portal-fe73e5cc.mjs";
|
|
2
|
+
import "./positioner-e9770c66.mjs";
|
|
2
3
|
function ja() {
|
|
3
4
|
return typeof window < "u" && typeof document < "u";
|
|
4
5
|
}
|
|
@@ -323,16 +324,16 @@ function oe(e = {}) {
|
|
|
323
324
|
function Sa() {
|
|
324
325
|
return x || (x = oe()), x;
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function ge(e = {}) {
|
|
327
328
|
return Sa().alert(e);
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function me(e = {}) {
|
|
330
331
|
return Sa().confirm(e);
|
|
331
332
|
}
|
|
332
|
-
function
|
|
333
|
+
function he(e = {}) {
|
|
333
334
|
return Sa().prompt(e);
|
|
334
335
|
}
|
|
335
|
-
function
|
|
336
|
+
function xe(e = "programmatic") {
|
|
336
337
|
x && (x.destroy(e), x = null);
|
|
337
338
|
}
|
|
338
339
|
function Ua() {
|
|
@@ -540,13 +541,13 @@ function pe(e = {}) {
|
|
|
540
541
|
function Na() {
|
|
541
542
|
return b || (b = pe()), b;
|
|
542
543
|
}
|
|
543
|
-
function
|
|
544
|
+
function be(e = {}) {
|
|
544
545
|
return Na().open(e);
|
|
545
546
|
}
|
|
546
|
-
function
|
|
547
|
+
function ye(e = {}) {
|
|
547
548
|
return Na().confirm(e);
|
|
548
549
|
}
|
|
549
|
-
function
|
|
550
|
+
function we(e = "programmatic") {
|
|
550
551
|
b && (b.destroy(e), b = null);
|
|
551
552
|
}
|
|
552
553
|
const Ga = {
|
|
@@ -1772,7 +1773,7 @@ const _a = {
|
|
|
1772
1773
|
6: "0 0 0 1px var(--gray-a6),0 12px 60px var(--black-a4),0 16px 64px var(--black-a6),0 16px 36px -20px var(--black-a11)"
|
|
1773
1774
|
},
|
|
1774
1775
|
components: le
|
|
1775
|
-
},
|
|
1776
|
+
}, ve = _a, Xa = /* @__PURE__ */ new Set();
|
|
1776
1777
|
function p(e, a) {
|
|
1777
1778
|
if (!(!e && !a))
|
|
1778
1779
|
return { ...e || {}, ...a || {} };
|
|
@@ -1879,7 +1880,7 @@ function Ya(e, a) {
|
|
|
1879
1880
|
}
|
|
1880
1881
|
};
|
|
1881
1882
|
}
|
|
1882
|
-
function
|
|
1883
|
+
function ke(e, a, n = "light") {
|
|
1883
1884
|
const i = g[a][n], r = e;
|
|
1884
1885
|
return Ya(
|
|
1885
1886
|
{
|
|
@@ -1912,14 +1913,14 @@ function s(e, a, n) {
|
|
|
1912
1913
|
typeof r == "string" && r && e.style.setProperty(`${a}${i}`, r);
|
|
1913
1914
|
});
|
|
1914
1915
|
}
|
|
1915
|
-
function
|
|
1916
|
+
function _e(e) {
|
|
1916
1917
|
e && Xa.add(e);
|
|
1917
1918
|
}
|
|
1918
1919
|
function Wa(e, a) {
|
|
1919
1920
|
var n, i, r, o, c, l, d, f, u, m, h, y, w, v, k, _, S, C, z, E, A, D, T, I, L, M, P, R, H, F, O, B, $, V, j, Z, U, Q, W, N, G, K, J, X, Y, q, aa, ea, ia, na, oa, ta, ra, sa, pa, ca, la, da, fa, ua, ga, ma, ha, xa, ba, ya, wa, va, Ca, za, Ea, Aa, Da, Ta, Ia, La, Ma, Pa, Ra, Ha, Fa, Oa, Ba, $a, Va;
|
|
1920
1921
|
t(e, "--ui-color-primary", a.colors.primary), t(e, "--ui-color-primary-hover", a.colors.primaryHover || a.colors.primary), t(e, "--ui-color-foreground-on-primary", a.colors.foregroundOnPrimary || "#ffffff"), t(e, "--ui-color-background", a.colors.background || "#ffffff"), t(e, "--ui-color-surface", a.colors.surface || a.colors.background || "#ffffff"), t(e, "--ui-color-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), t(e, "--ui-color-text", a.colors.text || "#202020"), t(e, "--ui-color-muted", a.colors.muted || "#646464"), t(e, "--ui-color-border", a.colors.border || "#0000001f"), t(e, "--ui-color-focus-ring", a.colors.focusRing || a.colors.primary), t(e, "--ui-color-success", a.colors.success || "#30a46c"), t(e, "--ui-color-danger", a.colors.danger || "#e5484d"), t(e, "--ui-color-warning", a.colors.warning || a.colors.primary), t(e, "--ui-primary", a.colors.primary), t(e, "--ui-primary-hover", a.colors.primaryHover || a.colors.primary), t(e, "--ui-foreground", a.colors.foregroundOnPrimary || "#ffffff"), t(e, "--ui-background", a.colors.background || "#ffffff"), t(e, "--ui-surface", a.colors.surface || a.colors.background || "#ffffff"), t(e, "--ui-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), t(e, "--ui-text", a.colors.text || "#202020"), t(e, "--ui-muted", a.colors.muted || "#646464"), t(e, "--ui-border", a.colors.border || "#0000001f"), t(e, "--ui-focus-ring", a.colors.focusRing || a.colors.primary), t(e, "--ui-success", a.colors.success || "#30a46c"), t(e, "--ui-error", a.colors.danger || "#e5484d"), t(e, "--ui-warning", a.colors.warning || a.colors.primary), t(e, "--ui-radius", a.radius || "4px"), t(e, "--ui-space-xs", ((n = a.spacing) == null ? void 0 : n.xs) || "4px"), t(e, "--ui-space-sm", ((i = a.spacing) == null ? void 0 : i.sm) || "8px"), t(e, "--ui-space-md", ((r = a.spacing) == null ? void 0 : r.md) || "12px"), t(e, "--ui-space-lg", ((o = a.spacing) == null ? void 0 : o.lg) || "24px"), t(e, "--ui-space-xl", ((c = a.spacing) == null ? void 0 : c.xl) || "32px"), t(e, "--ui-space-xxl", ((l = a.spacing) == null ? void 0 : l.xxl) || "48px"), t(e, "--ui-default-gap", ((d = a.spacing) == null ? void 0 : d.sm) || ((f = a.spaceScale) == null ? void 0 : f["2"]) || "8px"), t(e, "--ui-shadow-sm", ((u = a.shadows) == null ? void 0 : u.sm) || ((m = a.shadows) == null ? void 0 : m["2"]) || "none"), t(e, "--ui-shadow-md", ((h = a.shadows) == null ? void 0 : h.md) || ((y = a.shadows) == null ? void 0 : y["3"]) || "none"), t(e, "--ui-shadow-lg", ((w = a.shadows) == null ? void 0 : w.lg) || ((v = a.shadows) == null ? void 0 : v["4"]) || "none"), t(e, "--ui-font-family", ((k = a.typography) == null ? void 0 : k.family) || "system-ui, sans-serif"), t(e, "--ui-font-family-heading", ((_ = a.typography) == null ? void 0 : _.headingFamily) || ((S = a.typography) == null ? void 0 : S.family) || "system-ui, sans-serif"), t(e, "--ui-font-family-code", ((C = a.typography) == null ? void 0 : C.codeFamily) || "monospace"), t(e, "--ui-font-size-sm", ((E = (z = a.typography) == null ? void 0 : z.size) == null ? void 0 : E.sm) || "12px"), t(e, "--ui-font-size-md", ((D = (A = a.typography) == null ? void 0 : A.size) == null ? void 0 : D.md) || "14px"), t(e, "--ui-font-size-lg", ((I = (T = a.typography) == null ? void 0 : T.size) == null ? void 0 : I.lg) || "16px"), t(e, "--ui-default-font-size", ((M = (L = a.typography) == null ? void 0 : L.size) == null ? void 0 : M.md) || ((R = (P = a.typography) == null ? void 0 : P.fontScale) == null ? void 0 : R["2"]) || "14px"), t(e, "--ui-default-line-height", ((F = (H = a.typography) == null ? void 0 : H.lineHeight) == null ? void 0 : F["2"]) || "20px"), t(e, "--ui-default-letter-spacing", ((B = (O = a.typography) == null ? void 0 : O.letterSpacing) == null ? void 0 : B["2"]) || "0em"), t(e, "--ui-motion-short", (($ = a.motion) == null ? void 0 : $.durationShort) || "120ms"), t(e, "--ui-motion-base", ((V = a.motion) == null ? void 0 : V.durationBase) || "180ms"), t(e, "--ui-motion-long", ((j = a.motion) == null ? void 0 : j.durationLong) || "260ms"), t(e, "--ui-motion-easing", ((Z = a.motion) == null ? void 0 : Z.easing) || "cubic-bezier(0.2, 0.8, 0.2, 1)"), t(e, "--ui-z-modal", String(((U = a.zIndex) == null ? void 0 : U.modal) ?? 1e3)), t(e, "--ui-z-overlay", String(((Q = a.zIndex) == null ? void 0 : Q.overlay) ?? 900)), t(e, "--ui-z-toast", String(((W = a.zIndex) == null ? void 0 : W.toast) ?? 1100)), t(e, "--ui-breakpoint-sm", ((N = a.breakpoints) == null ? void 0 : N.sm) || "640px"), t(e, "--ui-breakpoint-md", ((G = a.breakpoints) == null ? void 0 : G.md) || "768px"), t(e, "--ui-breakpoint-lg", ((K = a.breakpoints) == null ? void 0 : K.lg) || "1024px"), t(e, "--color-background", ((J = a.surfaces) == null ? void 0 : J.background) || a.colors.background || "#ffffff"), t(e, "--color-surface", ((X = a.surfaces) == null ? void 0 : X.surface) || a.colors.surface || "#fcfcfc"), t(e, "--color-panel", ((Y = a.surfaces) == null ? void 0 : Y.panel) || ((q = a.surfaces) == null ? void 0 : q.panelTranslucent) || "#ffffffcc"), t(e, "--color-panel-solid", ((aa = a.surfaces) == null ? void 0 : aa.panelSolid) || a.colors.surface || "#ffffff"), t(e, "--color-panel-translucent", ((ea = a.surfaces) == null ? void 0 : ea.panelTranslucent) || "#ffffffcc"), t(e, "--color-overlay", ((ia = a.surfaces) == null ? void 0 : ia.overlay) || "rgba(2, 6, 23, 0.52)"), t(e, "--color-transparent", ((na = a.surfaces) == null ? void 0 : na.transparent) || "transparent"), t(e, "--backdrop-filter-panel", ((oa = a.effects) == null ? void 0 : oa.backdropFilterPanel) || "blur(64px)"), (ta = a.palette) != null && ta.accentContrast && t(e, "--accent-contrast", a.palette.accentContrast), (ra = a.palette) != null && ra.accentSurface && t(e, "--accent-surface", a.palette.accentSurface), (sa = a.palette) != null && sa.accentIndicator && t(e, "--accent-indicator", a.palette.accentIndicator), (pa = a.palette) != null && pa.accentTrack && t(e, "--accent-track", a.palette.accentTrack), s(e, "--gray-", (ca = a.palette) == null ? void 0 : ca.gray), s(e, "--gray-a", (la = a.palette) == null ? void 0 : la.grayAlpha), s(e, "--black-a", (da = a.palette) == null ? void 0 : da.blackAlpha), s(e, "--white-a", (fa = a.palette) == null ? void 0 : fa.whiteAlpha), s(e, "--accent-", (ua = a.palette) == null ? void 0 : ua.accent), s(e, "--accent-a", (ga = a.palette) == null ? void 0 : ga.accentAlpha), s(e, "--space-", a.spaceScale), s(e, "--radius-", a.radiusScale), s(e, "--font-size-", (ma = a.typography) == null ? void 0 : ma.fontScale), s(e, "--line-height-", (ha = a.typography) == null ? void 0 : ha.lineHeight), s(e, "--letter-spacing-", (xa = a.typography) == null ? void 0 : xa.letterSpacing), s(e, "--shadow-", a.shadows), s(e, "--base-button-", (ba = a.components) == null ? void 0 : ba.button), s(e, "--base-badge-", (ya = a.components) == null ? void 0 : ya.badge), s(e, "--base-dropdown-", (wa = a.components) == null ? void 0 : wa.dropdown), s(e, "--base-select-", (va = a.components) == null ? void 0 : va.select), s(e, "--base-sidebar-", (Ca = a.components) == null ? void 0 : Ca.sidebar), s(e, "--base-block-controls-", (za = a.components) == null ? void 0 : za.blockControls), s(e, "--base-box-", (Ea = a.components) == null ? void 0 : Ea.box), s(e, "--base-breadcrumb-", (Aa = a.components) == null ? void 0 : Aa.breadcrumb), s(e, "--base-card-", (Da = a.components) == null ? void 0 : Da.card), s(e, "--base-multi-select-", (Ta = a.components) == null ? void 0 : Ta.multiSelect), s(e, "--base-navigation-menu-", (Ia = a.components) == null ? void 0 : Ia.navigationMenu), s(e, "--base-menubar-", (La = a.components) == null ? void 0 : La.menubar), s(e, "--base-context-menu-", (Ma = a.components) == null ? void 0 : Ma.contextMenu), s(e, "--base-alert-", (Pa = a.components) == null ? void 0 : Pa.alert), s(e, "--base-alert-dialog-", (Ra = a.components) == null ? void 0 : Ra.alertDialog), s(e, "--base-app-header-", (Ha = a.components) == null ? void 0 : Ha.appHeader), s(e, "--base-aspect-ratio-", (Fa = a.components) == null ? void 0 : Fa.aspectRatio), s(e, "--base-avatar-", (Oa = a.components) == null ? void 0 : Oa.avatar), s(e, "--base-menu-", (Ba = a.components) == null ? void 0 : Ba.menu), s(e, "--base-panel-", ($a = a.components) == null ? void 0 : $a.panel), s(e, "--base-input-", (Va = a.components) == null ? void 0 : Va.input);
|
|
1921
1922
|
}
|
|
1922
|
-
function
|
|
1923
|
+
function Se(e, a = typeof document < "u" ? document : null) {
|
|
1923
1924
|
if (!a)
|
|
1924
1925
|
return;
|
|
1925
1926
|
const n = Ya(e), i = a === document || a instanceof ShadowRoot;
|
|
@@ -1934,21 +1935,21 @@ function _e(e, a = typeof document < "u" ? document : null) {
|
|
|
1934
1935
|
export {
|
|
1935
1936
|
ne as A,
|
|
1936
1937
|
se as D,
|
|
1937
|
-
|
|
1938
|
-
|
|
1938
|
+
ge as a,
|
|
1939
|
+
me as b,
|
|
1939
1940
|
oe as c,
|
|
1940
|
-
|
|
1941
|
+
xe as d,
|
|
1941
1942
|
pe as e,
|
|
1942
|
-
|
|
1943
|
-
|
|
1943
|
+
ye as f,
|
|
1944
|
+
we as g,
|
|
1944
1945
|
g as h,
|
|
1945
1946
|
_a as i,
|
|
1946
1947
|
de as j,
|
|
1947
|
-
|
|
1948
|
+
ve as k,
|
|
1948
1949
|
Ya as l,
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1950
|
+
Se as m,
|
|
1951
|
+
he as p,
|
|
1952
|
+
_e as r,
|
|
1953
|
+
be as s,
|
|
1954
|
+
ke as w
|
|
1954
1955
|
};
|