@six-group/ui-library-angular 0.0.0-insider.ebd822a → 0.0.0-insider.ecf3d8c

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 (37) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +6 -22
  3. package/fesm2022/six-group-ui-library-angular.mjs +2825 -0
  4. package/fesm2022/six-group-ui-library-angular.mjs.map +1 -0
  5. package/lib/control-value-accessors/checkbox-value-accessor.d.ts +10 -0
  6. package/lib/control-value-accessors/date-value-accessor.d.ts +10 -0
  7. package/lib/control-value-accessors/datepicker-value-accessor.d.ts +9 -0
  8. package/lib/control-value-accessors/numeric-value-accessor.d.ts +10 -0
  9. package/lib/control-value-accessors/radio-value-accessor.d.ts +15 -0
  10. package/lib/control-value-accessors/range-value-accessor.d.ts +10 -0
  11. package/lib/control-value-accessors/select-value-accessor.d.ts +9 -0
  12. package/lib/control-value-accessors/switch-value-accessor.d.ts +10 -0
  13. package/lib/control-value-accessors/text-value-accessor.d.ts +9 -0
  14. package/lib/control-value-accessors/timepicker-value-accessor.d.ts +9 -0
  15. package/lib/control-value-accessors/value-accessor.d.ts +41 -0
  16. package/lib/form/six-form.directive.d.ts +71 -0
  17. package/lib/link/six-router-link.directive.d.ts +26 -0
  18. package/lib/services/alert.service.d.ts +11 -0
  19. package/lib/services/validation-messages.service.d.ts +7 -0
  20. package/lib/sidebar/active-sidebar.directive.d.ts +59 -0
  21. package/lib/stencil-generated/components.d.ts +171 -186
  22. package/lib/stencil-generated/index.d.ts +1 -1
  23. package/lib/ui-library-angular-config.d.ts +6 -0
  24. package/lib/ui-library-angular.module.d.ts +19 -1
  25. package/lib/validators/six-ui-library-validators.d.ts +74 -0
  26. package/package.json +11 -13
  27. package/public-api.d.ts +17 -0
  28. package/esm2020/lib/stencil-generated/angular-component-lib/utils.mjs +0 -51
  29. package/esm2020/lib/stencil-generated/components.mjs +0 -1376
  30. package/esm2020/lib/stencil-generated/index.mjs +0 -57
  31. package/esm2020/lib/ui-library-angular.module.mjs +0 -34
  32. package/esm2020/public-api.mjs +0 -7
  33. package/esm2020/six-group-ui-library-angular.mjs +0 -5
  34. package/fesm2015/six-group-ui-library-angular.mjs +0 -1468
  35. package/fesm2015/six-group-ui-library-angular.mjs.map +0 -1
  36. package/fesm2020/six-group-ui-library-angular.mjs +0 -1468
  37. package/fesm2020/six-group-ui-library-angular.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
1
  import * as d from './components';
