@haiilo/catalyst-angular 0.9.0 → 0.10.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.
@@ -2,11 +2,15 @@ import { InjectionToken, ModuleWithProviders } from '@angular/core';
2
2
  import { CatI18nRegistry, CatIconRegistry } from '@haiilo/catalyst';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "./directives/proxies";
5
+ import * as i2 from "./directives/text-value-accessor";
6
+ import * as i3 from "./directives/select-value-accessor";
7
+ import * as i4 from "./directives/radio-value-accessor";
8
+ import * as i5 from "./directives/boolean-value-accessor";
5
9
  export declare const CAT_I18N_REGISTRY_TOKEN: InjectionToken<CatI18nRegistry>;
6
10
  export declare const CAT_ICON_REGISTRY_TOKEN: InjectionToken<CatIconRegistry>;
7
11
  export declare class CatalystModule {
8
12
  static forRoot(): ModuleWithProviders<CatalystModule>;
9
13
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalystModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<CatalystModule, [typeof i1.CatAlert, typeof i1.CatAvatar, typeof i1.CatBadge, typeof i1.CatButton, typeof i1.CatCard, typeof i1.CatCheckbox, typeof i1.CatIcon, typeof i1.CatInput, typeof i1.CatMenu, typeof i1.CatModal, typeof i1.CatRadio, 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], never, [typeof i1.CatAlert, typeof i1.CatAvatar, typeof i1.CatBadge, typeof i1.CatButton, typeof i1.CatCard, typeof i1.CatCheckbox, typeof i1.CatIcon, typeof i1.CatInput, typeof i1.CatMenu, typeof i1.CatModal, typeof i1.CatRadio, 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]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CatalystModule, [typeof i1.CatAlert, typeof i1.CatAvatar, typeof i1.CatBadge, typeof i1.CatButton, typeof i1.CatCard, typeof i1.CatCheckbox, typeof i1.CatIcon, typeof i1.CatInput, typeof i1.CatMenu, typeof i1.CatModal, typeof i1.CatRadio, 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.TextValueAccessor, typeof i3.SelectValueAccessor, typeof i4.RadioValueAccessor, typeof i5.BooleanValueAccessor], never, [typeof i1.CatAlert, typeof i1.CatAvatar, typeof i1.CatBadge, typeof i1.CatButton, typeof i1.CatCard, typeof i1.CatCheckbox, typeof i1.CatIcon, typeof i1.CatInput, typeof i1.CatMenu, typeof i1.CatModal, typeof i1.CatRadio, 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.TextValueAccessor, typeof i3.SelectValueAccessor, typeof i4.RadioValueAccessor, typeof i5.BooleanValueAccessor]>;
11
15
  static ɵinj: i0.ɵɵInjectorDeclaration<CatalystModule>;
12
16
  }
@@ -0,0 +1,9 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ValueAccessor } from './value-accessor';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BooleanValueAccessor extends ValueAccessor {
5
+ constructor(el: ElementRef);
6
+ writeValue(value: any): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BooleanValueAccessor, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BooleanValueAccessor, "cat-checkbox, cat-toggle", never, {}, {}, never>;
9
+ }
@@ -77,7 +77,7 @@ export declare class CatCheckbox {
77
77
  protected el: HTMLElement;
78
78
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
79
79
  static ɵfac: i0.ɵɵFactoryDeclaration<CatCheckbox, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<CatCheckbox, "cat-checkbox", never, { "checked": "checked"; "disabled": "disabled"; "hint": "hint"; "indeterminate": "indeterminate"; "label": "label"; "labelHidden": "labelHidden"; "name": "name"; "required": "required"; "value": "value"; }, {}, never, ["*"]>;
80
+ static ɵcmp: i0.ɵɵComponentDeclaration<CatCheckbox, "cat-checkbox", never, { "checked": "checked"; "disabled": "disabled"; "hint": "hint"; "indeterminate": "indeterminate"; "label": "label"; "labelHidden": "labelHidden"; "labelLeft": "labelLeft"; "name": "name"; "required": "required"; "value": "value"; }, {}, never, ["*"]>;
81
81
  }
82
82
  export declare interface CatIcon extends Components.CatIcon {
83
83
  }
