@igo2/common 20.0.1-next.1 → 20.1.0-next.2

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 (89) hide show
  1. package/action/index.d.ts +22 -22
  2. package/clickout/index.d.ts +2 -2
  3. package/collapsible/index.d.ts +6 -10
  4. package/color/index.d.ts +3 -4
  5. package/context-menu/index.d.ts +9 -9
  6. package/datepicker/index.d.ts +65 -0
  7. package/drag-drop/index.d.ts +21 -23
  8. package/dynamic-component/index.d.ts +7 -7
  9. package/entity/index.d.ts +45 -48
  10. package/fesm2022/igo2-common-action.mjs +60 -97
  11. package/fesm2022/igo2-common-action.mjs.map +1 -1
  12. package/fesm2022/igo2-common-backdrop.mjs +7 -7
  13. package/fesm2022/igo2-common-backdrop.mjs.map +1 -1
  14. package/fesm2022/igo2-common-badge.mjs +7 -7
  15. package/fesm2022/igo2-common-badge.mjs.map +1 -1
  16. package/fesm2022/igo2-common-clickout.mjs +10 -12
  17. package/fesm2022/igo2-common-clickout.mjs.map +1 -1
  18. package/fesm2022/igo2-common-clone.mjs +7 -7
  19. package/fesm2022/igo2-common-collapsible.mjs +18 -39
  20. package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
  21. package/fesm2022/igo2-common-color.mjs +14 -18
  22. package/fesm2022/igo2-common-color.mjs.map +1 -1
  23. package/fesm2022/igo2-common-confirm-dialog.mjs +10 -10
  24. package/fesm2022/igo2-common-context-menu.mjs +22 -31
  25. package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
  26. package/fesm2022/igo2-common-custom-html.mjs +10 -10
  27. package/fesm2022/igo2-common-custom-html.mjs.map +1 -1
  28. package/fesm2022/igo2-common-datepicker.mjs +316 -0
  29. package/fesm2022/igo2-common-datepicker.mjs.map +1 -0
  30. package/fesm2022/igo2-common-dom.mjs +7 -7
  31. package/fesm2022/igo2-common-drag-drop.mjs +59 -75
  32. package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
  33. package/fesm2022/igo2-common-dynamic-component.mjs +34 -52
  34. package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
  35. package/fesm2022/igo2-common-entity.mjs +154 -206
  36. package/fesm2022/igo2-common-entity.mjs.map +1 -1
  37. package/fesm2022/igo2-common-flexible.mjs +13 -16
  38. package/fesm2022/igo2-common-flexible.mjs.map +1 -1
  39. package/fesm2022/igo2-common-form.mjs +120 -174
  40. package/fesm2022/igo2-common-form.mjs.map +1 -1
  41. package/fesm2022/igo2-common-home-button.mjs +11 -12
  42. package/fesm2022/igo2-common-home-button.mjs.map +1 -1
  43. package/fesm2022/igo2-common-icon.mjs +18 -24
  44. package/fesm2022/igo2-common-icon.mjs.map +1 -1
  45. package/fesm2022/igo2-common-image.mjs +16 -20
  46. package/fesm2022/igo2-common-image.mjs.map +1 -1
  47. package/fesm2022/igo2-common-interactive-tour.mjs +28 -33
  48. package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
  49. package/fesm2022/igo2-common-json-dialog.mjs +11 -11
  50. package/fesm2022/igo2-common-json-dialog.mjs.map +1 -1
  51. package/fesm2022/igo2-common-keyvalue.mjs +7 -7
  52. package/fesm2022/igo2-common-list.mjs +49 -66
  53. package/fesm2022/igo2-common-list.mjs.map +1 -1
  54. package/fesm2022/igo2-common-panel.mjs +15 -28
  55. package/fesm2022/igo2-common-panel.mjs.map +1 -1
  56. package/fesm2022/igo2-common-resizable-bar.mjs +25 -32
  57. package/fesm2022/igo2-common-resizable-bar.mjs.map +1 -1
  58. package/fesm2022/igo2-common-select-value-dialog.mjs +10 -10
  59. package/fesm2022/igo2-common-sidenav.mjs +7 -7
  60. package/fesm2022/igo2-common-sidenav.mjs.map +1 -1
  61. package/fesm2022/igo2-common-spinner.mjs +11 -11
  62. package/fesm2022/igo2-common-spinner.mjs.map +1 -1
  63. package/fesm2022/igo2-common-stop-propagation.mjs +10 -10
  64. package/fesm2022/igo2-common-stop-propagation.mjs.map +1 -1
  65. package/fesm2022/igo2-common-table.mjs +57 -87
  66. package/fesm2022/igo2-common-table.mjs.map +1 -1
  67. package/fesm2022/igo2-common-timepicker.mjs +105 -0
  68. package/fesm2022/igo2-common-timepicker.mjs.map +1 -0
  69. package/fesm2022/igo2-common-tool.mjs +29 -35
  70. package/fesm2022/igo2-common-tool.mjs.map +1 -1
  71. package/fesm2022/igo2-common-widget.mjs +27 -36
  72. package/fesm2022/igo2-common-widget.mjs.map +1 -1
  73. package/fesm2022/igo2-common-workspace.mjs +34 -44
  74. package/fesm2022/igo2-common-workspace.mjs.map +1 -1
  75. package/flexible/index.d.ts +2 -2
  76. package/form/index.d.ts +31 -33
  77. package/home-button/index.d.ts +1 -2
  78. package/icon/index.d.ts +4 -5
  79. package/image/index.d.ts +3 -3
  80. package/interactive-tour/index.d.ts +5 -5
  81. package/list/index.d.ts +23 -23
  82. package/package.json +11 -3
  83. package/panel/index.d.ts +4 -6
  84. package/resizable-bar/index.d.ts +11 -13
  85. package/table/index.d.ts +13 -19
  86. package/timepicker/index.d.ts +33 -0
  87. package/tool/index.d.ts +5 -5
  88. package/widget/index.d.ts +9 -9
  89. package/workspace/index.d.ts +13 -12
