@igo2/common 16.0.2 → 16.1.1

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 (158) hide show
  1. package/esm2022/lib/action/action.module.mjs +13 -14
  2. package/esm2022/lib/action/actionbar/actionbar-item.component.mjs +23 -103
  3. package/esm2022/lib/action/actionbar/actionbar.component.mjs +47 -178
  4. package/esm2022/lib/action/actionbar/actionbar.module.mjs +30 -31
  5. package/esm2022/lib/backdrop/backdrop.component.mjs +9 -14
  6. package/esm2022/lib/backdrop/backdrop.module.mjs +12 -13
  7. package/esm2022/lib/badge-icon/badge-icon.directive.mjs +23 -23
  8. package/esm2022/lib/badge-icon/badge-icon.module.mjs +12 -13
  9. package/esm2022/lib/clickout/clickout.directive.mjs +14 -16
  10. package/esm2022/lib/clickout/clickout.module.mjs +12 -13
  11. package/esm2022/lib/clone/clone.module.mjs +12 -13
  12. package/esm2022/lib/clone/clone.pipe.mjs +9 -9
  13. package/esm2022/lib/collapsible/collapse.directive.mjs +18 -20
  14. package/esm2022/lib/collapsible/collapsible.component.mjs +13 -31
  15. package/esm2022/lib/collapsible/collapsible.module.mjs +12 -13
  16. package/esm2022/lib/color-picker-form-field/color-picker-form-field.component.mjs +30 -58
  17. package/esm2022/lib/color-picker-form-field/color-picker-form-field.module.mjs +30 -31
  18. package/esm2022/lib/confirm-dialog/confirm-dialog.component.mjs +10 -34
  19. package/esm2022/lib/confirm-dialog/confirm-dialog.interface.mjs +2 -0
  20. package/esm2022/lib/confirm-dialog/confirm-dialog.module.mjs +13 -14
  21. package/esm2022/lib/confirm-dialog/confirm-dialog.service.mjs +19 -14
  22. package/esm2022/lib/confirm-dialog/index.mjs +2 -1
  23. package/esm2022/lib/context-menu/context-menu.directive.mjs +25 -27
  24. package/esm2022/lib/context-menu/context-menu.module.mjs +12 -13
  25. package/esm2022/lib/context-menu/long-press.directive.mjs +27 -29
  26. package/esm2022/lib/custom-html/custom-html.component.mjs +9 -14
  27. package/esm2022/lib/custom-html/custom-html.module.mjs +24 -25
  28. package/esm2022/lib/custom-html/custom-html.pipe.mjs +7 -7
  29. package/esm2022/lib/dom/dom.module.mjs +10 -10
  30. package/esm2022/lib/dom/dom.service.mjs +9 -9
  31. package/esm2022/lib/drag-drop/drag-drop.directive.mjs +27 -31
  32. package/esm2022/lib/drag-drop/drag-drop.module.mjs +12 -13
  33. package/esm2022/lib/dynamic-component/dynamic-component.module.mjs +12 -13
  34. package/esm2022/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.mjs +16 -25
  35. package/esm2022/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.mjs +12 -13
  36. package/esm2022/lib/dynamic-component/shared/dynamic-component.service.mjs +9 -9
  37. package/esm2022/lib/entity/entity-selector/entity-selector.component.mjs +25 -75
  38. package/esm2022/lib/entity/entity-selector/entity-selector.module.mjs +12 -13
  39. package/esm2022/lib/entity/entity-table/entity-table-row.directive.mjs +24 -26
  40. package/esm2022/lib/entity/entity-table/entity-table.component.mjs +42 -653
  41. package/esm2022/lib/entity/entity-table/entity-table.module.mjs +50 -51
  42. package/esm2022/lib/entity/entity-table-paginator/entity-table-paginator.component.mjs +20 -31
  43. package/esm2022/lib/entity/entity-table-paginator/entity-table-paginator.module.mjs +12 -13
  44. package/esm2022/lib/entity/entity.module.mjs +18 -19
  45. package/esm2022/lib/entity/index.mjs +1 -1
  46. package/esm2022/lib/flexible/flexible.component.mjs +26 -44
  47. package/esm2022/lib/flexible/flexible.module.mjs +12 -13
  48. package/esm2022/lib/form/form/form.component.mjs +18 -41
  49. package/esm2022/lib/form/form/form.module.mjs +12 -13
  50. package/esm2022/lib/form/form-field/form-field-select.component.mjs +23 -64
  51. package/esm2022/lib/form/form-field/form-field-text.component.mjs +48 -52
  52. package/esm2022/lib/form/form-field/form-field-textarea.component.mjs +15 -49
  53. package/esm2022/lib/form/form-field/form-field.component.mjs +9 -22
  54. package/esm2022/lib/form/form-field/form-field.module.mjs +51 -48
  55. package/esm2022/lib/form/form-group/form-group.component.mjs +11 -53
  56. package/esm2022/lib/form/form-group/form-group.module.mjs +20 -21
  57. package/esm2022/lib/form/form.module.mjs +13 -14
  58. package/esm2022/lib/form/shared/form-field.service.mjs +9 -9
  59. package/esm2022/lib/form/shared/form.interfaces.mjs +1 -1
  60. package/esm2022/lib/form/shared/form.service.mjs +9 -9
  61. package/esm2022/lib/form/shared/form.utils.mjs +3 -2
  62. package/esm2022/lib/form-dialog/form-dialog.component.mjs +80 -0
  63. package/esm2022/lib/form-dialog/form-dialog.interface.mjs +2 -0
  64. package/esm2022/lib/form-dialog/form-dialog.module.mjs +52 -0
  65. package/esm2022/lib/form-dialog/form-dialog.service.mjs +30 -0
  66. package/esm2022/lib/form-dialog/index.mjs +4 -0
  67. package/esm2022/lib/home-button/home-button.component.mjs +9 -17
  68. package/esm2022/lib/home-button/home-button.module.mjs +23 -24
  69. package/esm2022/lib/image/image-error.directive.mjs +16 -18
  70. package/esm2022/lib/image/image.module.mjs +12 -13
  71. package/esm2022/lib/image/secure-image.pipe.mjs +9 -9
  72. package/esm2022/lib/interactive-tour/interactive-tour.component.mjs +13 -60
  73. package/esm2022/lib/interactive-tour/interactive-tour.loader.mjs +6 -6
  74. package/esm2022/lib/interactive-tour/interactive-tour.module.mjs +23 -24
  75. package/esm2022/lib/interactive-tour/interactive-tour.service.mjs +9 -9
  76. package/esm2022/lib/json-dialog/json-dialog.component.mjs +7 -92
  77. package/esm2022/lib/json-dialog/json-dialog.module.mjs +13 -14
  78. package/esm2022/lib/json-dialog/json-dialog.service.mjs +7 -7
  79. package/esm2022/lib/keyvalue/keyvalue.module.mjs +12 -13
  80. package/esm2022/lib/keyvalue/keyvalue.pipe.mjs +9 -9
  81. package/esm2022/lib/list/list-item.directive.mjs +44 -46
  82. package/esm2022/lib/list/list.component.mjs +20 -37
  83. package/esm2022/lib/list/list.module.mjs +12 -13
  84. package/esm2022/lib/panel/panel.component.mjs +16 -46
  85. package/esm2022/lib/panel/panel.module.mjs +12 -13
  86. package/esm2022/lib/select-value-dialog/index.mjs +5 -0
  87. package/esm2022/lib/select-value-dialog/select-value-check-radio-dialog.component.mjs +87 -0
  88. package/esm2022/lib/select-value-dialog/select-value-dialog.enums.mjs +6 -0
  89. package/esm2022/lib/select-value-dialog/select-value-dialog.interface.mjs +2 -0
  90. package/esm2022/lib/select-value-dialog/select-value-dialog.module.mjs +59 -0
  91. package/esm2022/lib/select-value-dialog/select-value-dialog.service.mjs +29 -0
  92. package/esm2022/lib/sidenav/sidenav-shim.directive.mjs +20 -22
  93. package/esm2022/lib/sidenav/sidenav.module.mjs +12 -13
  94. package/esm2022/lib/spinner/spinner-activity.directive.mjs +11 -11
  95. package/esm2022/lib/spinner/spinner.component.mjs +9 -17
  96. package/esm2022/lib/spinner/spinner.module.mjs +12 -13
  97. package/esm2022/lib/stop-propagation/stop-drop-propagation.directive.mjs +12 -14
  98. package/esm2022/lib/stop-propagation/stop-propagation.directive.mjs +12 -14
  99. package/esm2022/lib/stop-propagation/stop-propagation.module.mjs +12 -13
  100. package/esm2022/lib/table/table.component.mjs +21 -199
  101. package/esm2022/lib/table/table.module.mjs +34 -35
  102. package/esm2022/lib/tool/shared/tool.service.mjs +9 -9
  103. package/esm2022/lib/tool/tool.module.mjs +12 -13
  104. package/esm2022/lib/tool/toolbox/toolbox.component.mjs +19 -54
  105. package/esm2022/lib/tool/toolbox/toolbox.module.mjs +12 -13
  106. package/esm2022/lib/widget/shared/widget.service.mjs +9 -9
  107. package/esm2022/lib/widget/widget-outlet/widget-outlet.component.mjs +17 -27
  108. package/esm2022/lib/widget/widget-outlet/widget-outlet.module.mjs +12 -13
  109. package/esm2022/lib/widget/widget.module.mjs +13 -14
  110. package/esm2022/lib/workspace/workspace-selector/workspace-selector.component.mjs +13 -19
  111. package/esm2022/lib/workspace/workspace-selector/workspace-selector.module.mjs +12 -13
  112. package/esm2022/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.mjs +11 -31
  113. package/esm2022/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.mjs +12 -13
  114. package/esm2022/lib/workspace/workspace.module.mjs +12 -13
  115. package/esm2022/public_api.mjs +5 -1
  116. package/fesm2022/igo2-common.mjs +2592 -3956
  117. package/fesm2022/igo2-common.mjs.map +1 -1
  118. package/lib/color-picker-form-field/color-picker-form-field.component.d.ts +7 -1
  119. package/lib/confirm-dialog/confirm-dialog.component.d.ts +3 -0
  120. package/lib/confirm-dialog/confirm-dialog.interface.d.ts +4 -0
  121. package/lib/confirm-dialog/confirm-dialog.service.d.ts +3 -4
  122. package/lib/confirm-dialog/index.d.ts +1 -0
  123. package/lib/form/form-field/form-field-select.component.d.ts +5 -1
  124. package/lib/form/form-field/form-field-text.component.d.ts +12 -2
  125. package/lib/form/form-field/form-field.module.d.ts +2 -1
  126. package/lib/form/shared/form.interfaces.d.ts +4 -0
  127. package/lib/form-dialog/form-dialog.component.d.ts +24 -0
  128. package/lib/form-dialog/form-dialog.interface.d.ts +18 -0
  129. package/lib/form-dialog/form-dialog.module.d.ts +16 -0
  130. package/lib/form-dialog/form-dialog.service.d.ts +13 -0
  131. package/lib/form-dialog/index.d.ts +3 -0
  132. package/lib/select-value-dialog/index.d.ts +4 -0
  133. package/lib/select-value-dialog/select-value-check-radio-dialog.component.d.ts +25 -0
  134. package/lib/select-value-dialog/select-value-dialog.enums.d.ts +4 -0
  135. package/lib/select-value-dialog/select-value-dialog.interface.d.ts +16 -0
  136. package/lib/select-value-dialog/select-value-dialog.module.d.ts +17 -0
  137. package/lib/select-value-dialog/select-value-dialog.service.d.ts +11 -0
  138. package/locale/en.common.json +15 -0
  139. package/locale/fr.common.json +15 -0
  140. package/package.json +21 -21
  141. package/public_api.d.ts +4 -0
  142. package/src/style/style.scss +1 -0
  143. /package/{common-theme.scss → src/common-theme.scss} +0 -0
  144. /package/{lib → src/lib}/action/action.theming.scss +0 -0
  145. /package/{lib → src/lib}/action/actionbar/actionbar-item.theming.scss +0 -0
  146. /package/{lib → src/lib}/action/actionbar/actionbar.theming.scss +0 -0
  147. /package/{lib → src/lib}/collapsible/collapsible.theming.scss +0 -0
  148. /package/{lib → src/lib}/entity/entity-selector/entity-selector.theming.scss +0 -0
  149. /package/{lib → src/lib}/entity/entity-table/entity-table.theming.scss +0 -0
  150. /package/{lib → src/lib}/entity/entity.theming.scss +0 -0
  151. /package/{lib → src/lib}/home-button/home-button.theming.scss +0 -0
  152. /package/{lib → src/lib}/interactive-tour/interactive-tour.theming.scss +0 -0
  153. /package/{lib → src/lib}/list/list.theming.scss +0 -0
  154. /package/{lib → src/lib}/panel/panel.theming.scss +0 -0
  155. /package/{lib → src/lib}/tool/tool.theming.scss +0 -0
  156. /package/{lib → src/lib}/tool/toolbox/toolbox.theming.scss +0 -0
  157. /package/{style → src/style}/partial/common-utils.scss +0 -0
  158. /package/{style → src/style}/partial/common.variables.scss +0 -0
