@six-group/ui-library-angular 0.0.0-insider.e2aca06 → 0.0.0-insider.e3937db

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 (40) hide show
  1. package/fesm2022/six-group-ui-library-angular.mjs +2977 -0
  2. package/fesm2022/six-group-ui-library-angular.mjs.map +1 -0
  3. package/lib/control-value-accessors/checkbox-multi-select-value-accessor.d.ts +16 -0
  4. package/lib/control-value-accessors/checkbox-value-accessor.d.ts +1 -1
  5. package/lib/control-value-accessors/date-value-accessor.d.ts +10 -0
  6. package/lib/control-value-accessors/radio-value-accessor.d.ts +1 -1
  7. package/lib/control-value-accessors/value-accessor.d.ts +5 -3
  8. package/lib/link/six-router-link.directive.d.ts +26 -0
  9. package/lib/services/alert.service.d.ts +11 -0
  10. package/lib/sidebar/active-sidebar.directive.d.ts +59 -0
  11. package/lib/stencil-generated/components.d.ts +203 -144
  12. package/lib/stencil-generated/index.d.ts +1 -1
  13. package/lib/ui-library-angular-config.d.ts +7 -0
  14. package/lib/ui-library-angular.module.d.ts +14 -9
  15. package/lib/validators/six-ui-library-validators.d.ts +34 -7
  16. package/package.json +18 -13
  17. package/public-api.d.ts +5 -0
  18. package/esm2020/lib/control-value-accessors/checkbox-value-accessor.mjs +0 -41
  19. package/esm2020/lib/control-value-accessors/datepicker-value-accessor.mjs +0 -37
  20. package/esm2020/lib/control-value-accessors/numeric-value-accessor.mjs +0 -42
  21. package/esm2020/lib/control-value-accessors/radio-value-accessor.mjs +0 -62
  22. package/esm2020/lib/control-value-accessors/range-value-accessor.mjs +0 -42
  23. package/esm2020/lib/control-value-accessors/select-value-accessor.mjs +0 -37
  24. package/esm2020/lib/control-value-accessors/switch-value-accessor.mjs +0 -41
  25. package/esm2020/lib/control-value-accessors/text-value-accessor.mjs +0 -37
  26. package/esm2020/lib/control-value-accessors/timepicker-value-accessor.mjs +0 -37
  27. package/esm2020/lib/control-value-accessors/value-accessor.mjs +0 -145
  28. package/esm2020/lib/form/six-form.directive.mjs +0 -134
  29. package/esm2020/lib/services/validation-messages.service.mjs +0 -15
  30. package/esm2020/lib/stencil-generated/angular-component-lib/utils.mjs +0 -51
  31. package/esm2020/lib/stencil-generated/components.mjs +0 -1372
  32. package/esm2020/lib/stencil-generated/index.mjs +0 -57
  33. package/esm2020/lib/ui-library-angular.module.mjs +0 -127
  34. package/esm2020/lib/validators/six-ui-library-validators.mjs +0 -116
  35. package/esm2020/public-api.mjs +0 -25
  36. package/esm2020/six-group-ui-library-angular.mjs +0 -5
  37. package/fesm2015/six-group-ui-library-angular.mjs +0 -2287
  38. package/fesm2015/six-group-ui-library-angular.mjs.map +0 -1
  39. package/fesm2020/six-group-ui-library-angular.mjs +0 -2284
  40. package/fesm2020/six-group-ui-library-angular.mjs.map +0 -1
@@ -11,5 +11,5 @@ export declare class RadioValueAccessor extends ValueAccessor implements OnInit
11
11
  writeValue(value: any): void;
