@quadrel-enterprise-ui/framework 18.22.2 → 18.23.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.
@@ -1,6 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import * as i0 from "@angular/core";
3
- type EventName = 'RESOURCE_CREATED' | 'RESOURCE_UPDATED' | 'RESOURCE_DELETED';
3
+ export type EventName = 'RESOURCE_CREATED' | 'RESOURCE_UPDATED' | 'RESOURCE_DELETED';
4
4
  /**
5
5
  * Service for handling real-time server-sent events.
6
6
  *
@@ -74,4 +74,3 @@ export declare class QdPushEventsService {
74
74
  static ɵfac: i0.ɵɵFactoryDeclaration<QdPushEventsService, never>;
75
75
  static ɵprov: i0.ɵɵInjectableDeclaration<QdPushEventsService>;
76
76
  }
77
- export {};
@@ -8,6 +8,10 @@ import { QdTableConfigColumnType } from './table-config-content.interface';
8
8
  * In "harmonized" mode the whitespace will be distributed evenly, considering the width of each column.
9
9
  */
10
10
  export type QdTableFillingColumn = 'main' | 'last' | 'harmonized' | 'none';
11
+ /**
12
+ * Optional Events for triggering a table refresh.
13
+ */
14
+ export type QdTableOptionalRefreshingEventTypes = 'RESOURCE_CREATED' | 'RESOURCE_DELETED';
11
15
  /**
12
16
  * @description Configuration Model for Qd-Tables. The generic type defines the table columns keys.
13
17
  */
@@ -168,6 +172,14 @@ export interface QdTableConfig<T extends string> {
168
172
  * (connect method).
169
173
  */
170
174
  refreshOnPushEvent?: boolean;
175
+ /**
176
+ * @description An optional list of event types that can trigger a refresh of the QdTable component.
177
+ * By default, the table listens for the `RESOURCE_UPDATED` event. Additional events
178
+ * specified in this property will be considered as extra triggers for updating the
179
+ * table view. If defined, the table will respond to both the default and these
180
+ * additional events to ensure that the displayed data remains up-to-date.
181
+ */
182
+ refreshingEvents?: QdTableOptionalRefreshingEventTypes[];
171
183
  /**
172
184
  * @description Sets a unique identifier for the table. Used as key to hold in NgRx store.
173
185
  *
@@ -1,7 +1,7 @@
1
1
  import { QD_TABLE_DATA_RESOLVER_TOKEN } from './model/table-data-resolver.token';
2
2
  import { QdTableSpringTools } from './helpers/spring-tools';
3
3
  import { QdTableDataResolver, QdTableDataResolverProps, QdTableResolvedData } from './model/table-data-resolver';
4
- import { QdTableConfig } from './model/table-config.interface';
4
+ import { QdTableConfig, QdTableOptionalRefreshingEventTypes } from './model/table-config.interface';
5
5
  import { QdTableChipDataValue, QdTableData, QdTableRecentSecondaryAction } from './model/table-data.interface';
6
6
  import { QdSortDirection } from './model/sort-direction.enum';
7
7
  import { QdTableComponent } from './table.component';
@@ -34,7 +34,7 @@ import * as i22 from "../spinner/spinner.module";
34
34
  import * as i23 from "../core/tooltip/tooltip.module";
35
35
  import * as i24 from "../tree/tree.module";
36
36
  import * as i25 from "../tree/tree.component";
37
- export { QD_TABLE_DATA_RESOLVER_TOKEN, QdSortDirection, QdTableChipDataValue, QdTableComponent, QdTableConfig, QdTableData, QdTableDataResolver, QdTableDataResolverProps, QdTableRecentSecondaryAction, QdTableResolvedData, QdTableSpringTools, QdTreeComponent, QdTreeConfig, QdTreeData };
37
+ export { QD_TABLE_DATA_RESOLVER_TOKEN, QdSortDirection, QdTableChipDataValue, QdTableComponent, QdTableConfig, QdTableOptionalRefreshingEventTypes, QdTableData, QdTableDataResolver, QdTableDataResolverProps, QdTableRecentSecondaryAction, QdTableResolvedData, QdTableSpringTools, QdTreeComponent, QdTreeConfig, QdTreeData };
38
38
  export declare class QdTableModule {
39
39
  static ɵfac: i0.ɵɵFactoryDeclaration<QdTableModule, never>;
40
40
  static ɵmod: i0.ɵɵNgModuleDeclaration<QdTableModule, [typeof i1.QdScrollToPaginationDirective, typeof i2.QdTableBodyComponent, typeof i3.QdTableComponent, typeof i4.QdTableEmptyStateComponent, typeof i5.QdTableHeadComponent, typeof i6.QdTablePaginatorComponent, typeof i7.QdTablePaginatorPageSizeComponent, typeof i8.QdTablePaginatorPageSizeDirective, typeof i9.QdTableRowActionsSecondaryMenuComponent, typeof i10.QdTableRowComponent, typeof i11.QdTableRowSelectionComponent, typeof i12.QdTableSortComponent], [typeof i13.CommonModule, typeof i14.TranslateModule, typeof i15.StoreFeatureModule, typeof i16.QdButtonModule, typeof i17.QdChipModule, typeof i18.QdDataFacetsModule, typeof i19.QdIconModule, typeof i20.QdPopoverModule, typeof i21.QdStatusIndicatorModule, typeof i22.QdSpinnerModule, typeof i23.QdTooltipModule, typeof i24.QdTreeModule], [typeof i3.QdTableComponent, typeof i25.QdTreeComponent]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quadrel-enterprise-ui/framework",
3
- "version": "v18.22.2",
3
+ "version": "v18.23.0",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "~18.2.9",
6
6
  "@angular/common": "~18.2.9",