@fundamental-ngx/platform 0.49.0-rc.2 → 0.49.0-rc.21

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.
Files changed (43) hide show
  1. package/esm2022/dynamic-page/dynamic-page.component.mjs +2 -2
  2. package/esm2022/form/multi-input/base-multi-input.mjs +8 -2
  3. package/esm2022/form/switch/switch/switch.component.mjs +2 -2
  4. package/esm2022/search-field/search-field.component.mjs +25 -86
  5. package/esm2022/smart-filter-bar/components/smart-filter-bar-settings-dialog/smart-filter-bar-settings-dialog.component.mjs +2 -2
  6. package/esm2022/smart-filter-bar/smart-filter-bar.component.mjs +12 -8
  7. package/esm2022/table/components/growing-button/table-growing-button.component.mjs +31 -0
  8. package/esm2022/table/components/table-p13-dialog/columns/columns.component.mjs +3 -3
  9. package/esm2022/table/components/table-row/table-row.component.mjs +20 -3
  10. package/esm2022/table/index.mjs +2 -1
  11. package/esm2022/table/table.component.mjs +29 -9
  12. package/esm2022/table/table.module.mjs +10 -5
  13. package/esm2022/table-helpers/services/table.service.mjs +25 -2
  14. package/esm2022/table-helpers/table.mjs +1 -1
  15. package/esm2022/variant-management/components/manage-variants-dialog/manage-variants-dialog.component.mjs +2 -2
  16. package/fesm2022/fundamental-ngx-platform-dynamic-page.mjs +1 -1
  17. package/fesm2022/fundamental-ngx-platform-dynamic-page.mjs.map +1 -1
  18. package/fesm2022/fundamental-ngx-platform-form.mjs +8 -2
  19. package/fesm2022/fundamental-ngx-platform-form.mjs.map +1 -1
  20. package/fesm2022/fundamental-ngx-platform-search-field.mjs +25 -85
  21. package/fesm2022/fundamental-ngx-platform-search-field.mjs.map +1 -1
  22. package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs +10 -5
  23. package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
  24. package/fesm2022/fundamental-ngx-platform-table-helpers.mjs +24 -1
  25. package/fesm2022/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
  26. package/fesm2022/fundamental-ngx-platform-table.mjs +81 -16
  27. package/fesm2022/fundamental-ngx-platform-table.mjs.map +1 -1
  28. package/fesm2022/fundamental-ngx-platform-variant-management.mjs +1 -1
  29. package/fesm2022/fundamental-ngx-platform-variant-management.mjs.map +1 -1
  30. package/form/multi-input/base-multi-input.d.ts +4 -1
  31. package/fundamental-ngx-platform-v0.49.0-rc.21.tgz +0 -0
  32. package/package.json +4 -4
  33. package/search-field/search-field.component.d.ts +5 -16
  34. package/smart-filter-bar/smart-filter-bar.component.d.ts +6 -3
  35. package/table/components/growing-button/table-growing-button.component.d.ts +16 -0
  36. package/table/components/table-p13-dialog/columns/columns.component.d.ts +1 -1
  37. package/table/components/table-row/table-row.component.d.ts +3 -0
  38. package/table/index.d.ts +1 -0
  39. package/table/table.component.d.ts +12 -2
  40. package/table/table.module.d.ts +3 -2
  41. package/table-helpers/services/table.service.d.ts +3 -1
  42. package/table-helpers/table.d.ts +2 -1
  43. package/fundamental-ngx-platform-v0.49.0-rc.2.tgz +0 -0
@@ -65,6 +65,12 @@ export declare class TableComponent<T = any> extends Table<T> implements AfterVi
65
65
  freezeEndColumnsTo: string;
66
66
  /** Toggle for page scrolling feature. */
67
67
  pageScrolling: boolean;
68
+ /** Whether the table should render growing button at the bottom. */
69
+ showGrowingButton: boolean;
70
+ /**
71
+ * Whether to show total items amount in growing button text content.
72
+ */
73
+ showItemsCount: boolean;
68
74
  /** Number of items per page. */
69
75
  pageSize: Nullable<number>;
70
76
  /** Page scrolling threshold in px. */
@@ -236,6 +242,8 @@ export declare class TableComponent<T = any> extends Table<T> implements AfterVi
236
242
  readonly tableToolbar: TableToolbarInterface;
237
243
  /** @hidden */
238
244
  readonly _noDataWrapper: Nullable<NoDataWrapperComponent>;
245
+ /** Total loaded items. */
246
+ loadedRows$: import("@angular/core").WritableSignal<number>;
239
247
  /** @hidden */
