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.
Files changed (36) hide show
  1. package/assets/scss/branding.scss +4 -3
  2. package/assets/scss/material-theme.scss +38 -3
  3. package/assets/scss/mixins.scss +2 -2
  4. package/assets/scss/variables-scss.scss +2 -1
  5. package/assets/scss/variables.scss +8 -1
  6. package/fesm2022/ngx-edu-sharing-ui.mjs +2071 -1864
  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/list-items/list-text/list-text.component.d.ts +1 -1
  13. package/lib/list-items/list-widget.d.ts +1 -1
  14. package/lib/mds/mds-helper.service.d.ts +14 -2
  15. package/lib/mds-viewer/mds-editor-instance-service.abstract.d.ts +3 -2
  16. package/lib/mds-viewer/mds-viewer.component.d.ts +1 -0
  17. package/lib/mds-viewer/mds-viewer.service.d.ts +14 -1
  18. package/lib/mds-viewer/widget/mds-widget.component.d.ts +15 -13
  19. package/lib/node-entries/entries-model.d.ts +13 -2
  20. package/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.d.ts +0 -2
  21. package/lib/node-entries/node-entries-global.service.d.ts +3 -0
  22. package/lib/node-entries/node-entries-table/node-entries-table.component.d.ts +11 -3
  23. package/lib/node-entries/node-entries-templates.service.d.ts +4 -0
  24. package/lib/node-entries/node-entries-wrapper.component.d.ts +18 -4
  25. package/lib/node-entries/node-entries.module.d.ts +1 -1
  26. package/lib/node-entries/node-type-badge/node-type-badge.component.d.ts +13 -4
  27. package/lib/pipes/node-image.pipe.d.ts +1 -1
  28. package/lib/services/node-entries.service.d.ts +7 -2
  29. package/lib/services/node-helper.service.d.ts +6 -4
  30. package/lib/services/render-helper.service.d.ts +2 -1
  31. package/lib/services/ui.service.d.ts +4 -0
  32. package/lib/translations/translation-loader.d.ts +3 -3
  33. package/lib/types/injection-tokens.d.ts +9 -16
  34. package/lib/types/option-item.d.ts +10 -4
  35. package/lib/util/ui-constants.d.ts +1 -0
  36. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  branding is deprecated. Use the "themeColors" in the client.config
3
3
  */
4
- $workspaceTopBarBackground: #383838;
5
- $workspaceTopBarFontColor: #fff;
6
- $customIcons: false;
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
@@ -44,8 +50,37 @@ $dark-disabled-text: rgba(black, 0.54); // increased contrast
44
50
  $dark-secondary-text: rgba(black, 0.54);
45
51
 
46
52
  :root {
53
+ --mat-sys-corner-full: 9999px;
47
54
  --mdc-fab-container-color: #{$backgroundColor};
48
55
  }
56
+ :root {
57
+ --mdc-switch-track-width: 48px;
58
+ --mdc-switch-track-height: 26px;
59
+ --mat-switch-with-icon-handle-size: 22px;
60
+ --mdc-switch-handle-width: 22px;
61
+ --mdc-switch-handle-height: 22px;
62
+ --mat-switch-pressed-handle-size: 22px;
63
+ --mat-switch-track-outline-color: var(--mdc-switch-unselected-handle-color);
64
+ --mdc-switch-handle-shape: var(--mat-sys-corner-full);
65
+ --mdc-switch-track-shape: var(--mat-sys-corner-full);
66
+ }
67
+ html .mat-mdc-slide-toggle {
68
+ --mat-switch-track-outline-width: 2px;
69
+ --mat-switch-unselected-with-icon-handle-horizontal-margin: 0 4px;
70
+ --mat-switch-unselected-pressed-handle-horizontal-margin: 0 4px;
71
+ --mat-switch-selected-with-icon-handle-horizontal-margin: 0 -2px;
72
+ --mat-switch-selected-pressed-handle-horizontal-margin: 0 -2px;
73
+ --mdc-switch-handle-elevation-shadow: none;
74
+ --mat-switch-track-outline-color: var(--mdc-switch-unselected-handle-color);
75
+ }
76
+ .mdc-switch--selected {
77
+ --mdc-switch-selected-icon-size: 16px;
78
+ --mdc-switch-selected-handle-color: var(--palette-primary-contrast-500);
79
+ --mdc-switch-selected-focus-handle-color: var(--palette-primary-contrast-500);
80
+ --mdc-switch-selected-hover-handle-color: var(--palette-primary-contrast-500);
81
+ --mdc-switch-selected-pressed-handle-color: var(--palette-primary-contrast-500);
82
+ --mdc-switch-selected-icon-color: var(--palette-primary-500);
83
+ }
49
84
 
50
85
  .mdc-button {
51
86
  span {
@@ -148,7 +183,7 @@ mat-tab-group {
148
183
  // `color="warn"`
149
184
  &.mat-warn {
150
185
  // Red background, same as negative
151
- background-color: $warning;
186
+ background-color: var(--palette-warn-500);
152
187
  color: white;
153
188
  }
154
189
  &.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,8 @@
6
6
  :root {
7
7
  --primary: var(--palette-primary-500);
8
8
  --warning: #cd2457;
9
- --aiColor: #6d176e;
9
+ --aiColor: #2c0799;
10
+ --aiColorChipBg: color-mix(in srgb, var(--aiColor), #fff 75%);
10
11
  --aiColorText: #fff;
11
12
  --aiColorChip: #fff;
12
13
  --aiColorChipRemove: #555;
@@ -24,8 +25,14 @@
24
25
  --nodeVirtualColor: #42ca8d;
25
26
  --nodeVirtualColorLight: #b8fcdd;
26
27
  --transitionNormal: 0.2s;
28
+ --genericSeperatorLineColor: #ececec;
29
+ --tableSeperatorLineColor: #d2d2d2;
30
+ --focusColor: var(--palette-primary-300);
27
31
  --focusWidth: 2px;
28
32
  --fontSizeXSmall: 85%;
33
+ --topBarSearchFocusColor: var(--palette-primary-300);
34
+ --workspaceTopBarSafeBackground: #963a3a;
35
+ --workspaceTopBarNewAlpha: 0.1;
29
36
  --itemSelectedTextColor: var(--palette-primary-700);
30
37
  --listItemSelectedBackground: var(--palette-primary-50);
31
38
  --listItemSelectedBackgroundEffect: linear-gradient(