2
- export declare const DIRECTIVES: (typeof d.SetAttributes | typeof d.SixAlert | typeof d.SixAvatar | typeof d.SixBadge | typeof d.SixButton | typeof d.SixCard | typeof d.SixCheckbox | typeof d.SixDatepicker | typeof d.SixDetails | typeof d.SixDialog | typeof d.SixDrawer | typeof d.SixDropdown | typeof d.SixErrorPage | typeof d.SixFileList | typeof d.SixFileListItem | typeof d.SixFileUpload | typeof d.SixFooter | typeof d.SixForm | typeof d.SixGroupLabel | typeof d.SixHeader | typeof d.SixIcon | typeof d.SixIconButton | typeof d.SixInput | typeof d.SixItemPicker | typeof d.SixLanguageSwitcher | typeof d.SixLayoutGrid | typeof d.SixMainContainer | typeof d.SixMenu | typeof d.SixMenuDivider | typeof d.SixMenuItem | typeof d.SixMenuLabel | typeof d.SixPicto | typeof d.SixProgressBar | typeof d.SixProgressRing | typeof d.SixRadio | typeof d.SixRange | typeof d.SixRoot | typeof d.SixSearchField | typeof d.SixSelect | typeof d.SixSidebar | typeof d.SixSidebarItem | typeof d.SixSidebarItemGroup | typeof d.SixSpinner | typeof d.SixStageIndicator | typeof d.SixSwitch | typeof d.SixTab | typeof d.SixTabGroup | typeof d.SixTabPanel | typeof d.SixTag | typeof d.SixTextarea | typeof d.SixTile | typeof d.SixTimepicker | typeof d.SixTooltip)[];
2
+ export declare const DIRECTIVES: (typeof d.SixAlert | typeof d.SixAvatar | typeof d.SixBadge | typeof d.SixButton | typeof d.SixCard | typeof d.SixCheckbox | typeof d.SixDate | typeof d.SixDatepicker | typeof d.SixDetails | typeof d.SixDialog | typeof d.SixDrawer | typeof d.SixDropdown | typeof d.SixError | typeof d.SixErrorPage | typeof d.SixFileList | typeof d.SixFileListItem | typeof d.SixFileUpload | typeof d.SixFooter | typeof d.SixGroupLabel | typeof d.SixHeader | typeof d.SixHeaderDropdownItem | typeof d.SixHeaderItem | typeof d.SixHeaderMenuButton | typeof d.SixIcon | typeof d.SixIconButton | typeof d.SixInput | typeof d.SixItemPicker | typeof d.SixLanguageSwitcher | typeof d.SixLayoutGrid | typeof d.SixLogo | typeof d.SixMainContainer | typeof d.SixMenu | typeof d.SixMenuDivider | typeof d.SixMenuItem | typeof d.SixMenuLabel | typeof d.SixPicto | typeof d.SixProgressBar | typeof d.SixProgressRing | typeof d.SixRadio | typeof d.SixRange | typeof d.SixRoot | typeof d.SixSearchField | typeof d.SixSelect | typeof d.SixSidebar | typeof d.SixSidebarItem | typeof d.SixSidebarItemGroup | typeof d.SixSpinner | typeof d.SixStageIndicator | typeof d.SixSwitch | typeof d.SixTab | typeof d.SixTabGroup | typeof d.SixTabPanel | typeof d.SixTag | typeof d.SixTextarea | typeof d.SixTile | typeof d.SixTimepicker | typeof d.SixTooltip)[];
@@ -0,0 +1,6 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export interface UiLibraryConfig {
3
+ showAsteriskOnRequiredValidator: boolean;
4
+ }
5
+ export declare const DEFAULT_UI_LIBRARY_CONFIG: UiLibraryConfig;
6
+ export declare const UI_LIBRARY_CONFIG: InjectionToken<UiLibraryConfig>;
@@ -1,7 +1,25 @@
1
+ import { ModuleWithProviders, Type } from '@angular/core';
2
+ import { ValidationMessagesService } from './services/validation-messages.service';
3
+ import { UiLibraryConfig } from './ui-library-angular-config';
1
4
  import * as i0 from "@angular/core";
2
5
  import * as i1 from "./stencil-generated/components";
