@igo2/common 20.1.0-next.3 → 20.1.0-next.30
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/badge/index.d.ts +1 -1
- package/drag-drop/index.d.ts +48 -35
- package/entity/index.d.ts +90 -24
- package/fesm2022/igo2-common-action.mjs +26 -34
- package/fesm2022/igo2-common-action.mjs.map +1 -1
- package/fesm2022/igo2-common-backdrop.mjs +7 -7
- package/fesm2022/igo2-common-badge.mjs +7 -7
- package/fesm2022/igo2-common-badge.mjs.map +1 -1
- package/fesm2022/igo2-common-clickout.mjs +7 -7
- package/fesm2022/igo2-common-clone.mjs +7 -7
- package/fesm2022/igo2-common-collapsible.mjs +10 -10
- package/fesm2022/igo2-common-color.mjs +7 -7
- package/fesm2022/igo2-common-confirm-dialog.mjs +10 -10
- package/fesm2022/igo2-common-context-menu.mjs +10 -10
- package/fesm2022/igo2-common-custom-html.mjs +10 -10
- package/fesm2022/igo2-common-datepicker.mjs +3 -3
- package/fesm2022/igo2-common-dom.mjs +7 -7
- package/fesm2022/igo2-common-drag-drop.mjs +242 -126
- package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
- package/fesm2022/igo2-common-dynamic-component.mjs +14 -14
- package/fesm2022/igo2-common-entity.mjs +159 -43
- package/fesm2022/igo2-common-entity.mjs.map +1 -1
- package/fesm2022/igo2-common-flexible.mjs +7 -7
- package/fesm2022/igo2-common-form.mjs +50 -50
- package/fesm2022/igo2-common-home-button.mjs +7 -7
- package/fesm2022/igo2-common-icon.mjs +7 -19
- package/fesm2022/igo2-common-icon.mjs.map +1 -1
- package/fesm2022/igo2-common-image.mjs +11 -11
- package/fesm2022/igo2-common-image.mjs.map +1 -1
- package/fesm2022/igo2-common-interactive-tour.mjs +13 -13
- package/fesm2022/igo2-common-json-dialog.mjs +10 -10
- package/fesm2022/igo2-common-keyvalue.mjs +7 -7
- package/fesm2022/igo2-common-list.mjs +11 -11
- package/fesm2022/igo2-common-list.mjs.map +1 -1
- package/fesm2022/igo2-common-panel.mjs +8 -8
- package/fesm2022/igo2-common-panel.mjs.map +1 -1
- package/fesm2022/igo2-common-resizable-bar.mjs +6 -6
- package/fesm2022/igo2-common-select-value-dialog.mjs +10 -10
- package/fesm2022/igo2-common-sidenav.mjs +7 -7
- package/fesm2022/igo2-common-spinner.mjs +10 -10
- package/fesm2022/igo2-common-stop-propagation.mjs +10 -10
- package/fesm2022/igo2-common-table.mjs +7 -7
- package/fesm2022/igo2-common-timepicker.mjs +3 -3
- package/fesm2022/igo2-common-tool.mjs +16 -16
- package/fesm2022/igo2-common-tool.mjs.map +1 -1
- package/fesm2022/igo2-common-widget.mjs +14 -14
- package/fesm2022/igo2-common-workspace.mjs +18 -18
- package/icon/index.d.ts +1 -3
- package/package.json +5 -4
- package/src/style/partial/common.variables.scss +0 -1
package/badge/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare class IgoBadgeIconDirective implements OnInit {
|
|
|
20
20
|
private inheritColor;
|
|
21
21
|
set igoMatBadgeColor(value: string);
|
|
22
22
|
private color;
|
|
23
|
-
set igoMatBadgeBackgroundColor(value: string);
|
|
23
|
+
set igoMatBadgeBackgroundColor(value: string | null);
|
|
24
24
|
private backgroundColor;
|
|
25
25
|
get badge(): any;
|
|
26
26
|
private originalColor;
|
package/drag-drop/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnDestroy, ModuleWithProviders } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
3
|
+
import { CdkTree } from '@angular/cdk/tree';
|
|
5
4
|
import { MatTreeNode } from '@angular/material/tree';
|
|
6
5
|
|
|
7
6
|
declare class DragAndDropDirective {
|
|
@@ -17,13 +16,10 @@ declare class DragAndDropDirective {
|
|
|
17
16
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DragAndDropDirective, "[igoDragAndDrop]", never, { "allowedExtensions": { "alias": "allowedExtensions"; "required": false; "isSignal": true; }; }, { "filesDropped": "filesDropped"; "filesInvalid": "filesInvalid"; }, never, never, true, never>;
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
interface
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
level: number;
|
|
25
|
-
descendantLevels?: number;
|
|
26
|
-
data: T;
|
|
19
|
+
interface TreeDropEvent<T> {
|
|
20
|
+
node: T;
|
|
21
|
+
ref: T;
|
|
22
|
+
position: DropPositionType;
|
|
27
23
|
}
|
|
28
24
|
interface DropPosition {
|
|
29
25
|
x: number;
|
|
@@ -32,20 +28,19 @@ interface DropPosition {
|
|
|
32
28
|
type: DropPositionType;
|
|
33
29
|
}
|
|
34
30
|
type DropPositionType = 'above' | 'below' | 'inside';
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
position: DropPositionType;
|
|
31
|
+
interface DropPermission {
|
|
32
|
+
canDrop: boolean;
|
|
33
|
+
message?: string;
|
|
34
|
+
params?: Record<string, unknown>;
|
|
40
35
|
}
|
|
36
|
+
|
|
41
37
|
interface DragNodeListeners {
|
|
42
38
|
element: HTMLElement;
|
|
43
39
|
listeners: [string, EventListenerOrEventListenerObject][];
|
|
44
40
|
}
|
|
45
|
-
interface
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
params?: Record<string, unknown>;
|
|
41
|
+
interface ITreeConfig<T> {
|
|
42
|
+
isGroup: (node: T) => boolean;
|
|
43
|
+
descendantLevels: (node: T) => number | undefined;
|
|
49
44
|
}
|
|
50
45
|
/**
|
|
51
46
|
* This directive should be use with a MatTree flatened
|
|
@@ -54,32 +49,43 @@ interface DropPermission {
|
|
|
54
49
|
* Tree: --dragging
|
|
55
50
|
* Node: --drag-hover | --dragged
|
|
56
51
|
*/
|
|
57
|
-
declare class TreeDragDropDirective
|
|
52
|
+
declare class TreeDragDropDirective<T extends {
|
|
53
|
+
id: string | number;
|
|
54
|
+
} = {
|
|
55
|
+
id: string | number;
|
|
56
|
+
}, K = T> implements OnDestroy {
|
|
58
57
|
private elementRef;
|
|
59
58
|
private renderer;
|
|
60
|
-
draggedNode:
|
|
61
|
-
dropNodeTarget:
|
|
59
|
+
draggedNode: T;
|
|
60
|
+
dropNodeTarget: _angular_core.WritableSignal<T>;
|
|
62
61
|
expandTimeout: number;
|
|
63
62
|
nodesListeners: DragNodeListeners[] | undefined;
|
|
64
63
|
private nodesEffect;
|
|
65
|
-
dropLineTarget: HTMLElement
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
dropLineTarget: _angular_core.WritableSignal<HTMLElement>;
|
|
65
|
+
previousDropLine: _angular_core.WritableSignal<HTMLElement>;
|
|
66
|
+
dropPosition: _angular_core.WritableSignal<DropPosition>;
|
|
67
|
+
dragging: _angular_core.WritableSignal<boolean>;
|
|
68
|
+
highlightedNode: T | undefined;
|
|
69
|
+
readonly tree: _angular_core.InputSignal<CdkTree<T, K>>;
|
|
70
|
+
readonly childrenAccessor: _angular_core.InputSignal<(node: T) => T[]>;
|
|
71
|
+
readonly config: _angular_core.InputSignal<ITreeConfig<T>>;
|
|
68
72
|
/** The default is 5 */
|
|
69
73
|
readonly maxLevel: _angular_core.InputSignal<number>;
|
|
70
74
|
readonly treeDragDropIsDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
71
|
-
readonly dragStart: _angular_core.OutputEmitterRef<
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
hostDragOver(event: Event): void;
|
|
75
|
-
hostDrop(event: DragEvent): void;
|
|
76
|
-
dragging: boolean;
|
|
75
|
+
readonly dragStart: _angular_core.OutputEmitterRef<T>;
|
|
76
|
+
readonly dropped: _angular_core.OutputEmitterRef<TreeDropEvent<T>>;
|
|
77
|
+
readonly droppedError: _angular_core.OutputEmitterRef<DropPermission>;
|
|
77
78
|
readonly nodes: _angular_core.Signal<readonly MatTreeNode<any, any>[]>;
|
|
78
79
|
constructor();
|
|
80
|
+
get isGroup(): (node: T) => boolean;
|
|
81
|
+
get getDescendantLevels(): (node: T) => number | undefined;
|
|
79
82
|
ngOnDestroy(): void;
|
|
80
|
-
|
|
83
|
+
hostDragOver(event: Event): void;
|
|
84
|
+
hostDragLeave(event: DragEvent): void;
|
|
85
|
+
hostDrop(event: DragEvent): void;
|
|
86
|
+
onDragStart(node: T): void;
|
|
81
87
|
dragEnd(): void;
|
|
82
|
-
dragOver(node:
|
|
88
|
+
dragOver(node: T, event: DragEvent): void;
|
|
83
89
|
dragLeave(): void;
|
|
84
90
|
drop(event: DragEvent): void;
|
|
85
91
|
private addNodeClass;
|
|
@@ -90,12 +96,15 @@ declare class TreeDragDropDirective implements OnDestroy {
|
|
|
90
96
|
private setHighlightedNode;
|
|
91
97
|
private addDropTargetLine;
|
|
92
98
|
private removeDropTargetLine;
|
|
99
|
+
private hideDropTargetLine;
|
|
100
|
+
private showDropTargetLine;
|
|
93
101
|
private updateDropTargetLinePosition;
|
|
94
102
|
private handleGroupExpansion;
|
|
95
103
|
private getNodeElement;
|
|
96
104
|
private canDropNode;
|
|
97
105
|
private canDropGroup;
|
|
98
106
|
private validateMaxHierarchyLevel;
|
|
107
|
+
private getDescendants;
|
|
99
108
|
private isHoverDescendant;
|
|
100
109
|
private getPosition;
|
|
101
110
|
private getPositionY;
|
|
@@ -105,9 +114,13 @@ declare class TreeDragDropDirective implements OnDestroy {
|
|
|
105
114
|
* @param level if level is defined with go to the defined levle to find ancestor. Sinon on prend le current ancestor
|
|
106
115
|
*/
|
|
107
116
|
private getNodeAncestors;
|
|
117
|
+
private getAncestorsPath;
|
|
118
|
+
private findPath;
|
|
119
|
+
private getNodeLevel;
|
|
108
120
|
private getDirectDescendants;
|
|
109
|
-
|
|
110
|
-
static
|
|
121
|
+
private findTreeNode;
|
|
122
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeDragDropDirective<any, any>, never>;
|
|
123
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeDragDropDirective<any, any>, "[igoTreeDragDrop]", never, { "tree": { "alias": "tree"; "required": true; "isSignal": true; }; "childrenAccessor": { "alias": "childrenAccessor"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "maxLevel": { "alias": "maxLevel"; "required": false; "isSignal": true; }; "treeDragDropIsDisabled": { "alias": "treeDragDropIsDisabled"; "required": false; "isSignal": true; }; }, { "dragStart": "dragStart"; "dropped": "dropped"; "droppedError": "droppedError"; }, ["nodes"], never, true, never>;
|
|
111
124
|
}
|
|
112
125
|
|
|
113
126
|
/**
|
|
@@ -121,4 +134,4 @@ declare class IgoDrapDropModule {
|
|
|
121
134
|
}
|
|
122
135
|
|
|
123
136
|
export { DragAndDropDirective, IgoDrapDropModule, TreeDragDropDirective };
|
|
124
|
-
export type { DropPermission, DropPosition, DropPositionType,
|
|
137
|
+
export type { DropPermission, DropPosition, DropPositionType, ITreeConfig, TreeDropEvent };
|
package/entity/index.d.ts
CHANGED
|
@@ -87,28 +87,7 @@ interface EntityTableColumnValidation {
|
|
|
87
87
|
interface TableRelation {
|
|
88
88
|
table: string;
|
|
89
89
|
}
|
|
90
|
-
|
|
91
|
-
validation?: EntityTableColumnValidation;
|
|
92
|
-
name: string;
|
|
93
|
-
title: string;
|
|
94
|
-
renderer?: EntityTableColumnRenderer;
|
|
95
|
-
valueAccessor?: (entity: object, record: EntityRecord<object>) => any;
|
|
96
|
-
visible?: boolean;
|
|
97
|
-
linkColumnForce?: string;
|
|
98
|
-
sort?: boolean;
|
|
99
|
-
type?: string;
|
|
100
|
-
multiple?: boolean;
|
|
101
|
-
domainValues?: SelectOption[];
|
|
102
|
-
relation?: TableRelation;
|
|
103
|
-
tooltip?: string;
|
|
104
|
-
cellClassFunc?: (entity: object, record: EntityRecord<object>) => Record<string, boolean>;
|
|
105
|
-
step?: number;
|
|
106
|
-
icon?: string;
|
|
107
|
-
onBlur?: (event: Event) => void;
|
|
108
|
-
onChange?: (event: Event) => void;
|
|
109
|
-
onClick?: (event: Event) => void;
|
|
110
|
-
onFocus?: (event: Event) => void;
|
|
111
|
-
}
|
|
90
|
+
type EntityTableColumn = SelectEntityTableColumn | BaseEntityTableColumn;
|
|
112
91
|
interface SelectOption {
|
|
113
92
|
id: number;
|
|
114
93
|
value: string;
|
|
@@ -122,6 +101,90 @@ interface EntityTableButton {
|
|
|
122
101
|
style?: 'mat-mini-fab' | 'mat-icon-button';
|
|
123
102
|
editMode?: boolean;
|
|
124
103
|
}
|
|
104
|
+
type AnyEntityField = AnyChoiceEntityField | BaseEntityField;
|
|
105
|
+
type AnyChoiceEntityField = ChoiceEntityFieldWithDomain | ChoiceEntityFieldWithLabelField;
|
|
106
|
+
interface ChoiceEntityFieldWithDomain extends BaseChoiceEntityField {
|
|
107
|
+
domainValues: SelectOption[];
|
|
108
|
+
}
|
|
109
|
+
interface ChoiceEntityFieldWithLabelField extends BaseChoiceEntityField {
|
|
110
|
+
labelField: string;
|
|
111
|
+
}
|
|
112
|
+
interface BaseChoiceEntityField extends BaseEntityField {
|
|
113
|
+
domainValues?: SelectOption[];
|
|
114
|
+
type: 'list' | 'autocomplete';
|
|
115
|
+
dataType: EntityDataType;
|
|
116
|
+
/** Define the caracters who structure the array. This allow a workaround to handle stringify list with custom caracter */
|
|
117
|
+
arrayIdentifier?: [string, string];
|
|
118
|
+
}
|
|
119
|
+
type EntityDataType = 'string' | 'number' | 'object';
|
|
120
|
+
interface BaseEntityField {
|
|
121
|
+
multiple?: boolean;
|
|
122
|
+
name: string;
|
|
123
|
+
relation?: EntityRelation;
|
|
124
|
+
type?: string;
|
|
125
|
+
}
|
|
126
|
+
interface EntityRelation {
|
|
127
|
+
table?: string;
|
|
128
|
+
url?: string;
|
|
129
|
+
params?: EntityRelationParam;
|
|
130
|
+
choiceList?: {
|
|
131
|
+
path?: {
|
|
132
|
+
/**
|
|
133
|
+
* The list property allows you to determine a path to resolve to access the list in an Object.
|
|
134
|
+
* This is required when the API returns an Object instead of a raw List
|
|
135
|
+
**/
|
|
136
|
+
list?: string;
|
|
137
|
+
/** Default is "id" */
|
|
138
|
+
id?: string;
|
|
139
|
+
/** Default is "value" */
|
|
140
|
+
value?: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
interface EntityRelationParam {
|
|
145
|
+
name?: string;
|
|
146
|
+
field: string;
|
|
147
|
+
}
|
|
148
|
+
type SelectEntityTableColumn = AnyChoiceEntityField & BaseEntityTableColumn;
|
|
149
|
+
interface BaseEntityTableColumn extends BaseEntityField {
|
|
150
|
+
primary?: boolean;
|
|
151
|
+
renderer?: EntityTableColumnRenderer;
|
|
152
|
+
sort?: boolean;
|
|
153
|
+
step?: number;
|
|
154
|
+
title: string;
|
|
155
|
+
tooltip?: string;
|
|
156
|
+
validation?: EntityTableColumnValidation & {
|
|
157
|
+
send?: boolean;
|
|
158
|
+
};
|
|
159
|
+
visible?: boolean;
|
|
160
|
+
icon?: string;
|
|
161
|
+
linkColumnForce?: string;
|
|
162
|
+
cellClassFunc?: (entity: object, record: EntityRecord<object>) => {
|
|
163
|
+
[key: string]: boolean;
|
|
164
|
+
};
|
|
165
|
+
valueAccessor?: (entity: object, record?: EntityRecord<object>) => any;
|
|
166
|
+
onBlur?: (event: Event) => void;
|
|
167
|
+
onChange?: (event: Event) => void;
|
|
168
|
+
onClick?: (event: Event) => void;
|
|
169
|
+
onFocus?: (event: Event) => void;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare class EntityService {
|
|
173
|
+
private http;
|
|
174
|
+
private configService;
|
|
175
|
+
encodeListValue(state: EntityState, column: SelectEntityTableColumn): EntityState | string;
|
|
176
|
+
getDomainValues(field: AnyChoiceEntityField, paramsValue?: {
|
|
177
|
+
[key: string]: unknown;
|
|
178
|
+
}): Observable<SelectOption[]>;
|
|
179
|
+
resolveDomainValues(state: EntityState, column: SelectEntityTableColumn): unknown | unknown[];
|
|
180
|
+
private buildUrl;
|
|
181
|
+
private parseDomainValues;
|
|
182
|
+
private getRelationFilterParamName;
|
|
183
|
+
private findDomainValue;
|
|
184
|
+
private parseListValue;
|
|
185
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityService, never>;
|
|
186
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<EntityService>;
|
|
187
|
+
}
|
|
125
188
|
|
|
126
189
|
/**
|
|
127
190
|
* Get an entity's named property. Nested properties are supported
|
|
@@ -171,6 +234,9 @@ declare function getEntityIcon(entity: object): string;
|
|
|
171
234
|
* @returns Entity revision
|
|
172
235
|
*/
|
|
173
236
|
declare function getEntityRevision(entity: object): number;
|
|
237
|
+
declare function getColumnKeyWithoutPropertiesTag(key: string): string;
|
|
238
|
+
declare function isChoiceField(field: AnyEntityField): field is AnyChoiceEntityField;
|
|
239
|
+
declare function isChoiceFieldWithLabelField(field: AnyEntityField): field is ChoiceEntityFieldWithLabelField;
|
|
174
240
|
|
|
175
241
|
interface EntityStateManagerOptions<E extends object> {
|
|
176
242
|
getKey?: (entity: object) => EntityKey;
|
|
@@ -1527,5 +1593,5 @@ declare class IgoEntityModule {
|
|
|
1527
1593
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoEntityModule>;
|
|
1528
1594
|
}
|
|
1529
1595
|
|
|
1530
|
-
export { ENTITY_DIRECTIVES, EntityOperationType, EntitySelectorComponent, EntityStateManager, EntityStore, EntityStoreFilterCustomFuncStrategy, EntityStoreFilterSelectionStrategy, EntityStoreStrategy, EntityStoreWatcher, EntityTableColumnRenderer, EntityTableComponent, EntityTablePaginatorComponent, EntityTableScrollBehavior, EntityTableSelectionState, EntityTransaction, EntityView, IgoEntityModule, IgoEntitySelectorModule, IgoEntityTableModule, IgoEntityTablePaginatorModule, getEntityIcon, getEntityId, getEntityProperty, getEntityRevision, getEntityTitle, getEntityTitleHtml };
|
|
1531
|
-
export type { EntityFilterClause, EntityJoinClause, EntityKey, EntityOperation, EntityOperationState, EntityRecord, EntitySelectorChange, EntitySortClause, EntityState, EntityStoreOptions, EntityStoreStrategyFuncOptions, EntityStoreStrategyOptions, EntityTableButton, EntityTableColumn, EntityTableColumnValidation, EntityTablePaginatorOptions, EntityTableTemplate, EntityTransactionCommitHandler, EntityTransactionOptions, SelectOption, TableRelation };
|
|
1596
|
+
export { ENTITY_DIRECTIVES, EntityOperationType, EntitySelectorComponent, EntityService, EntityStateManager, EntityStore, EntityStoreFilterCustomFuncStrategy, EntityStoreFilterSelectionStrategy, EntityStoreStrategy, EntityStoreWatcher, EntityTableColumnRenderer, EntityTableComponent, EntityTablePaginatorComponent, EntityTableScrollBehavior, EntityTableSelectionState, EntityTransaction, EntityView, IgoEntityModule, IgoEntitySelectorModule, IgoEntityTableModule, IgoEntityTablePaginatorModule, getColumnKeyWithoutPropertiesTag, getEntityIcon, getEntityId, getEntityProperty, getEntityRevision, getEntityTitle, getEntityTitleHtml, isChoiceField, isChoiceFieldWithLabelField };
|
|
1597
|
+
export type { AnyChoiceEntityField, AnyEntityField, BaseEntityTableColumn, ChoiceEntityFieldWithDomain, ChoiceEntityFieldWithLabelField, EntityDataType, EntityFilterClause, EntityJoinClause, EntityKey, EntityOperation, EntityOperationState, EntityRecord, EntityRelation, EntityRelationParam, EntitySelectorChange, EntitySortClause, EntityState, EntityStoreOptions, EntityStoreStrategyFuncOptions, EntityStoreStrategyOptions, EntityTableButton, EntityTableColumn, EntityTableColumnValidation, EntityTablePaginatorOptions, EntityTableTemplate, EntityTransactionCommitHandler, EntityTransactionOptions, SelectEntityTableColumn, SelectOption, TableRelation };
|
|
@@ -16,7 +16,7 @@ import { MatMenuModule } from '@angular/material/menu';
|
|
|
16
16
|
import * as i2 from '@angular/material/tooltip';
|
|
17
17
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
18
18
|
import { IgoLanguageModule } from '@igo2/core/language';
|
|
19
|
-
import { MediaService
|
|
19
|
+
import { MediaService } from '@igo2/core/media';
|
|
20
20
|
import { BehaviorSubject, isObservable } from 'rxjs';
|
|
21
21
|
import * as i4 from '@angular/material/checkbox';
|
|
22
22
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
@@ -165,7 +165,7 @@ class ActionbarItemComponent {
|
|
|
165
165
|
* @internal
|
|
166
166
|
*/
|
|
167
167
|
onClick() {
|
|
168
|
-
if (this.disabled
|
|
168
|
+
if (this.disabled) {
|
|
169
169
|
return;
|
|
170
170
|
}
|
|
171
171
|
this.trigger.emit(this.action());
|
|
@@ -179,10 +179,10 @@ class ActionbarItemComponent {
|
|
|
179
179
|
updateCheckCondition(checkCondition) {
|
|
180
180
|
this.checkCondition$.next(checkCondition);
|
|
181
181
|
}
|
|
182
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
183
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
182
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ActionbarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
183
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: ActionbarItemComponent, isStandalone: true, selector: "igo-actionbar-item", inputs: { action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, withTitle: { classPropertyName: "withTitle", publicName: "withTitle", isSignal: true, isRequired: false, transformFunction: null }, withIcon: { classPropertyName: "withIcon", publicName: "withIcon", isSignal: true, isRequired: false, transformFunction: null }, withTooltip: { classPropertyName: "withTooltip", publicName: "withTooltip", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, noDisplay: { classPropertyName: "noDisplay", publicName: "noDisplay", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { trigger: "trigger" }, ngImport: i0, template: "@if (!action().checkbox) {\n <mat-list-item\n class=\"actionbar-item\"\n matTooltipClass=\"actionbarItemTooltip\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"\n withTooltip() ? ((tooltip$ | async) || title | translate) : ''\n \"\n [ngClass]=\"ngClass$ | async\"\n (click)=\"onClick()\"\n >\n @if (withIcon()) {\n <button\n matListItemAvatar\n matIconButton\n [color]=\"color()\"\n [disabled]=\"disabled$ | async\"\n [disableRipple]=\"true\"\n >\n @let icon = action().icon;\n <igo-icon [icon]=\"isObservable(icon) ? (icon | async) : icon\" />\n </button>\n }\n @if (withTitle()) {\n <span matLine>{{ title | translate }}</span>\n }\n </mat-list-item>\n}\n\n@if (action().checkbox) {\n <mat-list-item\n class=\"item-checkbox\"\n matTooltipClass=\"actionbarItemTooltip\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"\n withTooltip() ? ((tooltip$ | async) || title | translate) : ''\n \"\n [ngClass]=\"ngClass$ | async\"\n >\n @if (withTitle()) {\n <mat-checkbox\n (change)=\"action().handler()\"\n [checked]=\"checkCondition$ | async\"\n >\n {{ title | translate }}\n </mat-checkbox>\n }\n </mat-list-item>\n}\n", styles: [":host ::ng-deep mat-list-item:hover{cursor:pointer}:host{--mat-list-list-item-leading-avatar-size: 48px}:host .mdc-icon-button{--mat-icon-button-state-layer-size: 48px}:host mat-list-item{padding-right:0}:host mat-list-item.igo-actionbar-item-disabled{color:#00000042;cursor:default!important}:host mat-list-item.igo-actionbar-item-no-display{display:none}:host mat-list-item ::ng-deep button[matlistitemavatar]{margin-left:0;background-color:inherit}:host mat-list-item ::ng-deep button .mat-mdc-button-persistent-ripple{display:none}:host .item-checkbox ::ng-deep mat-checkbox label{margin-left:28px}:host .actionbar-item [matline]{padding-left:16px}\n"], dependencies: [{ kind: "ngmodule", type: MatListModule }, { kind: "component", type: i1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i1.MatListItemAvatar, selector: "[matListItemAvatar]" }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: IgoLanguageModule }, { kind: "component", type: IgoIconComponent, selector: "igo-icon", inputs: ["color", "icon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
184
184
|
}
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ActionbarItemComponent, decorators: [{
|
|
186
186
|
type: Component,
|
|
187
187
|
args: [{ selector: 'igo-actionbar-item', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
188
188
|
MatListModule,
|
|
@@ -193,8 +193,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
193
193
|
MatCheckboxModule,
|
|
194
194
|
AsyncPipe,
|
|
195
195
|
IgoLanguageModule,
|
|
196
|
-
IgoIconComponent
|
|
197
|
-
|
|
196
|
+
IgoIconComponent,
|
|
197
|
+
MatButtonModule
|
|
198
|
+
], template: "@if (!action().checkbox) {\n <mat-list-item\n class=\"actionbar-item\"\n matTooltipClass=\"actionbarItemTooltip\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"\n withTooltip() ? ((tooltip$ | async) || title | translate) : ''\n \"\n [ngClass]=\"ngClass$ | async\"\n (click)=\"onClick()\"\n >\n @if (withIcon()) {\n <button\n matListItemAvatar\n matIconButton\n [color]=\"color()\"\n [disabled]=\"disabled$ | async\"\n [disableRipple]=\"true\"\n >\n @let icon = action().icon;\n <igo-icon [icon]=\"isObservable(icon) ? (icon | async) : icon\" />\n </button>\n }\n @if (withTitle()) {\n <span matLine>{{ title | translate }}</span>\n }\n </mat-list-item>\n}\n\n@if (action().checkbox) {\n <mat-list-item\n class=\"item-checkbox\"\n matTooltipClass=\"actionbarItemTooltip\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"\n withTooltip() ? ((tooltip$ | async) || title | translate) : ''\n \"\n [ngClass]=\"ngClass$ | async\"\n >\n @if (withTitle()) {\n <mat-checkbox\n (change)=\"action().handler()\"\n [checked]=\"checkCondition$ | async\"\n >\n {{ title | translate }}\n </mat-checkbox>\n }\n </mat-list-item>\n}\n", styles: [":host ::ng-deep mat-list-item:hover{cursor:pointer}:host{--mat-list-list-item-leading-avatar-size: 48px}:host .mdc-icon-button{--mat-icon-button-state-layer-size: 48px}:host mat-list-item{padding-right:0}:host mat-list-item.igo-actionbar-item-disabled{color:#00000042;cursor:default!important}:host mat-list-item.igo-actionbar-item-no-display{display:none}:host mat-list-item ::ng-deep button[matlistitemavatar]{margin-left:0;background-color:inherit}:host mat-list-item ::ng-deep button .mat-mdc-button-persistent-ripple{display:none}:host .item-checkbox ::ng-deep mat-checkbox label{margin-left:28px}:host .actionbar-item [matline]{padding-left:16px}\n"] }]
|
|
198
199
|
}], propDecorators: { action: [{ type: i0.Input, args: [{ isSignal: true, alias: "action", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], withTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "withTitle", required: false }] }], withIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "withIcon", required: false }] }], withTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "withTooltip", required: false }] }], disabled: [{
|
|
199
200
|
type: Input
|
|
200
201
|
}], noDisplay: [{
|
|
@@ -331,28 +332,19 @@ class ActionbarComponent {
|
|
|
331
332
|
}
|
|
332
333
|
get heightCondition() {
|
|
333
334
|
const el = this.elRef.nativeElement;
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
return false;
|
|
335
|
+
return !this.scrollActive() && el.clientHeight < el.scrollHeight
|
|
336
|
+
? true
|
|
337
|
+
: false;
|
|
340
338
|
}
|
|
341
339
|
get positionConditionTop() {
|
|
342
|
-
|
|
343
|
-
return false;
|
|
344
|
-
}
|
|
345
|
-
return true;
|
|
340
|
+
return this.elRef.nativeElement.scrollTop === 0 ? false : true;
|
|
346
341
|
}
|
|
347
342
|
get positionConditionLow() {
|
|
348
343
|
const el = this.elRef.nativeElement;
|
|
349
|
-
|
|
350
|
-
return false;
|
|
351
|
-
}
|
|
352
|
-
return true;
|
|
344
|
+
return el.scrollTop >= el.scrollHeight - el.clientHeight ? false : true;
|
|
353
345
|
}
|
|
354
346
|
get isDesktop() {
|
|
355
|
-
return this.mediaService.
|
|
347
|
+
return this.mediaService.isDesktop() || this.mediaService.isTablet();
|
|
356
348
|
}
|
|
357
349
|
/**
|
|
358
350
|
* @internal
|
|
@@ -386,10 +378,10 @@ class ActionbarComponent {
|
|
|
386
378
|
scrollUp() {
|
|
387
379
|
this.elRef.nativeElement.scrollBy(0, -52);
|
|
388
380
|
}
|
|
389
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
390
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
381
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ActionbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
382
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: ActionbarComponent, isStandalone: true, selector: "igo-actionbar", inputs: { store: { classPropertyName: "store", publicName: "store", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, withToggleButton: { classPropertyName: "withToggleButton", publicName: "withToggleButton", isSignal: true, isRequired: false, transformFunction: null }, horizontal: { classPropertyName: "horizontal", publicName: "horizontal", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, iconColor: { classPropertyName: "iconColor", publicName: "iconColor", isSignal: true, isRequired: false, transformFunction: null }, withTitle: { classPropertyName: "withTitle", publicName: "withTitle", isSignal: true, isRequired: false, transformFunction: null }, withTooltip: { classPropertyName: "withTooltip", publicName: "withTooltip", isSignal: true, isRequired: false, transformFunction: null }, scrollActive: { classPropertyName: "scrollActive", publicName: "scrollActive", isSignal: true, isRequired: false, transformFunction: null }, withIcon: { classPropertyName: "withIcon", publicName: "withIcon", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, xPosition: { classPropertyName: "xPosition", publicName: "xPosition", isSignal: true, isRequired: false, transformFunction: null }, yPosition: { classPropertyName: "yPosition", publicName: "yPosition", isSignal: true, isRequired: false, transformFunction: null }, overlayClass: { classPropertyName: "overlayClass", publicName: "overlayClass", isSignal: false, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-collapsed": "this.isCollapsed", "class.with-title": "this.withTitleClass", "class.with-icon": "this.withIconClass", "class.horizontal": "this.horizontalClass" } }, usesOnChanges: true, ngImport: i0, template: "@let actions = store().view.all$() | async;\n\n@if (heightCondition && positionConditionTop && isDesktop) {\n <div id=\"topChevron\">\n <button\n matIconButton\n tooltip-position=\"below\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"'igo.common.actionbar.scrollUp' | translate\"\n (click)=\"scrollUp()\"\n >\n <mat-icon>keyboard_arrow_up</mat-icon>\n </button>\n </div>\n}\n@if (mode() === actionbarMode.Dock) {\n <mat-list matListItemIcon>\n @if (withToggleButton()) {\n <igo-actionbar-item\n color=\"accent\"\n [withTitle]=\"false\"\n [withIcon]=\"true\"\n [color]=\"color()\"\n [disabled]=\"store().view.empty\"\n [action]=\"toggleCollapseAction\"\n (trigger)=\"onTriggerAction(toggleCollapseAction)\"\n />\n }\n @if (!collapsed) {\n @for (action of actions; track action) {\n <igo-actionbar-item\n color=\"accent\"\n [withTitle]=\"withTitle()\"\n [withIcon]=\"withIcon()\"\n [withTooltip]=\"withTooltip()\"\n [color]=\"color()\"\n [disabled]=\"store().state.get(action).disabled\"\n [action]=\"action\"\n (trigger)=\"onTriggerAction(action)\"\n />\n }\n }\n </mat-list>\n}\n\n@if (heightCondition && positionConditionLow && isDesktop) {\n <div id=\"lowChevron\">\n <button\n matIconButton\n tooltip-position=\"below\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"'igo.common.actionbar.scrollDown' | translate\"\n (click)=\"scrollDown()\"\n >\n <mat-icon>keyboard_arrow_down</mat-icon>\n </button>\n </div>\n}\n\n@if (mode() === actionbarMode.Overlay) {\n <div>\n <button\n class=\"buttonOverlay\"\n matIconButton\n tooltip-position=\"below\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"'igo.common.actionbar.icon' | translate\"\n [matMenuTriggerFor]=\"actionbarMenu\"\n [disabled]=\"store().view.empty\"\n [color]=\"iconColor()\"\n >\n <mat-icon>{{ icon() }}</mat-icon>\n </button>\n <mat-menu\n #actionbarMenu=\"matMenu\"\n class=\"igo-compact-menu igo-no-min-width-menu\"\n overlapTrigger=\"true\"\n [xPosition]=\"xPosition()\"\n [yPosition]=\"yPosition()\"\n [class]=\"overlayClass\"\n >\n <mat-list>\n @for (action of actions; track action) {\n <igo-actionbar-item\n color=\"accent\"\n [withTitle]=\"withTitle()\"\n [withIcon]=\"withIcon()\"\n [color]=\"color()\"\n [action]=\"action\"\n (trigger)=\"onTriggerAction(action)\"\n />\n }\n </mat-list>\n </mat-menu>\n </div>\n}\n@if (mode() === actionbarMode.Context) {\n <mat-card class=\"context-menu-card mat-elevation-z4\">\n <mat-list>\n @for (action of actions; track action) {\n <igo-actionbar-item\n color=\"accent\"\n [withTitle]=\"withTitle()\"\n [withIcon]=\"withIcon()\"\n [color]=\"color()\"\n [action]=\"action\"\n (trigger)=\"onTriggerAction(action)\"\n />\n <br />\n }\n </mat-list>\n </mat-card>\n}\n", styles: [":host{display:block;height:100%;overflow:auto;position:relative}:host.horizontal{max-width:100%;overflow:unset}:host.horizontal mat-list{width:auto;white-space:nowrap}:host.horizontal igo-actionbar-item{display:inline-block}:host mat-list{padding-top:0}:host .buttonOverlay{margin:0}:host .context-menu-card{padding:8px 3px;margin:10px}:host #topChevron{position:sticky;top:0;background-color:var(--mat-sys-on-primary-container);z-index:3;display:flex;justify-content:center}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){:host #topChevron{position:fixed;top:unset}}@supports (-ms-accelerator: true){:host #topChevron{position:fixed;top:unset}}:host #lowChevron{position:sticky;bottom:0;background-color:var(--mat-sys-on-primary-container);z-index:3;display:flex;justify-content:center}:host .igo-actionbar-overlay{min-width:inherit!important;padding-top:0;padding-bottom:0}:host .igo-actionbar-overlay .mat-mdc-list{padding-top:0}:host .igo-actionbar-overlay .mat-mdc-menu-content:not(:empty){padding-top:0;padding-bottom:0}:host.with-title ::ng-deep .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-right:0}:host ::ng-deep .mdc-list-item__primary-text{white-space:normal;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-height:18px;-webkit-box-orient:vertical;-webkit-line-clamp:2}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i1.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "directive", type: i1.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "component", type: ActionbarItemComponent, selector: "igo-actionbar-item", inputs: ["action", "color", "withTitle", "withIcon", "withTooltip", "disabled", "noDisplay"], outputs: ["trigger"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i5$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i5$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i6.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: IgoLanguageModule }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
391
383
|
}
|
|
392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ActionbarComponent, decorators: [{
|
|
393
385
|
type: Component,
|
|
394
386
|
args: [{ selector: 'igo-actionbar', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
395
387
|
MatButtonModule,
|
|
@@ -401,7 +393,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
401
393
|
MatCardModule,
|
|
402
394
|
AsyncPipe,
|
|
403
395
|
IgoLanguageModule
|
|
404
|
-
], template: "@if (heightCondition && positionConditionTop && isDesktop) {\n <div id=\"topChevron\">\n <button\n
|
|
396
|
+
], template: "@let actions = store().view.all$() | async;\n\n@if (heightCondition && positionConditionTop && isDesktop) {\n <div id=\"topChevron\">\n <button\n matIconButton\n tooltip-position=\"below\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"'igo.common.actionbar.scrollUp' | translate\"\n (click)=\"scrollUp()\"\n >\n <mat-icon>keyboard_arrow_up</mat-icon>\n </button>\n </div>\n}\n@if (mode() === actionbarMode.Dock) {\n <mat-list matListItemIcon>\n @if (withToggleButton()) {\n <igo-actionbar-item\n color=\"accent\"\n [withTitle]=\"false\"\n [withIcon]=\"true\"\n [color]=\"color()\"\n [disabled]=\"store().view.empty\"\n [action]=\"toggleCollapseAction\"\n (trigger)=\"onTriggerAction(toggleCollapseAction)\"\n />\n }\n @if (!collapsed) {\n @for (action of actions; track action) {\n <igo-actionbar-item\n color=\"accent\"\n [withTitle]=\"withTitle()\"\n [withIcon]=\"withIcon()\"\n [withTooltip]=\"withTooltip()\"\n [color]=\"color()\"\n [disabled]=\"store().state.get(action).disabled\"\n [action]=\"action\"\n (trigger)=\"onTriggerAction(action)\"\n />\n }\n }\n </mat-list>\n}\n\n@if (heightCondition && positionConditionLow && isDesktop) {\n <div id=\"lowChevron\">\n <button\n matIconButton\n tooltip-position=\"below\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"'igo.common.actionbar.scrollDown' | translate\"\n (click)=\"scrollDown()\"\n >\n <mat-icon>keyboard_arrow_down</mat-icon>\n </button>\n </div>\n}\n\n@if (mode() === actionbarMode.Overlay) {\n <div>\n <button\n class=\"buttonOverlay\"\n matIconButton\n tooltip-position=\"below\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"'igo.common.actionbar.icon' | translate\"\n [matMenuTriggerFor]=\"actionbarMenu\"\n [disabled]=\"store().view.empty\"\n [color]=\"iconColor()\"\n >\n <mat-icon>{{ icon() }}</mat-icon>\n </button>\n <mat-menu\n #actionbarMenu=\"matMenu\"\n class=\"igo-compact-menu igo-no-min-width-menu\"\n overlapTrigger=\"true\"\n [xPosition]=\"xPosition()\"\n [yPosition]=\"yPosition()\"\n [class]=\"overlayClass\"\n >\n <mat-list>\n @for (action of actions; track action) {\n <igo-actionbar-item\n color=\"accent\"\n [withTitle]=\"withTitle()\"\n [withIcon]=\"withIcon()\"\n [color]=\"color()\"\n [action]=\"action\"\n (trigger)=\"onTriggerAction(action)\"\n />\n }\n </mat-list>\n </mat-menu>\n </div>\n}\n@if (mode() === actionbarMode.Context) {\n <mat-card class=\"context-menu-card mat-elevation-z4\">\n <mat-list>\n @for (action of actions; track action) {\n <igo-actionbar-item\n color=\"accent\"\n [withTitle]=\"withTitle()\"\n [withIcon]=\"withIcon()\"\n [color]=\"color()\"\n [action]=\"action\"\n (trigger)=\"onTriggerAction(action)\"\n />\n <br />\n }\n </mat-list>\n </mat-card>\n}\n", styles: [":host{display:block;height:100%;overflow:auto;position:relative}:host.horizontal{max-width:100%;overflow:unset}:host.horizontal mat-list{width:auto;white-space:nowrap}:host.horizontal igo-actionbar-item{display:inline-block}:host mat-list{padding-top:0}:host .buttonOverlay{margin:0}:host .context-menu-card{padding:8px 3px;margin:10px}:host #topChevron{position:sticky;top:0;background-color:var(--mat-sys-on-primary-container);z-index:3;display:flex;justify-content:center}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){:host #topChevron{position:fixed;top:unset}}@supports (-ms-accelerator: true){:host #topChevron{position:fixed;top:unset}}:host #lowChevron{position:sticky;bottom:0;background-color:var(--mat-sys-on-primary-container);z-index:3;display:flex;justify-content:center}:host .igo-actionbar-overlay{min-width:inherit!important;padding-top:0;padding-bottom:0}:host .igo-actionbar-overlay .mat-mdc-list{padding-top:0}:host .igo-actionbar-overlay .mat-mdc-menu-content:not(:empty){padding-top:0;padding-bottom:0}:host.with-title ::ng-deep .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-right:0}:host ::ng-deep .mdc-list-item__primary-text{white-space:normal;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-height:18px;-webkit-box-orient:vertical;-webkit-line-clamp:2}\n"] }]
|
|
405
397
|
}], propDecorators: { store: [{ type: i0.Input, args: [{ isSignal: true, alias: "store", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], withToggleButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "withToggleButton", required: false }] }], horizontal: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontal", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], iconColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconColor", required: false }] }], withTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "withTitle", required: false }] }], withTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "withTooltip", required: false }] }], scrollActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollActive", required: false }] }], withIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "withIcon", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], xPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "xPosition", required: false }] }], yPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "yPosition", required: false }] }], overlayClass: [{
|
|
406
398
|
type: Input
|
|
407
399
|
}], isCollapsed: [{
|
|
@@ -422,11 +414,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
422
414
|
* @deprecated import the ActionbarComponent directly
|
|
423
415
|
*/
|
|
424
416
|
class IgoActionModule {
|
|
425
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
426
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
427
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
417
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
418
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.19", ngImport: i0, type: IgoActionModule, imports: [ActionbarComponent], exports: [ActionbarComponent] });
|
|
419
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoActionModule, imports: [ActionbarComponent] });
|
|
428
420
|
}
|
|
429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoActionModule, decorators: [{
|
|
430
422
|
type: NgModule,
|
|
431
423
|
args: [{
|
|
432
424
|
imports: [ActionbarComponent],
|
|
@@ -438,11 +430,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
438
430
|
* @deprecated import the ActionbarComponent directly
|
|
439
431
|
*/
|
|
440
432
|
class IgoActionbarModule {
|
|
441
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
442
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
443
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
433
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoActionbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
434
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.19", ngImport: i0, type: IgoActionbarModule, imports: [ActionbarComponent], exports: [ActionbarComponent] });
|
|
435
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoActionbarModule, imports: [ActionbarComponent] });
|
|
444
436
|
}
|
|
445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoActionbarModule, decorators: [{
|
|
446
438
|
type: NgModule,
|
|
447
439
|
args: [{
|
|
448
440
|
imports: [ActionbarComponent],
|