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.
Files changed (100) hide show
  1. package/assets/scss/variables-scss.scss +2 -0
  2. package/assets/scss/variables.scss +2 -1
  3. package/esm2022/lib/actionbar/actionbar.component.mjs +6 -6
  4. package/esm2022/lib/common/edu-sharing-ui-common.module.mjs +4 -4
  5. package/esm2022/lib/directives/border-box-observer.directive.mjs +5 -5
  6. package/esm2022/lib/directives/check-text-overflow.directive.mjs +5 -5
  7. package/esm2022/lib/directives/drag-nodes/nodes-drag-source.directive.mjs +5 -5
  8. package/esm2022/lib/directives/drag-nodes/nodes-drag.directive.mjs +5 -5
  9. package/esm2022/lib/directives/drag-nodes/nodes-drop-target.directive.mjs +5 -5
  10. package/esm2022/lib/directives/focus-state.directive.mjs +5 -5
  11. package/esm2022/lib/directives/icon.directive.mjs +6 -6
  12. package/esm2022/lib/directives/infinite-scroll.directive.mjs +5 -5
  13. package/esm2022/lib/dropdown/dropdown.component.mjs +6 -6
  14. package/esm2022/lib/edu-sharing-ui-configuration.mjs +3 -3
  15. package/esm2022/lib/edu-sharing-ui.module.mjs +9 -5
  16. package/esm2022/lib/list-items/format-duration.pipe.mjs +3 -3
  17. package/esm2022/lib/list-items/list-base/list-base.component.mjs +5 -5
  18. package/esm2022/lib/list-items/list-collection-info/list-collection-info.component.mjs +5 -5
  19. package/esm2022/lib/list-items/list-counts/list-counts.component.mjs +4 -4
  20. package/esm2022/lib/list-items/list-items.module.mjs +4 -4
  21. package/esm2022/lib/list-items/list-node-license/list-node-license.component.mjs +5 -5
  22. package/esm2022/lib/list-items/list-node-replication-source/list-node-replication-source.component.mjs +5 -5
  23. package/esm2022/lib/list-items/list-node-workflow/list-node-workflow.component.mjs +5 -5
  24. package/esm2022/lib/list-items/list-text/list-text.component.mjs +8 -10
  25. package/esm2022/lib/list-items/list-widget.mjs +5 -5
  26. package/esm2022/lib/list-items/node-row/node-row.component.mjs +5 -5
  27. package/esm2022/lib/list-items/node-source.pipe.mjs +5 -5
  28. package/esm2022/lib/mds/mds-helper.service.mjs +167 -0
  29. package/esm2022/lib/mds/mds.module.mjs +16 -0
  30. package/esm2022/lib/node-entries/drag-preview/drag-preview.component.mjs +3 -3
  31. package/esm2022/lib/node-entries/items-cap.mjs +1 -1
  32. package/esm2022/lib/node-entries/list-item-label.pipe.mjs +5 -5
  33. package/esm2022/lib/node-entries/node-cache.mjs +1 -1
  34. package/esm2022/lib/node-entries/node-data-source-remote.mjs +1 -1
  35. package/esm2022/lib/node-entries/node-data-source.mjs +1 -1
  36. package/esm2022/lib/node-entries/node-entries-card/node-entries-card.component.mjs +7 -7
  37. package/esm2022/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.mjs +6 -6
  38. package/esm2022/lib/node-entries/node-entries-card-small/node-entries-card-small.component.mjs +6 -6
  39. package/esm2022/lib/node-entries/node-entries-global-options/node-entries-global-options.component.mjs +10 -6
  40. package/esm2022/lib/node-entries/node-entries-global.service.mjs +5 -5
  41. package/esm2022/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.mjs +6 -6
  42. package/esm2022/lib/node-entries/node-entries-table/node-entries-table.component.mjs +6 -6
  43. package/esm2022/lib/node-entries/node-entries-templates.service.mjs +4 -4
  44. package/esm2022/lib/node-entries/node-entries-wrapper.component.mjs +5 -5
  45. package/esm2022/lib/node-entries/node-entries.component.mjs +6 -6
  46. package/esm2022/lib/node-entries/node-entries.module.mjs +4 -4
  47. package/esm2022/lib/node-entries/node-rating/node-rating.component.mjs +5 -5
  48. package/esm2022/lib/node-entries/node-stats-badges/node-stats-badges.component.mjs +6 -6
  49. package/esm2022/lib/node-entries/node-type-badge/node-type-badge.component.mjs +5 -5
  50. package/esm2022/lib/node-entries/option-button/option-button.component.mjs +5 -5
  51. package/esm2022/lib/node-entries/preview-image/preview-image.component.mjs +5 -5
  52. package/esm2022/lib/node-entries/sort-select-panel/sort-select-panel.component.mjs +5 -5
  53. package/esm2022/lib/node-url/node-url.component.mjs +5 -5
  54. package/esm2022/lib/pipes/file-size.pipe.mjs +5 -5
  55. package/esm2022/lib/pipes/format-date.pipe.mjs +5 -5
  56. package/esm2022/lib/pipes/node-icon.pipe.mjs +4 -4
  57. package/esm2022/lib/pipes/node-image-size.pipe.mjs +4 -4
  58. package/esm2022/lib/pipes/node-image.pipe.mjs +5 -5
  59. package/esm2022/lib/pipes/node-person-name.pipe.mjs +5 -5
  60. package/esm2022/lib/pipes/node-title.pipe.mjs +4 -4
  61. package/esm2022/lib/pipes/option-tooltip.pipe.mjs +5 -5
  62. package/esm2022/lib/pipes/property-slug.pipe.mjs +3 -3
  63. package/esm2022/lib/pipes/replace-chars.pipe.mjs +5 -5
  64. package/esm2022/lib/pipes/vcard-name.pipe.mjs +4 -4
  65. package/esm2022/lib/services/abstract/keyboard-shortcuts.service.mjs +3 -3
  66. package/esm2022/lib/services/accessibility.service.mjs +5 -5
  67. package/esm2022/lib/services/app-container.service.mjs +5 -5
  68. package/esm2022/lib/services/local-events.service.mjs +3 -3
  69. package/esm2022/lib/services/node-entries.service.mjs +5 -5
  70. package/esm2022/lib/services/node-helper.service.mjs +6 -6
  71. package/esm2022/lib/services/nodes-drag-drop.service.mjs +5 -5
  72. package/esm2022/lib/services/options-helper-data.service.mjs +6 -6
  73. package/esm2022/lib/services/repo-url.service.mjs +5 -5
  74. package/esm2022/lib/services/temporary-storage.service.mjs +5 -5
  75. package/esm2022/lib/services/ui.service.mjs +5 -5
  76. package/esm2022/lib/sort-dropdown/sort-dropdown.component.mjs +5 -5
  77. package/esm2022/lib/spinner/spinner.component.mjs +6 -6
  78. package/esm2022/lib/translations/translation-loader.mjs +12 -9
  79. package/esm2022/lib/translations/translations.module.mjs +7 -7
  80. package/esm2022/lib/translations/translations.service.mjs +16 -8
  81. package/esm2022/lib/util/DateHelper.mjs +1 -1
  82. package/esm2022/lib/util/VCard.mjs +1 -1
  83. package/esm2022/lib/util/color-helper.mjs +1 -1
  84. package/esm2022/lib/util/duration-helper.mjs +1 -1
  85. package/esm2022/lib/util/helper.mjs +1 -1
  86. package/esm2022/lib/util/rest-helper.mjs +1 -1
  87. package/esm2022/module.mjs +3 -1
  88. package/fesm2022/ngx-edu-sharing-ui.mjs +539 -350
  89. package/fesm2022/ngx-edu-sharing-ui.mjs.map +1 -1
  90. package/lib/edu-sharing-ui.module.d.ts +7 -6
  91. package/lib/list-items/list-text/list-text.component.d.ts +1 -1
  92. package/lib/list-items/list-widget.d.ts +1 -1
  93. package/lib/mds/mds-helper.service.d.ts +37 -0
  94. package/lib/mds/mds.module.d.ts +6 -0
  95. package/lib/node-entries/node-data-source-remote.d.ts +2 -2
  96. package/lib/node-entries/node-entries-global-options/node-entries-global-options.component.d.ts +1 -0
  97. package/lib/types/option-item.d.ts +21 -21
  98. package/lib/util/ui-constants.d.ts +2 -2
  99. package/module.d.ts +2 -0
  100. 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 "@angular/material/tooltip";
10
- import * as i7 from "./pipes/node-image-size.pipe";
11
- import * as i8 from "./pipes/format-date.pipe";
12
- import * as i9 from "./node-entries/list-item-label.pipe";
13
- import * as i10 from "./sort-dropdown/sort-dropdown.component";
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 i7.NodeImageSizePipe, typeof i8.FormatDatePipe, typeof i4.ListItemsModule, typeof i9.ListItemLabelPipe, typeof i10.SortDropdownComponent]>;
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.Person | Constants.Group | Constants.Statistics;
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 | ProposalNode | Person | Group | Statistics>;
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
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MdsModule {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<MdsModule, never>;
4
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MdsModule, never, never, never>;
5
+ static ɵinj: i0.ɵɵInjectorDeclaration<MdsModule>;
6
+ }
@@ -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 MatTableDataSourcePaginator = MatTableDataSourcePaginator> extends NodeDataSource<T> {
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;
@@ -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": "9.1.1",
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": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
8
- "@angular/common": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
9
- "@angular/core": "^^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
10
- "@angular/material": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
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",