ngx-edu-sharing-ui 9.0.2 → 9.2.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.
- package/assets/scss/variables-scss.scss +2 -0
- package/assets/scss/variables.scss +2 -1
- package/esm2022/lib/actionbar/actionbar.component.mjs +8 -8
- package/esm2022/lib/common/edu-sharing-ui-common.module.mjs +76 -65
- package/esm2022/lib/directives/border-box-observer.directive.mjs +5 -5
- package/esm2022/lib/directives/check-text-overflow.directive.mjs +12 -6
- package/esm2022/lib/directives/drag-nodes/nodes-drag-source.directive.mjs +5 -5
- package/esm2022/lib/directives/drag-nodes/nodes-drag.directive.mjs +5 -5
- package/esm2022/lib/directives/drag-nodes/nodes-drop-target.directive.mjs +5 -5
- package/esm2022/lib/directives/focus-state.directive.mjs +5 -5
- package/esm2022/lib/directives/icon.directive.mjs +20 -13
- package/esm2022/lib/directives/infinite-scroll.directive.mjs +85 -0
- package/esm2022/lib/dropdown/dropdown.component.mjs +8 -8
- package/esm2022/lib/edu-sharing-ui-configuration.mjs +11 -4
- package/esm2022/lib/edu-sharing-ui.module.mjs +9 -5
- package/esm2022/lib/list-items/format-duration.pipe.mjs +3 -3
- package/esm2022/lib/list-items/list-base/list-base.component.mjs +10 -10
- package/esm2022/lib/list-items/list-collection-info/list-collection-info.component.mjs +5 -5
- package/esm2022/lib/list-items/list-counts/list-counts.component.mjs +6 -4
- package/esm2022/lib/list-items/list-items.module.mjs +4 -4
- package/esm2022/lib/list-items/list-node-license/list-node-license.component.mjs +5 -5
- package/esm2022/lib/list-items/list-node-replication-source/list-node-replication-source.component.mjs +5 -5
- package/esm2022/lib/list-items/list-node-workflow/list-node-workflow.component.mjs +5 -5
- package/esm2022/lib/list-items/list-text/list-text.component.mjs +20 -20
- package/esm2022/lib/list-items/list-widget.mjs +5 -5
- package/esm2022/lib/list-items/node-row/node-row.component.mjs +5 -5
- package/esm2022/lib/list-items/node-source.pipe.mjs +5 -5
- 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/items-cap.mjs +1 -1
- package/esm2022/lib/node-entries/list-item-label.pipe.mjs +5 -5
- package/esm2022/lib/node-entries/node-cache.mjs +9 -1
- package/esm2022/lib/node-entries/node-data-source-remote.mjs +1 -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 +17 -15
- package/esm2022/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.mjs +39 -24
- package/esm2022/lib/node-entries/node-entries-card-small/node-entries-card-small.component.mjs +8 -8
- package/esm2022/lib/node-entries/node-entries-global-options/node-entries-global-options.component.mjs +10 -6
- package/esm2022/lib/node-entries/node-entries-global.service.mjs +18 -5
- package/esm2022/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.mjs +6 -6
- package/esm2022/lib/node-entries/node-entries-table/node-entries-table.component.mjs +44 -35
- package/esm2022/lib/node-entries/node-entries-templates.service.mjs +4 -4
- package/esm2022/lib/node-entries/node-entries-wrapper.component.mjs +13 -6
- package/esm2022/lib/node-entries/node-entries.component.mjs +7 -7
- package/esm2022/lib/node-entries/node-entries.module.mjs +4 -4
- package/esm2022/lib/node-entries/node-rating/node-rating.component.mjs +36 -13
- package/esm2022/lib/node-entries/node-stats-badges/node-stats-badges.component.mjs +6 -6
- package/esm2022/lib/node-entries/node-type-badge/node-type-badge.component.mjs +5 -5
- package/esm2022/lib/node-entries/option-button/option-button.component.mjs +21 -10
- package/esm2022/lib/node-entries/preview-image/preview-image.component.mjs +5 -5
- package/esm2022/lib/node-entries/sort-select-panel/sort-select-panel.component.mjs +6 -6
- package/esm2022/lib/node-url/node-url.component.mjs +11 -7
- package/esm2022/lib/pipes/file-size.pipe.mjs +6 -6
- package/esm2022/lib/pipes/format-date.pipe.mjs +5 -5
- package/esm2022/lib/pipes/node-icon.pipe.mjs +4 -4
- package/esm2022/lib/pipes/node-image-size.pipe.mjs +4 -4
- package/esm2022/lib/pipes/node-image.pipe.mjs +5 -5
- package/esm2022/lib/pipes/node-person-name.pipe.mjs +5 -5
- package/esm2022/lib/pipes/node-title.pipe.mjs +4 -4
- package/esm2022/lib/pipes/option-tooltip.pipe.mjs +5 -5
- package/esm2022/lib/pipes/property-slug.pipe.mjs +16 -0
- package/esm2022/lib/pipes/replace-chars.pipe.mjs +5 -5
- package/esm2022/lib/pipes/vcard-name.pipe.mjs +4 -4
- package/esm2022/lib/services/abstract/keyboard-shortcuts.service.mjs +3 -3
- package/esm2022/lib/services/abstract/options-helper.service.mjs +1 -1
- package/esm2022/lib/services/accessibility.service.mjs +5 -5
- package/esm2022/lib/services/app-container.service.mjs +66 -0
- package/esm2022/lib/services/local-events.service.mjs +3 -3
- package/esm2022/lib/services/node-entries.service.mjs +51 -7
- package/esm2022/lib/services/node-helper.service.mjs +36 -13
- package/esm2022/lib/services/nodes-drag-drop.service.mjs +5 -5
- package/esm2022/lib/services/options-helper-data.service.mjs +9 -9
- package/esm2022/lib/services/repo-url.service.mjs +6 -5
- package/esm2022/lib/services/temporary-storage.service.mjs +5 -5
- package/esm2022/lib/services/ui.service.mjs +11 -5
- package/esm2022/lib/sort-dropdown/sort-dropdown.component.mjs +5 -5
- package/esm2022/lib/spinner/spinner.component.mjs +7 -6
- package/esm2022/lib/translations/translation-loader.mjs +40 -8
- package/esm2022/lib/translations/translations.module.mjs +21 -10
- package/esm2022/lib/translations/translations.service.mjs +17 -9
- package/esm2022/lib/types/injection-tokens.mjs +9 -0
- package/esm2022/lib/types/option-item.mjs +4 -3
- package/esm2022/lib/util/DateHelper.mjs +1 -1
- package/esm2022/lib/util/VCard.mjs +1 -1
- package/esm2022/lib/util/color-helper.mjs +1 -1
- package/esm2022/lib/util/duration-helper.mjs +1 -1
- package/esm2022/lib/util/helper.mjs +1 -1
- package/esm2022/lib/util/rest-helper.mjs +1 -1
- package/esm2022/module.mjs +51 -43
- package/fesm2022/ngx-edu-sharing-ui.mjs +5771 -5197
- package/fesm2022/ngx-edu-sharing-ui.mjs.map +1 -1
- package/lib/common/edu-sharing-ui-common.module.d.ts +27 -25
- package/lib/directives/icon.directive.d.ts +2 -2
- package/lib/directives/infinite-scroll.directive.d.ts +22 -0
- 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-text/list-text.component.d.ts +1 -1
- 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 +2 -1
- package/lib/node-entries/node-data-source-remote.d.ts +2 -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 +1 -1
- 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 +6 -2
- package/lib/pipes/property-slug.pipe.d.ts +7 -0
- package/lib/services/abstract/options-helper.service.d.ts +3 -3
- 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 +5 -3
- package/lib/services/options-helper-data.service.d.ts +3 -3
- package/lib/services/ui.service.d.ts +8 -1
- package/lib/spinner/spinner.component.d.ts +1 -1
- package/lib/translations/translation-loader.d.ts +2 -1
- package/lib/types/injection-tokens.d.ts +8 -0
- package/lib/types/option-item.d.ts +24 -25
- package/lib/util/ui-constants.d.ts +2 -2
- package/module.d.ts +50 -42
- package/package.json +5 -5
- package/esm2022/lib/translations/languages.mjs +0 -5
- package/lib/translations/languages.d.ts +0 -4
|
@@ -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,
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } 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";
|
|
@@ -18,9 +18,9 @@ export declare class IconDirective implements OnInit, OnDestroy {
|
|
|
18
18
|
private element;
|
|
19
19
|
private translate;
|
|
20
20
|
private config;
|
|
21
|
+
private originalId$;
|
|
21
22
|
private _id;
|
|
22
23
|
private _aria;
|
|
23
|
-
private iconsConfig;
|
|
24
24
|
private altTextSpan;
|
|
25
25
|
private isReady;
|
|
26
26
|
/**
|
|
@@ -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
|
+
}
|
|
@@ -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
|
}
|
|
@@ -17,7 +17,7 @@ export declare class ListTextComponent extends ListWidget implements OnInit {
|
|
|
17
17
|
constructor(nodeHelper: NodeHelperService, mds: MdsService, changeDetectorRef: ChangeDetectorRef);
|
|
18
18
|
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
19
19
|
ngOnInit(): Promise<void>;
|
|
20
|
-
getNode(): Node | Constants.
|
|
20
|
+
getNode(): Node | Constants.Person | Constants.Group | Constants.Statistics;
|
|
21
21
|
isUserProfileAttribute(attribute: string): boolean;
|
|
22
22
|
getWorkflowStatus(): import("ngx-edu-sharing-ui").WorkflowDefinition;
|
|
23
23
|
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 | ProposalNode |
|
|
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>;
|
|
@@ -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
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { NodeDataSource } from './node-data-source';
|
|
2
2
|
import { GenericAuthority, Node } from 'ngx-edu-sharing-api';
|
|
3
|
-
import { MatTableDataSourcePaginator } from '@angular/material/table';
|
|
4
3
|
import { ActivatedRoute } from '@angular/router';
|
|
5
4
|
import { PaginationStrategy } from './node-entries-global.service';
|
|
6
5
|
import { Sort } from '@angular/material/sort';
|
|
7
6
|
import { SortPanel } from '../types/list-item';
|
|
7
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
8
8
|
export interface PaginationConfig {
|
|
9
9
|
defaultPageSize: number;
|
|
10
10
|
strategy: PaginationStrategy;
|
|
11
11
|
}
|
|
12
|
-
export declare abstract class NodeDataSourceRemote<T extends Node | GenericAuthority = Node, P extends
|
|
12
|
+
export declare abstract class NodeDataSourceRemote<T extends Node | GenericAuthority = Node, P extends MatPaginator = MatPaginator> extends NodeDataSource<T> {
|
|
13
13
|
abstract get paginator(): P | null;
|
|
14
14
|
abstract set paginator(value: P | null);
|
|
15
15
|
abstract get sortPanel(): SortPanel;
|
|
@@ -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;
|
|
@@ -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,15 @@
|
|
|
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;
|
|
8
|
+
isShown: boolean;
|
|
9
|
+
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
7
10
|
optionIsValid(optionItem: OptionItem, node: Node): boolean;
|
|
8
|
-
optionIsShown
|
|
11
|
+
private optionIsShown;
|
|
12
|
+
click(option: OptionItem, node: Node): Promise<void>;
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<OptionButtonComponent, never>;
|
|
10
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<OptionButtonComponent, "es-option-button", never, { "option": { "alias": "option"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
15
|
}
|
|
@@ -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[]
|
|
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
8
|
abstract pasteNode(components: OptionsHelperComponents, data: OptionData, nodes: Node[]): void;
|
|
9
|
-
abstract filterOptions(options: OptionItem[], target: Target, data: OptionData, objects: Node[] | any): OptionItem[]
|
|
9
|
+
abstract filterOptions(options: OptionItem[], target: Target, data: OptionData, objects: Node[] | any): Promise<OptionItem[]>;
|
|
10
10
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Provides methods on the container that hosts the application.
|
|
6
|
+
*
|
|
7
|
+
* Usually, this will be `window`, but in case the application is embedded as a web component, it is
|
|
8
|
+
* a `HTMLElement`.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AppContainerService {
|
|
11
|
+
private ngZone;
|
|
12
|
+
private scrollContainer?;
|
|
13
|
+
constructor(ngZone: NgZone);
|
|
14
|
+
init(appElement: HTMLElement): void;
|
|
15
|
+
/**
|
|
16
|
+
* Registers one or more events on the application's scroll container.
|
|
17
|
+
*
|
|
18
|
+
* Note that the callback will be called outside of ng zone, so you must wrap any action that
|
|
19
|
+
* should be reflected by Angular with `ngZone.run()`.
|
|
20
|
+
*/
|
|
21
|
+
registerScrollEvents(callback: (event: Event) => void, until: Observable<void>, { events }?: {
|
|
22
|
+
events?: string[];
|
|
23
|
+
}): void;
|
|
24
|
+
/**
|
|
25
|
+
* Return true if there is a scrolling ancestor that encompasses the app other than the document
|
|
26
|
+
* element.
|
|
27
|
+
*/
|
|
28
|
+
hasScrollContainer(): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the nearest scrolling container element that encompasses the app if the app is
|
|
31
|
+
* embedded in another web page.
|
|
32
|
+
*
|
|
33
|
+
* If the app is served natively, returns the document element.
|
|
34
|
+
*/
|
|
35
|
+
getScrollContainer(): HTMLElement;
|
|
36
|
+
getScrollContainer<T>({ fallback }: {
|
|
37
|
+
fallback: T;
|
|
38
|
+
}): T;
|
|
39
|
+
private registerScrollContainer;
|
|
40
|
+
private getNearestScrollingAncestor;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppContainerService, never>;
|
|
42
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppContainerService>;
|
|
43
|
+
}
|
|
@@ -1,13 +1,38 @@
|
|
|
1
1
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
2
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { EventEmitter, WritableSignal } from '@angular/core';
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { FetchEvent, GridConfig, InteractionType, ListDragGropConfig, ListEventInterface, ListOptions, ListSortConfig, NodeClickEvent, NodeEntriesDataType, NodeEntriesDisplayType } from '../node-entries/entries-model';
|
|
4
|
+
import { ClickSource, FetchEvent, GridConfig, InteractionType, ListDragGropConfig, ListEventInterface, ListOptions, ListSortConfig, NodeClickEvent, NodeEntriesDataType, NodeEntriesDisplayType } from '../node-entries/entries-model';
|
|
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
8
|
import { ListItem } from '../types/list-item';
|
|
9
9
|
import { UIService } from './ui.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
Custom selection model which adds the click source of the selection.
|
|
13
|
+
USED IN EXTENSIONS!
|
|
14
|
+
*/
|
|
15
|
+
export declare class CustomSelectionModel<T> extends SelectionModel<T> {
|
|
16
|
+
private _clickSource;
|
|
17
|
+
/**
|
|
18
|
+
* used in extensions
|
|
19
|
+
*/
|
|
20
|
+
readonly changedClickSource: import("rxjs").Observable<{
|
|
21
|
+
clickSource: ClickSource;
|
|
22
|
+
source: SelectionModel<T>;
|
|
23
|
+
added: T[];
|
|
24
|
+
removed: T[];
|
|
25
|
+
}>;
|
|
26
|
+
deselect(...values: T[]): void;
|
|
27
|
+
toggle(value: T): void;
|
|
28
|
+
clear(): void;
|
|
29
|
+
select(...values: T[]): void;
|
|
30
|
+
/**
|
|
31
|
+
* used in extensions
|
|
32
|
+
* @param value
|
|
33
|
+
*/
|
|
34
|
+
set clickSource(value: ClickSource);
|
|
35
|
+
}
|
|
11
36
|
export declare class NodeEntriesService<T extends NodeEntriesDataType> {
|
|
12
37
|
private uiService;
|
|
13
38
|
private entriesGlobal;
|
|
@@ -30,16 +55,15 @@ export declare class NodeEntriesService<T extends NodeEntriesDataType> {
|
|
|
30
55
|
get columns(): ListItem[];
|
|
31
56
|
set columns(value: ListItem[]);
|
|
32
57
|
configureColumns: boolean;
|
|
33
|
-
/** Emits when the columns configuration changes through user interaction. */
|
|
34
|
-
columnsChange: EventEmitter<ListItem[]>;
|
|
35
58
|
displayType: NodeEntriesDisplayType;
|
|
36
|
-
selection:
|
|
59
|
+
selection: CustomSelectionModel<T>;
|
|
37
60
|
elementInteractionType: InteractionType;
|
|
38
61
|
options$: BehaviorSubject<ListOptions>;
|
|
39
62
|
get options(): ListOptions;
|
|
40
63
|
set options(options: ListOptions);
|
|
41
64
|
checkbox: boolean;
|
|
42
|
-
|
|
65
|
+
globalOptionsSubject: BehaviorSubject<OptionItem[]>;
|
|
66
|
+
set globalOptions(globalOptions: OptionItem[]);
|
|
43
67
|
sortSubject: BehaviorSubject<ListSortConfig>;
|
|
44
68
|
get sort(): ListSortConfig;
|
|
45
69
|
set sort(value: ListSortConfig);
|
|
@@ -54,6 +78,7 @@ export declare class NodeEntriesService<T extends NodeEntriesDataType> {
|
|
|
54
78
|
primaryInstance: boolean;
|
|
55
79
|
singleClickHint: 'dynamic' | 'static';
|
|
56
80
|
disableInfiniteScroll: boolean;
|
|
81
|
+
scrollGradientColor: WritableSignal<string>;
|
|
57
82
|
constructor(uiService: UIService, entriesGlobal: NodeEntriesGlobalService);
|
|
58
83
|
onClicked({ event, ...data }: NodeClickEvent<T> & {
|
|
59
84
|
event: MouseEvent;
|
|
@@ -10,7 +10,8 @@ export declare class NodeHelperService {
|
|
|
10
10
|
protected networkService: NetworkService;
|
|
11
11
|
protected configService: ConfigService;
|
|
12
12
|
protected repoUrlService: RepoUrlService;
|
|
13
|
-
|
|
13
|
+
private assetsBasePath;
|
|
14
|
+
constructor(translate: TranslateService, apiHelpersService: ApiHelpersService, networkService: NetworkService, configService: ConfigService, repoUrlService: RepoUrlService, assetsBasePath: string);
|
|
14
15
|
getCollectionScopeInfo(node: Node): {
|
|
15
16
|
icon: string;
|
|
16
17
|
scopeName: string;
|
|
@@ -41,8 +42,9 @@ export declare class NodeHelperService {
|
|
|
41
42
|
* return the License URL (e.g. for CC_BY licenses) for a license string and version
|
|
42
43
|
* @param licenseProperty
|
|
43
44
|
* @param licenseVersion
|
|
45
|
+
* @param licenseLocale
|
|
44
46
|
*/
|
|
45
|
-
getLicenseUrlByString(licenseProperty: string, licenseVersion: string):
|
|
47
|
+
getLicenseUrlByString(licenseProperty: string, licenseVersion: string, licenseLocale: string): import("rxjs").Observable<string>;
|
|
46
48
|
getWorkflowStatusById(id: string): Workflow.WorkflowDefinition;
|
|
47
49
|
getWorkflowStatus(node: Node, useFromConfig?: boolean): Workflow.WorkflowDefinitionStatus;
|
|
48
50
|
getDefaultWorkflowStatus(useFromConfig?: boolean): Workflow.WorkflowDefinitionStatus;
|
|
@@ -51,6 +53,6 @@ export declare class NodeHelperService {
|
|
|
51
53
|
isNodeCollection(node: Node): boolean;
|
|
52
54
|
getSourceIconPath(src: string): string;
|
|
53
55
|
getNodeLink(mode: 'routerLink' | 'queryParams', node: Node): string | Params;
|
|
54
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NodeHelperService,
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeHelperService, [null, null, null, null, null, { optional: true; }]>;
|
|
55
57
|
static ɵprov: i0.ɵɵInjectableDeclaration<NodeHelperService>;
|
|
56
58
|
}
|