@@ -1,3 +1,4 @@
1
+ import { EventEmitter } from '@angular/core';
1
2
  import { ControlValueAccessor } from '@angular/forms';
2
3
  import { ColorEvent } from 'ngx-color';
3
4
  import * as i0 from "@angular/core";
@@ -8,6 +9,11 @@ export declare class ColorPickerFormFieldComponent implements ControlValueAccess
8
9
  get value(): string;
9
10
  private _value;
10
11
  outputFormat: ColorFormat;
12
+ /**
13
+ * The emitted value represent the current chosen color in the picker
14
+ * The value is emitted by default in RGBA, or based on the input 'outputFormat' value.
15
+ */
16
+ colorChange: EventEmitter<string>;
11
17
  colorPicker: string;
12
18
  onChange: any;
13
19
  onTouch: any;
@@ -18,6 +24,6 @@ export declare class ColorPickerFormFieldComponent implements ControlValueAccess
18
24
  handleChange($event: ColorEvent): void;
19
25
  private formatColor;
20
26
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerFormFieldComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerFormFieldComponent, "igo-color-picker-form-field", never, { "outputFormat": { "alias": "outputFormat"; "required": false; }; }, {}, never, never, false, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerFormFieldComponent, "igo-color-picker-form-field", never, { "outputFormat": { "alias": "outputFormat"; "required": false; }; }, { "colorChange": "colorChange"; }, never, never, false, never>;
22
28
  }
