@praxisui/core 10.0.0-rc.73 → 10.0.0-rc.75

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-11-30T10:31:05.656Z",
3
+ "generatedAt": "2026-11-30T22:31:33.945Z",
4
4
  "packageName": "@praxisui/core",
5
- "packageVersion": "10.0.0-rc.73",
5
+ "packageVersion": "10.0.0-rc.75",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 4,
@@ -11037,6 +11037,7 @@ const PRAXIS_SHELL_EN_US = {
11037
11037
  'praxis.shell.commandPalette.prefixResources': 'Resources',
11038
11038
  'praxis.shell.commandPalette.resultsTitle': 'Available commands',
11039
11039
  'praxis.shell.commandPalette.remoteSearch': 'Search remote catalog',
11040
+ 'praxis.shell.commandPalette.remoteError': 'Could not search the remote catalog. Try again.',
11040
11041
  'praxis.shell.commandPalette.remoteSearching': 'Searching...',
11041
11042
  'praxis.shell.commandPalette.kbdHint': '↑↓ navigate · Enter open · Esc close',
11042
11043
  'praxis.shell.commandPalette.empty': 'No matching command or resource found.',
@@ -11104,6 +11105,7 @@ const PRAXIS_SHELL_PT_BR = {
11104
11105
  'praxis.shell.commandPalette.prefixResources': 'Recursos',
11105
11106
  'praxis.shell.commandPalette.resultsTitle': 'Comandos disponíveis',
11106
11107
  'praxis.shell.commandPalette.remoteSearch': 'Pesquisar no catálogo remoto',
11108
+ 'praxis.shell.commandPalette.remoteError': 'Não foi possível consultar o catálogo remoto. Tente novamente.',
11107
11109
  'praxis.shell.commandPalette.remoteSearching': 'Pesquisando...',
11108
11110
  'praxis.shell.commandPalette.kbdHint': '↑↓ navegar · Enter abrir · Esc fechar',
11109
11111
  'praxis.shell.commandPalette.empty': 'Nenhum comando ou recurso compatível encontrado.',
@@ -19824,6 +19826,25 @@ function normalizeNonNegativeInt(value, fallback) {
19824
19826
  return fallback;
19825
19827
  }
19826
19828
 
19829
+ /** Resolves a scalar record value against the filtered schema's normalized options. */
19830
+ function resolveFieldOptionLabel(value, options) {
19831
+ if (!options?.length || value == null || typeof value === 'object' || isMaskedPresentationToken(value)) {
19832
+ return undefined;
19833
+ }
19834
+ const key = String(value);
19835
+ for (const option of options) {
19836
+ if (!option || typeof option !== 'object')
19837
+ continue;
19838
+ const optionKey = option['key'] ?? option['value'];
19839
+ if (optionKey == null || String(optionKey) !== key)
19840
+ continue;
19841
+ const label = option['label'] ?? option['value'];
19842
+ if (typeof label === 'string' && label.trim())
19843
+ return label;
19844
+ }
19845
+ return undefined;
19846
+ }
19847
+
19827
19848
  const DEFAULT_LOCALE = 'en-US';
19828
19849
  const DEFAULT_DATE_TIME = {
19829
19850
  dateFormat: 'shortDate',
@@ -22105,16 +22126,23 @@ function materializeResourceIdentity(contract, record, fields = []) {
22105
22126
  ...(field?.presentation ? { presentation: field.presentation } : {}),
22106
22127
  };
22107
22128
  };
22129
+ const textPart = (fieldName) => {
22130
+ const raw = part(fieldName);
22131
+ if (!raw)
22132
+ return undefined;
22133
+ const formattedValue = resolveFieldOptionLabel(raw.value, byName.get(raw.field)?.options);
22134
+ return formattedValue && formattedValue !== String(raw.value) ? { ...raw, formattedValue } : raw;
22135
+ };
22108
22136
  const displayLabelValue = contract.displayLabelField
22109
22137
  ? record[contract.displayLabelField]
22110
22138
  : undefined;
22111
22139
  const identity = {
22112
22140
  key: part(contract.keyField),
22113
- title: part(contract.titleField),
22114
- subtitle: part(contract.subtitleField),
22141
+ title: textPart(contract.titleField),
22142
+ subtitle: textPart(contract.subtitleField),
22115
22143
  avatar: part(contract.avatarField),
22116
22144
  metadata: (contract.metadataFields ?? [])
22117
- .map((fieldName) => part(fieldName))
22145
+ .map(textPart)
22118
22146
  .filter((value) => !!value),
22119
22147
  ...(hasDisplayValue(displayLabelValue)
22120
22148
  ? { displayLabel: String(displayLabelValue).trim() }
@@ -22378,15 +22406,17 @@ function normalizeIdentity(value) {
22378
22406
  return undefined;
22379
22407
  const key = normalizeIdentityPart(value['key']);
22380
22408
  const title = normalizeIdentityPart(value['title']);
22409
+ const subtitle = normalizeIdentityPart(value['subtitle']);
22381
22410
  const metadata = value['metadata']
22382
22411
  .map((item) => normalizeIdentityPart(item))
22383
22412
  .filter((item) => !!item);
22384
22413
  const displayLabel = normalizeText(value['displayLabel']);
22385
- if (!key && !title && !metadata.length && !displayLabel)
22414
+ if (!key && !title && !subtitle && !metadata.length && !displayLabel)
22386
22415
  return undefined;
22387
22416
  return {
22388
22417
  ...(key ? { key } : {}),
22389
22418
  ...(title ? { title } : {}),
22419
+ ...(subtitle ? { subtitle } : {}),
22390
22420
  metadata,
22391
22421
  ...(displayLabel ? { displayLabel } : {}),
22392
22422
  ...(value['source'] === 'explicit'
@@ -22404,11 +22434,13 @@ function normalizeIdentityPart(value) {
22404
22434
  if (!field || partValue === undefined)
22405
22435
  return undefined;
22406
22436
  const label = normalizeText(value['label']);
22437
+ const formattedValue = isMaskedPresentationToken(partValue) ? undefined : normalizeText(value['formattedValue']);
22407
22438
  const presentation = cloneJsonRecord(value['presentation']);
22408
22439
  return {
22409
22440
  field,
22410
22441
  ...(label ? { label } : {}),
22411
22442
  value: partValue,
22443
+ ...(formattedValue ? { formattedValue } : {}),
22412
22444
  ...(presentation ? { presentation } : {}),
22413
22445
  };
22414
22446
  }
@@ -25337,7 +25369,7 @@ class ResourceQuickViewService {
25337
25369
  sanitizedIdentity?.key?.value ||
25338
25370
  summaryItems.length > 0);
25339
25371
  const resolvedIcon = this.extractResourceIcon(projection);
25340
- const identitySubtitle = String(sanitizedIdentity?.subtitle?.value ?? '').trim() || null;
25372
+ const identitySubtitle = String(sanitizedIdentity?.subtitle?.formattedValue ?? sanitizedIdentity?.subtitle?.value ?? '').trim() || null;
25341
25373
  const emptyFallbackSubtitle = identitySubtitle || (projection.surface.description ?? null);
25342
25374
  const resolvedAvatarUrl = this.sanitizeAvatarUrl(sanitizedIdentity?.avatar?.value);
25343
25375
  const ctaAvailable = this.resolveTargetCtaAvailability(binding, projection);
@@ -25366,7 +25398,7 @@ class ResourceQuickViewService {
25366
25398
  failureReason: this.translate('quickView.emptySummary', 'Nenhum atributo resumido está disponível para este registro.'),
25367
25399
  };
25368
25400
  }
25369
- const resolvedTitle = String(sanitizedIdentity?.title?.value ??
25401
+ const resolvedTitle = String(sanitizedIdentity?.title?.formattedValue ?? sanitizedIdentity?.title?.value ??
25370
25402
  sanitizedIdentity?.displayLabel ??
25371
25403
  projection.surface.title ??
25372
25404
  binding.recordOpen.target.resourceKey).trim() || binding.recordOpen.target.resourceKey;
@@ -25401,17 +25433,14 @@ class ResourceQuickViewService {
25401
25433
  if (!identity) {
25402
25434
  return null;
25403
25435
  }
25404
- if (!Array.isArray(fields) || fields.length === 0) {
25405
- return identity;
25406
- }
25407
- const fieldMap = new Map(fields.map((field) => [field.name, field]));
25436
+ const fieldMap = new Map((fields ?? []).map((field) => [field.name, field]));
25408
25437
  const activeAuthorities = this.resolveActiveAuthorities();
25409
25438
  const isFieldHidden = (fieldName) => {
25410
25439
  const fieldDef = fieldMap.get(fieldName);
25411
25440
  if (fieldDef?.hidden) {
25412
25441
  return true;
25413
25442
  }
25414
- return !Object.prototype.hasOwnProperty.call(sanitizedRecord, fieldName);
25443
+ return fieldMap.size > 0 && !Object.prototype.hasOwnProperty.call(sanitizedRecord, fieldName);
25415
25444
  };
25416
25445
  const isFieldRestricted = (fieldName) => {
25417
25446
  const fieldDef = fieldMap.get(fieldName);
@@ -25430,19 +25459,18 @@ class ResourceQuickViewService {
25430
25459
  if (isFieldHidden(part.field)) {
25431
25460
  return undefined;
25432
25461
  }
25433
- if (isFieldRestricted(part.field)) {
25462
+ const value = sanitizedRecord[part.field] ?? part.value;
25463
+ if (isFieldRestricted(part.field) || isMaskedPresentationToken(value)) {
25434
25464
  if (options?.omitWhenRestricted) {
25435
25465
  return undefined;
25436
25466
  }
25437
25467
  return {
25438
- ...part,
25439
- value: sanitizedRecord[part.field] ?? '••••••',
25468
+ field: part.field,
25469
+ ...(part.label ? { label: part.label } : {}),
25470
+ value: isMaskedPresentationToken(value) ? value : '••••••',
25440
25471
  };
25441
25472
  }
25442
- return {
25443
- ...part,
25444
- value: sanitizedRecord[part.field] ?? part.value,
25445
- };
25473
+ return { ...part, value };
25446
25474
  };
25447
25475
  const key = sanitizePart(identity.key);
25448
25476
  const title = sanitizePart(identity.title);
@@ -25807,6 +25835,8 @@ class ResourceQuickViewService {
25807
25835
  .filter((text) => text.length > 0);
25808
25836
  return formattedElements.join(', ');
25809
25837
  }
25838
+ if (isMaskedPresentationToken(rawValue))
25839
+ return String(rawValue);
25810
25840
  const presentation = fieldDef?.presentation;
25811
25841
  if (typeof rawValue === 'boolean') {
25812
25842
  const boolLabel = rawValue
@@ -25820,12 +25850,11 @@ class ResourceQuickViewService {
25820
25850
  : this.translate('quickView.booleanFalse', 'Não');
25821
25851
  }
25822
25852
  const rawKey = String(rawValue);
25823
- const matchedOption = fieldDef?.options?.find((opt) => String(opt.key ?? opt.value) === rawKey);
25824
- if (matchedOption) {
25825
- const mappedOpt = String(matchedOption.label ?? matchedOption.value ?? rawKey);
25853
+ const optionLabel = resolveFieldOptionLabel(rawValue, fieldDef?.options);
25854
+ if (optionLabel !== undefined) {
25826
25855
  const prefix = presentation?.prefix ?? '';
25827
25856
  const suffix = presentation?.suffix ?? '';
25828
- return `${prefix}${mappedOpt}${suffix}`;
25857
+ return `${prefix}${optionLabel}${suffix}`;
25829
25858
  }
25830
25859
  if (presentation?.label) {
25831
25860
  const prefix = presentation.prefix ?? '';
@@ -49059,7 +49088,7 @@ function createPresentationRows(fields, sectionId, policy) {
49059
49088
  for (const field of presentationFields) {
49060
49089
  const span = shouldUseSchemaWidth(field, policy, summarySpan)
49061
49090
  ? resolveCommandSpan(field)
49062
- : (summarySpan ?? { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 });
49091
+ : (summarySpan ?? resolvePresentationFallbackSpan(field, policy));
49063
49092
  const packingSpan = resolvePresentationRowPackingSpan(span, policy);
49064
49093
  const column = {
49065
49094
  id: `${sectionId}-col-${field.name}`,
@@ -49088,6 +49117,14 @@ function createPresentationRows(fields, sectionId, policy) {
49088
49117
  flush();
49089
49118
  return rows;
49090
49119
  }
49120
+ function resolvePresentationFallbackSpan(field, policy) {
49121
+ let span = 12;
49122
+ if (policy.preset === 'compactPresentation' && policy.intent === 'detail') {
49123
+ const width = !field.controlType && field.array ? 'full' : widthForResolvedControl(field);
49124
+ span = { xs: 3, sm: 4, md: 6, full: 12 }[width];
49125
+ }
49126
+ return { xs: 12, sm: 12, md: span, lg: span, xl: span };
49127
+ }
49091
49128
  function createCommandRows(fields, sectionId, policy) {
49092
49129
  const rows = [];
49093
49130
  let pending = [];
@@ -49600,8 +49637,10 @@ function inferSemanticFieldWidth(field) {
49600
49637
  rawWidth === 'full') {
49601
49638
  return rawWidth;
49602
49639
  }
49603
- const calibrated = calibrateFieldMetadataFromSemantics((field || {}));
49604
- const controlType = String(calibrated.controlType ?? '').trim();
49640
+ return widthForResolvedControl(calibrateFieldMetadataFromSemantics((field || {})));
49641
+ }
49642
+ function widthForResolvedControl(field) {
49643
+ const controlType = String(field.controlType ?? '').trim();
49605
49644
  if (controlType === FieldControlType.TEXTAREA ||
49606
49645
  controlType === FieldControlType.RICH_TEXT_EDITOR ||
49607
49646
  controlType === FieldControlType.FILE_UPLOAD ||
@@ -49623,7 +49662,7 @@ function inferSemanticFieldWidth(field) {
49623
49662
  controlType === FieldControlType.CURRENCY_INPUT ||
49624
49663
  controlType === FieldControlType.NUMERIC_TEXT_BOX ||
49625
49664
  controlType === FieldControlType.COLOR_PICKER ||
49626
- calibrated.mask === '00000-000') {
49665
+ field.mask === '00000-000') {
49627
49666
  return 'sm';
49628
49667
  }
49629
49668
  return 'md';
@@ -61709,7 +61748,10 @@ class PraxisResourceIdentityComponent {
61709
61748
  if (!this.identity) {
61710
61749
  return this.emptyTitle.trim();
61711
61750
  }
61712
- return String(this.identity.title?.value ?? this.identity.displayLabel ?? '').trim();
61751
+ return String(this.displayValue(this.identity.title) ?? this.identity.displayLabel ?? '').trim();
61752
+ }
61753
+ displayValue(part) {
61754
+ return isMaskedPresentationToken(part?.value) ? part?.value : part?.formattedValue ?? part?.value;
61713
61755
  }
61714
61756
  prefix(item) {
61715
61757
  return item.presentation?.prefix ?? '';
@@ -61754,7 +61796,7 @@ class PraxisResourceIdentityComponent {
61754
61796
  @if (showMetadataLabels && item.label) {
61755
61797
  <span class="identity__meta-label">{{ item.label }}</span>
61756
61798
  }
61757
- <span>{{ prefix(item) }}{{ item.value }}{{ suffix(item) }}</span>
61799
+ <span>{{ prefix(item) }}{{ displayValue(item) }}{{ suffix(item) }}</span>
61758
61800
  </span>
61759
61801
  }
61760
61802
  </div>
@@ -61797,7 +61839,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
61797
61839
  @if (showMetadataLabels && item.label) {
61798
61840
  <span class="identity__meta-label">{{ item.label }}</span>
61799
61841
  }
61800
- <span>{{ prefix(item) }}{{ item.value }}{{ suffix(item) }}</span>
61842
+ <span>{{ prefix(item) }}{{ displayValue(item) }}{{ suffix(item) }}</span>
61801
61843
  </span>
61802
61844
  }
61803
61845
  </div>
@@ -91158,6 +91200,8 @@ class PraxisCommandPaletteComponent {
91158
91200
  query = signal('', ...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
91159
91201
  activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
91160
91202
  remoteBusy = signal(false, ...(ngDevMode ? [{ debugName: "remoteBusy" }] : /* istanbul ignore next */ []));
91203
+ remoteFailed = signal(false, ...(ngDevMode ? [{ debugName: "remoteFailed" }] : /* istanbul ignore next */ []));
91204
+ explicitSelectionKey = null;
91161
91205
  remoteItems = signal([], ...(ngDevMode ? [{ debugName: "remoteItems" }] : /* istanbul ignore next */ []));
91162
91206
  previouslyFocusedElement = null;
91163
91207
  suppressNextFocusRestore = false;
@@ -91176,6 +91220,7 @@ class PraxisCommandPaletteComponent {
91176
91220
  prefixResources: this.translate('praxis.shell.commandPalette.prefixResources'),
91177
91221
  resultsTitle: this.translate('praxis.shell.commandPalette.resultsTitle'),
91178
91222
  remoteSearch: this.translate('praxis.shell.commandPalette.remoteSearch'),
91223
+ remoteError: this.translate('praxis.shell.commandPalette.remoteError'),
91179
91224
  remoteSearching: this.translate('praxis.shell.commandPalette.remoteSearching'),
91180
91225
  kbdHint: this.translate('praxis.shell.commandPalette.kbdHint'),
91181
91226
  empty: this.translate('praxis.shell.commandPalette.empty'),
@@ -91233,7 +91278,7 @@ class PraxisCommandPaletteComponent {
91233
91278
  const seen = new Set();
91234
91279
  const combined = [];
91235
91280
  for (const item of [...remoteMatched, ...localMatched]) {
91236
- const dedupeKey = item.id ?? `${item.path}::${item.label}`;
91281
+ const dedupeKey = this.itemKey(item);
91237
91282
  if (seen.has(dedupeKey)) {
91238
91283
  continue;
91239
91284
  }
@@ -91322,6 +91367,8 @@ class PraxisCommandPaletteComponent {
91322
91367
  openPalette(initialQuery = '') {
91323
91368
  this.capturePreviouslyFocusedElement();
91324
91369
  this.remoteSearchSeq++;
91370
+ this.explicitSelectionKey = null;
91371
+ this.remoteFailed.set(false);
91325
91372
  this.query.set(initialQuery);
91326
91373
  this.remoteItems.set([]);
91327
91374
  this.remoteBusy.set(false);
@@ -91334,6 +91381,8 @@ class PraxisCommandPaletteComponent {
91334
91381
  return;
91335
91382
  }
91336
91383
  this.remoteSearchSeq++;
91384
+ this.explicitSelectionKey = null;
91385
+ this.remoteFailed.set(false);
91337
91386
  this.remoteBusy.set(false);
91338
91387
  const shouldRestoreFocus = options?.restoreFocus !== false && !this.suppressNextFocusRestore;
91339
91388
  this.suppressNextFocusRestore = false;
@@ -91347,6 +91396,8 @@ class PraxisCommandPaletteComponent {
91347
91396
  }
91348
91397
  setQuery(value) {
91349
91398
  this.remoteSearchSeq++;
91399
+ this.explicitSelectionKey = null;
91400
+ this.remoteFailed.set(false);
91350
91401
  this.query.set(value);
91351
91402
  this.remoteItems.set([]);
91352
91403
  this.remoteBusy.set(false);
@@ -91378,23 +91429,23 @@ class PraxisCommandPaletteComponent {
91378
91429
  if (event.key === 'ArrowDown') {
91379
91430
  event.preventDefault();
91380
91431
  if (items.length > 0) {
91381
- this.activeIndex.set((this.activeIndex() + 1) % items.length);
91432
+ this.selectOption((this.activeIndex() + 1) % items.length);
91382
91433
  }
91383
91434
  }
91384
91435
  else if (event.key === 'ArrowUp') {
91385
91436
  event.preventDefault();
91386
91437
  if (items.length > 0) {
91387
- this.activeIndex.set((this.activeIndex() - 1 + items.length) % items.length);
91438
+ this.selectOption((Math.max(0, this.activeIndex()) - 1 + items.length) % items.length);
91388
91439
  }
91389
91440
  }
91390
91441
  else if (event.key === 'Home') {
91391
91442
  event.preventDefault();
91392
- this.activeIndex.set(0);
91443
+ this.selectOption(0);
91393
91444
  }
91394
91445
  else if (event.key === 'End') {
91395
91446
  event.preventDefault();
91396
91447
  if (items.length > 0) {
91397
- this.activeIndex.set(items.length - 1);
91448
+ this.selectOption(items.length - 1);
91398
91449
  }
91399
91450
  }
91400
91451
  else if (event.key === 'Enter') {
@@ -91410,13 +91461,22 @@ class PraxisCommandPaletteComponent {
91410
91461
  this.closePalette();
91411
91462
  }
91412
91463
  }
91413
- async triggerRemoteSearch() {
91464
+ selectOption(index) {
91465
+ this.activeIndex.set(index);
91466
+ const item = this.filteredItems()[index];
91467
+ this.explicitSelectionKey = item ? this.itemKey(item) : null;
91468
+ }
91469
+ async triggerRemoteSearch(event) {
91414
91470
  const searcher = this.remoteSearch();
91415
91471
  const term = this.cleanSearchTerm();
91416
- if (!searcher || !term || !this.open()) {
91472
+ if (!searcher || !term || !this.open() || this.remoteBusy()) {
91417
91473
  return;
91418
91474
  }
91475
+ if (event?.currentTarget === this.doc?.activeElement) {
91476
+ this.searchInputRef?.nativeElement.focus();
91477
+ }
91419
91478
  const requestToken = ++this.remoteSearchSeq;
91479
+ this.remoteFailed.set(false);
91420
91480
  this.remoteBusy.set(true);
91421
91481
  try {
91422
91482
  const found = await searcher(term);
@@ -91426,11 +91486,13 @@ class PraxisCommandPaletteComponent {
91426
91486
  return;
91427
91487
  }
91428
91488
  this.remoteItems.set(Array.isArray(found) ? found : []);
91429
- this.activeIndex.set(0);
91489
+ this.restoreSearchSelection();
91430
91490
  }
91431
91491
  catch {
91432
91492
  if (requestToken === this.remoteSearchSeq) {
91433
91493
  this.remoteItems.set([]);
91494
+ this.restoreSearchSelection();
91495
+ this.remoteFailed.set(true);
91434
91496
  }
91435
91497
  }
91436
91498
  finally {
@@ -91480,8 +91542,15 @@ class PraxisCommandPaletteComponent {
91480
91542
  optionDomId(index) {
91481
91543
  return `${this.listboxId}-option-${index}`;
91482
91544
  }
91483
- trackItem(index, item) {
91484
- return item.id ?? `${item.path}:${item.label}:${index}`;
91545
+ restoreSearchSelection() {
91546
+ const key = this.explicitSelectionKey;
91547
+ this.activeIndex.set(key === null ? 0 : this.filteredItems().findIndex(item => this.itemKey(item) === key));
91548
+ }
91549
+ trackItem(_index, item) {
91550
+ return this.itemKey(item);
91551
+ }
91552
+ itemKey(item) {
91553
+ return item.id ?? `${item.path}::${item.label}`;
91485
91554
  }
91486
91555
  translate(key) {
91487
91556
  const locale = (this.i18n?.activeLocale?.() ?? this.i18n?.getLocale?.() ?? '').toLowerCase();
@@ -91734,9 +91803,9 @@ class PraxisCommandPaletteComponent {
91734
91803
  class="praxis-cmd-remote-btn"
91735
91804
  [disabled]="remoteBusy()"
91736
91805
  data-testid="praxis-command-palette-remote-btn"
91737
- (click)="triggerRemoteSearch()"
91806
+ (click)="triggerRemoteSearch($event)"
91738
91807
  >
91739
- <span class="material-symbols-outlined" aria-hidden="true">cloud_search</span>
91808
+ <span class="material-symbols-outlined" aria-hidden="true">manage_search</span>
91740
91809
  <span>{{ remoteBusy() ? text().remoteSearching : text().remoteSearch }}</span>
91741
91810
  </button>
91742
91811
  }
@@ -91744,7 +91813,13 @@ class PraxisCommandPaletteComponent {
91744
91813
  </div>
91745
91814
  </div>
91746
91815
 
91816
+ @if (remoteFailed()) {
91817
+ <p class="praxis-cmd-empty" role="status">{{ text().remoteError }}</p>
91818
+ }
91747
91819
  @if (filteredItems().length > 0) {
91820
+ @if (remoteBusy()) {
91821
+ <span class="cdk-visually-hidden" role="status">{{ text().remoteSearching }}</span>
91822
+ }
91748
91823
  <div
91749
91824
  [id]="listboxId"
91750
91825
  class="praxis-cmd-listbox"
@@ -91761,7 +91836,7 @@ class PraxisCommandPaletteComponent {
91761
91836
  [class.is-selected]="activeIndex() === idx"
91762
91837
  [attr.aria-selected]="activeIndex() === idx ? 'true' : 'false'"
91763
91838
  [attr.data-testid]="'praxis-command-option-' + idx"
91764
- (mouseenter)="activeIndex.set(idx)"
91839
+ (mouseenter)="selectOption(idx)"
91765
91840
  (click)="executeItem(item)"
91766
91841
  >
91767
91842
  <span class="material-symbols-outlined praxis-cmd-option-icon" aria-hidden="true">
@@ -91782,20 +91857,20 @@ class PraxisCommandPaletteComponent {
91782
91857
  </button>
91783
91858
  }
91784
91859
  </div>
91785
- } @else {
91860
+ } @else if (!remoteFailed()) {
91786
91861
  <p
91787
91862
  class="praxis-cmd-empty"
91788
91863
  role="status"
91789
91864
  aria-live="polite"
91790
91865
  data-testid="praxis-command-palette-empty"
91791
91866
  >
91792
- {{ text().empty }}
91867
+ {{ remoteBusy() ? text().remoteSearching : text().empty }}
91793
91868
  </p>
91794
91869
  }
91795
91870
  </section>
91796
91871
  </div>
91797
91872
  }
91798
- `, isInline: true, styles: [".praxis-cmd-backdrop{position:fixed;inset:0;z-index:var(--praxis-z-command-palette, 1350);display:grid;place-items:start center;padding:min(10vh,72px) 16px 24px;background:color-mix(in oklab,var(--background, #0f172a) 38%,rgb(15 23 42 / 55%));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.praxis-cmd-modal{width:min(720px,100%);display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:var(--radius-xl, 16px);background:var(--card, var(--md-sys-color-surface-container, #1e293b));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));box-shadow:var(--shadow-panel, 0 20px 44px -16px rgb(15 23 42 / 32%))}.praxis-cmd-input-row{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:10px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--background, var(--md-sys-color-surface, #0f172a))}.praxis-cmd-input-icon{font-size:20px;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-input{flex:1 1 auto;min-width:0;border:0;background:transparent;color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.92rem;outline:none}.praxis-cmd-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8));cursor:pointer}.praxis-cmd-icon-btn:hover,.praxis-cmd-icon-btn:focus-visible{background:var(--secondary, color-mix(in oklab, var(--primary, #0369a1) 10%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc))}.praxis-cmd-prefixes{display:flex;flex-wrap:wrap;gap:6px}.praxis-cmd-prefix-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.74rem;font-weight:600;cursor:pointer}.praxis-cmd-prefix-pill code{font-weight:700;color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-prefix-pill.is-active{border-color:var(--primary, var(--md-sys-color-primary, #0369a1));background:color-mix(in oklab,var(--primary, #0369a1) 14%,var(--card, #1e293b));color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-header-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:.74rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-header-actions{display:inline-flex;align-items:center;gap:10px}.praxis-cmd-remote-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.72rem;font-weight:600;cursor:pointer}.praxis-cmd-listbox{display:flex;flex-direction:column;gap:4px;max-height:min(46vh,380px);overflow-y:auto}.praxis-cmd-option{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;width:100%;padding:9px 10px;text-align:left;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));cursor:pointer}.praxis-cmd-option.is-selected,.praxis-cmd-option:focus-visible{border-color:color-mix(in oklab,var(--primary, #0369a1) 35%,var(--border, rgb(148 163 184 / 24%)));background:color-mix(in oklab,var(--primary, #0369a1) 10%,var(--card, #1e293b));outline:none}.praxis-cmd-option-icon{font-size:19px;color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-option-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.praxis-cmd-option-label{font-size:.84rem;font-weight:600}.praxis-cmd-option-desc{font-size:.73rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.praxis-cmd-option-meta{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}.praxis-cmd-option-group{font-size:.7rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-option-badge{padding:2px 7px;border-radius:999px;font-size:.68rem;font-weight:700;background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)))}.praxis-cmd-empty{margin:8px 0;text-align:center;font-size:.82rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}@media(prefers-reduced-transparency:reduce){.praxis-cmd-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#0f172ac7}}@media(forced-colors:active){.praxis-cmd-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#000000bf}.praxis-cmd-modal{background:Canvas;color:CanvasText;border:2px solid CanvasText}.praxis-cmd-input-row:focus-within,.praxis-cmd-prefix-pill:focus-visible,.praxis-cmd-icon-btn:focus-visible,.praxis-cmd-remote-btn:focus-visible,.praxis-cmd-option:focus-visible,.praxis-cmd-option.is-selected,.praxis-cmd-prefix-pill.is-active{outline:2px solid Highlight;outline-offset:1px}}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
91873
+ `, isInline: true, styles: [".praxis-cmd-backdrop{position:fixed;inset:0;z-index:var(--praxis-z-command-palette, 1350);display:grid;grid-template-columns:minmax(0,1fr);place-items:start center;overflow-y:auto;padding:min(10vh,72px) 16px 24px;background:color-mix(in oklab,var(--background, #0f172a) 38%,rgb(15 23 42 / 55%));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.praxis-cmd-modal{box-sizing:border-box;width:min(720px,100%);display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:var(--radius-xl, 16px);background:var(--card, var(--md-sys-color-surface-container, #1e293b));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));box-shadow:var(--shadow-panel, 0 20px 44px -16px rgb(15 23 42 / 32%))}.praxis-cmd-input-row{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:10px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--background, var(--md-sys-color-surface, #0f172a))}.praxis-cmd-input-icon{font-size:20px;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-input{flex:1 1 auto;min-width:0;border:0;background:transparent;color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.92rem;outline:none}.praxis-cmd-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8));cursor:pointer}.praxis-cmd-icon-btn:hover,.praxis-cmd-icon-btn:focus-visible{background:var(--secondary, color-mix(in oklab, var(--primary, #0369a1) 10%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc))}.praxis-cmd-prefixes{display:flex;flex-wrap:wrap;gap:6px}.praxis-cmd-prefix-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.74rem;font-weight:600;cursor:pointer}.praxis-cmd-prefix-pill code{font-weight:700;color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-prefix-pill.is-active{border-color:var(--primary, var(--md-sys-color-primary, #0369a1));background:color-mix(in oklab,var(--primary, #0369a1) 14%,var(--card, #1e293b));color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-header-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:.74rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-header-actions{display:inline-flex;flex-wrap:wrap;max-width:100%;overflow-wrap:anywhere;align-items:center;gap:10px}.praxis-cmd-remote-btn{display:inline-flex;max-width:100%;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.72rem;font-weight:600;cursor:pointer}.praxis-cmd-listbox{display:flex;flex-direction:column;gap:4px;max-height:min(46vh,380px);overflow-y:auto}.praxis-cmd-option{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;width:100%;padding:9px 10px;text-align:left;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));cursor:pointer}.praxis-cmd-option.is-selected,.praxis-cmd-option:focus-visible{border-color:color-mix(in oklab,var(--primary, #0369a1) 35%,var(--border, rgb(148 163 184 / 24%)));background:color-mix(in oklab,var(--primary, #0369a1) 10%,var(--card, #1e293b));outline:none}.praxis-cmd-option-icon{font-size:19px;color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-option-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.praxis-cmd-option-label{font-size:.84rem;font-weight:600}.praxis-cmd-option-desc{font-size:.73rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.praxis-cmd-option-meta{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}.praxis-cmd-option-group{font-size:.7rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-option-badge{padding:2px 7px;border-radius:999px;font-size:.68rem;font-weight:700;background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)))}.praxis-cmd-empty{margin:8px 0;text-align:center;font-size:.82rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}@media(prefers-reduced-transparency:reduce){.praxis-cmd-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#0f172ac7}}@media(forced-colors:active){.praxis-cmd-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#000000bf}.praxis-cmd-modal{background:Canvas;color:CanvasText;border:2px solid CanvasText}.praxis-cmd-input-row:focus-within,.praxis-cmd-prefix-pill:focus-visible,.praxis-cmd-icon-btn:focus-visible,.praxis-cmd-remote-btn:focus-visible,.praxis-cmd-option:focus-visible,.praxis-cmd-option.is-selected,.praxis-cmd-prefix-pill.is-active{outline:2px solid Highlight;outline-offset:1px}}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
91799
91874
  }
91800
91875
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisCommandPaletteComponent, decorators: [{
91801
91876
  type: Component,
@@ -91914,9 +91989,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
91914
91989
  class="praxis-cmd-remote-btn"
91915
91990
  [disabled]="remoteBusy()"
91916
91991
  data-testid="praxis-command-palette-remote-btn"
91917
- (click)="triggerRemoteSearch()"
91992
+ (click)="triggerRemoteSearch($event)"
91918
91993
  >
91919
- <span class="material-symbols-outlined" aria-hidden="true">cloud_search</span>
91994
+ <span class="material-symbols-outlined" aria-hidden="true">manage_search</span>
91920
91995
  <span>{{ remoteBusy() ? text().remoteSearching : text().remoteSearch }}</span>
91921
91996
  </button>
91922
91997
  }
@@ -91924,7 +91999,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
91924
91999
  </div>
91925
92000
  </div>
91926
92001
 
92002
+ @if (remoteFailed()) {
92003
+ <p class="praxis-cmd-empty" role="status">{{ text().remoteError }}</p>
92004
+ }
91927
92005
  @if (filteredItems().length > 0) {
92006
+ @if (remoteBusy()) {
92007
+ <span class="cdk-visually-hidden" role="status">{{ text().remoteSearching }}</span>
92008
+ }
91928
92009
  <div
91929
92010
  [id]="listboxId"
91930
92011
  class="praxis-cmd-listbox"
@@ -91941,7 +92022,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
91941
92022
  [class.is-selected]="activeIndex() === idx"
91942
92023
  [attr.aria-selected]="activeIndex() === idx ? 'true' : 'false'"
91943
92024
  [attr.data-testid]="'praxis-command-option-' + idx"
91944
- (mouseenter)="activeIndex.set(idx)"
92025
+ (mouseenter)="selectOption(idx)"
91945
92026
  (click)="executeItem(item)"
91946
92027
  >
91947
92028
  <span class="material-symbols-outlined praxis-cmd-option-icon" aria-hidden="true">
@@ -91962,14 +92043,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
91962
92043
  </button>
91963
92044
  }
91964
92045
  </div>
91965
- } @else {
92046
+ } @else if (!remoteFailed()) {
91966
92047
  <p
91967
92048
  class="praxis-cmd-empty"
91968
92049
  role="status"
91969
92050
  aria-live="polite"
91970
92051
  data-testid="praxis-command-palette-empty"
91971
92052
  >
91972
- {{ text().empty }}
92053
+ {{ remoteBusy() ? text().remoteSearching : text().empty }}
91973
92054
  </p>
91974
92055
  }
91975
92056
  </section>
@@ -91977,7 +92058,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
91977
92058
  }
91978
92059
  `, host: {
91979
92060
  '(document:keydown)': 'onDocumentKeydown($event)',
91980
- }, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".praxis-cmd-backdrop{position:fixed;inset:0;z-index:var(--praxis-z-command-palette, 1350);display:grid;place-items:start center;padding:min(10vh,72px) 16px 24px;background:color-mix(in oklab,var(--background, #0f172a) 38%,rgb(15 23 42 / 55%));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.praxis-cmd-modal{width:min(720px,100%);display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:var(--radius-xl, 16px);background:var(--card, var(--md-sys-color-surface-container, #1e293b));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));box-shadow:var(--shadow-panel, 0 20px 44px -16px rgb(15 23 42 / 32%))}.praxis-cmd-input-row{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:10px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--background, var(--md-sys-color-surface, #0f172a))}.praxis-cmd-input-icon{font-size:20px;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-input{flex:1 1 auto;min-width:0;border:0;background:transparent;color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.92rem;outline:none}.praxis-cmd-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8));cursor:pointer}.praxis-cmd-icon-btn:hover,.praxis-cmd-icon-btn:focus-visible{background:var(--secondary, color-mix(in oklab, var(--primary, #0369a1) 10%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc))}.praxis-cmd-prefixes{display:flex;flex-wrap:wrap;gap:6px}.praxis-cmd-prefix-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.74rem;font-weight:600;cursor:pointer}.praxis-cmd-prefix-pill code{font-weight:700;color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-prefix-pill.is-active{border-color:var(--primary, var(--md-sys-color-primary, #0369a1));background:color-mix(in oklab,var(--primary, #0369a1) 14%,var(--card, #1e293b));color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-header-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:.74rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-header-actions{display:inline-flex;align-items:center;gap:10px}.praxis-cmd-remote-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.72rem;font-weight:600;cursor:pointer}.praxis-cmd-listbox{display:flex;flex-direction:column;gap:4px;max-height:min(46vh,380px);overflow-y:auto}.praxis-cmd-option{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;width:100%;padding:9px 10px;text-align:left;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));cursor:pointer}.praxis-cmd-option.is-selected,.praxis-cmd-option:focus-visible{border-color:color-mix(in oklab,var(--primary, #0369a1) 35%,var(--border, rgb(148 163 184 / 24%)));background:color-mix(in oklab,var(--primary, #0369a1) 10%,var(--card, #1e293b));outline:none}.praxis-cmd-option-icon{font-size:19px;color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-option-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.praxis-cmd-option-label{font-size:.84rem;font-weight:600}.praxis-cmd-option-desc{font-size:.73rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.praxis-cmd-option-meta{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}.praxis-cmd-option-group{font-size:.7rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-option-badge{padding:2px 7px;border-radius:999px;font-size:.68rem;font-weight:700;background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)))}.praxis-cmd-empty{margin:8px 0;text-align:center;font-size:.82rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}@media(prefers-reduced-transparency:reduce){.praxis-cmd-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#0f172ac7}}@media(forced-colors:active){.praxis-cmd-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#000000bf}.praxis-cmd-modal{background:Canvas;color:CanvasText;border:2px solid CanvasText}.praxis-cmd-input-row:focus-within,.praxis-cmd-prefix-pill:focus-visible,.praxis-cmd-icon-btn:focus-visible,.praxis-cmd-remote-btn:focus-visible,.praxis-cmd-option:focus-visible,.praxis-cmd-option.is-selected,.praxis-cmd-prefix-pill.is-active{outline:2px solid Highlight;outline-offset:1px}}\n"] }]
92061
+ }, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".praxis-cmd-backdrop{position:fixed;inset:0;z-index:var(--praxis-z-command-palette, 1350);display:grid;grid-template-columns:minmax(0,1fr);place-items:start center;overflow-y:auto;padding:min(10vh,72px) 16px 24px;background:color-mix(in oklab,var(--background, #0f172a) 38%,rgb(15 23 42 / 55%));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.praxis-cmd-modal{box-sizing:border-box;width:min(720px,100%);display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:var(--radius-xl, 16px);background:var(--card, var(--md-sys-color-surface-container, #1e293b));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));box-shadow:var(--shadow-panel, 0 20px 44px -16px rgb(15 23 42 / 32%))}.praxis-cmd-input-row{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:10px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--background, var(--md-sys-color-surface, #0f172a))}.praxis-cmd-input-icon{font-size:20px;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-input{flex:1 1 auto;min-width:0;border:0;background:transparent;color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.92rem;outline:none}.praxis-cmd-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8));cursor:pointer}.praxis-cmd-icon-btn:hover,.praxis-cmd-icon-btn:focus-visible{background:var(--secondary, color-mix(in oklab, var(--primary, #0369a1) 10%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc))}.praxis-cmd-prefixes{display:flex;flex-wrap:wrap;gap:6px}.praxis-cmd-prefix-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.74rem;font-weight:600;cursor:pointer}.praxis-cmd-prefix-pill code{font-weight:700;color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-prefix-pill.is-active{border-color:var(--primary, var(--md-sys-color-primary, #0369a1));background:color-mix(in oklab,var(--primary, #0369a1) 14%,var(--card, #1e293b));color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-header-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:.74rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-header-actions{display:inline-flex;flex-wrap:wrap;max-width:100%;overflow-wrap:anywhere;align-items:center;gap:10px}.praxis-cmd-remote-btn{display:inline-flex;max-width:100%;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)));background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));font-size:.72rem;font-weight:600;cursor:pointer}.praxis-cmd-listbox{display:flex;flex-direction:column;gap:4px;max-height:min(46vh,380px);overflow-y:auto}.praxis-cmd-option{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;width:100%;padding:9px 10px;text-align:left;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--foreground, var(--md-sys-color-on-surface, #f8fafc));cursor:pointer}.praxis-cmd-option.is-selected,.praxis-cmd-option:focus-visible{border-color:color-mix(in oklab,var(--primary, #0369a1) 35%,var(--border, rgb(148 163 184 / 24%)));background:color-mix(in oklab,var(--primary, #0369a1) 10%,var(--card, #1e293b));outline:none}.praxis-cmd-option-icon{font-size:19px;color:var(--primary, var(--md-sys-color-primary, #0369a1))}.praxis-cmd-option-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.praxis-cmd-option-label{font-size:.84rem;font-weight:600}.praxis-cmd-option-desc{font-size:.73rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.praxis-cmd-option-meta{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}.praxis-cmd-option-group{font-size:.7rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}.praxis-cmd-option-badge{padding:2px 7px;border-radius:999px;font-size:.68rem;font-weight:700;background:var(--secondary, color-mix(in oklab, var(--card, #1e293b) 88%, transparent));border:1px solid var(--border, var(--md-sys-color-outline-variant, rgb(148 163 184 / 24%)))}.praxis-cmd-empty{margin:8px 0;text-align:center;font-size:.82rem;color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8))}@media(prefers-reduced-transparency:reduce){.praxis-cmd-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#0f172ac7}}@media(forced-colors:active){.praxis-cmd-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#000000bf}.praxis-cmd-modal{background:Canvas;color:CanvasText;border:2px solid CanvasText}.praxis-cmd-input-row:focus-within,.praxis-cmd-prefix-pill:focus-visible,.praxis-cmd-icon-btn:focus-visible,.praxis-cmd-remote-btn:focus-visible,.praxis-cmd-option:focus-visible,.praxis-cmd-option.is-selected,.praxis-cmd-prefix-pill.is-active{outline:2px solid Highlight;outline-offset:1px}}\n"] }]
91981
92062
  }], ctorParameters: () => [], propDecorators: { searchInputRef: [{
91982
92063
  type: ViewChild,
91983
92064
  args: ['searchInput']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/core",
3
- "version": "10.0.0-rc.73",
3
+ "version": "10.0.0-rc.75",
4
4
  "description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^21.0.0",
@@ -1815,6 +1815,7 @@ declare function formatAffixedPresentationText(rawText: unknown, affixes?: {
1815
1815
  interface ResourceIdentityFieldMetadata {
1816
1816
  name: string;
1817
1817
  label?: string;
1818
+ options?: readonly (Record<string, unknown> | string | number | boolean)[];
1818
1819
  presentation?: FieldPresentationConfig;
1819
1820
  }
1820
1821
  type ResourceIdentitySource = 'explicit' | 'resource-id-field' | 'host-id-field';
@@ -1843,6 +1844,8 @@ interface ResourceIdentityPart {
1843
1844
  field: string;
1844
1845
  label?: string;
1845
1846
  value: unknown;
1847
+ /** Option label for display. The record value remains available to commands and rules. */
1848
+ formattedValue?: string;
1846
1849
  presentation?: FieldPresentationConfig;
1847
1850
  }
1848
1851
  interface MaterializedResourceIdentity {
@@ -20033,6 +20036,7 @@ declare const PRAXIS_SHELL_PT_BR: {
20033
20036
  readonly 'praxis.shell.commandPalette.prefixResources': "Recursos";
20034
20037
  readonly 'praxis.shell.commandPalette.resultsTitle': "Comandos disponíveis";
20035
20038
  readonly 'praxis.shell.commandPalette.remoteSearch': "Pesquisar no catálogo remoto";
20039
+ readonly 'praxis.shell.commandPalette.remoteError': "Não foi possível consultar o catálogo remoto. Tente novamente.";
20036
20040
  readonly 'praxis.shell.commandPalette.remoteSearching': "Pesquisando...";
20037
20041
  readonly 'praxis.shell.commandPalette.kbdHint': "↑↓ navegar · Enter abrir · Esc fechar";
20038
20042
  readonly 'praxis.shell.commandPalette.empty': "Nenhum comando ou recurso compatível encontrado.";
@@ -20100,6 +20104,7 @@ declare const PRAXIS_SHELL_EN_US: {
20100
20104
  readonly 'praxis.shell.commandPalette.prefixResources': "Resources";
20101
20105
  readonly 'praxis.shell.commandPalette.resultsTitle': "Available commands";
20102
20106
  readonly 'praxis.shell.commandPalette.remoteSearch': "Search remote catalog";
20107
+ readonly 'praxis.shell.commandPalette.remoteError': "Could not search the remote catalog. Try again.";
20103
20108
  readonly 'praxis.shell.commandPalette.remoteSearching': "Searching...";
20104
20109
  readonly 'praxis.shell.commandPalette.kbdHint': "↑↓ navigate · Enter open · Esc close";
20105
20110
  readonly 'praxis.shell.commandPalette.empty': "No matching command or resource found.";
@@ -23616,6 +23621,7 @@ declare class PraxisResourceIdentityComponent {
23616
23621
  showKeyLabel: boolean;
23617
23622
  ariaLabel: string;
23618
23623
  protected title(): string;
23624
+ protected displayValue(part?: ResourceIdentityPart): unknown;
23619
23625
  protected prefix(item: ResourceIdentityPart): string;
23620
23626
  protected suffix(item: ResourceIdentityPart): string;
23621
23627
  protected isChip(item: ResourceIdentityPart): boolean;
@@ -26385,6 +26391,8 @@ declare class PraxisCommandPaletteComponent {
26385
26391
  readonly query: _angular_core.WritableSignal<string>;
26386
26392
  readonly activeIndex: _angular_core.WritableSignal<number>;
26387
26393
  readonly remoteBusy: _angular_core.WritableSignal<boolean>;
26394
+ readonly remoteFailed: _angular_core.WritableSignal<boolean>;
26395
+ private explicitSelectionKey;
26388
26396
  readonly remoteItems: _angular_core.WritableSignal<readonly PraxisCommandPaletteItem[]>;
26389
26397
  private previouslyFocusedElement;
26390
26398
  private suppressNextFocusRestore;
@@ -26403,6 +26411,7 @@ declare class PraxisCommandPaletteComponent {
26403
26411
  prefixResources: string;
26404
26412
  resultsTitle: string;
26405
26413
  remoteSearch: string;
26414
+ remoteError: string;
26406
26415
  remoteSearching: string;
26407
26416
  kbdHint: string;
26408
26417
  empty: string;
@@ -26423,10 +26432,13 @@ declare class PraxisCommandPaletteComponent {
26423
26432
  onQueryInput(value: string): void;
26424
26433
  togglePrefix(prefix: Exclude<PraxisCommandPalettePrefix, ''>): void;
26425
26434
  onInputKeydown(event: KeyboardEvent): void;
26426
- triggerRemoteSearch(): Promise<void>;
26435
+ selectOption(index: number): void;
26436
+ triggerRemoteSearch(event?: Event): Promise<void>;
26427
26437
  executeItem(item: PraxisCommandPaletteItem): Promise<void>;
26428
26438
  optionDomId(index: number): string;
26429
- trackItem(index: number, item: PraxisCommandPaletteItem): string;
26439
+ private restoreSearchSelection;
26440
+ trackItem(_index: number, item: PraxisCommandPaletteItem): string;
26441
+ private itemKey;
26430
26442
  private translate;
26431
26443
  private resolveCategory;
26432
26444
  private resolveAccessGrants;