@gravitee/ui-particles-angular 5.19.1 → 5.20.0

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.
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare const GIO_FORM_FOCUS_INVALID_IGNORE_SELECTOR = "gioFormFocusInvalidIgnore";
3
+ export declare class GioFormFocusInvalidIgnoreDirective {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<GioFormFocusInvalidIgnoreDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GioFormFocusInvalidIgnoreDirective, "[gioFormFocusInvalidIgnore]", never, {}, {}, never>;
6
+ }
@@ -1,11 +1,22 @@
1
- import { Renderer2 } from '@angular/core';
1
+ import { ElementRef } from '@angular/core';
2
2
  import { FormGroupDirective } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class GioFormFocusInvalidDirective {
5
- private readonly renderer;
4
+ export declare class GioBaseFormFocusInvalidDirective {
5
+ private readonly hostElement;
6
6
  protected readonly formGroupDirective: FormGroupDirective;
7
- constructor(renderer: Renderer2, formGroupDirective: FormGroupDirective);
7
+ constructor(hostElement: ElementRef, formGroupDirective: FormGroupDirective);
8
+ protected focusOnFirstInvalid(): void;
9
+ private getFirstInvalidControl;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<GioBaseFormFocusInvalidDirective, [null, { optional: true; }]>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GioBaseFormFocusInvalidDirective, never, never, {}, {}, never>;
12
+ }
13
+ export declare class GioFormFocusInvalidFormDirective extends GioBaseFormFocusInvalidDirective {
8
14
  onFormSubmit(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<GioFormFocusInvalidDirective, [null, { optional: true; }]>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<GioFormFocusInvalidDirective, "form[gioFormFocusInvalid]", never, {}, {}, never>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<GioFormFocusInvalidFormDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GioFormFocusInvalidFormDirective, "form[gioFormFocusInvalid]", never, {}, {}, never>;
17
+ }
18
+ export declare class GioButtonFocusInvalidButtonDirective extends GioBaseFormFocusInvalidDirective {
19
+ onClick(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<GioButtonFocusInvalidButtonDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GioButtonFocusInvalidButtonDirective, "button[gioFormFocusInvalid]", never, {}, {}, never>;
11
22
  }
@@ -1,7 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./gio-form-focus-first-invalid.directive";
3
+ import * as i2 from "./gio-form-focus-first-invalid-ignore.directive";
3
4
  export declare class GioFormFocusInvalidModule {
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<GioFormFocusInvalidModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<GioFormFocusInvalidModule, [typeof i1.GioFormFocusInvalidDirective], never, [typeof i1.GioFormFocusInvalidDirective]>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GioFormFocusInvalidModule, [typeof i1.GioFormFocusInvalidFormDirective, typeof i1.GioButtonFocusInvalidButtonDirective, typeof i2.GioFormFocusInvalidIgnoreDirective], never, [typeof i1.GioFormFocusInvalidFormDirective, typeof i1.GioButtonFocusInvalidButtonDirective, typeof i2.GioFormFocusInvalidIgnoreDirective]>;
6
7
  static ɵinj: i0.ɵɵInjectorDeclaration<GioFormFocusInvalidModule>;
7
8
  }
@@ -12,6 +12,7 @@ export declare class GioFormJsonSchemaComponent implements ControlValueAccessor,
12
12
  readonly ngControl?: NgControl | undefined;
13
13
  static isDisplayable(jsonSchema: GioJsonSchema): boolean;
14
14
  private unsubscribe$;
15
+ private gioFormFocusInvalidIgnore;
15
16
  set jsonSchema(jsonSchema: GioJsonSchema);
16
17
  formGroup: FormGroup;
17
18
  options: FormlyFormOptions;
@@ -14,6 +14,8 @@ export declare class GioSaveBarComponent {
14
14
  form?: FormGroup;
15
15
  private hasSubmitLock;
16
16
  formInitialValues?: unknown;
17
+ hideSubmitButton: boolean;
18
+ hideDiscardButton: boolean;
17
19
  resetClicked: EventEmitter<void>;
18
20
  submitted: EventEmitter<void>;
19
21
  submittedInvalidState: EventEmitter<any>;
@@ -22,5 +24,5 @@ export declare class GioSaveBarComponent {
22
24
  onDisableSubmitLock(): void;
23
25
  onSubmitClicked(): void;
24
26
  static ɵfac: i0.ɵɵFactoryDeclaration<GioSaveBarComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<GioSaveBarComponent, "gio-save-bar", never, { "opened": "opened"; "invalidState": "invalidState"; "creationMode": "creationMode"; "form": "form"; "formInitialValues": "formInitialValues"; }, { "resetClicked": "resetClicked"; "submitted": "submitted"; "submittedInvalidState": "submittedInvalidState"; }, never, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<GioSaveBarComponent, "gio-save-bar", never, { "opened": "opened"; "invalidState": "invalidState"; "creationMode": "creationMode"; "form": "form"; "formInitialValues": "formInitialValues"; "hideSubmitButton": "hideSubmitButton"; "hideDiscardButton": "hideDiscardButton"; }, { "resetClicked": "resetClicked"; "submitted": "submitted"; "submittedInvalidState": "submittedInvalidState"; }, never, ["*"]>;
26
28
  }
@@ -1,6 +1,7 @@
1
1
  import { ComponentHarness } from '@angular/cdk/testing';
2
2
  export declare class GioSaveBarHarness extends ComponentHarness {
3
3
  static hostSelector: string;
4
+ private readonly cardSelector;
4
5
  private readonly resetButtonSelector;
5
6
  private readonly submitButtonSelector;
6
7
  protected getSubmitButton: import("@angular/cdk/testing").AsyncFactoryFn<import("@angular/cdk/testing").TestElement>;
@@ -8,6 +9,7 @@ export declare class GioSaveBarHarness extends ComponentHarness {
8
9
  isVisible(): Promise<boolean>;
9
10
  clickSubmit(): Promise<void>;
10
11
  isSubmitButtonInvalid(): Promise<boolean>;
12
+ isSubmitButtonVisible(): Promise<boolean>;
11
13
  isResetButtonVisible(): Promise<boolean>;
12
14
  clickReset(): Promise<void>;
13
15
  }
@@ -30,6 +30,7 @@ export * from './gio-form-slide-toogle/gio-form-slide-toggle.component';
30
30
  export * from './gio-form-slide-toogle/gio-form-slide-toggle.module';
31
31
  export * from './gio-form-slide-toogle/gio-form-label.directive';
32
32
  export * from './gio-form-focus-first-invalid/gio-form-focus-first-invalid.directive';
33
+ export * from './gio-form-focus-first-invalid/gio-form-focus-first-invalid-ignore.directive';
33
34
  export * from './gio-form-focus-first-invalid/gio-form-focus-first-invalid.module';
34
35
  export * from './gio-monaco-editor/gio-monaco-editor.component';
35
36
  export * from './gio-monaco-editor/gio-monaco-editor.module';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-particles-angular",
3
- "version": "5.19.1",
3
+ "version": "5.20.0",
4
4
  "description": "Gravitee.io - UI Particles Angular",
5
5
  "repository": {
6
6
  "type": "git",