@yuuvis/client-framework 2.6.3 → 2.7.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.
Files changed (41) hide show
  1. package/common/lib/components/busy-overlay/busy-overlay.component.d.ts +0 -1
  2. package/fesm2022/yuuvis-client-framework-common.mjs +1 -4
  3. package/fesm2022/yuuvis-client-framework-common.mjs.map +1 -1
  4. package/fesm2022/yuuvis-client-framework-forms.mjs +7 -4
  5. package/fesm2022/yuuvis-client-framework-forms.mjs.map +1 -1
  6. package/fesm2022/yuuvis-client-framework-list.mjs +92 -58
  7. package/fesm2022/yuuvis-client-framework-list.mjs.map +1 -1
  8. package/fesm2022/yuuvis-client-framework-object-flavor.mjs +2 -2
  9. package/fesm2022/yuuvis-client-framework-object-flavor.mjs.map +1 -1
  10. package/fesm2022/yuuvis-client-framework-object-versions.mjs +1 -1
  11. package/fesm2022/yuuvis-client-framework-object-versions.mjs.map +1 -1
  12. package/fesm2022/yuuvis-client-framework-query-list.mjs +269 -0
  13. package/fesm2022/yuuvis-client-framework-query-list.mjs.map +1 -0
  14. package/fesm2022/yuuvis-client-framework-tile-list.mjs +83 -202
  15. package/fesm2022/yuuvis-client-framework-tile-list.mjs.map +1 -1
  16. package/fesm2022/yuuvis-client-framework-tree.mjs +8 -5
  17. package/fesm2022/yuuvis-client-framework-tree.mjs.map +1 -1
  18. package/fesm2022/yuuvis-client-framework.mjs +716 -160
  19. package/fesm2022/yuuvis-client-framework.mjs.map +1 -1
  20. package/lib/config/halo-focus-defaults/halo-excluded-elements.const.d.ts +26 -0
  21. package/lib/config/halo-focus-defaults/halo-focus-navigation-keys.const.d.ts +25 -0
  22. package/lib/config/halo-focus-defaults/halo-focus-offset.const.d.ts +25 -0
  23. package/lib/config/halo-focus-defaults/halo-focus-styles.const.d.ts +26 -0
  24. package/lib/config/halo-focus-defaults/index.d.ts +4 -0
  25. package/lib/config/index.d.ts +1 -0
  26. package/lib/models/halo-focus-config/halo-focus-config.model.d.ts +48 -0
  27. package/lib/models/halo-focus-config/index.d.ts +1 -0
  28. package/lib/models/index.d.ts +1 -0
  29. package/lib/providers/halo-focus/index.d.ts +1 -0
  30. package/lib/providers/halo-focus/provide-halo-focus.d.ts +58 -6
  31. package/lib/providers/index.d.ts +1 -1
  32. package/lib/services/halo-focus/halo-focus.service.d.ts +80 -17
  33. package/lib/services/halo-utility/halo-utility.service.d.ts +230 -0
  34. package/lib/services/index.d.ts +1 -0
  35. package/list/lib/list.component.d.ts +35 -6
  36. package/package.json +19 -15
  37. package/query-list/README.md +3 -0
  38. package/query-list/index.d.ts +2 -0
  39. package/query-list/lib/query-list.component.d.ts +139 -0
  40. package/query-list/lib/query-list.module.d.ts +7 -0
  41. package/tile-list/lib/tile-list/tile-list.component.d.ts +52 -34
@@ -1,9 +1,7 @@
1
- import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import { DmsObject, SearchQuery } from '@yuuvis/client-core';
3
- import { PageEvent } from '@angular/material/paginator';
1
+ import { ElementRef, OnInit, Signal } from '@angular/core';
2
+ import { DmsObject, ResolvedObjectConfigItem, SearchQuery, SearchResultItem } from '@yuuvis/client-core';
4
3
  import { Action } from '@yuuvis/client-framework/actions';
5
- import { ListComponent, ListTileComponent } from '@yuuvis/client-framework/list';
6
- import { Pagination } from '@yuuvis/client-framework/pagination';
4
+ import { QueryListComponent } from '@yuuvis/client-framework/query-list';
7
5
  import { ObjectFlavor } from '@yuuvis/client-shell-core';
8
6
  import { TileActionsMenuComponent } from '../tile-actions-menu/tile-actions-menu.component';
9
7
  import { TileData, TileListConfigOptions, TileListHighlight } from './tile-list.interface';
@@ -11,23 +9,32 @@ import * as i0 from "@angular/core";
11
9
  type InnerTileData = TileData & {
12
10
  actions: any;
13
11
  };
14
- export declare class TileListComponent implements OnInit, OnDestroy {
12
+ export declare class TileListComponent implements OnInit {
15
13
  #private;
16
- menuComponent: import("@angular/core").Signal<TileActionsMenuComponent | undefined>;
17
- menu: import("@angular/core").Signal<import("@angular/material/menu").MatMenu | null>;
18
- emptyContent: import("@angular/core").Signal<ElementRef<any> | undefined>;
19
- isTouchDevice: boolean;
20
- tiles: import("@angular/core").Signal<readonly ListTileComponent[]>;
21
- list: import("@angular/core").Signal<ListComponent>;
22
- onCopy(event: KeyboardEvent): void;
23
- onCut(event: KeyboardEvent): void;
24
- _busy: import("@angular/core").WritableSignal<boolean>;
14
+ menuComponent: Signal<TileActionsMenuComponent | undefined>;
15
+ menu: Signal<import("@angular/material/menu").MatMenu | null>;
16
+ emptyContent: Signal<ElementRef<any> | undefined>;
17
+ list: Signal<QueryListComponent>;
18
+ transformer: (res: SearchResultItem[]) => {
19
+ actions: Action[];
20
+ id: string;
21
+ objectTypeId: string;
22
+ icon?: ResolvedObjectConfigItem;
23
+ title: ResolvedObjectConfigItem;
24
+ description?: ResolvedObjectConfigItem;
25
+ meta?: ResolvedObjectConfigItem;
26
+ aside?: ResolvedObjectConfigItem;
27
+ badges?: import("@yuuvis/client-core").ObjectConfigBadge[];
28
+ instanceData?: Record<string, unknown>;
29
+ dmsObject: DmsObject;
30
+ }[];
31
+ onCopy(event: Event): void;
32
+ onCut(event: Event): void;
33
+ _busy: Signal<boolean>;
25
34
  private oc?;
26
- pagination?: Pagination;
27
35
  private _selection;
28
36
  private _lastSelection?;
29
37
  selectedTile: import("@angular/core").WritableSignal<TileData[]>;
30
- empytIcon: import("@angular/core").WritableSignal<string>;
31
38
  /**
32
39
  * The ID of the selected list item
33
40
  */
@@ -39,15 +46,31 @@ export declare class TileListComponent implements OnInit, OnDestroy {
39
46
  * retrieved. Buckets should be unique so be sure to use a unique namespace.
40
47
  */
41
48
  bucket: import("@angular/core").InputSignal<string | undefined>;
49
+ /**
50
+ * The number of items to display per page.
51
+ */
42
52
  pageSize: import("@angular/core").InputSignal<number>;
43
53
  /**
44
- * Sets up the ability to select multile tiles
54
+ * Sets up the ability to select multiple tiles
55
+ * @default false
45
56
  */
46
57
  multiselect: import("@angular/core").InputSignal<boolean>;
58
+ /**
59
+ * If `true`, the tiles will be rendered in a more compact, denser style.
60
+ * @default false
61
+ */
47
62
  dense: import("@angular/core").InputSignal<boolean>;
63
+ /**
64
+ * Configuration options for the tile list component.
65
+ */
48
66
  options: import("@angular/core").InputSignal<TileListConfigOptions | undefined>;
67
+ /**
68
+ * The object flavor to be applied to the tiles.
69
+ */
49
70
  flavor: import("@angular/core").InputSignal<ObjectFlavor | undefined>;
50
- flavorEffect: import("@angular/core").EffectRef;
71
+ /**
72
+ * The currently applied object flavor.
73
+ */
51
74
  appliedFlavor?: ObjectFlavor;
52
75
  /**
53
76
  * The search query to be executed. This may be a SearchQuery object or a CMIS query statement.
@@ -55,7 +78,10 @@ export declare class TileListComponent implements OnInit, OnDestroy {
55
78
  query: import("@angular/core").InputSignal<string | SearchQuery | null | undefined>;
56
79
  preselect: import("@angular/core").InputSignal<string[]>;
57
80
  highlights: import("@angular/core").InputSignal<TileListHighlight[] | null>;
58
- highlightStyles: import("@angular/core").Signal<Record<string, Record<string, unknown>>>;
81
+ highlightStyles: Signal<Record<string, Record<string, unknown>>>;
82
+ /**
83
+ * Prevent selection changes while the provided function returns false.
84
+ */
59
85
  preventChangeUntil: import("@angular/core").InputSignal<() => boolean>;
60
86
  disableCustomContextMenu: import("@angular/core").InputSignal<boolean>;
61
87
  /**
@@ -75,7 +101,7 @@ export declare class TileListComponent implements OnInit, OnDestroy {
75
101
  */
76
102
  selectionChange: import("@angular/core").OutputEmitterRef<TileData[]>;
77
103
  /**
78
- * Emitted when a list item has been doubleclicked
104
+ * Emitted when a list item has been double-clicked
79
105
  */
80
106
  itemDblClick: import("@angular/core").OutputEmitterRef<TileData>;
81
107
  ctxMenu: import("@angular/core").OutputEmitterRef<{
@@ -83,32 +109,24 @@ export declare class TileListComponent implements OnInit, OnDestroy {
83
109
  selection: any;
84
110
  }>;
85
111
  items: import("@angular/core").WritableSignal<TileData[]>;
86
- _items: import("@angular/core").Signal<InnerTileData[]>;
87
- private _rawResult?;
88
112
  searchExecuted: boolean;
89
- constructor();
90
- getPageSize(): number;
91
113
  contextMenuHandler(event: MouseEvent, index: number): void;
92
114
  executeAction(t: InnerTileData, a: Action, evt: Event): void;
93
- select(i: TileData, evt?: MouseEvent | KeyboardEvent): void;
94
115
  selectById(ids: string[]): void;
95
- onDragSelectChange(sel: number[]): void;
96
- onDragSelect(sel: number[]): void;
97
- onListItemsSelect(sel: number[]): void;
98
116
  selectByIndex(idx: number, evt?: MouseEvent | KeyboardEvent): void;
117
+ onQueryResult(e: {
118
+ totalCount: number;
119
+ }): void;
120
+ onListItemsSelect(sel: number[]): void;
99
121
  refresh(): void;
100
122
  applyFlavor(flavor: ObjectFlavor): void;
101
123
  clearSelection(silent?: boolean): void;
102
124
  selectNext(): void;
103
125
  selectPrev(): void;
104
- changePage(pe: PageEvent): void;
105
- goToPage(page: number): void;
106
126
  private _selectionToTileData;
107
- private _mapSearchResult;
108
127
  updateTileList(listItems: DmsObject[]): void;
109
128
  ngOnInit(): void;
110
- ngOnDestroy(): void;
111
129
  static ɵfac: i0.ɵɵFactoryDeclaration<TileListComponent, never>;
112
- static ɵcmp: i0.ɵɵComponentDeclaration<TileListComponent, "yuv-tile-list", never, { "bucket": { "alias": "bucket"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "multiselect": { "alias": "multiselect"; "required": false; "isSignal": true; }; "dense": { "alias": "dense"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "flavor": { "alias": "flavor"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "preselect": { "alias": "preselect"; "required": false; "isSignal": true; }; "highlights": { "alias": "highlights"; "required": false; "isSignal": true; }; "preventChangeUntil": { "alias": "preventChangeUntil"; "required": false; "isSignal": true; }; "disableCustomContextMenu": { "alias": "disableCustomContextMenu"; "required": false; "isSignal": true; }; }, { "itemSelect": "itemSelect"; "tileCopy": "tileCopy"; "tileCut": "tileCut"; "busy": "busy"; "queryResult": "queryResult"; "selectionChange": "selectionChange"; "itemDblClick": "itemDblClick"; "ctxMenu": "ctxMenu"; }, ["menuComponent", "emptyContent"], ["*", "yuv-tile-actions-menu, [yuv-tile-actions-menu]"], true, never>;
130
+ static ɵcmp: i0.ɵɵComponentDeclaration<TileListComponent, "yuv-tile-list", never, { "bucket": { "alias": "bucket"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "multiselect": { "alias": "multiselect"; "required": false; "isSignal": true; }; "dense": { "alias": "dense"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "flavor": { "alias": "flavor"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "preselect": { "alias": "preselect"; "required": false; "isSignal": true; }; "highlights": { "alias": "highlights"; "required": false; "isSignal": true; }; "preventChangeUntil": { "alias": "preventChangeUntil"; "required": false; "isSignal": true; }; "disableCustomContextMenu": { "alias": "disableCustomContextMenu"; "required": false; "isSignal": true; }; }, { "itemSelect": "itemSelect"; "tileCopy": "tileCopy"; "tileCut": "tileCut"; "busy": "busy"; "queryResult": "queryResult"; "selectionChange": "selectionChange"; "itemDblClick": "itemDblClick"; "ctxMenu": "ctxMenu"; }, ["menuComponent", "emptyContent"], ["yuv-tile-actions-menu, [yuv-tile-actions-menu]", "*"], true, never>;
113
131
  }
114
132
  export {};