commons-shared-web-ui 0.0.82 → 0.0.84

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
@@ -3936,6 +3936,8 @@ interface NestedStringConfig {
3936
3936
  interface QueryParamsConfig {
3937
3937
  pageKey?: string;
3938
3938
  sizeKey?: string;
3939
+ sortKey?: string;
3940
+ orderKey?: string;
3939
3941
  pageIndexOffset?: number;
3940
3942
  filterHandling?: 'standard' | 'nested_string';
3941
3943
  nestedStringConfig?: NestedStringConfig;
@@ -5032,6 +5034,12 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
5032
5034
  * external-data mode. Must be kept in sync by the parent.
5033
5035
  */
5034
5036
  totalItemsCount?: number;
5037
+ /**
5038
+ * External loading state: when the table operates in external-data mode
5039
+ * (i.e. [tableData] is provided), the parent controls the loading spinner
5040
+ * via this input. Ignored in internal-data mode where loading is self-managed.
5041
+ */
5042
+ externalLoading: boolean;
5035
5043
  action: EventEmitter<{
5036
5044
  action: TableAction;
5037
5045
  row: any;
@@ -5064,6 +5072,12 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
5064
5072
  currentPage: number;
5065
5073
  loading: boolean;
5066
5074
  originalRowsCache: Map<any, any>;
5075
+ /**
5076
+ * Unified loading state used by the template. In external-data mode,
5077
+ * defers to `externalLoading` (parent-driven). In internal-data mode,
5078
+ * uses the internally managed `loading` flag.
5079
+ */
5080
+ get isTableLoading(): boolean;
5067
5081
  activeSort: {
5068
5082
  key: string;
5069
5083
  direction: 'ASC' | 'DESC';
@@ -5249,7 +5263,7 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
5249
5263
  /** Normalize Date objects back to ISO strings before sending payloads. */
5250
5264
  private normalizeDateFieldsForSave;
5251
5265
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableComponent, never>;
5252
- static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableComponent, "lib-smart-table", never, { "config": { "alias": "config"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "totalItemsCount": { "alias": "totalItemsCount"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; }, { "action": "action"; "topAction": "topAction"; "filterChange": "filterChange"; "rowSelect": "rowSelect"; "columnClick": "columnClick"; "sortChange": "sortChange"; "pageChange": "pageChange"; "searchChange": "searchChange"; "rowSave": "rowSave"; }, never, never, false, never>;
5266
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableComponent, "lib-smart-table", never, { "config": { "alias": "config"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "totalItemsCount": { "alias": "totalItemsCount"; "required": false; }; "externalLoading": { "alias": "externalLoading"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; }, { "action": "action"; "topAction": "topAction"; "filterChange": "filterChange"; "rowSelect": "rowSelect"; "columnClick": "columnClick"; "sortChange": "sortChange"; "pageChange": "pageChange"; "searchChange": "searchChange"; "rowSave": "rowSave"; }, never, never, false, never>;
5253
5267
  }
5254
5268
 
5255
5269
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commons-shared-web-ui",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "20.3.15",
6
6
  "@angular/cdk": "20.2.14",