@ascentgl/ads-ui 21.130.0 → 21.132.0

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": "@ascentgl/ads-ui",
3
- "version": "21.130.0",
3
+ "version": "21.132.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">=21.0.0",
6
6
  "date-fns": ">=4.1.0",
@@ -262,7 +262,7 @@ declare class AdsButtonModule {
262
262
 
263
263
  declare class AdsButtonContainerComponent {
264
264
  /** How buttons in the container should be placed */
265
- justify: i0.InputSignal<"center" | "flex-start" | "flex-end">;
265
+ justify: i0.InputSignal<"flex-start" | "flex-end" | "center">;
266
266
  /** The gap between elements */
267
267
  gap: i0.InputSignal<number>;
268
268
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsButtonContainerComponent, never>;
@@ -2724,7 +2724,7 @@ declare class AdsExpansionPanelComponent implements AfterContentInit {
2724
2724
  /** Component width. Must include units of measure: px, %, em, rem, etc. */
2725
2725
  width: i0.InputSignal<string>;
2726
2726
  /** The Chevron Icon size () */
2727
- chevronSize: i0.InputSignal<"xs" | "base">;
2727
+ chevronSize: i0.InputSignal<"base" | "xs">;
2728
2728
  /** Header padding size () */
2729
2729
  headerPadding: i0.InputSignal<string>;
2730
2730
  /** Content padding size () */
@@ -2941,7 +2941,7 @@ declare class AdsSortMenuComponent implements OnChanges, OnDestroy {
2941
2941
  /** All column sort/filter configs (all possible columns) */
2942
2942
  columnSortFilterConfigs: ColumnSortFilterConfig[];
2943
2943
  /** Current column sort states from the table */
2944
- columnSortStates: Map<string, "asc" | "desc" | null>;
2944
+ columnSortStates: Map<string, "desc" | "asc" | null>;
2945
2945
  /** Emits when sort configuration changes (order or direction) */
2946
2946
  sortChanged: EventEmitter<SortMenuChangeEvent>;
2947
2947
  /** Emits when sorts are removed for columns */
@@ -3124,7 +3124,7 @@ declare class AdsTableComponent implements AfterViewInit, AfterViewChecked, OnCh
3124
3124
  values: string[];
3125
3125
  }>;
3126
3126
  /** Event emitted when view mode changes between grid and list */
3127
- viewChanged: EventEmitter<"grid" | "list">;
3127
+ viewChanged: EventEmitter<"list" | "grid">;
3128
3128
  /** @ignore - Current view mode: grid or list */
3129
3129
  isListView: i0.WritableSignal<boolean>;
3130
3130
  /** @ignore - Cached filtered row data for list view */
@@ -3164,7 +3164,7 @@ declare class AdsTableComponent implements AfterViewInit, AfterViewChecked, OnCh
3164
3164
  /** @ignore */
3165
3165
  activeColumnMenu: i0.WritableSignal<string | null>;
3166
3166
  /** @ignore */
3167
- columnSortStates: i0.WritableSignal<Map<string, "asc" | "desc" | null>>;
3167
+ columnSortStates: i0.WritableSignal<Map<string, "desc" | "asc" | null>>;
3168
3168
  /** @ignore */
3169
3169
  columnFilterStates: i0.WritableSignal<Map<string, string[]>>;
3170
3170
  /** @ignore */
@@ -4056,7 +4056,7 @@ declare class AdsHorizontalStepperComponent {
4056
4056
  /**
4057
4057
  * Stepper size
4058
4058
  */
4059
- size: i0.InputSignal<"xs" | "base">;
4059
+ size: i0.InputSignal<"base" | "xs">;
4060
4060
  /** @ignore */
4061
4061
  protected isBaseSize: i0.Signal<boolean>;
4062
4062
  /** Event emitted when a step is clicked */
@@ -4125,6 +4125,8 @@ type ShipmentHistoryContextTag = {
4125
4125
  type ShipmentHistoryEvent = {
4126
4126
  /** Status of the event — determines the indicator icon */
4127
4127
  action: ShipmentHistoryAction;
4128
+ /** Overrides the displayed action label (e.g. a translated or custom string). Falls back to `action` if not provided. */
4129
+ actionLabel?: string;
4128
4130
  /** Optional context badge shown between action and field name */
4129
4131
  contextTag?: ShipmentHistoryContextTag;
4130
4132
  /** Name of the changed field */
@@ -4144,41 +4146,37 @@ type ShipmentHistoryGroup = {
4144
4146
  events: ShipmentHistoryEvent[];
4145
4147
  };
4146
4148
 
4147
- type HistorySeparatorItem = {
4148
- kind: 'separator';
4149
- date: string;
4150
- };
4151
- type HistoryEventItem = {
4152
- kind: 'event';
4149
+ type HistoryListItem = {
4153
4150
  event: ShipmentHistoryEvent;
4154
4151
  isLast: boolean;
4152
+ /** Set only for the first event in each group — renders the date header above the event row */
4153
+ dateHeader?: string;
4155
4154
  };
4156
- type HistoryListItem = HistorySeparatorItem | HistoryEventItem;
4157
4155
  declare class AdsShipmentHistoryStepperComponent {
4158
4156
  private registry;
4159
4157
  /** @ignore */
4160
4158
  constructor(registry: AdsIconRegistry);
4161
4159
  /** Grouped history events, each group representing a single day */
4162
4160
  groups: i0.InputSignal<ShipmentHistoryGroup[]>;
4161
+ /** Estimated item height in px used by the virtual scroll viewport */
4162
+ protected readonly ITEM_HEIGHT = 120;
4163
4163
  /** @ignore */
4164
4164
  protected readonly ShipmentHistoryAction: typeof ShipmentHistoryAction;
4165
4165
  /** @ignore */
4166
4166
  protected listItems: i0.Signal<HistoryListItem[]>;
4167
4167
  /** @ignore */
4168
- protected isSeparator(item: HistoryListItem): item is HistorySeparatorItem;
4169
- /** @ignore */
4170
- protected isEvent(item: HistoryListItem): item is HistoryEventItem;
4168
+ protected trackItem(_index: number, item: HistoryListItem): string;
4171
4169
  /** @ignore */
4172
4170
  protected resolveTagColor(color: Colors | undefined): Colors;
4173
4171
  /** @ignore */
4174
- protected resolveIconName(action: ShipmentHistoryAction): 'pencil' | 'file_add' | 'cross';
4172
+ protected resolveIconName(action: ShipmentHistoryAction): 'pencil' | 'file_add' | 'cross' | 'canceled_shipment';
4175
4173
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsShipmentHistoryStepperComponent, never>;
4176
4174
  static ɵcmp: i0.ɵɵComponentDeclaration<AdsShipmentHistoryStepperComponent, "ads-shipment-history-stepper", never, { "groups": { "alias": "groups"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
4177
4175
  }
4178
4176
 
4179
4177
  declare class AdsShipmentHistoryStepperModule {
4180
4178
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsShipmentHistoryStepperModule, never>;
4181
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdsShipmentHistoryStepperModule, [typeof AdsShipmentHistoryStepperComponent], [typeof i2.CommonModule, typeof i4.AdsIconModule, typeof AdsTagModule], [typeof AdsShipmentHistoryStepperComponent]>;
4179
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdsShipmentHistoryStepperModule, [typeof AdsShipmentHistoryStepperComponent], [typeof i2.CommonModule, typeof i3$8.ScrollingModule, typeof i4.AdsIconModule, typeof AdsTagModule], [typeof AdsShipmentHistoryStepperComponent]>;
4182
4180
  static ɵinj: i0.ɵɵInjectorDeclaration<AdsShipmentHistoryStepperModule>;
4183
4181
  }
4184
4182