@masterteam/components 0.0.311 → 0.0.313

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.311",
3
+ "version": "0.0.313",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/components",
6
6
  "linkDirectory": true,
@@ -343,6 +343,7 @@ type EntityListComparisonView = 'preserved' | 'current';
343
343
  type EntityListMetadataFailure = 'forbidden' | 'unavailable' | 'failed';
344
344
  interface EntityListColumnDef extends ColumnDef {
345
345
  key: string;
346
+ normalizedKey?: string;
346
347
  label: string;
347
348
  type: 'entity';
348
349
  viewType?: string;
@@ -578,7 +579,9 @@ declare class EntityListField implements ControlValueAccessor {
578
579
  * the deletes they are approving — hiding them understated what pressing
579
580
  * Approve would do. Everywhere else a removed row is simply gone.
580
581
  */
582
+ private readonly pendingDisplayRows;
581
583
  protected readonly displayRows: _angular_core.Signal<EntityListRow[]>;
584
+ protected readonly displayColumns: _angular_core.Signal<EntityListColumnDef[]>;
582
585
  protected readonly hasRows: _angular_core.Signal<boolean>;
583
586
  /**
584
587
  * Tag a rendered row with its staged operation and the cell that displays it.
@@ -666,6 +669,7 @@ declare class EntityListField implements ControlValueAccessor {
666
669
  * table would show an order that is not the one being saved.
667
670
  */
668
671
  protected readonly localColumns: _angular_core.Signal<EntityListColumnDef[]>;
672
+ protected readonly displayLocalColumns: _angular_core.Signal<EntityListColumnDef[]>;
669
673
  /**
670
674
  * Rows as rendered: loaded rows with this session's edits over them, then
671
675
  * new rows, in the order they would be saved. A loaded cell renders from the
@@ -721,6 +725,11 @@ declare class EntityListField implements ControlValueAccessor {
721
725
  * withholds its values, and the row says so, so the user can remove it.
722
726
  */
723
727
  protected readonly selectionRows: _angular_core.Signal<EntityListRow[]>;
728
+ /**
729
+ * Each selected record's name as its row shows it — the first column's text
730
+ * — so the picker can name the ones it asks the user to review.
731
+ */
732
+ private selectionNames;
724
733
  /**
725
734
  * One table row from a rendered record — `{ entityId, values }` with each
726
735
  * value's `rawValue` and rendered `value` — cell by cell against the
@@ -794,6 +803,7 @@ declare class EntityListField implements ControlValueAccessor {
794
803
  private readonly revisionLocalDocument;
795
804
  private readonly revisionLocalFields;
796
805
  protected readonly revisionLocalColumns: _angular_core.Signal<EntityListColumnDef[]>;
806
+ protected readonly displayRevisionLocalColumns: _angular_core.Signal<EntityListColumnDef[]>;
797
807
  protected readonly revisionLocalRows: _angular_core.Signal<EntityListRow[]>;
798
808
  /** The history list is open. */
799
809
  protected readonly revisionsOpen: _angular_core.WritableSignal<boolean>;
@@ -845,6 +845,17 @@ declare function resolveEntityLabelPosition(configuration?: EntityConfiguration
845
845
  */
846
846
  declare function normalizeNumerals(input: string): string;
847
847
 
848
+ interface StakeholderNameColumn {
849
+ key: string;
850
+ normalizedKey?: string;
851
+ }
852
+ /** Stakeholder cards show the two mutually exclusive names in one name slot. */
853
+ declare function mergeStakeholderNameEntities(entities: EntityData[]): EntityData[];
854
+ /** Hide the duplicate only when both stakeholder name fields are displayed. */
855
+ declare function mergeStakeholderNameColumns<T extends StakeholderNameColumn>(columns: T[]): T[];
856
+ /** Presentation only: retain the original cells and row edit/submission maps. */
857
+ declare function mergeStakeholderNameRows<T extends Record<string, unknown>>(columns: StakeholderNameColumn[], rows: T[]): T[];
858
+
848
859
  type EntityFieldGap = 'compact' | 'normal' | 'relaxed';
849
860
  declare class EntityField {
850
861
  readonly label: _angular_core.InputSignal<string>;
@@ -2033,5 +2044,5 @@ declare class FitText {
2033
2044
 
2034
2045
  declare function sharedActiveLang(transloco: TranslocoService): Signal<string>;
2035
2046
 
2036
- export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_LIST_TABLE_COMPONENT, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityRuntimeContextStore, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, getEntitySectionTitle, groupEntitiesIntoSections, humanizeEntityListKey, isConnectionSyntheticKey, isEntityAlignEnd, isEntityLabelHidden, isEntityListLocalDocument, isEntityListSelectionDocument, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, localCellsByFieldId, matchesPercentageColorRule, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, readEntityValueColor, resolveConnectionLevelName, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalFieldConfiguration, resolveLocalFieldLabel, resolveLocalFieldViewType, resolveLocalizedLabel, resolvePercentageColor, serializeEntityRawValue, sharedActiveLang, sortLocalRows, splitConnectionKey, splitLeafKey, summarizeEntityListRows, visibleLocalSchemaFields };
2047
+ export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_LIST_TABLE_COMPONENT, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityRuntimeContextStore, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, getEntitySectionTitle, groupEntitiesIntoSections, humanizeEntityListKey, isConnectionSyntheticKey, isEntityAlignEnd, isEntityLabelHidden, isEntityListLocalDocument, isEntityListSelectionDocument, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, localCellsByFieldId, matchesPercentageColorRule, mergeStakeholderNameColumns, mergeStakeholderNameEntities, mergeStakeholderNameRows, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, readEntityValueColor, resolveConnectionLevelName, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalFieldConfiguration, resolveLocalFieldLabel, resolveLocalFieldViewType, resolveLocalizedLabel, resolvePercentageColor, serializeEntityRawValue, sharedActiveLang, sortLocalRows, splitConnectionKey, splitLeafKey, summarizeEntityListRows, visibleLocalSchemaFields };
2037
2048
  export type { ComparisonValueSide, ConnectionCatalogConfiguration, ConnectionLevelSavedConfig, ConnectionSourceLevelConfig, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionConfig, EntityConnectionSourceValue, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityListEntityValue, EntityListInlineFieldMeta, EntityListLocalCell, EntityListLocalDocument, EntityListLocalFieldDefinition, EntityListLocalFieldWidth, EntityListLocalRow, EntityListLocalSchema, EntityListLocalSchemaField, EntityListRenderedRow, EntityListRowValue, EntityListSelectionDocument, EntityListSelectionRecord, EntityListSelectionRecordValue, EntityListTableHost, EntityListTranslatable, EntityListValueItem, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityRuntimeContext, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityTranslatableTextValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsBadgeKind, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogPhaseValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsPhaseSummary, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimePhaseCount, LeafDetailsRuntimePhaseDetails, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, LeafPhaseSavedConfig, PercentageColorMode, PercentageColorPropertyRef, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };
@@ -275,6 +275,12 @@ declare class Table {
275
275
  rowClick: _angular_core.OutputEmitterRef<any>;
276
276
  /** Fired when the empty state's action button is pressed. */
277
277
  emptyAction: _angular_core.OutputEmitterRef<void>;
278
+ /**
279
+ * Fired when the default "Clear filters" action resets the table's search
280
+ * term and filters. A host that also filters outside the table (see
281
+ * `externalFiltersActive`) clears its own filters here.
282
+ */
283
+ filtersCleared: _angular_core.OutputEmitterRef<void>;
278
284
  /**
279
285
  * Fires when the per-row actions popover is opened (3-dots click) so the
280
286
  * parent can lazy-load row-specific actions instead of fetching for every
@@ -372,6 +378,16 @@ declare class Table {
372
378
  */
373
379
  emptyActionLabel: _angular_core.InputSignal<string | undefined>;
374
380
  emptyActionIcon: _angular_core.InputSignal<MTIcon | undefined>;
381
+ /**
382
+ * Whether the host narrowed the rows with filters the table cannot see — a
383
+ * header filter builder, a server-side query. The empty state then reads
384
+ * "No results match your filters" and offers "Clear filters" instead of the
385
+ * empty-list copy. The host owns the reload: on `filtersCleared` the table
386
+ * resets its own state without emitting `lazyLoad`, so the host's clear is
387
+ * the only request in flight. A host with server-side search
388
+ * (`lazyLocalSearch` off) must read the cleared `filterTerm` for that reload.
389
+ */
390
+ externalFiltersActive: _angular_core.InputSignalWithTransform<boolean, unknown>;
375
391
  paginatorPosition: _angular_core.InputSignal<"start" | "center" | "end">;
376
392
  /**
377
393
  * Pagination for a single page of rows is noise that implies more data
@@ -418,6 +434,9 @@ declare class Table {
418
434
  * The empty-state action. A caller that supplied its own label owns the
419
435
  * behaviour and just gets the event; otherwise the default action is the one
420
436
  * the default label promises — clear the filters and the search term.
437
+ * With external filters active the host reloads once it has cleared its own,
438
+ * so the table skips its `lazyLoad`: two un-cancelled requests would race,
439
+ * and the stale filtered response could land last.
421
440
  */
422
441
  protected onEmptyAction(): void;
423
442
  protected filteredData: _angular_core.Signal<any[]>;
@@ -511,6 +530,12 @@ declare class Table {
511
530
  protected updatePagingFromEvent(event: any): void;
512
531
  protected emitLazyLoad(event: any): void;
513
532
  private lazyLoadFilters;
533
+ /**
534
+ * Removes date-range filters whose end falls before their start. Returns the
535
+ * same object when there is nothing to remove, so callers can compare by
536
+ * reference.
537
+ */
538
+ private withoutReversedDateRanges;
514
539
  private withoutGeneralSearch;
515
540
  exportExcel(): void;
516
541
  printPdf(): void;
@@ -593,7 +618,7 @@ declare class Table {
593
618
  private resolveScrollHeightPixels;
594
619
  private toNonNegativeInteger;
595
620
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, never>;
596
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "mt-table", never, { "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showGridlines": { "alias": "showGridlines"; "required": false; "isSignal": true; }; "stripedRows": { "alias": "stripedRows"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "clickableRows": { "alias": "clickableRows"; "required": false; "isSignal": true; }; "generalSearch": { "alias": "generalSearch"; "required": false; "isSignal": true; }; "lazyLocalSearch": { "alias": "lazyLocalSearch"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "updating": { "alias": "updating"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "lazyLocalSort": { "alias": "lazyLocalSort"; "required": false; "isSignal": true; }; "lazyTotalRecords": { "alias": "lazyTotalRecords"; "required": false; "isSignal": true; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; "isSignal": true; }; "reorderableRows": { "alias": "reorderableRows"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "storageMode": { "alias": "storageMode"; "required": false; "isSignal": true; }; "persistStateExclude": { "alias": "persistStateExclude"; "required": false; "isSignal": true; }; "exportable": { "alias": "exportable"; "required": false; "isSignal": true; }; "printable": { "alias": "printable"; "required": false; "isSignal": true; }; "groupable": { "alias": "groupable"; "required": false; "isSignal": true; }; "groupCountMap": { "alias": "groupCountMap"; "required": false; "isSignal": true; }; "cellClickFilter": { "alias": "cellClickFilter"; "required": false; "isSignal": true; }; "freezeActions": { "alias": "freezeActions"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "printTitle": { "alias": "printTitle"; "required": false; "isSignal": true; }; "exportFilename": { "alias": "exportFilename"; "required": false; "isSignal": true; }; "actionShape": { "alias": "actionShape"; "required": false; "isSignal": true; }; "rowActionsLoadingFn": { "alias": "rowActionsLoadingFn"; "required": false; "isSignal": true; }; "tableLayout": { "alias": "tableLayout"; "required": false; "isSignal": true; }; "noCard": { "alias": "noCard"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "tabsOptionLabel": { "alias": "tabsOptionLabel"; "required": false; "isSignal": true; }; "tabsOptionValue": { "alias": "tabsOptionValue"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "captionStartTemplate": { "alias": "captionStartTemplate"; "required": false; "isSignal": true; }; "captionEndTemplate": { "alias": "captionEndTemplate"; "required": false; "isSignal": true; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; "isSignal": true; }; "emptyDescription": { "alias": "emptyDescription"; "required": false; "isSignal": true; }; "emptyActionLabel": { "alias": "emptyActionLabel"; "required": false; "isSignal": true; }; "emptyActionIcon": { "alias": "emptyActionIcon"; "required": false; "isSignal": true; }; "paginatorPosition": { "alias": "paginatorPosition"; "required": false; "isSignal": true; }; "alwaysShowPaginator": { "alias": "alwaysShowPaginator"; "required": false; "isSignal": true; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "sortField": { "alias": "sortField"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "cellChange": "cellChange"; "lazyLoad": "lazyLoad"; "columnReorder": "columnReorder"; "rowReorder": "rowReorder"; "rowClick": "rowClick"; "emptyAction": "emptyAction"; "rowActionsRequested": "rowActionsRequested"; "filters": "filtersChange"; "activeTab": "activeTabChange"; "onTabChange": "onTabChange"; "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; "first": "firstChange"; "filterTerm": "filterTermChange"; "groupBy": "groupByChange"; "sortField": "sortFieldChange"; "sortDirection": "sortDirectionChange"; }, ["captionStartContent", "captionEndContent", "emptyContent"], never, true, never>;
621
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "mt-table", never, { "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showGridlines": { "alias": "showGridlines"; "required": false; "isSignal": true; }; "stripedRows": { "alias": "stripedRows"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "clickableRows": { "alias": "clickableRows"; "required": false; "isSignal": true; }; "generalSearch": { "alias": "generalSearch"; "required": false; "isSignal": true; }; "lazyLocalSearch": { "alias": "lazyLocalSearch"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "updating": { "alias": "updating"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "lazyLocalSort": { "alias": "lazyLocalSort"; "required": false; "isSignal": true; }; "lazyTotalRecords": { "alias": "lazyTotalRecords"; "required": false; "isSignal": true; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; "isSignal": true; }; "reorderableRows": { "alias": "reorderableRows"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "storageMode": { "alias": "storageMode"; "required": false; "isSignal": true; }; "persistStateExclude": { "alias": "persistStateExclude"; "required": false; "isSignal": true; }; "exportable": { "alias": "exportable"; "required": false; "isSignal": true; }; "printable": { "alias": "printable"; "required": false; "isSignal": true; }; "groupable": { "alias": "groupable"; "required": false; "isSignal": true; }; "groupCountMap": { "alias": "groupCountMap"; "required": false; "isSignal": true; }; "cellClickFilter": { "alias": "cellClickFilter"; "required": false; "isSignal": true; }; "freezeActions": { "alias": "freezeActions"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "printTitle": { "alias": "printTitle"; "required": false; "isSignal": true; }; "exportFilename": { "alias": "exportFilename"; "required": false; "isSignal": true; }; "actionShape": { "alias": "actionShape"; "required": false; "isSignal": true; }; "rowActionsLoadingFn": { "alias": "rowActionsLoadingFn"; "required": false; "isSignal": true; }; "tableLayout": { "alias": "tableLayout"; "required": false; "isSignal": true; }; "noCard": { "alias": "noCard"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "tabsOptionLabel": { "alias": "tabsOptionLabel"; "required": false; "isSignal": true; }; "tabsOptionValue": { "alias": "tabsOptionValue"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "captionStartTemplate": { "alias": "captionStartTemplate"; "required": false; "isSignal": true; }; "captionEndTemplate": { "alias": "captionEndTemplate"; "required": false; "isSignal": true; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; "isSignal": true; }; "emptyDescription": { "alias": "emptyDescription"; "required": false; "isSignal": true; }; "emptyActionLabel": { "alias": "emptyActionLabel"; "required": false; "isSignal": true; }; "emptyActionIcon": { "alias": "emptyActionIcon"; "required": false; "isSignal": true; }; "externalFiltersActive": { "alias": "externalFiltersActive"; "required": false; "isSignal": true; }; "paginatorPosition": { "alias": "paginatorPosition"; "required": false; "isSignal": true; }; "alwaysShowPaginator": { "alias": "alwaysShowPaginator"; "required": false; "isSignal": true; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "sortField": { "alias": "sortField"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "cellChange": "cellChange"; "lazyLoad": "lazyLoad"; "columnReorder": "columnReorder"; "rowReorder": "rowReorder"; "rowClick": "rowClick"; "emptyAction": "emptyAction"; "filtersCleared": "filtersCleared"; "rowActionsRequested": "rowActionsRequested"; "filters": "filtersChange"; "activeTab": "activeTabChange"; "onTabChange": "onTabChange"; "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; "first": "firstChange"; "filterTerm": "filterTermChange"; "groupBy": "groupByChange"; "sortField": "sortFieldChange"; "sortDirection": "sortDirectionChange"; }, ["captionStartContent", "captionEndContent", "emptyContent"], never, true, never>;
597
622
  }
598
623
 
599
624
  type TableEntityUsage = 'sort' | 'export' | 'filter';
@@ -665,6 +690,24 @@ declare class TableValueResolver {
665
690
  * or user lookup). Shared by popover and per-column modes to compute active counts.
666
691
  */
667
692
  static hasFilterValue(value: unknown): boolean;
693
+ /**
694
+ * True when a date-range filter ends on an earlier calendar day than it
695
+ * starts. Compared by local calendar day, not instant: the filter picks whole
696
+ * days (`to` is widened to 23:59:59.999 when matching), so `from` and `to` on
697
+ * the same day is a valid one-day range. A range with only one bound, or a
698
+ * bound that does not parse as a date, is not reversed.
699
+ *
700
+ * Callers pass only values of columns whose filter type is `date` — a
701
+ * `numberRange` value has the same `{ from, to }` shape and is not checked.
702
+ */
703
+ static isReversedDateRange(value: unknown): boolean;
704
+ /**
705
+ * Keys in `filters` holding a reversed date range, resolved against
706
+ * `columns`. A key with no matching column, or whose column does not filter
707
+ * as `date`, is never reported.
708
+ */
709
+ static getReversedDateRangeKeys(filters: TableFilters, columns: ColumnDef[], row?: Record<string, unknown>): string[];
710
+ private static toLocalDayStart;
668
711
  /**
669
712
  * Produces the filter payload a cell-click should apply for `column`.
670
713
  * Returns null when the cell type is not click-filterable.
@@ -727,6 +770,11 @@ declare class TableFilter implements ControlValueAccessor {
727
770
  protected filterableColumns: _angular_core.Signal<ColumnDef[]>;
728
771
  protected activeFilterCount: _angular_core.Signal<number>;
729
772
  protected updateFilter(key: string, value: any): void;
773
+ /**
774
+ * A reversed date range can only ever match nothing, so it is never applied:
775
+ * Apply is disabled while one is pending and the field explains why.
776
+ */
777
+ protected readonly hasReversedDateRange: _angular_core.Signal<boolean>;
730
778
  protected apply(): void;
731
779
  protected reset(): void;
732
780
  writeValue(value: TableFilters | null): void;
@@ -747,6 +795,14 @@ declare class TableFilterField {
747
795
  protected readonly multiValue: _angular_core.Signal<readonly unknown[]>;
748
796
  protected readonly filterOptions: _angular_core.Signal<readonly unknown[]>;
749
797
  protected readonly treeOptions: _angular_core.Signal<primeng_api.TreeNode<any>[]>;
798
+ protected readonly dateFrom: _angular_core.Signal<Date | null>;
799
+ protected readonly dateTo: _angular_core.Signal<Date | null>;
800
+ /**
801
+ * The pickers already grey out days on the wrong side of the other bound,
802
+ * but a typed date or a value set from outside can still arrive reversed —
803
+ * this drives the message that explains why Apply is unavailable.
804
+ */
805
+ protected readonly isDateRangeReversed: _angular_core.Signal<boolean>;
750
806
  protected getFilterType(): string;
751
807
  /**
752
808
  * `select` / `userSelect` filters default to multi-select unless the caller
@@ -790,6 +846,12 @@ declare class TableColumnFilter {
790
846
  private readonly popoverRef;
791
847
  constructor();
792
848
  protected open(popover: Popover, event: Event): void;
849
+ /**
850
+ * Same rule as the filter drawer: a reversed date range is never applied.
851
+ * Checked in `apply` too, because Enter in the popover calls it directly
852
+ * and bypasses the disabled button.
853
+ */
854
+ protected readonly hasReversedDateRange: _angular_core.Signal<boolean>;
793
855
  protected apply(popover: Popover): void;
794
856
  protected clear(popover: Popover): void;
795
857
  private cloneValue;