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.
- package/assets/scss/branding.scss +4 -2
- package/assets/scss/material-theme.scss +19 -11
- package/assets/scss/mixins.scss +8 -5
- package/assets/scss/variables.scss +9 -1
- package/fesm2022/ngx-edu-sharing-ui.mjs +890 -678
- package/fesm2022/ngx-edu-sharing-ui.mjs.map +1 -1
- package/lib/common/edu-sharing-ui-common.module.d.ts +27 -24
- 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 +7 -0
- package/lib/info-message/info-message.component.d.ts +13 -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 +20 -3
- package/lib/mds-viewer/mds-editor-instance-service.abstract.d.ts +1 -1
- package/lib/mds-viewer/mds-viewer.component.d.ts +1 -1
- package/lib/mds-viewer/widget/mds-widget.component.d.ts +11 -8
- package/lib/node-entries/entries-model.d.ts +10 -1
- package/lib/node-entries/node-entries-card/node-entries-card.component.d.ts +1 -1
- package/lib/node-entries/node-entries-table/node-entries-table.component.d.ts +2 -0
- package/lib/node-entries/node-entries-wrapper.component.d.ts +21 -3
- package/lib/node-entries/node-entries.component.d.ts +5 -2
- package/lib/node-entries/node-entries.module.d.ts +1 -1
- package/lib/pipes/node-image.pipe.d.ts +1 -1
- package/lib/pipes/node-url.pipe.d.ts +11 -0
- package/lib/pipes/toolpermission.pipe.d.ts +10 -0
- package/lib/services/node-entries.service.d.ts +5 -1
- package/lib/services/node-helper.service.d.ts +11 -5
- package/lib/services/options-helper-data.service.d.ts +3 -3
- package/lib/services/render-helper.service.d.ts +2 -1
- package/lib/services/ui.service.d.ts +1 -0
- package/lib/translations/translation-loader.d.ts +3 -3
- package/lib/types/accessibillity.d.ts +1 -0
- package/lib/types/injection-tokens.d.ts +9 -16
- package/lib/types/list-item.d.ts +1 -1
- package/lib/types/option-item.d.ts +59 -20
- package/package.json +2 -1
|
@@ -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:
|
|
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:
|
|
114
|
+
background-color: var(--workspaceTopBarBackground);
|
|
109
115
|
}
|
|
110
116
|
.mat-tab-header-pagination .mat-tab-header-pagination-chevron {
|
|
111
|
-
border-color:
|
|
117
|
+
border-color: var(--workspaceTopBarFontColor);
|
|
112
118
|
}
|
|
113
119
|
.mat-tab-labels {
|
|
114
|
-
background-color:
|
|
120
|
+
background-color: var(--workspaceTopBarBackground);
|
|
115
121
|
.mat-tab-label {
|
|
116
|
-
color:
|
|
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:
|
|
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-
|
|
293
|
-
.mat-mdc-
|
|
294
|
-
|
|
295
|
-
|
|
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 {
|
package/assets/scss/mixins.scss
CHANGED
|
@@ -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:
|
|
43
|
+
height: 6px;
|
|
41
44
|
background-color: transparent;
|
|
42
45
|
}
|
|
43
46
|
&::-webkit-scrollbar-thumb {
|
|
44
47
|
max-width: 20px;
|
|
45
|
-
border-radius:
|
|
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(--
|
|
60
|
+
outline: var(--focusWidth) solid var(--focusColor);
|
|
58
61
|
outline-offset: 2px;
|
|
59
62
|
} @else if $mode== 'border' {
|
|
60
|
-
border: var(--focusWidth) solid var(--
|
|
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: #
|
|
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(
|