ngx-edu-sharing-ui 9.0.2 → 9.1.2
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/esm2022/lib/actionbar/actionbar.component.mjs +33 -18
- package/esm2022/lib/common/edu-sharing-ui-common.module.mjs +73 -62
- package/esm2022/lib/directives/check-text-overflow.directive.mjs +8 -2
- package/esm2022/lib/directives/icon.directive.mjs +38 -14
- package/esm2022/lib/directives/infinite-scroll.directive.mjs +85 -0
- package/esm2022/lib/dropdown/dropdown.component.mjs +17 -10
- package/esm2022/lib/edu-sharing-ui-configuration.mjs +8 -1
- package/esm2022/lib/edu-sharing-ui.module.mjs +5 -1
- package/esm2022/lib/list-items/list-base/list-base.component.mjs +6 -6
- package/esm2022/lib/list-items/list-counts/list-counts.component.mjs +3 -1
- package/esm2022/lib/list-items/list-text/list-text.component.mjs +17 -17
- package/esm2022/lib/mds/mds-helper.service.mjs +167 -0
- package/esm2022/lib/mds/mds.module.mjs +16 -0
- package/esm2022/lib/node-entries/drag-preview/drag-preview.component.mjs +3 -3
- package/esm2022/lib/node-entries/entries-model.mjs +2 -1
- package/esm2022/lib/node-entries/node-cache.mjs +9 -1
- package/esm2022/lib/node-entries/node-data-source.mjs +4 -2
- package/esm2022/lib/node-entries/node-entries-card/node-entries-card.component.mjs +16 -12
- package/esm2022/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.mjs +37 -22
- package/esm2022/lib/node-entries/node-entries-card-small/node-entries-card-small.component.mjs +5 -5
- package/esm2022/lib/node-entries/node-entries-global-options/node-entries-global-options.component.mjs +7 -3
- package/esm2022/lib/node-entries/node-entries-global.service.mjs +14 -1
- package/esm2022/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.mjs +3 -3
- package/esm2022/lib/node-entries/node-entries-table/node-entries-table.component.mjs +45 -34
- package/esm2022/lib/node-entries/node-entries-wrapper.component.mjs +17 -5
- package/esm2022/lib/node-entries/node-entries.component.mjs +2 -2
- package/esm2022/lib/node-entries/node-rating/node-rating.component.mjs +35 -12
- package/esm2022/lib/node-entries/option-button/option-button.component.mjs +24 -11
- package/esm2022/lib/node-entries/sort-select-panel/sort-select-panel.component.mjs +3 -3
- package/esm2022/lib/node-url/node-url.component.mjs +7 -3
- package/esm2022/lib/pipes/file-size.pipe.mjs +6 -5
- package/esm2022/lib/pipes/node-title.pipe.mjs +7 -1
- package/esm2022/lib/pipes/option-tooltip.pipe.mjs +3 -3
- package/esm2022/lib/pipes/property-slug.pipe.mjs +16 -0
- package/esm2022/lib/services/abstract/options-helper.service.mjs +1 -1
- package/esm2022/lib/services/app-container.service.mjs +66 -0
- package/esm2022/lib/services/node-entries.service.mjs +47 -3
- package/esm2022/lib/services/node-helper.service.mjs +38 -12
- package/esm2022/lib/services/options-helper-data.service.mjs +5 -5
- package/esm2022/lib/services/repo-url.service.mjs +2 -1
- package/esm2022/lib/services/ui.service.mjs +22 -1
- package/esm2022/lib/spinner/spinner.component.mjs +4 -3
- package/esm2022/lib/translations/translation-loader.mjs +48 -14
- package/esm2022/lib/translations/translations.module.mjs +15 -4
- package/esm2022/lib/translations/translations.service.mjs +25 -7
- package/esm2022/lib/types/injection-tokens.mjs +9 -0
- package/esm2022/lib/types/option-item.mjs +9 -3
- package/esm2022/module.mjs +51 -43
- package/fesm2022/ngx-edu-sharing-ui.mjs +4595 -3931
- package/fesm2022/ngx-edu-sharing-ui.mjs.map +1 -1
- package/lib/actionbar/actionbar.component.d.ts +13 -3
- package/lib/common/edu-sharing-ui-common.module.d.ts +27 -25
- package/lib/directives/icon.directive.d.ts +6 -4
- package/lib/directives/infinite-scroll.directive.d.ts +22 -0
- package/lib/dropdown/dropdown.component.d.ts +6 -3
- package/lib/edu-sharing-ui-configuration.d.ts +5 -0
- package/lib/edu-sharing-ui.module.d.ts +7 -6
- package/lib/list-items/list-widget.d.ts +1 -1
- package/lib/mds/mds-helper.service.d.ts +37 -0
- package/lib/mds/mds.module.d.ts +6 -0
- package/lib/node-entries/entries-model.d.ts +3 -2
- package/lib/node-entries/node-data-source.d.ts +1 -1
- package/lib/node-entries/node-entries-card/node-entries-card.component.d.ts +2 -2
- package/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.d.ts +6 -1
- package/lib/node-entries/node-entries-global-options/node-entries-global-options.component.d.ts +1 -0
- package/lib/node-entries/node-entries-global.service.d.ts +7 -0
- package/lib/node-entries/node-entries-table/node-entries-table.component.d.ts +4 -1
- package/lib/node-entries/node-entries-wrapper.component.d.ts +8 -3
- package/lib/node-entries/node-rating/node-rating.component.d.ts +3 -3
- package/lib/node-entries/option-button/option-button.component.d.ts +8 -3
- package/lib/pipes/node-title.pipe.d.ts +2 -1
- package/lib/pipes/option-tooltip.pipe.d.ts +1 -1
- package/lib/pipes/property-slug.pipe.d.ts +7 -0
- package/lib/services/abstract/options-helper.service.d.ts +4 -4
- package/lib/services/app-container.service.d.ts +43 -0
- package/lib/services/node-entries.service.d.ts +31 -6
- package/lib/services/node-helper.service.d.ts +7 -5
- package/lib/services/options-helper-data.service.d.ts +6 -6
- package/lib/services/ui.service.d.ts +15 -2
- package/lib/spinner/spinner.component.d.ts +1 -1
- package/lib/translations/translation-loader.d.ts +2 -1
- package/lib/translations/translations.service.d.ts +5 -2
- package/lib/types/injection-tokens.d.ts +8 -0
- package/lib/types/option-item.d.ts +10 -6
- package/module.d.ts +50 -42
- package/package.json +1 -1
- package/esm2022/lib/translations/languages.mjs +0 -5
- package/lib/translations/languages.d.ts +0 -4
|
@@ -2,6 +2,8 @@ import { OnChanges, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { OptionItem } from '../types/option-item';
|
|
4
4
|
import { UIService } from '../services/ui.service';
|
|
5
|
+
import { TooltipPosition } from '@angular/material/tooltip';
|
|
6
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class ActionbarComponent implements OnChanges {
|
|
7
9
|
private uiService;
|
|
@@ -47,13 +49,21 @@ export declare class ActionbarComponent implements OnChanges {
|
|
|
47
49
|
* Should disabled ("greyed out") options be shown or hidden?
|
|
48
50
|
*/
|
|
49
51
|
showDisabled: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* the position of the mat tooltips
|
|
54
|
+
*/
|
|
55
|
+
tooltipPosition: TooltipPosition;
|
|
50
56
|
/**
|
|
51
57
|
* Set the options, see @OptionItem
|
|
52
58
|
*/
|
|
53
59
|
set options(options: OptionItem[]);
|
|
60
|
+
/**
|
|
61
|
+
* breakpoint width at which point the mobile display count is used
|
|
62
|
+
*/
|
|
63
|
+
mobileBreakpoint: number;
|
|
54
64
|
optionsIn: OptionItem[];
|
|
55
|
-
optionsAlways
|
|
56
|
-
optionsMenu
|
|
65
|
+
optionsAlways$: BehaviorSubject<OptionItem[]>;
|
|
66
|
+
optionsMenu$: BehaviorSubject<OptionItem[]>;
|
|
57
67
|
optionsToggle: OptionItem[];
|
|
58
68
|
constructor(uiService: UIService, translate: TranslateService);
|
|
59
69
|
private prepareOptions;
|
|
@@ -70,5 +80,5 @@ export declare class ActionbarComponent implements OnChanges {
|
|
|
70
80
|
shouldHighlight(optionIndex: number, option: OptionItem): boolean;
|
|
71
81
|
ngOnChanges(changes: SimpleChanges): void;
|
|
72
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionbarComponent, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionbarComponent, "es-actionbar", never, { "numberOfAlwaysVisibleOptions": { "alias": "numberOfAlwaysVisibleOptions"; "required": false; }; "numberOfAlwaysVisibleOptionsMobile": { "alias": "numberOfAlwaysVisibleOptionsMobile"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "backgroundType": { "alias": "backgroundType"; "required": false; }; "style": { "alias": "style"; "required": false; }; "highlight": { "alias": "highlight"; "required": false; }; "showDisabled": { "alias": "showDisabled"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, false, never>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionbarComponent, "es-actionbar", never, { "numberOfAlwaysVisibleOptions": { "alias": "numberOfAlwaysVisibleOptions"; "required": false; }; "numberOfAlwaysVisibleOptionsMobile": { "alias": "numberOfAlwaysVisibleOptionsMobile"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "backgroundType": { "alias": "backgroundType"; "required": false; }; "style": { "alias": "style"; "required": false; }; "highlight": { "alias": "highlight"; "required": false; }; "showDisabled": { "alias": "showDisabled"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "options": { "alias": "options"; "required": false; }; "mobileBreakpoint": { "alias": "mobileBreakpoint"; "required": false; }; }, {}, never, never, false, never>;
|
|
74
84
|
}
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "../
|
|
3
|
-
import * as i2 from "../directives/
|
|
4
|
-
import * as i3 from "../
|
|
5
|
-
import * as i4 from "../
|
|
6
|
-
import * as i5 from "../
|
|
7
|
-
import * as i6 from "../
|
|
2
|
+
import * as i1 from "../actionbar/actionbar.component";
|
|
3
|
+
import * as i2 from "../directives/border-box-observer.directive";
|
|
4
|
+
import * as i3 from "../directives/check-text-overflow.directive";
|
|
5
|
+
import * as i4 from "../dropdown/dropdown.component";
|
|
6
|
+
import * as i5 from "../directives/focus-state.directive";
|
|
7
|
+
import * as i6 from "../pipes/format-date.pipe";
|
|
8
8
|
import * as i7 from "../pipes/file-size.pipe";
|
|
9
|
-
import * as i8 from "../
|
|
10
|
-
import * as i9 from "../
|
|
11
|
-
import * as i10 from "../pipes/
|
|
12
|
-
import * as i11 from "../pipes/
|
|
13
|
-
import * as i12 from "../pipes/
|
|
14
|
-
import * as i13 from "../
|
|
15
|
-
import * as i14 from "../
|
|
16
|
-
import * as i15 from "../
|
|
17
|
-
import * as i16 from "../
|
|
9
|
+
import * as i8 from "../directives/icon.directive";
|
|
10
|
+
import * as i9 from "../directives/infinite-scroll.directive";
|
|
11
|
+
import * as i10 from "../pipes/property-slug.pipe";
|
|
12
|
+
import * as i11 from "../pipes/node-icon.pipe";
|
|
13
|
+
import * as i12 from "../pipes/node-image.pipe";
|
|
14
|
+
import * as i13 from "../pipes/node-image-size.pipe";
|
|
15
|
+
import * as i14 from "../pipes/node-person-name.pipe";
|
|
16
|
+
import * as i15 from "../pipes/node-title.pipe";
|
|
17
|
+
import * as i16 from "../node-url/node-url.component";
|
|
18
18
|
import * as i17 from "../pipes/option-tooltip.pipe";
|
|
19
|
-
import * as i18 from "../
|
|
20
|
-
import * as i19 from "../
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "@angular/
|
|
23
|
-
import * as i22 from "@angular/material/
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "@angular/material/
|
|
26
|
-
import * as i25 from "@
|
|
27
|
-
import * as i26 from "@angular/
|
|
19
|
+
import * as i18 from "../pipes/replace-chars.pipe";
|
|
20
|
+
import * as i19 from "../sort-dropdown/sort-dropdown.component";
|
|
21
|
+
import * as i20 from "../pipes/vcard-name.pipe";
|
|
22
|
+
import * as i21 from "@angular/common";
|
|
23
|
+
import * as i22 from "@angular/material/menu";
|
|
24
|
+
import * as i23 from "../spinner/spinner.component";
|
|
25
|
+
import * as i24 from "@angular/material/button";
|
|
26
|
+
import * as i25 from "@angular/material/tooltip";
|
|
27
|
+
import * as i26 from "@angular/material/core";
|
|
28
|
+
import * as i27 from "@ngx-translate/core";
|
|
29
|
+
import * as i28 from "@angular/router";
|
|
28
30
|
export declare class EduSharingUiCommonModule {
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<EduSharingUiCommonModule, never>;
|
|
30
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EduSharingUiCommonModule, [typeof i1.
|
|
32
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EduSharingUiCommonModule, [typeof i1.ActionbarComponent, typeof i2.BorderBoxObserverDirective, typeof i3.CheckTextOverflowDirective, typeof i4.DropdownComponent, typeof i5.FocusStateDirective, typeof i6.FormatDatePipe, typeof i7.FormatSizePipe, typeof i8.IconDirective, typeof i9.InfiniteScrollDirective, typeof i10.PropertySlugPipe, typeof i11.NodeIconPipe, typeof i12.NodeImagePipe, typeof i13.NodeImageSizePipe, typeof i14.NodePersonNamePipe, typeof i15.NodeTitlePipe, typeof i16.NodeUrlComponent, typeof i17.OptionTooltipPipe, typeof i18.ReplaceCharsPipe, typeof i19.SortDropdownComponent, typeof i20.VCardNamePipe], [typeof i21.CommonModule, typeof i22.MatMenuModule, typeof i23.SpinnerComponent, typeof i24.MatButtonModule, typeof i25.MatTooltipModule, typeof i26.MatRippleModule, typeof i27.TranslateModule, typeof i28.RouterModule], [typeof i1.ActionbarComponent, typeof i2.BorderBoxObserverDirective, typeof i3.CheckTextOverflowDirective, typeof i4.DropdownComponent, typeof i5.FocusStateDirective, typeof i6.FormatDatePipe, typeof i7.FormatSizePipe, typeof i8.IconDirective, typeof i9.InfiniteScrollDirective, typeof i10.PropertySlugPipe, typeof i11.NodeIconPipe, typeof i12.NodeImagePipe, typeof i13.NodeImageSizePipe, typeof i14.NodePersonNamePipe, typeof i15.NodeTitlePipe, typeof i16.NodeUrlComponent, typeof i19.SortDropdownComponent, typeof i23.SpinnerComponent, typeof i20.VCardNamePipe]>;
|
|
31
33
|
static ɵinj: i0.ɵɵInjectorDeclaration<EduSharingUiCommonModule>;
|
|
32
34
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, OnInit,
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { ConfigService } from 'ngx-edu-sharing-api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -17,12 +17,14 @@ import * as i0 from "@angular/core";
|
|
|
17
17
|
export declare class IconDirective implements OnInit, OnDestroy {
|
|
18
18
|
private element;
|
|
19
19
|
private translate;
|
|
20
|
+
private renderer;
|
|
20
21
|
private config;
|
|
22
|
+
private originalId$;
|
|
21
23
|
private _id;
|
|
22
24
|
private _aria;
|
|
23
|
-
private iconsConfig;
|
|
24
25
|
private altTextSpan;
|
|
25
26
|
private isReady;
|
|
27
|
+
private svg;
|
|
26
28
|
/**
|
|
27
29
|
* An alt text to show to screen readers.
|
|
28
30
|
*
|
|
@@ -34,13 +36,13 @@ export declare class IconDirective implements OnInit, OnDestroy {
|
|
|
34
36
|
/** If true, an alt text (see above) will be set based on the icon. */
|
|
35
37
|
set aria(aria: boolean);
|
|
36
38
|
set esIcon(id: string);
|
|
37
|
-
constructor(element: ElementRef<HTMLElement>, translate: TranslateService, config: ConfigService);
|
|
39
|
+
constructor(element: ElementRef<HTMLElement>, translate: TranslateService, renderer: Renderer2, config: ConfigService);
|
|
38
40
|
ngOnInit(): Promise<void>;
|
|
39
41
|
ngOnDestroy(): void;
|
|
40
42
|
private setIcon;
|
|
41
43
|
private updateAria;
|
|
42
44
|
private setAltText;
|
|
43
45
|
private insertAltTextSpan;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconDirective, [null, null, { optional: true; }]>;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconDirective, [null, null, null, { optional: true; }]>;
|
|
45
47
|
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; }; }, {}, never, never, false, never>;
|
|
46
48
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AppContainerService } from '../services/app-container.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class InfiniteScrollDirective implements OnInit, OnDestroy {
|
|
5
|
+
private appContainer;
|
|
6
|
+
private element;
|
|
7
|
+
private zone;
|
|
8
|
+
scrolled: EventEmitter<void>;
|
|
9
|
+
infiniteScrollDistance: number;
|
|
10
|
+
infiniteScrollThrottle: number;
|
|
11
|
+
scrollWindow: boolean;
|
|
12
|
+
private lastEvent;
|
|
13
|
+
private lastScroll;
|
|
14
|
+
private destroyed$;
|
|
15
|
+
constructor(appContainer: AppContainerService, element: ElementRef, zone: NgZone);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
handleOnScroll(): void;
|
|
19
|
+
private emitScrolled;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfiniteScrollDirective, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InfiniteScrollDirective, "[esInfiniteScroll], [infinite-scroll], [data-infinite-scroll]", never, { "infiniteScrollDistance": { "alias": "infiniteScrollDistance"; "required": false; }; "infiniteScrollThrottle": { "alias": "infiniteScrollThrottle"; "required": false; }; "scrollWindow": { "alias": "scrollWindow"; "required": false; }; }, { "scrolled": "scrolled"; }, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
1
2
|
import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
|
|
2
3
|
import { OptionItem } from '../types/option-item';
|
|
3
4
|
import { UIService } from '../services/ui.service';
|
|
5
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
/**
|
|
6
8
|
* The dropdown is one base component of the action bar (showing more actions),
|
|
7
9
|
* but can also be used standalone.
|
|
8
10
|
*/
|
|
9
|
-
export declare class DropdownComponent {
|
|
11
|
+
export declare class DropdownComponent implements OnChanges {
|
|
10
12
|
private ui;
|
|
11
13
|
menu: MatMenu;
|
|
12
14
|
menuTrigger: MatMenuTrigger;
|
|
13
15
|
position: 'left' | 'right';
|
|
14
|
-
|
|
16
|
+
options: OptionItem[];
|
|
17
|
+
options$: BehaviorSubject<OptionItem[]>;
|
|
15
18
|
/**
|
|
16
19
|
* The object that should be returned via the option's callback.
|
|
17
20
|
*
|
|
@@ -29,8 +32,8 @@ export declare class DropdownComponent {
|
|
|
29
32
|
* taken out of the host container by angular.
|
|
30
33
|
*/
|
|
31
34
|
menuClass: string;
|
|
32
|
-
_options: OptionItem[];
|
|
33
35
|
constructor(ui: UIService);
|
|
36
|
+
ngOnChanges(changes?: SimpleChanges): void;
|
|
34
37
|
click(option: OptionItem): void;
|
|
35
38
|
isNewGroup(i: number): boolean;
|
|
36
39
|
/** Whether there are any enabled options so we can open the menu. */
|
|
@@ -3,6 +3,11 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare const EDU_SHARING_UI_CONFIG: InjectionToken<Partial<EduSharingUiConfiguration>>;
|
|
4
4
|
export declare class EduSharingUiConfiguration {
|
|
5
5
|
production: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Whether this Angular application is being used embedded as a web component by a third-party
|
|
8
|
+
* web page.
|
|
9
|
+
*/
|
|
10
|
+
isEmbedded: boolean;
|
|
6
11
|
static create(params?: EduSharingUiConfigurationParams): EduSharingUiConfiguration;
|
|
7
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<EduSharingUiConfiguration, never>;
|
|
8
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<EduSharingUiConfiguration>;
|
|
@@ -6,14 +6,15 @@ import * as i2 from "@ngx-translate/core";
|
|
|
6
6
|
import * as i3 from "./common/edu-sharing-ui-common.module";
|
|
7
7
|
import * as i4 from "./list-items/list-items.module";
|
|
8
8
|
import * as i5 from "./node-entries/node-entries.module";
|
|
9
|
-
import * as i6 from "
|
|
10
|
-
import * as i7 from "
|
|
11
|
-
import * as i8 from "./pipes/
|
|
12
|
-
import * as i9 from "./
|
|
13
|
-
import * as i10 from "./
|
|
9
|
+
import * as i6 from "./mds/mds.module";
|
|
10
|
+
import * as i7 from "@angular/material/tooltip";
|
|
11
|
+
import * as i8 from "./pipes/node-image-size.pipe";
|
|
12
|
+
import * as i9 from "./pipes/format-date.pipe";
|
|
13
|
+
import * as i10 from "./node-entries/list-item-label.pipe";
|
|
14
|
+
import * as i11 from "./sort-dropdown/sort-dropdown.component";
|
|
14
15
|
export declare class EduSharingUiModule {
|
|
15
16
|
static forRoot(config: EduSharingUiConfigurationParams): ModuleWithProviders<EduSharingUiModule>;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<EduSharingUiModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EduSharingUiModule, never, [typeof i1.CommonModule, typeof i2.TranslateModule, typeof i3.EduSharingUiCommonModule, typeof i4.ListItemsModule, typeof i5.NodeEntriesModule], [typeof i1.CommonModule, typeof i6.MatTooltipModule, typeof i2.TranslateModule, typeof i3.EduSharingUiCommonModule, typeof i4.ListItemsModule, typeof i5.NodeEntriesModule, typeof
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EduSharingUiModule, never, [typeof i1.CommonModule, typeof i2.TranslateModule, typeof i3.EduSharingUiCommonModule, typeof i4.ListItemsModule, typeof i5.NodeEntriesModule], [typeof i1.CommonModule, typeof i6.MdsModule, typeof i7.MatTooltipModule, typeof i2.TranslateModule, typeof i3.EduSharingUiCommonModule, typeof i4.ListItemsModule, typeof i5.NodeEntriesModule, typeof i8.NodeImageSizePipe, typeof i9.FormatDatePipe, typeof i4.ListItemsModule, typeof i10.ListItemLabelPipe, typeof i11.SortDropdownComponent]>;
|
|
18
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<EduSharingUiModule>;
|
|
19
20
|
}
|
|
@@ -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 | Group | ProposalNode | Person | Statistics>;
|
|
11
11
|
get item(): ListItem;
|
|
12
12
|
set item(value: ListItem);
|
|
13
13
|
protected readonly itemSubject: BehaviorSubject<ListItem>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { AuthenticationService, MdsDefinition, MdsSort, MdsWidget } from 'ngx-edu-sharing-api';
|
|
3
|
+
import { ListItem } from '../types/list-item';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MdsHelperService {
|
|
6
|
+
private authentication;
|
|
7
|
+
static getSortInfo(mdsSet: MdsDefinition, name: string): MdsSort;
|
|
8
|
+
static getColumns(translate: TranslateService, mdsSet: any, name: string): ListItem[];
|
|
9
|
+
/**
|
|
10
|
+
* Finds the appropriate widget with the id, but will not check any widget conditions
|
|
11
|
+
* @param cid
|
|
12
|
+
* @param template
|
|
13
|
+
* @param widgets
|
|
14
|
+
*/
|
|
15
|
+
static getWidget(cid: string, template: string | undefined | null, widgets: MdsWidget[]): MdsWidget;
|
|
16
|
+
constructor(authentication: AuthenticationService);
|
|
17
|
+
/**
|
|
18
|
+
* Same as getWidget, but will also check the widget conditions
|
|
19
|
+
* @param connector
|
|
20
|
+
* @param properties
|
|
21
|
+
* @param id
|
|
22
|
+
* @param template
|
|
23
|
+
* @param widgets
|
|
24
|
+
*/
|
|
25
|
+
getWidgetWithCondition(properties: any, id: string, template: string, widgets: any): Promise<any>;
|
|
26
|
+
isWidgetConditionTrue(widget: any, properties: any): Promise<boolean>;
|
|
27
|
+
/**
|
|
28
|
+
* Find a template by id in the given mds
|
|
29
|
+
*/
|
|
30
|
+
static findTemplate(mds: MdsDefinition, id: string): import("ngx-edu-sharing-api").MdsView;
|
|
31
|
+
/**
|
|
32
|
+
* Returns all widgets used by the given template
|
|
33
|
+
*/
|
|
34
|
+
static getUsedWidgets(mds: MdsDefinition, template?: string): any[];
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MdsHelperService, never>;
|
|
36
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MdsHelperService>;
|
|
37
|
+
}
|
|
@@ -5,7 +5,7 @@ import { ListItem, ListItemSort } from '../types/list-item';
|
|
|
5
5
|
import { CanDrop, DragData, DropAction } from '../types/drag-drop';
|
|
6
6
|
import { Node, GenericAuthority } from 'ngx-edu-sharing-api';
|
|
7
7
|
import { ActionbarComponent } from '../actionbar/actionbar.component';
|
|
8
|
-
export type NodeRoot = 'MY_FILES' | 'SHARED_FILES' | 'MY_SHARED_FILES' | 'TO_ME_SHARED_FILES' | 'WORKFLOW_RECEIVE' | 'RECYCLE' | 'ALL_FILES';
|
|
8
|
+
export type NodeRoot = 'MY_FILES' | 'COLLECTION_HOME' | 'SHARED_FILES' | 'MY_SHARED_FILES' | 'TO_ME_SHARED_FILES' | 'WORKFLOW_RECEIVE' | 'RECYCLE' | 'ALL_FILES';
|
|
9
9
|
export declare enum NodeEntriesDisplayType {
|
|
10
10
|
Table = 0,
|
|
11
11
|
Grid = 1,
|
|
@@ -44,7 +44,8 @@ export declare enum ClickSource {
|
|
|
44
44
|
Icon = 1,
|
|
45
45
|
Metadata = 2,
|
|
46
46
|
Comments = 3,
|
|
47
|
-
Overlay = 4
|
|
47
|
+
Overlay = 4,
|
|
48
|
+
Dropdown = 5
|
|
48
49
|
}
|
|
49
50
|
export type NodeClickEvent<T extends NodeEntriesDataType> = {
|
|
50
51
|
element: T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataSource } from '@angular/cdk/collections';
|
|
2
2
|
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
3
3
|
import { ItemsCap } from './items-cap';
|
|
4
|
-
import {
|
|
4
|
+
import { GenericAuthority, Node, Pagination } from 'ngx-edu-sharing-api';
|
|
5
5
|
export type LoadingState = 'initial' | 'reset' | 'page' | false;
|
|
6
6
|
export declare class NodeDataSource<T extends Node | GenericAuthority> extends DataSource<T> {
|
|
7
7
|
protected dataStream: BehaviorSubject<T[]>;
|
|
@@ -18,7 +18,7 @@ export declare class NodeEntriesCardComponent<T extends Node> implements OnChang
|
|
|
18
18
|
configService: ConfigService;
|
|
19
19
|
authenticationService: AuthenticationService;
|
|
20
20
|
templatesService: NodeEntriesTemplatesService;
|
|
21
|
-
|
|
21
|
+
nodeEntriesGlobalService: NodeEntriesGlobalService;
|
|
22
22
|
private toast;
|
|
23
23
|
readonly InteractionType: typeof InteractionType;
|
|
24
24
|
readonly Target: typeof Target;
|
|
@@ -35,7 +35,7 @@ export declare class NodeEntriesCardComponent<T extends Node> implements OnChang
|
|
|
35
35
|
ngOnChanges(changes: SimpleChanges): void;
|
|
36
36
|
getTextColor(): "#000" | "#fff";
|
|
37
37
|
optionsOnCard(): import("../../types/option-item").OptionItem[];
|
|
38
|
-
openContextmenu(event: MouseEvent | Event): void;
|
|
38
|
+
openContextmenu(event: MouseEvent | Event, node: T): void;
|
|
39
39
|
getVisibleColumns(): import("ngx-edu-sharing-ui").ListItem[];
|
|
40
40
|
openMenu(node: T): Promise<void>;
|
|
41
41
|
ngOnInit(): Promise<void>;
|
|
@@ -13,6 +13,7 @@ import { NodeEntriesService } from '../../services/node-entries.service';
|
|
|
13
13
|
import { UIService } from '../../services/ui.service';
|
|
14
14
|
import { ListItemSort } from '../../types/list-item';
|
|
15
15
|
import { DragData } from '../../types/drag-drop';
|
|
16
|
+
import { CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
16
17
|
import * as i0 from "@angular/core";
|
|
17
18
|
export declare class NodeEntriesCardGridComponent<T extends Node> implements OnInit, OnDestroy {
|
|
18
19
|
entriesService: NodeEntriesService<T>;
|
|
@@ -27,6 +28,8 @@ export declare class NodeEntriesCardGridComponent<T extends Node> implements OnI
|
|
|
27
28
|
* a value of 1 would mean to scroll the full width of the entire content
|
|
28
29
|
*/
|
|
29
30
|
readonly ScrollingOffsetPercentage = 0.4;
|
|
31
|
+
columnChooserVisible$: rxjs.BehaviorSubject<boolean>;
|
|
32
|
+
columnChooserTrigger: CdkOverlayOrigin;
|
|
30
33
|
set gridTop(value: TemplateRef<unknown>);
|
|
31
34
|
set sortPanel(value: SortSelectPanelComponent);
|
|
32
35
|
dropListsQuery: QueryList<CdkDropList>;
|
|
@@ -57,6 +60,7 @@ export declare class NodeEntriesCardGridComponent<T extends Node> implements OnI
|
|
|
57
60
|
readonly itemsCap: ItemsCap<T>;
|
|
58
61
|
private globalCursorStyle;
|
|
59
62
|
private destroyed;
|
|
63
|
+
scrollGradientColor: string;
|
|
60
64
|
constructor(entriesService: NodeEntriesService<T>, entriesGlobalService: NodeEntriesGlobalService, templatesService: NodeEntriesTemplatesService, ui: UIService, ngZone: NgZone);
|
|
61
65
|
ngOnInit(): void;
|
|
62
66
|
ngOnDestroy(): void;
|
|
@@ -79,7 +83,7 @@ export declare class NodeEntriesCardGridComponent<T extends Node> implements OnI
|
|
|
79
83
|
getSortColumns(): ListItemSort[];
|
|
80
84
|
canDropNodes: (dragData: DragData<T>) => import("../../types/drag-drop").CanDrop;
|
|
81
85
|
onNodesDropped(dragData: DragData<Node>): void;
|
|
82
|
-
getDragEnabled(): boolean
|
|
86
|
+
getDragEnabled(): rxjs.Observable<boolean>;
|
|
83
87
|
getDragData(node: T): T[];
|
|
84
88
|
onDragStarted(node: T): void;
|
|
85
89
|
onDragEnded(): void;
|
|
@@ -87,6 +91,7 @@ export declare class NodeEntriesCardGridComponent<T extends Node> implements OnI
|
|
|
87
91
|
updateScrollState(): void;
|
|
88
92
|
doScroll(direction: 'left' | 'right'): void;
|
|
89
93
|
isCustomTemplate(): boolean;
|
|
94
|
+
isBlocked(node: Node): boolean;
|
|
90
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesCardGridComponent<any>, never>;
|
|
91
96
|
static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesCardGridComponent<any>, "es-node-entries-card-grid", never, { "displayType": { "alias": "displayType"; "required": false; }; }, {}, never, never, false, never>;
|
|
92
97
|
}
|
package/lib/node-entries/node-entries-global-options/node-entries-global-options.component.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare class NodeEntriesGlobalOptionsComponent<T extends Node> {
|
|
|
7
7
|
readonly NodeEntriesDisplayType: typeof NodeEntriesDisplayType;
|
|
8
8
|
displayType: NodeEntriesDisplayType;
|
|
9
9
|
constructor(entriesService: NodeEntriesService<T>);
|
|
10
|
+
getEnabledOptions(): import("rxjs").Observable<import("ngx-edu-sharing-ui").OptionItem[]>;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesGlobalOptionsComponent<any>, never>;
|
|
11
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesGlobalOptionsComponent<any>, "es-node-entries-global-options", never, { "displayType": { "alias": "displayType"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
13
|
}
|
|
@@ -32,11 +32,18 @@ export declare class NodeEntriesGlobalService {
|
|
|
32
32
|
private customFields;
|
|
33
33
|
private paginationStrategy;
|
|
34
34
|
private paginatorSizeOptions;
|
|
35
|
+
private customCssClassProvider;
|
|
35
36
|
constructor();
|
|
36
37
|
setPaginationStrategy(scope: PaginationScope, strategy: PaginationStrategy): void;
|
|
37
38
|
getPaginationStrategy(scope: Scope): PaginationStrategy;
|
|
38
39
|
setPaginatorSizeOptions(scope: PaginationScope, size: number[]): void;
|
|
39
40
|
getPaginatorSizeOptions(scope: Scope): number[];
|
|
41
|
+
getCustomCssClass(node: Node): string;
|
|
42
|
+
/**
|
|
43
|
+
* a custom provider for a css class based on a node
|
|
44
|
+
* it should return the given css class that will be added to each node entry based on the given node
|
|
45
|
+
*/
|
|
46
|
+
setCustomCssClassProvider(provider: (node: Node) => string): void;
|
|
40
47
|
getCustomFieldTemplate(item: CustomField, node: Node): TemplateRef<unknown>;
|
|
41
48
|
/**
|
|
42
49
|
* Registers a custom (node) attribute you want to render via the given template.
|
|
@@ -15,12 +15,14 @@ import { Node } from 'ngx-edu-sharing-api';
|
|
|
15
15
|
import { Target } from '../../types/option-item';
|
|
16
16
|
import { Toast } from '../../services/abstract/toast.service';
|
|
17
17
|
import { DropdownComponent } from '../../dropdown/dropdown.component';
|
|
18
|
+
import { TranslationsService } from '../../translations/translations.service';
|
|
18
19
|
import * as i0 from "@angular/core";
|
|
19
20
|
export declare class NodeEntriesTableComponent<T extends NodeEntriesDataType> implements OnChanges, AfterViewInit, OnDestroy {
|
|
20
21
|
entriesService: NodeEntriesService<T>;
|
|
21
22
|
entriesGlobalService: NodeEntriesGlobalService;
|
|
22
23
|
private applicationRef;
|
|
23
24
|
private toast;
|
|
25
|
+
private translations;
|
|
24
26
|
private changeDetectorRef;
|
|
25
27
|
ui: UIService;
|
|
26
28
|
private ngZone;
|
|
@@ -48,7 +50,7 @@ export declare class NodeEntriesTableComponent<T extends NodeEntriesDataType> im
|
|
|
48
50
|
readonly visibleDataColumns$: rxjs.Observable<ListItem[]>;
|
|
49
51
|
readonly visibleColumnNames$: rxjs.Observable<string[]>;
|
|
50
52
|
private destroyed;
|
|
51
|
-
constructor(entriesService: NodeEntriesService<T>, entriesGlobalService: NodeEntriesGlobalService, applicationRef: ApplicationRef, toast: Toast, changeDetectorRef: ChangeDetectorRef, ui: UIService, ngZone: NgZone, elementRef: ElementRef<HTMLElement>);
|
|
53
|
+
constructor(entriesService: NodeEntriesService<T>, entriesGlobalService: NodeEntriesGlobalService, applicationRef: ApplicationRef, toast: Toast, translations: TranslationsService, changeDetectorRef: ChangeDetectorRef, ui: UIService, ngZone: NgZone, elementRef: ElementRef<HTMLElement>);
|
|
52
54
|
ngAfterViewInit(): void;
|
|
53
55
|
ngOnChanges(changes: SimpleChanges): void;
|
|
54
56
|
ngOnDestroy(): void;
|
|
@@ -71,6 +73,7 @@ export declare class NodeEntriesTableComponent<T extends NodeEntriesDataType> im
|
|
|
71
73
|
onDragEnded(): void;
|
|
72
74
|
loadData(source: 'scroll' | 'button'): void;
|
|
73
75
|
openMenu(node: T): Promise<void>;
|
|
76
|
+
isBlocked(node: Node): boolean;
|
|
74
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesTableComponent<any>, never>;
|
|
75
78
|
static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesTableComponent<any>, "es-node-entries-table", never, {}, {}, never, never, false, never>;
|
|
76
79
|
}
|
|
@@ -3,7 +3,7 @@ import { NodeEntriesTemplatesService } from './node-entries-templates.service';
|
|
|
3
3
|
import { NodeEntriesComponent } from './node-entries.component';
|
|
4
4
|
import { FetchEvent, GridConfig, InteractionType, ListDragGropConfig, ListEventInterface, ListOptions, ListOptionsConfig, ListSortConfig, NodeClickEvent, NodeEntriesDataType, NodeEntriesDisplayType } from './entries-model';
|
|
5
5
|
import { NodeDataSource } from './node-data-source';
|
|
6
|
-
import { NodeEntriesService } from '../services/node-entries.service';
|
|
6
|
+
import { CustomSelectionModel, NodeEntriesService } from '../services/node-entries.service';
|
|
7
7
|
import { OptionItem, Scope } from '../types/option-item';
|
|
8
8
|
import { NodeHelperService } from '../services/node-helper.service';
|
|
9
9
|
import { ListItem } from '../types/list-item';
|
|
@@ -53,6 +53,11 @@ export declare class NodeEntriesWrapperComponent<T extends NodeEntriesDataType>
|
|
|
53
53
|
sort: ListSortConfig;
|
|
54
54
|
dragDrop: ListDragGropConfig<T>;
|
|
55
55
|
gridConfig: GridConfig;
|
|
56
|
+
/**
|
|
57
|
+
* This color defines the base color of gradients visually limiting a grid in scroll direction.
|
|
58
|
+
* Defaults to white.
|
|
59
|
+
*/
|
|
60
|
+
scrollGradientColor: string;
|
|
56
61
|
/**
|
|
57
62
|
* this can be set instead of calling initOptionsGenerator()
|
|
58
63
|
*/
|
|
@@ -114,7 +119,7 @@ export declare class NodeEntriesWrapperComponent<T extends NodeEntriesDataType>
|
|
|
114
119
|
showReorderColumnsDialog(): void;
|
|
115
120
|
addVirtualNodes(virtual: T[]): void;
|
|
116
121
|
setOptions(options: ListOptions): void;
|
|
117
|
-
getSelection():
|
|
122
|
+
getSelection(): CustomSelectionModel<T>;
|
|
118
123
|
initOptionsGenerator(config: ListOptionsConfig): Promise<void>;
|
|
119
124
|
ngAfterViewInit(): void;
|
|
120
125
|
private updateTemplates;
|
|
@@ -125,5 +130,5 @@ export declare class NodeEntriesWrapperComponent<T extends NodeEntriesDataType>
|
|
|
125
130
|
resetPagination(): void;
|
|
126
131
|
deleteNodes(objects: T[]): void;
|
|
127
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesWrapperComponent<any>, never>;
|
|
128
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesWrapperComponent<any>, "es-node-entries-wrapper", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "scope": { "alias": "scope"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "configureColumns": { "alias": "configureColumns"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "globalOptions": { "alias": "globalOptions"; "required": false; }; "displayType": { "alias": "displayType"; "required": false; }; "elementInteractionType": { "alias": "elementInteractionType"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "dragDrop": { "alias": "dragDrop"; "required": false; }; "gridConfig": { "alias": "gridConfig"; "required": false; }; "initConfig": { "alias": "initConfig"; "required": false; }; "primaryInstance": { "alias": "primaryInstance"; "required": false; }; "singleClickHint": { "alias": "singleClickHint"; "required": false; }; "disableInfiniteScroll": { "alias": "disableInfiniteScroll"; "required": false; }; }, { "columnsChange": "columnsChange"; "displayTypeChange": "displayTypeChange"; "fetchData": "fetchData"; "clickItem": "clickItem"; "dblClickItem": "dblClickItem"; "sortChange": "sortChange"; "virtualNodesAdded": "virtualNodesAdded"; "displayTypeChanged": "displayTypeChanged"; }, ["titleRef", "emptyRef", "actionAreaRef", "overlayRef"], never, false, never>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesWrapperComponent<any>, "es-node-entries-wrapper", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "scope": { "alias": "scope"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "configureColumns": { "alias": "configureColumns"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "globalOptions": { "alias": "globalOptions"; "required": false; }; "displayType": { "alias": "displayType"; "required": false; }; "elementInteractionType": { "alias": "elementInteractionType"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "dragDrop": { "alias": "dragDrop"; "required": false; }; "gridConfig": { "alias": "gridConfig"; "required": false; }; "scrollGradientColor": { "alias": "scrollGradientColor"; "required": false; }; "initConfig": { "alias": "initConfig"; "required": false; }; "primaryInstance": { "alias": "primaryInstance"; "required": false; }; "singleClickHint": { "alias": "singleClickHint"; "required": false; }; "disableInfiniteScroll": { "alias": "disableInfiniteScroll"; "required": false; }; }, { "columnsChange": "columnsChange"; "displayTypeChange": "displayTypeChange"; "fetchData": "fetchData"; "clickItem": "clickItem"; "dblClickItem": "dblClickItem"; "sortChange": "sortChange"; "virtualNodesAdded": "virtualNodesAdded"; "displayTypeChanged": "displayTypeChanged"; }, ["titleRef", "emptyRef", "actionAreaRef", "overlayRef"], never, false, never>;
|
|
129
134
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { Node, ConfigService, AuthenticationService, NetworkService } from 'ngx-edu-sharing-api';
|
|
2
|
+
import { Node, ConfigService, AuthenticationService, NetworkService, RatingV1Service } from 'ngx-edu-sharing-api';
|
|
3
3
|
import { Toast } from '../../services/abstract/toast.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class NodeRatingComponent<T extends Node> implements OnInit {
|
|
@@ -8,12 +8,12 @@ export declare class NodeRatingComponent<T extends Node> implements OnInit {
|
|
|
8
8
|
private networkApi;
|
|
9
9
|
authenticationService: AuthenticationService;
|
|
10
10
|
changeDetectorRef: ChangeDetectorRef;
|
|
11
|
-
ratingService:
|
|
11
|
+
ratingService: RatingV1Service;
|
|
12
12
|
node: T;
|
|
13
13
|
mode: RatingMode;
|
|
14
14
|
hasPermission: boolean;
|
|
15
15
|
hoverStar: number;
|
|
16
|
-
constructor(toast: Toast, configService: ConfigService, networkApi: NetworkService, authenticationService: AuthenticationService, changeDetectorRef: ChangeDetectorRef);
|
|
16
|
+
constructor(toast: Toast, configService: ConfigService, networkApi: NetworkService, authenticationService: AuthenticationService, changeDetectorRef: ChangeDetectorRef, ratingService: RatingV1Service);
|
|
17
17
|
ngOnInit(): Promise<void>;
|
|
18
18
|
toogleLike(): Promise<void>;
|
|
19
19
|
getPrimaryRating(): number;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
1
2
|
import { Node } from 'ngx-edu-sharing-api';
|
|
2
3
|
import { OptionItem } from '../../types/option-item';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class OptionButtonComponent {
|
|
5
|
+
export declare class OptionButtonComponent implements OnChanges {
|
|
5
6
|
option: OptionItem;
|
|
6
7
|
node: Node;
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
isShown: boolean;
|
|
9
|
+
isEnabled: boolean;
|
|
10
|
+
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
11
|
+
optionIsValid(optionItem: OptionItem, node: Node): Promise<boolean>;
|
|
12
|
+
private optionIsShown;
|
|
13
|
+
click(option: OptionItem, node: Node): Promise<void>;
|
|
9
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<OptionButtonComponent, never>;
|
|
10
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<OptionButtonComponent, "es-option-button", never, { "option": { "alias": "option"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
16
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { Node } from 'ngx-edu-sharing-api';
|
|
4
|
+
import { NodeRoot } from '../node-entries/entries-model';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class NodeTitlePipe implements PipeTransform {
|
|
6
7
|
private translate;
|
|
7
|
-
transform(node: Node, args?: string[]): string;
|
|
8
|
+
transform(node: Node | NodeRoot | 'HOME', args?: string[]): string;
|
|
8
9
|
constructor(translate: TranslateService);
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeTitlePipe, never>;
|
|
10
11
|
static ɵpipe: i0.ɵɵPipeDeclaration<NodeTitlePipe, "nodeTitle", false>;
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class OptionTooltipPipe implements PipeTransform {
|
|
6
6
|
private translate;
|
|
7
7
|
constructor(translate: TranslateService);
|
|
8
|
-
transform(option: OptionItem, args?: string[]): string
|
|
8
|
+
transform(option: OptionItem, args?: string[]): Promise<string>;
|
|
9
9
|
getKeyInfo(option: OptionItem): string;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<OptionTooltipPipe, never>;
|
|
11
11
|
static ɵpipe: i0.ɵɵPipeDeclaration<OptionTooltipPipe, "optionTooltip", false>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PropertySlugPipe implements PipeTransform {
|
|
4
|
+
transform(value: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertySlugPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PropertySlugPipe, "propertySlug", false>;
|
|
7
|
+
}
|
|
@@ -3,8 +3,8 @@ import { OptionItem, Target } from '../../types/option-item';
|
|
|
3
3
|
import { Node } from 'ngx-edu-sharing-api';
|
|
4
4
|
export declare abstract class OptionsHelperService {
|
|
5
5
|
abstract wrapOptionCallbacks(data: OptionData): OptionData;
|
|
6
|
-
abstract refreshComponents(components: OptionsHelperComponents, data: OptionData, refreshListOptions: boolean): void
|
|
7
|
-
abstract getAvailableOptions(target: Target, objects: Node[], components: OptionsHelperComponents, data: OptionData): OptionItem[]
|
|
8
|
-
abstract pasteNode(components: OptionsHelperComponents, data: OptionData, nodes: Node[]): void;
|
|
9
|
-
abstract filterOptions(options: OptionItem[], target: Target, data: OptionData, objects: Node[] | any): OptionItem[]
|
|
6
|
+
abstract refreshComponents(components: OptionsHelperComponents, data: OptionData, refreshListOptions: boolean): Promise<void>;
|
|
7
|
+
abstract getAvailableOptions(target: Target, objects: Node[], components: OptionsHelperComponents, data: OptionData): Promise<OptionItem[]>;
|
|
8
|
+
abstract pasteNode(components: OptionsHelperComponents, data: OptionData, addVirutalNodes: boolean, nodes: Node[]): void;
|
|
9
|
+
abstract filterOptions(options: OptionItem[], target: Target, data: OptionData, objects: Node[] | any): Promise<OptionItem[]>;
|
|
10
10
|
}
|