@six-group/ui-library-angular 0.0.0-insider.cd0cd0d → 0.0.0-insider.d82aaa2

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,71 @@
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import { FormGroupDirective } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * This directive intercepts the ngSubmit event of an Angular form and introduces
6
+ * a supplementary event named sixSubmit. The sixSubmit event is triggered exclusively
7
+ * when the form is valid. In cases where the form is considered invalid, this directive
8
+ * takes proactive actions by marking all form controls as touched and dirty. Additionally,
9
+ * it shifts the focus to the initial invalid form element, facilitating quick error
10
+ * resolution.
11
+ *
12
+ * To utilize this directive, apply it to an Angular form.
13
+ * ```html
14
+ * <form [formGroup]="form" sixForm (sixSubmit)="onSubmit($event)">
15
+ * <!-- form content -->
16
+ * </form>
17
+ * ```
18
+ *
19
+ * For users needing greater flexibility in determining when error messages are displayed,
20
+ * or for those who prefer not to rely solely on the form submission event,
21
+ * an alternative is to use the SixFormUtilDirective.
22
+ */
23
+ export declare class SixFormDirective {
24
+ private elementRef;
25
+ private formGroupDirective;
26
+ /**
27
+ * Emits an event when the form is valid and the form submission has been triggered.
28
+ */
29
+ sixSubmit: EventEmitter<SubmitEvent>;
30
+ onNgSubmit(event: SubmitEvent): void;
31
+ constructor(elementRef: ElementRef<HTMLElement>, formGroupDirective: FormGroupDirective);
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<SixFormDirective, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SixFormDirective, "form[sixForm]", never, {}, { "sixSubmit": "sixSubmit"; }, never, never, false, never>;
34
+ }
35
+ /**
36
+ * This directive provides a utility method, that marks all form controls
37
+ * as touched and dirty, and focuses the first invalid form element.
38
+ *
39
+ * To utilize this directive, apply it to an Angular form.
40
+ * ```html
41
+ * <form [formGroup]="form" sixFormUtil (ngSubmit)="onSubmit($event)">
42
+ * <!-- form content -->
43
+ * </form>
44
+ * ```
45
+ *
46
+ * Then, get a reference to the directive and invoke `focusInvalidField()` if the
47
+ * form is invalid:
48
+ * ```ts
49
+ * @ViewChild(SixFormUtilDirective) sixFormUtil!: SixFormUtilDirective;
50
+ * // ...
51
+ * onSubmit() {
52
+ * if (this.form.invalid) {
53
+ * this.sixFormUtil.focusInvalidField();
54
+ * } else {
55
+ * // ...
56
+ * }
57
+ * }
58
+ * ```
59
+ */
60
+ export declare class SixFormUtilDirective {
61
+ private elementRef;
62
+ private formGroupDirective;
63
+ constructor(elementRef: ElementRef<HTMLElement>, formGroupDirective: FormGroupDirective);
64
+ /** markAllControlsAsDirty(Object.values(formGroup.controls));
65
+ * Marks all form controls as touched and dirty, and focuses the first
66
+ * invalid form element.
67
+ */
68
+ focusInvalidField(): void;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<SixFormUtilDirective, never>;
70
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SixFormUtilDirective, "[sixFormUtil]", never, {}, {}, never, never, false, never>;
71
+ }
@@ -12,10 +12,10 @@ import * as i8 from "./control-value-accessors/checkbox-value-accessor";
12
12
  import * as i9 from "./control-value-accessors/switch-value-accessor";
13
13
  import * as i10 from "./control-value-accessors/range-value-accessor";
14
14
  import * as i11 from "./validators/six-ui-library-validators";