23
29
  export {};
@@ -3,6 +3,9 @@ import * as i0 from "@angular/core";
3
3
  export declare class ConfirmDialogComponent {
4
4
  dialogRef: MatDialogRef<ConfirmDialogComponent>;
5
5
  confirmMessage: string;
6
+ titleKey: string;
7
+ proccessKey: string;
8
+ cancelKey: string;
6
9
  constructor(dialogRef: MatDialogRef<ConfirmDialogComponent>);
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
8
11
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "igo-confirm-dialog", never, {}, {}, never, never, false, never>;
@@ -0,0 +1,4 @@
1
+ export interface ConfirmDialogOptions {
2
+ title?: string;
3
+ modeYesNo?: boolean;
4
+ }
@@ -1,12 +1,11 @@
1
1
  import { MatDialog } from '@angular/material/dialog';
2
- import { LanguageService } from '@igo2/core';
3
2
  import { Observable } from 'rxjs';
3
+ import { ConfirmDialogOptions } from './confirm-dialog.interface';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ConfirmDialogService {
6
6
  private dialog;
7
- private languageService;
8
- constructor(dialog: MatDialog, languageService: LanguageService);
9
- open(message: string): Observable<any>;
7
+ constructor(dialog: MatDialog);
8
+ open(message: string, options?: ConfirmDialogOptions): Observable<boolean>;
10
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogService, never>;
11
10
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmDialogService>;
12
11
  }
@@ -1,2 +1,3 @@
1
1
  export * from './confirm-dialog.component';
2
+ export * from './confirm-dialog.interface';
2
3
  export * from './confirm-dialog.service';
@@ -14,6 +14,10 @@ export declare class FormFieldSelectComponent implements OnInit {
14
14
  set choices(value: FormFieldSelectChoice[]);
15
15
  get choices(): FormFieldSelectChoice[];
16
16
  readonly choices$: BehaviorSubject<FormFieldSelectChoice[]>;
17
+ /**
18
+ * If the select allow multiple selections
19
+ */
20
+ multiple: boolean;
17
21
  /**
18
22
  * The field's form control
19
23
  */
@@ -44,5 +48,5 @@ export declare class FormFieldSelectComponent implements OnInit {
44
48
  onDisableSwitchClick(): void;
45
49
  private toggleDisabled;
46
50
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldSelectComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldSelectComponent, "igo-form-field-select", never, { "choices": { "alias": "choices"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; }; }, {}, never, never, false, never>;
51
+ 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, false, never>;
48
52
  }
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import type { UntypedFormControl } from '@angular/forms';
3
3
  import { BehaviorSubject } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
@@ -6,7 +6,10 @@ import * as i0 from "@angular/core";
6
6
  * This component renders a text field
7
7
  */
8
8
  export declare class FormFieldTextComponent implements OnInit {
9
+ private cdRef;
9
10
  disabled$: BehaviorSubject<boolean>;
11
+ hide: boolean;
12
+ private lastTimeoutRequest;
10
13
  /**
11
14
  * The field's form control
12
15
  */
@@ -15,6 +18,10 @@ export declare class FormFieldTextComponent implements OnInit {
15
18
  * Field placeholder
16
19
  */
17
20
  placeholder: string;
21
+ /**
22
+ * if the input is a password
23
+ */
24
+ isPassword: boolean;
18
25
  /**
19
26
  * Field placeholder
20
27
  */
@@ -29,6 +36,7 @@ export declare class FormFieldTextComponent implements OnInit {
29
36
  * Whether the field is required
30
37
  */
31
38
  get required(): boolean;
39
+ constructor(cdRef: ChangeDetectorRef);
32
40
  ngOnInit(): void;
33
41
  /**
34
42
  * Get error message
@@ -36,6 +44,8 @@ export declare class FormFieldTextComponent implements OnInit {
36
44
  getErrorMessage(): string;
37
45
  onDisableSwitchClick(): void;
38
46
  private toggleDisabled;
47
+ togglePassword(): void;
48
+ delayedHide(delayMS?: number): void;
39
49
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTextComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextComponent, "igo-form-field-text", never, { "formControl": { "alias": "formControl"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; }; }, {}, never, never, false, never>;
50
+ 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, false, never>;
41
51
  }
@@ -11,11 +11,12 @@ import * as i9 from "@angular/material/input";
11
11
  import * as i10 from "@angular/material/select";
12
12
  import * as i11 from "@igo2/core";
13
13
  import * as i12 from "../../dynamic-component/dynamic-outlet/dynamic-outlet.module";
14
+ import * as i13 from "@angular/material/button";
14
15
  /**
15
16
  * @ignore
16
17
  */
17
18
  export declare class IgoFormFieldModule {
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormFieldModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormFieldModule, [typeof i1.FormFieldComponent, typeof i2.FormFieldSelectComponent, typeof i3.FormFieldTextComponent, typeof i4.FormFieldTextareaComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.MatIconModule, typeof i8.MatFormFieldModule, typeof i9.MatInputModule, typeof i10.MatSelectModule, typeof i11.IgoLanguageModule, typeof i12.IgoDynamicOutletModule], [typeof i1.FormFieldComponent, typeof i2.FormFieldSelectComponent, typeof i3.FormFieldTextComponent, typeof i4.FormFieldTextareaComponent]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormFieldModule, [typeof i1.FormFieldComponent, typeof i2.FormFieldSelectComponent, typeof i3.FormFieldTextComponent, typeof i4.FormFieldTextareaComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.MatIconModule, typeof i8.MatFormFieldModule, typeof i9.MatInputModule, typeof i10.MatSelectModule, typeof i11.IgoLanguageModule, typeof i12.IgoDynamicOutletModule, typeof i13.MatButtonModule], [typeof i1.FormFieldComponent, typeof i2.FormFieldSelectComponent, typeof i3.FormFieldTextComponent, typeof i4.FormFieldTextareaComponent]>;
20
21
  static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormFieldModule>;
21
22
  }
@@ -20,6 +20,10 @@ export interface FormFieldGroupOptions {
20
20
  [key: string]: string;
21
21
  };
22
22
  }
23
+ export interface FormGroupsConfig {
24
+ name: string;
25
+ formFieldConfigs: FormFieldConfig[];
26
+ }
23
27
  export interface FormFieldConfig<T extends FormFieldInputs = FormFieldInputs> {
24
28
  name: string;
25
29
  title: string;
@@ -0,0 +1,24 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { LanguageService } from '@igo2/core';
3
+ import { BehaviorSubject } from 'rxjs';
4
+ import { Form } from '../form/shared/form.interfaces';
5
+ import { FormService } from '../form/shared/form.service';
6
+ import { FormDialogData } from './form-dialog.interface';
7
+ import * as i0 from "@angular/core";
8
+ export declare class FormDialogComponent {
9
+ languageService: LanguageService;
10
+ dialogRef: MatDialogRef<FormDialogComponent>;
11
+ private formService;
12
+ data: FormDialogData;
13
+ form$: BehaviorSubject<Form>;
14
+ data$: BehaviorSubject<{
15
+ [key: string]: any;
16
+ }>;
17
+ constructor(languageService: LanguageService, dialogRef: MatDialogRef<FormDialogComponent>, formService: FormService, data: FormDialogData);
18
+ onSubmit(data: {
19
+ [key: string]: any;
20
+ }): void;
21
+ cancel(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormDialogComponent, "igo-form-dialog", never, {}, {}, never, never, false, never>;
24
+ }
@@ -0,0 +1,18 @@
1
+ import { MatDialogConfig } from '@angular/material/dialog';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import { FormFieldConfig, FormGroupsConfig } from '../form/shared/form.interfaces';
4
+ export interface FormDialogFormConfig {
5
+ formFieldConfigs?: FormFieldConfig[];
6
+ formGroupsConfigs?: FormGroupsConfig[];
7
+ }
8
+ export interface FormDialogData extends FormDialogOptions, FormDialogFormConfig {
9
+ }
10
+ export interface FormDialogOptions extends MatDialogConfig {
11
+ data$?: BehaviorSubject<{
12
+ [key: string]: any;
13
+ }>;
14
+ title?: string;
15
+ processButtonText?: string;
16
+ cancelButtonText?: string;
17
+ notice?: string;
18
+ }
@@ -0,0 +1,16 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./form-dialog.component";
4
+ import * as i2 from "@angular/common";
5
+ import * as i3 from "@angular/material/button";
6
+ import * as i4 from "@angular/material/dialog";
7
+ import * as i5 from "../custom-html/custom-html.module";
8
+ import * as i6 from "@igo2/core";
9
+ import * as i7 from "../form/form.module";
10
+ import * as i8 from "@angular/material/divider";
11
+ export declare class IgoFormDialogModule {
12
+ static forRoot(): ModuleWithProviders<IgoFormDialogModule>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormDialogModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormDialogModule, [typeof i1.FormDialogComponent], [typeof i2.CommonModule, typeof i3.MatButtonModule, typeof i4.MatDialogModule, typeof i5.IgoCustomHtmlModule, typeof i6.IgoLanguageModule, typeof i7.IgoFormModule, typeof i8.MatDividerModule], [typeof i1.FormDialogComponent]>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormDialogModule>;
16
+ }
@@ -0,0 +1,13 @@
1
+ import { MatDialog } from '@angular/material/dialog';
2
+ import { Observable } from 'rxjs';
3
+ import { FormDialogFormConfig, FormDialogOptions } from './form-dialog.interface';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FormDialogService {
6
+ private dialog;
7
+ constructor(dialog: MatDialog);
8
+ open(formDialogConfig?: FormDialogFormConfig, options?: FormDialogOptions): Observable<{
9
+ [key: string]: any;
10
+ }>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormDialogService>;
13
+ }
@@ -0,0 +1,3 @@
1
+ export * from './form-dialog.component';
2
+ export * from './form-dialog.interface';
3
+ export * from './form-dialog.service';
@@ -0,0 +1,4 @@
1
+ export * from './select-value-check-radio-dialog.component';
2
+ export * from './select-value-dialog.enums';
3
+ export * from './select-value-dialog.interface';
4
+ export * from './select-value-dialog.service';
@@ -0,0 +1,25 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
3
+ import { MatDialogRef } from '@angular/material/dialog';
4
+ import { MatRadioChange } from '@angular/material/radio';
5
+ import { LanguageService } from '@igo2/core';
6
+ import { BehaviorSubject } from 'rxjs';
7
+ import { SelectValueData } from './select-value-dialog.interface';
8
+ import * as i0 from "@angular/core";
9
+ export declare class SelectValueCheckRadioDialogComponent implements OnInit {
10
+ private formBuilder;
11
+ languageService: LanguageService;
12
+ dialogRef: MatDialogRef<SelectValueCheckRadioDialogComponent>;
13
+ data: SelectValueData;
14
+ formGroup: UntypedFormGroup;
15
+ isDisabled$: BehaviorSubject<boolean>;
16
+ constructor(formBuilder: UntypedFormBuilder, languageService: LanguageService, dialogRef: MatDialogRef<SelectValueCheckRadioDialogComponent>, data: SelectValueData);
17
+ ngOnInit(): void;
18
+ getFg(): {};
19
+ canProcess(): void;
20
+ save(): void;
21
+ cancel(): void;
22
+ onChange(e: MatRadioChange): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueCheckRadioDialogComponent, [null, null, null, { optional: true; }]>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectValueCheckRadioDialogComponent, "igo-select-value-check-radio-dialog", never, {}, {}, never, never, false, never>;
25
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum SelectValueDialogType {
2
+ Radio = "radio",
3
+ Checkbox = "checkbox"
4
+ }
@@ -0,0 +1,16 @@
1
+ import { MatDialogConfig } from '@angular/material/dialog';
2
+ import { SelectValueDialogType } from './select-value-dialog.enums';
3
+ export interface Choice {
4
+ value: any;
5
+ title: any;
6
+ }
7
+ export interface SelectValueData extends SelectValueDialogOptions {
8
+ choices: Choice[];
9
+ }
10
+ export interface SelectValueDialogOptions extends MatDialogConfig {
11
+ type?: SelectValueDialogType;
12
+ title?: string;
13
+ processButtonText?: string;
14
+ cancelButtonText?: string;
15
+ selectFieldText?: string;
16
+ }
@@ -0,0 +1,17 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./select-value-check-radio-dialog.component";
4
+ import * as i2 from "@angular/common";
5
+ import * as i3 from "@angular/material/checkbox";
6
+ import * as i4 from "@angular/material/button";
7
+ import * as i5 from "@angular/material/radio";
8
+ import * as i6 from "@angular/forms";
9
+ import * as i7 from "@angular/material/dialog";
10
+ import * as i8 from "@igo2/core";
11
+ import * as i9 from "../form/form.module";
12
+ export declare class IgoSelectValueDialogModule {
13
+ static forRoot(): ModuleWithProviders<IgoSelectValueDialogModule>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<IgoSelectValueDialogModule, never>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoSelectValueDialogModule, [typeof i1.SelectValueCheckRadioDialogComponent], [typeof i2.CommonModule, typeof i3.MatCheckboxModule, typeof i4.MatButtonModule, typeof i5.MatRadioModule, typeof i6.FormsModule, typeof i7.MatDialogModule, typeof i6.ReactiveFormsModule, typeof i8.IgoLanguageModule, typeof i9.IgoFormModule], [typeof i1.SelectValueCheckRadioDialogComponent]>;
16
+ static ɵinj: i0.ɵɵInjectorDeclaration<IgoSelectValueDialogModule>;
17
+ }
@@ -0,0 +1,11 @@
1
+ import { MatDialog } from '@angular/material/dialog';
2
+ import { Observable } from 'rxjs';
3
+ import { Choice, SelectValueDialogOptions } from './select-value-dialog.interface';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SelectValueDialogService {
6
+ private dialog;
7
+ constructor(dialog: MatDialog);
8
+ open(choices: Choice[], options?: SelectValueDialogOptions): Observable<any>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueDialogService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<SelectValueDialogService>;
11
+ }
@@ -4,9 +4,23 @@
4
4
  "confirmDialog": {
5
5
  "cancelBtn": "Cancel",
6
6
  "confirmBtn": "Confirm",
7
+ "yes": "Yes",
8
+ "no": "No",
7
9
  "title": "Confirm",
8
10
  "applyBtn": "Apply"
9
11
  },
12
+ "selectValueDialog": {
13
+ "cancelButtonText": "Cancel",
14
+ "processButtonText": "Select",
15
+ "multipleTitle": "Please, select values",
16
+ "title": "Please, select a value",
17
+ "selectFieldText": "Options"
18
+ },
19
+ "formDialog": {
20
+ "cancelButtonText": "Cancel",
21
+ "processButtonText": "Submit",
22
+ "title": "Fill the form"
23
+ },
10
24
  "table": {
11
25
  "filter": "Filter"
12
26
  },
@@ -15,6 +29,7 @@
15
29
  },
16
30
  "form": {
17
31
  "errors": {
32
+ "email": "You must provide a email",
18
33
  "required": "This field is required"
19
34
  }
20
35
  },
@@ -4,9 +4,23 @@
4
4
  "confirmDialog": {
5
5
  "cancelBtn": "Annuler",
6
6
  "confirmBtn": "Confirmer",
7
+ "yes": "Oui",
8
+ "no": "Non",
7
9
  "title": "Confirmation",
8
10
  "applyBtn": "Appliquer"
9
11
  },
12
+ "selectValueDialog": {
13
+ "cancelButtonText": "Annuler",
14
+ "processButtonText": "Sélectionner",
15
+ "multipleTitle": "Veuiller sélectionner une ou plusieurs valeurs",
16
+ "title": "Veuiller sélectionner une valeur",
17
+ "selectFieldText": "Options"
18
+ },
19
+ "formDialog": {
20
+ "cancelButtonText": "Annuler",
21
+ "processButtonText": "Confirmer",
22
+ "title": "Veuiller remplir le formulaire"
23
+ },
10
24
  "table": {
11
25
  "filter": "Filtre"
12
26
  },
@@ -15,6 +29,7 @@
15
29
  },
16
30
  "form": {
17
31
  "errors": {
32
+ "email": "Veuillez saisir un courriel",
18
33
  "required": "Ce champ est requis"
19
34
  }
20
35
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/common",
3
- "version": "16.0.2",
3
+ "version": "16.1.1",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -16,46 +16,46 @@
16
16
  "url": "https://github.com/infra-geo-ouverte/igo2-lib/issues"
17
17
  },
18
18
  "exports": {
19
+ ".": {
20
+ "types": "./index.d.ts",
21
+ "esm2022": "./esm2022/igo2-common.mjs",
22
+ "esm": "./esm2022/igo2-common.mjs",
23
+ "default": "./fesm2022/igo2-common.mjs"
24
+ },
19
25
  "./style": {
20
26
  "style": "./style/style.css"
21
27
  },
22
28
  "./theming": {
23
- "sass": "./common-theme.scss"
29
+ "sass": "./src/common-theme.scss"
30
+ },
31
+ "./partial/*": {
32
+ "sass": "./src/style/partial/*.scss"
24
33
  },
25
34
  "./package.json": {
26
35
  "default": "./package.json"
27
- },
28
- ".": {
29
- "types": "./index.d.ts",
30
- "esm2022": "./esm2022/igo2-common.mjs",
31
- "esm": "./esm2022/igo2-common.mjs",
32
- "default": "./fesm2022/igo2-common.mjs"
33
36
  }
34
37
  },
38
+ "dependencies": {
39
+ "tslib": "^2.6.0"
40
+ },
35
41
  "peerDependencies": {
36
42
  "@angular/common": "^16.2.5",
37
43
  "@angular/core": "^16.2.5",
38
44
  "@angular/material": "^16.2.4",
39
45
  "@angular/platform-browser": "^16.2.5",
40
46
  "@floating-ui/utils": "^0.1.4",
41
- "@igo2/core": "^16.0.2",
42
- "@igo2/utils": "^16.0.2",
47
+ "@igo2/core": "^16.1.1",
48
+ "@igo2/utils": "^16.1.1",
43
49
  "angular-shepherd": "16.0.0",
44
- "scroll-into-view-if-needed": "^3.0.0",
45
- "typy": "^3.3.0",
46
50
  "ngx-color": "^9.0.0",
47
- "tinycolor2": "^1.6.0"
48
- },
49
- "dependencies": {
50
- "tslib": "^2.6.0"
51
+ "scroll-into-view-if-needed": "^3.0.0",
52
+ "tinycolor2": "^1.6.0",
53
+ "typy": "^3.3.0"
51
54
  },
52
55
  "engines": {
53
56
  "node": ">=18.10.0"
54
57
  },
55
58
  "module": "fesm2022/igo2-common.mjs",
56
59
  "typings": "index.d.ts",
57
- "sideEffects": false,
58
- "scripts": {
59
-
60
- }
61
- }
60
+ "sideEffects": false
61
+ }
package/public_api.d.ts CHANGED
@@ -6,6 +6,8 @@ export * from './lib/clickout/clickout.module';
6
6
  export * from './lib/clone/clone.module';
7
7
  export * from './lib/collapsible/collapsible.module';
8
8
  export * from './lib/confirm-dialog/confirm-dialog.module';
9
+ export * from './lib/select-value-dialog/select-value-dialog.module';
10
+ export * from './lib/form-dialog/form-dialog.module';
9
11
  export * from './lib/context-menu/context-menu.module';
10
12
  export * from './lib/custom-html/custom-html.module';
11
13
  export * from './lib/dom/dom.module';
@@ -48,6 +50,8 @@ export * from './lib/clickout';
48
50
  export * from './lib/clone';
49
51
  export * from './lib/collapsible';
50
52
  export * from './lib/confirm-dialog';
53
+ export * from './lib/select-value-dialog';
54
+ export * from './lib/form-dialog';
51
55
  export * from './lib/context-menu';
52
56
  export * from './lib/custom-html';
53
57
  export * from './lib/drag-drop';
@@ -0,0 +1 @@
1
+ @import 'shepherd.js/dist/css/shepherd';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes