@agorapulse/ui-components 18.0.13 → 18.0.14

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 (90) hide show
  1. package/agorapulse-ui-components-18.0.14.tgz +0 -0
  2. package/avatar/avatar.component.d.ts +1 -1
  3. package/checkbox/checkbox.component.d.ts +1 -1
  4. package/esm2022/add-comment/add-comment.component.mjs +3 -3
  5. package/esm2022/checkbox/checkbox.component.mjs +5 -4
  6. package/esm2022/datepicker/datepicker.component.mjs +3 -3
  7. package/esm2022/labels/label-list.component.mjs +3 -3
  8. package/esm2022/labels-selector/labels-selector.component.mjs +3 -3
  9. package/esm2022/media-display-overlay/media-display-overlay-dialog.component.mjs +3 -3
  10. package/esm2022/modal/modal.component.mjs +3 -3
  11. package/esm2022/nav-selector/directives/nav-selector-popover-trigger.directive.mjs +71 -0
  12. package/esm2022/nav-selector/nav-selector-category/nav-selector-category.component.mjs +15 -12
  13. package/esm2022/nav-selector/nav-selector-group/nav-selector-group.component.mjs +17 -14
  14. package/esm2022/nav-selector/nav-selector-leaf/nav-selector-leaf.component.mjs +38 -94
  15. package/esm2022/nav-selector/nav-selector-leaf/nav-selector-leaf.presenter.mjs +2 -2
  16. package/esm2022/nav-selector/nav-selector-leaf-detail/nav-selector-leaf-detail.component.mjs +6 -6
  17. package/esm2022/nav-selector/nav-selector-leaf-details/nav-selector-leaf-details.component.mjs +12 -9
  18. package/esm2022/nav-selector/nav-selector-popover/nav-selector-popover-item.component.mjs +14 -0
  19. package/esm2022/nav-selector/nav-selector-popover/nav-selector-popover.component.mjs +127 -0
  20. package/esm2022/nav-selector/nav-selector.component.mjs +44 -23
  21. package/esm2022/nav-selector/nav-selector.mjs +1 -1
  22. package/esm2022/nav-selector/nav-selector.state.mjs +35 -11
  23. package/esm2022/nav-selector/utils/leaf.utils.mjs +12 -3
  24. package/esm2022/nav-selector/utils/nav-selector.accessibility.mjs +22 -14
  25. package/esm2022/nav-selector/utils/nav-selector.builder.mjs +4 -2
  26. package/esm2022/nav-selector/utils/nav-selector.filter.mjs +49 -11
  27. package/esm2022/nav-selector/utils/nav-selector.folding.mjs +26 -23
  28. package/esm2022/nav-selector/utils/nav-selector.merger.mjs +76 -0
  29. package/esm2022/nav-selector/utils/nav-selector.minifying.mjs +14 -9
  30. package/esm2022/nav-selector/utils/nav-selector.multi-select.mjs +2 -2
  31. package/esm2022/nav-selector/utils/nav-selector.single-select.mjs +46 -23
  32. package/esm2022/neo-datepicker/neo-datepicker.component.mjs +3 -3
  33. package/esm2022/notification/notification.component.mjs +3 -3
  34. package/esm2022/paginator/paginator-button/paginator-button.component.mjs +2 -2
  35. package/esm2022/password-input/password-input.component.mjs +3 -3
  36. package/esm2022/popmenu/popmenu.component.mjs +3 -3
  37. package/esm2022/slide-toggle/slide-toggle.component.mjs +3 -3
  38. package/esm2022/snackbars-thread/component/snackbars-thread.component.mjs +3 -3
  39. package/esm2022/stepper/stepper.component.mjs +3 -3
  40. package/fesm2022/agorapulse-ui-components-add-comment.mjs +2 -2
  41. package/fesm2022/agorapulse-ui-components-add-comment.mjs.map +1 -1
  42. package/fesm2022/agorapulse-ui-components-checkbox.mjs +4 -3
  43. package/fesm2022/agorapulse-ui-components-checkbox.mjs.map +1 -1
  44. package/fesm2022/agorapulse-ui-components-datepicker.mjs +2 -2
  45. package/fesm2022/agorapulse-ui-components-datepicker.mjs.map +1 -1
  46. package/fesm2022/agorapulse-ui-components-labels-selector.mjs +2 -2
  47. package/fesm2022/agorapulse-ui-components-labels-selector.mjs.map +1 -1
  48. package/fesm2022/agorapulse-ui-components-labels.mjs +2 -2
  49. package/fesm2022/agorapulse-ui-components-labels.mjs.map +1 -1
  50. package/fesm2022/agorapulse-ui-components-media-display-overlay.mjs +2 -2
  51. package/fesm2022/agorapulse-ui-components-media-display-overlay.mjs.map +1 -1
  52. package/fesm2022/agorapulse-ui-components-modal.mjs +2 -2
  53. package/fesm2022/agorapulse-ui-components-modal.mjs.map +1 -1
  54. package/fesm2022/agorapulse-ui-components-nav-selector.mjs +598 -238
  55. package/fesm2022/agorapulse-ui-components-nav-selector.mjs.map +1 -1
  56. package/fesm2022/agorapulse-ui-components-neo-datepicker.mjs +2 -2
  57. package/fesm2022/agorapulse-ui-components-neo-datepicker.mjs.map +1 -1
  58. package/fesm2022/agorapulse-ui-components-notification.mjs +2 -2
  59. package/fesm2022/agorapulse-ui-components-notification.mjs.map +1 -1
  60. package/fesm2022/agorapulse-ui-components-paginator.mjs +2 -2
  61. package/fesm2022/agorapulse-ui-components-paginator.mjs.map +1 -1
  62. package/fesm2022/agorapulse-ui-components-password-input.mjs +2 -2
  63. package/fesm2022/agorapulse-ui-components-password-input.mjs.map +1 -1
  64. package/fesm2022/agorapulse-ui-components-popmenu.mjs +2 -2
  65. package/fesm2022/agorapulse-ui-components-popmenu.mjs.map +1 -1
  66. package/fesm2022/agorapulse-ui-components-slide-toggle.mjs +2 -2
  67. package/fesm2022/agorapulse-ui-components-slide-toggle.mjs.map +1 -1
  68. package/fesm2022/agorapulse-ui-components-snackbars-thread.mjs +2 -2
  69. package/fesm2022/agorapulse-ui-components-snackbars-thread.mjs.map +1 -1
  70. package/fesm2022/agorapulse-ui-components-stepper.mjs +2 -2
  71. package/fesm2022/agorapulse-ui-components-stepper.mjs.map +1 -1
  72. package/nav-selector/directives/nav-selector-popover-trigger.directive.d.ts +25 -0
  73. package/nav-selector/nav-selector-group/nav-selector-group.component.d.ts +1 -1
  74. package/nav-selector/nav-selector-leaf/nav-selector-leaf.component.d.ts +5 -20
  75. package/nav-selector/nav-selector-leaf/nav-selector-leaf.presenter.d.ts +1 -1
  76. package/nav-selector/nav-selector-leaf-detail/nav-selector-leaf-detail.component.d.ts +1 -1
  77. package/nav-selector/nav-selector-popover/nav-selector-popover-item.component.d.ts +6 -0
  78. package/nav-selector/nav-selector-popover/nav-selector-popover.component.d.ts +39 -0
  79. package/nav-selector/nav-selector.component.d.ts +6 -4
  80. package/nav-selector/nav-selector.d.ts +6 -0
  81. package/nav-selector/nav-selector.state.d.ts +3 -2
  82. package/nav-selector/utils/leaf.utils.d.ts +15 -2
  83. package/nav-selector/utils/nav-selector.accessibility.d.ts +1 -1
  84. package/nav-selector/utils/nav-selector.filter.d.ts +3 -1
  85. package/nav-selector/utils/nav-selector.folding.d.ts +6 -3
  86. package/nav-selector/utils/nav-selector.merger.d.ts +23 -0
  87. package/nav-selector/utils/nav-selector.minifying.d.ts +4 -2
  88. package/nav-selector/utils/nav-selector.single-select.d.ts +2 -0
  89. package/package.json +1 -1
  90. package/agorapulse-ui-components-18.0.13.tgz +0 -0
@@ -10,9 +10,10 @@ export declare class NavSelectorFolding {
10
10
  *
11
11
  * @param entries nav selector entries
12
12
  * @param entryUid the entry uid to toggle
13
+ * @param multipleMode to update the focusable state of leaves and details correctly.
13
14
  * @param minified true if the nav selector is minified. Needed for leaf as they are not foldable in minified mode
14
15
  */
15
- static toggleFolding<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, minified: boolean): InternalNavSelectorEntry[];
16
+ static toggleFolding<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, multipleMode: boolean, minified: boolean): InternalNavSelectorEntry[];
16
17
  /**
17
18
  * Fold an entry.
18
19
  *
@@ -21,9 +22,10 @@ export declare class NavSelectorFolding {
21
22
  *
22
23
  * @param entries nav selector entries
23
24
  * @param entryUid the entry uid to fold
25
+ * @param multipleMode to update the focusable state of leaves and details correctly.
24
26
  * @param minified true if the nav selector is minified. Needed for leaf as they are not foldable in minified mode
25
27
  */
26
- static fold<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, minified: boolean): InternalNavSelectorEntry[];
28
+ static fold<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, multipleMode: boolean, minified: boolean): InternalNavSelectorEntry[];
27
29
  /**
28
30
  * Unfold an entry.
29
31
  *
@@ -32,9 +34,10 @@ export declare class NavSelectorFolding {
32
34
  *
33
35
  * @param entries nav selector entries
34
36
  * @param entryUid the entry uid to unfold
37
+ * @param multipleMode to update the focusable state of leaves and details correctly.
35
38
  * @param minified true if the nav selector is minified. Needed for leaf as they are not foldable in minified mode
36
39
  */
37
- static unfold<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, minified: boolean): InternalNavSelectorEntry[];
40
+ static unfold<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, multipleMode: boolean, minified: boolean): InternalNavSelectorEntry[];
38
41
  private static toggleEntryFolding;
39
42
  private static foldEntry;
40
43
  private static unfoldEntry;
@@ -0,0 +1,23 @@
1
+ import { InternalNavSelectorEntry } from '../nav-selector';
2
+ /**
3
+ * NavSelectorMerger is a utility class that merges old entries into new entries.
4
+ * It is used to keep some previous properties of the previous state. Ex: folded, selected, focused, etc.
5
+ */
6
+ export declare class NavSelectorMerger {
7
+ /**
8
+ * Merges the old entries into the new entries.
9
+ *
10
+ * Modify directly the new entries as new entries are generated from scratch so no need to destructure them to have a new reference.
11
+ *
12
+ * @param newEntries
13
+ * @param oldEntries
14
+ *
15
+ * @returns the new entries with the old entries merged into them
16
+ */
17
+ static mergeInternalNavSelectorEntries(newEntries: InternalNavSelectorEntry[], oldEntries: InternalNavSelectorEntry[]): InternalNavSelectorEntry[];
18
+ private static merge;
19
+ private static mergeNode;
20
+ private static mergeGroup;
21
+ private static mergeLeaf;
22
+ private static isInternalLeafLogicValid;
23
+ }
@@ -10,9 +10,10 @@ export declare class NavSelectorMinifying {
10
10
  * Detail are not focusable when minified.
11
11
  *
12
12
  * @param entries The entries to minify.
13
+ * @param multipleMode to update the focusable state of leaves correctly.
13
14
  * @returns The modified entries.
14
15
  */
15
- static minify<T extends InternalNavSelectorEntry>(entries: T[]): InternalNavSelectorEntry[];
16
+ static minify<T extends InternalNavSelectorEntry>(entries: T[], multipleMode: boolean): InternalNavSelectorEntry[];
16
17
  /**
17
18
  * When expanding the nav selector, compute the focusable state of the entries.
18
19
  *
@@ -20,8 +21,9 @@ export declare class NavSelectorMinifying {
20
21
  * Detail are focusable when expanded.
21
22
  *
22
23
  * @param entries The entries to minify.
24
+ * @param multipleMode to update the focusable state of leaves and details correctly.
23
25
  * @returns The modified entries.
24
26
  */
25
- static expand<T extends InternalNavSelectorEntry>(entries: T[]): InternalNavSelectorEntry[];
27
+ static expand<T extends InternalNavSelectorEntry>(entries: T[], multipleMode: boolean): InternalNavSelectorEntry[];
26
28
  private static compute;
27
29
  }
@@ -11,5 +11,7 @@ export declare class NavSelectorSingleSelect {
11
11
  static select<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string): InternalNavSelectorEntry[];
12
12
  private static selectALeaf;
13
13
  private static selectALeafWithDetails;
14
+ private static selectALeafWitDetailsNotDisplayable;
15
+ private static selectALeafWithDisplayableDetails;
14
16
  private static selectALeafWithoutDetails;
15
17
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agorapulse/ui-components",
3
3
  "description": "Agorapulse UI Components Library",
4
- "version": "18.0.13",
4
+ "version": "18.0.14",
5
5
  "author": "Benoit Hediard",
6
6
  "repository": {
7
7
  "type": "git",