@astryx-vue/core 0.32.1 → 0.33.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/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-mWlY4pE3.js → AppShell-CPQDndnd.js} +4 -3
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-D05OmNfd.js → Breadcrumbs-BrxMrKHO.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-DJrx97cA.js → CheckboxListItem-C75nzKE8.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-Cf5zttC-.js → Collapsible-Cf9evVsQ.js} +2 -1
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CLCgJG0C.js → ContextMenu-Bp7G_Ys2.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-BWgt12MZ.js → DropdownMenu-DrJpONZH.js} +2 -2
- package/dist/{DropdownMenuRadioItem.vue-B4iwMWWD.d.ts → DropdownMenuRadioItem.vue-BDDI4EZK.d.ts} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/{Item-C9Cs0Jqr.js → Item-tVHjgQDe.js} +1 -0
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-tU7e1J1I.js → Layout-DJ6CQLw2.js} +1 -1
- package/dist/{LayoutPanel-D8t8F-sl.js → LayoutPanel-Bqh82ULc.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +2 -2
- package/dist/List/index.js +2 -2
- package/dist/ListItem-B60jTcXy.js +530 -0
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-COSDjYyl.js → MoreMenu-DIx487BZ.js} +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CDwASKYp.js → PowerSearch-BV5n_nig.js} +2 -2
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-CcS-NP4r.js → ResizeHandle-ezvpdXTS.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-DnoR_4ml.js → SideNav-FEpgj5dB.js} +4 -4
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CoWGEhzQ.js → Table-BOcDJ2a_.js} +2 -1
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CqJ3xfhB.js → TreeList-BGHHEcg1.js} +3 -2
- package/dist/{accessibleName-CINO01Ek.js → accessibleName-Bjt5L8jX.js} +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +2 -2
- package/dist/{context-C_rX8KGX.js → context-BcJmSPj1.js} +1 -1
- package/dist/{index-ZXrvTM3A.d.ts → index-0RIgvtdm.d.ts} +2 -2
- package/dist/{index-D7ShT2c-.d.ts → index-BB9acgK8.d.ts} +2 -2
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-DLE-sASO.d.ts → index-BU1HdDER.d.ts} +1 -1
- package/dist/{index-B-Z4GL8g.d.ts → index-BtPaMbkN.d.ts} +3 -3
- package/dist/{index-Rz4jwv4Q.d.ts → index-BvdhRgke.d.ts} +59 -59
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-CbA8rR_b.d.ts → index-CBOv5j3c.d.ts} +1 -1
- package/dist/{index-DoYrlaEI.d.ts → index-CG6dbyeb.d.ts} +3 -3
- package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
- package/dist/{index-DPklTi3o.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-CdvmnNMH.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-CilCxEvD.d.ts → index-C_iTVOHQ.d.ts} +1 -1
- package/dist/{index-DIkdln91.d.ts → index-Casdfb9N.d.ts} +3 -3
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-In41wHf3.d.ts → index-CuW4AQ7M.d.ts} +2 -2
- package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
- package/dist/{index-B44fLswd.d.ts → index-DYabo8TI.d.ts} +2 -2
- package/dist/{index-o3JHyrk8.d.ts → index-DjSQLT53.d.ts} +1 -1
- package/dist/{index-Dk50Zh3F.d.ts → index-DofC9Rll.d.ts} +2 -2
- package/dist/{index-CUuUoX3h.d.ts → index-DsWEyz1N.d.ts} +3 -3
- package/dist/{index-C943VIzi.d.ts → index-DvCLTiDV.d.ts} +1 -1
- package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
- package/dist/{index-D8l_CmL-.d.ts → index-ZKBj_1nu.d.ts} +1 -1
- package/dist/{index-C3JmGujU.d.ts → index-mK1ICsVg.d.ts} +1 -1
- package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
- package/dist/index.d.ts +30 -30
- package/dist/index.js +20 -20
- package/dist/landing-Dx9vPF0t.js +51 -0
- package/dist/{landing-DrnLUanQ.js → reportChange-BkOEttEP.js} +1 -50
- package/dist/{resizableChannel-BeoqCSou.js → resizableChannel-DS0idC-X.js} +2 -1
- package/dist/{types-ClOMFbqC.d.ts → types-BHHT6Bho.d.ts} +17 -0
- package/dist/{useAnimatedLayout-B_mZd526.js → useAnimatedLayout-BC1mJaxA.js} +1 -1
- package/dist/{useResizable-BIaZZDJ2.js → useResizable-BL7wxH1p.js} +1 -1
- package/package.json +1 -1
- package/styles/list.css +45 -0
- package/styles/pressable.css +13 -0
- package/styles/tree-list.css +21 -0
- package/dist/ListItem-DOFfdRA_.js +0 -202
- package/dist/{index-D8lv2BiD.d.ts → index-BqhgeAT4.d.ts} +1 -1
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
import { a as sharedWeakMap } from "./sharedRealm-H1OrlP0V.js";
|
|
2
|
+
import { n as useTouchHitArea } from "./useTouchHitArea-Dsz80HzY.js";
|
|
3
|
+
import { n as useDevWarning } from "./useDevWarning-B2fsk2B-.js";
|
|
4
|
+
import { r as holdLayoutExit, s as playLayoutChange, t as reportLayoutChange } from "./reportChange-BkOEttEP.js";
|
|
5
|
+
import { a as useListContext, n as itemListRowKey, r as listContextKey, t as _sfc_main$2 } from "./Item-tVHjgQDe.js";
|
|
6
|
+
import { computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeProps, onBeforeUnmount, onBeforeUpdate, onUpdated, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
|
|
7
|
+
import "../styles/list.css";
|
|
8
|
+
//#region src/List/listPresentation.ts
|
|
9
|
+
/**
|
|
10
|
+
* @file listPresentation.ts
|
|
11
|
+
* @input List 的行元素、它和它子元素上正在跑的 Web Animations 与行内样式
|
|
12
|
+
* @output 这次更新里列表报告过的行(`setReportedRows`、`isReportedRow`),
|
|
13
|
+
* 以及离开的行退场时保持离开那一刻的样子(`keepPresentation`、`showAsItLeft`)
|
|
14
|
+
* @position List 内部,listLayoutUpdates 和 ListItem 共用;不从包入口导出
|
|
15
|
+
*
|
|
16
|
+
* 两张表都放在跨副本共享的 WeakMap 里:包里的 List 和项目里自己拷的 ListItem(或反过来)
|
|
17
|
+
* 读写的是同一份。
|
|
18
|
+
*/
|
|
19
|
+
/** 每个列表在进行中的这次更新里报告过的行,只有它们能播退场。 */
|
|
20
|
+
const reportedRows = sharedWeakMap("list/list-layout-updates/reported-rows", 1);
|
|
21
|
+
/** 记下 `list` 这次更新报告过的行;传 null 清掉。 */
|
|
22
|
+
function setReportedRows(list, rows) {
|
|
23
|
+
if (rows == null) reportedRows.delete(list);
|
|
24
|
+
else reportedRows.set(list, rows);
|
|
25
|
+
}
|
|
26
|
+
/** `row` 所在的列表这次更新有没有报告它。 */
|
|
27
|
+
function isReportedRow(row) {
|
|
28
|
+
const list = row.parentElement;
|
|
29
|
+
return list != null && (reportedRows.get(list)?.has(row) ?? false);
|
|
30
|
+
}
|
|
31
|
+
/** 离开的行和它的子元素离开时显示的行内样式(比如横滑的位移),退场时写回去。 */
|
|
32
|
+
const keptStyles = sharedWeakMap("list/list-layout-updates/kept-styles", 1);
|
|
33
|
+
/**
|
|
34
|
+
* 把 `row` 和它子元素上正在跑的 Web Animations 此刻呈现的样子记成行内样式。
|
|
35
|
+
* 行被移出文档时这些动画会丢;退场时把行放回去、写回记录,它就停在离开那一刻的样子。
|
|
36
|
+
* ListItem 在行卸载前(还在文档里)调用。伪元素上的、写不出数值的动画不管。
|
|
37
|
+
*/
|
|
38
|
+
function keepPresentation(row) {
|
|
39
|
+
if (typeof row.getAnimations !== "function") return;
|
|
40
|
+
const parts = [row, ...row.querySelectorAll("*")];
|
|
41
|
+
const before = parts.map((part) => part.getAttribute("style"));
|
|
42
|
+
for (const animation of row.getAnimations({ subtree: true })) try {
|
|
43
|
+
animation.commitStyles();
|
|
44
|
+
} catch {}
|
|
45
|
+
const styled = [];
|
|
46
|
+
parts.forEach((part, index) => {
|
|
47
|
+
if (part.style.length > 0) styled.push([part, part.style.cssText]);
|
|
48
|
+
const style = before[index];
|
|
49
|
+
if (part.getAttribute("style") !== style) {
|
|
50
|
+
if (style == null) part.removeAttribute("style");
|
|
51
|
+
else part.style.cssText = style;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
keptStyles.set(row, styled);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 离开的行放回文档后,子元素的动画会重新盖上来。这里停掉它们、写回记录,
|
|
58
|
+
* 让行显示离开那一刻屏幕上的样子。
|
|
59
|
+
*/
|
|
60
|
+
function showAsItLeft(row) {
|
|
61
|
+
if (typeof row.getAnimations === "function") for (const animation of row.getAnimations({ subtree: true })) animation.cancel();
|
|
62
|
+
for (const [part, cssText] of keptStyles.get(row) ?? []) part.style.cssText = cssText;
|
|
63
|
+
keptStyles.delete(row);
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/List/listRowMarks.ts
|
|
67
|
+
/**
|
|
68
|
+
* @file listRowMarks.ts
|
|
69
|
+
* @input List 的行元素
|
|
70
|
+
* @output 行身上的三个内部标记:行的 `itemKey`(`itemKeyAttrs`、`itemKeyOf`)、
|
|
71
|
+
* 放回页面播退场的行(`markLeaving`、`isLeaving`)、从反向移动的行上方滑过的行(`markTravelling`)
|
|
72
|
+
* @position List 内部:只有这个文件写这些属性名。ListItem 写行的键,listLayoutUpdates 读写其余两个,
|
|
73
|
+
* list.css 按 `data-astryx-travelling` 把行抬高。不从包入口导出。
|
|
74
|
+
*/
|
|
75
|
+
const ITEM_KEY = "data-astryx-item-key";
|
|
76
|
+
const LEAVING = "data-astryx-leaving";
|
|
77
|
+
const TRAVELLING = "data-astryx-travelling";
|
|
78
|
+
/** 绑在 List 的行上:有 `itemKey` 时把它写成行的标记。 */
|
|
79
|
+
function itemKeyAttrs(itemKey) {
|
|
80
|
+
return itemKey == null ? {} : { [ITEM_KEY]: String(itemKey) };
|
|
81
|
+
}
|
|
82
|
+
/** 行带着的键;没有键时为 null。 */
|
|
83
|
+
function itemKeyOf(row) {
|
|
84
|
+
return row.getAttribute(ITEM_KEY);
|
|
85
|
+
}
|
|
86
|
+
/** 标记一行已经离开、只是放回页面播退场:之后的更新不再把它算作行。 */
|
|
87
|
+
function markLeaving(row) {
|
|
88
|
+
row.setAttribute(LEAVING, "");
|
|
89
|
+
}
|
|
90
|
+
function isLeaving(row) {
|
|
91
|
+
return row.hasAttribute(LEAVING);
|
|
92
|
+
}
|
|
93
|
+
/** 每行最近一次的滑过标记:早先那次滑动结束时不会摘掉后来的标记。 */
|
|
94
|
+
const travels = /* @__PURE__ */ new WeakMap();
|
|
95
|
+
/**
|
|
96
|
+
* 把 `row` 标成正在从反向移动的行上方滑过,返回滑动结束时摘掉标记的调用。
|
|
97
|
+
* 之后又标了一次时,这个调用不再摘。
|
|
98
|
+
*/
|
|
99
|
+
function markTravelling(row) {
|
|
100
|
+
const mark = {};
|
|
101
|
+
travels.set(row, mark);
|
|
102
|
+
row.setAttribute(TRAVELLING, "");
|
|
103
|
+
return () => {
|
|
104
|
+
if (travels.get(row) === mark) {
|
|
105
|
+
travels.delete(row);
|
|
106
|
+
row.removeAttribute(TRAVELLING);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/List/listRows.ts
|
|
112
|
+
/**
|
|
113
|
+
* @file listRows.ts
|
|
114
|
+
* @input List 的元素和它的行
|
|
115
|
+
* @output 读写行顺序的纯函数:带键的行(`keyedRows`)、行加上还在退场的行(`rowSequence`)、
|
|
116
|
+
* 落在一段竖直范围里的行(`rowsMeeting`)、把行放回某一行前面(`placeBefore`)
|
|
117
|
+
* @position List 内部,供 listLayoutUpdates 使用
|
|
118
|
+
*/
|
|
119
|
+
/**
|
|
120
|
+
* 列表里带 `itemKey` 的行,按键排好顺序。没有键的行在两次渲染之间没有身份可比,
|
|
121
|
+
* 它自己的插入、移除和移动都不报告,直接变。
|
|
122
|
+
*/
|
|
123
|
+
function keyedRows(list) {
|
|
124
|
+
const rows = /* @__PURE__ */ new Map();
|
|
125
|
+
for (const child of list.children) {
|
|
126
|
+
if (!(child instanceof HTMLElement) || isLeaving(child)) continue;
|
|
127
|
+
const key = itemKeyOf(child);
|
|
128
|
+
if (key != null) rows.set(key, child);
|
|
129
|
+
}
|
|
130
|
+
return rows;
|
|
131
|
+
}
|
|
132
|
+
/** 列表的行按顺序:带键的行,加上还在退场的行。退场行的位置按它前后的带键行来数。 */
|
|
133
|
+
function rowSequence(list) {
|
|
134
|
+
return [...list.children].filter((child) => child instanceof HTMLElement && (isLeaving(child) || itemKeyOf(child) != null));
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* `rows` 里盒子和视口竖直范围 `start` 到 `end` 相交的第一行和最后一行的下标,
|
|
138
|
+
* 一行都不相交时为 null。行在列表里自上而下排好,二分查找只读几行的位置,不读每一行。
|
|
139
|
+
*/
|
|
140
|
+
function rowsMeeting(rows, start, end) {
|
|
141
|
+
let low = 0;
|
|
142
|
+
let high = rows.length;
|
|
143
|
+
while (low < high) {
|
|
144
|
+
const middle = low + high >> 1;
|
|
145
|
+
if (rows[middle].getBoundingClientRect().bottom > start) high = middle;
|
|
146
|
+
else low = middle + 1;
|
|
147
|
+
}
|
|
148
|
+
const first = low;
|
|
149
|
+
high = rows.length;
|
|
150
|
+
while (low < high) {
|
|
151
|
+
const middle = low + high >> 1;
|
|
152
|
+
if (rows[middle].getBoundingClientRect().top < end) low = middle + 1;
|
|
153
|
+
else high = middle;
|
|
154
|
+
}
|
|
155
|
+
const last = low - 1;
|
|
156
|
+
return first <= last ? [first, last] : null;
|
|
157
|
+
}
|
|
158
|
+
/** 把 `rows` 按顺序放到 `anchor` 前面,`anchor` 为 null 时放到列表末尾。已经在位的行不动。 */
|
|
159
|
+
function placeBefore(list, rows, anchor) {
|
|
160
|
+
let next = anchor;
|
|
161
|
+
for (let index = rows.length - 1; index >= 0; index--) {
|
|
162
|
+
const row = rows[index];
|
|
163
|
+
if ((next == null ? list.lastElementChild : next.previousElementSibling) !== row) list.insertBefore(row, next);
|
|
164
|
+
next = row;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/List/listLayoutUpdates.ts
|
|
169
|
+
/** 不到半像素的移动是排版误差,不算变化。 */
|
|
170
|
+
const MIN_MOVE_PX = .5;
|
|
171
|
+
function viewportHeight(list) {
|
|
172
|
+
return list.ownerDocument.defaultView?.innerHeight ?? 0;
|
|
173
|
+
}
|
|
174
|
+
function report(handle, target) {
|
|
175
|
+
const change = reportLayoutChange(handle, () => target);
|
|
176
|
+
change.measureBefore();
|
|
177
|
+
return change;
|
|
178
|
+
}
|
|
179
|
+
/** DOM 变化之前:量可见区域附近的行,把要报告的行交给模块。只读不写。 */
|
|
180
|
+
function measure(list, handle) {
|
|
181
|
+
const rows = keyedRows(list);
|
|
182
|
+
if (rows.size === 0) {
|
|
183
|
+
const last = list.lastElementChild;
|
|
184
|
+
const target = last instanceof HTMLElement ? last : list;
|
|
185
|
+
return {
|
|
186
|
+
rows,
|
|
187
|
+
order: [],
|
|
188
|
+
tops: /* @__PURE__ */ new Map(),
|
|
189
|
+
near: null,
|
|
190
|
+
reported: /* @__PURE__ */ new Set([target]),
|
|
191
|
+
changes: [report(handle, target)],
|
|
192
|
+
sequence: rowSequence(list)
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
const order = [...rows.keys()];
|
|
196
|
+
const elements = [...rows.values()];
|
|
197
|
+
const height = viewportHeight(list);
|
|
198
|
+
const near = rowsMeeting(elements, -height, 2 * height);
|
|
199
|
+
const tops = /* @__PURE__ */ new Map();
|
|
200
|
+
if (near != null) for (let index = near[0]; index <= near[1]; index++) tops.set(order[index], elements[index].getBoundingClientRect().top);
|
|
201
|
+
const shown = rowsMeeting(elements, 0, height);
|
|
202
|
+
const targets = [];
|
|
203
|
+
if (shown != null) for (let index = shown[0]; index <= shown[1]; index++) targets.push(elements[index]);
|
|
204
|
+
if (shown == null || shown[1] !== elements.length - 1) targets.push(elements.at(-1));
|
|
205
|
+
return {
|
|
206
|
+
rows,
|
|
207
|
+
order,
|
|
208
|
+
tops,
|
|
209
|
+
near,
|
|
210
|
+
reported: new Set(targets),
|
|
211
|
+
changes: targets.map((target) => report(handle, target)),
|
|
212
|
+
sequence: rowSequence(list)
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* 交叉的两行里,滑得更远的那行在滑动期间标成「滑过」,从上方经过。
|
|
217
|
+
* 等模块自己的微任务读完排版、开始滑动后再标:先标会让模块再排一次版。
|
|
218
|
+
* 顺着、倒着各扫一遍可见区域附近的行,找出和别的行交叉的行,只在它们之间比较。
|
|
219
|
+
*/
|
|
220
|
+
function markCrossings(measured, now) {
|
|
221
|
+
const { near, order, tops } = measured;
|
|
222
|
+
if (near == null) return;
|
|
223
|
+
const rows = [];
|
|
224
|
+
for (let index = near[0]; index <= near[1]; index++) {
|
|
225
|
+
const key = order[index];
|
|
226
|
+
const from = tops.get(key);
|
|
227
|
+
const element = now.get(key);
|
|
228
|
+
if (from != null && element != null) rows.push({
|
|
229
|
+
element,
|
|
230
|
+
from,
|
|
231
|
+
to: element.getBoundingClientRect().top
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
const crosses = rows.map(() => false);
|
|
235
|
+
let lowest = -Infinity;
|
|
236
|
+
rows.forEach((row, index) => {
|
|
237
|
+
crosses[index] = lowest > row.to;
|
|
238
|
+
lowest = Math.max(lowest, row.to);
|
|
239
|
+
});
|
|
240
|
+
let highest = Infinity;
|
|
241
|
+
for (let index = rows.length - 1; index >= 0; index--) {
|
|
242
|
+
crosses[index] ||= highest < rows[index].to;
|
|
243
|
+
highest = Math.min(highest, rows[index].to);
|
|
244
|
+
}
|
|
245
|
+
const crossing = rows.filter((_, index) => crosses[index]);
|
|
246
|
+
const raised = /* @__PURE__ */ new Set();
|
|
247
|
+
const travel = (row) => Math.abs(row.to - row.from);
|
|
248
|
+
for (let a = 0; a < crossing.length; a++) for (let b = a + 1; b < crossing.length; b++) {
|
|
249
|
+
const upper = crossing[a];
|
|
250
|
+
const lower = crossing[b];
|
|
251
|
+
if (upper.to <= lower.to) continue;
|
|
252
|
+
const rider = travel(upper) > travel(lower) ? upper : lower;
|
|
253
|
+
if (travel(rider) >= MIN_MOVE_PX) raised.add(rider.element);
|
|
254
|
+
}
|
|
255
|
+
if (raised.size === 0) return;
|
|
256
|
+
queueMicrotask(() => {
|
|
257
|
+
for (const element of raised) {
|
|
258
|
+
const glide = typeof element.getAnimations === "function" ? element.getAnimations().at(-1) : void 0;
|
|
259
|
+
if (glide != null) {
|
|
260
|
+
const end = markTravelling(element);
|
|
261
|
+
glide.finished.then(end, end);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
/** DOM 变化之后:离开的行放回原处播退场,量过的变化开始滑,新出现在可见区域的行入场。 */
|
|
267
|
+
function play(list, handle, measured) {
|
|
268
|
+
const now = keyedRows(list);
|
|
269
|
+
const order = [...now.keys()];
|
|
270
|
+
if (order.length === measured.order.length && order.every((key, index) => key === measured.order[index])) return;
|
|
271
|
+
const current = [...now.values()];
|
|
272
|
+
const staying = new Set(current);
|
|
273
|
+
const places = /* @__PURE__ */ new Map();
|
|
274
|
+
const leaving = [];
|
|
275
|
+
let before = 0;
|
|
276
|
+
for (const element of measured.sequence) {
|
|
277
|
+
if (staying.has(element)) {
|
|
278
|
+
before += 1;
|
|
279
|
+
continue;
|
|
280
|
+
}
|
|
281
|
+
if (!isLeaving(element)) {
|
|
282
|
+
if (!measured.reported.has(element)) continue;
|
|
283
|
+
markLeaving(element);
|
|
284
|
+
element.setAttribute("aria-hidden", "true");
|
|
285
|
+
leaving.push(element);
|
|
286
|
+
}
|
|
287
|
+
const anchor = current[before] ?? null;
|
|
288
|
+
places.set(anchor, [...places.get(anchor) ?? [], element]);
|
|
289
|
+
}
|
|
290
|
+
for (const [anchor, rows] of places) placeBefore(list, rows, anchor);
|
|
291
|
+
for (const element of leaving) showAsItLeft(element);
|
|
292
|
+
for (const change of measured.changes) change.animate();
|
|
293
|
+
for (const element of leaving) if (!holdLayoutExit(handle, element, () => element.remove())) element.remove();
|
|
294
|
+
const shown = rowsMeeting(current, 0, viewportHeight(list));
|
|
295
|
+
if (shown != null) for (let index = shown[0]; index <= shown[1]; index++) {
|
|
296
|
+
const element = current[index];
|
|
297
|
+
const key = itemKeyOf(element);
|
|
298
|
+
if (key != null && !measured.rows.has(key)) playLayoutChange(handle, element);
|
|
299
|
+
}
|
|
300
|
+
markCrossings(measured, now);
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* 把列表行的变化报告给 `animatedLayout`:列表每次重新渲染、DOM 变化之前量,变化之后播。
|
|
304
|
+
* 没有句柄时什么都不做。
|
|
305
|
+
*/
|
|
306
|
+
function useListLayoutUpdates(list, animatedLayout) {
|
|
307
|
+
let measured = null;
|
|
308
|
+
onBeforeUpdate(() => {
|
|
309
|
+
measured = null;
|
|
310
|
+
const element = list();
|
|
311
|
+
const handle = animatedLayout();
|
|
312
|
+
if (element == null || handle == null) return;
|
|
313
|
+
measured = measure(element, handle);
|
|
314
|
+
setReportedRows(element, measured.reported);
|
|
315
|
+
});
|
|
316
|
+
onUpdated(() => {
|
|
317
|
+
const pending = measured;
|
|
318
|
+
measured = null;
|
|
319
|
+
const element = list();
|
|
320
|
+
if (element != null) setReportedRows(element, null);
|
|
321
|
+
const handle = animatedLayout();
|
|
322
|
+
if (pending == null || element == null || handle == null) return;
|
|
323
|
+
play(element, handle, pending);
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region src/List/List.vue
|
|
328
|
+
const _hoisted_1$1 = {
|
|
329
|
+
key: 0,
|
|
330
|
+
class: "astryx-list-root"
|
|
331
|
+
};
|
|
332
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
333
|
+
name: "AstryxList",
|
|
334
|
+
inheritAttrs: false,
|
|
335
|
+
__name: "List",
|
|
336
|
+
props: {
|
|
337
|
+
animatedLayout: {},
|
|
338
|
+
density: { default: "balanced" },
|
|
339
|
+
hasDividers: {
|
|
340
|
+
type: Boolean,
|
|
341
|
+
default: false
|
|
342
|
+
},
|
|
343
|
+
edge: {},
|
|
344
|
+
edgeCompensation: {},
|
|
345
|
+
listStyle: { default: "none" },
|
|
346
|
+
start: { default: 1 },
|
|
347
|
+
header: {}
|
|
348
|
+
},
|
|
349
|
+
setup(__props, { expose: __expose }) {
|
|
350
|
+
const props = __props;
|
|
351
|
+
const CONTROLLED_ATTRS = /* @__PURE__ */ new Set([
|
|
352
|
+
"class",
|
|
353
|
+
"style",
|
|
354
|
+
"role",
|
|
355
|
+
"start"
|
|
356
|
+
]);
|
|
357
|
+
const attrs = useAttrs();
|
|
358
|
+
const slots = useSlots();
|
|
359
|
+
const listElement = useTemplateRef("list");
|
|
360
|
+
useListLayoutUpdates(() => listElement.value, () => props.animatedLayout);
|
|
361
|
+
const headerId = `astryx-list-header-${useId()}`;
|
|
362
|
+
const hasHeader = computed(() => slots.header != null || props.header != null);
|
|
363
|
+
const tag = computed(() => props.listStyle === "decimal" ? "ol" : "ul");
|
|
364
|
+
const hasStartAttribute = computed(() => props.listStyle === "decimal" && props.start !== 1);
|
|
365
|
+
const counterStart = computed(() => hasStartAttribute.value ? `astryx-list ${props.start - 1}` : void 0);
|
|
366
|
+
/** The deprecated prop is an alias of `outset`; an explicit `edge` wins over it. */
|
|
367
|
+
const edge = computed(() => props.edge ?? (props.edgeCompensation === "inline" ? "outset" : "padded"));
|
|
368
|
+
useDevWarning("List", "`edge` and the deprecated `edgeCompensation` are both set; `edge` wins. Remove `edgeCompensation`.", () => props.edge != null && props.edgeCompensation != null);
|
|
369
|
+
provide(listContextKey, {
|
|
370
|
+
density: computed(() => props.density),
|
|
371
|
+
edge,
|
|
372
|
+
edgeCompensation: computed(() => props.edgeCompensation),
|
|
373
|
+
hasDividers: computed(() => props.hasDividers),
|
|
374
|
+
listStyle: computed(() => props.listStyle)
|
|
375
|
+
});
|
|
376
|
+
const listStyleValue = computed(() => [attrs.style, counterStart.value == null ? void 0 : { counterReset: counterStart.value }]);
|
|
377
|
+
const listAttrs = computed(() => {
|
|
378
|
+
return {
|
|
379
|
+
...Object.fromEntries(Object.entries(attrs).filter(([key]) => !CONTROLLED_ATTRS.has(key))),
|
|
380
|
+
"role": "list",
|
|
381
|
+
"start": hasStartAttribute.value ? props.start : void 0,
|
|
382
|
+
"data-density": props.density,
|
|
383
|
+
"data-dividers": props.hasDividers || void 0,
|
|
384
|
+
"data-edge": edge.value,
|
|
385
|
+
"data-edge-compensation": props.edgeCompensation,
|
|
386
|
+
"data-list-style": props.listStyle,
|
|
387
|
+
...hasHeader.value ? { "aria-labelledby": headerId } : void 0
|
|
388
|
+
};
|
|
389
|
+
});
|
|
390
|
+
__expose({ element: computed(() => listElement.value) });
|
|
391
|
+
return (_ctx, _cache) => {
|
|
392
|
+
return hasHeader.value ? (openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", {
|
|
393
|
+
id: headerId,
|
|
394
|
+
class: "astryx-list-header"
|
|
395
|
+
}, [renderSlot(_ctx.$slots, "header", {}, () => [createTextVNode(toDisplayString(__props.header), 1)])]), (openBlock(), createBlock(resolveDynamicComponent(tag.value), mergeProps({ ref: "list" }, listAttrs.value, {
|
|
396
|
+
class: ["astryx-list", unref(attrs).class],
|
|
397
|
+
style: listStyleValue.value
|
|
398
|
+
}), {
|
|
399
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
400
|
+
_: 3
|
|
401
|
+
}, 16, ["class", "style"]))])) : (openBlock(), createBlock(resolveDynamicComponent(tag.value), mergeProps({
|
|
402
|
+
key: 1,
|
|
403
|
+
ref: "list"
|
|
404
|
+
}, listAttrs.value, {
|
|
405
|
+
class: ["astryx-list", unref(attrs).class],
|
|
406
|
+
style: listStyleValue.value
|
|
407
|
+
}), {
|
|
408
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
409
|
+
_: 3
|
|
410
|
+
}, 16, ["class", "style"]));
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
//#endregion
|
|
415
|
+
//#region src/List/ListItem.vue
|
|
416
|
+
const _hoisted_1 = {
|
|
417
|
+
key: 0,
|
|
418
|
+
class: "astryx-list-marker"
|
|
419
|
+
};
|
|
420
|
+
const _hoisted_2 = ["data-shape"];
|
|
421
|
+
const _hoisted_3 = ["data-style"];
|
|
422
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
423
|
+
name: "AstryxListItem",
|
|
424
|
+
__name: "ListItem",
|
|
425
|
+
props: {
|
|
426
|
+
align: {},
|
|
427
|
+
label: {},
|
|
428
|
+
description: {},
|
|
429
|
+
density: {},
|
|
430
|
+
onClick: { type: Function },
|
|
431
|
+
interactiveRef: {},
|
|
432
|
+
href: {},
|
|
433
|
+
target: {},
|
|
434
|
+
rel: {},
|
|
435
|
+
isDisabled: { type: Boolean },
|
|
436
|
+
isSelected: { type: Boolean },
|
|
437
|
+
itemKey: {},
|
|
438
|
+
swipeActions: {},
|
|
439
|
+
swipeBehavior: {}
|
|
440
|
+
},
|
|
441
|
+
setup(__props) {
|
|
442
|
+
const props = __props;
|
|
443
|
+
const list = useListContext();
|
|
444
|
+
const item = useTemplateRef("item");
|
|
445
|
+
const isTouchTarget = computed(() => (props.onClick != null || props.href != null || props.interactiveRef != null) && props.isDisabled !== true);
|
|
446
|
+
useTouchHitArea(() => item.value?.element, isTouchTarget);
|
|
447
|
+
onBeforeUnmount(() => {
|
|
448
|
+
const row = item.value?.element;
|
|
449
|
+
if (row != null && isReportedRow(row)) keepPresentation(row);
|
|
450
|
+
});
|
|
451
|
+
const density = computed(() => props.density ?? list?.density.value ?? "balanced");
|
|
452
|
+
const marker = computed(() => {
|
|
453
|
+
const listStyle = list?.listStyle.value ?? "none";
|
|
454
|
+
return listStyle === "none" ? null : listStyle;
|
|
455
|
+
});
|
|
456
|
+
provide(itemListRowKey, { isNumbered: computed(() => marker.value === "decimal") });
|
|
457
|
+
const isBullet = computed(() => marker.value === "disc" || marker.value === "circle");
|
|
458
|
+
return (_ctx, _cache) => {
|
|
459
|
+
return openBlock(), createBlock(_sfc_main$2, mergeProps({
|
|
460
|
+
ref_key: "item",
|
|
461
|
+
ref: item,
|
|
462
|
+
as: "li",
|
|
463
|
+
class: ["astryx-list-item", { "astryx-touch-hit-area-band": isTouchTarget.value }],
|
|
464
|
+
align: __props.align,
|
|
465
|
+
description: __props.description,
|
|
466
|
+
density: density.value,
|
|
467
|
+
href: __props.href,
|
|
468
|
+
"interactive-ref": __props.interactiveRef,
|
|
469
|
+
"is-disabled": __props.isDisabled,
|
|
470
|
+
"is-selected": __props.isSelected,
|
|
471
|
+
label: __props.label,
|
|
472
|
+
"on-click": __props.onClick,
|
|
473
|
+
"swipe-actions": __props.swipeActions,
|
|
474
|
+
"swipe-behavior": __props.swipeBehavior,
|
|
475
|
+
rel: __props.rel,
|
|
476
|
+
target: __props.target
|
|
477
|
+
}, unref(itemKeyAttrs)(__props.itemKey)), createSlots({ _: 2 }, [
|
|
478
|
+
marker.value ? {
|
|
479
|
+
name: "marker",
|
|
480
|
+
fn: withCtx(() => [isBullet.value ? (openBlock(), createElementBlock("span", _hoisted_1, [createElementVNode("span", {
|
|
481
|
+
class: "astryx-list-marker__glyph",
|
|
482
|
+
"data-shape": marker.value
|
|
483
|
+
}, null, 8, _hoisted_2)])) : (openBlock(), createElementBlock("span", {
|
|
484
|
+
key: 1,
|
|
485
|
+
class: "astryx-list-marker__number",
|
|
486
|
+
"data-style": marker.value
|
|
487
|
+
}, null, 8, _hoisted_3))]),
|
|
488
|
+
key: "0"
|
|
489
|
+
} : void 0,
|
|
490
|
+
_ctx.$slots.startContent ? {
|
|
491
|
+
name: "startContent",
|
|
492
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "startContent")]),
|
|
493
|
+
key: "1"
|
|
494
|
+
} : void 0,
|
|
495
|
+
_ctx.$slots.label ? {
|
|
496
|
+
name: "label",
|
|
497
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "label")]),
|
|
498
|
+
key: "2"
|
|
499
|
+
} : void 0,
|
|
500
|
+
_ctx.$slots.description ? {
|
|
501
|
+
name: "description",
|
|
502
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "description")]),
|
|
503
|
+
key: "3"
|
|
504
|
+
} : void 0,
|
|
505
|
+
_ctx.$slots.endContent ? {
|
|
506
|
+
name: "endContent",
|
|
507
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "endContent")]),
|
|
508
|
+
key: "4"
|
|
509
|
+
} : void 0
|
|
510
|
+
]), 1040, [
|
|
511
|
+
"class",
|
|
512
|
+
"align",
|
|
513
|
+
"description",
|
|
514
|
+
"density",
|
|
515
|
+
"href",
|
|
516
|
+
"interactive-ref",
|
|
517
|
+
"is-disabled",
|
|
518
|
+
"is-selected",
|
|
519
|
+
"label",
|
|
520
|
+
"on-click",
|
|
521
|
+
"swipe-actions",
|
|
522
|
+
"swipe-behavior",
|
|
523
|
+
"rel",
|
|
524
|
+
"target"
|
|
525
|
+
]);
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
//#endregion
|
|
530
|
+
export { _sfc_main$1 as n, _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MetadataListItemSlots, c as MetadataListOrientation, i as MetadataListItemProps, l as MetadataListProps, n as _default, o as MetadataListLabelConfig, r as MetadataListColumns, s as MetadataListLabelPosition, t as _default$1, u as MetadataListSlots } from "../index-
|
|
1
|
+
import { a as MetadataListItemSlots, c as MetadataListOrientation, i as MetadataListItemProps, l as MetadataListProps, n as _default, o as MetadataListLabelConfig, r as MetadataListColumns, s as MetadataListLabelPosition, t as _default$1, u as MetadataListSlots } from "../index-utZGF4GR.js";
|
|
2
2
|
export { _default as MetadataList, type MetadataListColumns, _default$1 as MetadataListItem, type MetadataListItemProps, type MetadataListItemSlots, type MetadataListLabelConfig, type MetadataListLabelPosition, type MetadataListOrientation, type MetadataListProps, type MetadataListSlots };
|
package/dist/MoreMenu/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $i as MoreMenuPresentation, Gi as _default, Ji as MoreMenuIcon, Ki as MoreMenuDivider, Qi as MoreMenuOption, Xi as MoreMenuItem, Yi as MoreMenuInitialFocus, Zi as MoreMenuItemVariant, ea as MoreMenuProps, na as MoreMenuSection, qi as MoreMenuEmits, ra as MoreMenuSlots, ta as MoreMenuResolvedPresentation } from "../index-
|
|
1
|
+
import { $i as MoreMenuPresentation, Gi as _default, Ji as MoreMenuIcon, Ki as MoreMenuDivider, Qi as MoreMenuOption, Xi as MoreMenuItem, Yi as MoreMenuInitialFocus, Zi as MoreMenuItemVariant, ea as MoreMenuProps, na as MoreMenuSection, qi as MoreMenuEmits, ra as MoreMenuSlots, ta as MoreMenuResolvedPresentation } from "../index-BvdhRgke.js";
|
|
2
2
|
export { _default as MoreMenu, type MoreMenuDivider, type MoreMenuEmits, type MoreMenuIcon, type MoreMenuInitialFocus, type MoreMenuItem, type MoreMenuItemVariant, type MoreMenuOption, type MoreMenuPresentation, type MoreMenuProps, type MoreMenuResolvedPresentation, type MoreMenuSection, type MoreMenuSlots };
|
package/dist/MoreMenu/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../MoreMenu-
|
|
1
|
+
import { t as _sfc_main } from "../MoreMenu-DIx487BZ.js";
|
|
2
2
|
export { _sfc_main as MoreMenu };
|
|
@@ -15,7 +15,7 @@ import { n as isModifiedClick, t as activateMenuItem } from "./menuActivation-BQ
|
|
|
15
15
|
import { t as useHeldPresentation } from "./useHeldPresentation-BF5vGVUn.js";
|
|
16
16
|
import { t as useMenuEntranceHold } from "./useMenuEntranceHold-HznOwIry.js";
|
|
17
17
|
import { t as _sfc_main$9 } from "./Divider-mOZ6vIQw.js";
|
|
18
|
-
import { n as _sfc_main$11, t as _sfc_main$10 } from "./ListItem-
|
|
18
|
+
import { n as _sfc_main$11, t as _sfc_main$10 } from "./ListItem-B60jTcXy.js";
|
|
19
19
|
import { t as moreMenuMessages } from "./more-menu-B_dod4C-.js";
|
|
20
20
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, h, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
21
21
|
import "../styles/layer.css";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-
|
|
1
|
+
import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-CG6dbyeb.js";
|
|
2
2
|
export { _default as MultiSelector, type MultiSelectorCheckboxPosition, type MultiSelectorCreateChange, type MultiSelectorDivider, type MultiSelectorEmits, type MultiSelectorHandle, type MultiSelectorHandleRef, type MultiSelectorOption, type MultiSelectorOptionData, type MultiSelectorPresentation, type MultiSelectorProps, type MultiSelectorSection, type MultiSelectorSelectedItem, type MultiSelectorSize, type MultiSelectorSlots, type MultiSelectorStatus, type MultiSelectorStatusVariant, type MultiSelectorTriggerDisplay, type MultiSelectorVariant, SELECT_ALL_VALUE, flattenOptions };
|
package/dist/NavItem/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as NavItemSize, i as NavItemProps, n as NavIconSlots, o as NavItemSlots, r as NavItemEmits, s as NavLinkComponent, t as NavIconProps } from "../types-C2ZuV4jf.js";
|
|
2
|
-
import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-
|
|
2
|
+
import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-ZKBj_1nu.js";
|
|
3
3
|
export { _default as NavIcon, type NavIconProps, type NavIconSlots, _default$1 as NavItem, type NavItemEmits, type NavItemProps, type NavItemSize, type NavItemSlots, type NavLinkComponent, resolveNavRoot };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bi as _default, Hi as NumberInputProps, Ui as NumberInputStatus, Vi as NumberInputEmits, Wi as NumberInputEntryError } from "../index-
|
|
1
|
+
import { Bi as _default, Hi as NumberInputProps, Ui as NumberInputStatus, Vi as NumberInputEmits, Wi as NumberInputEntryError } from "../index-BvdhRgke.js";
|
|
2
2
|
export { _default as NumberInput, type NumberInputEmits, type NumberInputEntryError, type NumberInputProps, type NumberInputStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Fi as _default, Ii as OverflowListCollapsedItem, Li as OverflowListEmits, Ri as OverflowListItem, zi as OverflowListProps } from "../index-
|
|
1
|
+
import { Fi as _default, Ii as OverflowListCollapsedItem, Li as OverflowListEmits, Ri as OverflowListItem, zi as OverflowListProps } from "../index-BvdhRgke.js";
|
|
2
2
|
export { _default as OverflowList, type OverflowListCollapsedItem, type OverflowListEmits, type OverflowListItem, type OverflowListProps };
|
package/dist/Overlay/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as OverlayContainerProps, c as OverlayScrimMode, d as OverlayShowOn, f as OverlaySlots, i as OverlayAlign, l as OverlayScrimProps, m as UseOverlayResult, n as _default$1, o as OverlayPosition, p as UseOverlayOptions, r as _default, s as OverlayProps, t as useOverlay, u as OverlayScrimSlots } from "../index-
|
|
1
|
+
import { a as OverlayContainerProps, c as OverlayScrimMode, d as OverlayShowOn, f as OverlaySlots, i as OverlayAlign, l as OverlayScrimProps, m as UseOverlayResult, n as _default$1, o as OverlayPosition, p as UseOverlayOptions, r as _default, s as OverlayProps, t as useOverlay, u as OverlayScrimSlots } from "../index-BDZCJ9ri.js";
|
|
2
2
|
export { _default as Overlay, type OverlayAlign, type OverlayContainerProps, type OverlayPosition, type OverlayProps, _default$1 as OverlayScrim, type OverlayScrimMode, type OverlayScrimProps, type OverlayScrimSlots, type OverlayShowOn, type OverlaySlots, type UseOverlayOptions, type UseOverlayResult, useOverlay };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-
|
|
1
|
+
import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-0RIgvtdm.js";
|
|
2
2
|
export { _default as Pagination, type PaginationEmits, type PaginationProps, type PaginationSize, type PaginationSlots, type PaginationVariant };
|
package/dist/Popover/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as PopoverProps, i as PopoverPresentation, n as PopoverPadding, o as PopoverRole, r as PopoverPlacement, t as PopoverAlignment } from "../types-D97oBk6c.js";
|
|
2
|
-
import { i as _default, n as UsePopoverReturn, r as usePopover, t as UsePopoverOptions } from "../index-
|
|
2
|
+
import { i as _default, n as UsePopoverReturn, r as usePopover, t as UsePopoverOptions } from "../index-C_iTVOHQ.js";
|
|
3
3
|
export { _default as Popover, type PopoverAlignment, type PopoverPadding, type PopoverPlacement, type PopoverPresentation, type PopoverProps, type PopoverRole, type UsePopoverOptions, type UsePopoverReturn, usePopover };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $r as InferPowerSearchData, Ai as PowerSearchPresentation, Ci as PowerSearchFieldDefinition, Di as PowerSearchItem, Ei as PowerSearchHandle, Mi as PowerSearchSize, Ni as PowerSearchSlots, Oi as PowerSearchOperator, Pi as PowerSearchStatus, Qr as searchPowerSearchFields, Si as PowerSearchField, Ti as PowerSearchFilter, _i as PowerSearchChangeType, ai as resolveOperatorLabel, bi as PowerSearchEmits, ci as formatFilterValue, di as createPowerSearchLookup, ei as applyPowerSearchFilters, fi as DateTimeRange, gi as PartialFilter, hi as OperatorValue, ii as resolveEditorPlacement, ji as PowerSearchProps, ki as PowerSearchOverflow, li as completePowerSearchFilter, mi as FilterValue, ni as usePowerSearchConfig, oi as formatDateAbsolute, pi as DateTimeRangePart, ri as _default, si as formatDateAbsoluteCompact, ti as createPowerSearchConfig, ui as PowerSearchLookup, vi as PowerSearchComponents, wi as PowerSearchFieldType, xi as PowerSearchEntity, yi as PowerSearchConfig } from "../index-
|
|
1
|
+
import { $r as InferPowerSearchData, Ai as PowerSearchPresentation, Ci as PowerSearchFieldDefinition, Di as PowerSearchItem, Ei as PowerSearchHandle, Mi as PowerSearchSize, Ni as PowerSearchSlots, Oi as PowerSearchOperator, Pi as PowerSearchStatus, Qr as searchPowerSearchFields, Si as PowerSearchField, Ti as PowerSearchFilter, _i as PowerSearchChangeType, ai as resolveOperatorLabel, bi as PowerSearchEmits, ci as formatFilterValue, di as createPowerSearchLookup, ei as applyPowerSearchFilters, fi as DateTimeRange, gi as PartialFilter, hi as OperatorValue, ii as resolveEditorPlacement, ji as PowerSearchProps, ki as PowerSearchOverflow, li as completePowerSearchFilter, mi as FilterValue, ni as usePowerSearchConfig, oi as formatDateAbsolute, pi as DateTimeRangePart, ri as _default, si as formatDateAbsoluteCompact, ti as createPowerSearchConfig, ui as PowerSearchLookup, vi as PowerSearchComponents, wi as PowerSearchFieldType, xi as PowerSearchEntity, yi as PowerSearchConfig } from "../index-BvdhRgke.js";
|
|
2
2
|
export { type DateTimeRange, type DateTimeRangePart, type FilterValue, type InferPowerSearchData, type OperatorValue, type PartialFilter, _default as PowerSearch, type PowerSearchChangeType, type PowerSearchComponents, type PowerSearchConfig, type PowerSearchEmits, type PowerSearchEntity, type PowerSearchField, type PowerSearchFieldDefinition, type PowerSearchFieldType, type PowerSearchFilter, type PowerSearchHandle, type PowerSearchItem, type PowerSearchLookup, type PowerSearchOperator, type PowerSearchOverflow, type PowerSearchPresentation, type PowerSearchProps, type PowerSearchSize, type PowerSearchSlots, type PowerSearchStatus, applyPowerSearchFilters, completePowerSearchFilter, createPowerSearchConfig, createPowerSearchLookup, formatDateAbsolute, formatDateAbsoluteCompact, formatFilterValue, resolveEditorPlacement, resolveOperatorLabel, searchPowerSearchFields, usePowerSearchConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "../PowerSearch-
|
|
1
|
+
import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "../PowerSearch-BV5n_nig.js";
|
|
2
2
|
export { _sfc_main as PowerSearch, applyPowerSearchFilters, completePowerSearchFilter, createPowerSearchConfig, createPowerSearchLookup, formatDateAbsolute, formatDateAbsoluteCompact, formatFilterValue, resolveEditorPlacement, resolveOperatorLabel, searchPowerSearchFields, usePowerSearchConfig };
|
|
@@ -22,8 +22,8 @@ import { r as formatCalendarInstant } from "./calendarFormat-_CEZIMZG.js";
|
|
|
22
22
|
import { t as _sfc_main$19 } from "./Calendar-CUMnYIhe.js";
|
|
23
23
|
import { t as _sfc_main$20 } from "./Field-CrnwM-2A.js";
|
|
24
24
|
import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
|
|
25
|
-
import { n as _sfc_main$21, t as _sfc_main$22 } from "./ListItem-
|
|
26
|
-
import { n as _sfc_main$23, t as _sfc_main$24 } from "./CheckboxListItem-
|
|
25
|
+
import { n as _sfc_main$21, t as _sfc_main$22 } from "./ListItem-B60jTcXy.js";
|
|
26
|
+
import { n as _sfc_main$23, t as _sfc_main$24 } from "./CheckboxListItem-C75nzKE8.js";
|
|
27
27
|
import { t as _sfc_main$25 } from "./DateInput-BmEbQA1z.js";
|
|
28
28
|
import { t as tokenizerMessages } from "./tokenizer-C1y-55Ft.js";
|
|
29
29
|
import { l as powerSearchMessages, u as powerSearchSheetMessages } from "./loadCatalog-zJKVLZ89.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-
|
|
1
|
+
import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-COgrQZIL.js";
|
|
2
2
|
export { _default as ProgressBar, type ProgressBarMark, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant };
|
package/dist/Radio/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Br as RadioGroupEmits, Gr as RadioOrientation, Hr as RadioGroupSlots, Jr as RadioSlots, Kr as RadioProps, Lr as _default$1, Rr as _default, Vr as RadioGroupProps, Wr as RadioOption, Xr as RadioStatusType, Yr as RadioStatus, Zr as RadioValue, qr as RadioSize, zr as RadioChangeEvent } from "../index-
|
|
1
|
+
import { Br as RadioGroupEmits, Gr as RadioOrientation, Hr as RadioGroupSlots, Jr as RadioSlots, Kr as RadioProps, Lr as _default$1, Rr as _default, Vr as RadioGroupProps, Wr as RadioOption, Xr as RadioStatusType, Yr as RadioStatus, Zr as RadioValue, qr as RadioSize, zr as RadioChangeEvent } from "../index-BvdhRgke.js";
|
|
2
2
|
export { _default as Radio, type RadioChangeEvent, _default$1 as RadioGroup, type RadioGroupEmits, type RadioGroupProps, type RadioGroupSlots, type RadioOption, type RadioOrientation, type RadioProps, type RadioSize, type RadioSlots, type RadioStatus, type RadioStatusType, type RadioValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Fr as RadioListItemProps, Ir as _default, Pr as _default$1, Ur as RadioListProps } from "../index-
|
|
1
|
+
import { Fr as RadioListItemProps, Ir as _default, Pr as _default$1, Ur as RadioListProps } from "../index-BvdhRgke.js";
|
|
2
2
|
export { _default as RadioList, _default$1 as RadioListItem, type RadioListItemProps, type RadioListProps };
|
package/dist/Resizable/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../ResizeHandle-
|
|
1
|
+
import { t as _sfc_main } from "../ResizeHandle-ezvpdXTS.js";
|
|
2
2
|
export { _sfc_main as ResizeHandle };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
2
2
|
import { t as VelocityTracker } from "./VelocityTracker-DVbtTSXR.js";
|
|
3
|
-
import { a as resizablePropsOf, d as regionOfProps, n as getCollapseControls, r as getEffectiveMaxPx, t as endResizeAt } from "./resizableChannel-
|
|
3
|
+
import { a as resizablePropsOf, d as regionOfProps, n as getCollapseControls, r as getEffectiveMaxPx, t as endResizeAt } from "./resizableChannel-DS0idC-X.js";
|
|
4
4
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
5
5
|
import { t as layoutMessages } from "./layout-DhX4-SyE.js";
|
|
6
6
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, useAttrs, useTemplateRef, watch } from "vue";
|