ngx-edu-sharing-ui 10.0.25 → 10.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/scss/branding.scss +4 -3
- package/assets/scss/material-theme.scss +38 -3
- package/assets/scss/mixins.scss +2 -2
- package/assets/scss/variables-scss.scss +2 -1
- package/assets/scss/variables.scss +8 -1
- package/fesm2022/ngx-edu-sharing-ui.mjs +2071 -1864
- package/fesm2022/ngx-edu-sharing-ui.mjs.map +1 -1
- package/lib/directives/icon.directive.d.ts +3 -1
- package/lib/edu-sharing-ui-configuration.d.ts +7 -0
- package/lib/edu-sharing-ui.module.d.ts +2 -2
- package/lib/index.d.ts +3 -0
- package/lib/list-items/list-text/list-text.component.d.ts +1 -1
- package/lib/list-items/list-widget.d.ts +1 -1
- package/lib/mds/mds-helper.service.d.ts +14 -2
- package/lib/mds-viewer/mds-editor-instance-service.abstract.d.ts +3 -2
- package/lib/mds-viewer/mds-viewer.component.d.ts +1 -0
- package/lib/mds-viewer/mds-viewer.service.d.ts +14 -1
- package/lib/mds-viewer/widget/mds-widget.component.d.ts +15 -13
- package/lib/node-entries/entries-model.d.ts +13 -2
- package/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.d.ts +0 -2
- package/lib/node-entries/node-entries-global.service.d.ts +3 -0
- package/lib/node-entries/node-entries-table/node-entries-table.component.d.ts +11 -3
- package/lib/node-entries/node-entries-templates.service.d.ts +4 -0
- package/lib/node-entries/node-entries-wrapper.component.d.ts +18 -4
- package/lib/node-entries/node-entries.module.d.ts +1 -1
- package/lib/node-entries/node-type-badge/node-type-badge.component.d.ts +13 -4
- package/lib/pipes/node-image.pipe.d.ts +1 -1
- package/lib/services/node-entries.service.d.ts +7 -2
- package/lib/services/node-helper.service.d.ts +6 -4
- package/lib/services/render-helper.service.d.ts +2 -1
- package/lib/services/ui.service.d.ts +4 -0
- package/lib/translations/translation-loader.d.ts +3 -3
- package/lib/types/injection-tokens.d.ts +9 -16
- package/lib/types/option-item.d.ts +10 -4
- package/lib/util/ui-constants.d.ts +1 -0
- package/package.json +2 -2
|
@@ -4,18 +4,19 @@ import * as Workflow from '../types/workflow';
|
|
|
4
4
|
import { RepoUrlService } from './repo-url.service';
|
|
5
5
|
import { Params } from '@angular/router';
|
|
6
6
|
import { NodesRightMode } from '../types/option-item';
|
|
7
|
+
import { EduSharingUiConfiguration } from '../edu-sharing-ui-configuration';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class NodeHelperService {
|
|
9
10
|
protected translate: TranslateService;
|
|
10
11
|
protected apiHelpersService: ApiHelpersService;
|
|
11
12
|
protected networkService: NetworkService;
|
|
12
13
|
protected configService: ConfigService;
|
|
14
|
+
protected configuration: EduSharingUiConfiguration;
|
|
13
15
|
protected repoUrlService: RepoUrlService;
|
|
14
|
-
private assetsBasePath;
|
|
15
16
|
readonly LICENSE_URLS: {
|
|
16
17
|
[key: string]: string;
|
|
17
18
|
};
|
|
18
|
-
constructor(translate: TranslateService, apiHelpersService: ApiHelpersService, networkService: NetworkService, configService: ConfigService,
|
|
19
|
+
constructor(translate: TranslateService, apiHelpersService: ApiHelpersService, networkService: NetworkService, configService: ConfigService, configuration: EduSharingUiConfiguration, repoUrlService: RepoUrlService);
|
|
19
20
|
getCollectionScopeInfo(node: Node): {
|
|
20
21
|
icon: string;
|
|
21
22
|
scopeName: string;
|
|
@@ -53,10 +54,11 @@ export declare class NodeHelperService {
|
|
|
53
54
|
getWorkflowStatus(node: Node, useFromConfig?: boolean): Workflow.WorkflowDefinitionStatus;
|
|
54
55
|
getDefaultWorkflowStatus(useFromConfig?: boolean): Workflow.WorkflowDefinitionStatus;
|
|
55
56
|
getWorkflows(): Workflow.WorkflowDefinition[];
|
|
57
|
+
getFilenameWithoutExtension(filename: string): string;
|
|
56
58
|
copyDataToNode<T extends Node | User>(target: T, source: T): void;
|
|
57
59
|
isNodeCollection(node: Node): boolean;
|
|
58
60
|
getSourceIconPath(src: string): string;
|
|
59
|
-
getNodeLink(mode: 'routerLink' | 'queryParams', node: Node): string | Params;
|
|
61
|
+
getNodeLink(mode: 'routerLink' | 'queryParams', node: Node, short?: boolean): string | Params;
|
|
60
62
|
/**
|
|
61
63
|
* Returns true if this node is a copy of another node, just used as a publish target.
|
|
62
64
|
*/
|
|
@@ -73,6 +75,6 @@ export declare class NodeHelperService {
|
|
|
73
75
|
* Effective: check only rights of the original node this refers to (collection ref). If it is not a collection ref, fallback to local
|
|
74
76
|
*/
|
|
75
77
|
getNodesRight(nodes: Node[], right: string, mode?: NodesRightMode): boolean;
|
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NodeHelperService,
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeHelperService, never>;
|
|
77
79
|
static ɵprov: i0.ɵɵInjectableDeclaration<NodeHelperService>;
|
|
78
80
|
}
|
|
@@ -17,8 +17,9 @@ export declare class RenderHelperService {
|
|
|
17
17
|
private userService;
|
|
18
18
|
private optionsHelperDataService;
|
|
19
19
|
constructor(injector: Injector, aboutService: AboutService, nodeApiUnwrapped: NodeServiceUnwrapped, configuration: EduSharingUiConfiguration, userService: UserService, optionsHelperDataService: OptionsHelperDataService);
|
|
20
|
-
getRenderData(nodeId: string, version?: string): Promise<CombinedRenderData>;
|
|
20
|
+
getRenderData(nodeId: string, version?: string, repository?: string): Promise<CombinedRenderData>;
|
|
21
21
|
getRenderDataForLms(encodedNode: string, signature: string, jwt: string, renderUrl: string, encodedUser: string): Promise<CombinedRenderData>;
|
|
22
|
+
prepareRootUrl(): Promise<void>;
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<RenderHelperService, [null, null, null, null, null, { optional: true; }]>;
|
|
23
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<RenderHelperService>;
|
|
24
25
|
}
|
|
@@ -50,6 +50,10 @@ export declare class UIService {
|
|
|
50
50
|
delay?: number;
|
|
51
51
|
replace?: boolean;
|
|
52
52
|
}, injector?: Injector): ComponentRef<T>;
|
|
53
|
+
/**
|
|
54
|
+
* returns true if the current browser is safari running
|
|
55
|
+
*/
|
|
56
|
+
static isSafari(): boolean;
|
|
53
57
|
/**
|
|
54
58
|
* dynamically inject an angular component into a regular html dom element
|
|
55
59
|
* @param componentFactoryResolver The resolver service
|
|
@@ -3,19 +3,19 @@ import { TranslateLoader } from '@ngx-translate/core';
|
|
|
3
3
|
import { ConfigService } from 'ngx-edu-sharing-api';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { EduSharingUiConfiguration } from '../edu-sharing-ui-configuration';
|
|
6
|
+
import { I18nConfig } from '../types/injection-tokens';
|
|
6
7
|
export declare const TRANSLATION_LIST: string[];
|
|
7
8
|
type Dictionary = {
|
|
8
9
|
[key: string]: string | Dictionary;
|
|
9
10
|
};
|
|
10
11
|
export declare class TranslationLoader implements TranslateLoader {
|
|
11
|
-
private assetsBasePath;
|
|
12
|
-
private additionalI18nProvider;
|
|
13
12
|
private http;
|
|
14
13
|
private configService;
|
|
15
14
|
private configuration;
|
|
15
|
+
private i18nConfig;
|
|
16
16
|
private prefix;
|
|
17
17
|
private suffix;
|
|
18
|
-
static create(http: HttpClient, configService: ConfigService, configuration: EduSharingUiConfiguration,
|
|
18
|
+
static create(http: HttpClient, configService: ConfigService, configuration: EduSharingUiConfiguration, i18nConfig: I18nConfig): TranslationLoader;
|
|
19
19
|
private constructor();
|
|
20
20
|
private readonly source;
|
|
21
21
|
/**
|
|
@@ -1,28 +1,21 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* A custom base path for the assets directory.
|
|
4
|
-
*
|
|
5
|
-
* This is useful when the application cannot be served from the base HREF set in index.html. This
|
|
6
|
-
* is the case when it is embedded as a web component into another website.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ASSETS_BASE_PATH: InjectionToken<string>;
|
|
9
2
|
export declare class I18nConfig {
|
|
10
3
|
/**
|
|
11
4
|
* shall the user profile be read
|
|
12
5
|
* If not set, defaults to true
|
|
13
6
|
*/
|
|
14
7
|
obeyUserProfile?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* custom additional uris to fetch language files from
|
|
10
|
+
*
|
|
11
|
+
* Might be used if additional angular modules require language data
|
|
12
|
+
*
|
|
13
|
+
* Example
|
|
14
|
+
* {provide: I18N_CONFIG, useValue: { ... }},
|
|
15
|
+
*/
|
|
16
|
+
additionalI18nProvider?: (lang: string) => string[];
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
17
19
|
* additional configuration options
|
|
18
20
|
*/
|
|
19
21
|
export declare const I18N_CONFIG: InjectionToken<I18nConfig>;
|
|
20
|
-
/**
|
|
21
|
-
* custom additional uris to fetch language files from
|
|
22
|
-
*
|
|
23
|
-
* Might be used if additional angular modules require language data
|
|
24
|
-
*
|
|
25
|
-
* Example
|
|
26
|
-
*{provide: ADDITIONAL_I18N_PROVIDER, useValue: (lang: string) => { return ['/edu-sharing/assets/i18n/myI18n/' + lang + '.json']}},
|
|
27
|
-
*/
|
|
28
|
-
export declare const ADDITIONAL_I18N_PROVIDER: InjectionToken<(lang: string) => string[]>;
|
|
@@ -30,6 +30,11 @@ export declare class OptionItem {
|
|
|
30
30
|
* @type {boolean}
|
|
31
31
|
*/
|
|
32
32
|
isToggle: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* toggle type. Default is a flat, grayish
|
|
35
|
+
* primary is a primary colored button with label (if space is available)
|
|
36
|
+
*/
|
|
37
|
+
toggleType: 'default' | 'primary';
|
|
33
38
|
/**
|
|
34
39
|
* Only when @isToggle. is the toggle currently visible
|
|
35
40
|
*/
|
|
@@ -240,10 +245,11 @@ export declare enum Constrain {
|
|
|
240
245
|
ClipboardContent = 10,// Only visible when the clipboard has content
|
|
241
246
|
AddObjects = 11,// Only visible when it is possible to add objects into the current list
|
|
242
247
|
HomeRepository = 12,// Only visible when the nodes are from the local (home) repository
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
248
|
+
GuestOrNotLoggedIn = 13,// Only visible when a user is NOT present (guest or not logged in)
|
|
249
|
+
User = 14,// Only visible when a user is present and logged in
|
|
250
|
+
NoScope = 15,// Only visible when no current scope (i.e "safe" scope) is set
|
|
251
|
+
ReurlMode = 16,// Only visible when a reurl is present (called to pick object from lms)
|
|
252
|
+
LTIMode = 17
|
|
247
253
|
}
|
|
248
254
|
export declare enum Target {
|
|
249
255
|
List = 0,// Target is the ListTableComponent
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-edu-sharing-ui",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.27",
|
|
4
4
|
"license": "GNU GPL v2",
|
|
5
5
|
"description": "Angular components for Edu-Sharing UX parts",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"material-design-icons": "^3.0.1",
|
|
12
12
|
"ngx-rendering-service-api": ">=0.0.41",
|
|
13
13
|
"@ngx-translate/core": ">=15.0.0",
|
|
14
|
-
"angular-material-css-vars": "
|
|
14
|
+
"angular-material-css-vars": ">=7.0.0",
|
|
15
15
|
"rxjs": "^6.6.7 || ^7.0.0",
|
|
16
16
|
"lodash-es": "^4.17.21"
|
|
17
17
|
},
|