ngx-edu-sharing-ui 10.0.24 → 11.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 (38) hide show
  1. package/assets/scss/branding.scss +4 -2
  2. package/assets/scss/material-theme.scss +19 -11
  3. package/assets/scss/mixins.scss +8 -5
  4. package/assets/scss/variables.scss +9 -1
  5. package/fesm2022/ngx-edu-sharing-ui.mjs +890 -678
  6. package/fesm2022/ngx-edu-sharing-ui.mjs.map +1 -1
  7. package/lib/common/edu-sharing-ui-common.module.d.ts +27 -24
  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 +7 -0
  12. package/lib/info-message/info-message.component.d.ts +13 -0
  13. package/lib/list-items/list-text/list-text.component.d.ts +1 -1
  14. package/lib/list-items/list-widget.d.ts +1 -1
  15. package/lib/mds/mds-helper.service.d.ts +20 -3
  16. package/lib/mds-viewer/mds-editor-instance-service.abstract.d.ts +1 -1
  17. package/lib/mds-viewer/mds-viewer.component.d.ts +1 -1
  18. package/lib/mds-viewer/widget/mds-widget.component.d.ts +11 -8
  19. package/lib/node-entries/entries-model.d.ts +10 -1
  20. package/lib/node-entries/node-entries-card/node-entries-card.component.d.ts +1 -1
  21. package/lib/node-entries/node-entries-table/node-entries-table.component.d.ts +2 -0
  22. package/lib/node-entries/node-entries-wrapper.component.d.ts +21 -3
  23. package/lib/node-entries/node-entries.component.d.ts +5 -2
  24. package/lib/node-entries/node-entries.module.d.ts +1 -1
  25. package/lib/pipes/node-image.pipe.d.ts +1 -1
  26. package/lib/pipes/node-url.pipe.d.ts +11 -0
  27. package/lib/pipes/toolpermission.pipe.d.ts +10 -0
  28. package/lib/services/node-entries.service.d.ts +5 -1
  29. package/lib/services/node-helper.service.d.ts +11 -5
  30. package/lib/services/options-helper-data.service.d.ts +3 -3
  31. package/lib/services/render-helper.service.d.ts +2 -1
  32. package/lib/services/ui.service.d.ts +1 -0
  33. package/lib/translations/translation-loader.d.ts +3 -3
  34. package/lib/types/accessibillity.d.ts +1 -0
  35. package/lib/types/injection-tokens.d.ts +9 -16
  36. package/lib/types/list-item.d.ts +1 -1
  37. package/lib/types/option-item.d.ts +59 -20
  38. package/package.json +2 -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
@@ -105,15 +111,15 @@ mat-tab-group {
105
111
  }
