@praxisui/list 9.0.8 → 9.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -23
- package/ai/component-registry.json +2 -2
- package/docs/2026-08-collection-toolbar-runtime-note.md +22 -0
- package/fesm2022/praxisui-list.mjs +189 -67
- package/package.json +6 -6
- package/src/lib/praxis-list.json-api.md +242 -237
- package/types/praxisui-list.d.ts +31 -1
package/types/praxisui-list.d.ts
CHANGED
|
@@ -372,6 +372,12 @@ interface ListSection<T = any> {
|
|
|
372
372
|
key: string | undefined;
|
|
373
373
|
items: T[];
|
|
374
374
|
}
|
|
375
|
+
interface ListRemoteLoadError {
|
|
376
|
+
/** Canonical resource whose collection request failed. */
|
|
377
|
+
resourcePath: string;
|
|
378
|
+
/** True when active criteria were preserved and the unfiltered fallback was blocked. */
|
|
379
|
+
filtered: boolean;
|
|
380
|
+
}
|
|
375
381
|
declare class ListDataService<T = any> {
|
|
376
382
|
private readonly DEBUG;
|
|
377
383
|
private config$;
|
|
@@ -379,6 +385,8 @@ declare class ListDataService<T = any> {
|
|
|
379
385
|
private pageable$;
|
|
380
386
|
private query$;
|
|
381
387
|
readonly loading$: BehaviorSubject<boolean>;
|
|
388
|
+
private readonly errorSubject;
|
|
389
|
+
readonly error$: Observable<ListRemoteLoadError | null>;
|
|
382
390
|
readonly total$: BehaviorSubject<number>;
|
|
383
391
|
readonly pageState$: Observable<{
|
|
384
392
|
pageNumber: number;
|
|
@@ -414,6 +422,8 @@ declare class ListDataService<T = any> {
|
|
|
414
422
|
private ensureObjectId;
|
|
415
423
|
private safeSerialize;
|
|
416
424
|
private warnFilterFallbackOnce;
|
|
425
|
+
private warnFilteredRequestBlockedOnce;
|
|
426
|
+
private warnCollectionRequestFailedOnce;
|
|
417
427
|
private buildLogOptions;
|
|
418
428
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListDataService<any>, never>;
|
|
419
429
|
static ɵprov: i0.ɵɵInjectableDeclaration<ListDataService<any>>;
|
|
@@ -486,6 +496,7 @@ declare class PraxisList implements OnInit, OnChanges, AfterViewInit, OnDestroy
|
|
|
486
496
|
items$: rxjs.Observable<any[]>;
|
|
487
497
|
sections$: rxjs.Observable<ListSection<any>[]>;
|
|
488
498
|
loading$: rxjs.Observable<boolean>;
|
|
499
|
+
error$: rxjs.Observable<ListRemoteLoadError | null>;
|
|
489
500
|
total$: rxjs.Observable<number>;
|
|
490
501
|
page$: rxjs.Observable<{
|
|
491
502
|
pageNumber: number;
|
|
@@ -534,6 +545,7 @@ declare class PraxisList implements OnInit, OnChanges, AfterViewInit, OnDestroy
|
|
|
534
545
|
private readonly logContext;
|
|
535
546
|
private readonly route;
|
|
536
547
|
private readonly globalActions;
|
|
548
|
+
private readonly injector;
|
|
537
549
|
private readonly dialog;
|
|
538
550
|
private hasViewInitialized;
|
|
539
551
|
private hasHydratedPersistence;
|
|
@@ -740,7 +752,11 @@ declare class PraxisList implements OnInit, OnChanges, AfterViewInit, OnDestroy
|
|
|
740
752
|
listPageSizeOptions(): number[];
|
|
741
753
|
remoteTotalLabel(total: number | null | undefined): string;
|
|
742
754
|
onSortChange(val: string): void;
|
|
755
|
+
retryRemoteData(): void;
|
|
743
756
|
onSearchInput(val: string): void;
|
|
757
|
+
isRemoteDataMode(): boolean;
|
|
758
|
+
activeSortValue(sort: string[] | undefined): string;
|
|
759
|
+
hasSortOption(value: string): boolean;
|
|
744
760
|
sortOptionValue(op: any): string;
|
|
745
761
|
sortOptionLabel(op: any): string;
|
|
746
762
|
rangeStart(ps: {
|
|
@@ -2130,6 +2146,13 @@ declare const PRAXIS_LIST_EN_US: {
|
|
|
2130
2146
|
readonly emptyState: "No items available";
|
|
2131
2147
|
readonly emptyStateConnectResource: "Connect this list to a resource to load items.";
|
|
2132
2148
|
readonly recordOpenUnavailable: "Unable to open details for this item.";
|
|
2149
|
+
readonly 'toolbar.label': "List controls";
|
|
2150
|
+
readonly 'toolbar.search': "Search";
|
|
2151
|
+
readonly 'toolbar.sort': "Sort by";
|
|
2152
|
+
readonly 'remoteError.title': "Unable to load the list";
|
|
2153
|
+
readonly 'remoteError.description': "Check the connection and try again.";
|
|
2154
|
+
readonly 'remoteError.filteredDescription': "Filters remain applied. No unfiltered data was displayed.";
|
|
2155
|
+
readonly 'remoteError.retry': "Try again";
|
|
2133
2156
|
readonly 'pagination.itemsPerPage': "Items per page:";
|
|
2134
2157
|
readonly 'pagination.nextPage': "Next page";
|
|
2135
2158
|
readonly 'pagination.previousPage': "Previous page";
|
|
@@ -2500,6 +2523,13 @@ declare const PRAXIS_LIST_PT_BR: {
|
|
|
2500
2523
|
readonly emptyState: "Nenhum item disponível";
|
|
2501
2524
|
readonly emptyStateConnectResource: "Conecte a lista a um recurso para carregar os itens.";
|
|
2502
2525
|
readonly recordOpenUnavailable: "Não foi possível abrir os detalhes deste item.";
|
|
2526
|
+
readonly 'toolbar.label': "Controles da lista";
|
|
2527
|
+
readonly 'toolbar.search': "Buscar";
|
|
2528
|
+
readonly 'toolbar.sort': "Ordenar por";
|
|
2529
|
+
readonly 'remoteError.title': "Não foi possível carregar a lista";
|
|
2530
|
+
readonly 'remoteError.description': "Verifique a conexão e tente novamente.";
|
|
2531
|
+
readonly 'remoteError.filteredDescription': "Os filtros permanecem aplicados. Nenhum dado sem filtro foi exibido.";
|
|
2532
|
+
readonly 'remoteError.retry': "Tentar novamente";
|
|
2503
2533
|
readonly 'pagination.itemsPerPage': "Itens por página:";
|
|
2504
2534
|
readonly 'pagination.nextPage': "Próxima página";
|
|
2505
2535
|
readonly 'pagination.previousPage': "Página anterior";
|
|
@@ -2860,4 +2890,4 @@ declare const PRAXIS_LIST_PT_BR: {
|
|
|
2860
2890
|
};
|
|
2861
2891
|
|
|
2862
2892
|
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, PraxisListWidgetConfigEditor, adaptSelection, buildListApplyPlan, createListAuthoringDocument, evalExpr, evaluateTemplate, inferListAuthoringDocument, inferTemplatingFromSchema, isListTemplateSupportedByRichContentP0, mapListTemplateToRichContentP0, normalizeListActionPayloads, normalizeListAuthoringDocument, normalizeListConfig, parseLegacyOrListDocument, projectListAuthoringDocument, providePraxisListI18n, providePraxisListMetadata, serializeListAuthoringDocument, toCanonicalListConfig, validateListAuthoringDocument };
|
|
2863
|
-
export type { Capability, CapabilityCatalog, CapabilityCategory, EditorDiagnostic, EditorDocument, ExecutiveAlert, JsonEditorEvent, JsonValidationResult, ListActionEvent, ListApplyPlan, ListAuthoringDocument, ListExpansionSectionDef, ListExpansionSectionType, ListFeatureDef, ListItemEvent, ListItemStyleEffect, ListItemStyleRule, ListProjectionContext, ListRichContentP0Node, ListRowLayoutSlot, ListRuntimeContext, ListSchemaInferencePlan, ListSection, ListSelectionEvent, ListSlotOverrideEffect, ListSlotOverrideRule, ListTemplatingSlot, ListValidationContext, PraxisListConfig, PraxisListExportConfig, PraxisListI18nConfig, PraxisListWidgetEditorInputs, PraxisListWidgetEditorValue, TemplateDef, TemplateEvaluatorOptions, TemplateFeatureDef, TemplateType, TemplatingFeatureDef, ValueKind };
|
|
2893
|
+
export type { Capability, CapabilityCatalog, CapabilityCategory, EditorDiagnostic, EditorDocument, ExecutiveAlert, JsonEditorEvent, JsonValidationResult, ListActionEvent, ListApplyPlan, ListAuthoringDocument, ListExpansionSectionDef, ListExpansionSectionType, ListFeatureDef, ListItemEvent, ListItemStyleEffect, ListItemStyleRule, ListProjectionContext, ListRemoteLoadError, ListRichContentP0Node, ListRowLayoutSlot, ListRuntimeContext, ListSchemaInferencePlan, ListSection, ListSelectionEvent, ListSlotOverrideEffect, ListSlotOverrideRule, ListTemplatingSlot, ListValidationContext, PraxisListConfig, PraxisListExportConfig, PraxisListI18nConfig, PraxisListWidgetEditorInputs, PraxisListWidgetEditorValue, TemplateDef, TemplateEvaluatorOptions, TemplateFeatureDef, TemplateType, TemplatingFeatureDef, ValueKind };
|