@haiilo/catalyst-angular 10.5.0 → 10.7.1

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 (29) hide show
  1. package/esm2020/lib/catalyst.module.mjs +20 -8
  2. package/esm2020/lib/datetime/datetime.component.mjs +130 -0
  3. package/esm2020/lib/dialog/dialog-actions.component.mjs +3 -3
  4. package/esm2020/lib/dialog/dialog-header.component.mjs +3 -3
  5. package/esm2020/lib/dialog/dialog.component.mjs +3 -3
  6. package/esm2020/lib/dialog/dialog.service.mjs +3 -3
  7. package/esm2020/lib/directives/boolean-value-accessor.mjs +3 -3
  8. package/esm2020/lib/directives/date-value-accessor.mjs +70 -0
  9. package/esm2020/lib/directives/proxies.mjs +90 -90
  10. package/esm2020/lib/directives/radio-value-accessor.mjs +3 -3
  11. package/esm2020/lib/directives/select-value-accessor-decorator.mjs +3 -3
  12. package/esm2020/lib/directives/select-value-accessor.mjs +3 -3
  13. package/esm2020/lib/directives/text-value-accessor.mjs +5 -5
  14. package/esm2020/lib/directives/time-value-accessor.mjs +55 -0
  15. package/esm2020/lib/directives/value-accessor-decorator.mjs +3 -3
  16. package/esm2020/lib/directives/value-accessor.mjs +3 -3
  17. package/esm2020/public-api.mjs +4 -1
  18. package/fesm2015/haiilo-catalyst-angular.mjs +393 -131
  19. package/fesm2015/haiilo-catalyst-angular.mjs.map +1 -1
  20. package/fesm2020/haiilo-catalyst-angular.mjs +382 -131
  21. package/fesm2020/haiilo-catalyst-angular.mjs.map +1 -1
  22. package/lib/catalyst.module.d.ts +14 -11
  23. package/lib/datetime/datetime.component.d.ts +29 -0
  24. package/lib/directives/date-value-accessor.d.ts +13 -0
  25. package/lib/directives/proxies.d.ts +1 -1
  26. package/lib/directives/text-value-accessor.d.ts +1 -1
  27. package/lib/directives/time-value-accessor.d.ts +11 -0
  28. package/package.json +3 -3
  29. package/public-api.d.ts +3 -0
@@ -4,16 +4,19 @@ import { RootLogger } from 'loglevel';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "./directives/proxies";
6
6
  import * as i2 from "./directives/boolean-value-accessor";
7
- import * as i3 from "./directives/radio-value-accessor";
8
- import * as i4 from "./directives/select-value-accessor";
9
- import * as i5 from "./directives/select-value-accessor-decorator";
10
- import * as i6 from "./directives/text-value-accessor";
11
- import * as i7 from "./directives/value-accessor-decorator";
12
- import * as i8 from "./dialog/dialog.component";
13
- import * as i9 from "./dialog/dialog-header.component";
14
- import * as i10 from "./dialog/dialog-actions.component";
15
- import * as i11 from "@angular/common";
16
- import * as i12 from "@angular/cdk/dialog";
7
+ import * as i3 from "./directives/date-value-accessor";
8
+ import * as i4 from "./directives/radio-value-accessor";
9
+ import * as i5 from "./directives/select-value-accessor";
10
+ import * as i6 from "./directives/select-value-accessor-decorator";
11
+ import * as i7 from "./directives/text-value-accessor";
12
+ import * as i8 from "./directives/time-value-accessor";
13
+ import * as i9 from "./directives/value-accessor-decorator";
14
+ import * as i10 from "./datetime/datetime.component";
15
+ import * as i11 from "./dialog/dialog.component";
16
+ import * as i12 from "./dialog/dialog-header.component";
17
+ import * as i13 from "./dialog/dialog-actions.component";
18
+ import * as i14 from "@angular/common";
19
+ import * as i15 from "@angular/cdk/dialog";
17
20
  export declare const CAT_LOG_TOKEN: InjectionToken<RootLogger>;
18
21
  export declare const CAT_I18N_REGISTRY_TOKEN: InjectionToken<CatI18nRegistry>;
19
22
  export declare const CAT_ICON_REGISTRY_TOKEN: InjectionToken<CatIconRegistry>;
@@ -21,6 +24,6 @@ export declare const CAT_NOTIFICATION_SERVICE_TOKEN: InjectionToken<CatNotificat
21
24
  export declare class CatalystModule {
22
25
  static forRoot(): ModuleWithProviders<CatalystModule>;
23
26
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalystModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<CatalystModule, [typeof i1.CatAlert, typeof i1.CatAvatar, typeof i1.CatBadge, typeof i1.CatButton, typeof i1.CatButtonGroup, typeof i1.CatCard, typeof i1.CatCheckbox, typeof i1.CatDatepicker, typeof i1.CatDropdown, typeof i1.CatFormGroup, typeof i1.CatIcon, typeof i1.CatInput, typeof i1.CatPagination, typeof i1.CatRadio, typeof i1.CatRadioGroup, typeof i1.CatScrollable, typeof i1.CatSelect, typeof i1.CatSkeleton, typeof i1.CatSpinner, typeof i1.CatTab, typeof i1.CatTabs, typeof i1.CatTextarea, typeof i1.CatToggle, typeof i1.CatTooltip, typeof i2.BooleanValueAccessor, typeof i3.RadioValueAccessor, typeof i4.SelectValueAccessor, typeof i5.SelectValueAccessorDecorator, typeof i6.TextValueAccessor, typeof i7.ValueAccessorDecorator, typeof i8.CatDialogComponent, typeof i9.CatDialogHeaderComponent, typeof i10.CatDialogActionsComponent], [typeof i11.CommonModule, typeof i12.DialogModule], [typeof i1.CatAlert, typeof i1.CatAvatar, typeof i1.CatBadge, typeof i1.CatButton, typeof i1.CatButtonGroup, typeof i1.CatCard, typeof i1.CatCheckbox, typeof i1.CatDatepicker, typeof i1.CatDropdown, typeof i1.CatFormGroup, typeof i1.CatIcon, typeof i1.CatInput, typeof i1.CatPagination, typeof i1.CatRadio, typeof i1.CatRadioGroup, typeof i1.CatScrollable, typeof i1.CatSelect, typeof i1.CatSkeleton, typeof i1.CatSpinner, typeof i1.CatTab, typeof i1.CatTabs, typeof i1.CatTextarea, typeof i1.CatToggle, typeof i1.CatTooltip, typeof i2.BooleanValueAccessor, typeof i3.RadioValueAccessor, typeof i4.SelectValueAccessor, typeof i5.SelectValueAccessorDecorator, typeof i6.TextValueAccessor, typeof i7.ValueAccessorDecorator, typeof i8.CatDialogComponent, typeof i9.CatDialogHeaderComponent, typeof i10.CatDialogActionsComponent]>;
27
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CatalystModule, [typeof i1.CatAlert, typeof i1.CatAvatar, typeof i1.CatBadge, typeof i1.CatButton, typeof i1.CatButtonGroup, typeof i1.CatCard, typeof i1.CatCheckbox, typeof i1.CatDatepicker, typeof i1.CatDropdown, typeof i1.CatFormGroup, typeof i1.CatIcon, typeof i1.CatInput, typeof i1.CatPagination, typeof i1.CatRadio, typeof i1.CatRadioGroup, typeof i1.CatScrollable, typeof i1.CatSelect, typeof i1.CatSkeleton, typeof i1.CatSpinner, typeof i1.CatTab, typeof i1.CatTabs, typeof i1.CatTextarea, typeof i1.CatToggle, typeof i1.CatTooltip, typeof i2.BooleanValueAccessor, typeof i3.DateValueAccessor, typeof i4.RadioValueAccessor, typeof i5.SelectValueAccessor, typeof i6.SelectValueAccessorDecorator, typeof i7.TextValueAccessor, typeof i8.TimeValueAccessor, typeof i9.ValueAccessorDecorator, typeof i10.DatetimeComponent, typeof i11.CatDialogComponent, typeof i12.CatDialogHeaderComponent, typeof i13.CatDialogActionsComponent], [typeof i14.CommonModule, typeof i15.DialogModule], [typeof i1.CatAlert, typeof i1.CatAvatar, typeof i1.CatBadge, typeof i1.CatButton, typeof i1.CatButtonGroup, typeof i1.CatCard, typeof i1.CatCheckbox, typeof i1.CatDatepicker, typeof i1.CatDropdown, typeof i1.CatFormGroup, typeof i1.CatIcon, typeof i1.CatInput, typeof i1.CatPagination, typeof i1.CatRadio, typeof i1.CatRadioGroup, typeof i1.CatScrollable, typeof i1.CatSelect, typeof i1.CatSkeleton, typeof i1.CatSpinner, typeof i1.CatTab, typeof i1.CatTabs, typeof i1.CatTextarea, typeof i1.CatToggle, typeof i1.CatTooltip, typeof i2.BooleanValueAccessor, typeof i3.DateValueAccessor, typeof i4.RadioValueAccessor, typeof i5.SelectValueAccessor, typeof i6.SelectValueAccessorDecorator, typeof i7.TextValueAccessor, typeof i8.TimeValueAccessor, typeof i9.ValueAccessorDecorator, typeof i10.DatetimeComponent, typeof i11.CatDialogComponent, typeof i12.CatDialogHeaderComponent, typeof i13.CatDialogActionsComponent]>;
25
28
  static ɵinj: i0.ɵɵInjectorDeclaration<CatalystModule>;
26
29
  }
