ngx-edu-sharing-ui 9.1.1 → 9999.0.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 +6 -6
- package/esm2022/lib/common/edu-sharing-ui-common.module.mjs +4 -4
- package/esm2022/lib/directives/border-box-observer.directive.mjs +5 -5
- package/esm2022/lib/directives/check-text-overflow.directive.mjs +5 -5
- 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 +6 -6
- package/esm2022/lib/directives/infinite-scroll.directive.mjs +5 -5
- package/esm2022/lib/dropdown/dropdown.component.mjs +6 -6
- package/esm2022/lib/edu-sharing-ui-configuration.mjs +3 -3
- 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 +5 -5
- 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 +4 -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 +8 -10
- 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/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 +1 -1
- package/esm2022/lib/node-entries/node-data-source-remote.mjs +1 -1
- package/esm2022/lib/node-entries/node-data-source.mjs +1 -1
- package/esm2022/lib/node-entries/node-entries-card/node-entries-card.component.mjs +7 -7
- package/esm2022/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.mjs +6 -6
- package/esm2022/lib/node-entries/node-entries-card-small/node-entries-card-small.component.mjs +6 -6
- 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 +5 -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 +6 -6
- package/esm2022/lib/node-entries/node-entries-templates.service.mjs +4 -4
- package/esm2022/lib/node-entries/node-entries-wrapper.component.mjs +5 -5
- package/esm2022/lib/node-entries/node-entries.component.mjs +6 -6
- package/esm2022/lib/node-entries/node-entries.module.mjs +4 -4
- package/esm2022/lib/node-entries/node-rating/node-rating.component.mjs +5 -5
- 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 +5 -5
- 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 +5 -5
- package/esm2022/lib/node-url/node-url.component.mjs +5 -5
- package/esm2022/lib/pipes/file-size.pipe.mjs +5 -5
- 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 +3 -3
- 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/accessibility.service.mjs +5 -5
- package/esm2022/lib/services/app-container.service.mjs +5 -5
- package/esm2022/lib/services/local-events.service.mjs +3 -3
- package/esm2022/lib/services/node-entries.service.mjs +5 -5
- package/esm2022/lib/services/node-helper.service.mjs +6 -6
- package/esm2022/lib/services/nodes-drag-drop.service.mjs +5 -5
- package/esm2022/lib/services/options-helper-data.service.mjs +6 -6
- package/esm2022/lib/services/repo-url.service.mjs +5 -5
- package/esm2022/lib/services/temporary-storage.service.mjs +5 -5
- package/esm2022/lib/services/ui.service.mjs +5 -5
- package/esm2022/lib/sort-dropdown/sort-dropdown.component.mjs +5 -5
- package/esm2022/lib/spinner/spinner.component.mjs +6 -6
- package/esm2022/lib/translations/translation-loader.mjs +12 -9
- package/esm2022/lib/translations/translations.module.mjs +7 -7
- package/esm2022/lib/translations/translations.service.mjs +16 -8
- 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 +3 -1
- package/fesm2022/ngx-edu-sharing-ui.mjs +539 -350
- package/fesm2022/ngx-edu-sharing-ui.mjs.map +1 -1
- 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/node-data-source-remote.d.ts +2 -2
- package/lib/node-entries/node-entries-global-options/node-entries-global-options.component.d.ts +1 -0
- package/lib/types/option-item.d.ts +21 -21
- package/lib/util/ui-constants.d.ts +2 -2
- package/module.d.ts +2 -0
- package/package.json +5 -5
|
@@ -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.Group | Constants.Person | 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 |
|
|
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
|
+
}
|
|
@@ -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;
|
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
|
}
|
|
@@ -177,11 +177,11 @@ export declare enum Scope {
|
|
|
177
177
|
}
|
|
178
178
|
export declare enum ElementType {
|
|
179
179
|
Node = 0,
|
|
180
|
-
NodeChild = 1
|
|
181
|
-
MapRef = 2
|
|
180
|
+
NodeChild = 1,// Child object
|
|
181
|
+
MapRef = 2,// Map ref (link to another map)
|
|
182
182
|
NodePublishedCopy = 3,
|
|
183
|
-
NodeBlockedImport = 4
|
|
184
|
-
NodeProposal = 5
|
|
183
|
+
NodeBlockedImport = 4,// node with property ccm:importblocked == true
|
|
184
|
+
NodeProposal = 5,// node proposal for a collection
|
|
185
185
|
Person = 6,
|
|
186
186
|
Group = 7,
|
|
187
187
|
SavedSearch = 8,
|
|
@@ -209,26 +209,26 @@ export declare class DefaultGroups {
|
|
|
209
209
|
static Toggles: OptionGroup;
|
|
210
210
|
}
|
|
211
211
|
export declare enum Constrain {
|
|
212
|
-
CollectionReference = 0
|
|
213
|
-
NoCollectionReference = 1
|
|
214
|
-
Directory = 2
|
|
215
|
-
Collections = 3
|
|
216
|
-
Files = 4
|
|
217
|
-
FilesAndDirectories = 5
|
|
218
|
-
Admin = 6
|
|
219
|
-
AdminOrDebug = 7
|
|
220
|
-
NoBulk = 8
|
|
221
|
-
NoSelection = 9
|
|
222
|
-
ClipboardContent = 10
|
|
223
|
-
AddObjects = 11
|
|
224
|
-
HomeRepository = 12
|
|
225
|
-
User = 13
|
|
226
|
-
NoScope = 14
|
|
227
|
-
ReurlMode = 15
|
|
212
|
+
CollectionReference = 0,// option is only visible for collection references
|
|
213
|
+
NoCollectionReference = 1,// option is only visible for non-collection references
|
|
214
|
+
Directory = 2,// only visible for directories (ccm:map)
|
|
215
|
+
Collections = 3,// only visible for collections
|
|
216
|
+
Files = 4,// only visible for files (ccm:io)
|
|
217
|
+
FilesAndDirectories = 5,// only visible for files and directories (ccm:io / ccm:map) - no collections!
|
|
218
|
+
Admin = 6,// only visible if user is admin or esDebug is enabled on window component
|
|
219
|
+
AdminOrDebug = 7,// only visible if user is admin or esDebug is enabled on window component
|
|
220
|
+
NoBulk = 8,// No support for bulk (multiple objects)
|
|
221
|
+
NoSelection = 9,// Only visible when currently no element is selected
|
|
222
|
+
ClipboardContent = 10,// Only visible when the clipboard has content
|
|
223
|
+
AddObjects = 11,// Only visible when it is possible to add objects into the current list
|
|
224
|
+
HomeRepository = 12,// Only visible when the nodes are from the local (home) repository
|
|
225
|
+
User = 13,// Only visible when a user is present and logged in
|
|
226
|
+
NoScope = 14,// Only visible when no current scope (i.e "safe" scope) is set
|
|
227
|
+
ReurlMode = 15,// Only visible when a reurl is present (called to pick object from lms)
|
|
228
228
|
LTIMode = 16
|
|
229
229
|
}
|
|
230
230
|
export declare enum Target {
|
|
231
|
-
List = 0
|
|
231
|
+
List = 0,// Target is the ListTableComponent
|
|
232
232
|
ListDropdown = 1,
|
|
233
233
|
Actionbar = 2,
|
|
234
234
|
CreateMenu = 3
|
|
@@ -12,7 +12,7 @@ export declare class UIConstants {
|
|
|
12
12
|
static QUERY_PARAM_LIST_VIEW_TYPE: string;
|
|
13
13
|
}
|
|
14
14
|
export declare enum OPEN_URL_MODE {
|
|
15
|
-
Current = 0,
|
|
16
|
-
Blank = 1,
|
|
15
|
+
Current = 0,// Current Window, or In App browser on cordova
|
|
16
|
+
Blank = 1,// New Window, or In App browser on cordova
|
|
17
17
|
BlankSystemBrowser = 2
|
|
18
18
|
}
|
package/module.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './lib/actionbar/actionbar.component';
|
|
2
2
|
export * from './lib/common/edu-sharing-ui-common.module';
|
|
3
|
+
export * from './lib/mds/mds.module';
|
|
3
4
|
export * from './lib/directives/border-box-observer.directive';
|
|
4
5
|
export * from './lib/directives/check-text-overflow.directive';
|
|
5
6
|
export * from './lib/directives/drag-nodes/drag-nodes';
|
|
@@ -76,3 +77,4 @@ export * from './lib/util/isNumeric';
|
|
|
76
77
|
export * from './lib/util/rest-helper';
|
|
77
78
|
export * from './lib/util/ui-animation';
|
|
78
79
|
export * from './lib/util/ui-constants';
|
|
80
|
+
export * from './lib/mds/mds-helper.service';
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-edu-sharing-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9999.0.0",
|
|
4
4
|
"license": "GNU GPL v2",
|
|
5
5
|
"description": "Angular components for Edu-Sharing UX parts",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@angular/cdk": "^
|
|
8
|
-
"@angular/common": "^
|
|
9
|
-
"@angular/core": "
|
|
10
|
-
"@angular/material": "^
|
|
7
|
+
"@angular/cdk": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
8
|
+
"@angular/common": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
9
|
+
"@angular/core": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
10
|
+
"@angular/material": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
11
11
|
"material-design-icons": "^3.0.1",
|
|
12
12
|
"@ngx-translate/core": "^14.0.0 || ^15.0.0",
|
|
13
13
|
"angular-material-css-vars": "^3.0.0",
|