6
+ import * as i2 from "./control-value-accessors/text-value-accessor";
7
+ import * as i3 from "./control-value-accessors/numeric-value-accessor";
8
+ import * as i4 from "./control-value-accessors/radio-value-accessor";
9
+ import * as i5 from "./control-value-accessors/datepicker-value-accessor";
10
+ import * as i6 from "./control-value-accessors/date-value-accessor";
11
+ import * as i7 from "./control-value-accessors/timepicker-value-accessor";
12
+ import * as i8 from "./control-value-accessors/select-value-accessor";
13
+ import * as i9 from "./control-value-accessors/checkbox-value-accessor";
14
+ import * as i10 from "./control-value-accessors/switch-value-accessor";
15
+ import * as i11 from "./control-value-accessors/range-value-accessor";
16
+ import * as i12 from "./validators/six-ui-library-validators";
17
+ import * as i13 from "./form/six-form.directive";
18
+ import * as i14 from "./link/six-router-link.directive";
19
+ import * as i15 from "./sidebar/active-sidebar.directive";
3
20
  export declare class UiLibraryAngularModule {
21
+ static forRoot<T extends ValidationMessagesService>(customValidationMessagesService?: Type<T>, config?: UiLibraryConfig): ModuleWithProviders<UiLibraryAngularModule>;
4
22
  static ɵfac: i0.ɵɵFactoryDeclaration<UiLibraryAngularModule, never>;
5
- 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.SixForm, 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], 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.SixForm, 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]>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiLibraryAngularModule, [typeof i1.SixAlert, typeof i1.SixAvatar, typeof i1.SixBadge, typeof i1.SixButton, typeof i1.SixCard, typeof i1.SixCheckbox, typeof i1.SixDate, typeof i1.SixDatepicker, typeof i1.SixDetails, typeof i1.SixDialog, typeof i1.SixDrawer, typeof i1.SixDropdown, typeof i1.SixError, typeof i1.SixErrorPage, typeof i1.SixFileList, typeof i1.SixFileListItem, typeof i1.SixFileUpload, typeof i1.SixFooter, typeof i1.SixGroupLabel, typeof i1.SixHeader, typeof i1.SixHeaderDropdownItem, typeof i1.SixHeaderItem, typeof i1.SixHeaderMenuButton, typeof i1.SixIcon, typeof i1.SixIconButton, typeof i1.SixInput, typeof i1.SixItemPicker, typeof i1.SixLanguageSwitcher, typeof i1.SixLayoutGrid, typeof i1.SixLogo, 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.DateValueAccessor, typeof i7.TimepickerValueAccessor, typeof i8.SelectValueAccessor, typeof i9.CheckboxValueAccessor, typeof i10.SwitchValueAccessor, typeof i11.RangeValueAccessor, typeof i12.MinValidator, typeof i12.MaxValidator, typeof i12.MinDateValidator, typeof i12.MaxDateValidator, typeof i12.AllowedDatesValidator, typeof i12.MinDateValidatorIso, typeof i12.MaxDateValidatorIso, typeof i12.AllowedDatesValidatorIso, typeof i13.SixFormDirective, typeof i13.SixFormUtilDirective, typeof i14.SixRouterLinkDirective, typeof i15.ActiveSidebarItemDirective, typeof i15.ActiveSidebarItemGroupDirective, typeof i15.ActiveSidebarDirective], never, [typeof i1.SixAlert, typeof i1.SixAvatar, typeof i1.SixBadge, typeof i1.SixButton, typeof i1.SixCard, typeof i1.SixCheckbox, typeof i1.SixDate, typeof i1.SixDatepicker, typeof i1.SixDetails, typeof i1.SixDialog, typeof i1.SixDrawer, typeof i1.SixDropdown, typeof i1.SixError, typeof i1.SixErrorPage, typeof i1.SixFileList, typeof i1.SixFileListItem, typeof i1.SixFileUpload, typeof i1.SixFooter, typeof i1.SixGroupLabel, typeof i1.SixHeader, typeof i1.SixHeaderDropdownItem, typeof i1.SixHeaderItem, typeof i1.SixHeaderMenuButton, typeof i1.SixIcon, typeof i1.SixIconButton, typeof i1.SixInput, typeof i1.SixItemPicker, typeof i1.SixLanguageSwitcher, typeof i1.SixLayoutGrid, typeof i1.SixLogo, 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.DateValueAccessor, typeof i7.TimepickerValueAccessor, typeof i8.SelectValueAccessor, typeof i9.CheckboxValueAccessor, typeof i10.SwitchValueAccessor, typeof i11.RangeValueAccessor, typeof i12.MinValidator, typeof i12.MaxValidator, typeof i12.MinDateValidator, typeof i12.MaxDateValidator, typeof i12.AllowedDatesValidator, typeof i12.MinDateValidatorIso, typeof i12.MaxDateValidatorIso, typeof i12.AllowedDatesValidatorIso, typeof i13.SixFormDirective, typeof i13.SixFormUtilDirective, typeof i14.SixRouterLinkDirective, typeof i15.ActiveSidebarItemDirective, typeof i15.ActiveSidebarItemGroupDirective, typeof i15.ActiveSidebarDirective]>;
6
24
  static ɵinj: i0.ɵɵInjectorDeclaration<UiLibraryAngularModule>;
7
25
  }