240
248
  get initialSortBy(): CollectionSort[];
241
249
  /**
@@ -458,8 +466,10 @@ export declare class TableComponent<T = any> extends Table<T> implements AfterVi
458
466
  collapseAll(): void;
459
467
  /** Search in table */
460
468
  search(searchInput: SearchInput): void;
461
- /** Search in table */
469
+ /** Set current page number in table */
462
470
  setCurrentPage(currentPage: number): void;
471
+ /** Set items per page number in table */
472
+ setPageSize(pageSize: number, resetPageNumber?: boolean): void;
463
473
  /** Toolbar Sort Settings button visibility */
464
474
  showSortSettingsInToolbar(showSortSettings: boolean): void;
465
475
  /** Toolbar Filter Settings button visibility */
@@ -654,5 +664,5 @@ export declare class TableComponent<T = any> extends Table<T> implements AfterVi
654
664
  private _listenToFixedColumnsWidth;
655
665
  private _calculateLastFreezableColumn;
656
666
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, [null, null, null, null, null, { optional: true; }, null, null, null]>;
657
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "fdp-table", never, { "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "enableDragResize": { "alias": "enableDragResize"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "freezeColumnsTo": { "alias": "freezeColumnsTo"; "required": false; }; "freezeEndColumnsTo": { "alias": "freezeEndColumnsTo"; "required": false; }; "pageScrolling": { "alias": "pageScrolling"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageScrollingThreshold": { "alias": "pageScrollingThreshold"; "required": false; }; "bodyHeight": { "alias": "bodyHeight"; "required": false; }; "emptyTableMessage": { "alias": "emptyTableMessage"; "required": false; }; "noVisibleColumnsMessage": { "alias": "noVisibleColumnsMessage"; "required": false; }; "noHorizontalBorders": { "alias": "noHorizontalBorders"; "required": false; }; "noVerticalBorders": { "alias": "noVerticalBorders"; "required": false; }; "noBorders": { "alias": "noBorders"; "required": false; }; "noBodyBorders": { "alias": "noBodyBorders"; "required": false; }; "noOuterBorders": { "alias": "noOuterBorders"; "required": false; }; "noBorderX": { "alias": "noBorderX"; "required": false; }; "noBorderY": { "alias": "noBorderY"; "required": false; }; "relationKey": { "alias": "relationKey"; "required": false; }; "expandedStateKey": { "alias": "expandedStateKey"; "required": false; }; "hasChildrenKey": { "alias": "hasChildrenKey"; "required": false; }; "rowNavigatable": { "alias": "rowNavigatable"; "required": false; }; "highlightNavigatedRow": { "alias": "highlightNavigatedRow"; "required": false; }; "rowsActivable": { "alias": "rowsActivable"; "required": false; }; "selectedKey": { "alias": "selectedKey"; "required": false; }; "selectableKey": { "alias": "selectableKey"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "rowComparator": { "alias": "rowComparator"; "required": false; }; "rowsClass": { "alias": "rowsClass"; "required": false; }; "editableRowSkeleton": { "alias": "editableRowSkeleton"; "required": false; }; "expandOnInit": { "alias": "expandOnInit"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "loadPagesBefore": { "alias": "loadPagesBefore"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "enableTristateMode": { "alias": "enableTristateMode"; "required": false; }; "semanticHighlighting": { "alias": "semanticHighlighting"; "required": false; }; "forceCheckedAllState": { "alias": "forceCheckedAllState"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "nonFrozenColumnsMinWidth": { "alias": "nonFrozenColumnsMinWidth"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "presetChanged": "presetChanged"; "rowSelectionChange": "rowSelectionChange"; "sortChange": "sortChange"; "filterChange": "filterChange"; "groupChange": "groupChange"; "columnsChange": "columnsChange"; "pageChange": "pageChange"; "columnFreeze": "columnFreeze"; "rowToggleOpenState": "rowToggleOpenState"; "rowActivate": "rowActivate"; "rowNavigate": "rowNavigate"; "emptyRowAdded": "emptyRowAdded"; "save": "save"; "cancel": "cancel"; "tableScrolled": "tableScrolled"; "tableRowsSet": "tableRowsSet"; "allRowsExpanded": "allRowsExpanded"; "allRowsCollapsed": "allRowsCollapsed"; "cellFocused": "cellFocused"; }, ["tableToolbar", "_noDataWrapper", "columns", "customEditableCells"], ["fdp-table-no-data-wrapper"], true, [{ directive: typeof i1.TableDataSourceDirective; inputs: { "dataSource": "dataSource"; "childDataSource": "childDataSource"; }; outputs: { "childDataSourceChanged": "childDataSourceChanged"; "onDataRequested": "onDataRequested"; "onDataReceived": "onDataReceived"; "dataSourceChanged": "dataSourceChanged"; "dataChanged": "dataChanged"; "isLoading": "isLoading"; }; }, { directive: typeof i1.TableHeaderResizerDirective; inputs: {}; outputs: {}; }]>;
667
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "fdp-table", never, { "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "enableDragResize": { "alias": "enableDragResize"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "freezeColumnsTo": { "alias": "freezeColumnsTo"; "required": false; }; "freezeEndColumnsTo": { "alias": "freezeEndColumnsTo"; "required": false; }; "pageScrolling": { "alias": "pageScrolling"; "required": false; }; "showGrowingButton": { "alias": "showGrowingButton"; "required": false; }; "showItemsCount": { "alias": "showItemsCount"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageScrollingThreshold": { "alias": "pageScrollingThreshold"; "required": false; }; "bodyHeight": { "alias": "bodyHeight"; "required": false; }; "emptyTableMessage": { "alias": "emptyTableMessage"; "required": false; }; "noVisibleColumnsMessage": { "alias": "noVisibleColumnsMessage"; "required": false; }; "noHorizontalBorders": { "alias": "noHorizontalBorders"; "required": false; }; "noVerticalBorders": { "alias": "noVerticalBorders"; "required": false; }; "noBorders": { "alias": "noBorders"; "required": false; }; "noBodyBorders": { "alias": "noBodyBorders"; "required": false; }; "noOuterBorders": { "alias": "noOuterBorders"; "required": false; }; "noBorderX": { "alias": "noBorderX"; "required": false; }; "noBorderY": { "alias": "noBorderY"; "required": false; }; "relationKey": { "alias": "relationKey"; "required": false; }; "expandedStateKey": { "alias": "expandedStateKey"; "required": false; }; "hasChildrenKey": { "alias": "hasChildrenKey"; "required": false; }; "rowNavigatable": { "alias": "rowNavigatable"; "required": false; }; "highlightNavigatedRow": { "alias": "highlightNavigatedRow"; "required": false; }; "rowsActivable": { "alias": "rowsActivable"; "required": false; }; "selectedKey": { "alias": "selectedKey"; "required": false; }; "selectableKey": { "alias": "selectableKey"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "rowComparator": { "alias": "rowComparator"; "required": false; }; "rowsClass": { "alias": "rowsClass"; "required": false; }; "editableRowSkeleton": { "alias": "editableRowSkeleton"; "required": false; }; "expandOnInit": { "alias": "expandOnInit"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "loadPagesBefore": { "alias": "loadPagesBefore"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "enableTristateMode": { "alias": "enableTristateMode"; "required": false; }; "semanticHighlighting": { "alias": "semanticHighlighting"; "required": false; }; "forceCheckedAllState": { "alias": "forceCheckedAllState"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "nonFrozenColumnsMinWidth": { "alias": "nonFrozenColumnsMinWidth"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "presetChanged": "presetChanged"; "rowSelectionChange": "rowSelectionChange"; "sortChange": "sortChange"; "filterChange": "filterChange"; "groupChange": "groupChange"; "columnsChange": "columnsChange"; "pageChange": "pageChange"; "columnFreeze": "columnFreeze"; "rowToggleOpenState": "rowToggleOpenState"; "rowActivate": "rowActivate"; "rowNavigate": "rowNavigate"; "emptyRowAdded": "emptyRowAdded"; "save": "save"; "cancel": "cancel"; "tableScrolled": "tableScrolled"; "tableRowsSet": "tableRowsSet"; "allRowsExpanded": "allRowsExpanded"; "allRowsCollapsed": "allRowsCollapsed"; "cellFocused": "cellFocused"; }, ["tableToolbar", "_noDataWrapper", "columns", "customEditableCells"], ["fdp-table-no-data-wrapper"], true, [{ directive: typeof i1.TableDataSourceDirective; inputs: { "dataSource": "dataSource"; "childDataSource": "childDataSource"; }; outputs: { "childDataSourceChanged": "childDataSourceChanged"; "onDataRequested": "onDataRequested"; "onDataReceived": "onDataReceived"; "dataSourceChanged": "dataSourceChanged"; "dataChanged": "dataChanged"; "isLoading": "isLoading"; }; }, { directive: typeof i1.TableHeaderResizerDirective; inputs: {}; outputs: {}; }]>;
658
668
  }
@@ -34,9 +34,10 @@ import * as i32 from "./components/table-row/table-row.component";
34
34
  import * as i33 from "./components/table-group-row/table-group-row.component";
35
35
  import * as i34 from "./components/table-popping-row/table-popping-row.component";
36
36
  import * as i35 from "./components/table-header-row/table-header-row.component";
37
- import * as i36 from "@fundamental-ngx/platform/table-helpers";
37
+ import * as i36 from "./components/growing-button/table-growing-button.component";
38
+ import * as i37 from "@fundamental-ngx/platform/table-helpers";
38
39
  export declare class PlatformTableModule {
39
40
  static ɵfac: i0.ɵɵFactoryDeclaration<PlatformTableModule, never>;
40
- static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformTableModule, never, [typeof i1.TableComponent, typeof i2.TableColumnComponent, typeof i3.TableToolbarComponent, typeof i4.TableToolbarActionsComponent, typeof i5.TableViewSettingsDialogComponent, typeof i6.TableViewSettingsFilterComponent, typeof i7.SortingComponent, typeof i8.GroupingComponent, typeof i9.FiltersComponent, typeof i10.FiltersListStepComponent, typeof i11.FilterStepComponent, typeof i12.FilterSingleSelectComponent, typeof i13.FilterMultiSelectComponent, typeof i14.FilterCustomComponent, typeof i15.ResetButtonComponent, typeof i16.TableP13DialogComponent, typeof i17.TableP13SortComponent, typeof i18.TableP13FilterComponent, typeof i19.TableP13GroupComponent, typeof i20.TableP13ColumnsComponent, typeof i21.P13SortingDialogComponent, typeof i22.P13GroupingDialogComponent, typeof i23.P13FilteringDialogComponent, typeof i24.FilterRuleComponent, typeof i25.P13ColumnsDialogComponent, typeof i26.PlatformTableColumnResizerComponent, typeof i27.NoDataWrapperComponent, typeof i21.GetAvailableSortColumnsPipe, typeof i28.TableEditableCellComponent, typeof i29.TableToolbarLeftActionsComponent, typeof i30.TableHeaderCellContentComponent, typeof i31.TableCellHeaderPopoverComponent, typeof i32.TableRowComponent, typeof i33.TableGroupRowComponent, typeof i34.TablePoppingRowComponent, typeof i35.TableHeaderRowComponent, typeof i35.IsColumnHasHeaderMenuPipe, typeof i36.TableHelpersModule], [typeof i1.TableComponent, typeof i2.TableColumnComponent, typeof i3.TableToolbarComponent, typeof i4.TableToolbarActionsComponent, typeof i5.TableViewSettingsDialogComponent, typeof i6.TableViewSettingsFilterComponent, typeof i7.SortingComponent, typeof i8.GroupingComponent, typeof i9.FiltersComponent, typeof i10.FiltersListStepComponent, typeof i11.FilterStepComponent, typeof i12.FilterSingleSelectComponent, typeof i13.FilterMultiSelectComponent, typeof i14.FilterCustomComponent, typeof i15.ResetButtonComponent, typeof i16.TableP13DialogComponent, typeof i17.TableP13SortComponent, typeof i18.TableP13FilterComponent, typeof i19.TableP13GroupComponent, typeof i20.TableP13ColumnsComponent, typeof i21.P13SortingDialogComponent, typeof i22.P13GroupingDialogComponent, typeof i23.P13FilteringDialogComponent, typeof i24.FilterRuleComponent, typeof i25.P13ColumnsDialogComponent, typeof i26.PlatformTableColumnResizerComponent, typeof i27.NoDataWrapperComponent, typeof i21.GetAvailableSortColumnsPipe, typeof i28.TableEditableCellComponent, typeof i29.TableToolbarLeftActionsComponent, typeof i30.TableHeaderCellContentComponent, typeof i31.TableCellHeaderPopoverComponent, typeof i32.TableRowComponent, typeof i33.TableGroupRowComponent, typeof i34.TablePoppingRowComponent, typeof i35.TableHeaderRowComponent, typeof i35.IsColumnHasHeaderMenuPipe, typeof i36.TableHelpersModule]>;
41
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformTableModule, never, [typeof i1.TableComponent, typeof i2.TableColumnComponent, typeof i3.TableToolbarComponent, typeof i4.TableToolbarActionsComponent, typeof i5.TableViewSettingsDialogComponent, typeof i6.TableViewSettingsFilterComponent, typeof i7.SortingComponent, typeof i8.GroupingComponent, typeof i9.FiltersComponent, typeof i10.FiltersListStepComponent, typeof i11.FilterStepComponent, typeof i12.FilterSingleSelectComponent, typeof i13.FilterMultiSelectComponent, typeof i14.FilterCustomComponent, typeof i15.ResetButtonComponent, typeof i16.TableP13DialogComponent, typeof i17.TableP13SortComponent, typeof i18.TableP13FilterComponent, typeof i19.TableP13GroupComponent, typeof i20.TableP13ColumnsComponent, typeof i21.P13SortingDialogComponent, typeof i22.P13GroupingDialogComponent, typeof i23.P13FilteringDialogComponent, typeof i24.FilterRuleComponent, typeof i25.P13ColumnsDialogComponent, typeof i26.PlatformTableColumnResizerComponent, typeof i27.NoDataWrapperComponent, typeof i21.GetAvailableSortColumnsPipe, typeof i28.TableEditableCellComponent, typeof i29.TableToolbarLeftActionsComponent, typeof i30.TableHeaderCellContentComponent, typeof i31.TableCellHeaderPopoverComponent, typeof i32.TableRowComponent, typeof i33.TableGroupRowComponent, typeof i34.TablePoppingRowComponent, typeof i35.TableHeaderRowComponent, typeof i35.IsColumnHasHeaderMenuPipe, typeof i36.TableGrowingButtonComponent, typeof i37.TableHelpersModule], [typeof i1.TableComponent, typeof i2.TableColumnComponent, typeof i3.TableToolbarComponent, typeof i4.TableToolbarActionsComponent, typeof i5.TableViewSettingsDialogComponent, typeof i6.TableViewSettingsFilterComponent, typeof i7.SortingComponent, typeof i8.GroupingComponent, typeof i9.FiltersComponent, typeof i10.FiltersListStepComponent, typeof i11.FilterStepComponent, typeof i12.FilterSingleSelectComponent, typeof i13.FilterMultiSelectComponent, typeof i14.FilterCustomComponent, typeof i15.ResetButtonComponent, typeof i16.TableP13DialogComponent, typeof i17.TableP13SortComponent, typeof i18.TableP13FilterComponent, typeof i19.TableP13GroupComponent, typeof i20.TableP13ColumnsComponent, typeof i21.P13SortingDialogComponent, typeof i22.P13GroupingDialogComponent, typeof i23.P13FilteringDialogComponent, typeof i24.FilterRuleComponent, typeof i25.P13ColumnsDialogComponent, typeof i26.PlatformTableColumnResizerComponent, typeof i27.NoDataWrapperComponent, typeof i21.GetAvailableSortColumnsPipe, typeof i28.TableEditableCellComponent, typeof i29.TableToolbarLeftActionsComponent, typeof i30.TableHeaderCellContentComponent, typeof i31.TableCellHeaderPopoverComponent, typeof i32.TableRowComponent, typeof i33.TableGroupRowComponent, typeof i34.TablePoppingRowComponent, typeof i35.TableHeaderRowComponent, typeof i35.IsColumnHasHeaderMenuPipe, typeof i36.TableGrowingButtonComponent, typeof i37.TableHelpersModule]>;
41
42
  static ɵinj: i0.ɵɵInjectorDeclaration<PlatformTableModule>;
42
43
  }
@@ -99,8 +99,10 @@ export declare class TableService {
99
99
  freezeTo(columnName: string | null, end?: boolean): void;
100
100
  /** Set table columns */
101
101
  setColumns(columns: string[], keys: string[]): void;
102
- /** Set page */
102
+ /** Set page. */
103
103
  setCurrentPage(currentPage: number): void;
104
+ /** Set items per page. */
105
+ setItemsPerPage(itemsPerPage: number, resetPageNumber?: boolean): void;
104
106
  /** Returns default table state. */
105
107
  getDefaultState(): TableState;
106
108
  /**
@@ -1,4 +1,4 @@
1
- import { ElementRef, EventEmitter, Injector } from '@angular/core';
1
+ import { ElementRef, EventEmitter, Injector, Signal } from '@angular/core';
2
2
  import { SearchInput } from '@fundamental-ngx/platform/search-field';
3
3
  import { PresetManagedComponent } from '@fundamental-ngx/platform/shared';
4
4
  import { Observable } from 'rxjs';
@@ -39,6 +39,7 @@ export declare abstract class Table<T = any> implements PresetManagedComponent<P
39
39
  abstract readonly tableScrollable: TableScrollable;
40
40
  abstract _tableRowsVisible: TableRow<T>[];
41
41
  abstract _tableRows: TableRow<T>[];
42
+ abstract loadedRows$: Signal<number>;
42
43
  abstract _tableRowsInViewPortPlaceholder: number[];
43
44
  /** Get table state */
44
45
  abstract getTableState(): TableState;