@haiilo/catalyst-angular 0.5.9 → 0.5.10

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.
@@ -1,447 +0,0 @@
1
- /* tslint:disable */
2
- /* auto-generated angular directive proxies */
3
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone } from '@angular/core';
4
- import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';
5
-
6
- import { Components } from '@haiilo/catalyst';
7
-
8
-
9
-
10
-
11
- export declare interface CatAlert extends Components.CatAlert {}
12
-
13
- @ProxyCmp({
14
- defineCustomElementFn: undefined,
15
- inputs: ['color']
16
- })
17
- @Component({
18
- selector: 'cat-alert',
19
- changeDetection: ChangeDetectionStrategy.OnPush,
20
- template: '<ng-content></ng-content>',
21
- inputs: ['color']
22
- })
23
- export class CatAlert {
24
- protected el: HTMLElement;
25
- constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
26
- c.detach();
27
- this.el = r.nativeElement;
28
- }
29
- }
30
-
31
-
32
- export declare interface CatBadge extends Components.CatBadge {}
33
-
34
- @ProxyCmp({
35
- defineCustomElementFn: undefined,
36
- inputs: ['color', 'pulse', 'round', 'size', 'variant']
37
- })
38
- @Component({
39
- selector: 'cat-badge',
40
- changeDetection: ChangeDetectionStrategy.OnPush,
41
- template: '<ng-content></ng-content>',
42
- inputs: ['color', 'pulse', 'round', 'size', 'variant']
43
- })
44
- export class CatBadge {
45
- protected el: HTMLElement;
46
- constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
47
- c.detach();
48
- this.el = r.nativeElement;
49
- }
50
- }
51
-
52
-
53
- export declare interface CatButton extends Components.CatButton {
54
- /**
55
- * Emitted when the button is clicked.
56
- */
57
- catClick: EventEmitter<CustomEvent<MouseEvent>>;
58
- /**
59
- * Emitted when the button received focus.
60
- */
61
- catFocus: EventEmitter<CustomEvent<FocusEvent>>;
62
- /**
63
- * Emitted when the button loses focus.
64
- */
65
- catBlur: EventEmitter<CustomEvent<FocusEvent>>;
66
-
67
- }
68
-
69
- @ProxyCmp({
70
- defineCustomElementFn: undefined,
71
- inputs: ['a11yLabel', 'active', 'buttonId', 'color', 'disabled', 'ellipsed', 'icon', 'iconOnly', 'iconRight', 'loading', 'name', 'round', 'size', 'submit', 'url', 'urlTarget', 'value', 'variant'],
72
- methods: ['setFocus']
73
- })
74
- @Component({
75
- selector: 'cat-button',
76
- changeDetection: ChangeDetectionStrategy.OnPush,
77
- template: '<ng-content></ng-content>',
78
- inputs: ['a11yLabel', 'active', 'buttonId', 'color', 'disabled', 'ellipsed', 'icon', 'iconOnly', 'iconRight', 'loading', 'name', 'round', 'size', 'submit', 'url', 'urlTarget', 'value', 'variant']
79
- })
80
- export class CatButton {
81
- protected el: HTMLElement;
82
- constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
83
- c.detach();
84
- this.el = r.nativeElement;
85
- proxyOutputs(this, this.el, ['catClick', 'catFocus', 'catBlur']);
86
- }
87
- }
88
-
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
-
146
- export declare interface CatIcon extends Components.CatIcon {}
147
-
148
- @ProxyCmp({
149
- defineCustomElementFn: undefined,
150
- inputs: ['a11yLabel', 'icon', 'size']
151
- })
152
- @Component({
153
- selector: 'cat-icon',
154
- changeDetection: ChangeDetectionStrategy.OnPush,
155
- template: '<ng-content></ng-content>',
156
- inputs: ['a11yLabel', 'icon', 'size']
157
- })
158
- export class CatIcon {
159
- protected el: HTMLElement;
160
- constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
161
- c.detach();
162
- this.el = r.nativeElement;
163
- }
164
- }
165
-
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
-
204
- export declare interface CatMenu extends Components.CatMenu {
205
- /**
206
- * Emitted when the menu is opened.
207
- */
208
- catOpen: EventEmitter<CustomEvent<FocusEvent>>;
209
- /**
210
- * Emitted when the menu is closed.
211
- */
212
- catClose: EventEmitter<CustomEvent<FocusEvent>>;
213
-
214
- }
215
-
216
- @ProxyCmp({
217
- defineCustomElementFn: undefined,
218
- inputs: ['placement']
219
- })
220
- @Component({
221
- selector: 'cat-menu',
222
- changeDetection: ChangeDetectionStrategy.OnPush,
223
- template: '<ng-content></ng-content>',
224
- inputs: ['placement']
225
- })
226
- export class CatMenu {
227
- protected el: HTMLElement;
228
- constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
229
- c.detach();
230
- this.el = r.nativeElement;
231
- proxyOutputs(this, this.el, ['catOpen', 'catClose']);
232
- }
233
- }
234
-
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
-
273
- export declare interface CatScrollable extends Components.CatScrollable {
274
- /**
275
- * Emitted when the content is fully scrolled to the top.
276
- */
277
- scrolledTop: EventEmitter<CustomEvent<void>>;
278
- /**
279
- * Emitted when the content is fully scrolled to the left.
280
- */
281
- scrolledLeft: EventEmitter<CustomEvent<void>>;
282
- /**
283
- * Emitted when the content is fully scrolled to the right.
284
- */
285
- scrolledRight: EventEmitter<CustomEvent<void>>;
286
- /**
287
- * Emitted when the content is fully scrolled to the bottom.
288
- */
289
- scrolledBottom: EventEmitter<CustomEvent<void>>;
290
-
291
- }
292
-
293
- @ProxyCmp({
294
- defineCustomElementFn: undefined,
295
- inputs: ['overflowX', 'overflowY', 'overscroll', 'scrolledBuffer', 'scrolledInit', 'shadowX', 'shadowY']
296
- })
297
- @Component({
298
- selector: 'cat-scrollable',
299
- changeDetection: ChangeDetectionStrategy.OnPush,
300
- template: '<ng-content></ng-content>',
301
- inputs: ['overflowX', 'overflowY', 'overscroll', 'scrolledBuffer', 'scrolledInit', 'shadowX', 'shadowY']
302
- })
303
- export class CatScrollable {
304
- protected el: HTMLElement;
305
- constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
306
- c.detach();
307
- this.el = r.nativeElement;
308
- proxyOutputs(this, this.el, ['scrolledTop', 'scrolledLeft', 'scrolledRight', 'scrolledBottom']);
309
- }
310
- }
311
-
312
-
313
- export declare interface CatSkeleton extends Components.CatSkeleton {}
314
-
315
- @ProxyCmp({
316
- defineCustomElementFn: undefined,
317
- inputs: ['effect', 'lines', 'size', 'variant']
318
- })
319
- @Component({
320
- selector: 'cat-skeleton',
321
- changeDetection: ChangeDetectionStrategy.OnPush,
322
- template: '<ng-content></ng-content>',
323
- inputs: ['effect', 'lines', 'size', 'variant']
324
- })
325
- export class CatSkeleton {
326
- protected el: HTMLElement;
327
- constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
328
- c.detach();
329
- this.el = r.nativeElement;
330
- }
331
- }
332
-
333
-
334
- export declare interface CatSpinner extends Components.CatSpinner {}
335
-
336
- @ProxyCmp({
337
- defineCustomElementFn: undefined,
338
- inputs: ['a11yLabel', 'size']
339
- })
340
- @Component({
341
- selector: 'cat-spinner',
342
- changeDetection: ChangeDetectionStrategy.OnPush,
343
- template: '<ng-content></ng-content>',
344
- inputs: ['a11yLabel', 'size']
345
- })
346
- export class CatSpinner {
347
- protected el: HTMLElement;
348
- constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
349
- c.detach();
350
- this.el = r.nativeElement;
351
- }
352
- }
353
-
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
-
429
- export declare interface CatTooltip extends Components.CatTooltip {}
430
-
431
- @ProxyCmp({
432
- defineCustomElementFn: undefined,
433
- inputs: ['content', 'disabled', 'hideDelay', 'longTouchDuration', 'placement', 'showDelay']
434
- })
435
- @Component({
436
- selector: 'cat-tooltip',
437
- changeDetection: ChangeDetectionStrategy.OnPush,
438
- template: '<ng-content></ng-content>',
439
- inputs: ['content', 'disabled', 'hideDelay', 'longTouchDuration', 'placement', 'showDelay']
440
- })
441
- export class CatTooltip {
442
- protected el: HTMLElement;
443
- constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
444
- c.detach();
445
- this.el = r.nativeElement;
446
- }
447
- }
package/src/test.ts DELETED
@@ -1,28 +0,0 @@
1
- // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
-
3
- import 'zone.js';
4
- import 'zone.js/testing';
5
- import { getTestBed } from '@angular/core/testing';
6
- import {
7
- BrowserDynamicTestingModule,
8
- platformBrowserDynamicTesting
9
- } from '@angular/platform-browser-dynamic/testing';
10
-
11
- declare const require: {
12
- context(path: string, deep?: boolean, filter?: RegExp): {
13
- keys(): string[];
14
- <T>(id: string): T;
15
- };
16
- };
17
-
18
- // First, initialize the Angular testing environment.
19
- getTestBed().initTestEnvironment(
20
- BrowserDynamicTestingModule,
21
- platformBrowserDynamicTesting(),
22
- { teardown: { destroyAfterEach: true }},
23
- );
24
-
25
- // Then we find all the tests.
26
- const context = require.context('./', true, /\.spec\.ts$/);
27
- // And load the modules.
28
- context.keys().map(context);
package/tsconfig.lib.json DELETED
@@ -1,20 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/lib",
6
- "target": "es2015",
7
- "declaration": true,
8
- "declarationMap": true,
9
- "inlineSources": true,
10
- "types": [],
11
- "lib": [
12
- "dom",
13
- "es2018"
14
- ]
15
- },
16
- "exclude": [
17
- "src/test.ts",
18
- "**/*.spec.ts"
19
- ]
20
- }
@@ -1,10 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "./tsconfig.lib.json",
4
- "compilerOptions": {
5
- "declarationMap": false
6
- },
7
- "angularCompilerOptions": {
8
- "compilationMode": "partial"
9
- }
10
- }
@@ -1,17 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/spec",
6
- "types": [
7
- "jasmine"
8
- ]
9
- },
10
- "files": [
11
- "src/test.ts"
12
- ],
13
- "include": [
14
- "**/*.spec.ts",
15
- "**/*.d.ts"
16
- ]
17
- }