@@ -0,0 +1,74 @@
1
+ import { AbstractControl, Validator, ValidatorFn } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SixUiLibraryValidators {
4
+ static minDate(mindate: Date): ValidatorFn;
5
+ static maxDate(maxdate: Date): ValidatorFn;
6
+ static allowedDates(allowedDates?: (date: Date) => boolean): ValidatorFn;
7
+ static minDateIso(mindate: string): ValidatorFn;
8
+ static maxDateIso(maxdate: string): ValidatorFn;
9
+ static allowedDatesIso(allowedDates?: (date: string) => boolean): ValidatorFn;
10
+ }
11
+ export declare class MinDateValidator implements Validator {
12
+ min?: Date | null;
13
+ validate(control: AbstractControl): {
14
+ [key: string]: any;
15
+ } | null;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<MinDateValidator, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MinDateValidator, "six-datepicker[min]", never, { "min": { "alias": "min"; "required": false; }; }, {}, never, never, false, never>;
18
+ }
19
+ export declare class MaxDateValidator implements Validator {
20
+ max?: Date | null;
21
+ validate(control: AbstractControl): {
22
+ [key: string]: any;
23
+ } | null;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaxDateValidator, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MaxDateValidator, "six-datepicker[max]", never, { "max": { "alias": "max"; "required": false; }; }, {}, never, never, false, never>;
26
+ }
27
+ export declare class AllowedDatesValidator implements Validator {
28
+ allowedDates: (date: Date) => boolean;
29
+ validate(control: AbstractControl): {
30
+ [key: string]: any;
31
+ } | null;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<AllowedDatesValidator, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AllowedDatesValidator, "six-datepicker[allowedDates]", never, { "allowedDates": { "alias": "allowedDates"; "required": false; }; }, {}, never, never, false, never>;
34
+ }
35
+ export declare class MinDateValidatorIso implements Validator {
36
+ min?: string | null;
37
+ validate(control: AbstractControl): {
38
+ [key: string]: any;
39
+ } | null;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<MinDateValidatorIso, never>;
41
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MinDateValidatorIso, "six-date[min]", never, { "min": { "alias": "min"; "required": false; }; }, {}, never, never, false, never>;
42
+ }
43
+ export declare class MaxDateValidatorIso implements Validator {
44
+ max?: string | null;
45
+ validate(control: AbstractControl): {
46
+ [key: string]: any;
47
+ } | null;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaxDateValidatorIso, never>;
49
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MaxDateValidatorIso, "six-date[max]", never, { "max": { "alias": "max"; "required": false; }; }, {}, never, never, false, never>;
50
+ }
51
+ export declare class AllowedDatesValidatorIso implements Validator {
52
+ allowedDates: (date: string) => boolean;
53
+ validate(control: AbstractControl): {
54
+ [key: string]: any;
55
+ } | null;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<AllowedDatesValidatorIso, never>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AllowedDatesValidatorIso, "six-date[allowedDates]", never, { "allowedDates": { "alias": "allowedDates"; "required": false; }; }, {}, never, never, false, never>;
58
+ }
59
+ export declare class MinValidator implements Validator {
60
+ min: number | string;
61
+ validate(control: AbstractControl): {
62
+ [key: string]: any;
63
+ } | null;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<MinValidator, never>;
65
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MinValidator, "six-input[type=number][min]", never, { "min": { "alias": "min"; "required": false; }; }, {}, never, never, false, never>;
66
+ }
67
+ export declare class MaxValidator implements Validator {
68
+ max: number | string;
69
+ validate(control: AbstractControl): {
70
+ [key: string]: any;
71
+ } | null;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaxValidator, never>;
73
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MaxValidator, "six-input[type=number][max]", never, { "max": { "alias": "max"; "required": false; }; }, {}, never, never, false, never>;
74
+ }
package/package.json CHANGED
@@ -1,21 +1,23 @@
1
1
  {
2
2
  "name": "@six-group/ui-library-angular",
3
- "version": "0.0.0-insider.ebd822a",
3
+ "version": "0.0.0-insider.ecf3d8c",
4
+ "description": "Angular wrapper components for @six-group/ui-library",
4
5
  "private": false,
5
6
  "peerDependencies": {
6
- "@angular/common": "^15.2.0",
7
- "@angular/core": "^15.2.0",
7
+ "@angular/common": ">=19.0.0",
8
+ "@angular/core": ">=19.0.0",
9
+ "@angular/router": ">=19.0.0",
10
+ "@angular/forms": ">=19.0.0",
8
11
  "@six-group/ui-library": "*"
9
12
  },
10
13
  "dependencies": {
11
14
  "tslib": "^2.3.0"
12
15
  },
13
16
  "sideEffects": false,
14
- "module": "fesm2015/six-group-ui-library-angular.mjs",
15
- "es2020": "fesm2020/six-group-ui-library-angular.mjs",
16
- "esm2020": "esm2020/six-group-ui-library-angular.mjs",
17
- "fesm2020": "fesm2020/six-group-ui-library-angular.mjs",
18
- "fesm2015": "fesm2015/six-group-ui-library-angular.mjs",
17
+ "engines": {
18
+ "node": ">=22"
19
+ },
20
+ "module": "fesm2022/six-group-ui-library-angular.mjs",
19
21
  "typings": "index.d.ts",
20
22
  "exports": {
21
23
  "./package.json": {
@@ -23,11 +25,7 @@
23
25
  },
24
26
  ".": {
25
27
  "types": "./index.d.ts",
26
- "esm2020": "./esm2020/six-group-ui-library-angular.mjs",
27
- "es2020": "./fesm2020/six-group-ui-library-angular.mjs",
28
- "es2015": "./fesm2015/six-group-ui-library-angular.mjs",
29
- "node": "./fesm2015/six-group-ui-library-angular.mjs",
30
- "default": "./fesm2020/six-group-ui-library-angular.mjs"
28
+ "default": "./fesm2022/six-group-ui-library-angular.mjs"
31
29
  }
32
30
  }
33
31
  }
