ngx-edu-sharing-ui 10.0.26 → 10.0.27

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.
@@ -16,7 +16,7 @@ export declare class ListTextComponent extends ListWidget implements OnInit {
16
16
  displayName$: BehaviorSubject<string>;
17
17
  constructor(nodeHelper: NodeHelperService, mds: MdsService, changeDetectorRef: ChangeDetectorRef);
18
18
  ngOnInit(): Promise<void>;
19
- getNode(): Constants.Node | Constants.Group | Constants.Person | Constants.Statistics;
19
+ getNode(): Constants.Node | Constants.Person | Constants.Group | Constants.Statistics;
20
20
  isUserProfileAttribute(attribute: string): boolean;
21
21
  getWorkflowStatus(): import("ngx-edu-sharing-ui").WorkflowDefinition;
22
22
  getI18n(item: ListItem): string;
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
7
7
  export declare class ListWidget {
8
8
  get node(): Node | ProposalNode | Group | Person | Statistics;
9
9
  set node(value: Node | ProposalNode | Group | Person | Statistics);
10
- protected readonly nodeSubject: BehaviorSubject<Node | Group | Person | ProposalNode | Statistics>;
10
+ protected readonly nodeSubject: BehaviorSubject<Node | ProposalNode | Person | Group | Statistics>;
11
11
  get item(): ListItem;
12
12
  set item(value: ListItem);
13
13
  protected readonly itemSubject: BehaviorSubject<ListItem>;
@@ -1,7 +1,7 @@
1
1
  import { BehaviorSubject } from 'rxjs';
2
2
  import { Node } from 'ngx-edu-sharing-api';
3
3
  import { Values } from '../services/search-helper.service';
4
- export type EditorMode = 'nodes' | 'search' | 'form' | 'inline' | 'viewer';
4
+ export type EditorMode = 'nodes' | 'search' | 'form' | 'inline' | 'viewer' | 'searchFacetSuggestion';
5
5
  export declare abstract class MdsEditorInstanceServiceAbstract {
6
6
  mdsId: string;
7
7
  editorMode: EditorMode;
@@ -9,6 +9,7 @@ export declare abstract class MdsEditorInstanceServiceAbstract {
9
9
  values$: BehaviorSubject<Values>;
10
10
  /** Nodes with updated and complete metadata. */
11
11
  nodes$: BehaviorSubject<Node[]>;
12
+ shouldShowExtendedWidgets$: BehaviorSubject<boolean>;
12
13
  abstract saveWidgetValue(widget: any): Promise<void>;
13
14
  abstract fetchDisplayValues(widget: any, additionalKeys?: string[]): Promise<void>;
14
15
  }
@@ -75,7 +75,7 @@ export declare enum ValueType {
75
75
  Range = 2
76
76
  }
77
77
  export declare class MdsWidgetComponent implements OnInit, OnDestroy, OnChanges {
78
- private mdsEditorInstance;
78
+ mdsEditorInstance: MdsEditorInstanceServiceAbstract;
79
79
  translate: TranslateService;
80
80
  private ui;
81
81
  private viewInstance;
@@ -90,7 +90,9 @@ export interface ListEventInterface<T extends NodeEntriesDataType> {
90
90
  getDisplayType(): NodeEntriesDisplayType;
91
91
  setDisplayType(displayType: NodeEntriesDisplayType): void;
92
92
  showReorderColumnsDialog(): void;
93
- addVirtualNodes(virtual: T[]): void;
93
+ addVirtualNodes(virtual: T[], options?: {
94
+ select: boolean;
95
+ }): void;
94
96
  setOptions(options: ListOptions): void;
95
97
  /**
96
98
  * activate option (dropdown) generation
@@ -11,7 +11,6 @@ import { SortSelectPanelComponent } from '../sort-select-panel/sort-select-panel
11
11
  import { Target } from '../../types/option-item';
12
12
  import { NodeEntriesService } from '../../services/node-entries.service';
13
13
  import { UIService } from '../../services/ui.service';
14
- import { ListItemSort } from '../../types/list-item';
15
14
  import { DragData } from '../../types/drag-drop';
16
15
  import { CdkOverlayOrigin } from '@angular/cdk/overlay';
17
16
  import { NodeHelperService } from '../../services/node-helper.service';
@@ -82,7 +81,6 @@ export declare class NodeEntriesCardGridComponent<T extends Node> implements OnI
82
81
  private focusOnce;
83
82
  onGridSizeChanges(): void;
84
83
  private getItemsPerRow;
85
- getSortColumns(): ListItemSort[];
86
84
  canDropNodes: (dragData: DragData<T>) => import("../../types/drag-drop").CanDrop;
87
85
  onNodesDropped(dragData: DragData<Node>): void;
88
86
  getDragEnabled(): rxjs.Observable<boolean>;
@@ -1,8 +1,8 @@
1
1
  import { CdkOverlayOrigin } from '@angular/cdk/overlay';
2
- import { AfterViewInit, ApplicationRef, ChangeDetectorRef, ElementRef, NgZone, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import { AfterViewInit, ApplicationRef, ChangeDetectorRef, ElementRef, NgZone, OnChanges, OnDestroy, SimpleChanges, TemplateRef } from '@angular/core';
3
3
  import { MatMenuTrigger } from '@angular/material/menu';
4
4
  import { MatPaginator } from '@angular/material/paginator';
5
- import { MatSort } from '@angular/material/sort';
5
+ import { MatSort, Sort } from '@angular/material/sort';
6
6
  import * as rxjs from 'rxjs';
7
7
  import { Observable } from 'rxjs';
8
8
  import { ClickSource, InteractionType, NodeEntriesDataType, NodeEntriesDisplayType } from '../entries-model';
@@ -17,12 +17,14 @@ import { Toast } from '../../services/abstract/toast.service';
17
17
  import { DropdownComponent } from '../../dropdown/dropdown.component';
18
18
  import { TranslationsService } from '../../translations/translations.service';
19
19
  import { NodeHelperService } from '../../services/node-helper.service';
20
+ import { NodeEntriesTemplatesService } from '../node-entries-templates.service';
20
21
  import * as i0 from "@angular/core";
21
22
  export declare class NodeEntriesTableComponent<T extends NodeEntriesDataType> implements OnChanges, AfterViewInit, OnDestroy {
22
23
  entriesService: NodeEntriesService<T>;
23
24
  entriesGlobalService: NodeEntriesGlobalService;
24
25
  private applicationRef;
25
26
  private toast;
27
+ templatesService: NodeEntriesTemplatesService;
26
28
  private translations;
27
29
  private nodeHelperService;
28
30
  private changeDetectorRef;
@@ -39,6 +41,7 @@ export declare class NodeEntriesTableComponent<T extends NodeEntriesDataType> im
39
41
  dropdown: DropdownComponent;
40
42
  menuTrigger: MatMenuTrigger;
41
43
  isScroll: boolean;
44
+ set gridTop(value: TemplateRef<unknown>);
42
45
  dropdownLeft: number;
43
46
  dropdownTop: number;
44
47
  loading: Observable<boolean>;
@@ -50,11 +53,12 @@ export declare class NodeEntriesTableComponent<T extends NodeEntriesDataType> im
50
53
  pageSizeOptions: number[];
51
54
  isDragging: boolean;
52
55
  private readonly maximumColumnsNumber$;
56
+ readonly hasHiddenSortColumns$: rxjs.BehaviorSubject<boolean>;
53
57
  readonly visibleDataColumns$: rxjs.Observable<ListItem[]>;
54
58
  readonly visibleColumnNames$: rxjs.Observable<string[]>;
55
59
  private destroyed;
56
60
  containerWidth$: rxjs.BehaviorSubject<number>;
57
- constructor(entriesService: NodeEntriesService<T>, entriesGlobalService: NodeEntriesGlobalService, applicationRef: ApplicationRef, toast: Toast, translations: TranslationsService, nodeHelperService: NodeHelperService, changeDetectorRef: ChangeDetectorRef, ui: UIService, ngZone: NgZone, elementRef: ElementRef<HTMLElement>);
61
+ constructor(entriesService: NodeEntriesService<T>, entriesGlobalService: NodeEntriesGlobalService, applicationRef: ApplicationRef, toast: Toast, templatesService: NodeEntriesTemplatesService, translations: TranslationsService, nodeHelperService: NodeHelperService, changeDetectorRef: ChangeDetectorRef, ui: UIService, ngZone: NgZone, elementRef: ElementRef<HTMLElement>);
58
62
  ngAfterViewInit(): void;
59
63
  ngOnChanges(changes: SimpleChanges): void;
60
64
  ngOnDestroy(): void;
@@ -69,6 +73,7 @@ export declare class NodeEntriesTableComponent<T extends NodeEntriesDataType> im
69
73
  private getVisibleColumnNames;
70
74
  isSortable(column: ListItem): boolean;
71
75
  toggleAll(checked: boolean): void;
76
+ private registerGridTop;
72
77
  private registerSortChanges;
73
78
  canDrop: (dragData: DragData<T>) => CanDrop;
74
79
  drop(dragData: DragData<Node>): void;
@@ -78,6 +83,7 @@ export declare class NodeEntriesTableComponent<T extends NodeEntriesDataType> im
78
83
  loadData(source: 'scroll' | 'button'): void;
79
84
  openMenu(node: T): Promise<void>;
80
85
  isBlocked(node: Node): boolean;
86
+ selectSortChange(sort: Sort): void;
81
87
  static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesTableComponent<any>, never>;
82
88
  static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesTableComponent<any>, "es-node-entries-table", never, {}, {}, never, never, false, never>;
83
89
  }
@@ -135,7 +135,9 @@ export declare class NodeEntriesWrapperComponent<T extends NodeEntriesDataType>
135
135
  setDisplayType(displayType: NodeEntriesDisplayType): void;
136
136
  updateNodes(nodes: void | T[]): void;
137
137
  showReorderColumnsDialog(): void;
138
- addVirtualNodes(virtual: T[]): void;
138
+ addVirtualNodes(virtual: T[], options?: {
139
+ select: boolean;
140
+ }): void;
139
141
  setOptions(options: ListOptions): void;
140
142
  selectAll(): void;
141
143
  getSelection(): CustomSelectionModel<T>;
@@ -3,6 +3,7 @@ import { Node } from 'ngx-edu-sharing-api';
3
3
  import { NodeEntriesGlobalService } from '../node-entries-global.service';
4
4
  import { NodeHelperService } from '../../services/node-helper.service';
5
5
  import { NodeEntriesService } from '../../services/node-entries.service';
6
+ import { NodeEntriesDataType } from '../entries-model';
6
7
  import * as i0 from "@angular/core";
7
8
  /**
8
9
  * A small circular badge that depicts the node's type.
@@ -13,7 +14,7 @@ export declare class NodeTypeBadgeComponent implements OnChanges {
13
14
  nodeHelper: NodeHelperService;
14
15
  private nodeEntriesGlobalService;
15
16
  nodeEntriesService: NodeEntriesService<Node>;
16
- node: Node;
17
+ node: NodeEntriesDataType;
17
18
  /**
18
19
  * when true, collection icons will resolve based on their type (editorial, private...)
19
20
  * When false, the generic svg image is used
@@ -23,6 +24,7 @@ export declare class NodeTypeBadgeComponent implements OnChanges {
23
24
  constructor(nodeHelper: NodeHelperService, nodeEntriesGlobalService: NodeEntriesGlobalService, nodeEntriesService: NodeEntriesService<Node>);
24
25
  ngOnChanges(): void;
25
26
  getCustomTemplate(): import("@angular/core").TemplateRef<unknown>;
27
+ materialIcon(): "group" | "person";
26
28
  static ɵfac: i0.ɵɵFactoryDeclaration<NodeTypeBadgeComponent, [null, null, { optional: true; }]>;
27
29
  static ɵcmp: i0.ɵɵComponentDeclaration<NodeTypeBadgeComponent, "es-node-type-badge", never, { "node": { "alias": "node"; "required": false; }; "collectionIcons": { "alias": "collectionIcons"; "required": false; }; }, {}, never, never, false, never>;
28
30
  }
@@ -5,7 +5,7 @@ import { ClickSource, FetchEvent, GridConfig, InteractionType, ListDragGropConfi
5
5
  import { NodeDataSource } from '../node-entries/node-data-source';
6
6
  import { NodeEntriesGlobalService, PaginationStrategy } from '../node-entries/node-entries-global.service';
7
7
  import { OptionItem, Scope } from '../types/option-item';
8
- import { ListItem } from '../types/list-item';
8
+ import { ListItem, ListItemSort } from '../types/list-item';
9
9
  import { UIService } from './ui.service';
10
10
  import { DropdownComponent } from '../dropdown/dropdown.component';
11
11
  import { Toast } from './abstract/toast.service';
@@ -100,6 +100,7 @@ export declare class NodeEntriesService<T extends NodeEntriesDataType> {
100
100
  private isAllSelected;
101
101
  private expandSelectionTo;
102
102
  openDropdown(dropdown: DropdownComponent, node: T, onDone?: () => void): void;
103
+ getSortColumns(): ListItemSort[];
103
104
  static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesService<any>, never>;
104
105
  static ɵprov: i0.ɵɵInjectableDeclaration<NodeEntriesService<any>>;
105
106
  }
@@ -75,6 +75,6 @@ export declare class NodeHelperService {
75
75
  * Effective: check only rights of the original node this refers to (collection ref). If it is not a collection ref, fallback to local
76
76
  */
77
77
  getNodesRight(nodes: Node[], right: string, mode?: NodesRightMode): boolean;
78
- static ɵfac: i0.ɵɵFactoryDeclaration<NodeHelperService, [{ optional: true; }, null, null, null, null, null]>;
78
+ static ɵfac: i0.ɵɵFactoryDeclaration<NodeHelperService, never>;
79
79
  static ɵprov: i0.ɵɵInjectableDeclaration<NodeHelperService>;
80
80
  }
@@ -50,6 +50,10 @@ export declare class UIService {
50
50
  delay?: number;
51
51
  replace?: boolean;
52
52
  }, injector?: Injector): ComponentRef<T>;
53
+ /**
54
+ * returns true if the current browser is safari running
55
+ */
56
+ static isSafari(): boolean;
53
57
  /**
54
58
  * dynamically inject an angular component into a regular html dom element
55
59
  * @param componentFactoryResolver The resolver service
@@ -30,6 +30,11 @@ export declare class OptionItem {
30
30
  * @type {boolean}
31
31
  */
32
32
  isToggle: boolean;
33
+ /**
34
+ * toggle type. Default is a flat, grayish
35
+ * primary is a primary colored button with label (if space is available)
36
+ */
37
+ toggleType: 'default' | 'primary';
33
38
  /**
34
39
  * Only when @isToggle. is the toggle currently visible
35
40
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-edu-sharing-ui",
3
- "version": "10.0.26",
3
+ "version": "10.0.27",
4
4
  "license": "GNU GPL v2",
5
5
  "description": "Angular components for Edu-Sharing UX parts",
6
6
  "peerDependencies": {
@@ -11,7 +11,7 @@
11
11
  "material-design-icons": "^3.0.1",
12
12
  "ngx-rendering-service-api": ">=0.0.41",
13
13
  "@ngx-translate/core": ">=15.0.0",
14
- "angular-material-css-vars": "^6.0.0 || ^7.0.0",
14
+ "angular-material-css-vars": ">=7.0.0",
15
15
  "rxjs": "^6.6.7 || ^7.0.0",
16
16
  "lodash-es": "^4.17.21"
17
17
  },