@igo2/common 20.0.1 → 20.1.0-next.10

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 (84) 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 +135 -72
  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-badge.mjs +7 -7
  14. package/fesm2022/igo2-common-clickout.mjs +10 -12
  15. package/fesm2022/igo2-common-clickout.mjs.map +1 -1
  16. package/fesm2022/igo2-common-clone.mjs +7 -7
  17. package/fesm2022/igo2-common-collapsible.mjs +18 -39
  18. package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
  19. package/fesm2022/igo2-common-color.mjs +14 -18
  20. package/fesm2022/igo2-common-color.mjs.map +1 -1
  21. package/fesm2022/igo2-common-confirm-dialog.mjs +10 -10
  22. package/fesm2022/igo2-common-context-menu.mjs +22 -31
  23. package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
  24. package/fesm2022/igo2-common-custom-html.mjs +10 -10
  25. package/fesm2022/igo2-common-datepicker.mjs +316 -0
  26. package/fesm2022/igo2-common-datepicker.mjs.map +1 -0
  27. package/fesm2022/igo2-common-dom.mjs +7 -7
  28. package/fesm2022/igo2-common-drag-drop.mjs +59 -75
  29. package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
  30. package/fesm2022/igo2-common-dynamic-component.mjs +34 -52
  31. package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
  32. package/fesm2022/igo2-common-entity.mjs +284 -220
  33. package/fesm2022/igo2-common-entity.mjs.map +1 -1
  34. package/fesm2022/igo2-common-flexible.mjs +13 -16
  35. package/fesm2022/igo2-common-flexible.mjs.map +1 -1
  36. package/fesm2022/igo2-common-form.mjs +120 -174
  37. package/fesm2022/igo2-common-form.mjs.map +1 -1
  38. package/fesm2022/igo2-common-home-button.mjs +11 -12
  39. package/fesm2022/igo2-common-home-button.mjs.map +1 -1
  40. package/fesm2022/igo2-common-icon.mjs +18 -24
  41. package/fesm2022/igo2-common-icon.mjs.map +1 -1
  42. package/fesm2022/igo2-common-image.mjs +16 -20
  43. package/fesm2022/igo2-common-image.mjs.map +1 -1
  44. package/fesm2022/igo2-common-interactive-tour.mjs +28 -33
  45. package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
  46. package/fesm2022/igo2-common-json-dialog.mjs +11 -11
  47. package/fesm2022/igo2-common-json-dialog.mjs.map +1 -1
  48. package/fesm2022/igo2-common-keyvalue.mjs +7 -7
  49. package/fesm2022/igo2-common-list.mjs +49 -66
  50. package/fesm2022/igo2-common-list.mjs.map +1 -1
  51. package/fesm2022/igo2-common-panel.mjs +15 -28
  52. package/fesm2022/igo2-common-panel.mjs.map +1 -1
  53. package/fesm2022/igo2-common-resizable-bar.mjs +25 -32
  54. package/fesm2022/igo2-common-resizable-bar.mjs.map +1 -1
  55. package/fesm2022/igo2-common-select-value-dialog.mjs +10 -10
  56. package/fesm2022/igo2-common-sidenav.mjs +7 -7
  57. package/fesm2022/igo2-common-spinner.mjs +11 -11
  58. package/fesm2022/igo2-common-spinner.mjs.map +1 -1
  59. package/fesm2022/igo2-common-stop-propagation.mjs +10 -10
  60. package/fesm2022/igo2-common-table.mjs +57 -87
  61. package/fesm2022/igo2-common-table.mjs.map +1 -1
  62. package/fesm2022/igo2-common-timepicker.mjs +105 -0
  63. package/fesm2022/igo2-common-timepicker.mjs.map +1 -0
  64. package/fesm2022/igo2-common-tool.mjs +29 -35
  65. package/fesm2022/igo2-common-tool.mjs.map +1 -1
  66. package/fesm2022/igo2-common-widget.mjs +27 -36
  67. package/fesm2022/igo2-common-widget.mjs.map +1 -1
  68. package/fesm2022/igo2-common-workspace.mjs +34 -44
  69. package/fesm2022/igo2-common-workspace.mjs.map +1 -1
  70. package/flexible/index.d.ts +2 -2
  71. package/form/index.d.ts +31 -33
  72. package/home-button/index.d.ts +1 -2
  73. package/icon/index.d.ts +4 -5
  74. package/image/index.d.ts +3 -3
  75. package/interactive-tour/index.d.ts +5 -5
  76. package/list/index.d.ts +23 -23
  77. package/package.json +13 -4
  78. package/panel/index.d.ts +4 -6
  79. package/resizable-bar/index.d.ts +11 -13
  80. package/table/index.d.ts +13 -19
  81. package/timepicker/index.d.ts +33 -0
  82. package/tool/index.d.ts +5 -5
  83. package/widget/index.d.ts +9 -9
  84. package/workspace/index.d.ts +13 -12
