@six-group/ui-library-angular 0.0.0-insider.cd56b84 → 0.0.0-insider.cec66ef
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.
- package/esm2022/lib/control-value-accessors/date-value-accessor.mjs +41 -0
- package/esm2022/lib/control-value-accessors/value-accessor.mjs +8 -2
- package/esm2022/lib/form/six-form.directive.mjs +1 -1
- package/esm2022/lib/link/six-router-link.directive.mjs +8 -3
- package/esm2022/lib/sidebar/active-sidebar.directive.mjs +110 -0
- package/esm2022/lib/stencil-generated/components.mjs +143 -23
- package/esm2022/lib/stencil-generated/index.mjs +6 -1
- package/esm2022/lib/ui-library-angular-config.mjs +6 -0
- package/esm2022/lib/ui-library-angular.module.mjs +46 -6
- package/esm2022/lib/validators/six-ui-library-validators.mjs +82 -1
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/six-group-ui-library-angular.mjs +432 -31
- package/fesm2022/six-group-ui-library-angular.mjs.map +1 -1
- package/lib/control-value-accessors/date-value-accessor.d.ts +10 -0
- package/lib/control-value-accessors/value-accessor.d.ts +2 -0
- package/lib/link/six-router-link.directive.d.ts +1 -1
- package/lib/sidebar/active-sidebar.directive.d.ts +59 -0
- package/lib/stencil-generated/components.d.ts +113 -86
- package/lib/stencil-generated/index.d.ts +1 -1
- package/lib/ui-library-angular-config.d.ts +6 -0
- package/lib/ui-library-angular.module.d.ts +13 -10
- package/lib/validators/six-ui-library-validators.d.ts +27 -0
- package/package.json +5 -2
- package/public-api.d.ts +2 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as d from './components';
|
|
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.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.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,22 +1,25 @@
|
|
|
1
1
|
import { ModuleWithProviders, Type } from '@angular/core';
|
|
2
2
|
import { ValidationMessagesService } from './services/validation-messages.service';
|
|
3
|
+
import { UiLibraryConfig } from './ui-library-angular-config';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
import * as i1 from "./stencil-generated/components";
|
|
5
6
|
import * as i2 from "./control-value-accessors/text-value-accessor";
|
|
6
7
|
import * as i3 from "./control-value-accessors/numeric-value-accessor";
|
|
7
8
|
import * as i4 from "./control-value-accessors/radio-value-accessor";
|
|
8
9
|
import * as i5 from "./control-value-accessors/datepicker-value-accessor";
|
|
9
|
-
import * as i6 from "./control-value-accessors/
|
|
10
|
-
import * as i7 from "./control-value-accessors/
|
|
11
|
-
import * as i8 from "./control-value-accessors/
|
|
12
|
-
import * as i9 from "./control-value-accessors/
|
|
13
|
-
import * as i10 from "./control-value-accessors/
|
|
14
|
-
import * as i11 from "./
|
|
15
|
-
import * as i12 from "./
|
|
16
|
-
import * as i13 from "./
|
|
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";
|
|
17
20
|
export declare class UiLibraryAngularModule {
|
|
18
|
-
static forRoot<T extends ValidationMessagesService>(customValidationMessagesService?: Type<T
|
|
21
|
+
static forRoot<T extends ValidationMessagesService>(customValidationMessagesService?: Type<T>, config?: UiLibraryConfig): ModuleWithProviders<UiLibraryAngularModule>;
|
|
19
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiLibraryAngularModule, never>;
|
|
20
|
-
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.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.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.
|
|
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]>;
|
|
21
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<UiLibraryAngularModule>;
|
|
22
25
|
}
|
|
@@ -4,6 +4,9 @@ export declare class SixUiLibraryValidators {
|
|
|
4
4
|
static minDate(mindate: Date): ValidatorFn;
|
|
5
5
|
static maxDate(maxdate: Date): ValidatorFn;
|
|
6
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;
|
|
7
10
|
}
|
|
8
11
|
export declare class MinDateValidator implements Validator {
|
|
9
12
|
min?: Date | null;
|
|
@@ -29,6 +32,30 @@ export declare class AllowedDatesValidator implements Validator {
|
|
|
29
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<AllowedDatesValidator, never>;
|
|
30
33
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AllowedDatesValidator, "six-datepicker[allowedDates]", never, { "allowedDates": { "alias": "allowedDates"; "required": false; }; }, {}, never, never, false, never>;
|
|
31
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
|
+
}
|
|
32
59
|
export declare class MinValidator implements Validator {
|
|
33
60
|
min: number | string;
|
|
34
61
|
validate(control: AbstractControl): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@six-group/ui-library-angular",
|
|
3
|
-
"version": "0.0.0-insider.
|
|
3
|
+
"version": "0.0.0-insider.cec66ef",
|
|
4
4
|
"description": "Angular wrapper components for @six-group/ui-library",
|
|
5
5
|
"private": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -13,9 +13,12 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"tslib": "^2.3.0"
|
|
15
15
|
},
|
|
16
|
+
"resolutions": {
|
|
17
|
+
"rxjs": "7.8.1"
|
|
18
|
+
},
|
|
16
19
|
"sideEffects": false,
|
|
17
20
|
"engines": {
|
|
18
|
-
"node": ">=
|
|
21
|
+
"node": ">=20"
|
|
19
22
|
},
|
|
20
23
|
"module": "fesm2022/six-group-ui-library-angular.mjs",
|
|
21
24
|
"typings": "index.d.ts",
|
package/public-api.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './lib/control-value-accessors/text-value-accessor';
|
|
|
6
6
|
export * from './lib/control-value-accessors/numeric-value-accessor';
|
|
7
7
|
export * from './lib/control-value-accessors/radio-value-accessor';
|
|
8
8
|
export * from './lib/control-value-accessors/datepicker-value-accessor';
|
|
9
|
+
export * from './lib/control-value-accessors/date-value-accessor';
|
|
9
10
|
export * from './lib/control-value-accessors/timepicker-value-accessor';
|
|
10
11
|
export * from './lib/control-value-accessors/select-value-accessor';
|
|
11
12
|
export * from './lib/control-value-accessors/checkbox-value-accessor';
|
|
@@ -14,5 +15,6 @@ export * from './lib/control-value-accessors/range-value-accessor';
|
|
|
14
15
|
export * from './lib/validators/six-ui-library-validators';
|
|
15
16
|
export * from './lib/form/six-form.directive';
|
|
16
17
|
export * from './lib/link/six-router-link.directive';
|
|
18
|
+
export * from './lib/sidebar/active-sidebar.directive';
|
|
17
19
|
export * from './lib/services/validation-messages.service';
|
|
18
20
|
export * from './lib/services/alert.service';
|