@haiilo/catalyst-angular 0.4.0 → 0.5.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.5.0](https://github.com/haiilo/catalyst/compare/v0.4.0...v0.5.0) (2022-05-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * add radio button component ([642cff0](https://github.com/haiilo/catalyst/commit/642cff0d7f037202c5abf65f1bf8381970bcdd69))
12
+ * **core:** add card component ([3be7246](https://github.com/haiilo/catalyst/commit/3be724616b8fa924e719a73aa688aa29a9c2f891))
13
+ * **core:** add input component ([337649a](https://github.com/haiilo/catalyst/commit/337649a44001f908110372c3341963bbbd0167f9))
14
+ * **core:** add navigation styles ([6afb6e9](https://github.com/haiilo/catalyst/commit/6afb6e9017f0dafb2c0712d914f43f895b4b9124))
15
+ * **core:** add textarea component ([9f94637](https://github.com/haiilo/catalyst/commit/9f94637fddd03f4bf98b6d90fa93ce814341efdb))
16
+ * **core:** added checkbox & toggle component ([205b0d0](https://github.com/haiilo/catalyst/commit/205b0d0cc468d40fe742a22fb1608ef25525918f))
17
+
18
+
19
+
20
+
21
+
6
22
  # [0.4.0](https://github.com/haiilo/catalyst/compare/v0.3.2...v0.4.0) (2022-04-26)
7
23
 
8
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst-angular",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Angular wrapper for Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -14,8 +14,8 @@
14
14
  "rxjs": ">=6.6.0"
15
15
  },
16
16
  "dependencies": {
17
- "@haiilo/catalyst": "^0.4.0",
17
+ "@haiilo/catalyst": "^0.5.0",
18
18
  "tslib": "^2.3.0"
19
19
  },
20
- "gitHead": "281ac5d06460e618cd9af149b480667d3cbc917d"
20
+ "gitHead": "eb1acc7a08090c5c7095b3d3804ea8f347e5bbe2"
21
21
  }
@@ -68,14 +68,14 @@ export declare interface CatButton extends Components.CatButton {
68
68
 
69
69
  @ProxyCmp({
70
70
  defineCustomElementFn: undefined,
71
- inputs: ['a11yLabel', 'buttonId', 'color', 'disabled', 'ellipsed', 'icon', 'iconOnly', 'iconSuffix', 'loading', 'name', 'round', 'size', 'submit', 'url', 'urlTarget', 'value', 'variant'],
71
+ inputs: ['a11yLabel', 'active', 'buttonId', 'color', 'disabled', 'ellipsed', 'icon', 'iconOnly', 'iconRight', 'loading', 'name', 'round', 'size', 'submit', 'url', 'urlTarget', 'value', 'variant'],
72
72
  methods: ['setFocus']
73
73
  })
74
74
  @Component({
75
75
  selector: 'cat-button',
76
76
  changeDetection: ChangeDetectionStrategy.OnPush,
77
77
  template: '<ng-content></ng-content>',
78
- inputs: ['a11yLabel', 'buttonId', 'color', 'disabled', 'ellipsed', 'icon', 'iconOnly', 'iconSuffix', 'loading', 'name', 'round', 'size', 'submit', 'url', 'urlTarget', 'value', 'variant']
78
+ inputs: ['a11yLabel', 'active', 'buttonId', 'color', 'disabled', 'ellipsed', 'icon', 'iconOnly', 'iconRight', 'loading', 'name', 'round', 'size', 'submit', 'url', 'urlTarget', 'value', 'variant']
79
79
  })
80
80
  export class CatButton {
81
81
  protected el: HTMLElement;
@@ -87,6 +87,62 @@ export class CatButton {
87
87
  }
88
88
 
89
89
 
90
+ export declare interface CatCard extends Components.CatCard {}
91
+
92
+ @ProxyCmp({
93
+ defineCustomElementFn: undefined
94
+ })
95
+ @Component({
96
+ selector: 'cat-card',
97
+ changeDetection: ChangeDetectionStrategy.OnPush,
98
+ template: '<ng-content></ng-content>'
99
+ })
100
+ export class CatCard {
101
+ protected el: HTMLElement;
102
+ constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
103
+ c.detach();
104
+ this.el = r.nativeElement;
105
+ }
106
+ }
107
+
108
+
109
+ export declare interface CatCheckbox extends Components.CatCheckbox {
110
+ /**
111
+ * Emitted when the checked status of the checkbox is changed.
112
+ */
113
+ catChange: EventEmitter<CustomEvent<any>>;
114
+ /**
115
+ * Emitted when the checkbox received focus.
116
+ */
117
+ catFocus: EventEmitter<CustomEvent<FocusEvent>>;
118
+ /**
119
+ * Emitted when the checkbox loses focus.
120
+ */
121
+ catBlur: EventEmitter<CustomEvent<FocusEvent>>;
122
+
123
+ }
124
+
125
+ @ProxyCmp({
126
+ defineCustomElementFn: undefined,
127
+ inputs: ['checked', 'disabled', 'indeterminate', 'label', 'labelHidden', 'name', 'required', 'value'],
128
+ methods: ['setFocus']
129
+ })
130
+ @Component({
131
+ selector: 'cat-checkbox',
132
+ changeDetection: ChangeDetectionStrategy.OnPush,
133
+ template: '<ng-content></ng-content>',
134
+ inputs: ['checked', 'disabled', 'indeterminate', 'label', 'labelHidden', 'name', 'required', 'value']
135
+ })
136
+ export class CatCheckbox {
137
+ protected el: HTMLElement;
138
+ constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
139
+ c.detach();
140
+ this.el = r.nativeElement;
141
+ proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
142
+ }
143
+ }
144
+
145
+
90
146
  export declare interface CatIcon extends Components.CatIcon {}
91
147
 
92
148
  @ProxyCmp({
@@ -108,6 +164,43 @@ export class CatIcon {
108
164
  }
109
165
 
110
166
 
167
+ export declare interface CatInput extends Components.CatInput {
168
+ /**
169
+ * Emitted when the value is changed.
170
+ */
171
+ catChange: EventEmitter<CustomEvent<any>>;
172
+ /**
173
+ * Emitted when the input received focus.
174
+ */
175
+ catFocus: EventEmitter<CustomEvent<FocusEvent>>;
176
+ /**
177
+ * Emitted when the input loses focus.
178
+ */
179
+ catBlur: EventEmitter<CustomEvent<FocusEvent>>;
180
+
181
+ }
182
+
183
+ @ProxyCmp({
184
+ defineCustomElementFn: undefined,
185
+ inputs: ['autoComplete', 'clearable', 'disabled', 'hint', 'icon', 'iconRight', 'label', 'labelHidden', 'max', 'maxLength', 'min', 'minLength', 'name', 'placeholder', 'readonly', 'required', 'round', 'textPrefix', 'textSuffix', 'type', 'value'],
186
+ methods: ['setFocus', 'clear']
187
+ })
188
+ @Component({
189
+ selector: 'cat-input',
190
+ changeDetection: ChangeDetectionStrategy.OnPush,
191
+ template: '<ng-content></ng-content>',
192
+ inputs: ['autoComplete', 'clearable', 'disabled', 'hint', 'icon', 'iconRight', 'label', 'labelHidden', 'max', 'maxLength', 'min', 'minLength', 'name', 'placeholder', 'readonly', 'required', 'round', 'textPrefix', 'textSuffix', 'type', 'value']
193
+ })
194
+ export class CatInput {
195
+ protected el: HTMLElement;
196
+ constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
197
+ c.detach();
198
+ this.el = r.nativeElement;
199
+ proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
200
+ }
201
+ }
202
+
203
+
111
204
  export declare interface CatMenu extends Components.CatMenu {
112
205
  /**
113
206
  * Emitted when the menu is opened.
@@ -140,6 +233,43 @@ export class CatMenu {
140
233
  }
141
234
 
142
235
 
236
+ export declare interface CatRadio extends Components.CatRadio {
237
+ /**
238
+ * Emitted when the radio is changed.
239
+ */
240
+ catChange: EventEmitter<CustomEvent<any>>;
241
+ /**
242
+ * Emitted when the radio received focus.
243
+ */
244
+ catFocus: EventEmitter<CustomEvent<FocusEvent>>;
245
+ /**
246
+ * Emitted when the radio loses focus.
247
+ */
248
+ catBlur: EventEmitter<CustomEvent<FocusEvent>>;
249
+
250
+ }
251
+
252
+ @ProxyCmp({
253
+ defineCustomElementFn: undefined,
254
+ inputs: ['checked', 'disabled', 'label', 'labelHidden', 'name', 'required', 'value'],
255
+ methods: ['setFocus']
256
+ })
257
+ @Component({
258
+ selector: 'cat-radio',
259
+ changeDetection: ChangeDetectionStrategy.OnPush,
260
+ template: '<ng-content></ng-content>',
261
+ inputs: ['checked', 'disabled', 'label', 'labelHidden', 'name', 'required', 'value']
262
+ })
263
+ export class CatRadio {
264
+ protected el: HTMLElement;
265
+ constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
266
+ c.detach();
267
+ this.el = r.nativeElement;
268
+ proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
269
+ }
270
+ }
271
+
272
+
143
273
  export declare interface CatScrollable extends Components.CatScrollable {
144
274
  /**
145
275
  * Emitted when the content is fully scrolled to the top.
@@ -222,6 +352,80 @@ export class CatSpinner {
222
352
  }
223
353
 
224
354
 
355
+ export declare interface CatTextarea extends Components.CatTextarea {
356
+ /**
357
+ * Emitted when the value is changed.
358
+ */
359
+ catChange: EventEmitter<CustomEvent<any>>;
360
+ /**
361
+ * Emitted when the textarea received focus.
362
+ */
363
+ catFocus: EventEmitter<CustomEvent<FocusEvent>>;
364
+ /**
365
+ * Emitted when the textarea loses focus.
366
+ */
367
+ catBlur: EventEmitter<CustomEvent<FocusEvent>>;
368
+
369
+ }
370
+
371
+ @ProxyCmp({
372
+ defineCustomElementFn: undefined,
373
+ inputs: ['disabled', 'hint', 'label', 'labelHidden', 'maxLength', 'minLength', 'name', 'placeholder', 'readonly', 'required', 'rows', 'value'],
374
+ methods: ['setFocus']
375
+ })
376
+ @Component({
377
+ selector: 'cat-textarea',
378
+ changeDetection: ChangeDetectionStrategy.OnPush,
379
+ template: '<ng-content></ng-content>',
380
+ inputs: ['disabled', 'hint', 'label', 'labelHidden', 'maxLength', 'minLength', 'name', 'placeholder', 'readonly', 'required', 'rows', 'value']
381
+ })
382
+ export class CatTextarea {
383
+ protected el: HTMLElement;
384
+ constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
385
+ c.detach();
386
+ this.el = r.nativeElement;
387
+ proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
388
+ }
389
+ }
390
+
391
+
392
+ export declare interface CatToggle extends Components.CatToggle {
393
+ /**
394
+ * Emitted when the checked status of the toggle is changed.
395
+ */
396
+ catChange: EventEmitter<CustomEvent<any>>;
397
+ /**
398
+ * Emitted when the toggle received focus.
399
+ */
400
+ catFocus: EventEmitter<CustomEvent<FocusEvent>>;
401
+ /**
402
+ * Emitted when the toggle loses focus.
403
+ */
404
+ catBlur: EventEmitter<CustomEvent<FocusEvent>>;
405
+
406
+ }
407
+
408
+ @ProxyCmp({
409
+ defineCustomElementFn: undefined,
410
+ inputs: ['checked', 'disabled', 'label', 'labelHidden', 'name', 'required', 'value'],
411
+ methods: ['setFocus']
412
+ })
413
+ @Component({
414
+ selector: 'cat-toggle',
415
+ changeDetection: ChangeDetectionStrategy.OnPush,
416
+ template: '<ng-content></ng-content>',
417
+ inputs: ['checked', 'disabled', 'label', 'labelHidden', 'name', 'required', 'value']
418
+ })
419
+ export class CatToggle {
420
+ protected el: HTMLElement;
421
+ constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
422
+ c.detach();
423
+ this.el = r.nativeElement;
424
+ proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
425
+ }
426
+ }
427
+
428
+
225
429
  export declare interface CatTooltip extends Components.CatTooltip {}
226
430
 
227
431
  @ProxyCmp({