package/form/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _igo2_common_form from '@igo2/common/form';
2
2
  import * as i0 from '@angular/core';
3
- import { OnChanges, EventEmitter, ElementRef, SimpleChanges, OnInit, ModuleWithProviders } from '@angular/core';
3
+ import { OnChanges, ElementRef, SimpleChanges, OnInit, ModuleWithProviders } from '@angular/core';
4
4
  import { ValidatorFn, UntypedFormControl, UntypedFormGroup, AbstractControl } from '@angular/forms';
5
5
  import { BehaviorSubject, Observable } from 'rxjs';
6
6
  import * as i1 from '@angular/material/dialog';
@@ -72,20 +72,20 @@ declare class FormComponent implements OnChanges {
72
72
  /**
73
73
  * Form
74
74
  */
75
- form: Form;
75
+ readonly form: i0.InputSignal<Form>;
76
76
  /**
77
77
  * Input data
78
78
  */
79
- formData: Record<string, any>;
79
+ readonly formData: i0.InputSignal<Record<string, any>>;
80
80
  /**
81
81
  * Form autocomplete
82
82
  */
83
- autocomplete: string;
83
+ readonly autocomplete: i0.InputSignal<string>;
84
84
  /**
85
85
  * Event emitted when the form is submitted
86
86
  */
87
- submitForm: EventEmitter<Record<string, any>>;
88
- buttons: ElementRef;
87
+ readonly submitForm: i0.OutputEmitterRef<Record<string, any>>;
88
+ readonly buttons: i0.Signal<ElementRef<any>>;
89
89
  get hasButtons(): boolean;
90
90
  /**
91
91
  * Is the entity or the template change, recreate the form or repopulate it.
@@ -106,7 +106,7 @@ declare class FormComponent implements OnChanges {
106
106
  */
107
107
  private clear;
108
108
  static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
109
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "igo-form", never, { "form": { "alias": "form"; "required": false; }; "formData": { "alias": "formData"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, { "submitForm": "submitForm"; }, never, ["*", "[formButtons]"], true, never>;
109
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "igo-form", never, { "form": { "alias": "form"; "required": false; "isSignal": true; }; "formData": { "alias": "formData"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, { "submitForm": "submitForm"; }, never, ["*", "[formButtons]"], true, never>;
110
110
  }
111
111
 
112
112
  /**
@@ -127,11 +127,11 @@ declare class FormGroupComponent {
127
127
  /**
128
128
  * Form field group
129
129
  */
130
- group: FormFieldGroup;
130
+ readonly group: i0.InputSignal<FormFieldGroup>;
131
131
  /**
132
132
  * Field placeholder
133
133
  */
134
- errors: Record<string, string>;
134
+ readonly errors: i0.InputSignal<Record<string, string>>;
135
135
  /**
136
136
  * Form group control
137
137
  */
@@ -157,7 +157,7 @@ declare class FormGroupComponent {
157
157
  */
158
158
  getErrorMessage(): string;
159
159
  static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupComponent, never>;
160
- static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupComponent, "igo-form-group", never, { "group": { "alias": "group"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; }, {}, never, ["*"], true, never>;
160
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupComponent, "igo-form-group", never, { "group": { "alias": "group"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
161
161
  }
162
162
 
163
163
  /**
@@ -178,7 +178,7 @@ declare class FormFieldComponent {
178
178
  /**
179
179
  * Field configuration
180
180
  */
181
- field: FormField;
181
+ readonly field: i0.InputSignal<FormField<FormFieldInputs>>;
182
182
  /**
183
183
  * Field inputs cache
184
184
  */
@@ -192,40 +192,38 @@ declare class FormFieldComponent {
192
192
  getFieldInputs(): FormFieldInputs;
193
193
  getFieldSubscribers(): FormFieldSubscribers;
194
194
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
195
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "igo-form-field", never, { "field": { "alias": "field"; "required": false; }; }, {}, never, never, true, never>;
195
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "igo-form-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
196
196
  }
197
197
 
198
198
  /**
199
199
  * This component renders a select field
200
200
  */
201
201
  declare class FormFieldSelectComponent implements OnInit {
202
- readonly disabled$: BehaviorSubject<boolean>;
202
+ readonly disabled: i0.WritableSignal<boolean>;
203
203
  /**
204
204
  * Select input choices
205
205
  */
206
- set choices(value: FormFieldSelectChoice[]);
207
- get choices(): FormFieldSelectChoice[];
208
- readonly choices$: BehaviorSubject<FormFieldSelectChoice[]>;
206
+ readonly choices: i0.InputSignal<FormFieldSelectChoice[]>;
209
207
  /**
210
208
  * If the select allow multiple selections
211
209
  */
212
- multiple: boolean;
210
+ readonly multiple: i0.InputSignal<boolean>;
213
211
  /**
214
212
  * The field's form control
215
213
  */
216
- formControl: UntypedFormControl;
214
+ readonly formControl: i0.InputSignal<UntypedFormControl>;
217
215
  /**
218
216
  * Field placeholder
219
217
  */
220
- placeholder: string;
218
+ readonly placeholder: i0.InputSignal<string>;
221
219
  /**
222
220
  * Field placeholder
223
221
  */
224
- errors: Record<string, string>;
222
+ readonly errors: i0.InputSignal<Record<string, string>>;
225
223
  /**
226
224
  * Wheter a disable switch should be available
227
225
  */
228
- disableSwitch: boolean;
226
+ readonly disableSwitch: i0.InputSignal<boolean>;
229
227
  /**
230
228
  * Whether the field is required
231
229
  */
@@ -238,7 +236,7 @@ declare class FormFieldSelectComponent implements OnInit {
238
236
  onDisableSwitchClick(): void;
239
237
  private toggleDisabled;
240
238
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldSelectComponent, never>;
241
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldSelectComponent, "igo-form-field-select", never, { "choices": { "alias": "choices"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; }; }, {}, never, never, true, never>;
239
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldSelectComponent, "igo-form-field-select", never, { "choices": { "alias": "choices"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "formControl": { "alias": "formControl"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
242
240
  }
243
241
 
244
242
  /**
@@ -252,23 +250,23 @@ declare class FormFieldTextComponent implements OnInit {
252
250
  /**
253
251
  * The field's form control
254
252
  */
255
- formControl: UntypedFormControl;
253
+ readonly formControl: i0.InputSignal<UntypedFormControl>;
256
254
  /**
257
255
  * Field placeholder
258
256
  */
259
- placeholder: string;
257
+ readonly placeholder: i0.InputSignal<string>;
260
258
  /**
261
259
  * if the input is a password
262
260
  */
263
- isPassword: boolean;
261
+ readonly isPassword: i0.InputSignal<boolean>;
264
262
  /**
265
263
  * Field placeholder
266
264
  */
267
- errors: Record<string, string>;
265
+ readonly errors: i0.InputSignal<Record<string, string>>;
268
266
  /**
269
267
  * Wheter a disable switch should be available
270
268
  */
271
- disableSwitch: boolean;
269
+ readonly disableSwitch: i0.InputSignal<boolean>;
272
270
  /**
273
271
  * Whether the field is required
274
272
  */
@@ -283,7 +281,7 @@ declare class FormFieldTextComponent implements OnInit {
283
281
  togglePassword(): void;
284
282
  delayedHide(delayMS?: number): void;
285
283
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTextComponent, never>;
286
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextComponent, "igo-form-field-text", never, { "formControl": { "alias": "formControl"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "isPassword": { "alias": "isPassword"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; }; }, {}, never, never, true, never>;
284
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextComponent, "igo-form-field-text", never, { "formControl": { "alias": "formControl"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "isPassword": { "alias": "isPassword"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
287
285
  }
288
286
 
289
287
  /**
@@ -294,19 +292,19 @@ declare class FormFieldTextareaComponent implements OnInit {
294
292
  /**
295
293
  * The field's form control
296
294
  */
297
- formControl: UntypedFormControl;
295
+ readonly formControl: i0.InputSignal<UntypedFormControl>;
298
296
  /**
299
297
  * Field placeholder
300
298
  */
301
- placeholder: string;
299
+ readonly placeholder: i0.InputSignal<string>;
302
300
  /**
303
301
  * Field placeholder
304
302
  */
305
- errors: Record<string, string>;
303
+ readonly errors: i0.InputSignal<Record<string, string>>;
306
304
  /**
307
305
  * Wheter a disable switch should be available
308
306
  */
309
- disableSwitch: boolean;
307
+ readonly disableSwitch: i0.InputSignal<boolean>;
310
308
  /**
311
309
  * Whether the field is required
312
310
  */
@@ -319,7 +317,7 @@ declare class FormFieldTextareaComponent implements OnInit {
319
317
  onDisableSwitchClick(): void;
320
318
  private toggleDisabled;
321
319
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTextareaComponent, never>;
322
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextareaComponent, "igo-form-field-textarea", never, { "formControl": { "alias": "formControl"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; }; }, {}, never, never, true, never>;
320
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextareaComponent, "igo-form-field-textarea", never, { "formControl": { "alias": "formControl"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
323
321
  }
324
322
 
325
323
  declare const FORM_DIRECTIVES: readonly [typeof _igo2_common_form.FormFieldComponent, typeof _igo2_common_form.FormFieldSelectComponent, typeof _igo2_common_form.FormFieldTextComponent, typeof _igo2_common_form.FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent];
@@ -1,8 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter } from '@angular/core';
3
2
 
4
3
  declare class HomeButtonComponent {
5
- unselectButton: EventEmitter<any>;
4
+ readonly unselectButton: i0.OutputEmitterRef<void>;
6
5
  onUnselectButtonClick(): void;
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<HomeButtonComponent, never>;
8
7
  static ɵcmp: i0.ɵɵComponentDeclaration<HomeButtonComponent, "igo-home-button", never, {}, { "unselectButton": "unselectButton"; }, never, never, true, never>;
package/icon/index.d.ts CHANGED
@@ -30,14 +30,13 @@ declare function provideIcon(style?: MaterialSymbolStyle): EnvironmentProviders;
30
30
 
31
31
  declare class IgoIconComponent {
32
32
  private iconService;
33
- color: string | null | undefined;
34
- set icon(icon: string | IconSvg);
35
- get icon(): string | IconSvg;
36
- private _icon;
33
+ readonly color: i0.InputSignal<string>;
34
+ readonly icon: i0.InputSignal<string | IconSvg>;
35
+ constructor();
37
36
  registerSvg(icon: IconSvg): void;
38
37
  isSvg(icon: string | IconSvg): icon is IconSvg;
39
38
  static ɵfac: i0.ɵɵFactoryDeclaration<IgoIconComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<IgoIconComponent, "igo-icon", never, { "color": { "alias": "color"; "required": false; }; "icon": { "alias": "icon"; "required": true; }; }, {}, never, never, true, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<IgoIconComponent, "igo-icon", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
41
40
  }
42
41
 
43
42
  export { CIRCLE_SMALL_ICON, ENGINE_ICON, IconService, IgoIconComponent, KEYBOARD_ESC_ICON, MICROSOFT_ICON, PRESENTATION_PLAY_ICON, SELECTION_MARKER_ICON, VECTOR_SQUARE_ICON, provideIcon };
package/image/index.d.ts CHANGED
@@ -5,11 +5,11 @@ import { HttpClient } from '@angular/common/http';
5
5
 
6
6
  declare class ImageErrorDirective {
7
7
  private el;
8
- errorImageUrl: string;
9
- hideError: boolean;
8
+ readonly errorImageUrl: i0.InputSignal<string>;
9
+ readonly hideError: i0.InputSignal<boolean>;
10
10
  onError(event: any): void;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageErrorDirective, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<ImageErrorDirective, "[igoImageError]", never, { "errorImageUrl": { "alias": "errorImageUrl"; "required": false; }; "hideError": { "alias": "hideError"; "required": false; }; }, {}, never, never, true, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ImageErrorDirective, "[igoImageError]", never, { "errorImageUrl": { "alias": "errorImageUrl"; "required": false; "isSignal": true; }; "hideError": { "alias": "hideError"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
13
13
  }
14
14
 
15
15
  declare class SecureImagePipe implements PipeTransform {
@@ -12,9 +12,10 @@ declare class InteractiveTourComponent {
12
12
  /**
13
13
  * Toolbox that holds main tools
14
14
  */
15
- tourToStart: string;
16
- styleButton: 'icon' | 'raised';
17
- discoverTitleInLocale$: Observable<string>;
15
+ readonly tourToStart: i0.InputSignal<string>;
16
+ readonly styleButton: i0.InputSignal<"icon" | "raised">;
17
+ readonly discoverTitleInLocale$: i0.InputSignal<Observable<string>>;
18
+ constructor();
18
19
  getClass(): {
19
20
  'tour-button-tool-icon': boolean;
20
21
  'tour-button-tool': boolean;
@@ -27,10 +28,9 @@ declare class InteractiveTourComponent {
27
28
  get showTourButton(): boolean;
28
29
  get isTourDisplayInMobile(): boolean;
29
30
  get disabledTourButton(): boolean;
30
- constructor();
31
31
  startInteractiveTour(): void;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<InteractiveTourComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<InteractiveTourComponent, "igo-interactive-tour", never, { "tourToStart": { "alias": "tourToStart"; "required": false; }; "styleButton": { "alias": "styleButton"; "required": false; }; "discoverTitleInLocale$": { "alias": "discoverTitleInLocale$"; "required": false; }; }, {}, never, never, true, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<InteractiveTourComponent, "igo-interactive-tour", never, { "tourToStart": { "alias": "tourToStart"; "required": false; "isSignal": true; }; "styleButton": { "alias": "styleButton"; "required": false; "isSignal": true; }; "discoverTitleInLocale$": { "alias": "discoverTitleInLocale$"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
34
34
  }
35
35
 
36
36
  declare class IgoInteractiveTourModule {
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",
3
+ "version": "20.1.0-next.10",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -10,7 +10,8 @@
10
10
  "homepage": "https://github.com/infra-geo-ouverte/igo2-lib#readme",
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "git+https://github.com/infra-geo-ouverte/igo2-lib.git"
13
+ "url": "git+https://github.com/infra-geo-ouverte/igo2-lib.git",
14
+ "directory": "packages/common"
14
15
  },
15
16
  "bugs": {
16
17
  "url": "https://github.com/infra-geo-ouverte/igo2-lib/issues"
@@ -161,9 +162,17 @@
161
162
  "./package.json": {
162
163
  "default": "./package.json"
163
164
  },
165
+ "./datepicker": {
166
+ "types": "./datepicker/index.d.ts",
167
+ "default": "./fesm2022/igo2-common-datepicker.mjs"
168
+ },
164
169
  "./resizable-bar": {
165
170
  "types": "./resizable-bar/index.d.ts",
166
171
  "default": "./fesm2022/igo2-common-resizable-bar.mjs"
172
+ },
173
+ "./timepicker": {
174
+ "types": "./timepicker/index.d.ts",
175
+ "default": "./fesm2022/igo2-common-timepicker.mjs"
167
176
  }
168
177
  },
169
178
  "dependencies": {
@@ -177,8 +186,8 @@
177
186
  "@angular/material": "^20.0.0",
178
187
  "@angular/platform-browser": "^20.0.0",
179
188
  "@floating-ui/utils": "^0.2.0",
180
- "@igo2/core": "^20.0.1",
181
- "@igo2/utils": "^20.0.1",
189
+ "@igo2/core": "^20.1.0-next.10",
190
+ "@igo2/utils": "^20.1.0-next.10",
182
191
  "angular-shepherd": "^20.0.0",
183
192
  "ngx-color": "^10.0.0",
184
193
  "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
  /**