@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.
- package/esm2020/haiilo-catalyst-angular.mjs +5 -0
- package/esm2020/lib/catalyst.module.mjs +35 -0
- package/esm2020/lib/directives/angular-component-lib/utils.mjs +53 -0
- package/esm2020/lib/directives/proxies.mjs +394 -0
- package/esm2020/public-api.mjs +3 -0
- package/fesm2015/haiilo-catalyst-angular.mjs +466 -0
- package/fesm2015/haiilo-catalyst-angular.mjs.map +1 -0
- package/fesm2020/haiilo-catalyst-angular.mjs +466 -0
- package/fesm2020/haiilo-catalyst-angular.mjs.map +1 -0
- package/haiilo-catalyst-angular.d.ts +5 -0
- package/lib/catalyst.module.d.ts +9 -0
- package/lib/directives/angular-component-lib/utils.d.ts +9 -0
- package/lib/directives/proxies.d.ts +234 -0
- package/package.json +24 -7
- package/{src/public-api.ts → public-api.d.ts} +0 -0
- package/CHANGELOG.md +0 -89
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -10
- package/src/index.ts +0 -1
- package/src/lib/catalyst.module.ts +0 -29
- package/src/lib/directives/angular-component-lib/utils.ts +0 -63
- package/src/lib/directives/proxies.ts +0 -447
- package/src/test.ts +0 -28
- package/tsconfig.lib.json +0 -20
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
|
+
import { Components } from '@haiilo/catalyst';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare interface CatAlert extends Components.CatAlert {
|
|
5
|
+
}
|
|
6
|
+
export declare class CatAlert {
|
|
7
|
+
protected z: NgZone;
|
|
8
|
+
protected el: HTMLElement;
|
|
9
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatAlert, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatAlert, "cat-alert", never, { "color": "color"; }, {}, never, ["*"]>;
|
|
12
|
+
}
|
|
13
|
+
export declare interface CatBadge extends Components.CatBadge {
|
|
14
|
+
}
|
|
15
|
+
export declare class CatBadge {
|
|
16
|
+
protected z: NgZone;
|
|
17
|
+
protected el: HTMLElement;
|
|
18
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatBadge, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatBadge, "cat-badge", never, { "color": "color"; "pulse": "pulse"; "round": "round"; "size": "size"; "variant": "variant"; }, {}, never, ["*"]>;
|
|
21
|
+
}
|
|
22
|
+
export declare interface CatButton extends Components.CatButton {
|
|
23
|
+
/**
|
|
24
|
+
* Emitted when the button is clicked.
|
|
25
|
+
*/
|
|
26
|
+
catClick: EventEmitter<CustomEvent<MouseEvent>>;
|
|
27
|
+
/**
|
|
28
|
+
* Emitted when the button received focus.
|
|
29
|
+
*/
|
|
30
|
+
catFocus: EventEmitter<CustomEvent<FocusEvent>>;
|
|
31
|
+
/**
|
|
32
|
+
* Emitted when the button loses focus.
|
|
33
|
+
*/
|
|
34
|
+
catBlur: EventEmitter<CustomEvent<FocusEvent>>;
|
|
35
|
+
}
|
|
36
|
+
export declare class CatButton {
|
|
37
|
+
protected z: NgZone;
|
|
38
|
+
protected el: HTMLElement;
|
|
39
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatButton, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatButton, "cat-button", never, { "a11yLabel": "a11yLabel"; "active": "active"; "buttonId": "buttonId"; "color": "color"; "disabled": "disabled"; "ellipsed": "ellipsed"; "icon": "icon"; "iconOnly": "iconOnly"; "iconRight": "iconRight"; "loading": "loading"; "name": "name"; "round": "round"; "size": "size"; "submit": "submit"; "url": "url"; "urlTarget": "urlTarget"; "value": "value"; "variant": "variant"; }, {}, never, ["*"]>;
|
|
42
|
+
}
|
|
43
|
+
export declare interface CatCard extends Components.CatCard {
|
|
44
|
+
}
|
|
45
|
+
export declare class CatCard {
|
|
46
|
+
protected z: NgZone;
|
|
47
|
+
protected el: HTMLElement;
|
|
48
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatCard, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatCard, "cat-card", never, {}, {}, never, ["*"]>;
|
|
51
|
+
}
|
|
52
|
+
export declare interface CatCheckbox extends Components.CatCheckbox {
|
|
53
|
+
/**
|
|
54
|
+
* Emitted when the checked status of the checkbox is changed.
|
|
55
|
+
*/
|
|
56
|
+
catChange: EventEmitter<CustomEvent<any>>;
|
|
57
|
+
/**
|
|
58
|
+
* Emitted when the checkbox received focus.
|
|
59
|
+
*/
|
|
60
|
+
catFocus: EventEmitter<CustomEvent<FocusEvent>>;
|
|
61
|
+
/**
|
|
62
|
+
* Emitted when the checkbox loses focus.
|
|
63
|
+
*/
|
|
64
|
+
catBlur: EventEmitter<CustomEvent<FocusEvent>>;
|
|
65
|
+
}
|
|
66
|
+
export declare class CatCheckbox {
|
|
67
|
+
protected z: NgZone;
|
|
68
|
+
protected el: HTMLElement;
|
|
69
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatCheckbox, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatCheckbox, "cat-checkbox", never, { "checked": "checked"; "disabled": "disabled"; "indeterminate": "indeterminate"; "label": "label"; "labelHidden": "labelHidden"; "name": "name"; "required": "required"; "value": "value"; }, {}, never, ["*"]>;
|
|
72
|
+
}
|
|
73
|
+
export declare interface CatIcon extends Components.CatIcon {
|
|
74
|
+
}
|
|
75
|
+
export declare class CatIcon {
|
|
76
|
+
protected z: NgZone;
|
|
77
|
+
protected el: HTMLElement;
|
|
78
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatIcon, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatIcon, "cat-icon", never, { "a11yLabel": "a11yLabel"; "icon": "icon"; "size": "size"; }, {}, never, ["*"]>;
|
|
81
|
+
}
|
|
82
|
+
export declare interface CatInput extends Components.CatInput {
|
|
83
|
+
/**
|
|
84
|
+
* Emitted when the value is changed.
|
|
85
|
+
*/
|
|
86
|
+
catChange: EventEmitter<CustomEvent<any>>;
|
|
87
|
+
/**
|
|
88
|
+
* Emitted when the input received focus.
|
|
89
|
+
*/
|
|
90
|
+
catFocus: EventEmitter<CustomEvent<FocusEvent>>;
|
|
91
|
+
/**
|
|
92
|
+
* Emitted when the input loses focus.
|
|
93
|
+
*/
|
|
94
|
+
catBlur: EventEmitter<CustomEvent<FocusEvent>>;
|
|
95
|
+
}
|
|
96
|
+
export declare class CatInput {
|
|
97
|
+
protected z: NgZone;
|
|
98
|
+
protected el: HTMLElement;
|
|
99
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
100
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatInput, never>;
|
|
101
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatInput, "cat-input", never, { "autoComplete": "autoComplete"; "clearable": "clearable"; "disabled": "disabled"; "hint": "hint"; "icon": "icon"; "iconRight": "iconRight"; "label": "label"; "labelHidden": "labelHidden"; "max": "max"; "maxLength": "maxLength"; "min": "min"; "minLength": "minLength"; "name": "name"; "placeholder": "placeholder"; "readonly": "readonly"; "required": "required"; "round": "round"; "textPrefix": "textPrefix"; "textSuffix": "textSuffix"; "type": "type"; "value": "value"; }, {}, never, ["*"]>;
|
|
102
|
+
}
|
|
103
|
+
export declare interface CatMenu extends Components.CatMenu {
|
|
104
|
+
/**
|
|
105
|
+
* Emitted when the menu is opened.
|
|
106
|
+
*/
|
|
107
|
+
catOpen: EventEmitter<CustomEvent<FocusEvent>>;
|
|
108
|
+
/**
|
|
109
|
+
* Emitted when the menu is closed.
|
|
110
|
+
*/
|
|
111
|
+
catClose: EventEmitter<CustomEvent<FocusEvent>>;
|
|
112
|
+
}
|
|
113
|
+
export declare class CatMenu {
|
|
114
|
+
protected z: NgZone;
|
|
115
|
+
protected el: HTMLElement;
|
|
116
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatMenu, never>;
|
|
118
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatMenu, "cat-menu", never, { "placement": "placement"; }, {}, never, ["*"]>;
|
|
119
|
+
}
|
|
120
|
+
export declare interface CatRadio extends Components.CatRadio {
|
|
121
|
+
/**
|
|
122
|
+
* Emitted when the radio is changed.
|
|
123
|
+
*/
|
|
124
|
+
catChange: EventEmitter<CustomEvent<any>>;
|
|
125
|
+
/**
|
|
126
|
+
* Emitted when the radio received focus.
|
|
127
|
+
*/
|
|
128
|
+
catFocus: EventEmitter<CustomEvent<FocusEvent>>;
|
|
129
|
+
/**
|
|
130
|
+
* Emitted when the radio loses focus.
|
|
131
|
+
*/
|
|
132
|
+
catBlur: EventEmitter<CustomEvent<FocusEvent>>;
|
|
133
|
+
}
|
|
134
|
+
export declare class CatRadio {
|
|
135
|
+
protected z: NgZone;
|
|
136
|
+
protected el: HTMLElement;
|
|
137
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
138
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatRadio, never>;
|
|
139
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatRadio, "cat-radio", never, { "checked": "checked"; "disabled": "disabled"; "label": "label"; "labelHidden": "labelHidden"; "name": "name"; "required": "required"; "value": "value"; }, {}, never, ["*"]>;
|
|
140
|
+
}
|
|
141
|
+
export declare interface CatScrollable extends Components.CatScrollable {
|
|
142
|
+
/**
|
|
143
|
+
* Emitted when the content is fully scrolled to the top.
|
|
144
|
+
*/
|
|
145
|
+
scrolledTop: EventEmitter<CustomEvent<void>>;
|
|
146
|
+
/**
|
|
147
|
+
* Emitted when the content is fully scrolled to the left.
|
|
148
|
+
*/
|
|
149
|
+
scrolledLeft: EventEmitter<CustomEvent<void>>;
|
|
150
|
+
/**
|
|
151
|
+
* Emitted when the content is fully scrolled to the right.
|
|
152
|
+
*/
|
|
153
|
+
scrolledRight: EventEmitter<CustomEvent<void>>;
|
|
154
|
+
/**
|
|
155
|
+
* Emitted when the content is fully scrolled to the bottom.
|
|
156
|
+
*/
|
|
157
|
+
scrolledBottom: EventEmitter<CustomEvent<void>>;
|
|
158
|
+
}
|
|
159
|
+
export declare class CatScrollable {
|
|
160
|
+
protected z: NgZone;
|
|
161
|
+
protected el: HTMLElement;
|
|
162
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatScrollable, never>;
|
|
164
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatScrollable, "cat-scrollable", never, { "overflowX": "overflowX"; "overflowY": "overflowY"; "overscroll": "overscroll"; "scrolledBuffer": "scrolledBuffer"; "scrolledInit": "scrolledInit"; "shadowX": "shadowX"; "shadowY": "shadowY"; }, {}, never, ["*"]>;
|
|
165
|
+
}
|
|
166
|
+
export declare interface CatSkeleton extends Components.CatSkeleton {
|
|
167
|
+
}
|
|
168
|
+
export declare class CatSkeleton {
|
|
169
|
+
protected z: NgZone;
|
|
170
|
+
protected el: HTMLElement;
|
|
171
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
172
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatSkeleton, never>;
|
|
173
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatSkeleton, "cat-skeleton", never, { "effect": "effect"; "lines": "lines"; "size": "size"; "variant": "variant"; }, {}, never, ["*"]>;
|
|
174
|
+
}
|
|
175
|
+
export declare interface CatSpinner extends Components.CatSpinner {
|
|
176
|
+
}
|
|
177
|
+
export declare class CatSpinner {
|
|
178
|
+
protected z: NgZone;
|
|
179
|
+
protected el: HTMLElement;
|
|
180
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
181
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatSpinner, never>;
|
|
182
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatSpinner, "cat-spinner", never, { "a11yLabel": "a11yLabel"; "size": "size"; }, {}, never, ["*"]>;
|
|
183
|
+
}
|
|
184
|
+
export declare interface CatTextarea extends Components.CatTextarea {
|
|
185
|
+
/**
|
|
186
|
+
* Emitted when the value is changed.
|
|
187
|
+
*/
|
|
188
|
+
catChange: EventEmitter<CustomEvent<any>>;
|
|
189
|
+
/**
|
|
190
|
+
* Emitted when the textarea received focus.
|
|
191
|
+
*/
|
|
192
|
+
catFocus: EventEmitter<CustomEvent<FocusEvent>>;
|
|
193
|
+
/**
|
|
194
|
+
* Emitted when the textarea loses focus.
|
|
195
|
+
*/
|
|
196
|
+
catBlur: EventEmitter<CustomEvent<FocusEvent>>;
|
|
197
|
+
}
|
|
198
|
+
export declare class CatTextarea {
|
|
199
|
+
protected z: NgZone;
|
|
200
|
+
protected el: HTMLElement;
|
|
201
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
202
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatTextarea, never>;
|
|
203
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatTextarea, "cat-textarea", never, { "disabled": "disabled"; "hint": "hint"; "label": "label"; "labelHidden": "labelHidden"; "maxLength": "maxLength"; "minLength": "minLength"; "name": "name"; "placeholder": "placeholder"; "readonly": "readonly"; "required": "required"; "rows": "rows"; "value": "value"; }, {}, never, ["*"]>;
|
|
204
|
+
}
|
|
205
|
+
export declare interface CatToggle extends Components.CatToggle {
|
|
206
|
+
/**
|
|
207
|
+
* Emitted when the checked status of the toggle is changed.
|
|
208
|
+
*/
|
|
209
|
+
catChange: EventEmitter<CustomEvent<any>>;
|
|
210
|
+
/**
|
|
211
|
+
* Emitted when the toggle received focus.
|
|
212
|
+
*/
|
|
213
|
+
catFocus: EventEmitter<CustomEvent<FocusEvent>>;
|
|
214
|
+
/**
|
|
215
|
+
* Emitted when the toggle loses focus.
|
|
216
|
+
*/
|
|
217
|
+
catBlur: EventEmitter<CustomEvent<FocusEvent>>;
|
|
218
|
+
}
|
|
219
|
+
export declare class CatToggle {
|
|
220
|
+
protected z: NgZone;
|
|
221
|
+
protected el: HTMLElement;
|
|
222
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
223
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatToggle, never>;
|
|
224
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatToggle, "cat-toggle", never, { "checked": "checked"; "disabled": "disabled"; "label": "label"; "labelHidden": "labelHidden"; "name": "name"; "required": "required"; "value": "value"; }, {}, never, ["*"]>;
|
|
225
|
+
}
|
|
226
|
+
export declare interface CatTooltip extends Components.CatTooltip {
|
|
227
|
+
}
|
|
228
|
+
export declare class CatTooltip {
|
|
229
|
+
protected z: NgZone;
|
|
230
|
+
protected el: HTMLElement;
|
|
231
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
232
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatTooltip, never>;
|
|
233
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatTooltip, "cat-tooltip", never, { "content": "content"; "disabled": "disabled"; "hideDelay": "hideDelay"; "longTouchDuration": "longTouchDuration"; "placement": "placement"; "showDelay": "showDelay"; }, {}, never, ["*"]>;
|
|
234
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haiilo/catalyst-angular",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
4
4
|
"description": "Angular wrapper for Catalyst Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"reset": "rm -rf ./node_modules"
|
|
8
|
-
},
|
|
9
6
|
"publishConfig": {
|
|
10
7
|
"access": "public"
|
|
11
8
|
},
|
|
@@ -14,7 +11,27 @@
|
|
|
14
11
|
"rxjs": ">=6.6.0"
|
|
15
12
|
},
|
|
16
13
|
"dependencies": {
|
|
17
|
-
"@haiilo/catalyst": "^0.5.
|
|
14
|
+
"@haiilo/catalyst": "^0.5.10",
|
|
18
15
|
"tslib": "^2.3.0"
|
|
19
|
-
}
|
|
20
|
-
|
|
16
|
+
},
|
|
17
|
+
"module": "fesm2015/haiilo-catalyst-angular.mjs",
|
|
18
|
+
"es2020": "fesm2020/haiilo-catalyst-angular.mjs",
|
|
19
|
+
"esm2020": "esm2020/haiilo-catalyst-angular.mjs",
|
|
20
|
+
"fesm2020": "fesm2020/haiilo-catalyst-angular.mjs",
|
|
21
|
+
"fesm2015": "fesm2015/haiilo-catalyst-angular.mjs",
|
|
22
|
+
"typings": "haiilo-catalyst-angular.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
"./package.json": {
|
|
25
|
+
"default": "./package.json"
|
|
26
|
+
},
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./haiilo-catalyst-angular.d.ts",
|
|
29
|
+
"esm2020": "./esm2020/haiilo-catalyst-angular.mjs",
|
|
30
|
+
"es2020": "./fesm2020/haiilo-catalyst-angular.mjs",
|
|
31
|
+
"es2015": "./fesm2015/haiilo-catalyst-angular.mjs",
|
|
32
|
+
"node": "./fesm2015/haiilo-catalyst-angular.mjs",
|
|
33
|
+
"default": "./fesm2020/haiilo-catalyst-angular.mjs"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"sideEffects": false
|
|
37
|
+
}
|
|
File without changes
|
package/CHANGELOG.md
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [0.5.1](https://github.com/haiilo/catalyst/compare/v0.5.0...v0.5.1) (2022-05-02)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @haiilo/catalyst-angular
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# [0.5.0](https://github.com/haiilo/catalyst/compare/v0.4.0...v0.5.0) (2022-05-02)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### Features
|
|
18
|
-
|
|
19
|
-
* add radio button component ([642cff0](https://github.com/haiilo/catalyst/commit/642cff0d7f037202c5abf65f1bf8381970bcdd69))
|
|
20
|
-
* **core:** add card component ([3be7246](https://github.com/haiilo/catalyst/commit/3be724616b8fa924e719a73aa688aa29a9c2f891))
|
|
21
|
-
* **core:** add input component ([337649a](https://github.com/haiilo/catalyst/commit/337649a44001f908110372c3341963bbbd0167f9))
|
|
22
|
-
* **core:** add navigation styles ([6afb6e9](https://github.com/haiilo/catalyst/commit/6afb6e9017f0dafb2c0712d914f43f895b4b9124))
|
|
23
|
-
* **core:** add textarea component ([9f94637](https://github.com/haiilo/catalyst/commit/9f94637fddd03f4bf98b6d90fa93ce814341efdb))
|
|
24
|
-
* **core:** added checkbox & toggle component ([205b0d0](https://github.com/haiilo/catalyst/commit/205b0d0cc468d40fe742a22fb1608ef25525918f))
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
# [0.4.0](https://github.com/haiilo/catalyst/compare/v0.3.2...v0.4.0) (2022-04-26)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
### Features
|
|
34
|
-
|
|
35
|
-
* **core:** add tooltip component ([8134e98](https://github.com/haiilo/catalyst/commit/8134e98cde4f7b9e746c2179ffafdbfe8eff4128))
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## [0.3.2](https://github.com/haiilo/catalyst/compare/v0.3.1...v0.3.2) (2022-04-25)
|
|
42
|
-
|
|
43
|
-
**Note:** Version bump only for package @haiilo/catalyst-angular
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## 0.3.1 (2022-04-23)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### Bug Fixes
|
|
53
|
-
|
|
54
|
-
* lerna integration ([ebab9a3](https://github.com/haiilo/catalyst/commit/ebab9a37748e11a33fd552502ed95bfec949c409))
|
|
55
|
-
* umd warning ([e678c5f](https://github.com/haiilo/catalyst/commit/e678c5fa6e8d89105323de0fcb90b9cfdba6222c))
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### Features
|
|
59
|
-
|
|
60
|
-
* **core:** add alert ([8cad923](https://github.com/haiilo/catalyst/commit/8cad92339ac74b142ca6a4a0ec143982c659b970))
|
|
61
|
-
* **core:** add badge ([d250eb8](https://github.com/haiilo/catalyst/commit/d250eb808f77c34a430b5406edba7c11e12cf4bd))
|
|
62
|
-
* **core:** add skeleton component ([561f7a6](https://github.com/haiilo/catalyst/commit/561f7a627770aaef6daadca0acc5c0c858261320))
|
|
63
|
-
* **core:** added scrollable component ([347886b](https://github.com/haiilo/catalyst/commit/347886b2782801e445da7afc2f768aa531862084))
|
|
64
|
-
* **core:** changes for coyo app integration ([7304886](https://github.com/haiilo/catalyst/commit/7304886e5a2a781adcb0db2b1a63ddc58eaa6ef8))
|
|
65
|
-
* **core:** changes for coyo app integration ([2b6cc05](https://github.com/haiilo/catalyst/commit/2b6cc057bbd813f328ff36374a514bc56d6a15bd))
|
|
66
|
-
* **core:** changes for coyo app integration ([101297d](https://github.com/haiilo/catalyst/commit/101297dde26a5e8ecd007cd535667d2d3e71441a))
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
## 0.0.7 (2022-04-22)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### Bug Fixes
|
|
76
|
-
|
|
77
|
-
* lerna integration ([ebab9a3](https://github.com/haiilo/catalyst/commit/ebab9a37748e11a33fd552502ed95bfec949c409))
|
|
78
|
-
* umd warning ([e678c5f](https://github.com/haiilo/catalyst/commit/e678c5fa6e8d89105323de0fcb90b9cfdba6222c))
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### Features
|
|
82
|
-
|
|
83
|
-
* **core:** add alert ([8cad923](https://github.com/haiilo/catalyst/commit/8cad92339ac74b142ca6a4a0ec143982c659b970))
|
|
84
|
-
* **core:** add badge ([d250eb8](https://github.com/haiilo/catalyst/commit/d250eb808f77c34a430b5406edba7c11e12cf4bd))
|
|
85
|
-
* **core:** add skeleton component ([561f7a6](https://github.com/haiilo/catalyst/commit/561f7a627770aaef6daadca0acc5c0c858261320))
|
|
86
|
-
* **core:** added scrollable component ([347886b](https://github.com/haiilo/catalyst/commit/347886b2782801e445da7afc2f768aa531862084))
|
|
87
|
-
* **core:** changes for coyo app integration ([7304886](https://github.com/haiilo/catalyst/commit/7304886e5a2a781adcb0db2b1a63ddc58eaa6ef8))
|
|
88
|
-
* **core:** changes for coyo app integration ([2b6cc05](https://github.com/haiilo/catalyst/commit/2b6cc057bbd813f328ff36374a514bc56d6a15bd))
|
|
89
|
-
* **core:** changes for coyo app integration ([101297d](https://github.com/haiilo/catalyst/commit/101297dde26a5e8ecd007cd535667d2d3e71441a))
|
package/karma.conf.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Karma configuration file, see link for more information
|
|
2
|
-
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
-
|
|
4
|
-
module.exports = function (config) {
|
|
5
|
-
config.set({
|
|
6
|
-
basePath: '',
|
|
7
|
-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
-
plugins: [
|
|
9
|
-
require('karma-jasmine'),
|
|
10
|
-
require('karma-chrome-launcher'),
|
|
11
|
-
require('karma-jasmine-html-reporter'),
|
|
12
|
-
require('karma-coverage'),
|
|
13
|
-
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
-
],
|
|
15
|
-
client: {
|
|
16
|
-
jasmine: {
|
|
17
|
-
// you can add configuration options for Jasmine here
|
|
18
|
-
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
-
// for example, you can disable the random execution with `random: false`
|
|
20
|
-
// or set a specific seed with `seed: 4321`
|
|
21
|
-
},
|
|
22
|
-
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
-
},
|
|
24
|
-
jasmineHtmlReporter: {
|
|
25
|
-
suppressAll: true // removes the duplicated traces
|
|
26
|
-
},
|
|
27
|
-
coverageReporter: {
|
|
28
|
-
dir: require('path').join(__dirname, '../../coverage/catalyst'),
|
|
29
|
-
subdir: '.',
|
|
30
|
-
reporters: [
|
|
31
|
-
{ type: 'html' },
|
|
32
|
-
{ type: 'text-summary' }
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
reporters: ['progress', 'kjhtml'],
|
|
36
|
-
port: 9876,
|
|
37
|
-
colors: true,
|
|
38
|
-
logLevel: config.LOG_INFO,
|
|
39
|
-
autoWatch: true,
|
|
40
|
-
browsers: ['Chrome'],
|
|
41
|
-
singleRun: false,
|
|
42
|
-
restartOnFileChange: true
|
|
43
|
-
});
|
|
44
|
-
};
|
package/ng-package.json
DELETED
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './public-api';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
2
|
-
import { defineCustomElements } from '@haiilo/catalyst/loader';
|
|
3
|
-
import * as Components from './directives/proxies';
|
|
4
|
-
|
|
5
|
-
const CatComponents = [
|
|
6
|
-
Components.CatButton,
|
|
7
|
-
Components.CatIcon,
|
|
8
|
-
Components.CatSpinner,
|
|
9
|
-
Components.CatScrollable,
|
|
10
|
-
Components.CatAlert,
|
|
11
|
-
Components.CatBadge,
|
|
12
|
-
Components.CatSkeleton
|
|
13
|
-
];
|
|
14
|
-
|
|
15
|
-
@NgModule({
|
|
16
|
-
imports: [],
|
|
17
|
-
declarations: [...CatComponents],
|
|
18
|
-
exports: [...CatComponents],
|
|
19
|
-
providers: []
|
|
20
|
-
})
|
|
21
|
-
export class CatalystModule {
|
|
22
|
-
|
|
23
|
-
static forRoot(): ModuleWithProviders<CatalystModule> {
|
|
24
|
-
defineCustomElements();
|
|
25
|
-
return {
|
|
26
|
-
ngModule: CatalystModule
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
import { fromEvent } from 'rxjs';
|
|
4
|
-
|
|
5
|
-
export const proxyInputs = (Cmp: any, inputs: string[]) => {
|
|
6
|
-
const Prototype = Cmp.prototype;
|
|
7
|
-
inputs.forEach(item => {
|
|
8
|
-
Object.defineProperty(Prototype, item, {
|
|
9
|
-
get() {
|
|
10
|
-
return this.el[item];
|
|
11
|
-
},
|
|
12
|
-
set(val: any) {
|
|
13
|
-
this.z.runOutsideAngular(() => (this.el[item] = val));
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const proxyMethods = (Cmp: any, methods: string[]) => {
|
|
20
|
-
const Prototype = Cmp.prototype;
|
|
21
|
-
methods.forEach(methodName => {
|
|
22
|
-
Prototype[methodName] = function () {
|
|
23
|
-
const args = arguments;
|
|
24
|
-
return this.z.runOutsideAngular(() =>
|
|
25
|
-
this.el[methodName].apply(this.el, args)
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export const proxyOutputs = (instance: any, el: any, events: string[]) => {
|
|
32
|
-
events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export const defineCustomElement = (tagName: string, customElement: any) => {
|
|
36
|
-
if (
|
|
37
|
-
customElement !== undefined &&
|
|
38
|
-
typeof customElements !== 'undefined' &&
|
|
39
|
-
!customElements.get(tagName)
|
|
40
|
-
) {
|
|
41
|
-
customElements.define(tagName, customElement);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// tslint:disable-next-line: only-arrow-functions
|
|
46
|
-
export function ProxyCmp(opts: { defineCustomElementFn?: () => void, inputs?: any; methods?: any }) {
|
|
47
|
-
const decorator = function (cls: any) {
|
|
48
|
-
const { defineCustomElementFn, inputs, methods } = opts;
|
|
49
|
-
|
|
50
|
-
if (defineCustomElementFn !== undefined) {
|
|
51
|
-
defineCustomElementFn();
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (inputs) {
|
|
55
|
-
proxyInputs(cls, inputs);
|
|
56
|
-
}
|
|
57
|
-
if (methods) {
|
|
58
|
-
proxyMethods(cls, methods);
|
|
59
|
-
}
|
|
60
|
-
return cls;
|
|
61
|
-
};
|
|
62
|
-
return decorator;
|
|
63
|
-
}
|