@alfresco/adf-core 7.0.0-alpha.9-13356337662 → 7.0.0-alpha.9-13367447514

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.
@@ -14,15 +14,17 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { EventEmitter } from '@angular/core';
17
+ import { EventEmitter, QueryList } from '@angular/core';
18
18
  import { LanguageService } from './service/language.service';
19
19
  import { Observable } from 'rxjs';
20
20
  import { LanguageItem } from '../common/services/language-item.interface';
21
+ import { MatMenuItem } from '@angular/material/menu';
21
22
  import * as i0 from "@angular/core";
22
23
  export declare class LanguageMenuComponent {
23
24
  private languageService;
24
25
  /** Emitted when the language change */
25
26
  changedLanguage: EventEmitter<LanguageItem>;
27
+ menuItems: QueryList<MatMenuItem>;
26
28
  languages$: Observable<LanguageItem[]>;
27
29
  constructor(languageService: LanguageService);
28
30
  changeLanguage(language: LanguageItem): void;
@@ -14,11 +14,17 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { EventEmitter } from '@angular/core';
17
+ import { AfterViewInit, EventEmitter } from '@angular/core';
18
18
  import { LanguageItem } from '../common/services/language-item.interface';
19
+ import { MatMenu, MatMenuItem } from '@angular/material/menu';
20
+ import { LanguageMenuComponent } from './language-menu.component';
19
21
  import * as i0 from "@angular/core";
20
- export declare class LanguagePickerComponent {
22
+ export declare class LanguagePickerComponent implements AfterViewInit {
21
23
  changedLanguage: EventEmitter<LanguageItem>;
24
+ menu: MatMenu;
25
+ menuItem: MatMenuItem;
26
+ languageMenuComponent: LanguageMenuComponent;
27
+ ngAfterViewInit(): void;
22
28
  static ɵfac: i0.ɵɵFactoryDeclaration<LanguagePickerComponent, never>;
23
29
  static ɵcmp: i0.ɵɵComponentDeclaration<LanguagePickerComponent, "adf-picker-button", never, {}, { "changedLanguage": "changedLanguage"; }, never, never, true, never>;
24
30
  }
@@ -44,13 +44,11 @@ export declare class NotificationHistoryComponent implements OnInit, AfterViewIn
44
44
  addNewNotification(notification: NotificationModel): void;
45
45
  saveNotifications(): void;
46
46
  onMenuOpened(): void;
47
- onKeyPress(event: KeyboardEvent): void;
48
- private closeUserModal;
49
47
  markAsRead(): void;
50
48
  createPagination(): void;
51
- loadMore(): void;
49
+ loadMore($event: MouseEvent): void;
52
50
  hasMoreNotifications(): boolean;
53
- onNotificationClick(notification: NotificationModel): void;
51
+ onNotificationClick(notification: NotificationModel, $event: MouseEvent): void;
54
52
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationHistoryComponent, never>;
55
53
  static ɵcmp: i0.ɵɵComponentDeclaration<NotificationHistoryComponent, "adf-notification-history", never, { "menuPositionX": { "alias": "menuPositionX"; "required": false; }; "menuPositionY": { "alias": "menuPositionY"; "required": false; }; "maxNotifications": { "alias": "maxNotifications"; "required": false; }; }, {}, never, never, true, never>;
56
54
  }
@@ -3,37 +3,6 @@
3
3
  $notification-item-height: 72px;
4
4
 
5
5
  .adf {
6
- &-notification-history-container {
7
- margin-top: 1px;
8
- }
9
-
10
- &-notification-history-list {
11
- .adf-notification-history-menu-item-content-wrapper {
12
- height: 100%;
13
- display: flex;
14
- align-items: center;
15
- }
16
-
17
- /* stylelint-disable selector-class-pattern */
18
- .mdc-list-item__secondary-text::before {
19
- height: auto;
20
- }
21
- }
22
-
23
- &-notification-history-menu-item-content {
24
- display: flex;
25
- flex-direction: column;
26
- box-sizing: border-box;
27
- overflow: hidden;
28
- padding: 0 0 0 16px;
29
-
30
- p {
31
- line-height: 16px;
32
- margin-bottom: 0;
33
- color: var(--theme-sidenav-user-menu-color);
34
- }
35
- }
36
-
37
6
  &-notification-history-menu-title {
38
7
  font-size: 14px;
39
8
  -webkit-font-smoothing: subpixel-antialiased;
@@ -44,6 +13,7 @@ $notification-item-height: 72px;
44
13
  padding: 0;
45
14
  min-width: 40px;
46
15
  height: 40px;
16
+ margin-top: 1px;
47
17
 
48
18
  .adf-notification-history-menu_button-icon {
49
19
  margin-right: 0;
@@ -54,18 +24,67 @@ $notification-item-height: 72px;
54
24
  }
55
25
  }
56
26
 
57
- &-notification-history-list #{$mat-subheader} {
58
- display: flex;
59
- justify-content: space-between;
60
- align-items: center;
61
- }
62
-
63
- &-notification-history-menu:has(.adf-notification-history-list) {
64
- .adf-notification-history-menu-item {
65
- cursor: pointer;
66
- height: $notification-item-height;
27
+ &-notification-history-menu {
28
+ .adf-notification-history-list-header {
29
+ padding: 10.5px 16px;
30
+ display: flex;
31
+ justify-content: space-between;
67
32
  align-items: center;
68
- padding-left: 16px;
33
+
34
+ .adf-notification-history-mark-as-read {
35
+ display: flex;
36
+ padding: 10px;
37
+ width: auto;
38
+ margin: 4px 0;
39
+
40
+ &:hover,
41
+ &:focus,
42
+ &:active {
43
+ background: none;
44
+ }
45
+
46
+ &-icon {
47
+ margin: 0;
48
+ color: inherit;
49
+ }
50
+ }
51
+ }
52
+
53
+ .adf-notification-history-menu-title {
54
+ line-height: 28px;
55
+ }
56
+
57
+ .adf-notification-history-item-list {
58
+ padding-top: 8px;
59
+
60
+ .adf-notification-history-menu-item {
61
+ cursor: pointer;
62
+ height: $notification-item-height;
63
+ align-items: center;
64
+ display: block;
65
+ padding: 0 14px;
66
+
67
+ &-content {
68
+ height: 100%;
69
+ display: flex;
70
+ align-items: center;
71
+
72
+ &-message {
73
+ display: flex;
74
+ flex-direction: column;
75
+ justify-content: center;
76
+ box-sizing: border-box;
77
+ overflow: hidden;
78
+ padding: 0 0 0 16px;
79
+
80
+ p {
81
+ line-height: normal;
82
+ margin: 0;
83
+ color: var(--theme-sidenav-user-menu-color);
84
+ }
85
+ }
86
+ }
87
+ }
69
88
  }
70
89
 
71
90
  .adf-notification-history-menu-item:focus {
@@ -77,20 +96,29 @@ $notification-item-height: 72px;
77
96
  background-color: var(--adf-theme-background-hover-color);
78
97
  }
79
98
 
80
- .adf-notification-history-menu-message:is(p),
81
- .adf-notification-history-menu-no-message:is(p) {
99
+ .adf-notification-history-menu-message:is(p) {
100
+ white-space: nowrap;
101
+ overflow: hidden;
102
+ text-overflow: ellipsis;
82
103
  font-size: var(--theme-body-1-font-size);
83
104
  }
84
105
 
85
- .adf-notification-history-menu-no-message-text {
86
- font-size: 16px;
106
+ .adf-notification-history-item-list .adf-notification-history-menu-no-message-text {
87
107
  color: var(--theme-sidenav-user-menu-color);
88
- margin-bottom: 0;
89
- -webkit-font-smoothing: subpixel-antialiased;
108
+ margin: 0;
109
+ padding: 12px 16px;
110
+ opacity: inherit;
111
+ border: none;
112
+
113
+ span {
114
+ font-size: 16px;
115
+ -webkit-font-smoothing: subpixel-antialiased;
116
+ }
90
117
  }
91
118
 
92
119
  .adf-notification-history-menu-date.adf-notification-history-menu-text:is(p) {
93
120
  font-size: var(--theme-caption-font-size);
121
+ text-indent: 3px;
94
122
  }
95
123
 
96
124
  .adf-notification-history-menu-initiator {
@@ -119,13 +147,11 @@ $notification-item-height: 72px;
119
147
  padding: 10px;
120
148
 
121
149
  button {
150
+ justify-content: center;
122
151
  width: 100%;
152
+ min-height: 36px;
123
153
  }
124
154
  }
125
-
126
- &-notification-history-mark-as-read {
127
- margin: 4px 0;
128
- }
129
155
  }
130
156
 
131
157
  #{$mat-menu-panel}.adf-notification-history-menu.adf-notification-history-menu-panel {
@@ -134,18 +160,5 @@ $notification-item-height: 72px;
134
160
 
135
161
  #{$mat-menu-content} {
136
162
  padding: 0;
137
-
138
- #{$mat-list} {
139
- padding: 8px 0 0;
140
-
141
- #{$mat-list-item-unscoped-content} {
142
- display: flex;
143
- }
144
-
145
- #{$mat-list-item-content} {
146
- display: flex;
147
- align-items: center;
148
- }
149
- }
150
163
  }
151
164
  }
