@ecodev/natural 63.7.0 → 63.9.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.
@@ -46,6 +46,14 @@ export declare class NaturalHierarchicSelectorComponent implements OnInit, OnCha
46
46
  * Selections to apply on natural-search on component initialisation
47
47
  */
48
48
  searchSelections: NaturalSearchSelections;
49
+ /**
50
+ * Select all fetched items of the current search result
51
+ *
52
+ * Use very carefully as recursivity is ignored. The selection includes children (if any) even if the child list has been closed
53
+ *
54
+ * Should be used __only__ for non-recursive use cases. Avoid with recursive because it's not intuitive for end user
55
+ */
56
+ readonly allowSelectAll: import("@angular/core").InputSignal<boolean>;
49
57
  /**
50
58
  * Emits when natural-search selections change
51
59
  */
@@ -83,6 +91,7 @@ export declare class NaturalHierarchicSelectorComponent implements OnInit, OnCha
83
91
  * Toggle selection of a FlatNode, considering if multiple selection is activated or not
84
92
  */
85
93
  toggleFlatNode(flatNode: HierarchicFlatNode): void;
94
+ protected selectAll(): void;
86
95
  /**
87
96
  * When unselecting an element from the mat-chips, it can be deep in the hierarchy, and the tree element may not exist...
88
97
  * ... but we still need to remove the element from the mat-chips list.
@@ -147,5 +156,5 @@ export declare class NaturalHierarchicSelectorComponent implements OnInit, OnCha
147
156
  */
148
157
  private getMapKey;
149
158
  static ɵfac: i0.ɵɵFactoryDeclaration<NaturalHierarchicSelectorComponent, never>;
150
- static ɵcmp: i0.ɵɵComponentDeclaration<NaturalHierarchicSelectorComponent, "natural-hierarchic-selector", never, { "displayWith": { "alias": "displayWith"; "required": false; }; "config": { "alias": "config"; "required": true; }; "multiple": { "alias": "multiple"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "allowUnselect": { "alias": "allowUnselect"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "searchFacets": { "alias": "searchFacets"; "required": false; }; "searchSelections": { "alias": "searchSelections"; "required": false; }; }, { "searchSelectionChange": "searchSelectionChange"; "selectionChange": "selectionChange"; }, never, never, true, never>;
159
+ static ɵcmp: i0.ɵɵComponentDeclaration<NaturalHierarchicSelectorComponent, "natural-hierarchic-selector", never, { "displayWith": { "alias": "displayWith"; "required": false; }; "config": { "alias": "config"; "required": true; }; "multiple": { "alias": "multiple"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "allowUnselect": { "alias": "allowUnselect"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "searchFacets": { "alias": "searchFacets"; "required": false; }; "searchSelections": { "alias": "searchSelections"; "required": false; }; "allowSelectAll": { "alias": "allowSelectAll"; "required": false; "isSignal": true; }; }, { "searchSelectionChange": "searchSelectionChange"; "selectionChange": "selectionChange"; }, never, never, true, never>;
151
160
  }
@@ -29,6 +29,10 @@ export type HierarchicDialogConfig = {
29
29
  * Allow to validate selection with no items checked
30
30
  */
31
31
  allowUnselect?: boolean;
32
+ /**
33
+ * Allow to select all items with dedicated button
34
+ */
35
+ allowSelectAll?: boolean;
32
36
  /**
33
37
  * Facets for natural-search in HierarchicComponent
34
38
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural",
3
- "version": "63.7.0",
3
+ "version": "63.9.0",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,
package/public-api.d.ts CHANGED
@@ -2,7 +2,7 @@ export * from './lib/classes/abstract-detail';
2
2
  export * from './lib/classes/abstract-editable-list';
3
3
  export * from './lib/classes/abstract-list';
4
4
  export * from './lib/classes/abstract-navigable-list';
5
- export { createHttpLink } from './lib/classes/apollo-utils';
5
+ export { createHttpLink, hasFilesAndProcessDate } from './lib/classes/apollo-utils';
6
6
  export * from './lib/classes/data-source';
7
7
  export * from './lib/classes/query-variable-manager';
8
8
  export { cancellableTimeout, debug } from './lib/classes/rxjs';