106
112
  .mat-tab-group.mat-dark {
107
113
  .mat-tab-header {
108
- background-color: $workspaceTopBarBackground;
114
+ background-color: var(--workspaceTopBarBackground);
109
115
  }
110
116
  .mat-tab-header-pagination .mat-tab-header-pagination-chevron {
111
- border-color: $workspaceTopBarFontColor;
117
+ border-color: var(--workspaceTopBarFontColor);
112
118
  }
113
119
  .mat-tab-labels {
114
- background-color: $workspaceTopBarBackground;
120
+ background-color: var(--workspaceTopBarBackground);
115
121
  .mat-tab-label {
116
- color: $workspaceTopBarFontColor;
122
+ color: var(--workspaceTopBarFontColor);
117
123
  &.cdk-keyboard-focused:not(.mat-tab-disabled) {
118
124
  background-color: rgba(255, 255, 255, 0.2);
119
125
  }
@@ -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 {
@@ -289,10 +295,12 @@ body {
289
295
  --mdc-protected-button-container-color: white;
290
296
  }
291
297
  // improve default positioning of outlined fields with label
292
- .mat-mdc-text-field-wrapper.mdc-text-field--outlined {
293
- .mat-mdc-form-field-infix {
294
- padding-top: 20px;
295
- min-height: unset;
298
+ .mat-mdc-form-field:not(.mat-mdc-paginator-page-size-select) {
299
+ .mat-mdc-text-field-wrapper.mdc-text-field--outlined {
300
+ .mat-mdc-form-field-infix {
301
+ padding-top: 20px;
302
+ min-height: unset;
303
+ }
296
304
  }
297
305
  }
298
306
  .mat-mdc-checkbox {
@@ -27,6 +27,9 @@
27
27
  @mixin materialShadowSmall($important: false) {
28
28
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3) if($important, !important, null);
29
29
  }
30
+ @mixin materialShadowMedium($important: false, $opacity: 0.15) {
31
+ box-shadow: 0 0 12px rgba(0, 0, 0, $opacity) if($important, !important, null);
32
+ }
30
33
  @mixin materialShadowMediumLarge($important: false, $opacity: 0.6) {
31
34
  box-shadow: 0 0 25px rgba(0, 0, 0, $opacity) if($important, !important, null);
32
35
  }
@@ -37,14 +40,14 @@
37
40
  background-color: transparent;
38
41
  }
39
42
  &::-webkit-scrollbar {
40
- height: 10px;
43
+ height: 6px;
41
44
  background-color: transparent;
42
45
  }
43
46
  &::-webkit-scrollbar-thumb {
44
47
  max-width: 20px;
45
- border-radius: 10px;
48
+ border-radius: 6px;
46
49
  // -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
47
- background-color: var(--primary);
50
+ background-color: var(--palette-primary-200);
48
51
  }
49
52
  }
50
53
  @mixin removeDefaultFocus() {
@@ -54,10 +57,10 @@
54
57
  //respect element border radius
55
58
  @include removeDefaultFocus();
56
59
  @if $mode== 'outline' {
57
- outline: var(--focusWidth) solid var(--palette-primary-300);
60
+ outline: var(--focusWidth) solid var(--focusColor);
58
61
  outline-offset: 2px;
59
62
  } @else if $mode== 'border' {
60
- border: var(--focusWidth) solid var(--palette-primary-300);
63
+ border: var(--focusWidth) solid var(--focusColor);
61
64
  }
62
65
  }
63
66
  // Apply the content styles in contrast mode. This is just enough contrast to be WCAG complient ---
@@ -6,9 +6,10 @@
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
+ --defaultBackground: #fff;
12
13
  --aiColorChipRemove: #555;
13
14
  --aiColorChipBorder: #ddd;
14
15
  --aiColorChipText: var(--aiColor);
@@ -16,7 +17,10 @@
16
17
  --textLight: #585858;
17
18
  --textMediumLight: #888;
18
19
  --textMain: #383838;
20
+ --workspaceTopBarBackground: #383838;
21
+ --workspaceTopBarFontColor: #fff;
19
22
  --cardWidth: 240px;
23
+ --borderRadiusCards: 20px;
20
24
  --chipsSeperatorLineColor: #e2e2e2;
21
25
  --colorStatusPositive: #40bf8e;
22
26
  --colorStatusNegative: var(--warning);
@@ -24,8 +28,12 @@
24
28
  --nodeVirtualColor: #42ca8d;
25
29
  --nodeVirtualColorLight: #b8fcdd;
26
30
  --transitionNormal: 0.2s;
31
+ --focusColor: var(--palette-primary-300);
27
32
  --focusWidth: 2px;
28
33
  --fontSizeXSmall: 85%;
34
+ --topBarSearchFocusColor: var(--palette-primary-300);
35
+ --workspaceTopBarSafeBackground: #963a3a;
36
+ --workspaceTopBarNewAlpha: 0.1;
29
37
  --itemSelectedTextColor: var(--palette-primary-700);
30
38
  --listItemSelectedBackground: var(--palette-primary-50);
31
39
  --listItemSelectedBackgroundEffect: linear-gradient(