@phoenix-wing/code-core 0.6.4 → 0.6.6

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.
@@ -0,0 +1,575 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ export const PNW_COMBO_TAG = "pnw-combo";
3
+ export const PNW_COMBO_ACTION = "pnw-combo-action";
4
+ const PNW_EMPTY_COMBO_MODEL = Object.freeze({
5
+ ariaLabel: "选择项目",
6
+ placeholder: "请选择…",
7
+ emptyText: "暂无项目",
8
+ items: Object.freeze([]),
9
+ disabled: false,
10
+ clearEnabled: false,
11
+ clearLabel: "全部清空",
12
+ });
13
+ const PNW_COMBO_STYLE = `
14
+ :host {
15
+ position: relative;
16
+ display: block;
17
+ width: 100%;
18
+ min-width: 0;
19
+ color: var(--pnw-combo-foreground, var(--vscode-foreground, #1f1f1f));
20
+ font: var(--vscode-font-size, 13px)/1.35 var(--vscode-font-family, system-ui, sans-serif);
21
+ }
22
+ :host([hidden]) { display: none !important; }
23
+ * { box-sizing: border-box; }
24
+ button { font: inherit; }
25
+ button:focus-visible {
26
+ outline: 1px solid var(--pnw-combo-focus, var(--vscode-focusBorder, #0078d4));
27
+ outline-offset: -1px;
28
+ }
29
+ .pnw-combo-trigger {
30
+ display: grid;
31
+ width: 100%;
32
+ min-width: 0;
33
+ min-height: var(--pnw-combo-height, 28px);
34
+ grid-template-columns: minmax(0, 1fr) 14px;
35
+ align-items: center;
36
+ gap: 5px;
37
+ padding: 3px 6px;
38
+ overflow: hidden;
39
+ border: 1px solid var(--pnw-combo-border, var(--vscode-dropdown-border, var(--vscode-input-border, #8e8e8e)));
40
+ border-radius: 2px;
41
+ color: var(--pnw-combo-foreground, var(--vscode-dropdown-foreground, var(--vscode-input-foreground, #1f1f1f)));
42
+ background: var(--pnw-combo-background, var(--vscode-dropdown-background, var(--vscode-input-background, #ffffff)));
43
+ cursor: pointer;
44
+ text-align: left;
45
+ }
46
+ .pnw-combo-trigger:hover:not(:disabled),
47
+ .pnw-combo-trigger[aria-expanded="true"] {
48
+ border-color: var(--pnw-combo-focus, var(--vscode-focusBorder, #0078d4));
49
+ }
50
+ .pnw-combo-trigger:disabled {
51
+ color: var(--vscode-disabledForeground, var(--vscode-descriptionForeground, #616161));
52
+ cursor: default;
53
+ opacity: .65;
54
+ }
55
+ .pnw-combo-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
56
+ .pnw-combo-caret { width: 12px; height: 12px; transition: transform 80ms ease; }
57
+ .pnw-combo-caret path {
58
+ fill: none;
59
+ stroke: currentColor;
60
+ stroke-linecap: round;
61
+ stroke-linejoin: round;
62
+ stroke-width: 1.5;
63
+ }
64
+ .pnw-combo-trigger[aria-expanded="true"] .pnw-combo-caret { transform: rotate(180deg); }
65
+ .pnw-combo-popup {
66
+ position: fixed;
67
+ z-index: var(--pnw-combo-z-index, 1000);
68
+ top: 0;
69
+ left: 0;
70
+ min-width: 0;
71
+ max-height: 300px;
72
+ overflow: auto;
73
+ border: 1px solid var(--pnw-combo-popup-border, var(--vscode-widget-border, var(--vscode-dropdown-border, #8e8e8e)));
74
+ color: var(--pnw-combo-popup-foreground, var(--vscode-menu-foreground, var(--vscode-foreground, #1f1f1f)));
75
+ background: var(--pnw-combo-popup-background, var(--vscode-menu-background, var(--vscode-dropdown-background, #ffffff)));
76
+ box-shadow: 0 3px 10px var(--vscode-widget-shadow, rgba(0, 0, 0, .32));
77
+ }
78
+ .pnw-combo-popup[hidden] { display: none; }
79
+ .pnw-combo-group + .pnw-combo-group {
80
+ border-top: 1px solid var(--vscode-menu-separatorBackground, var(--vscode-panel-border, #d4d4d4));
81
+ }
82
+ .pnw-combo-group-label {
83
+ padding: 5px 7px 3px;
84
+ overflow: hidden;
85
+ color: var(--vscode-descriptionForeground, #616161);
86
+ font-size: 10px;
87
+ text-overflow: ellipsis;
88
+ white-space: nowrap;
89
+ }
90
+ .pnw-combo-row {
91
+ display: grid;
92
+ min-width: 0;
93
+ grid-template-columns: minmax(0, 1fr) 26px;
94
+ align-items: stretch;
95
+ }
96
+ .pnw-combo-select, .pnw-combo-remove, .pnw-combo-clear {
97
+ min-width: 0;
98
+ min-height: 27px;
99
+ border: 0;
100
+ border-radius: 0;
101
+ color: inherit;
102
+ background: transparent;
103
+ cursor: pointer;
104
+ }
105
+ .pnw-combo-select {
106
+ padding: 4px 7px;
107
+ overflow: hidden;
108
+ text-align: left;
109
+ text-overflow: ellipsis;
110
+ white-space: nowrap;
111
+ }
112
+ .pnw-combo-remove {
113
+ display: grid;
114
+ width: 26px;
115
+ padding: 0;
116
+ place-items: center;
117
+ color: var(--vscode-descriptionForeground, #616161);
118
+ font-size: 15px;
119
+ }
120
+ .pnw-combo-select:hover,
121
+ .pnw-combo-select[aria-selected="true"],
122
+ .pnw-combo-remove:hover:not(:disabled),
123
+ .pnw-combo-clear:hover:not(:disabled) {
124
+ color: var(--vscode-list-hoverForeground, var(--vscode-foreground, #1f1f1f));
125
+ background: var(--vscode-list-hoverBackground, var(--vscode-toolbar-hoverBackground, #e8e8e8));
126
+ }
127
+ .pnw-combo-select[aria-selected="true"] {
128
+ color: var(--vscode-list-activeSelectionForeground, var(--vscode-foreground, #ffffff));
129
+ background: var(--vscode-list-activeSelectionBackground, var(--vscode-list-hoverBackground, #0078d4));
130
+ }
131
+ .pnw-combo-remove:disabled, .pnw-combo-clear:disabled {
132
+ color: var(--vscode-disabledForeground, var(--vscode-descriptionForeground, #616161));
133
+ cursor: default;
134
+ opacity: .45;
135
+ }
136
+ .pnw-combo-footer {
137
+ padding: 4px;
138
+ border-top: 1px solid var(--vscode-menu-separatorBackground, var(--vscode-panel-border, #d4d4d4));
139
+ }
140
+ .pnw-combo-clear {
141
+ width: 100%;
142
+ min-height: 25px;
143
+ padding: 3px 6px;
144
+ border: 1px solid var(--vscode-button-secondaryBackground, var(--vscode-panel-border, #d4d4d4));
145
+ text-align: center;
146
+ }
147
+ .pnw-combo-empty { padding: 7px; color: var(--vscode-descriptionForeground, #616161); text-align: center; }
148
+ @media (prefers-color-scheme: dark) {
149
+ :host(:not([color-scheme="light"]):not([color-scheme="dark"])) {
150
+ --pnw-combo-foreground: var(--vscode-foreground, #cccccc);
151
+ --pnw-combo-background: var(--vscode-dropdown-background, #3c3c3c);
152
+ --pnw-combo-popup-background: var(--vscode-menu-background, #252526);
153
+ --pnw-combo-popup-foreground: var(--vscode-menu-foreground, #cccccc);
154
+ }
155
+ }
156
+ @media (forced-colors: active) {
157
+ .pnw-combo-trigger, .pnw-combo-popup, .pnw-combo-clear { border-color: CanvasText; }
158
+ button:focus-visible { outline: 2px solid Highlight; }
159
+ }
160
+ @media (prefers-reduced-motion: reduce) {
161
+ .pnw-combo-caret { transition: none; }
162
+ }
163
+ `;
164
+ export class PnwCombo extends HTMLElement {
165
+ pnwRoot = this.attachShadow({ mode: "open" });
166
+ pnwActiveModel = PNW_EMPTY_COMBO_MODEL;
167
+ pnwTrigger;
168
+ pnwValue;
169
+ pnwPopup;
170
+ pnwList;
171
+ pnwFooter;
172
+ pnwClearButton;
173
+ pnwOpen = false;
174
+ pnwListening = false;
175
+ pnwOnDocumentPointerDown = (event) => {
176
+ if (!this.pnwOpen || event.composedPath().includes(this))
177
+ return;
178
+ this.pnwSetOpen(false);
179
+ };
180
+ pnwOnViewportChange = () => {
181
+ if (this.pnwOpen)
182
+ this.pnwPlacePopup();
183
+ };
184
+ connectedCallback() {
185
+ this.pnwUpgradePreDefinitionModel();
186
+ this.pnwEnsureDom();
187
+ if (!this.pnwListening) {
188
+ this.ownerDocument.addEventListener("pointerdown", this.pnwOnDocumentPointerDown);
189
+ this.ownerDocument.addEventListener("scroll", this.pnwOnViewportChange, true);
190
+ this.ownerDocument.defaultView?.addEventListener("resize", this.pnwOnViewportChange);
191
+ this.pnwListening = true;
192
+ }
193
+ this.pnwApplyModel();
194
+ }
195
+ disconnectedCallback() {
196
+ this.pnwSetOpen(false);
197
+ if (!this.pnwListening)
198
+ return;
199
+ this.ownerDocument.removeEventListener("pointerdown", this.pnwOnDocumentPointerDown);
200
+ this.ownerDocument.removeEventListener("scroll", this.pnwOnViewportChange, true);
201
+ this.ownerDocument.defaultView?.removeEventListener("resize", this.pnwOnViewportChange);
202
+ this.pnwListening = false;
203
+ }
204
+ set model(value) {
205
+ this.pnwActiveModel = pnwNormalizeComboModel(value);
206
+ this.pnwEnsureDom();
207
+ this.pnwApplyModel();
208
+ }
209
+ get model() { return this.pnwActiveModel; }
210
+ pnwUpgradePreDefinitionModel() {
211
+ if (!Object.prototype.hasOwnProperty.call(this, "model"))
212
+ return;
213
+ const holder = this;
214
+ const model = holder.model;
215
+ delete holder.model;
216
+ this.model = model;
217
+ }
218
+ pnwEnsureDom() {
219
+ if (this.pnwTrigger)
220
+ return;
221
+ const style = this.ownerDocument.createElement("style");
222
+ style.textContent = PNW_COMBO_STYLE;
223
+ const trigger = this.ownerDocument.createElement("button");
224
+ trigger.type = "button";
225
+ trigger.className = "pnw-combo-trigger";
226
+ trigger.setAttribute("part", "trigger");
227
+ trigger.setAttribute("role", "combobox");
228
+ trigger.setAttribute("aria-haspopup", "listbox");
229
+ trigger.setAttribute("aria-expanded", "false");
230
+ trigger.setAttribute("aria-controls", "pnw-combo-listbox");
231
+ const value = this.ownerDocument.createElement("span");
232
+ value.className = "pnw-combo-value";
233
+ value.setAttribute("part", "value");
234
+ trigger.append(value, this.pnwCaret());
235
+ trigger.onclick = () => this.pnwSetOpen(!this.pnwOpen, true);
236
+ trigger.onkeydown = (event) => this.pnwOnTriggerKeyDown(event);
237
+ const popup = this.ownerDocument.createElement("div");
238
+ popup.className = "pnw-combo-popup";
239
+ popup.setAttribute("part", "popup");
240
+ popup.hidden = true;
241
+ popup.onkeydown = (event) => this.pnwOnPopupKeyDown(event);
242
+ const list = this.ownerDocument.createElement("div");
243
+ list.id = "pnw-combo-listbox";
244
+ list.className = "pnw-combo-list";
245
+ list.setAttribute("role", "listbox");
246
+ const footer = this.ownerDocument.createElement("div");
247
+ footer.className = "pnw-combo-footer";
248
+ const clear = this.ownerDocument.createElement("button");
249
+ clear.type = "button";
250
+ clear.className = "pnw-combo-clear";
251
+ clear.setAttribute("part", "clear");
252
+ clear.onclick = () => {
253
+ if (this.pnwActiveModel.disabled || !this.pnwActiveModel.clearEnabled)
254
+ return;
255
+ this.pnwSetOpen(false);
256
+ this.pnwTrigger?.focus();
257
+ this.pnwEmit({ kind: "clear" });
258
+ };
259
+ footer.append(clear);
260
+ popup.append(list, footer);
261
+ this.pnwRoot.replaceChildren(style, trigger, popup);
262
+ this.pnwTrigger = trigger;
263
+ this.pnwValue = value;
264
+ this.pnwPopup = popup;
265
+ this.pnwList = list;
266
+ this.pnwFooter = footer;
267
+ this.pnwClearButton = clear;
268
+ }
269
+ pnwApplyModel() {
270
+ if (!this.pnwTrigger || !this.pnwValue || !this.pnwPopup || !this.pnwList
271
+ || !this.pnwFooter || !this.pnwClearButton)
272
+ return;
273
+ const active = this.pnwRoot.activeElement;
274
+ const focusedRow = active?.closest(".pnw-combo-row");
275
+ const focusedRowIndex = focusedRow
276
+ ? Array.from(this.pnwList.querySelectorAll(".pnw-combo-row")).indexOf(focusedRow)
277
+ : -1;
278
+ const selected = this.pnwActiveModel.items.find(({ id }) => id === this.pnwActiveModel.selectedId);
279
+ this.pnwValue.textContent = selected?.label ?? this.pnwActiveModel.placeholder;
280
+ this.pnwValue.title = selected?.title ?? selected?.label ?? this.pnwActiveModel.placeholder;
281
+ this.pnwTrigger.disabled = this.pnwActiveModel.disabled;
282
+ this.pnwTrigger.title = this.pnwActiveModel.disabledReason
283
+ ?? selected?.title ?? selected?.label ?? this.pnwActiveModel.placeholder;
284
+ this.pnwTrigger.setAttribute("aria-label", this.pnwActiveModel.ariaLabel);
285
+ this.pnwList.setAttribute("aria-label", this.pnwActiveModel.ariaLabel);
286
+ if (this.pnwActiveModel.disabled)
287
+ this.pnwSetOpen(false);
288
+ const groups = new Map();
289
+ for (const item of this.pnwActiveModel.items) {
290
+ const group = item.group ?? "";
291
+ const items = groups.get(group) ?? [];
292
+ items.push(item);
293
+ groups.set(group, items);
294
+ }
295
+ const groupNodes = Array.from(groups, ([group, items]) => this.pnwGroupNode(group, items));
296
+ if (!groupNodes.length) {
297
+ const empty = this.ownerDocument.createElement("div");
298
+ empty.className = "pnw-combo-empty";
299
+ empty.textContent = this.pnwActiveModel.emptyText;
300
+ groupNodes.push(empty);
301
+ }
302
+ this.pnwList.replaceChildren(...groupNodes);
303
+ this.pnwClearButton.textContent = this.pnwActiveModel.clearLabel;
304
+ this.pnwClearButton.disabled = this.pnwActiveModel.disabled || !this.pnwActiveModel.clearEnabled;
305
+ this.pnwClearButton.title = this.pnwActiveModel.clearEnabled
306
+ ? this.pnwActiveModel.clearLabel
307
+ : (this.pnwActiveModel.clearDisabledReason ?? "当前没有可清空的项目");
308
+ this.pnwClearButton.setAttribute("aria-label", this.pnwActiveModel.clearEnabled
309
+ ? this.pnwActiveModel.clearLabel
310
+ : `${this.pnwActiveModel.clearLabel}:${this.pnwClearButton.title}`);
311
+ this.pnwFooter.hidden = this.pnwActiveModel.items.length === 0
312
+ && !this.pnwActiveModel.clearEnabled;
313
+ if (this.pnwOpen && focusedRow) {
314
+ const rows = Array.from(this.pnwList.querySelectorAll(".pnw-combo-row"));
315
+ const retained = rows.find((row) => row.dataset.itemId === focusedRow.dataset.itemId);
316
+ const replacement = retained ?? rows[Math.min(focusedRowIndex, rows.length - 1)];
317
+ const action = active?.classList.contains("pnw-combo-remove") && retained
318
+ ? replacement?.querySelector(".pnw-combo-remove:not(:disabled)")
319
+ : undefined;
320
+ if (replacement)
321
+ (action ?? replacement.querySelector(".pnw-combo-select"))?.focus();
322
+ else {
323
+ this.pnwSetOpen(false);
324
+ this.pnwTrigger.focus();
325
+ }
326
+ }
327
+ if (this.pnwOpen)
328
+ queueMicrotask(() => this.pnwPlacePopup());
329
+ }
330
+ pnwGroupNode(group, items) {
331
+ const groupNode = this.ownerDocument.createElement("div");
332
+ groupNode.className = "pnw-combo-group";
333
+ groupNode.setAttribute("role", "group");
334
+ if (group) {
335
+ const label = this.ownerDocument.createElement("div");
336
+ label.className = "pnw-combo-group-label";
337
+ label.textContent = group;
338
+ label.title = group;
339
+ groupNode.setAttribute("aria-label", group);
340
+ groupNode.append(label);
341
+ }
342
+ for (const item of items)
343
+ groupNode.append(this.pnwItemNode(item));
344
+ return groupNode;
345
+ }
346
+ pnwItemNode(item) {
347
+ const row = this.ownerDocument.createElement("div");
348
+ row.className = "pnw-combo-row";
349
+ row.setAttribute("part", "row");
350
+ row.dataset.itemId = item.id;
351
+ const select = this.ownerDocument.createElement("button");
352
+ select.type = "button";
353
+ select.className = "pnw-combo-select";
354
+ select.setAttribute("role", "option");
355
+ select.setAttribute("aria-selected", item.id === this.pnwActiveModel.selectedId ? "true" : "false");
356
+ select.setAttribute("aria-label", `选择${item.label}`);
357
+ select.textContent = item.label;
358
+ select.title = item.title ?? item.label;
359
+ select.disabled = this.pnwActiveModel.disabled;
360
+ select.onclick = () => {
361
+ if (this.pnwActiveModel.disabled)
362
+ return;
363
+ this.pnwSetOpen(false);
364
+ this.pnwTrigger?.focus();
365
+ this.pnwEmit({ kind: "select", itemId: item.id });
366
+ };
367
+ const remove = this.ownerDocument.createElement("button");
368
+ remove.type = "button";
369
+ remove.className = "pnw-combo-remove";
370
+ remove.textContent = "×";
371
+ remove.disabled = this.pnwActiveModel.disabled || !item.removable;
372
+ remove.title = item.removable ? `删除${item.label}` : (item.removeDisabledReason ?? "此项不能删除");
373
+ remove.setAttribute("aria-label", item.removable
374
+ ? `删除${item.label}`
375
+ : `删除${item.label}:${remove.title}`);
376
+ remove.onclick = (event) => {
377
+ event.stopPropagation();
378
+ if (this.pnwActiveModel.disabled || !item.removable)
379
+ return;
380
+ this.pnwEmit({ kind: "remove", itemId: item.id });
381
+ };
382
+ row.append(select, remove);
383
+ return row;
384
+ }
385
+ pnwSetOpen(open, focusFirst = false) {
386
+ if (!this.pnwTrigger || !this.pnwPopup)
387
+ return;
388
+ this.pnwOpen = open && !this.pnwActiveModel.disabled;
389
+ this.pnwPopup.hidden = !this.pnwOpen;
390
+ this.pnwTrigger.setAttribute("aria-expanded", this.pnwOpen ? "true" : "false");
391
+ if (this.pnwOpen) {
392
+ this.pnwPlacePopup();
393
+ if (focusFirst)
394
+ queueMicrotask(() => {
395
+ if (this.pnwOpen && this.isConnected)
396
+ this.pnwOptionButtons()[0]?.focus();
397
+ });
398
+ }
399
+ }
400
+ pnwPlacePopup() {
401
+ if (!this.pnwOpen || !this.pnwTrigger || !this.pnwPopup)
402
+ return;
403
+ const trigger = this.pnwTrigger.getBoundingClientRect();
404
+ const view = this.ownerDocument.defaultView;
405
+ const viewport = {
406
+ top: 0,
407
+ left: 0,
408
+ right: view?.innerWidth ?? this.ownerDocument.documentElement?.clientWidth ?? trigger.right,
409
+ bottom: view?.innerHeight ?? this.ownerDocument.documentElement?.clientHeight ?? trigger.bottom,
410
+ };
411
+ const boundary = this.pnwClippingBoundary(viewport);
412
+ const gap = 2;
413
+ const below = Math.max(0, boundary.bottom - trigger.bottom - gap);
414
+ const above = Math.max(0, trigger.top - boundary.top - gap);
415
+ const desiredHeight = Math.min(300, Math.max(28, this.pnwPopup.scrollHeight || 300));
416
+ const opensUp = below < desiredHeight && above > below;
417
+ const availableHeight = opensUp ? above : below;
418
+ const maxHeight = Math.min(300, availableHeight);
419
+ const popupHeight = Math.min(desiredHeight, maxHeight);
420
+ const boundaryWidth = Math.max(0, boundary.right - boundary.left);
421
+ const popupWidth = Math.min(Math.max(0, trigger.width), boundaryWidth);
422
+ const furthestLeft = Math.max(boundary.left, boundary.right - popupWidth);
423
+ const left = Math.min(Math.max(trigger.left, boundary.left), furthestLeft);
424
+ const top = opensUp
425
+ ? Math.max(boundary.top, trigger.top - gap - popupHeight)
426
+ : trigger.bottom + gap;
427
+ this.pnwPopup.dataset.placement = opensUp ? "top" : "bottom";
428
+ this.pnwPopup.style.left = `${Math.round(left)}px`;
429
+ this.pnwPopup.style.top = `${Math.round(top)}px`;
430
+ this.pnwPopup.style.width = `${Math.round(popupWidth)}px`;
431
+ this.pnwPopup.style.maxHeight = `${Math.max(0, Math.floor(maxHeight))}px`;
432
+ }
433
+ pnwClippingBoundary(viewport) {
434
+ const boundary = { ...viewport };
435
+ const view = this.ownerDocument.defaultView;
436
+ let ancestor = this.assignedSlot ?? this.parentElement
437
+ ?? this.getRootNode().host ?? null;
438
+ while (ancestor) {
439
+ const style = view?.getComputedStyle(ancestor);
440
+ if (style && /(?:auto|scroll|hidden|clip)/u.test(`${style.overflow} ${style.overflowX} ${style.overflowY}`)) {
441
+ const rect = ancestor.getBoundingClientRect();
442
+ boundary.top = Math.max(boundary.top, rect.top);
443
+ boundary.left = Math.max(boundary.left, rect.left);
444
+ boundary.right = Math.min(boundary.right, rect.right);
445
+ boundary.bottom = Math.min(boundary.bottom, rect.bottom);
446
+ }
447
+ ancestor = ancestor.assignedSlot ?? ancestor.parentElement
448
+ ?? ancestor.getRootNode().host ?? null;
449
+ }
450
+ return boundary;
451
+ }
452
+ pnwOnTriggerKeyDown(event) {
453
+ if (event.key === "ArrowDown" || event.key === "ArrowUp") {
454
+ event.preventDefault();
455
+ this.pnwSetOpen(true);
456
+ const options = this.pnwOptionButtons();
457
+ queueMicrotask(() => {
458
+ if (this.pnwOpen && this.isConnected)
459
+ (event.key === "ArrowUp" ? options.at(-1) : options[0])?.focus();
460
+ });
461
+ return;
462
+ }
463
+ if (event.key === "Escape" && this.pnwOpen) {
464
+ event.preventDefault();
465
+ this.pnwSetOpen(false);
466
+ }
467
+ }
468
+ pnwOnPopupKeyDown(event) {
469
+ if (event.key === "Escape") {
470
+ event.preventDefault();
471
+ this.pnwSetOpen(false);
472
+ this.pnwTrigger?.focus();
473
+ return;
474
+ }
475
+ if (event.key === "Tab") {
476
+ this.pnwSetOpen(false);
477
+ // Let native Tab/Shift+Tab continue from the trigger, not a hidden option.
478
+ this.pnwTrigger?.focus();
479
+ return;
480
+ }
481
+ if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(event.key))
482
+ return;
483
+ const options = this.pnwOptionButtons();
484
+ if (!options.length)
485
+ return;
486
+ event.preventDefault();
487
+ const current = this.pnwRoot.activeElement;
488
+ const index = options.findIndex((option) => option === current);
489
+ const next = event.key === "Home" ? 0
490
+ : event.key === "End" ? options.length - 1
491
+ : event.key === "ArrowDown" ? (index + 1 + options.length) % options.length
492
+ : (index - 1 + options.length) % options.length;
493
+ options[next]?.focus();
494
+ }
495
+ pnwOptionButtons() {
496
+ return Array.from(this.pnwRoot.querySelectorAll('.pnw-combo-select[role="option"]'));
497
+ }
498
+ pnwCaret() {
499
+ const svg = this.ownerDocument.createElementNS("http://www.w3.org/2000/svg", "svg");
500
+ svg.classList.add("pnw-combo-caret");
501
+ svg.setAttribute("viewBox", "0 0 16 16");
502
+ svg.setAttribute("aria-hidden", "true");
503
+ const path = this.ownerDocument.createElementNS("http://www.w3.org/2000/svg", "path");
504
+ path.setAttribute("d", "M4 6l4 4 4-4");
505
+ svg.append(path);
506
+ return svg;
507
+ }
508
+ pnwEmit(detail) {
509
+ this.dispatchEvent(new CustomEvent(PNW_COMBO_ACTION, {
510
+ detail: Object.freeze({ ...detail }),
511
+ bubbles: true,
512
+ composed: true,
513
+ }));
514
+ }
515
+ }
516
+ export function pnwNormalizeComboModel(value) {
517
+ if (!value)
518
+ return PNW_EMPTY_COMBO_MODEL;
519
+ const items = [];
520
+ const seen = new Set();
521
+ for (const candidate of value.items ?? []) {
522
+ const id = pnwComboText(candidate.id, 512);
523
+ const label = pnwComboText(candidate.label, 1_024);
524
+ if (!id || !label || seen.has(id))
525
+ continue;
526
+ seen.add(id);
527
+ items.push(Object.freeze({
528
+ id,
529
+ label,
530
+ ...(pnwComboText(candidate.group, 256)
531
+ ? { group: pnwComboText(candidate.group, 256) }
532
+ : {}),
533
+ ...(pnwComboText(candidate.title, 2_048)
534
+ ? { title: pnwComboText(candidate.title, 2_048) }
535
+ : {}),
536
+ removable: candidate.removable === true,
537
+ ...(pnwComboText(candidate.removeDisabledReason, 512)
538
+ ? { removeDisabledReason: pnwComboText(candidate.removeDisabledReason, 512) }
539
+ : {}),
540
+ }));
541
+ if (items.length >= 200)
542
+ break;
543
+ }
544
+ const selectedId = pnwComboText(value.selectedId, 512);
545
+ const selected = selectedId && items.some(({ id }) => id === selectedId)
546
+ ? selectedId
547
+ : undefined;
548
+ return Object.freeze({
549
+ ariaLabel: pnwComboText(value.ariaLabel, 256) || PNW_EMPTY_COMBO_MODEL.ariaLabel,
550
+ placeholder: pnwComboText(value.placeholder, 512) || PNW_EMPTY_COMBO_MODEL.placeholder,
551
+ emptyText: pnwComboText(value.emptyText, 512) || PNW_EMPTY_COMBO_MODEL.emptyText,
552
+ items: Object.freeze(items),
553
+ ...(selected ? { selectedId: selected } : {}),
554
+ disabled: value.disabled === true,
555
+ ...(pnwComboText(value.disabledReason, 512)
556
+ ? { disabledReason: pnwComboText(value.disabledReason, 512) }
557
+ : {}),
558
+ clearEnabled: value.clearEnabled === true && items.some(({ removable }) => removable),
559
+ clearLabel: pnwComboText(value.clearLabel, 128) || PNW_EMPTY_COMBO_MODEL.clearLabel,
560
+ ...(pnwComboText(value.clearDisabledReason, 512)
561
+ ? { clearDisabledReason: pnwComboText(value.clearDisabledReason, 512) }
562
+ : {}),
563
+ });
564
+ }
565
+ export function pnwCodeDefineCombo(tagName = PNW_COMBO_TAG) {
566
+ const existing = customElements.get(tagName);
567
+ if (existing)
568
+ return existing;
569
+ customElements.define(tagName, PnwCombo);
570
+ return PnwCombo;
571
+ }
572
+ function pnwComboText(value, maxLength) {
573
+ return typeof value === "string" ? value.trim().slice(0, maxLength) : "";
574
+ }
575
+ //# sourceMappingURL=PnwCombo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PnwCombo.js","sourceRoot":"","sources":["../../../src/ui/elements/PnwCombo.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC;AACzC,MAAM,CAA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,QAA2B,CAAC;IACjD,cAAc,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACzC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,YAAY,CAAC,KAAc,EAAE,SAAiB;IACrD,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3E,CAAC"}
@@ -3,4 +3,6 @@ export * from "./PnwCodeReorderMembersPanel.js";
3
3
  export * from "./PnwCodeUuidResultsPanel.js";
4
4
  export * from "./PnwCodeRenameResultsPanel.js";
5
5
  export * from "./elements/PnwNavigationTreeView.js";
6
+ export * from "./elements/PnwCombo.js";
7
+ export * from "./elements/PnwCleanupDialog.js";
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC"}
package/dist/ui/index.js CHANGED
@@ -4,4 +4,6 @@ export * from "./PnwCodeReorderMembersPanel.js";
4
4
  export * from "./PnwCodeUuidResultsPanel.js";
5
5
  export * from "./PnwCodeRenameResultsPanel.js";
6
6
  export * from "./elements/PnwNavigationTreeView.js";
7
+ export * from "./elements/PnwCombo.js";
8
+ export * from "./elements/PnwCleanupDialog.js";
7
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,cAAc,YAAY,CAAC;AAC3B,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,cAAc,YAAY,CAAC;AAC3B,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phoenix-wing/code-core",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "description": "Phoenix Code 跨宿主纯 TypeScript 算法与契约",
5
5
  "type": "module",
6
6
  "sideEffects": false,