15
- import * as i12 from "./util/six-form-util.directive";
15
+ import * as i12 from "./form/six-form.directive";
16
16
  export declare class UiLibraryAngularModule {
17
17
  static forRoot<T extends ValidationMessagesService>(customValidationMessagesService?: Type<T>): ModuleWithProviders<UiLibraryAngularModule>;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<UiLibraryAngularModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiLibraryAngularModule, [typeof i1.SetAttributes, typeof i1.SixAlert, typeof i1.SixAvatar, typeof i1.SixBadge, typeof i1.SixButton, typeof i1.SixCard, typeof i1.SixCheckbox, typeof i1.SixDatepicker, typeof i1.SixDetails, typeof i1.SixDialog, typeof i1.SixDrawer, typeof i1.SixDropdown, typeof i1.SixErrorPage, typeof i1.SixFileList, typeof i1.SixFileListItem, typeof i1.SixFileUpload, typeof i1.SixFooter, typeof i1.SixGroupLabel, typeof i1.SixHeader, typeof i1.SixIcon, typeof i1.SixIconButton, typeof i1.SixInput, typeof i1.SixItemPicker, typeof i1.SixLanguageSwitcher, typeof i1.SixLayoutGrid, typeof i1.SixMainContainer, typeof i1.SixMenu, typeof i1.SixMenuDivider, typeof i1.SixMenuItem, typeof i1.SixMenuLabel, typeof i1.SixPicto, typeof i1.SixProgressBar, typeof i1.SixProgressRing, typeof i1.SixRadio, typeof i1.SixRange, typeof i1.SixRoot, typeof i1.SixSearchField, typeof i1.SixSelect, typeof i1.SixSidebar, typeof i1.SixSidebarItem, typeof i1.SixSidebarItemGroup, typeof i1.SixSpinner, typeof i1.SixStageIndicator, typeof i1.SixSwitch, typeof i1.SixTab, typeof i1.SixTabGroup, typeof i1.SixTabPanel, typeof i1.SixTag, typeof i1.SixTextarea, typeof i1.SixTile, typeof i1.SixTimepicker, typeof i1.SixTooltip, typeof i2.TextValueAccessor, typeof i3.NumericValueAccessor, typeof i4.RadioValueAccessor, typeof i5.DatepickerValueAccessor, typeof i6.TimepickerValueAccessor, typeof i7.SelectValueAccessor, typeof i8.CheckboxValueAccessor, typeof i9.SwitchValueAccessor, typeof i10.RangeValueAccessor, typeof i11.MinValidator, typeof i11.MaxValidator, typeof i11.MinDateValidator, typeof i11.MaxDateValidator, typeof i11.AllowedDatesValidator, typeof i12.SixFormUtilDirective], never, [typeof i1.SetAttributes, typeof i1.SixAlert, typeof i1.SixAvatar, typeof i1.SixBadge, typeof i1.SixButton, typeof i1.SixCard, typeof i1.SixCheckbox, typeof i1.SixDatepicker, typeof i1.SixDetails, typeof i1.SixDialog, typeof i1.SixDrawer, typeof i1.SixDropdown, typeof i1.SixErrorPage, typeof i1.SixFileList, typeof i1.SixFileListItem, typeof i1.SixFileUpload, typeof i1.SixFooter, typeof i1.SixGroupLabel, typeof i1.SixHeader, typeof i1.SixIcon, typeof i1.SixIconButton, typeof i1.SixInput, typeof i1.SixItemPicker, typeof i1.SixLanguageSwitcher, typeof i1.SixLayoutGrid, typeof i1.SixMainContainer, typeof i1.SixMenu, typeof i1.SixMenuDivider, typeof i1.SixMenuItem, typeof i1.SixMenuLabel, typeof i1.SixPicto, typeof i1.SixProgressBar, typeof i1.SixProgressRing, typeof i1.SixRadio, typeof i1.SixRange, typeof i1.SixRoot, typeof i1.SixSearchField, typeof i1.SixSelect, typeof i1.SixSidebar, typeof i1.SixSidebarItem, typeof i1.SixSidebarItemGroup, typeof i1.SixSpinner, typeof i1.SixStageIndicator, typeof i1.SixSwitch, typeof i1.SixTab, typeof i1.SixTabGroup, typeof i1.SixTabPanel, typeof i1.SixTag, typeof i1.SixTextarea, typeof i1.SixTile, typeof i1.SixTimepicker, typeof i1.SixTooltip, typeof i2.TextValueAccessor, typeof i3.NumericValueAccessor, typeof i4.RadioValueAccessor, typeof i5.DatepickerValueAccessor, typeof i6.TimepickerValueAccessor, typeof i7.SelectValueAccessor, typeof i8.CheckboxValueAccessor, typeof i9.SwitchValueAccessor, typeof i10.RangeValueAccessor, typeof i11.MinValidator, typeof i11.MaxValidator, typeof i11.MinDateValidator, typeof i11.MaxDateValidator, typeof i11.AllowedDatesValidator, typeof i12.SixFormUtilDirective]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiLibraryAngularModule, [typeof i1.SetAttributes, typeof i1.SixAlert, typeof i1.SixAvatar, typeof i1.SixBadge, typeof i1.SixButton, typeof i1.SixCard, typeof i1.SixCheckbox, typeof i1.SixDatepicker, typeof i1.SixDetails, typeof i1.SixDialog, typeof i1.SixDrawer, typeof i1.SixDropdown, typeof i1.SixErrorPage, typeof i1.SixFileList, typeof i1.SixFileListItem, typeof i1.SixFileUpload, typeof i1.SixFooter, typeof i1.SixGroupLabel, typeof i1.SixHeader, typeof i1.SixIcon, typeof i1.SixIconButton, typeof i1.SixInput, typeof i1.SixItemPicker, typeof i1.SixLanguageSwitcher, typeof i1.SixLayoutGrid, typeof i1.SixMainContainer, typeof i1.SixMenu, typeof i1.SixMenuDivider, typeof i1.SixMenuItem, typeof i1.SixMenuLabel, typeof i1.SixPicto, typeof i1.SixProgressBar, typeof i1.SixProgressRing, typeof i1.SixRadio, typeof i1.SixRange, typeof i1.SixRoot, typeof i1.SixSearchField, typeof i1.SixSelect, typeof i1.SixSidebar, typeof i1.SixSidebarItem, typeof i1.SixSidebarItemGroup, typeof i1.SixSpinner, typeof i1.SixStageIndicator, typeof i1.SixSwitch, typeof i1.SixTab, typeof i1.SixTabGroup, typeof i1.SixTabPanel, typeof i1.SixTag, typeof i1.SixTextarea, typeof i1.SixTile, typeof i1.SixTimepicker, typeof i1.SixTooltip, typeof i2.TextValueAccessor, typeof i3.NumericValueAccessor, typeof i4.RadioValueAccessor, typeof i5.DatepickerValueAccessor, typeof i6.TimepickerValueAccessor, typeof i7.SelectValueAccessor, typeof i8.CheckboxValueAccessor, typeof i9.SwitchValueAccessor, typeof i10.RangeValueAccessor, typeof i11.MinValidator, typeof i11.MaxValidator, typeof i11.MinDateValidator, typeof i11.MaxDateValidator, typeof i11.AllowedDatesValidator, typeof i12.SixFormDirective, typeof i12.SixFormUtilDirective], never, [typeof i1.SetAttributes, typeof i1.SixAlert, typeof i1.SixAvatar, typeof i1.SixBadge, typeof i1.SixButton, typeof i1.SixCard, typeof i1.SixCheckbox, typeof i1.SixDatepicker, typeof i1.SixDetails, typeof i1.SixDialog, typeof i1.SixDrawer, typeof i1.SixDropdown, typeof i1.SixErrorPage, typeof i1.SixFileList, typeof i1.SixFileListItem, typeof i1.SixFileUpload, typeof i1.SixFooter, typeof i1.SixGroupLabel, typeof i1.SixHeader, typeof i1.SixIcon, typeof i1.SixIconButton, typeof i1.SixInput, typeof i1.SixItemPicker, typeof i1.SixLanguageSwitcher, typeof i1.SixLayoutGrid, typeof i1.SixMainContainer, typeof i1.SixMenu, typeof i1.SixMenuDivider, typeof i1.SixMenuItem, typeof i1.SixMenuLabel, typeof i1.SixPicto, typeof i1.SixProgressBar, typeof i1.SixProgressRing, typeof i1.SixRadio, typeof i1.SixRange, typeof i1.SixRoot, typeof i1.SixSearchField, typeof i1.SixSelect, typeof i1.SixSidebar, typeof i1.SixSidebarItem, typeof i1.SixSidebarItemGroup, typeof i1.SixSpinner, typeof i1.SixStageIndicator, typeof i1.SixSwitch, typeof i1.SixTab, typeof i1.SixTabGroup, typeof i1.SixTabPanel, typeof i1.SixTag, typeof i1.SixTextarea, typeof i1.SixTile, typeof i1.SixTimepicker, typeof i1.SixTooltip, typeof i2.TextValueAccessor, typeof i3.NumericValueAccessor, typeof i4.RadioValueAccessor, typeof i5.DatepickerValueAccessor, typeof i6.TimepickerValueAccessor, typeof i7.SelectValueAccessor, typeof i8.CheckboxValueAccessor, typeof i9.SwitchValueAccessor, typeof i10.RangeValueAccessor, typeof i11.MinValidator, typeof i11.MaxValidator, typeof i11.MinDateValidator, typeof i11.MaxDateValidator, typeof i11.AllowedDatesValidator, typeof i12.SixFormDirective, typeof i12.SixFormUtilDirective]>;
20
20
  static ɵinj: i0.ɵɵInjectorDeclaration<UiLibraryAngularModule>;
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@six-group/ui-library-angular",
3
- "version": "0.0.0-insider.cd0cd0d",
3
+ "version": "0.0.0-insider.d82aaa2",
4
+ "description": "Angular wrapper components for @six-group/ui-library",
4
5
  "private": false,
5
6
  "peerDependencies": {
6
7
  "@angular/common": ">=14.0.0",
package/public-api.d.ts CHANGED
@@ -12,5 +12,5 @@ export * from './lib/control-value-accessors/checkbox-value-accessor';
12
12
  export * from './lib/control-value-accessors/switch-value-accessor';
13
13
  export * from './lib/control-value-accessors/range-value-accessor';
14
14
  export * from './lib/validators/six-ui-library-validators';
15
- export * from './lib/util/six-form-util.directive';
15
+ export * from './lib/form/six-form.directive';
16
16
  export * from './lib/services/validation-messages.service';
@@ -1,48 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import { FormArray, FormControl, FormGroup, FormGroupDirective } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export class SixFormUtilDirective {
5
- constructor(elementRef, injector) {
6
- this.elementRef = elementRef;
7
- this.injector = injector;
8
- }
9
- focusInvalidField() {
10
- const formGroupDirective = this.injector.get(FormGroupDirective);
11
- if (formGroupDirective) {
12
- formGroupDirective.form.markAllAsTouched();
13
- markAllAsDirty(formGroupDirective.form);
14
- const invalidField = this.elementRef.nativeElement.querySelector('.ng-invalid');
15
- if (typeof invalidField?.setFocus === 'function') {
16
- invalidField.setFocus();
17
- }
18
- else if (typeof invalidField?.focus === 'function') {
19
- invalidField?.focus();
20
- }
21
- }
22
- }
23
- }
24
- SixFormUtilDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixFormUtilDirective, deps: [{ token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
25
- SixFormUtilDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: SixFormUtilDirective, selector: "[sixFormUtil]", ngImport: i0 });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SixFormUtilDirective, decorators: [{
27
- type: Directive,
28
- args: [{
29
- selector: '[sixFormUtil]',
30
- }]
31
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Injector }]; } });
32
- function markAllAsDirty(formGroup) {
33
- function markAllControlsAsDirty(controls) {
34
- controls.forEach((control) => {
35
- if (control instanceof FormControl) {
36
- control.markAsDirty({ onlySelf: true });
37
- }
38
- else if (control instanceof FormGroup) {
39
- markAllControlsAsDirty(Object.values(control.controls));
40
- }
41
- else if (control instanceof FormArray) {
42
- markAllControlsAsDirty(control.controls);
43
- }
44
- });
45
- }
46
- markAllControlsAsDirty(Object.values(formGro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tYXJrQWxsQXNEaXJ0eShmb3JtR3JvdXA6IEZvcm1Hcm91cCkge1xuICBmdW5jdGlvbiBtYXJrQWxsQ29udHJvbHNBc0RpcnR5KGNvbnRyb2xzOiBBYnN0cmFjdENvbnRyb2xbXSk6IHZvaWQge1xuICAgIGNvbnRyb2xzLmZvckVhY2goKGNvbnRyb2wpID0+IHtcbiAgICAgIGlmIChjb250cm9sIGluc3RhbmNlb2YgRm9ybUNvbnRyb2wpIHtcbiAgICAgICAgY29udHJvbC5tYXJrQXNEaXJ0eSh7IG9ubHlTZWxmOiB0cnVlIH0pO1xuICAgICAgfSBlbHNlIGlmIChjb250cm9sIGluc3RhbmNlb2YgRm9ybUdyb3VwKSB7XG4gICAgICAgIG1hcmtBbGxDb250cm9sc0FzRGlydHkoT2JqZWN0LnZhbHVlcyhjb250cm9sLmNvbnRyb2xzKSk7XG4gICAgICB9IGVsc2UgaWYgKGNvbnRyb2wgaW5zdGFuY2VvZiBGb3JtQXJyYXkpIHtcbiAgICAgICAgbWFya0FsbENvbnRyb2xzQXNEaXJ0eShjb250cm9sLmNvbnRyb2xzKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxuICBtYXJrQWxsQ29udHJvbHNBc0RpcnR5KE9iamVjdC52YWx1ZXMoZm9ybUdyb3VwLmNvbnRyb2xzKSk7XG59XG4iXX0=
@@ -1,10 +0,0 @@
1
- import { ElementRef, Injector } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class SixFormUtilDirective {
4
- private elementRef;
5
- private injector;
6
- constructor(elementRef: ElementRef<HTMLElement>, injector: Injector);
7
- focusInvalidField(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<SixFormUtilDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<SixFormUtilDirective, "[sixFormUtil]", never, {}, {}, never, never, false, never>;
10
- }