ngx-edu-sharing-ui 10.0.26 → 10.0.28
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.
- package/assets/scss/branding.scss +32 -7
- package/assets/scss/material-theme.scss +29 -0
- package/assets/scss/variables.scss +2 -1
- package/fesm2022/ngx-edu-sharing-ui.mjs +207 -109
- package/fesm2022/ngx-edu-sharing-ui.mjs.map +1 -1
- package/lib/common/edu-sharing-ui-common.module.d.ts +25 -24
- package/lib/directives/icon.directive.d.ts +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/info-message/info-message.component.d.ts +13 -0
- package/lib/list-items/list-text/list-text.component.d.ts +1 -1
- package/lib/list-items/list-widget.d.ts +1 -1
- package/lib/mds-viewer/mds-editor-instance-service.abstract.d.ts +2 -1
- package/lib/mds-viewer/widget/mds-widget.component.d.ts +1 -1
- package/lib/node-entries/entries-model.d.ts +3 -1
- package/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.d.ts +0 -2
- package/lib/node-entries/node-entries-table/node-entries-table.component.d.ts +9 -3
- package/lib/node-entries/node-entries-wrapper.component.d.ts +3 -1
- package/lib/node-entries/node-entries.module.d.ts +1 -1
- package/lib/node-entries/node-type-badge/node-type-badge.component.d.ts +3 -1
- package/lib/services/node-entries.service.d.ts +2 -1
- package/lib/services/node-helper.service.d.ts +1 -1
- package/lib/services/render-helper.service.d.ts +1 -0
- package/lib/services/ui.service.d.ts +4 -0
- package/lib/types/option-item.d.ts +5 -0
- package/package.json +2 -2
|
@@ -8,32 +8,33 @@ import * as i6 from "../dropdown/dropdown.component";
|
|
|
8
8
|
import * as i7 from "../directives/focus-state.directive";
|
|
9
9
|
import * as i8 from "../pipes/format-date.pipe";
|
|
10
10
|
import * as i9 from "../pipes/file-size.pipe";
|
|
11
|
-
import * as i10 from "../
|
|
12
|
-
import * as i11 from "../
|
|
13
|
-
import * as i12 from "../
|
|
14
|
-
import * as i13 from "../pipes/
|
|
15
|
-
import * as i14 from "../pipes/node-
|
|
16
|
-
import * as i15 from "../pipes/node-image.pipe";
|
|
17
|
-
import * as i16 from "../pipes/node-
|
|
18
|
-
import * as i17 from "../pipes/node-
|
|
19
|
-
import * as i18 from "../pipes/node-
|
|
20
|
-
import * as i19 from "../
|
|
21
|
-
import * as i20 from "../
|
|
22
|
-
import * as i21 from "../pipes/
|
|
23
|
-
import * as i22 from "../
|
|
24
|
-
import * as i23 from "../
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "@angular/
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "../
|
|
11
|
+
import * as i10 from "../pipes/mds-duration.pipe";
|
|
12
|
+
import * as i11 from "../directives/infinite-scroll.directive";
|
|
13
|
+
import * as i12 from "../pipes/property-slug.pipe";
|
|
14
|
+
import * as i13 from "../pipes/node-icon.pipe";
|
|
15
|
+
import * as i14 from "../pipes/node-image.pipe";
|
|
16
|
+
import * as i15 from "../pipes/node-image-size.pipe";
|
|
17
|
+
import * as i16 from "../pipes/node-license.pipe";
|
|
18
|
+
import * as i17 from "../pipes/node-person-name.pipe";
|
|
19
|
+
import * as i18 from "../pipes/node-title.pipe";
|
|
20
|
+
import * as i19 from "../node-url/node-url.component";
|
|
21
|
+
import * as i20 from "../pipes/option-tooltip.pipe";
|
|
22
|
+
import * as i21 from "../pipes/replace-chars.pipe";
|
|
23
|
+
import * as i22 from "../sort-dropdown/sort-dropdown.component";
|
|
24
|
+
import * as i23 from "../pipes/vcard-name.pipe";
|
|
25
|
+
import * as i24 from "@angular/common";
|
|
26
|
+
import * as i25 from "@angular/material/menu";
|
|
27
|
+
import * as i26 from "../spinner/spinner.component";
|
|
28
|
+
import * as i27 from "../directives/icon.directive";
|
|
29
29
|
import * as i28 from "../spinner-small/spinner-small.component";
|
|
30
|
-
import * as i29 from "
|
|
31
|
-
import * as i30 from "@angular/material/
|
|
32
|
-
import * as i31 from "@angular/material/
|
|
33
|
-
import * as i32 from "@
|
|
34
|
-
import * as i33 from "@
|
|
30
|
+
import * as i29 from "../info-message/info-message.component";
|
|
31
|
+
import * as i30 from "@angular/material/button";
|
|
32
|
+
import * as i31 from "@angular/material/tooltip";
|
|
33
|
+
import * as i32 from "@angular/material/core";
|
|
34
|
+
import * as i33 from "@ngx-translate/core";
|
|
35
|
+
import * as i34 from "@angular/router";
|
|
35
36
|
export declare class EduSharingUiCommonModule {
|
|
36
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<EduSharingUiCommonModule, never>;
|
|
37
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EduSharingUiCommonModule, [typeof i1.MdsViewerComponent, typeof i2.MdsWidgetComponent, typeof i3.ActionbarComponent, typeof i4.BorderBoxObserverDirective, typeof i5.CheckTextOverflowDirective, typeof i6.DropdownComponent, typeof i7.FocusStateDirective, typeof i8.FormatDatePipe, typeof i9.FormatSizePipe, typeof i10.
|
|
38
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EduSharingUiCommonModule, [typeof i1.MdsViewerComponent, typeof i2.MdsWidgetComponent, typeof i3.ActionbarComponent, typeof i4.BorderBoxObserverDirective, typeof i5.CheckTextOverflowDirective, typeof i6.DropdownComponent, typeof i7.FocusStateDirective, typeof i8.FormatDatePipe, typeof i9.FormatSizePipe, typeof i10.MdsDurationPipe, typeof i11.InfiniteScrollDirective, typeof i12.PropertySlugPipe, typeof i13.NodeIconPipe, typeof i14.NodeImagePipe, typeof i15.NodeImageSizePipe, typeof i16.NodeLicensePipe, typeof i17.NodePersonNamePipe, typeof i18.NodeTitlePipe, typeof i19.NodeUrlComponent, typeof i20.OptionTooltipPipe, typeof i21.ReplaceCharsPipe, typeof i22.SortDropdownComponent, typeof i23.VCardNamePipe], [typeof i24.CommonModule, typeof i25.MatMenuModule, typeof i26.SpinnerComponent, typeof i27.IconDirective, typeof i28.SpinnerSmallComponent, typeof i29.InfoMessageComponent, typeof i30.MatButtonModule, typeof i31.MatTooltipModule, typeof i32.MatRippleModule, typeof i33.TranslateModule, typeof i34.RouterModule], [typeof i1.MdsViewerComponent, typeof i2.MdsWidgetComponent, typeof i3.ActionbarComponent, typeof i4.BorderBoxObserverDirective, typeof i5.CheckTextOverflowDirective, typeof i6.DropdownComponent, typeof i7.FocusStateDirective, typeof i8.FormatDatePipe, typeof i9.FormatSizePipe, typeof i10.MdsDurationPipe, typeof i27.IconDirective, typeof i11.InfiniteScrollDirective, typeof i29.InfoMessageComponent, typeof i12.PropertySlugPipe, typeof i13.NodeIconPipe, typeof i14.NodeImagePipe, typeof i15.NodeImageSizePipe, typeof i17.NodePersonNamePipe, typeof i18.NodeTitlePipe, typeof i19.NodeUrlComponent, typeof i22.SortDropdownComponent, typeof i26.SpinnerComponent, typeof i28.SpinnerSmallComponent, typeof i23.VCardNamePipe]>;
|
|
38
39
|
static ɵinj: i0.ɵɵInjectorDeclaration<EduSharingUiCommonModule>;
|
|
39
40
|
}
|
|
@@ -48,5 +48,5 @@ export declare class IconDirective implements OnInit, OnDestroy {
|
|
|
48
48
|
private setAltText;
|
|
49
49
|
private insertAltTextSpan;
|
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconDirective, [null, null, null, null, { optional: true; }]>;
|
|
51
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirective, "i[esIcon], i.material-icons", never, { "altText": { "alias": "altText"; "required": false; }; "aria": { "alias": "aria"; "required": false; }; "esIcon": { "alias": "esIcon"; "required": false; }; "esIconContext": { "alias": "esIconContext"; "required": false; }; }, {}, never, never,
|
|
51
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirective, "i[esIcon], i.material-icons", never, { "altText": { "alias": "altText"; "required": false; }; "aria": { "alias": "aria"; "required": false; }; "esIcon": { "alias": "esIcon"; "required": false; }; "esIconContext": { "alias": "esIconContext"; "required": false; }; }, {}, never, never, true, never>;
|
|
52
52
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -37,9 +37,11 @@ export * from './node-entries/node-data-source-remote';
|
|
|
37
37
|
export * from './node-entries/node-entries-global.service';
|
|
38
38
|
export * from './node-entries/node-entries-wrapper.component';
|
|
39
39
|
export * from './node-entries/node-entries.module';
|
|
40
|
+
export * from './node-entries/option-button/option-button.component';
|
|
40
41
|
export * from './mds-viewer/mds-viewer.component';
|
|
41
42
|
export * from './mds-viewer/replace-element-with-div';
|
|
42
43
|
export * from './node-url/node-url.component';
|
|
44
|
+
export * from './info-message/info-message.component';
|
|
43
45
|
export * from './pipes/property-slug.pipe';
|
|
44
46
|
export * from './pipes/file-size.pipe';
|
|
45
47
|
export * from './pipes/format-date.pipe';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class InfoMessageComponent {
|
|
3
|
+
/**
|
|
4
|
+
* the message to display
|
|
5
|
+
*/
|
|
6
|
+
message: string;
|
|
7
|
+
mode: 'info' | 'warning' | 'error';
|
|
8
|
+
ICONS: any;
|
|
9
|
+
constructor();
|
|
10
|
+
getIcon(): any;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfoMessageComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InfoMessageComponent, "es-info-message", never, { "message": { "alias": "message"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
@@ -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.
|
|
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 |
|
|
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
|
-
|
|
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[]
|
|
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[]
|
|
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>;
|
|
@@ -38,6 +38,6 @@ import * as i36 from "@angular/material/tooltip";
|
|
|
38
38
|
import * as i37 from "@ngx-translate/core";
|
|
39
39
|
export declare class NodeEntriesModule {
|
|
40
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesModule, never>;
|
|
41
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NodeEntriesModule, [typeof i1.ColumnChooserComponent, typeof i2.DragPreviewComponent, typeof i3.ListItemLabelPipe, typeof i4.NodeEntriesCardComponent, typeof i5.NodeEntriesCardGridComponent, typeof i6.NodeEntriesCardSmallComponent, typeof i7.NodeEntriesTableComponent, typeof i8.NodeRatingComponent, typeof i9.PreviewImageComponent, typeof i10.NodeEntriesComponent, typeof i11.NodeEntriesWrapperComponent, typeof i8.NodeRatingComponent, typeof i12.NodeTypeBadgeComponent, typeof i13.OptionButtonComponent, typeof i9.PreviewImageComponent, typeof i14.SortSelectPanelComponent, typeof i15.NodesDragDirective, typeof i16.NodesDragSourceDirective, typeof i17.NodesDropTargetDirective, typeof i18.NodeEntriesGlobalOptionsComponent, typeof i19.NodeStatsBadgesComponent], [typeof i20.CommonModule, typeof i21.FormsModule, typeof i22.A11yModule, typeof i23.OverlayModule, typeof i24.DragDropModule, typeof i25.EduSharingUiCommonModule, typeof i26.ListItemsModule, typeof i27.MatCheckboxModule, typeof i28.MatButtonModule, typeof i29.MatBadgeModule, typeof i30.MatMenuModule, typeof i31.MatTableModule, typeof i27.MatCheckboxModule, typeof i32.MatPaginatorModule, typeof i33.MatRippleModule, typeof i34.MatSlideToggleModule, typeof i35.MatSortModule, typeof i36.MatTooltipModule, typeof i37.TranslateModule], [typeof i3.ListItemLabelPipe, typeof i11.NodeEntriesWrapperComponent, typeof i8.NodeRatingComponent, typeof i15.NodesDragDirective, typeof i16.NodesDragSourceDirective, typeof i17.NodesDropTargetDirective, typeof i19.NodeStatsBadgesComponent, typeof i12.NodeTypeBadgeComponent]>;
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NodeEntriesModule, [typeof i1.ColumnChooserComponent, typeof i2.DragPreviewComponent, typeof i3.ListItemLabelPipe, typeof i4.NodeEntriesCardComponent, typeof i5.NodeEntriesCardGridComponent, typeof i6.NodeEntriesCardSmallComponent, typeof i7.NodeEntriesTableComponent, typeof i8.NodeRatingComponent, typeof i9.PreviewImageComponent, typeof i10.NodeEntriesComponent, typeof i11.NodeEntriesWrapperComponent, typeof i8.NodeRatingComponent, typeof i12.NodeTypeBadgeComponent, typeof i13.OptionButtonComponent, typeof i9.PreviewImageComponent, typeof i14.SortSelectPanelComponent, typeof i15.NodesDragDirective, typeof i16.NodesDragSourceDirective, typeof i17.NodesDropTargetDirective, typeof i18.NodeEntriesGlobalOptionsComponent, typeof i19.NodeStatsBadgesComponent], [typeof i20.CommonModule, typeof i21.FormsModule, typeof i22.A11yModule, typeof i23.OverlayModule, typeof i24.DragDropModule, typeof i25.EduSharingUiCommonModule, typeof i26.ListItemsModule, typeof i27.MatCheckboxModule, typeof i28.MatButtonModule, typeof i29.MatBadgeModule, typeof i30.MatMenuModule, typeof i31.MatTableModule, typeof i27.MatCheckboxModule, typeof i32.MatPaginatorModule, typeof i33.MatRippleModule, typeof i34.MatSlideToggleModule, typeof i35.MatSortModule, typeof i36.MatTooltipModule, typeof i37.TranslateModule], [typeof i3.ListItemLabelPipe, typeof i11.NodeEntriesWrapperComponent, typeof i8.NodeRatingComponent, typeof i15.NodesDragDirective, typeof i16.NodesDragSourceDirective, typeof i17.NodesDropTargetDirective, typeof i19.NodeStatsBadgesComponent, typeof i12.NodeTypeBadgeComponent, typeof i13.OptionButtonComponent]>;
|
|
42
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<NodeEntriesModule>;
|
|
43
43
|
}
|
|
@@ -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:
|
|
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,
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeHelperService, never>;
|
|
79
79
|
static ɵprov: i0.ɵɵInjectableDeclaration<NodeHelperService>;
|
|
80
80
|
}
|
|
@@ -20,6 +20,7 @@ export declare class RenderHelperService {
|
|
|
20
20
|
getRenderData(nodeId: string, version?: string, repository?: string): Promise<CombinedRenderData>;
|
|
21
21
|
getRenderDataForLms(encodedNode: string, signature: string, jwt: string, renderUrl: string, encodedUser: string): Promise<CombinedRenderData>;
|
|
22
22
|
prepareRootUrl(): Promise<void>;
|
|
23
|
+
private base64ToUtf8;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<RenderHelperService, [null, null, null, null, null, { optional: true; }]>;
|
|
24
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<RenderHelperService>;
|
|
25
26
|
}
|
|
@@ -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.
|
|
3
|
+
"version": "10.0.28",
|
|
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": "
|
|
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
|
},
|