package/list/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as i0 from '@angular/core';
2
- import { Renderer2, ElementRef, EventEmitter, AfterViewInit, OnInit, OnDestroy, QueryList, ModuleWithProviders } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { Renderer2, ElementRef, AfterViewInit, OnInit, OnDestroy, ModuleWithProviders } from '@angular/core';
3
3
 
4
4
  declare class ListItemDirective {
5
5
  renderer: Renderer2;
@@ -19,18 +19,18 @@ declare class ListItemDirective {
19
19
  get disabled(): boolean;
20
20
  set disabled(value: boolean);
21
21
  private _disabled;
22
- beforeSelect: EventEmitter<ListItemDirective>;
23
- beforeFocus: EventEmitter<ListItemDirective>;
24
- beforeUnselect: EventEmitter<ListItemDirective>;
25
- beforeUnfocus: EventEmitter<ListItemDirective>;
26
- beforeDisable: EventEmitter<ListItemDirective>;
27
- beforeEnable: EventEmitter<ListItemDirective>;
28
- focus: EventEmitter<ListItemDirective>;
29
- unfocus: EventEmitter<ListItemDirective>;
30
- select: EventEmitter<ListItemDirective>;
31
- unselect: EventEmitter<ListItemDirective>;
32
- disable: EventEmitter<ListItemDirective>;
33
- enable: EventEmitter<ListItemDirective>;
22
+ readonly beforeSelect: _angular_core.OutputEmitterRef<ListItemDirective>;
23
+ readonly beforeFocus: _angular_core.OutputEmitterRef<ListItemDirective>;
24
+ readonly beforeUnselect: _angular_core.OutputEmitterRef<ListItemDirective>;
25
+ readonly beforeUnfocus: _angular_core.OutputEmitterRef<ListItemDirective>;
26
+ readonly beforeDisable: _angular_core.OutputEmitterRef<ListItemDirective>;
27
+ readonly beforeEnable: _angular_core.OutputEmitterRef<ListItemDirective>;
28
+ readonly focus: _angular_core.OutputEmitterRef<ListItemDirective>;
29
+ readonly unfocus: _angular_core.OutputEmitterRef<ListItemDirective>;
30
+ readonly select: _angular_core.OutputEmitterRef<ListItemDirective>;
31
+ readonly unselect: _angular_core.OutputEmitterRef<ListItemDirective>;
32
+ readonly disable: _angular_core.OutputEmitterRef<ListItemDirective>;
33
+ readonly enable: _angular_core.OutputEmitterRef<ListItemDirective>;
34
34
  onClick(): void;
35
35
  getOffsetTop(): number;
36
36
  private toggleFocusedClass;
@@ -38,8 +38,8 @@ declare class ListItemDirective {
38
38
  private toggleDisabledClass;
39
39
  private addCls;
40
40
  private removeCls;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<ListItemDirective, never>;
42
- static ɵdir: i0.ɵɵDirectiveDeclaration<ListItemDirective, "[igoListItem]", never, { "color": { "alias": "color"; "required": false; }; "focused": { "alias": "focused"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "beforeSelect": "beforeSelect"; "beforeFocus": "beforeFocus"; "beforeUnselect": "beforeUnselect"; "beforeUnfocus": "beforeUnfocus"; "beforeDisable": "beforeDisable"; "beforeEnable": "beforeEnable"; "focus": "focus"; "unfocus": "unfocus"; "select": "select"; "unselect": "unselect"; "disable": "disable"; "enable": "enable"; }, never, never, true, never>;
41
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListItemDirective, never>;
42
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ListItemDirective, "[igoListItem]", never, { "color": { "alias": "color"; "required": false; }; "focused": { "alias": "focused"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "beforeSelect": "beforeSelect"; "beforeFocus": "beforeFocus"; "beforeUnselect": "beforeUnselect"; "beforeUnfocus": "beforeUnfocus"; "beforeDisable": "beforeDisable"; "beforeEnable": "beforeEnable"; "focus": "focus"; "unfocus": "unfocus"; "select": "select"; "unselect": "unselect"; "disable": "disable"; "enable": "enable"; }, never, never, true, never>;
43
43
  }
44
44
 
45
45
  declare class ListComponent implements AfterViewInit, OnInit, OnDestroy {
@@ -57,9 +57,9 @@ declare class ListComponent implements AfterViewInit, OnInit, OnDestroy {
57
57
  set focusedItem(value: ListItemDirective);
58
58
  private _focusedItem;
59
59
  private navigationEnabled;
60
- private listItems$$;
61
60
  private subscriptions;
62
- listItems: QueryList<ListItemDirective>;
61
+ private listItemsEffect;
62
+ readonly listItems: _angular_core.Signal<readonly ListItemDirective[]>;
63
63
  handleKeyboardEvent(event: KeyboardEvent): void;
64
64
  ngOnInit(): void;
65
65
  ngAfterViewInit(): void;
@@ -85,8 +85,8 @@ declare class ListComponent implements AfterViewInit, OnInit, OnDestroy {
85
85
  private findFocusedItem;
86
86
  private getFocusedIndex;
87
87
  private navigate;
88
- static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
89
- static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "igo-list", never, { "navigation": { "alias": "navigation"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; }, {}, ["listItems"], ["*"], true, never>;
88
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListComponent, never>;
89
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListComponent, "igo-list", never, { "navigation": { "alias": "navigation"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; }, {}, ["listItems"], ["*"], true, never>;
90
90
  }
91
91
 
92
92
  /**
@@ -94,9 +94,9 @@ declare class ListComponent implements AfterViewInit, OnInit, OnDestroy {
94
94
  */
95
95
  declare class IgoListModule {
96
96
  static forRoot(): ModuleWithProviders<IgoListModule>;
97
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoListModule, never>;
98
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoListModule, never, [typeof ListItemDirective, typeof ListComponent], [typeof ListItemDirective, typeof ListComponent]>;
99
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoListModule>;
97
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoListModule, never>;
98
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoListModule, never, [typeof ListItemDirective, typeof ListComponent], [typeof ListItemDirective, typeof ListComponent]>;
99
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoListModule>;
100
100
  }
101
101
 
102
102
  declare const LIST_DIRECTIVES: readonly [typeof ListItemDirective, typeof ListComponent];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/common",
3
- "version": "20.0.1-next.1",
3
+ "version": "20.1.0-next.2",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -161,9 +161,17 @@
161
161
  "./package.json": {
162
162
  "default": "./package.json"
163
163
  },
164
+ "./datepicker": {
165
+ "types": "./datepicker/index.d.ts",
166
+ "default": "./fesm2022/igo2-common-datepicker.mjs"
167
+ },
164
168
  "./resizable-bar": {
165
169
  "types": "./resizable-bar/index.d.ts",
166
170
  "default": "./fesm2022/igo2-common-resizable-bar.mjs"
171
+ },
172
+ "./timepicker": {
173
+ "types": "./timepicker/index.d.ts",
174
+ "default": "./fesm2022/igo2-common-timepicker.mjs"
167
175
  }
168
176
  },
169
177
  "dependencies": {
@@ -177,8 +185,8 @@
177
185
  "@angular/material": "^20.0.0",
178
186
  "@angular/platform-browser": "^20.0.0",
179
187
  "@floating-ui/utils": "^0.2.0",
180
- "@igo2/core": "^20.0.1-next.1",
181
- "@igo2/utils": "^20.0.1-next.1",
188
+ "@igo2/core": "^20.1.0-next.2",
189
+ "@igo2/utils": "^20.1.0-next.2",
182
190
  "angular-shepherd": "^20.0.0",
183
191
  "ngx-color": "^10.0.0",
184
192
  "scroll-into-view-if-needed": "^3.1.0",
package/panel/index.d.ts CHANGED
@@ -1,13 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
2
 
3
3
  declare class PanelComponent {
4
- title: string;
5
- get withHeader(): boolean;
6
- set withHeader(value: boolean);
7
- private _withHeader;
8
- cursorPointer: boolean;
4
+ readonly title: i0.InputSignal<string>;
5
+ readonly withHeader: i0.InputSignal<boolean>;
6
+ readonly cursorPointer: i0.InputSignal<boolean>;
9
7
  static ɵfac: i0.ɵɵFactoryDeclaration<PanelComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<PanelComponent, "igo-panel", never, { "title": { "alias": "title"; "required": false; }; "withHeader": { "alias": "withHeader"; "required": false; }; "cursorPointer": { "alias": "cursorPointer"; "required": false; }; }, {}, never, ["[panelLeftButton]", "[panelHeader]", "[panelRightButton]", "*"], true, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<PanelComponent, "igo-panel", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "withHeader": { "alias": "withHeader"; "required": false; "isSignal": true; }; "cursorPointer": { "alias": "cursorPointer"; "required": false; "isSignal": true; }; }, {}, never, ["[panelLeftButton]", "[panelHeader]", "[panelRightButton]", "*"], true, never>;
11
9
  }
12
10
 
13
11
  /**
@@ -1,15 +1,15 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnInit } from '@angular/core';
3
3
  import { Subscription } from 'rxjs';
4
4
 
5
5
  declare class ResizeDirective {
6
6
  mouseMove$$: Subscription;
7
7
  mouseUp$$: Subscription;
8
- change: EventEmitter<MouseEvent>;
8
+ readonly change: _angular_core.OutputEmitterRef<MouseEvent>;
9
9
  onMouseDown(event: MouseEvent): void;
10
10
  private _unsubscribe;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ResizeDirective, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeDirective, "[igoResize]", never, {}, { "change": "change"; }, never, never, true, never>;
11
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResizeDirective, never>;
12
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ResizeDirective, "[igoResize]", never, {}, { "change": "change"; }, never, never, true, never>;
13
13
  }
14
14
 
15
15
  declare const ResizeAnchorType: readonly ["top", "left", "bottom", "right"];
@@ -19,19 +19,17 @@ type AlignmentType = (typeof AlignmentType)[number];
19
19
  declare class ResizableBarComponent implements OnInit {
20
20
  alignement: AlignmentType;
21
21
  iconRotation: string;
22
- anchor: ResizeAnchorType;
22
+ readonly anchor: _angular_core.InputSignal<"top" | "left" | "bottom" | "right">;
23
23
  /** En pixel */
24
- min: number;
24
+ readonly min: _angular_core.InputSignalWithTransform<number, unknown>;
25
25
  /** En pixel */
26
- max: number;
27
- change: EventEmitter<MouseEvent>;
26
+ readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
27
+ readonly change: _angular_core.OutputEmitterRef<MouseEvent>;
28
28
  get cssClass(): string;
29
29
  ngOnInit(): void;
30
30
  onChange(event: MouseEvent): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<ResizableBarComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<ResizableBarComponent, "igo-resizable-bar", never, { "anchor": { "alias": "anchor"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
33
- static ngAcceptInputType_min: unknown;
34
- static ngAcceptInputType_max: unknown;
31
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResizableBarComponent, never>;
32
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResizableBarComponent, "igo-resizable-bar", never, { "anchor": { "alias": "anchor"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, { "change": "change"; }, never, never, true, never>;
35
33
  }
36
34
 
37
35
  export { AlignmentType, ResizableBarComponent, ResizeAnchorType, ResizeDirective };
package/table/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as i0 from '@angular/core';
2
- import { OnChanges, OnInit, AfterViewInit, EventEmitter, ElementRef, ModuleWithProviders } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnChanges, OnInit, AfterViewInit, ElementRef, ModuleWithProviders } from '@angular/core';
3
3
  import { SelectionModel } from '@angular/cdk/collections';
4
4
  import { MatSort } from '@angular/material/sort';
5
5
  import { BehaviorSubject, Observable } from 'rxjs';
@@ -60,25 +60,19 @@ declare class TableDataSource extends DataSource<any> {
60
60
  }
61
61
 
62
62
  declare class TableComponent implements OnChanges, OnInit, AfterViewInit {
63
- get database(): TableDatabase;
64
- set database(value: TableDatabase);
65
- private _database;
66
- get model(): TableModel;
67
- set model(value: TableModel);
68
- private _model;
69
- get hasFilterInput(): boolean;
70
- set hasFilterInput(value: boolean);
71
- private _hasFIlterInput;
63
+ readonly database: _angular_core.InputSignal<TableDatabase>;
64
+ readonly model: _angular_core.InputSignal<TableModel>;
65
+ readonly hasFilterInput: _angular_core.InputSignal<boolean>;
72
66
  displayedColumns: any;
73
67
  dataSource: TableDataSource | null;
74
68
  selection: SelectionModel<any>;
75
- select: EventEmitter<{
69
+ readonly select: _angular_core.OutputEmitterRef<{
76
70
  added: any[];
77
71
  removed: any[];
78
72
  source: SelectionModel<any>;
79
73
  }>;
80
- filter: ElementRef;
81
- sort: MatSort;
74
+ readonly filter: _angular_core.Signal<ElementRef<any>>;
75
+ readonly sort: _angular_core.Signal<MatSort>;
82
76
  ngOnInit(): void;
83
77
  ngAfterViewInit(): void;
84
78
  ngOnChanges(change: any): void;
@@ -89,8 +83,8 @@ declare class TableComponent implements OnChanges, OnInit, AfterViewInit {
89
83
  /** Selects all rows if they are not all selected; otherwise clear selection. */
90
84
  masterToggle(): void;
91
85
  handleClickAction(event: any, action: any, row: any): void;
92
- static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
93
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "igo-table", never, { "database": { "alias": "database"; "required": false; }; "model": { "alias": "model"; "required": false; }; "hasFilterInput": { "alias": "hasFilterInput"; "required": false; }; }, { "select": "select"; }, never, never, true, never>;
86
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent, never>;
87
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent, "igo-table", never, { "database": { "alias": "database"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; "hasFilterInput": { "alias": "hasFilterInput"; "required": false; "isSignal": true; }; }, { "select": "select"; }, never, never, true, never>;
94
88
  }
95
89
 
96
90
  /**
@@ -98,9 +92,9 @@ declare class TableComponent implements OnChanges, OnInit, AfterViewInit {
98
92
  */
99
93
  declare class IgoTableModule {
100
94
  static forRoot(): ModuleWithProviders<IgoTableModule>;
101
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoTableModule, never>;
102
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoTableModule, never, [typeof TableComponent], [typeof TableComponent]>;
103
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoTableModule>;
95
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoTableModule, never>;
96
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoTableModule, never, [typeof TableComponent], [typeof TableComponent]>;
97
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoTableModule>;
104
98
  }
105
99
 
106
100
  export { IgoTableModule, TableActionColor, TableComponent, TableDataSource, TableDatabase };
@@ -0,0 +1,33 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnInit } from '@angular/core';
3
+ import { FormControl } from '@angular/forms';
4
+ import { TimeFrame } from '@igo2/utils';
5
+
6
+ declare class TimepickerComponent implements OnInit {
7
+ readonly value: _angular_core.InputSignal<Date | "now" | "today">;
8
+ readonly hourInputLabel: _angular_core.InputSignal<string>;
9
+ readonly minuteInputLabel: _angular_core.InputSignal<string>;
10
+ readonly minHour: _angular_core.InputSignal<number>;
11
+ readonly maxHour: _angular_core.InputSignal<number>;
12
+ set disabled(value: boolean);
13
+ get disabled(): boolean;
14
+ private _disabled;
15
+ /** interval in minutes*/
16
+ readonly interval: _angular_core.InputSignal<number>;
17
+ readonly valueChange: _angular_core.OutputEmitterRef<{
18
+ hour: number;
19
+ minute: number;
20
+ }>;
21
+ hourFormControl: FormControl<number>;
22
+ minuteFormControl: FormControl<number>;
23
+ get hours(): number[];
24
+ get minutes(): number[];
25
+ ngOnInit(): void;
26
+ reset(value: Date | TimeFrame): void;
27
+ private setDisabledState;
28
+ private toggleDisabled;
29
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimepickerComponent, never>;
30
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimepickerComponent, "igo-timepicker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "hourInputLabel": { "alias": "hourInputLabel"; "required": false; "isSignal": true; }; "minuteInputLabel": { "alias": "minuteInputLabel"; "required": false; "isSignal": true; }; "minHour": { "alias": "minHour"; "required": false; "isSignal": true; }; "maxHour": { "alias": "maxHour"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "interval": { "alias": "interval"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
31
+ }
32
+
33
+ export { TimepickerComponent };
package/tool/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import { ActionStore } from '@igo2/common/action';
6
6
 
7
7
  interface Tool {
8
8
  name: string;
9
- component: any;
9
+ component?: any;
10
10
  title?: string;
11
11
  icon?: string | IconSvg;
12
12
  tooltip?: string;
@@ -188,15 +188,15 @@ declare class ToolboxComponent implements OnInit, OnDestroy {
188
188
  /**
189
189
  * Toolbox
190
190
  */
191
- toolbox: Toolbox;
191
+ readonly toolbox: i0.InputSignal<Toolbox>;
192
192
  /**
193
193
  * Whether the toolbox should animate the first tool entering
194
194
  */
195
- animate: boolean;
195
+ readonly animate: i0.InputSignal<boolean>;
196
196
  /**
197
197
  * Color of Toolbox
198
198
  */
199
- color: ToolboxColor;
199
+ readonly color: i0.InputSignal<ToolboxColor>;
200
200
  /**
201
201
  * @ignore
202
202
  */
@@ -262,7 +262,7 @@ declare class ToolboxComponent implements OnInit, OnDestroy {
262
262
  */
263
263
  private unAnimate;
264
264
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolboxComponent, never>;
265
- static ɵcmp: i0.ɵɵComponentDeclaration<ToolboxComponent, "igo-toolbox", never, { "toolbox": { "alias": "toolbox"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
265
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolboxComponent, "igo-toolbox", never, { "toolbox": { "alias": "toolbox"; "required": false; "isSignal": true; }; "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
266
266
  }
267
267
 
268
268
  /**
package/widget/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { DynamicComponent } from '@igo2/common/dynamic-component';
2
2
  import * as i0 from '@angular/core';
3
- import { EventEmitter, OnDestroy } from '@angular/core';
3
+ import { EventEmitter, OutputEmitterRef, OnDestroy } from '@angular/core';
4
4
 
5
5
  /**
6
6
  * This is the interface a widget component needs to implement. A widget
@@ -10,8 +10,8 @@ import { EventEmitter, OnDestroy } from '@angular/core';
10
10
  * method. This method could, for example, trigger the change detection.
11
11
  */
12
12
  interface WidgetComponent {
13
- complete: EventEmitter<any>;
14
- cancel: EventEmitter<any>;
13
+ complete: EventEmitter<any> | OutputEmitterRef<any>;
14
+ cancel: EventEmitter<any> | OutputEmitterRef<any>;
15
15
  }
16
16
 
17
17
  declare class Widget extends DynamicComponent<WidgetComponent> {
@@ -38,23 +38,23 @@ declare class WidgetOutletComponent implements OnDestroy {
38
38
  /**
39
39
  * Widget
40
40
  */
41
- widget: DynamicComponent<WidgetComponent>;
41
+ readonly widget: i0.ModelSignal<DynamicComponent<WidgetComponent>>;
42
42
  /**
43
43
  * Widget inputs
44
44
  */
45
- inputs: Record<string, any>;
45
+ readonly inputs: i0.InputSignal<Record<string, any>>;
46
46
  /**
47
47
  * Widget subscribers
48
48
  */
49
- subscribers: Record<string, (event: any) => void>;
49
+ readonly subscribers: i0.InputSignal<Record<string, (event: any) => void>>;
50
50
  /**
51
51
  * Event emitted when the widget emits 'complete'
52
52
  */
53
- complete: EventEmitter<any>;
53
+ readonly complete: i0.OutputEmitterRef<any>;
54
54
  /**
55
55
  * Event emitted when the widget emits 'cancel'
56
56
  */
57
- cancel: EventEmitter<any>;
57
+ readonly cancel: i0.OutputEmitterRef<any>;
58
58
  /**
59
59
  * Destroy the current widget and all it's inner subscriptions
60
60
  * @internal
@@ -82,7 +82,7 @@ declare class WidgetOutletComponent implements OnDestroy {
82
82
  */
83
83
  private destroyWidget;
84
84
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetOutletComponent, never>;
85
- static ɵcmp: i0.ɵɵComponentDeclaration<WidgetOutletComponent, "igo-widget-outlet", never, { "widget": { "alias": "widget"; "required": false; }; "inputs": { "alias": "inputs"; "required": false; }; "subscribers": { "alias": "subscribers"; "required": false; }; }, { "complete": "complete"; "cancel": "cancel"; }, never, never, true, never>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<WidgetOutletComponent, "igo-widget-outlet", never, { "widget": { "alias": "widget"; "required": false; "isSignal": true; }; "inputs": { "alias": "inputs"; "required": false; "isSignal": true; }; "subscribers": { "alias": "subscribers"; "required": false; "isSignal": true; }; }, { "widget": "widgetChange"; "complete": "complete"; "cancel": "cancel"; }, never, never, true, never>;
86
86
  }
87
87
 
88
88
  /**
@@ -3,14 +3,15 @@ import { BehaviorSubject } from 'rxjs';
3
3
  import { ActionStore } from '@igo2/common/action';
4
4
  import { Widget } from '@igo2/common/widget';
5
5
  import * as i0 from '@angular/core';
6
- import { EventEmitter } from '@angular/core';
7
6
 
8
- interface WorkspaceOptions {
9
- id: string;
7
+ interface WorkspaceOptions<T = {
8
+ [key: string]: any;
9
+ }> {
10
+ id: string | number;
10
11
  title: string;
11
12
  entityStore?: EntityStore<object>;
12
13
  actionStore?: ActionStore;
13
- meta?: Record<string, any>;
14
+ meta?: T;
14
15
  }
15
16
 
16
17
  /**
@@ -47,7 +48,7 @@ declare class Workspace<E extends object = object> {
47
48
  /**
48
49
  * Workspace id
49
50
  */
50
- get id(): string;
51
+ get id(): string | number;
51
52
  /**
52
53
  * Workspace title
53
54
  */
@@ -132,15 +133,15 @@ declare class WorkspaceSelectorComponent {
132
133
  /**
133
134
  * Store that holds the available workspaces.
134
135
  */
135
- store: WorkspaceStore;
136
+ readonly store: i0.InputSignal<WorkspaceStore>;
136
137
  /**
137
138
  * Wheither the selector must be disabled or not.
138
139
  */
139
- disabled: boolean;
140
+ readonly disabled: i0.InputSignal<boolean>;
140
141
  /**
141
142
  * Event emitted when an workspace is selected or unselected
142
143
  */
143
- selectedChange: EventEmitter<{
144
+ readonly selectedChange: i0.OutputEmitterRef<{
144
145
  selected: boolean;
145
146
  value: Workspace;
146
147
  }>;
@@ -156,7 +157,7 @@ declare class WorkspaceSelectorComponent {
156
157
  */
157
158
  onSelectedChange(event: EntitySelectorChange<Workspace>): void;
158
159
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceSelectorComponent, never>;
159
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceSelectorComponent, "igo-workspace-selector", never, { "store": { "alias": "store"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
160
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceSelectorComponent, "igo-workspace-selector", never, { "store": { "alias": "store"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
160
161
  }
161
162
 
162
163
  /**
@@ -177,12 +178,12 @@ declare class WorkspaceWidgetOutletComponent {
177
178
  /**
178
179
  * Workspace
179
180
  */
180
- workspace: Workspace;
181
+ readonly workspace: i0.InputSignal<Workspace<object>>;
181
182
  /**
182
183
  * Event emitted when a widget is deactivate which happens
183
184
  * when the widget's component emits the 'cancel' or 'complete' event.
184
185
  */
185
- deactivateWidget: EventEmitter<Widget>;
186
+ readonly deactivateWidget: i0.OutputEmitterRef<Widget>;
186
187
  /**
187
188
  * Observable of the workspace's active widget
188
189
  * @internal
@@ -213,7 +214,7 @@ declare class WorkspaceWidgetOutletComponent {
213
214
  */
214
215
  onWidgetComplete(widget: Widget): void;
215
216
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceWidgetOutletComponent, never>;
216
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceWidgetOutletComponent, "igo-workspace-widget-outlet", never, { "workspace": { "alias": "workspace"; "required": false; }; }, { "deactivateWidget": "deactivateWidget"; }, never, never, true, never>;
217
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceWidgetOutletComponent, "igo-workspace-widget-outlet", never, { "workspace": { "alias": "workspace"; "required": false; "isSignal": true; }; }, { "deactivateWidget": "deactivateWidget"; }, never, never, true, never>;
217
218
  }
218
219
 
219
220
  /**