@energycap/components 0.39.24-ECAP-26378-account-icon-pipe-summary-account-support.20240911-1311 → 0.39.24-ECAP-26539-Item-Picker-Select-All.20240912-1013

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.
@@ -6,6 +6,7 @@ import { PagingInfo } from '../../display/table/table-pagination.component';
6
6
  import { TableSelectableRowContext } from '../../display/table/table-selectable-row.component';
7
7
  import { Overlay } from '../../display/view-overlay/view-overlay.component';
8
8
  import { MenuItem } from '../menu/menu.component';
9
+ import { TranslateService } from '@ngx-translate/core';
9
10
  import * as i0 from "@angular/core";
10
11
  export interface PickerItem<TValue = any, SItems = any> extends MenuItem {
11
12
  id: string;
@@ -28,8 +29,10 @@ export declare class ItemPickerSelectableContext<T> extends TableSelectableRowCo
28
29
  * AdvancedRowClickBehavior is disabled for ItemPicker.
29
30
  */
30
31
  readonly disableAdvancedRowClickBehavior: boolean;
32
+ isSelectingAllItems: boolean;
31
33
  }
32
34
  export declare class ItemPickerComponent<T> implements OnInit, OnChanges, OnDestroy {
35
+ private translateService;
33
36
  /** Identifier for the component. This will be added to the beginning of all internal action elements */
34
37
  id?: string;
35
38
  /** Title displayed above the available items table */
@@ -61,6 +64,7 @@ export declare class ItemPickerComponent<T> implements OnInit, OnChanges, OnDest
61
64
  * interpolation will be used.
62
65
  */
63
66
  noSelectedItemsMessage?: string;
67
+ selectAllEnabled: boolean;
64
68
  /** List of available items to pick from */
65
69
  availableItems: PickerItem[];
66
70
  /**
@@ -74,6 +78,9 @@ export declare class ItemPickerComponent<T> implements OnInit, OnChanges, OnDest
74
78
  /** Track by used for the searchable table rows */
75
79
  trackByIndex: (index: number) => number;
76
80
  tableStatus: Overlay;
81
+ masterCheckboxText: string;
82
+ showSelectAllItemsLink: boolean;
83
+ totalCount: number;
77
84
  /**
78
85
  * Template used to display the available and selected items as well as the available item header.
79
86
  * This will be set to the default template if a custom is not provided
@@ -83,12 +90,14 @@ export declare class ItemPickerComponent<T> implements OnInit, OnChanges, OnDest
83
90
  internalizedSelectedItemTemplate: TemplateRef<any>;
84
91
  /** Default templates used if a custom template is not provided */
85
92
  private defaultAvailableHeaderTemplate;
93
+ private defaultAvailableSelectAllHeaderTemplate;
86
94
  private defaultAvailableItemTemplate;
87
95
  private defaultSelectedItemTemplate;
88
96
  /** Used to shut down our subscriptions when the component is destroyed */
89
97
  private destroyed;
90
- constructor();
98
+ constructor(translateService: TranslateService);
91
99
  ngOnInit(): void;
100
+ selectAllItems(): void;
92
101
  /**
93
102
  * Watch for changes and react if the custom item template value changes
94
103
  */
@@ -113,6 +122,7 @@ export declare class ItemPickerComponent<T> implements OnInit, OnChanges, OnDest
113
122
  * list
114
123
  */
115
124
  private setupRowCheckboxesWatcher;
125
+ private updateMasterCheckboxText;
116
126
  /**
117
127
  * Watch to be told if changes to the map were made outside of the component and if so update
118
128
  * the array displayed in the selected list and select checkboxes for visible available items
@@ -120,5 +130,5 @@ export declare class ItemPickerComponent<T> implements OnInit, OnChanges, OnDest
120
130
  private setupSelectedItemsChangedWatcher;
121
131
  private setInternalizedTemplates;
122
132
  static ɵfac: i0.ɵɵFactoryDeclaration<ItemPickerComponent<any>, never>;
123
- static ɵcmp: i0.ɵɵComponentDeclaration<ItemPickerComponent<any>, "ec-item-picker", never, { "id": "id"; "availableTitle": "availableTitle"; "selectedTitle": "selectedTitle"; "itemName": "itemName"; "formModel": "formModel"; "customAvailableHeaderTemplate": "customAvailableHeaderTemplate"; "customAvailableItemTemplate": "customAvailableItemTemplate"; "customSelectedItemTemplate": "customSelectedItemTemplate"; "ready": "ready"; "getItems": "getItems"; "selectionContext": "selectionContext"; "noDataMessage": "noDataMessage"; "noSelectedItemsMessage": "noSelectedItemsMessage"; }, {}, never, never, false, never>;
133
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemPickerComponent<any>, "ec-item-picker", never, { "id": "id"; "availableTitle": "availableTitle"; "selectedTitle": "selectedTitle"; "itemName": "itemName"; "formModel": "formModel"; "customAvailableHeaderTemplate": "customAvailableHeaderTemplate"; "customAvailableItemTemplate": "customAvailableItemTemplate"; "customSelectedItemTemplate": "customSelectedItemTemplate"; "ready": "ready"; "getItems": "getItems"; "selectionContext": "selectionContext"; "noDataMessage": "noDataMessage"; "noSelectedItemsMessage": "noSelectedItemsMessage"; "selectAllEnabled": "selectAllEnabled"; }, {}, never, never, false, never>;
124
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.39.24-ECAP-26378-account-icon-pipe-summary-account-support.20240911-1311",
3
+ "version": "0.39.24-ECAP-26539-Item-Picker-Select-All.20240912-1013",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -44,5 +44,8 @@
44
44
  "LearnMore_SC": "Learn more",
45
45
  "SelectZipFiles_ELS": "Select ZIP files...",
46
46
  "Browse_TC": "Browse",
47
- "is invalid": "is invalid"
47
+ "is invalid": "is invalid",
48
+ "AllItemPickerItemsSelected_SC": "All {{count}} {{itemName}} selected",
49
+ "SelectAllItemPickerItems_TC": "Select all {{count}} {{itemName}}",
50
+ "CountSelected_TC": "{{count}} selected"
48
51
  }