package/public-api.d.ts CHANGED
@@ -1,3 +1,20 @@
1
1
  export * from './lib/ui-library-angular.module';
2
2
  export { DIRECTIVES } from './lib/stencil-generated';
3
3
  export * from './lib/stencil-generated/components';
4
+ export * from './lib/control-value-accessors/value-accessor';
5
+ export * from './lib/control-value-accessors/text-value-accessor';
6
+ export * from './lib/control-value-accessors/numeric-value-accessor';
7
+ export * from './lib/control-value-accessors/radio-value-accessor';
8
+ export * from './lib/control-value-accessors/datepicker-value-accessor';
9
+ export * from './lib/control-value-accessors/date-value-accessor';
10
+ export * from './lib/control-value-accessors/timepicker-value-accessor';
11
+ export * from './lib/control-value-accessors/select-value-accessor';
12
+ export * from './lib/control-value-accessors/checkbox-value-accessor';
13
+ export * from './lib/control-value-accessors/switch-value-accessor';
14
+ export * from './lib/control-value-accessors/range-value-accessor';
15
+ export * from './lib/validators/six-ui-library-validators';
16
+ export * from './lib/form/six-form.directive';
17
+ export * from './lib/link/six-router-link.directive';
18
+ export * from './lib/sidebar/active-sidebar.directive';
19
+ export * from './lib/services/validation-messages.service';
20
+ export * from './lib/services/alert.service';
@@ -1,51 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- import { fromEvent } from 'rxjs';
4
- export const proxyInputs = (Cmp, inputs) => {
5
- const Prototype = Cmp.prototype;
6
- inputs.forEach((item) => {
7
- Object.defineProperty(Prototype, item, {
8
- get() {
9
- return this.el[item];
10
- },
11
- set(val) {
12
- this.z.runOutsideAngular(() => (this.el[item] = val));
13
- },
14
- });
15
- });
16
- };
17
- export const proxyMethods = (Cmp, methods) => {
18
- const Prototype = Cmp.prototype;
19
- methods.forEach((methodName) => {
20
- Prototype[methodName] = function () {
21
- const args = arguments;
22
- return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
23
- };
24
- });
25
- };
26
- export const proxyOutputs = (instance, el, events) => {
27
- events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
28
- };
29
- export const defineCustomElement = (tagName, customElement) => {
30
- if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
31
- customElements.define(tagName, customElement);
32
- }
33
- };
34
- // tslint:disable-next-line: only-arrow-functions
35
- export function ProxyCmp(opts) {
36
- const decorator = function (cls) {
37
- const { defineCustomElementFn, inputs, methods } = opts;
38
- if (defineCustomElementFn !== undefined) {
39
- defineCustomElementFn();
40
- }
41
- if (inputs) {
42
- proxyInputs(cls, inputs);
43
- }
44
- if (methods) {
45
- proxyMethods(cls, methods);
46
- }
47
- return cls;
48
- };
49
- return decorator;
50
- }
51
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGliL3N0ZW5jaWwtZ2VuZXJhdGVkL2FuZ3VsYXItY29tcG9uZW50LWxpYi91dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFakMsTUFBTSxDQUFDLE1BQU0sV0FBVyxHQUFHLENBQUMsR0FBUSxFQUFFLE1BQWdCLEVBQUUsRUFBRTtJQUN4RCxNQUFNLFNBQVMsR0FBRyxHQUFHLENBQUMsU0FBUyxDQUFDO0lBQ2hDLE1BQU0sQ0FBQyxPQUFPLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFBRTtRQUN0QixNQUFNLENBQUMsY0FBYyxDQUFDLFNBQVMsRUFBRSxJQUFJLEVBQUU7WUFDckMsR0FBRztnQkFDRCxPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7WUFDdkIsQ0FBQztZQUNELEdBQUcsQ0FBQyxH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