@qualcomm-ui/angular 1.3.3 → 1.5.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/table/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InputSignal, OnDestroy, OnInit, ElementRef, Signal } from '@angular/core';
3
3
  import * as _qualcomm_ui_core_table from '@qualcomm-ui/core/table';
4
- import { ColumnMeta, CellContext, HeaderContext, Cell, Header, Row, RowData, TableInstance, TableOptions } from '@qualcomm-ui/core/table';
4
+ import { ColumnMeta, CellContext, HeaderContext, Cell, Header, SortDirection, Row, RowData, TableInstance, TableOptions } from '@qualcomm-ui/core/table';
5
5
  import * as _qualcomm_ui_qds_core_table from '@qualcomm-ui/qds-core/table';
6
6
  import { QdsTableCellProps, QdsTableColumnDropIndicatorProps, QdsTableColumnFilterProps, QdsTableColumnResizerProps, QdsTableColumnSortActionProps, QdsTableHeaderCellProps, QdsTableApiProps, QdsTableSize, QdsTableRowDropIndicatorProps, QdsTableRowExpandButtonProps, QdsTableRowProps } from '@qualcomm-ui/qds-core/table';
7
7
  import { Booleanish } from '@qualcomm-ui/utils/coercion';
@@ -25,6 +25,12 @@ declare class CellComponentContextDirective<TableData extends object, ColumnValu
25
25
  static ɵdir: i0.ɵɵDirectiveDeclaration<CellComponentContextDirective<any, any, any>, never, never, { "context": { "alias": "context"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
26
26
  }
27
27
 
28
+ declare class HeaderComponentContextDirective<TableData extends object, ColumnValue = any, TableColumnMeta = ColumnMeta> implements HeaderComponentContext<TableData, ColumnValue, TableColumnMeta> {
29
+ readonly context: i0.InputSignal<HeaderContext<TableData, ColumnValue, TableColumnMeta>>;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponentContextDirective<any, any, any>, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HeaderComponentContextDirective<any, any, any>, never, never, { "context": { "alias": "context"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
32
+ }
33
+
28
34
  declare const qdsTableApi: _qualcomm_ui_qds_core_table.QdsTableApi;
29
35
 
30
36
  declare class RenderCellDirective implements OnDestroy {
@@ -179,17 +185,41 @@ declare class TableColumnDropIndicatorDirective implements OnInit, SignalifyInpu
179
185
  }
180
186
 
181
187
  declare class TableColumnFilterActionDirective implements OnInit, SignalifyInput<QdsTableColumnFilterProps> {
188
+ /**
189
+ * Whether the column can be filtered. Pass in the state from the column:
190
+ *
191
+ * @example
192
+ * ```angular-html
193
+ * <button
194
+ * q-table-column-filter-action
195
+ * [canFilter]="header.column.getCanFilter()"
196
+ * ></button>
197
+ * ```
198
+ */
199
+ readonly canFilter: i0.InputSignalWithTransform<boolean | undefined, Booleanish>;
200
+ /**
201
+ * Whether the column is filtered. Pass in the state from the column:
202
+ *
203
+ * @example
204
+ * ```angular-html
205
+ * <button
206
+ * q-table-column-filter-action
207
+ * [isFiltered]="header.column.getIsFiltered()"
208
+ * ></button>
209
+ * ```
210
+ */
211
+ readonly isFiltered: i0.InputSignalWithTransform<boolean | undefined, Booleanish>;
182
212
  /**
183
213
  * The column header associated with the filter.
184
214
  */
185
- readonly header: i0.InputSignal<Header<any, unknown, _qualcomm_ui_core_table.ColumnMeta>>;
215
+ readonly header: i0.InputSignal<Header<any, unknown, _qualcomm_ui_core_table.ColumnMeta> | undefined>;
186
216
  /**
187
217
  * Lucide icon to display inside the button.
188
218
  *
189
- * @default "Filter"
219
+ * @default "Funnel"
190
220
  */
191
221
  readonly icon: i0.InputSignal<LucideIconOrString>;
192
- protected readonly canFilter: i0.Signal<boolean>;
222
+ protected readonly filterable: i0.Signal<boolean | undefined>;
193
223
  protected readonly inlineIconButtonApi: i0.Signal<_qualcomm_ui_qds_core_inline_icon_button.QdsInlineIconButtonApi>;
194
224
  protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
195
225
  extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
@@ -197,7 +227,7 @@ declare class TableColumnFilterActionDirective implements OnInit, SignalifyInput
197
227
  };
198
228
  ngOnInit(): void;
199
229
  static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnFilterActionDirective, never>;
200
- static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnFilterActionDirective, "[q-table-column-filter-action]", never, { "header": { "alias": "header"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
230
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnFilterActionDirective, "[q-table-column-filter-action]", never, { "canFilter": { "alias": "canFilter"; "required": false; "isSignal": true; }; "isFiltered": { "alias": "isFiltered"; "required": false; "isSignal": true; }; "header": { "alias": "header"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
201
231
  }
202
232
 
203
233
  declare class TableColumnHeaderActionDirective implements OnInit {
@@ -237,6 +267,18 @@ declare class TableColumnResizeHandleDirective implements OnInit, SignalifyInput
237
267
  }
238
268
 
239
269
  declare class TableColumnSortActionDirective implements OnInit, SignalifyInput<QdsTableColumnSortActionProps> {
270
+ /**
271
+ * Whether the column is sorted. Pass in the state from the column:
272
+ *
273
+ * @example
274
+ * ```angular-html
275
+ * <button
276
+ * q-table-column-sort-action
277
+ * [isSorted]="column.getIsSorted()">
278
+ * </button>
279
+ * ```
280
+ */
281
+ readonly isSorted: i0.InputSignal<false | SortDirection>;
240
282
  /**
241
283
  * The column header associated with the sort action.
242
284
  */
@@ -250,7 +292,7 @@ declare class TableColumnSortActionDirective implements OnInit, SignalifyInput<Q
250
292
  };
251
293
  ngOnInit(): void;
252
294
  static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnSortActionDirective, never>;
253
- static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnSortActionDirective, "[q-table-column-sort-action]", never, { "header": { "alias": "header"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
295
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnSortActionDirective, "[q-table-column-sort-action]", never, { "isSorted": { "alias": "isSorted"; "required": false; "isSignal": true; }; "header": { "alias": "header"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
254
296
  }
255
297
 
256
298
  declare class TableFooterDirective implements OnInit {
@@ -375,6 +417,17 @@ declare class TableRowDropIndicatorDirective implements OnInit, SignalifyInput<Q
375
417
  }
376
418
 
377
419
  declare class TableRowExpandButtonDirective implements OnInit, SignalifyInput<QdsTableRowExpandButtonProps> {
420
+ /**
421
+ * Whether the row is expanded. Pass in the state from the row:
422
+ *
423
+ * @example
424
+ * ```angular-html
425
+ * <button
426
+ * q-table-row-expand-button
427
+ * [isExpanded]="row.getIsExpanded()"
428
+ * ></button>
429
+ * ```
430
+ */
378
431
  readonly isExpanded: i0.InputSignalWithTransform<boolean | undefined, Booleanish>;
379
432
  /**
380
433
  * The row associated with the expand button.
@@ -478,6 +531,6 @@ interface TablePagination {
478
531
  */
479
532
  declare function createTablePagination<TData extends RowData>(table: AngularTable<TData>, opts?: CreateTablePaginationOptions): TablePagination;
480
533
 
481
- export { CellComponentContextDirective, RenderCellDirective, RenderFooterDirective, RenderHeaderDirective, TableActionBarDirective, TableBodyDirective, TableCellActionDirective, TableCellDirective, TableColumnDragHandleDirective, TableColumnDragPreviewDirective, TableColumnDropIndicatorDirective, TableColumnFilterActionDirective, TableColumnHeaderActionDirective, TableColumnResizeHandleDirective, TableColumnSortActionDirective, TableFooterDirective, TableHeaderCellDirective, TableHeaderDirective, TableModule, TablePaginationDirective, TableRootDirective, TableRowDirective, TableRowDragHandleDirective, TableRowDragPreviewDirective, TableRowDropIndicatorDirective, TableRowExpandButtonDirective, TableScrollContainerDirective, TableTableDirective, TableTitleBarDirective, createAngularTable, createTablePagination, qdsTableApi };
534
+ export { CellComponentContextDirective, HeaderComponentContextDirective, RenderCellDirective, RenderFooterDirective, RenderHeaderDirective, TableActionBarDirective, TableBodyDirective, TableCellActionDirective, TableCellDirective, TableColumnDragHandleDirective, TableColumnDragPreviewDirective, TableColumnDropIndicatorDirective, TableColumnFilterActionDirective, TableColumnHeaderActionDirective, TableColumnResizeHandleDirective, TableColumnSortActionDirective, TableFooterDirective, TableHeaderCellDirective, TableHeaderDirective, TableModule, TablePaginationDirective, TableRootDirective, TableRowDirective, TableRowDragHandleDirective, TableRowDragPreviewDirective, TableRowDropIndicatorDirective, TableRowExpandButtonDirective, TableScrollContainerDirective, TableTableDirective, TableTitleBarDirective, createAngularTable, createTablePagination, qdsTableApi };
482
535
  export type { AngularTable, CellComponentContext, CreateTablePaginationOptions, HeaderComponentContext, TablePagination };
483
536
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../src/table/types/context.ts","../../src/table/components/custom/cell-component-context.directive.ts","../../src/table/components/qds-table-api.ts","../../src/table/components/renderers/render-cell.directive.ts","../../src/table/components/renderers/render-footer.directive.ts","../../src/table/components/renderers/render-header.directive.ts","../../src/table/components/table-action-bar.directive.ts","../../src/table/components/table-body.directive.ts","../../src/table/components/table-cell-action.directive.ts","../../src/table/components/table-cell.directive.ts","../../src/table/components/table-column-drag-handle.directive.ts","../../src/table/components/table-column-drag-preview.directive.ts","../../src/table/components/table-column-drop-indicator.directive.ts","../../src/table/components/table-column-filter-action.directive.ts","../../src/table/components/table-column-header-action.directive.ts","../../src/table/components/table-column-resize-handle.directive.ts","../../src/table/components/table-column-sort-action.directive.ts","../../src/table/components/table-footer.directive.ts","../../src/table/components/table-header-cell.directive.ts","../../src/table/components/table-header.directive.ts","../../src/table/components/table-pagination.directive.ts","../../src/table/components/table-root.directive.ts","../../src/table/components/table-row-drag-handle.directive.ts","../../src/table/components/table-row-drag-preview.directive.ts","../../src/table/components/table-row-drop-indicator.directive.ts","../../src/table/components/table-row-expand-button.directive.ts","../../src/table/components/table-row.directive.ts","../../src/table/components/table-scroll-container.directive.ts","../../src/table/components/table-table.directive.ts","../../src/table/components/table-title-bar.directive.ts","../../src/table/components/table.module.ts","../../src/table/model/create-angular-table.ts","../../src/table/model/create-pagination-helper.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;AAWM;;AAQL;AAEK;;AAQL;;ACpBD;;;;AASC;;ACZD;;ACWA;AAKE;AACA;AAEA;;AAEG;;AAGH;;;AAGG;;AAGH;;;AAGG;;;;AAsBH;;;AAoCD;;AClFD;AAKE;AACA;AAEA;;AAEG;;;;AAcH;;;AAuBD;;AC/CD;AAKE;AACA;AAEA;;AAEG;;;;AAcH;;;AAuBD;;ACrDD;;;;AAOI;;;;AAKH;;ACZD;;;;AAOI;;;;AAKH;;ACTD;AAWE;;AAEG;;AAGH;;;;AAWC;;;;AAKF;;AChCD;AAOE;;AAEG;;;;;AAOF;;;;AAKF;;ACjBD;AAYE;;;;AAIG;;AAGH;;;;AAWC;;;;AAKF;;AC1CD;;;;AAOI;AAEF;;;;AAKD;;ACZD;AAOE;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;;;;;AAWF;;;;AAKF;;AC/BD;AAgBE;;AAEG;;AAGH;;;;AAIG;;AAGH;AAIA;;;;AAaC;;;;AAKF;;ACzDD;AAWE;;AAEG;;AAGH;;;;AAWC;;;;AAKF;;ACzBD;AAcE;;AAEG;;AAGH;;;;AAIG;;AAGH;;;;AAaC;;;;AAKF;;AC5CD;AAgBE;;AAEG;;AAGH;AAEA;AAKA;;;;AAaC;;;;AAKF;;ACxDD;;;;AAOI;;;;AAKH;;ACHD;AAOE;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;;;;;AAYF;;;;AAKF;;ACxDD;;;;AAOI;;;;AAKH;;ACRD;;;;AAYC;;ACVD;AAOE;;AAEG;;AAQH;;;;AAIG;;;;;AAQF;;;;AAKF;;ACjCD;AAYE;;;;AAIG;;AAGH;;;;AAWC;;;;AAKF;;AC1CD;;;;AAOI;;;;AAKH;;ACVD;AAOE;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;;;;;AAWF;;;;AAKF;;AC9BD;;AAkBE;;AAEG;;AAGH;;;;AAIG;;AAGH;;;;AAcC;;;;AAKF;;ACzDD;AAOE;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;;;;;AAWF;;;;AAKF;;AC1CD;;;;AAOI;;;;AAKH;;ACZD;;;;AAOI;;;;AAKH;;ACZD;;;;AAOI;;;;AAKH;;ACiBD;;;;AA6D2B;;;AChFQ;AAEnC;;;ACVE;;;AAGG;AACH;AACD;;AAGC;AACA;AACA;AACA;AACA;AACD;AAED;;;AAGG;AACH;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../src/table/types/context.ts","../../src/table/components/custom/cell-component-context.directive.ts","../../src/table/components/custom/header-component-context.directive.ts","../../src/table/components/qds-table-api.ts","../../src/table/components/renderers/render-cell.directive.ts","../../src/table/components/renderers/render-footer.directive.ts","../../src/table/components/renderers/render-header.directive.ts","../../src/table/components/table-action-bar.directive.ts","../../src/table/components/table-body.directive.ts","../../src/table/components/table-cell-action.directive.ts","../../src/table/components/table-cell.directive.ts","../../src/table/components/table-column-drag-handle.directive.ts","../../src/table/components/table-column-drag-preview.directive.ts","../../src/table/components/table-column-drop-indicator.directive.ts","../../src/table/components/table-column-filter-action.directive.ts","../../src/table/components/table-column-header-action.directive.ts","../../src/table/components/table-column-resize-handle.directive.ts","../../src/table/components/table-column-sort-action.directive.ts","../../src/table/components/table-footer.directive.ts","../../src/table/components/table-header-cell.directive.ts","../../src/table/components/table-header.directive.ts","../../src/table/components/table-pagination.directive.ts","../../src/table/components/table-root.directive.ts","../../src/table/components/table-row-drag-handle.directive.ts","../../src/table/components/table-row-drag-preview.directive.ts","../../src/table/components/table-row-drop-indicator.directive.ts","../../src/table/components/table-row-expand-button.directive.ts","../../src/table/components/table-row.directive.ts","../../src/table/components/table-scroll-container.directive.ts","../../src/table/components/table-table.directive.ts","../../src/table/components/table-title-bar.directive.ts","../../src/table/components/table.module.ts","../../src/table/model/create-angular-table.ts","../../src/table/model/create-pagination-helper.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;AAWM;;AAQL;AAEK;;AAQL;;ACpBD;;;;AASC;;ACTD;;;;AASC;;ACZD;;ACWA;AAKE;AACA;AAEA;;AAEG;;AAGH;;;AAGG;;AAGH;;;AAGG;;;;AAsBH;;;AAoCD;;AClFD;AAKE;AACA;AAEA;;AAEG;;;;AAcH;;;AAuBD;;AC/CD;AAKE;AACA;AAEA;;AAEG;;;;AAcH;;;AAuBD;;ACrDD;;;;AAOI;;;;AAKH;;ACZD;;;;AAOI;;;;AAKH;;ACTD;AAWE;;AAEG;;AAGH;;;;AAWC;;;;AAKF;;AChCD;AAOE;;AAEG;;;;;AAOF;;;;AAKF;;ACjBD;AAYE;;;;AAIG;;AAGH;;;;AAWC;;;;AAKF;;AC1CD;;;;AAOI;AAEF;;;;AAKD;;ACZD;AAOE;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;;;;;AAWF;;;;AAKF;;ACxBD;AAgBE;;;;;;;;;;AAUG;;AAKH;;;;;;;;;;AAUG;;AAKH;;AAEG;;AAGH;;;;AAIG;;AAGH;AAIA;;;;AAeC;;;;AAKF;;AChGD;AAWE;;AAEG;;AAGH;;;;AAWC;;;;AAKF;;ACzBD;AAcE;;AAEG;;AAGH;;;;AAIG;;AAGH;;;;AAaC;;;;AAKF;;AC5CD;AAgBE;;;;;;;;;;AAUG;;AAGH;;AAEG;;AAGH;AAEA;AAKA;;;;AAcC;;;;AAKF;;ACtED;;;;AAOI;;;;AAKH;;ACHD;AAOE;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;;;;;AAYF;;;;AAKF;;ACxDD;;;;AAOI;;;;AAKH;;ACRD;;;;AAYC;;ACVD;AAOE;;AAEG;;AAQH;;;;AAIG;;;;;AAQF;;;;AAKF;;ACjCD;AAYE;;;;AAIG;;AAGH;;;;AAWC;;;;AAKF;;AC1CD;;;;AAOI;;;;AAKH;;ACVD;AAOE;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;;;;;AAWF;;;;AAKF;;AC9BD;AAcE;;;;;;;;;;AAUG;;AAKH;;AAEG;;AAGH;;;;AAIG;;AAGH;;;;AAcC;;;;AAKF;;ACpED;AAOE;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;;;;;AAWF;;;;AAKF;;AC1CD;;;;AAOI;;;;AAKH;;ACZD;;;;AAOI;;;;AAKH;;ACZD;;;;AAOI;;;;AAKH;;ACiBD;;;;AA6D2B;;;AChFQ;AAEnC;;;ACVE;;;AAGG;AACH;AACD;;AAGC;AACA;AACA;AACA;AACA;AACD;AAED;;;AAGG;AACH;;;"}