ngx-edu-sharing-ui 10.0.24 → 10.0.26

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 (33) hide show
  1. package/assets/scss/branding.scss +4 -2
  2. package/assets/scss/material-theme.scss +9 -3
  3. package/assets/scss/mixins.scss +2 -2
  4. package/assets/scss/variables-scss.scss +2 -1
  5. package/assets/scss/variables.scss +7 -1
  6. package/fesm2022/ngx-edu-sharing-ui.mjs +1966 -1813
  7. package/fesm2022/ngx-edu-sharing-ui.mjs.map +1 -1
  8. package/lib/directives/icon.directive.d.ts +3 -1
  9. package/lib/edu-sharing-ui-configuration.d.ts +7 -0
  10. package/lib/edu-sharing-ui.module.d.ts +2 -2
  11. package/lib/index.d.ts +3 -0
  12. package/lib/mds/mds-helper.service.d.ts +14 -2
  13. package/lib/mds-viewer/mds-editor-instance-service.abstract.d.ts +1 -1
  14. package/lib/mds-viewer/mds-viewer.component.d.ts +2 -1
  15. package/lib/mds-viewer/mds-viewer.service.d.ts +14 -1
  16. package/lib/mds-viewer/widget/mds-widget.component.d.ts +14 -12
  17. package/lib/node-entries/entries-model.d.ts +10 -1
  18. package/lib/node-entries/node-entries-global.service.d.ts +3 -0
  19. package/lib/node-entries/node-entries-table/node-entries-table.component.d.ts +2 -0
  20. package/lib/node-entries/node-entries-templates.service.d.ts +4 -0
  21. package/lib/node-entries/node-entries-wrapper.component.d.ts +15 -3
  22. package/lib/node-entries/node-entries.module.d.ts +1 -1
  23. package/lib/node-entries/node-type-badge/node-type-badge.component.d.ts +10 -3
  24. package/lib/pipes/node-image.pipe.d.ts +1 -1
  25. package/lib/services/node-entries.service.d.ts +5 -1
  26. package/lib/services/node-helper.service.d.ts +6 -4
  27. package/lib/services/options-helper-data.service.d.ts +1 -1
  28. package/lib/services/render-helper.service.d.ts +2 -1
  29. package/lib/translations/translation-loader.d.ts +3 -3
  30. package/lib/types/injection-tokens.d.ts +9 -16
  31. package/lib/types/option-item.d.ts +5 -4
  32. package/lib/util/ui-constants.d.ts +1 -0
  33. package/package.json +1 -1
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  branding is deprecated. Use the "themeColors" in the client.config
3
3
  */
4
- $workspaceTopBarBackground: #383838;
5
- $workspaceTopBarFontColor: #fff;
4
+ $tokens: (/*
5
+ primaryFontFamily,
6
+ primaryFontSize,
7
+ */ customIcons: false);
@@ -3,7 +3,8 @@
3
3
 
4
4
  @use 'variables' as *;
5
5
  @use 'variables-scss' as *;
6
- @use 'branding' as *;
6
+ @use 'branding' as branding;
7
+ @use 'sass:map';
7
8
 
8
9
  // optional
9
10
  $mat-css-dark-theme-selector: '.isDarkTheme';
@@ -16,7 +17,12 @@ $mat-css-light-theme-selector: '.isLightTheme';
16
17
  // hue. Available color palettes: https://material.io/design/color/
17
18
 
18
19
  $custom-typography: mat.m2-define-typography-config(
19
- $font-family: $primaryFontFamily,
20
+ $font-family:
21
+ if(
22
+ map.get(branding.$tokens, primaryFontFamily) != null,
23
+ map.get(branding.$tokens, primaryFontFamily),
24
+ $primaryFontFamily
25
+ ),
20
26
  $body-1: mat.m2-define-typography-level(100%, normal, 400),
21
27
  $body-2: mat.m2-define-typography-level(100%, normal, 400),
22
28
  // mat-optgroups labels, input placeholder
@@ -148,7 +154,7 @@ mat-tab-group {
148
154
  // `color="warn"`
149
155
  &.mat-warn {
150
156
  // Red background, same as negative
151
- background-color: $warning;
157
+ background-color: var(--palette-warn-500);
152
158
  color: white;
153
159
  }
154
160
  &.status-negative {
@@ -54,10 +54,10 @@
54
54
  //respect element border radius
55
55
  @include removeDefaultFocus();
56
56
  @if $mode== 'outline' {
57
- outline: var(--focusWidth) solid var(--palette-primary-300);
57
+ outline: var(--focusWidth) solid var(--focusColor);
58
58
  outline-offset: 2px;
59
59
  } @else if $mode== 'border' {
60
- border: var(--focusWidth) solid var(--palette-primary-300);
60
+ border: var(--focusWidth) solid var(--focusColor);
61
61
  }
62
62
  }
63
63
  // Apply the content styles in contrast mode. This is just enough contrast to be WCAG complient ---
@@ -34,6 +34,8 @@ $fontSizeXSmall: var(--fontSizeXSmall) !default;
34
34
  $backgroundColor: #fff !default;
35
35
  $workspaceSidebarWidth: 300px !default;
36
36
  $workspaceInheritColor: #42ca8d !default;
37
+ $workspaceTopBarBackground: #383838 !default;
38
+ $workspaceTopBarFontColor: #fff !default;
37
39
  $editorialCollectionsBackground: #f5ec19 !default;
38
40
  $itemSelectedBackground: $primaryVeryLight !default;
39
41
  $itemSelectedTextColor: $primaryMediumDark !default;
@@ -71,7 +73,6 @@ $actionDialogBackground: #eee !default;
71
73
  $cardLightBackground: #f9f9f9 !default;
72
74
  $searchInputBorderColor: #ccc !default;
73
75
  $cardSeparatorLineColor: #ccc !default;
74
- $genericSeperatorLineColor: #ececec !default;
75
76
  $chipsSeperatorLineColor: #e2e2e2 !default;
76
77
  $inputBorderColor: #9e9e9e !default;
77
78
  $commentsActionsSeperatorLineColor: $backgroundColor !default;
@@ -6,7 +6,7 @@
6
6
  :root {
7
7
  --primary: var(--palette-primary-500);
8
8
  --warning: #cd2457;
9
- --aiColor: #6d176e;
9
+ --aiColor: #2f0b9b;
10
10
  --aiColorText: #fff;
11
11
  --aiColorChip: #fff;
12
12
  --aiColorChipRemove: #555;
@@ -24,8 +24,14 @@
24
24
  --nodeVirtualColor: #42ca8d;
25
25
  --nodeVirtualColorLight: #b8fcdd;
26
26
  --transitionNormal: 0.2s;
27
+ --genericSeperatorLineColor: #ececec;
28
+ --tableSeperatorLineColor: #d2d2d2;
29
+ --focusColor: var(--palette-primary-300);
27
30
  --focusWidth: 2px;
28
31
  --fontSizeXSmall: 85%;
32
+ --topBarSearchFocusColor: var(--palette-primary-300);
33
+ --workspaceTopBarSafeBackground: #963a3a;
34
+ --workspaceTopBarNewAlpha: 0.1;
29
35
  --itemSelectedTextColor: var(--palette-primary-700);
30
36
  --listItemSelectedBackground: var(--palette-primary-50);
31
37
  --listItemSelectedBackgroundEffect: linear-gradient(