@igo2/common 17.0.0-next.5 → 17.0.0-next.6
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/esm2022/lib/action/actionbar/actionbar-item.component.mjs +10 -24
- package/esm2022/lib/action/actionbar/actionbar.component.mjs +5 -5
- package/esm2022/lib/action/shared/action.interfaces.mjs +1 -1
- package/esm2022/lib/badge-icon/badge-icon.directive.mjs +14 -17
- package/esm2022/lib/collapsible/collapsible.component.mjs +3 -3
- package/esm2022/lib/entity/entity-table/entity-table.component.mjs +3 -3
- package/esm2022/lib/form/form-field/form-field-select.component.mjs +3 -3
- package/esm2022/lib/form/form-field/form-field-text.component.mjs +3 -3
- package/esm2022/lib/form/form-field/form-field-textarea.component.mjs +3 -3
- package/esm2022/lib/home-button/home-button.component.mjs +3 -3
- package/esm2022/lib/icons/icon/icon.component.mjs +40 -0
- package/esm2022/lib/icons/icon.provider.mjs +14 -0
- package/esm2022/lib/icons/index.mjs +4 -0
- package/esm2022/lib/icons/shared/icon.interface.mjs +2 -0
- package/esm2022/lib/icons/shared/icons.mjs +34 -0
- package/esm2022/lib/icons/shared/index.mjs +3 -0
- package/esm2022/lib/interactive-tour/interactive-tour.component.mjs +3 -3
- package/esm2022/lib/table/table.component.mjs +3 -3
- package/esm2022/lib/tool/shared/tool.interface.mjs +1 -1
- package/esm2022/lib/tool/toolbox/toolbox.component.mjs +1 -2
- package/esm2022/public_api.mjs +2 -1
- package/fesm2022/igo2-common.mjs +157 -94
- package/fesm2022/igo2-common.mjs.map +1 -1
- package/lib/action/actionbar/actionbar-item.component.d.ts +2 -5
- package/lib/action/shared/action.interfaces.d.ts +2 -1
- package/lib/badge-icon/badge-icon.directive.d.ts +3 -5
- package/lib/icons/icon/icon.component.d.ts +16 -0
- package/lib/icons/icon.provider.d.ts +4 -0
- package/lib/icons/index.d.ts +3 -0
- package/lib/icons/shared/icon.interface.d.ts +4 -0
- package/lib/icons/shared/icons.d.ts +21 -0
- package/lib/icons/shared/index.d.ts +2 -0
- package/lib/tool/shared/tool.interface.d.ts +2 -2
- package/package.json +3 -3
- package/public_api.d.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { BehaviorSubject, isObservable } from 'rxjs';
|
|
3
3
|
import { Action } from '../shared/action.interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -8,7 +8,6 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
export declare class ActionbarItemComponent implements OnInit, OnDestroy {
|
|
9
9
|
readonly disabled$: BehaviorSubject<boolean>;
|
|
10
10
|
readonly checkCondition$: BehaviorSubject<boolean>;
|
|
11
|
-
readonly icon$: BehaviorSubject<string>;
|
|
12
11
|
readonly tooltip$: BehaviorSubject<string>;
|
|
13
12
|
readonly noDisplay$: BehaviorSubject<boolean>;
|
|
14
13
|
readonly ngClass$: BehaviorSubject<{
|
|
@@ -17,11 +16,11 @@ export declare class ActionbarItemComponent implements OnInit, OnDestroy {
|
|
|
17
16
|
private ngClass$$;
|
|
18
17
|
private disabled$$;
|
|
19
18
|
private availability$$;
|
|
20
|
-
private icon$$;
|
|
21
19
|
private checkCondition$$;
|
|
22
20
|
private tooltip$$;
|
|
23
21
|
private noDisplay$$;
|
|
24
22
|
private display$$;
|
|
23
|
+
isObservable: typeof isObservable;
|
|
25
24
|
/**
|
|
26
25
|
* Action
|
|
27
26
|
*/
|
|
@@ -60,7 +59,6 @@ export declare class ActionbarItemComponent implements OnInit, OnDestroy {
|
|
|
60
59
|
* @internal
|
|
61
60
|
*/
|
|
62
61
|
get title(): string;
|
|
63
|
-
constructor();
|
|
64
62
|
ngOnInit(): void;
|
|
65
63
|
ngOnDestroy(): void;
|
|
66
64
|
/**
|
|
@@ -72,7 +70,6 @@ export declare class ActionbarItemComponent implements OnInit, OnDestroy {
|
|
|
72
70
|
private updateNgClass;
|
|
73
71
|
private updateTooltip;
|
|
74
72
|
private updateCheckCondition;
|
|
75
|
-
private updateIcon;
|
|
76
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionbarItemComponent, never>;
|
|
77
74
|
static ɵcmp: i0.ɵɵComponentDeclaration<ActionbarItemComponent, "igo-actionbar-item", never, { "action": { "alias": "action"; "required": false; }; "color": { "alias": "color"; "required": false; }; "withTitle": { "alias": "withTitle"; "required": false; }; "withIcon": { "alias": "withIcon"; "required": false; }; "withTooltip": { "alias": "withTooltip"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "noDisplay": { "alias": "noDisplay"; "required": false; }; }, { "trigger": "trigger"; }, never, never, true, never>;
|
|
78
75
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
+
import { IconSvg } from '../../icons';
|
|
2
3
|
export interface Action {
|
|
3
4
|
id: string;
|
|
4
5
|
handler: ActionHandler;
|
|
5
6
|
title?: string;
|
|
6
|
-
icon?: string | Observable<string>;
|
|
7
|
+
icon?: string | IconSvg | Observable<string>;
|
|
7
8
|
tooltip?: string | Observable<string>;
|
|
8
9
|
args?: any[];
|
|
9
10
|
checkbox?: boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
-
import { MatIconRegistry } from '@angular/material/icon';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* This directive allow to add an icon inside a matBadge.
|
|
@@ -8,9 +7,8 @@ import * as i0 from "@angular/core";
|
|
|
8
7
|
*/
|
|
9
8
|
export declare class IgoBadgeIconDirective implements OnInit {
|
|
10
9
|
private el;
|
|
11
|
-
private matIconRegistry;
|
|
12
10
|
set igoMatBadgeIcon(value: string);
|
|
13
|
-
private
|
|
11
|
+
private html;
|
|
14
12
|
set matBadgeHidden(value: boolean);
|
|
15
13
|
private hidden;
|
|
16
14
|
set matBadgeDisabled(value: boolean);
|
|
@@ -25,9 +23,9 @@ export declare class IgoBadgeIconDirective implements OnInit {
|
|
|
25
23
|
private backgroundColor;
|
|
26
24
|
get badge(): any;
|
|
27
25
|
private originalColor;
|
|
28
|
-
constructor(el: ElementRef
|
|
26
|
+
constructor(el: ElementRef);
|
|
29
27
|
ngOnInit(): void;
|
|
30
|
-
private
|
|
28
|
+
private updateHtml;
|
|
31
29
|
private updateColor;
|
|
32
30
|
private updateHidden;
|
|
33
31
|
private updateDisabled;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MatIconRegistry } from '@angular/material/icon';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import { IconSvg } from '../shared';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class IgoIconComponent {
|
|
6
|
+
private iconRegistry;
|
|
7
|
+
private sanitizer;
|
|
8
|
+
set icon(icon: string | IconSvg);
|
|
9
|
+
get icon(): string | IconSvg;
|
|
10
|
+
private _icon;
|
|
11
|
+
constructor(iconRegistry: MatIconRegistry, sanitizer: DomSanitizer);
|
|
12
|
+
registerSvg(icon: IconSvg): void;
|
|
13
|
+
isSvg(icon: string | IconSvg): icon is IconSvg;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoIconComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IgoIconComponent, "igo-icon", never, { "icon": { "alias": "icon"; "required": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IconSvg } from './icon.interface';
|
|
2
|
+
/**
|
|
3
|
+
* Source: https://pictogrammers.com/library/mdi/
|
|
4
|
+
*/
|
|
5
|
+
export declare const MAGNIFY_SCAN_ICON: IconSvg;
|
|
6
|
+
export declare const MICROSOFT_ICON: {
|
|
7
|
+
name: string;
|
|
8
|
+
svg: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const KEYBOARD_ESC_ICON: {
|
|
11
|
+
name: string;
|
|
12
|
+
svg: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const ENGINE_ICON: {
|
|
15
|
+
name: string;
|
|
16
|
+
svg: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const SELECTION_MARKER_ICON: {
|
|
19
|
+
name: string;
|
|
20
|
+
svg: string;
|
|
21
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/common",
|
|
3
|
-
"version": "17.0.0-next.
|
|
3
|
+
"version": "17.0.0-next.6",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "IGO Community",
|
|
6
6
|
"keywords": [
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@angular/material": "^17.0.3",
|
|
45
45
|
"@angular/platform-browser": "^17.0.6",
|
|
46
46
|
"@floating-ui/utils": "^0.1.4",
|
|
47
|
-
"@igo2/core": "^17.0.0-next.
|
|
48
|
-
"@igo2/utils": "^17.0.0-next.
|
|
47
|
+
"@igo2/core": "^17.0.0-next.6",
|
|
48
|
+
"@igo2/utils": "^17.0.0-next.6",
|
|
49
49
|
"angular-shepherd": "17.0.0",
|
|
50
50
|
"ngx-color": "^9.0.0",
|
|
51
51
|
"scroll-into-view-if-needed": "^3.0.0",
|
package/public_api.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export * from './lib/flexible';
|
|
|
61
61
|
export * from './lib/form-dialog';
|
|
62
62
|
export * from './lib/form';
|
|
63
63
|
export * from './lib/home-button';
|
|
64
|
+
export * from './lib/icons';
|
|
64
65
|
export * from './lib/image';
|
|
65
66
|
export * from './lib/interactive-tour';
|
|
66
67
|
export * from './lib/json-dialog';
|