@@ -154,7 +154,16 @@ export declare class CatRadio {
154
154
  protected el: HTMLElement;
155
155
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
156
156
  static ɵfac: i0.ɵɵFactoryDeclaration<CatRadio, never>;
157
- static ɵcmp: i0.ɵɵComponentDeclaration<CatRadio, "cat-radio", never, { "checked": "checked"; "disabled": "disabled"; "hint": "hint"; "label": "label"; "labelHidden": "labelHidden"; "name": "name"; "required": "required"; "value": "value"; }, {}, never, ["*"]>;
157
+ static ɵcmp: i0.ɵɵComponentDeclaration<CatRadio, "cat-radio", never, { "checked": "checked"; "disabled": "disabled"; "hint": "hint"; "label": "label"; "labelHidden": "labelHidden"; "labelLeft": "labelLeft"; "name": "name"; "required": "required"; "value": "value"; }, {}, never, ["*"]>;
158
+ }
159
+ export declare interface CatRadioGroup extends Components.CatRadioGroup {
160
+ }
161
+ export declare class CatRadioGroup {
162
+ protected z: NgZone;
163
+ protected el: HTMLElement;
164
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
165
+ static ɵfac: i0.ɵɵFactoryDeclaration<CatRadioGroup, never>;
166
+ static ɵcmp: i0.ɵɵComponentDeclaration<CatRadioGroup, "cat-radio-group", never, { "a11yLabel": "a11yLabel"; "disabled": "disabled"; "labelLeft": "labelLeft"; "name": "name"; }, {}, never, ["*"]>;
158
167
  }
159
168
  export declare interface CatScrollable extends Components.CatScrollable {
160
169
  /**
@@ -190,6 +199,10 @@ export declare interface CatSelect extends Components.CatSelect {
190
199
  * Emitted when the search is triggered.
191
200
  */
192
201
  catSearch: EventEmitter<CustomEvent<any>>;
202
+ /**
203
+ * Emitted when scrolled to the bottom.
204
+ */
205
+ catScrolledBottom: EventEmitter<CustomEvent<any>>;
193
206
  }
194
207
  export declare class CatSelect {
195
208
  protected z: NgZone;
@@ -287,7 +300,7 @@ export declare class CatToggle {
287
300
  protected el: HTMLElement;
288
301
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
289
302
  static ɵfac: i0.ɵɵFactoryDeclaration<CatToggle, never>;
290
- static ɵcmp: i0.ɵɵComponentDeclaration<CatToggle, "cat-toggle", never, { "checked": "checked"; "disabled": "disabled"; "hint": "hint"; "label": "label"; "labelHidden": "labelHidden"; "name": "name"; "required": "required"; "value": "value"; }, {}, never, ["*"]>;
303
+ static ɵcmp: i0.ɵɵComponentDeclaration<CatToggle, "cat-toggle", never, { "checked": "checked"; "disabled": "disabled"; "hint": "hint"; "label": "label"; "labelHidden": "labelHidden"; "labelLeft": "labelLeft"; "name": "name"; "required": "required"; "value": "value"; }, {}, never, ["*"]>;
291
304
  }
292
305
  export declare interface CatTooltip extends Components.CatTooltip {
293
306
  }
@@ -0,0 +1,8 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ValueAccessor } from './value-accessor';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RadioValueAccessor extends ValueAccessor {
5
+ constructor(el: ElementRef);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioValueAccessor, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioValueAccessor, "cat-radio", never, {}, {}, never>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ValueAccessor } from './value-accessor';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SelectValueAccessor extends ValueAccessor {
5
+ constructor(el: ElementRef);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueAccessor, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SelectValueAccessor, "cat-select", never, {}, {}, never>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ValueAccessor } from './value-accessor';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TextValueAccessor extends ValueAccessor {
5
+ constructor(el: ElementRef);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextValueAccessor, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextValueAccessor, "cat-input, cat-textarea", never, {}, {}, never>;
8
+ }
@@ -0,0 +1,18 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ValueAccessor implements ControlValueAccessor {
5
+ protected el: ElementRef;
6
+ private onChange;
7
+ private onTouched;
8
+ protected lastValue: any;
9
+ constructor(el: ElementRef);
10
+ writeValue(value: any): void;
11
+ handleChangeEvent(value: any): void;
12
+ _handleBlurEvent(): void;
13
+ registerOnChange(fn: (value: any) => void): void;
14
+ registerOnTouched(fn: () => void): void;
15
+ setDisabledState(isDisabled: boolean): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValueAccessor, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ValueAccessor, never, never, {}, {}, never>;
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst-angular",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "description": "Angular wrapper for Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -11,7 +11,7 @@
11
11
  "rxjs": ">=6.6.0"
12
12
  },
13
13
  "dependencies": {
14
- "@haiilo/catalyst": "0.9.0",
14
+ "@haiilo/catalyst": "0.10.1",
15
15
  "tslib": "^2.3.0"
16
16
  },
17
17
  "module": "fesm2015/haiilo-catalyst-angular.mjs",
package/public-api.d.ts CHANGED
@@ -1,2 +1,7 @@
1
1
  export * from './lib/directives/proxies';
2
2
  export * from './lib/catalyst.module';
3
+ export * from './lib/directives/value-accessor';
4
+ export * from './lib/directives/boolean-value-accessor';
5
+ export * from './lib/directives/select-value-accessor';
6
+ export * from './lib/directives/text-value-accessor';
7
+ export * from './lib/directives/radio-value-accessor';