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