WIP on updating helpmode keys and links
This commit is contained in:
parent
643df41d09
commit
aa7926da8d
@ -1,5 +1,5 @@
|
|||||||
.help-mode-on-mouse-over {
|
.help-mode-on-mouse-over {
|
||||||
z-index: 100;
|
z-index: 1000;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -5px;
|
top: -5px;
|
||||||
left: -5px;
|
left: -5px;
|
||||||
@ -17,12 +17,20 @@
|
|||||||
cursor: help;
|
cursor: help;
|
||||||
}
|
}
|
||||||
|
|
||||||
.help-mode-on-mouse-over-filters,
|
.help-mode-on-mouse-over-new-dossier-button,
|
||||||
.help-mode-on-mouse-over-quick-filters,
|
.help-mode-on-mouse-over-filter-dossier-list,
|
||||||
|
.help-mode-on-mouse-over-filter-document-list,
|
||||||
|
.help-mode-on-mouse-over-dossiers-quickfilter-my-dossiers,
|
||||||
.help-mode-on-mouse-over-new-dossier {
|
.help-mode-on-mouse-over-new-dossier {
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.help-mode-on-mouse-over-notifications {
|
.help-mode-on-mouse-over-search-in-entire-application,
|
||||||
|
.help-mode-on-mouse-over-open-notifications {
|
||||||
padding-left: 4px;
|
padding-left: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.help-mode-on-mouse-over-open-usermenu {
|
||||||
|
padding-top: 1px;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import { HelpModeDialogComponent } from './help-mode-dialog/help-mode-dialog.com
|
|||||||
import { HelpModeComponent } from './help-mode/help-mode.component';
|
import { HelpModeComponent } from './help-mode/help-mode.component';
|
||||||
import { HelpModeDirective } from './help-mode.directive';
|
import { HelpModeDirective } from './help-mode.directive';
|
||||||
import { IqserButtonsModule } from '../buttons';
|
import { IqserButtonsModule } from '../buttons';
|
||||||
import { HelpModeService } from './help-mode.service';
|
|
||||||
import { IqserIconsModule } from '../icons';
|
import { IqserIconsModule } from '../icons';
|
||||||
|
|
||||||
const matModules = [MatDialogModule];
|
const matModules = [MatDialogModule];
|
||||||
@ -16,6 +15,5 @@ const components = [HelpModeComponent, HelpModeDialogComponent, HelpModeDirectiv
|
|||||||
declarations: [...components],
|
declarations: [...components],
|
||||||
imports: [CommonModule, IqserIconsModule, ...matModules, TranslateModule, IqserButtonsModule],
|
imports: [CommonModule, IqserIconsModule, ...matModules, TranslateModule, IqserButtonsModule],
|
||||||
exports: [...components],
|
exports: [...components],
|
||||||
providers: [HelpModeService],
|
|
||||||
})
|
})
|
||||||
export class IqserHelpModeModule {}
|
export class IqserHelpModeModule {}
|
||||||
|
|||||||
@ -10,7 +10,9 @@ interface Helper {
|
|||||||
readonly helperElement: HTMLElement;
|
readonly helperElement: HTMLElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Injectable()
|
@Injectable({
|
||||||
|
providedIn: 'root',
|
||||||
|
})
|
||||||
export class HelpModeService {
|
export class HelpModeService {
|
||||||
private readonly _isHelpModeActive$ = new BehaviorSubject(false);
|
private readonly _isHelpModeActive$ = new BehaviorSubject(false);
|
||||||
readonly isHelpModeActive$ = this._isHelpModeActive$.asObservable();
|
readonly isHelpModeActive$ = this._isHelpModeActive$.asObservable();
|
||||||
@ -73,7 +75,7 @@ export class HelpModeService {
|
|||||||
if (!this.isHelpModeActive) {
|
if (!this.isHelpModeActive) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.values(this._elements).forEach(({ helperElement }) => {
|
Object.values(this._elements).forEach(({ helperElement }) => {
|
||||||
this._renderer.addClass(helperElement, 'help-highlight');
|
this._renderer.addClass(helperElement, 'help-highlight');
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@ -18,6 +18,7 @@ import { WorkflowComponent } from './workflow/workflow.component';
|
|||||||
import { DragDropModule } from '@angular/cdk/drag-drop';
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
||||||
import { PageHeaderComponent } from './page-header/page-header.component';
|
import { PageHeaderComponent } from './page-header/page-header.component';
|
||||||
import { IqserButtonsModule } from '../buttons';
|
import { IqserButtonsModule } from '../buttons';
|
||||||
|
import { IqserHelpModeModule } from '../help-mode';
|
||||||
|
|
||||||
const matModules = [MatTooltipModule];
|
const matModules = [MatTooltipModule];
|
||||||
const components = [
|
const components = [
|
||||||
@ -39,6 +40,7 @@ const modules = [
|
|||||||
IqserEmptyStatesModule,
|
IqserEmptyStatesModule,
|
||||||
ScrollingModule,
|
ScrollingModule,
|
||||||
RouterModule,
|
RouterModule,
|
||||||
|
IqserHelpModeModule,
|
||||||
];
|
];
|
||||||
const utils = [SyncWidthDirective];
|
const utils = [SyncWidthDirective];
|
||||||
|
|
||||||
|
|||||||
@ -3,4 +3,5 @@ import { ActionConfig } from './action-config.model';
|
|||||||
|
|
||||||
export interface ButtonConfig extends ActionConfig {
|
export interface ButtonConfig extends ActionConfig {
|
||||||
readonly type?: IconButtonType;
|
readonly type?: IconButtonType;
|
||||||
|
readonly helpModeKey?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<div *ngIf="pageLabel" class="breadcrumb">{{ pageLabel }}</div>
|
<div *ngIf="pageLabel" class="breadcrumb">{{ pageLabel }}</div>
|
||||||
|
|
||||||
<div *ngIf="filters$ | async as filters" class="filters">
|
<div *ngIf="filters$ | async as filters" class="filters" [iqserHelpMode]="helpModeKey">
|
||||||
<div *ngIf="filters.length && searchPosition !== searchPositions.beforeFilters" translate="filters.filter-by"></div>
|
<div *ngIf="filters.length && searchPosition !== searchPositions.beforeFilters" translate="filters.filter-by"></div>
|
||||||
|
|
||||||
<ng-container *ngIf="searchPosition === searchPositions.beforeFilters" [ngTemplateOutlet]="searchBar"></ng-container>
|
<ng-container *ngIf="searchPosition === searchPositions.beforeFilters" [ngTemplateOutlet]="searchBar"></ng-container>
|
||||||
@ -25,6 +25,7 @@
|
|||||||
[icon]="config.icon"
|
[icon]="config.icon"
|
||||||
[label]="config.label | translate"
|
[label]="config.label | translate"
|
||||||
[type]="config.type"
|
[type]="config.type"
|
||||||
|
[iqserHelpMode]="config.helpModeKey"
|
||||||
></iqser-icon-button>
|
></iqser-icon-button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,7 @@ export class PageHeaderComponent<T extends IListable> {
|
|||||||
@Input() viewModeSelection?: TemplateRef<unknown>;
|
@Input() viewModeSelection?: TemplateRef<unknown>;
|
||||||
@Input() searchPlaceholder?: string;
|
@Input() searchPlaceholder?: string;
|
||||||
@Input() searchWidth?: number | 'full';
|
@Input() searchWidth?: number | 'full';
|
||||||
|
@Input() helpModeKey?: 'filter-dossier-list' | 'filter-document-list';
|
||||||
@Input() searchPosition: SearchPosition = SearchPositions.afterFilters;
|
@Input() searchPosition: SearchPosition = SearchPositions.afterFilters;
|
||||||
@Output() readonly closeAction = new EventEmitter();
|
@Output() readonly closeAction = new EventEmitter();
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<ng-container [ngTemplateOutlet]="bulkActions"></ng-container>
|
<ng-container [ngTemplateOutlet]="bulkActions"></ng-container>
|
||||||
|
|
||||||
<iqser-quick-filters *ngIf="quickFilters$ | async"></iqser-quick-filters>
|
<iqser-quick-filters *ngIf="quickFilters$ | async" iqserHelpMode="dossiers-quickfilter-my-dossiers"></iqser-quick-filters>
|
||||||
|
|
||||||
<!-- Custom content-->
|
<!-- Custom content-->
|
||||||
<ng-content></ng-content>
|
<ng-content></ng-content>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user