@praxisui/list 8.0.0-beta.1 → 8.0.0-beta.11

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/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { OnInit, OnChanges, OnDestroy, EventEmitter, SimpleChanges, ChangeDetect
5
5
  import { MatSelectionListChange } from '@angular/material/list';
6
6
  import { FormGroup, FormControl } from '@angular/forms';
7
7
  import * as _praxisui_core from '@praxisui/core';
8
- import { JsonLogicExpression, LocalizationConfig, AiCapability, RichBlockNode, GlobalActionCatalogEntry, SurfaceOpenPayload, RichPresenterNode, RichComposeNode, ComponentDocMeta, AiCapabilityCategory, AiValueKind, AiCapabilityCatalog } from '@praxisui/core';
8
+ import { JsonLogicExpression, GlobalActionRef, LocalizationConfig, AiCapability, RichBlockNode, GlobalActionCatalogEntry, SurfaceOpenPayload, RichPresenterNode, RichComposeNode, ComponentDocMeta, AiCapabilityCategory, AiValueKind, AiCapabilityCatalog, ComponentAuthoringManifest } from '@praxisui/core';
9
9
  import { BaseAiAdapter, PatchResult } from '@praxisui/ai';
10
10
  import { SettingsValueProvider } from '@praxisui/settings-panel';
11
11
 
@@ -277,8 +277,7 @@ interface PraxisListConfig {
277
277
  buttonVariant?: 'stroked' | 'raised' | 'flat';
278
278
  showIf?: JsonLogicExpression | null;
279
279
  emitPayload?: 'item' | 'id' | 'value';
280
- command?: string;
281
- globalPayload?: any;
280
+ globalAction?: GlobalActionRef;
282
281
  emitLocal?: boolean;
283
282
  showLoading?: boolean;
284
283
  placement?: 'actions' | 'trailing';
@@ -561,8 +560,7 @@ declare class PraxisList implements OnInit, OnChanges, OnDestroy {
561
560
  buttonVariant?: "stroked" | "raised" | "flat";
562
561
  showIf?: JsonLogicExpression | null;
563
562
  emitPayload?: "item" | "id" | "value";
564
- command?: string;
565
- globalPayload?: any;
563
+ globalAction?: GlobalActionRef;
566
564
  emitLocal?: boolean;
567
565
  showLoading?: boolean;
568
566
  placement?: "actions" | "trailing";
@@ -582,9 +580,9 @@ declare class PraxisList implements OnInit, OnChanges, OnDestroy {
582
580
  expansionRegionAriaLabel(item: any): string;
583
581
  emptyStateLabel(): string;
584
582
  onActionClick(ev: MouseEvent, actionId: string, item: any, index: number): Promise<void>;
585
- private isGlobalCommand;
586
583
  private resolveActionPayload;
587
584
  private resolveTemplate;
585
+ private isDeferredTemplateExpressionKey;
588
586
  private resolveStringTemplate;
589
587
  private lookup;
590
588
  onSelectionChange(_change: MatSelectionListChange): void;
@@ -669,7 +667,6 @@ declare class PraxisList implements OnInit, OnChanges, OnDestroy {
669
667
  private mergePlainObjects;
670
668
  private buildActionLoadingKey;
671
669
  private ensureActionItemObjectId;
672
- private warnGlobalCommandUnavailableOnce;
673
670
  private buildLogOptions;
674
671
  private toggleExpanded;
675
672
  private syncExpansionState;
@@ -1294,18 +1291,24 @@ declare class PraxisListConfigEditor implements SettingsValueProvider, DoCheck {
1294
1291
  ensureConfirmation(action: any): void;
1295
1292
  setConfirmationField(action: any, field: 'title' | 'message', value: string): void;
1296
1293
  applyConfirmationPreset(action: any, type?: 'danger' | 'warning' | 'info' | ''): void;
1297
- isGlobalPayloadInvalid(payload: any): boolean;
1298
- applyGlobalPayloadExample(action: any): void;
1299
- globalPayloadExampleHint(action: any): string;
1300
- globalPayloadSchemaTooltip(action: any): string;
1294
+ applyGlobalActionPayloadExample(action: any): void;
1295
+ globalActionPayloadExampleHint(action: any): string;
1296
+ globalActionPayloadSchemaTooltip(action: any): string;
1297
+ onActionGlobalActionIdChange(action: any, actionId: string): void;
1298
+ getGlobalActionPayloadText(action: {
1299
+ globalAction?: GlobalActionRef;
1300
+ }): string;
1301
+ onGlobalActionPayloadTextChange(action: any, value: string): void;
1302
+ isGlobalActionPayloadInvalid(action: {
1303
+ globalAction?: GlobalActionRef;
1304
+ }): boolean;
1301
1305
  isSurfaceOpenCommand(action: {
1302
- command?: string;
1306
+ globalAction?: GlobalActionRef;
1303
1307
  }): boolean;
1304
- getSurfaceOpenGlobalPayload(action: {
1305
- command?: string;
1306
- globalPayload?: string;
1308
+ getSurfaceOpenGlobalActionPayload(action: {
1309
+ globalAction?: GlobalActionRef;
1307
1310
  }): SurfaceOpenPayload;
1308
- onSurfaceOpenGlobalPayloadChange(action: any, payload: SurfaceOpenPayload): void;
1311
+ onSurfaceOpenGlobalActionPayloadChange(action: any, payload: SurfaceOpenPayload): void;
1309
1312
  onGlobalActionSelected(id?: string): void;
1310
1313
  private addGlobalActionFromCatalog;
1311
1314
  metaTypeConfig(type?: string): {
@@ -1365,6 +1368,11 @@ declare class PraxisListConfigEditor implements SettingsValueProvider, DoCheck {
1365
1368
  private getGlobalActionEntryLabel;
1366
1369
  private getGlobalActionEntryDescription;
1367
1370
  private getGlobalActionSchema;
1371
+ getGlobalActionId(action: {
1372
+ globalAction?: GlobalActionRef;
1373
+ }): string;
1374
+ private parseGlobalActionPayloadText;
1375
+ private looksLikeJsonPayload;
1368
1376
  private normalizeSurfaceOpenPayload;
1369
1377
  verify(): void;
1370
1378
  inferFromFields(): void;
@@ -1462,6 +1470,9 @@ declare module '@praxisui/core' {
1462
1470
  selection: true;
1463
1471
  templating: true;
1464
1472
  actions: true;
1473
+ interaction: true;
1474
+ expansion: true;
1475
+ rules: true;
1465
1476
  ui: true;
1466
1477
  i18n: true;
1467
1478
  a11y: true;
@@ -1477,6 +1488,8 @@ interface CapabilityCatalog extends AiCapabilityCatalog {
1477
1488
  }
1478
1489
  declare const LIST_AI_CAPABILITIES: CapabilityCatalog;
1479
1490
 
1491
+ declare const PRAXIS_LIST_AUTHORING_MANIFEST: ComponentAuthoringManifest;
1492
+
1480
1493
  type DemoScenario = 'operations' | 'executive-expansion' | 'catalog' | 'empty';
1481
1494
  type DemoVariant = 'list' | 'cards' | 'tiles';
1482
1495
  type DemoDensity = 'default' | 'comfortable' | 'compact';
@@ -1744,8 +1757,7 @@ declare class PraxisListDocPageComponent {
1744
1757
  buttonVariant?: "stroked" | "raised" | "flat";
1745
1758
  showIf?: _praxisui_core.JsonLogicExpression | null;
1746
1759
  emitPayload?: "item" | "id" | "value";
1747
- command?: string;
1748
- globalPayload?: any;
1760
+ globalAction?: _praxisui_core.GlobalActionRef;
1749
1761
  emitLocal?: boolean;
1750
1762
  showLoading?: boolean;
1751
1763
  placement?: "actions" | "trailing";
@@ -1838,7 +1850,7 @@ declare const PRAXIS_LIST_EN_US: {
1838
1850
  readonly 'Global action (Praxis)': "Global action (Praxis)";
1839
1851
  readonly '-- Select --': "-- Select --";
1840
1852
  readonly 'No global action registered.': "No global action registered.";
1841
- readonly 'Select to add with a global `command`.': "Select to add with a global `command`.";
1853
+ readonly 'Select to add with a structured global action.': "Select to add with a structured global action.";
1842
1854
  readonly 'Action type': "Action type";
1843
1855
  readonly Icon: "Icon";
1844
1856
  readonly Button: "Button";
@@ -1872,7 +1884,7 @@ declare const PRAXIS_LIST_EN_US: {
1872
1884
  readonly 'Emit local event too': "Emit local event too";
1873
1885
  readonly JSON: "JSON";
1874
1886
  readonly ID: "ID";
1875
- readonly 'Command (global)': "Command (global)";
1887
+ readonly 'Global action': "Global action";
1876
1888
  readonly Catalog: "Catalog";
1877
1889
  readonly Danger: "Danger";
1878
1890
  readonly Warning: "Warning";
@@ -2066,7 +2078,7 @@ declare const PRAXIS_LIST_PT_BR: {
2066
2078
  readonly 'Global action (Praxis)': "Ação global (Praxis)";
2067
2079
  readonly '-- Select --': "-- Selecionar --";
2068
2080
  readonly 'No global action registered.': "Nenhuma ação global registrada.";
2069
- readonly 'Select to add with a global `command`.': "Selecione para adicionar com `command` global.";
2081
+ readonly 'Select to add with a structured global action.': "Selecione para adicionar com uma ação global estruturada.";
2070
2082
  readonly 'Action type': "Tipo de ação";
2071
2083
  readonly Icon: "Ícone";
2072
2084
  readonly Button: "Botão";
@@ -2100,7 +2112,7 @@ declare const PRAXIS_LIST_PT_BR: {
2100
2112
  readonly 'Emit local event too': "Emitir evento local também";
2101
2113
  readonly JSON: "JSON";
2102
2114
  readonly ID: "ID";
2103
- readonly 'Command (global)': "Comando (global)";
2115
+ readonly 'Global action': "Ação global";
2104
2116
  readonly Catalog: "Catálogo";
2105
2117
  readonly Danger: "Perigo";
2106
2118
  readonly Warning: "Aviso";
@@ -2260,5 +2272,5 @@ declare const PRAXIS_LIST_PT_BR: {
2260
2272
  readonly 'CSS class example (add this to your global styles):': "Exemplo de classe CSS (adicione isto aos seus estilos globais):";
2261
2273
  };
2262
2274
 
2263
- export { ExecutiveAlertsComponent, ExecutiveBadgeComponent, ExecutiveOwnerComponent, LIST_AI_CAPABILITIES, ListDataService, ListSkinService, PRAXIS_LIST_COMPONENT_METADATA, PRAXIS_LIST_EN_US, PRAXIS_LIST_I18N_NAMESPACE, PRAXIS_LIST_PT_BR, PraxisList, PraxisListConfigEditor, PraxisListDocPageComponent, PraxisListJsonConfigEditorComponent, adaptSelection, buildListApplyPlan, createListAuthoringDocument, evalExpr, evaluateTemplate, inferListAuthoringDocument, inferTemplatingFromSchema, isListTemplateSupportedByRichContentP0, mapListTemplateToRichContentP0, normalizeListActionPayloads, normalizeListAuthoringDocument, normalizeListConfig, parseLegacyOrListDocument, projectListAuthoringDocument, providePraxisListI18n, providePraxisListMetadata, serializeListAuthoringDocument, toCanonicalListConfig, validateListAuthoringDocument };
2275
+ export { ExecutiveAlertsComponent, ExecutiveBadgeComponent, ExecutiveOwnerComponent, LIST_AI_CAPABILITIES, ListDataService, ListSkinService, PRAXIS_LIST_AUTHORING_MANIFEST, PRAXIS_LIST_COMPONENT_METADATA, PRAXIS_LIST_EN_US, PRAXIS_LIST_I18N_NAMESPACE, PRAXIS_LIST_PT_BR, PraxisList, PraxisListConfigEditor, PraxisListDocPageComponent, PraxisListJsonConfigEditorComponent, adaptSelection, buildListApplyPlan, createListAuthoringDocument, evalExpr, evaluateTemplate, inferListAuthoringDocument, inferTemplatingFromSchema, isListTemplateSupportedByRichContentP0, mapListTemplateToRichContentP0, normalizeListActionPayloads, normalizeListAuthoringDocument, normalizeListConfig, parseLegacyOrListDocument, projectListAuthoringDocument, providePraxisListI18n, providePraxisListMetadata, serializeListAuthoringDocument, toCanonicalListConfig, validateListAuthoringDocument };
2264
2276
  export type { Capability, CapabilityCatalog, CapabilityCategory, EditorDiagnostic, EditorDocument, ExecutiveAlert, JsonEditorEvent, JsonValidationResult, ListActionEvent, ListApplyPlan, ListAuthoringDocument, ListExpansionSectionDef, ListExpansionSectionType, ListFeatureDef, ListItemEvent, ListProjectionContext, ListRichContentP0Node, ListRowLayoutSlot, ListRuntimeContext, ListSchemaInferencePlan, ListSection, ListSelectionEvent, ListTemplatingSlot, ListValidationContext, PraxisListConfig, PraxisListI18nConfig, TemplateDef, TemplateEvaluatorOptions, TemplateFeatureDef, TemplateType, TemplatingFeatureDef, ValueKind };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@praxisui/list",
3
- "version": "8.0.0-beta.1",
3
+ "version": "8.0.0-beta.11",
4
4
  "description": "List components and helpers for Praxis UI.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=16 <21",
7
7
  "@angular/core": ">=16 <21",
8
8
  "@angular/material": ">=16 <21",
9
- "@praxisui/dynamic-fields": "^8.0.0-beta.1",
9
+ "@praxisui/dynamic-fields": "^8.0.0-beta.11",
10
10
  "rxjs": ">=7 <9"
11
11
  },
12
12
  "dependencies": {