@@ -0,0 +1,29 @@
1
+ import { AfterContentInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { DateValueAccessor } from '../directives/date-value-accessor';
4
+ import { TimeValueAccessor } from '../directives/time-value-accessor';
5
+ import * as i0 from "@angular/core";
6
+ export declare class DatetimeComponent implements AfterContentInit, ControlValueAccessor {
7
+ protected lastValue: any;
8
+ protected lastDateValue: any;
9
+ protected lastTimeValue: any;
10
+ dateInput?: DateValueAccessor;
11
+ timeInput?: TimeValueAccessor;
12
+ private _min?;
13
+ get min(): Date | null;
14
+ set min(value: Date | null | undefined);
15
+ private _max?;
16
+ get max(): Date | null;
17
+ set max(value: Date | null | undefined);
18
+ ngAfterContentInit(): void;
19
+ writeValue(value: any): void;
20
+ registerOnChange(fn: (value: any) => void): void;
21
+ registerOnTouched(fn: () => void): void;
22
+ setDisabledState?(isDisabled: boolean): void;
23
+ private get value();
24
+ private limitTime;
25
+ private toLocalISODate;
26
+ private toLocalISOTime;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatetimeComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatetimeComponent, "cat-datetime", never, { "min": "min"; "max": "max"; }, {}, ["dateInput", "timeInput"], ["*"], false>;
29
+ }
@@ -0,0 +1,13 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ValueAccessor } from './value-accessor';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DateValueAccessor extends ValueAccessor {
5
+ constructor(el: ElementRef);
6
+ get nativeElement(): any;
7
+ writeValue(value: any): void;
8
+ handleChangeEvent(value: any): void;
9
+ private toISO;
10
+ private toDate;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateValueAccessor, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateValueAccessor, "cat-date, cat-date-inline", never, {}, {}, never, never, false>;
13
+ }
@@ -161,7 +161,7 @@ export declare class CatDropdown {
161
161
  protected el: HTMLElement;
162
162
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
163
163
  static ɵfac: i0.ɵɵFactoryDeclaration<CatDropdown, never>;
164
- static ɵcmp: i0.ɵɵComponentDeclaration<CatDropdown, "cat-dropdown", never, { "arrowNavigation": "arrowNavigation"; "noAutoClose": "noAutoClose"; "noResize": "noResize"; "overflow": "overflow"; "placement": "placement"; }, {}, never, ["*"], false>;
164
+ static ɵcmp: i0.ɵɵComponentDeclaration<CatDropdown, "cat-dropdown", never, { "arrowNavigation": "arrowNavigation"; "noAutoClose": "noAutoClose"; "noInitialFocus": "noInitialFocus"; "noResize": "noResize"; "overflow": "overflow"; "placement": "placement"; }, {}, never, ["*"], false>;
165
165
  }
166
166
  export declare interface CatDropdown extends Components.CatDropdown {
167
167
  /**
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
4
4
  export declare class TextValueAccessor extends ValueAccessor {
5
5
  constructor(el: ElementRef);
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<TextValueAccessor, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<TextValueAccessor, "cat-input, cat-textarea, cat-datepicker, cat-datepicker-inline, cat-date, cat-date-inline, cat-time", never, {}, {}, never, never, false>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextValueAccessor, "cat-input, cat-textarea, cat-datepicker, cat-datepicker-inline", never, {}, {}, never, never, false>;
8
8
  }
@@ -0,0 +1,11 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ValueAccessor } from './value-accessor';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TimeValueAccessor extends ValueAccessor {
5
+ constructor(el: ElementRef);
6
+ get nativeElement(): any;
7
+ writeValue(value: any): void;
8
+ handleChangeEvent(value: any): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeValueAccessor, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TimeValueAccessor, "cat-time", never, {}, {}, never, never, false>;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst-angular",
3
- "version": "10.5.0",
3
+ "version": "10.7.1",
4
4
  "description": "Angular wrapper for Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -14,8 +14,8 @@
14
14
  "dependencies": {
15
15
  "loglevel": "1.8.1",
16
16
  "tslib": "^2.3.0",
17
- "@haiilo/catalyst-tokens": "10.5.0",
18
- "@haiilo/catalyst": "10.5.0"
17
+ "@haiilo/catalyst": "10.7.1",
18
+ "@haiilo/catalyst-tokens": "10.7.1"
19
19
  },
20
20
  "module": "fesm2015/haiilo-catalyst-angular.mjs",
21
21
  "es2020": "fesm2020/haiilo-catalyst-angular.mjs",
package/public-api.d.ts CHANGED
@@ -1,13 +1,16 @@
1
1
  export * from './lib/catalyst.module';
2
+ export * from './lib/datetime/datetime.component';
2
3
  export { CatDialogActionsComponent } from './lib/dialog/dialog-actions.component';
3
4
  export { CatDialogHeaderComponent } from './lib/dialog/dialog-header.component';
4
5
  export { CatDialogComponent } from './lib/dialog/dialog.component';
5
6
  export { CatDialogConfig, CatDialogService } from './lib/dialog/dialog.service';
6
7
  export * from './lib/directives/boolean-value-accessor';
8
+ export * from './lib/directives/date-value-accessor';
7
9
  export * from './lib/directives/proxies';
8
10
  export * from './lib/directives/radio-value-accessor';
9
11
  export * from './lib/directives/select-value-accessor';
10
12
  export * from './lib/directives/select-value-accessor-decorator';
11
13
  export * from './lib/directives/text-value-accessor';
14
+ export * from './lib/directives/time-value-accessor';
12
15
  export * from './lib/directives/value-accessor';
13
16
  export * from './lib/directives/value-accessor-decorator';