@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.
Files changed (35) hide show
  1. package/esm2022/lib/action/actionbar/actionbar-item.component.mjs +10 -24
  2. package/esm2022/lib/action/actionbar/actionbar.component.mjs +5 -5
  3. package/esm2022/lib/action/shared/action.interfaces.mjs +1 -1
  4. package/esm2022/lib/badge-icon/badge-icon.directive.mjs +14 -17
  5. package/esm2022/lib/collapsible/collapsible.component.mjs +3 -3
  6. package/esm2022/lib/entity/entity-table/entity-table.component.mjs +3 -3
  7. package/esm2022/lib/form/form-field/form-field-select.component.mjs +3 -3
  8. package/esm2022/lib/form/form-field/form-field-text.component.mjs +3 -3
  9. package/esm2022/lib/form/form-field/form-field-textarea.component.mjs +3 -3
  10. package/esm2022/lib/home-button/home-button.component.mjs +3 -3
  11. package/esm2022/lib/icons/icon/icon.component.mjs +40 -0
  12. package/esm2022/lib/icons/icon.provider.mjs +14 -0
  13. package/esm2022/lib/icons/index.mjs +4 -0
  14. package/esm2022/lib/icons/shared/icon.interface.mjs +2 -0
  15. package/esm2022/lib/icons/shared/icons.mjs +34 -0
  16. package/esm2022/lib/icons/shared/index.mjs +3 -0
  17. package/esm2022/lib/interactive-tour/interactive-tour.component.mjs +3 -3
  18. package/esm2022/lib/table/table.component.mjs +3 -3
  19. package/esm2022/lib/tool/shared/tool.interface.mjs +1 -1
  20. package/esm2022/lib/tool/toolbox/toolbox.component.mjs +1 -2
  21. package/esm2022/public_api.mjs +2 -1
  22. package/fesm2022/igo2-common.mjs +157 -94
  23. package/fesm2022/igo2-common.mjs.map +1 -1
  24. package/lib/action/actionbar/actionbar-item.component.d.ts +2 -5
  25. package/lib/action/shared/action.interfaces.d.ts +2 -1
  26. package/lib/badge-icon/badge-icon.directive.d.ts +3 -5
  27. package/lib/icons/icon/icon.component.d.ts +16 -0
  28. package/lib/icons/icon.provider.d.ts +4 -0
  29. package/lib/icons/index.d.ts +3 -0
  30. package/lib/icons/shared/icon.interface.d.ts +4 -0
  31. package/lib/icons/shared/icons.d.ts +21 -0
  32. package/lib/icons/shared/index.d.ts +2 -0
  33. package/lib/tool/shared/tool.interface.d.ts +2 -2
  34. package/package.json +3 -3
  35. 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 svg;
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, matIconRegistry: MatIconRegistry);
26
+ constructor(el: ElementRef);
29
27
  ngOnInit(): void;
30
- private updateSvg;
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,4 @@
1
+ import { EnvironmentProviders } from '@angular/core';
2
+ type MaterialSymbolStyle = 'outlined' | 'rounded' | 'sharp';
3
+ export declare function provideIcon(style?: MaterialSymbolStyle): EnvironmentProviders;
4
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './shared';
2
+ export * from './icon.provider';
3
+ export * from './icon/icon.component';
@@ -0,0 +1,4 @@
1
+ export interface IconSvg {
2
+ name: string;
3
+ svg: string;
4
+ }
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ export * from './icons';
2
+ export * from './icon.interface';
@@ -1,9 +1,9 @@
1
+ import { IconSvg } from '../../icons';
1
2
  export interface Tool {
2
3
  name: string;
3
4
  component: any;
4
5
  title?: string;
5
- icon?: string;
6
- iconImage?: string;
6
+ icon?: string | IconSvg;
7
7
  tooltip?: string;
8
8
  global?: boolean;
9
9
  options?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/common",
3
- "version": "17.0.0-next.5",
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.5",
48
- "@igo2/utils": "^17.0.0-next.5",
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';