@@ -87,7 +87,6 @@ $mat-calendar-table-header: '.mat-calendar-table-header';
87
87
  $mat-calendar-body-disabled: '.mat-calendar-body-disabled';
88
88
  $mat-toolbar: '.mat-toolbar';
89
89
  $mat-slide-toggle: '.mat-mdc-slide-toggle';
90
- $mat-list: '.mat-mdc-list';
91
90
  $mat-list-item-content: '.mdc-list-item__content';
92
91
  $mat-list-item-unscoped-content: '.mat-mdc-list-item-unscoped-content';
93
92
  $mat-text-field-no-label: '.mdc-text-field--no-label';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfresco/adf-core",
3
3
  "description": "Alfresco ADF core",
4
- "version": "7.0.0-alpha.9-13356337662",
4
+ "version": "7.0.0-alpha.9-13367447514",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "repository": {
7
7
  "type": "git",
@@ -75,8 +75,8 @@
75
75
  "@angular/router": ">=16.0.0",
76
76
  "@mat-datetimepicker/core": ">=12.0.1",
77
77
  "@ngx-translate/core": ">=14.0.0",
78
- "@alfresco/js-api": ">=8.0.0-alpha.9-13356337662",
79
- "@alfresco/adf-extensions": ">=7.0.0-alpha.9-13356337662",
78
+ "@alfresco/js-api": ">=8.0.0-alpha.9-13367447514",
79
+ "@alfresco/adf-extensions": ">=7.0.0-alpha.9-13367447514",
80
80
  "minimatch": ">=10.0.0",
81
81
  "pdfjs-dist": ">=3.3.122",
82
82
  "ts-morph": ">=20.0.0"
@@ -3,13 +3,13 @@
3
3
  "schematics": {
4
4
  "move-out-alfresco-api": {
5
5
  "description": "Update alfresco-api imports",
6
- "version": "7.0.0-alpha.9-13356337662",
6
+ "version": "7.0.0-alpha.9-13367447514",
7
7
  "factory": "./7_0_0/index#updateAlfrescoApiImports"
8
8
  }
9
9
  },
10
10
  "packageJsonUpdates": {
11
11
  "move-out-alfresco-api": {
12
- "version": "7.0.0-alpha.9-13356337662",
12
+ "version": "7.0.0-alpha.9-13367447514",
13
13
  "packages": {
14
14
  "ts-morph": {
15
15
  "version": "^20.0.0",
@@ -17,27 +17,27 @@
17
17
  "addToPackageJson": "devDependencies"
18
18
  },
19
19
  "@alfresco/adf-content-services": {
20
- "version": "7.0.0-alpha.9-13356337662",
20
+ "version": "7.0.0-alpha.9-13367447514",
21
21
  "alwaysAddToPackageJson": false
22
22
  },
23
23
  "@alfresco/adf-extensions": {
24
- "version": "7.0.0-alpha.9-13356337662",
24
+ "version": "7.0.0-alpha.9-13367447514",
25
25
  "alwaysAddToPackageJson": false
26
26
  },
27
27
  "@alfresco/adf-process-services-cloud": {
28
- "version": "7.0.0-alpha.9-13356337662",
28
+ "version": "7.0.0-alpha.9-13367447514",
29
29
  "alwaysAddToPackageJson": false
30
30
  },
31
31
  "@alfresco/adf-process-services": {
32
- "version": "7.0.0-alpha.9-13356337662",
32
+ "version": "7.0.0-alpha.9-13367447514",
33
33
  "alwaysAddToPackageJson": false
34
34
  },
35
35
  "@alfresco/eslint-plugin-eslint-angular": {
36
- "version": "7.0.0-alpha.9-13356337662",
36
+ "version": "7.0.0-alpha.9-13367447514",
37
37
  "alwaysAddToPackageJson": false
38
38
  },
39
39
  "@alfresco/js-api": {
40
- "version": "8.0.0-alpha.9-13356337662",
40
+ "version": "8.0.0-alpha.9-13367447514",
41
41
  "alwaysAddToPackageJson": false
42
42
  }
43
43
  }