12
12
  private checkName;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<RadioValueAccessor, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<RadioValueAccessor, "six-radio", never, { "value": "value"; "formControlName": "formControlName"; "name": "name"; }, {}, never, never, false, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioValueAccessor, "six-radio", never, { "value": { "alias": "value"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
15
15
  }
@@ -1,13 +1,15 @@
1
1
  import { AfterViewInit, ElementRef, Injector, OnDestroy } from '@angular/core';
2
- import { AbstractControl, ControlValueAccessor } from '@angular/forms';
2
+ import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
3
+ import { UiLibraryConfig } from '../ui-library-angular-config';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ValueAccessor implements ControlValueAccessor, AfterViewInit, OnDestroy {
5
6
  protected injector: Injector;
6
7
  protected el: ElementRef;
7
8
  private statusChanges?;
8
- private ngControl?;
9
+ ngControl?: NgControl;
9
10
  private initialErrorText?;
10
11
  private validationMessagesService;
12
+ protected config: UiLibraryConfig;
11
13
  constructor(injector: Injector, el: ElementRef);
12
14
  private onChange;
13
15
  private onTouched;
@@ -35,5 +37,5 @@ export declare class ValueAccessor implements ControlValueAccessor, AfterViewIni
35
37
  ngAfterViewInit(): void;
36
38
  getErrorTexts(control: AbstractControl): string[];
37
39
  static ɵfac: i0.ɵɵFactoryDeclaration<ValueAccessor, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<ValueAccessor, never, never, {}, {}, never, never, false, never>;
40
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ValueAccessor, never, never, {}, {}, never, never, true, never>;
39
41
  }
@@ -0,0 +1,26 @@
1
+ import { ElementRef, OnChanges, OnInit, Renderer2 } from '@angular/core';
2
+ import { Router, RouterLink } from '@angular/router';
3
+ import { LocationStrategy } from '@angular/common';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Forked from https://github.com/ionic-team/ionic-framework/blob/main/packages/angular/common/src/directives/navigation/router-link-delegate.ts.
7
+ */
8
+ export declare class SixRouterLinkDirective implements OnInit, OnChanges {
9
+ private locationStrategy;
10
+ private elementRef;
11
+ private router;
12
+ private renderer;
13
+ private routerLinkDirective?;
14
+ constructor(locationStrategy: LocationStrategy, elementRef: ElementRef, router: Router, renderer: Renderer2, routerLinkDirective?: RouterLink | undefined);
15
+ onClick(event: UIEvent): void;
16
+ routerLink?: any;
17
+ queryParams?: any;
18
+ fragment?: any;
19
+ queryParamsHandling?: any;
20
+ relativeTo?: any;
21
+ ngOnInit(): void;
22
+ ngOnChanges(): void;
23
+ private updateTargetUrlAndHref;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<SixRouterLinkDirective, [null, null, null, null, { optional: true; }]>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SixRouterLinkDirective, "six-sidebar-item[routerLink],six-sidebar-item-group[routerLink],six-button[routerLink],six-icon-button[routerLink]", never, { "routerLink": { "alias": "routerLink"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "fragment": { "alias": "fragment"; "required": false; }; "queryParamsHandling": { "alias": "queryParamsHandling"; "required": false; }; "relativeTo": { "alias": "relativeTo"; "required": false; }; }, {}, never, never, false, never>;
26
+ }
@@ -0,0 +1,11 @@
1
+ import { AlertType } from '@six-group/ui-library';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AlertService {
4
+ private ngZone;
5
+ /**
6
+ * Displays an alert as a toast notification.
7
+ */
8
+ showAlert(message: string, alertType?: AlertType, duration?: number, iconName?: string): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<AlertService>;
11
+ }
@@ -0,0 +1,59 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/router";
3
+ /**
4
+ * Enables Angular router integration for the six-sidebar component.
5
+ *
6
+ * When this directive is added to a six-sidebar component using the 'sixRouterLinkActive' attribute,
7
+ * it activates automatic route-based selection for sidebar items and groups.
8
+ *
9
+ * @recommended Add this directive to enable automatic route-based navigation in sidebars.
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <six-sidebar sixRouterLinkActive>
14
+ * <six-sidebar-item routerLink="/home">Home</six-sidebar-item>
15
+ * <six-sidebar-item-group>
16
+ * <six-sidebar-item routerLink="/settings/profile">Profile</six-sidebar-item>
17
+ * </six-sidebar-item-group>
18
+ * </six-sidebar>
19
+ * ```
20
+ */
21
+ export declare class ActiveSidebarDirective {
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActiveSidebarDirective, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ActiveSidebarDirective, "six-sidebar[sixRouterLinkActive]", never, {}, {}, never, never, false, never>;
24
+ }
25
+ /**
26
+ * Enhances six-sidebar-item with Angular router integration.
27
+ *
28
+ * This directive automatically manages the 'selected' state of sidebar items based on the current route.
29
+ * When used with ActiveSidebarDirective, it switches from manual selection to route-based selection.
30
+ *
31
+ * @requires RouterLinkActive
32
+ * @optional ActiveSidebarDirective - If present, enables route-based selection
33
+ */
34
+ export declare class ActiveSidebarItemDirective {
35
+ private routerLinkActive;
36
+ private sidebarItem;
37
+ private activeSidebarDirective;
38
+ get selected(): boolean;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActiveSidebarItemDirective, never>;
40
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ActiveSidebarItemDirective, "six-sidebar-item", never, {}, {}, never, never, false, [{ directive: typeof i1.RouterLinkActive; inputs: {}; outputs: {}; }]>;
41
+ }
42
+ /**
43
+ * Enhances six-sidebar-item-group with Angular router integration.
44
+ *
45
+ * This directive automatically manages the 'open' state of sidebar groups based on the active route.
46
+ * When a child route is active, the group automatically expands to show the active item.
47
+ *
48
+ * @requires RouterLinkActive
49
+ * @optional ActiveSidebarDirective - If present, enables route-based expansion
50
+ */
51
+ export declare class ActiveSidebarItemGroupDirective {
52
+ private routerLinkActive;
53
+ private sidebarItemGroup;
54
+ private activeSidebarDirective;
55
+ private sidebarItems;
56
+ get open(): boolean;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActiveSidebarItemGroupDirective, never>;
58
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ActiveSidebarItemGroupDirective, "six-sidebar-item-group", never, {}, {}, ["sidebarItems"], never, false, [{ directive: typeof i1.RouterLinkActive; inputs: {}; outputs: {}; }]>;
59
+ }