@haiilo/catalyst-angular 1.0.0 → 1.0.2

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 (41) hide show
  1. package/esm2020/haiilo-catalyst-angular.mjs +5 -0
  2. package/esm2020/lib/catalyst.module.mjs +74 -0
  3. package/esm2020/lib/directives/angular-component-lib/utils.mjs +53 -0
  4. package/esm2020/lib/directives/boolean-value-accessor.mjs +38 -0
  5. package/esm2020/lib/directives/proxies.mjs +595 -0
  6. package/esm2020/lib/directives/radio-value-accessor.mjs +35 -0
  7. package/esm2020/lib/directives/select-value-accessor.mjs +35 -0
  8. package/esm2020/lib/directives/text-value-accessor.mjs +35 -0
  9. package/esm2020/lib/directives/value-accessor.mjs +40 -0
  10. package/esm2020/public-api.mjs +8 -0
  11. package/fesm2015/haiilo-catalyst-angular.mjs +860 -0
  12. package/fesm2015/haiilo-catalyst-angular.mjs.map +1 -0
  13. package/fesm2020/haiilo-catalyst-angular.mjs +860 -0
  14. package/fesm2020/haiilo-catalyst-angular.mjs.map +1 -0
  15. package/haiilo-catalyst-angular.d.ts +5 -0
  16. package/lib/catalyst.module.d.ts +16 -0
  17. package/lib/directives/angular-component-lib/utils.d.ts +9 -0
  18. package/lib/directives/boolean-value-accessor.d.ts +9 -0
  19. package/lib/directives/proxies.d.ts +334 -0
  20. package/lib/directives/radio-value-accessor.d.ts +8 -0
  21. package/lib/directives/select-value-accessor.d.ts +8 -0
  22. package/lib/directives/text-value-accessor.d.ts +8 -0
  23. package/lib/directives/value-accessor.d.ts +18 -0
  24. package/package.json +24 -7
  25. package/{src/public-api.ts → public-api.d.ts} +0 -0
  26. package/CHANGELOG.md +0 -89
  27. package/karma.conf.js +0 -44
  28. package/ng-package.json +0 -10
  29. package/src/index.ts +0 -1
  30. package/src/lib/catalyst.module.ts +0 -65
  31. package/src/lib/directives/angular-component-lib/utils.ts +0 -63
  32. package/src/lib/directives/boolean-value-accessor.ts +0 -27
  33. package/src/lib/directives/proxies.ts +0 -650
  34. package/src/lib/directives/radio-value-accessor.ts +0 -24
  35. package/src/lib/directives/select-value-accessor.ts +0 -24
  36. package/src/lib/directives/text-value-accessor.ts +0 -24
  37. package/src/lib/directives/value-accessor.ts +0 -39
  38. package/src/test.ts +0 -28
  39. package/tsconfig.lib.json +0 -20
  40. package/tsconfig.lib.prod.json +0 -10
  41. package/tsconfig.spec.json +0 -17
@@ -0,0 +1,860 @@
1
+ import { __decorate } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { Component, ChangeDetectionStrategy, Directive, HostListener, InjectionToken, NgModule } from '@angular/core';
4
+ import { fromEvent } from 'rxjs';
5
+ import { CatI18nRegistry, CatIconRegistry } from '@haiilo/catalyst';
6
+ import { defineCustomElements } from '@haiilo/catalyst/loader';
7
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
8
+
9
+ /* eslint-disable */
10
+ const proxyInputs = (Cmp, inputs) => {
11
+ const Prototype = Cmp.prototype;
12
+ inputs.forEach(item => {
13
+ Object.defineProperty(Prototype, item, {
14
+ get() {
15
+ return this.el[item];
16
+ },
17
+ set(val) {
18
+ this.z.runOutsideAngular(() => (this.el[item] = val));
19
+ }
20
+ });
21
+ });
22
+ };
23
+ const proxyMethods = (Cmp, methods) => {
24
+ const Prototype = Cmp.prototype;
25
+ methods.forEach(methodName => {
26
+ Prototype[methodName] = function () {
27
+ const args = arguments;
28
+ return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
29
+ };
30
+ });
31
+ };
32
+ const proxyOutputs = (instance, el, events) => {
33
+ events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));
34
+ };
35
+ const defineCustomElement = (tagName, customElement) => {
36
+ if (customElement !== undefined &&
37
+ typeof customElements !== 'undefined' &&
38
+ !customElements.get(tagName)) {
39
+ customElements.define(tagName, customElement);
40
+ }
41
+ };
42
+ // tslint:disable-next-line: only-arrow-functions
43
+ function ProxyCmp(opts) {
44
+ const decorator = function (cls) {
45
+ const { defineCustomElementFn, inputs, methods } = opts;
46
+ if (defineCustomElementFn !== undefined) {
47
+ defineCustomElementFn();
48
+ }
49
+ if (inputs) {
50
+ proxyInputs(cls, inputs);
51
+ }
52
+ if (methods) {
53
+ proxyMethods(cls, methods);
54
+ }
55
+ return cls;
56
+ };
57
+ return decorator;
58
+ }
59
+
60
+ let CatAlert = class CatAlert {
61
+ constructor(c, r, z) {
62
+ this.z = z;
63
+ c.detach();
64
+ this.el = r.nativeElement;
65
+ }
66
+ };
67
+ CatAlert.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatAlert, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
68
+ CatAlert.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatAlert, selector: "cat-alert", inputs: { color: "color", icon: "icon", noIcon: "noIcon" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
69
+ CatAlert = __decorate([
70
+ ProxyCmp({
71
+ defineCustomElementFn: undefined,
72
+ inputs: ['color', 'icon', 'noIcon']
73
+ })
74
+ ], CatAlert);
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatAlert, decorators: [{
76
+ type: Component,
77
+ args: [{
78
+ selector: 'cat-alert',
79
+ changeDetection: ChangeDetectionStrategy.OnPush,
80
+ template: '<ng-content></ng-content>',
81
+ inputs: ['color', 'icon', 'noIcon']
82
+ }]
83
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
84
+ let CatAvatar = class CatAvatar {
85
+ constructor(c, r, z) {
86
+ this.z = z;
87
+ c.detach();
88
+ this.el = r.nativeElement;
89
+ }
90
+ };
91
+ CatAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatAvatar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
92
+ CatAvatar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatAvatar, selector: "cat-avatar", inputs: { icon: "icon", initials: "initials", label: "label", round: "round", size: "size", src: "src", url: "url", urlTarget: "urlTarget" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
93
+ CatAvatar = __decorate([
94
+ ProxyCmp({
95
+ defineCustomElementFn: undefined,
96
+ inputs: ['icon', 'initials', 'label', 'round', 'size', 'src', 'url', 'urlTarget']
97
+ })
98
+ ], CatAvatar);
99
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatAvatar, decorators: [{
100
+ type: Component,
101
+ args: [{
102
+ selector: 'cat-avatar',
103
+ changeDetection: ChangeDetectionStrategy.OnPush,
104
+ template: '<ng-content></ng-content>',
105
+ inputs: ['icon', 'initials', 'label', 'round', 'size', 'src', 'url', 'urlTarget']
106
+ }]
107
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
108
+ let CatBadge = class CatBadge {
109
+ constructor(c, r, z) {
110
+ this.z = z;
111
+ c.detach();
112
+ this.el = r.nativeElement;
113
+ }
114
+ };
115
+ CatBadge.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatBadge, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
116
+ CatBadge.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatBadge, selector: "cat-badge", inputs: { color: "color", pulse: "pulse", round: "round", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
117
+ CatBadge = __decorate([
118
+ ProxyCmp({
119
+ defineCustomElementFn: undefined,
120
+ inputs: ['color', 'pulse', 'round', 'size', 'variant']
121
+ })
122
+ ], CatBadge);
123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatBadge, decorators: [{
124
+ type: Component,
125
+ args: [{
126
+ selector: 'cat-badge',
127
+ changeDetection: ChangeDetectionStrategy.OnPush,
128
+ template: '<ng-content></ng-content>',
129
+ inputs: ['color', 'pulse', 'round', 'size', 'variant']
130
+ }]
131
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
132
+ let CatButton = class CatButton {
133
+ constructor(c, r, z) {
134
+ this.z = z;
135
+ c.detach();
136
+ this.el = r.nativeElement;
137
+ proxyOutputs(this, this.el, ['catClick', 'catFocus', 'catBlur']);
138
+ }
139
+ };
140
+ CatButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
141
+ CatButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatButton, selector: "cat-button", inputs: { a11yLabel: "a11yLabel", active: "active", buttonId: "buttonId", color: "color", disabled: "disabled", icon: "icon", iconOnly: "iconOnly", iconRight: "iconRight", loading: "loading", name: "name", noEllipsis: "noEllipsis", round: "round", size: "size", submit: "submit", url: "url", urlTarget: "urlTarget", value: "value", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
142
+ CatButton = __decorate([
143
+ ProxyCmp({
144
+ defineCustomElementFn: undefined,
145
+ inputs: ['a11yLabel', 'active', 'buttonId', 'color', 'disabled', 'icon', 'iconOnly', 'iconRight', 'loading', 'name', 'noEllipsis', 'round', 'size', 'submit', 'url', 'urlTarget', 'value', 'variant'],
146
+ methods: ['setFocus']
147
+ })
148
+ ], CatButton);
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatButton, decorators: [{
150
+ type: Component,
151
+ args: [{
152
+ selector: 'cat-button',
153
+ changeDetection: ChangeDetectionStrategy.OnPush,
154
+ template: '<ng-content></ng-content>',
155
+ inputs: ['a11yLabel', 'active', 'buttonId', 'color', 'disabled', 'icon', 'iconOnly', 'iconRight', 'loading', 'name', 'noEllipsis', 'round', 'size', 'submit', 'url', 'urlTarget', 'value', 'variant']
156
+ }]
157
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
158
+ let CatCard = class CatCard {
159
+ constructor(c, r, z) {
160
+ this.z = z;
161
+ c.detach();
162
+ this.el = r.nativeElement;
163
+ }
164
+ };
165
+ CatCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatCard, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
166
+ CatCard.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatCard, selector: "cat-card", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
167
+ CatCard = __decorate([
168
+ ProxyCmp({
169
+ defineCustomElementFn: undefined
170
+ })
171
+ ], CatCard);
172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatCard, decorators: [{
173
+ type: Component,
174
+ args: [{
175
+ selector: 'cat-card',
176
+ changeDetection: ChangeDetectionStrategy.OnPush,
177
+ template: '<ng-content></ng-content>'
178
+ }]
179
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
180
+ let CatCheckbox = class CatCheckbox {
181
+ constructor(c, r, z) {
182
+ this.z = z;
183
+ c.detach();
184
+ this.el = r.nativeElement;
185
+ proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
186
+ }
187
+ };
188
+ CatCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatCheckbox, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
189
+ CatCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatCheckbox, selector: "cat-checkbox", inputs: { checked: "checked", disabled: "disabled", hint: "hint", indeterminate: "indeterminate", label: "label", labelHidden: "labelHidden", labelLeft: "labelLeft", name: "name", required: "required", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
190
+ CatCheckbox = __decorate([
191
+ ProxyCmp({
192
+ defineCustomElementFn: undefined,
193
+ inputs: ['checked', 'disabled', 'hint', 'indeterminate', 'label', 'labelHidden', 'labelLeft', 'name', 'required', 'value'],
194
+ methods: ['setFocus']
195
+ })
196
+ ], CatCheckbox);
197
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatCheckbox, decorators: [{
198
+ type: Component,
199
+ args: [{
200
+ selector: 'cat-checkbox',
201
+ changeDetection: ChangeDetectionStrategy.OnPush,
202
+ template: '<ng-content></ng-content>',
203
+ inputs: ['checked', 'disabled', 'hint', 'indeterminate', 'label', 'labelHidden', 'labelLeft', 'name', 'required', 'value']
204
+ }]
205
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
206
+ let CatIcon = class CatIcon {
207
+ constructor(c, r, z) {
208
+ this.z = z;
209
+ c.detach();
210
+ this.el = r.nativeElement;
211
+ }
212
+ };
213
+ CatIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
214
+ CatIcon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatIcon, selector: "cat-icon", inputs: { a11yLabel: "a11yLabel", icon: "icon", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
215
+ CatIcon = __decorate([
216
+ ProxyCmp({
217
+ defineCustomElementFn: undefined,
218
+ inputs: ['a11yLabel', 'icon', 'size']
219
+ })
220
+ ], CatIcon);
221
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatIcon, decorators: [{
222
+ type: Component,
223
+ args: [{
224
+ selector: 'cat-icon',
225
+ changeDetection: ChangeDetectionStrategy.OnPush,
226
+ template: '<ng-content></ng-content>',
227
+ inputs: ['a11yLabel', 'icon', 'size']
228
+ }]
229
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
230
+ let CatInput = class CatInput {
231
+ constructor(c, r, z) {
232
+ this.z = z;
233
+ c.detach();
234
+ this.el = r.nativeElement;
235
+ proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
236
+ }
237
+ };
238
+ CatInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
239
+ CatInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatInput, selector: "cat-input", inputs: { 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" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
240
+ CatInput = __decorate([
241
+ ProxyCmp({
242
+ defineCustomElementFn: undefined,
243
+ inputs: ['autoComplete', 'clearable', 'disabled', 'hint', 'icon', 'iconRight', 'label', 'labelHidden', 'max', 'maxLength', 'min', 'minLength', 'name', 'placeholder', 'readonly', 'required', 'round', 'textPrefix', 'textSuffix', 'type', 'value'],
244
+ methods: ['setFocus', 'clear']
245
+ })
246
+ ], CatInput);
247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatInput, decorators: [{
248
+ type: Component,
249
+ args: [{
250
+ selector: 'cat-input',
251
+ changeDetection: ChangeDetectionStrategy.OnPush,
252
+ template: '<ng-content></ng-content>',
253
+ inputs: ['autoComplete', 'clearable', 'disabled', 'hint', 'icon', 'iconRight', 'label', 'labelHidden', 'max', 'maxLength', 'min', 'minLength', 'name', 'placeholder', 'readonly', 'required', 'round', 'textPrefix', 'textSuffix', 'type', 'value']
254
+ }]
255
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
256
+ let CatMenu = class CatMenu {
257
+ constructor(c, r, z) {
258
+ this.z = z;
259
+ c.detach();
260
+ this.el = r.nativeElement;
261
+ proxyOutputs(this, this.el, ['catOpen', 'catClose']);
262
+ }
263
+ };
264
+ CatMenu.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatMenu, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
265
+ CatMenu.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatMenu, selector: "cat-menu", inputs: { placement: "placement" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
266
+ CatMenu = __decorate([
267
+ ProxyCmp({
268
+ defineCustomElementFn: undefined,
269
+ inputs: ['placement']
270
+ })
271
+ ], CatMenu);
272
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatMenu, decorators: [{
273
+ type: Component,
274
+ args: [{
275
+ selector: 'cat-menu',
276
+ changeDetection: ChangeDetectionStrategy.OnPush,
277
+ template: '<ng-content></ng-content>',
278
+ inputs: ['placement']
279
+ }]
280
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
281
+ let CatModal = class CatModal {
282
+ constructor(c, r, z) {
283
+ this.z = z;
284
+ c.detach();
285
+ this.el = r.nativeElement;
286
+ }
287
+ };
288
+ CatModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatModal, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
289
+ CatModal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatModal, selector: "cat-modal", inputs: { size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
290
+ CatModal = __decorate([
291
+ ProxyCmp({
292
+ defineCustomElementFn: undefined,
293
+ inputs: ['size'],
294
+ methods: ['show']
295
+ })
296
+ ], CatModal);
297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatModal, decorators: [{
298
+ type: Component,
299
+ args: [{
300
+ selector: 'cat-modal',
301
+ changeDetection: ChangeDetectionStrategy.OnPush,
302
+ template: '<ng-content></ng-content>',
303
+ inputs: ['size']
304
+ }]
305
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
306
+ let CatRadio = class CatRadio {
307
+ constructor(c, r, z) {
308
+ this.z = z;
309
+ c.detach();
310
+ this.el = r.nativeElement;
311
+ proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
312
+ }
313
+ };
314
+ CatRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatRadio, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
315
+ CatRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatRadio, selector: "cat-radio", inputs: { checked: "checked", disabled: "disabled", hint: "hint", label: "label", labelHidden: "labelHidden", labelLeft: "labelLeft", name: "name", required: "required", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
316
+ CatRadio = __decorate([
317
+ ProxyCmp({
318
+ defineCustomElementFn: undefined,
319
+ inputs: ['checked', 'disabled', 'hint', 'label', 'labelHidden', 'labelLeft', 'name', 'required', 'value'],
320
+ methods: ['setFocus']
321
+ })
322
+ ], CatRadio);
323
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatRadio, decorators: [{
324
+ type: Component,
325
+ args: [{
326
+ selector: 'cat-radio',
327
+ changeDetection: ChangeDetectionStrategy.OnPush,
328
+ template: '<ng-content></ng-content>',
329
+ inputs: ['checked', 'disabled', 'hint', 'label', 'labelHidden', 'labelLeft', 'name', 'required', 'value']
330
+ }]
331
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
332
+ let CatRadioGroup = class CatRadioGroup {
333
+ constructor(c, r, z) {
334
+ this.z = z;
335
+ c.detach();
336
+ this.el = r.nativeElement;
337
+ proxyOutputs(this, this.el, ['catChange', 'catBlur']);
338
+ }
339
+ };
340
+ CatRadioGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatRadioGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
341
+ CatRadioGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatRadioGroup, selector: "cat-radio-group", inputs: { a11yLabel: "a11yLabel", disabled: "disabled", labelLeft: "labelLeft", name: "name", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
342
+ CatRadioGroup = __decorate([
343
+ ProxyCmp({
344
+ defineCustomElementFn: undefined,
345
+ inputs: ['a11yLabel', 'disabled', 'labelLeft', 'name', 'value']
346
+ })
347
+ ], CatRadioGroup);
348
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatRadioGroup, decorators: [{
349
+ type: Component,
350
+ args: [{
351
+ selector: 'cat-radio-group',
352
+ changeDetection: ChangeDetectionStrategy.OnPush,
353
+ template: '<ng-content></ng-content>',
354
+ inputs: ['a11yLabel', 'disabled', 'labelLeft', 'name', 'value']
355
+ }]
356
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
357
+ let CatScrollable = class CatScrollable {
358
+ constructor(c, r, z) {
359
+ this.z = z;
360
+ c.detach();
361
+ this.el = r.nativeElement;
362
+ proxyOutputs(this, this.el, ['scrolledTop', 'scrolledLeft', 'scrolledRight', 'scrolledBottom']);
363
+ }
364
+ };
365
+ CatScrollable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatScrollable, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
366
+ CatScrollable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatScrollable, selector: "cat-scrollable", inputs: { noOverflowX: "noOverflowX", noOverflowY: "noOverflowY", noOverscroll: "noOverscroll", noScrolledInit: "noScrolledInit", noShadowX: "noShadowX", noShadowY: "noShadowY", scrolledBuffer: "scrolledBuffer" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
367
+ CatScrollable = __decorate([
368
+ ProxyCmp({
369
+ defineCustomElementFn: undefined,
370
+ inputs: ['noOverflowX', 'noOverflowY', 'noOverscroll', 'noScrolledInit', 'noShadowX', 'noShadowY', 'scrolledBuffer']
371
+ })
372
+ ], CatScrollable);
373
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatScrollable, decorators: [{
374
+ type: Component,
375
+ args: [{
376
+ selector: 'cat-scrollable',
377
+ changeDetection: ChangeDetectionStrategy.OnPush,
378
+ template: '<ng-content></ng-content>',
379
+ inputs: ['noOverflowX', 'noOverflowY', 'noOverscroll', 'noScrolledInit', 'noShadowX', 'noShadowY', 'scrolledBuffer']
380
+ }]
381
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
382
+ let CatSelect = class CatSelect {
383
+ constructor(c, r, z) {
384
+ this.z = z;
385
+ c.detach();
386
+ this.el = r.nativeElement;
387
+ proxyOutputs(this, this.el, ['catOpen', 'catClose', 'catChange', 'catBlur']);
388
+ }
389
+ };
390
+ CatSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
391
+ CatSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatSelect, selector: "cat-select", inputs: { clearable: "clearable", debounce: "debounce", disabled: "disabled", hint: "hint", label: "label", labelHidden: "labelHidden", multiple: "multiple", name: "name", placeholder: "placeholder", placement: "placement", required: "required", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
392
+ CatSelect = __decorate([
393
+ ProxyCmp({
394
+ defineCustomElementFn: undefined,
395
+ inputs: ['clearable', 'debounce', 'disabled', 'hint', 'label', 'labelHidden', 'multiple', 'name', 'placeholder', 'placement', 'required', 'value'],
396
+ methods: ['connect']
397
+ })
398
+ ], CatSelect);
399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSelect, decorators: [{
400
+ type: Component,
401
+ args: [{
402
+ selector: 'cat-select',
403
+ changeDetection: ChangeDetectionStrategy.OnPush,
404
+ template: '<ng-content></ng-content>',
405
+ inputs: ['clearable', 'debounce', 'disabled', 'hint', 'label', 'labelHidden', 'multiple', 'name', 'placeholder', 'placement', 'required', 'value']
406
+ }]
407
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
408
+ let CatSelectDemo = class CatSelectDemo {
409
+ constructor(c, r, z) {
410
+ this.z = z;
411
+ c.detach();
412
+ this.el = r.nativeElement;
413
+ }
414
+ };
415
+ CatSelectDemo.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSelectDemo, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
416
+ CatSelectDemo.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatSelectDemo, selector: "cat-select-demo", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
417
+ CatSelectDemo = __decorate([
418
+ ProxyCmp({
419
+ defineCustomElementFn: undefined
420
+ })
421
+ ], CatSelectDemo);
422
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSelectDemo, decorators: [{
423
+ type: Component,
424
+ args: [{
425
+ selector: 'cat-select-demo',
426
+ changeDetection: ChangeDetectionStrategy.OnPush,
427
+ template: '<ng-content></ng-content>'
428
+ }]
429
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
430
+ let CatSkeleton = class CatSkeleton {
431
+ constructor(c, r, z) {
432
+ this.z = z;
433
+ c.detach();
434
+ this.el = r.nativeElement;
435
+ }
436
+ };
437
+ CatSkeleton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSkeleton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
438
+ CatSkeleton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatSkeleton, selector: "cat-skeleton", inputs: { effect: "effect", lines: "lines", size: "size", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
439
+ CatSkeleton = __decorate([
440
+ ProxyCmp({
441
+ defineCustomElementFn: undefined,
442
+ inputs: ['effect', 'lines', 'size', 'variant']
443
+ })
444
+ ], CatSkeleton);
445
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSkeleton, decorators: [{
446
+ type: Component,
447
+ args: [{
448
+ selector: 'cat-skeleton',
449
+ changeDetection: ChangeDetectionStrategy.OnPush,
450
+ template: '<ng-content></ng-content>',
451
+ inputs: ['effect', 'lines', 'size', 'variant']
452
+ }]
453
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
454
+ let CatSpinner = class CatSpinner {
455
+ constructor(c, r, z) {
456
+ this.z = z;
457
+ c.detach();
458
+ this.el = r.nativeElement;
459
+ }
460
+ };
461
+ CatSpinner.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSpinner, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
462
+ CatSpinner.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatSpinner, selector: "cat-spinner", inputs: { a11yLabel: "a11yLabel", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
463
+ CatSpinner = __decorate([
464
+ ProxyCmp({
465
+ defineCustomElementFn: undefined,
466
+ inputs: ['a11yLabel', 'size']
467
+ })
468
+ ], CatSpinner);
469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSpinner, decorators: [{
470
+ type: Component,
471
+ args: [{
472
+ selector: 'cat-spinner',
473
+ changeDetection: ChangeDetectionStrategy.OnPush,
474
+ template: '<ng-content></ng-content>',
475
+ inputs: ['a11yLabel', 'size']
476
+ }]
477
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
478
+ let CatTab = class CatTab {
479
+ constructor(c, r, z) {
480
+ this.z = z;
481
+ c.detach();
482
+ this.el = r.nativeElement;
483
+ proxyOutputs(this, this.el, ['tabClick']);
484
+ }
485
+ };
486
+ CatTab.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTab, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
487
+ CatTab.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatTab, selector: "cat-tab", inputs: { deactivated: "deactivated", icon: "icon", iconOnly: "iconOnly", iconRight: "iconRight", label: "label", url: "url", urlTarget: "urlTarget" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
488
+ CatTab = __decorate([
489
+ ProxyCmp({
490
+ defineCustomElementFn: undefined,
491
+ inputs: ['deactivated', 'icon', 'iconOnly', 'iconRight', 'label', 'url', 'urlTarget']
492
+ })
493
+ ], CatTab);
494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTab, decorators: [{
495
+ type: Component,
496
+ args: [{
497
+ selector: 'cat-tab',
498
+ changeDetection: ChangeDetectionStrategy.OnPush,
499
+ template: '<ng-content></ng-content>',
500
+ inputs: ['deactivated', 'icon', 'iconOnly', 'iconRight', 'label', 'url', 'urlTarget']
501
+ }]
502
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
503
+ let CatTabs = class CatTabs {
504
+ constructor(c, r, z) {
505
+ this.z = z;
506
+ c.detach();
507
+ this.el = r.nativeElement;
508
+ }
509
+ };
510
+ CatTabs.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTabs, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
511
+ CatTabs.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatTabs, selector: "cat-tabs", inputs: { activeTab: "activeTab", tabsAlign: "tabsAlign" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
512
+ CatTabs = __decorate([
513
+ ProxyCmp({
514
+ defineCustomElementFn: undefined,
515
+ inputs: ['activeTab', 'tabsAlign']
516
+ })
517
+ ], CatTabs);
518
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTabs, decorators: [{
519
+ type: Component,
520
+ args: [{
521
+ selector: 'cat-tabs',
522
+ changeDetection: ChangeDetectionStrategy.OnPush,
523
+ template: '<ng-content></ng-content>',
524
+ inputs: ['activeTab', 'tabsAlign']
525
+ }]
526
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
527
+ let CatTextarea = class CatTextarea {
528
+ constructor(c, r, z) {
529
+ this.z = z;
530
+ c.detach();
531
+ this.el = r.nativeElement;
532
+ proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
533
+ }
534
+ };
535
+ CatTextarea.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTextarea, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
536
+ CatTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatTextarea, selector: "cat-textarea", inputs: { disabled: "disabled", hint: "hint", label: "label", labelHidden: "labelHidden", maxLength: "maxLength", minLength: "minLength", name: "name", placeholder: "placeholder", readonly: "readonly", required: "required", rows: "rows", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
537
+ CatTextarea = __decorate([
538
+ ProxyCmp({
539
+ defineCustomElementFn: undefined,
540
+ inputs: ['disabled', 'hint', 'label', 'labelHidden', 'maxLength', 'minLength', 'name', 'placeholder', 'readonly', 'required', 'rows', 'value'],
541
+ methods: ['setFocus']
542
+ })
543
+ ], CatTextarea);
544
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTextarea, decorators: [{
545
+ type: Component,
546
+ args: [{
547
+ selector: 'cat-textarea',
548
+ changeDetection: ChangeDetectionStrategy.OnPush,
549
+ template: '<ng-content></ng-content>',
550
+ inputs: ['disabled', 'hint', 'label', 'labelHidden', 'maxLength', 'minLength', 'name', 'placeholder', 'readonly', 'required', 'rows', 'value']
551
+ }]
552
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
553
+ let CatToastDemo = class CatToastDemo {
554
+ constructor(c, r, z) {
555
+ this.z = z;
556
+ c.detach();
557
+ this.el = r.nativeElement;
558
+ }
559
+ };
560
+ CatToastDemo.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatToastDemo, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
561
+ CatToastDemo.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatToastDemo, selector: "cat-toast-demo", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
562
+ CatToastDemo = __decorate([
563
+ ProxyCmp({
564
+ defineCustomElementFn: undefined
565
+ })
566
+ ], CatToastDemo);
567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatToastDemo, decorators: [{
568
+ type: Component,
569
+ args: [{
570
+ selector: 'cat-toast-demo',
571
+ changeDetection: ChangeDetectionStrategy.OnPush,
572
+ template: '<ng-content></ng-content>'
573
+ }]
574
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
575
+ let CatToggle = class CatToggle {
576
+ constructor(c, r, z) {
577
+ this.z = z;
578
+ c.detach();
579
+ this.el = r.nativeElement;
580
+ proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
581
+ }
582
+ };
583
+ CatToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatToggle, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
584
+ CatToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatToggle, selector: "cat-toggle", inputs: { checked: "checked", disabled: "disabled", hint: "hint", label: "label", labelHidden: "labelHidden", labelLeft: "labelLeft", name: "name", required: "required", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
585
+ CatToggle = __decorate([
586
+ ProxyCmp({
587
+ defineCustomElementFn: undefined,
588
+ inputs: ['checked', 'disabled', 'hint', 'label', 'labelHidden', 'labelLeft', 'name', 'required', 'value'],
589
+ methods: ['setFocus']
590
+ })
591
+ ], CatToggle);
592
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatToggle, decorators: [{
593
+ type: Component,
594
+ args: [{
595
+ selector: 'cat-toggle',
596
+ changeDetection: ChangeDetectionStrategy.OnPush,
597
+ template: '<ng-content></ng-content>',
598
+ inputs: ['checked', 'disabled', 'hint', 'label', 'labelHidden', 'labelLeft', 'name', 'required', 'value']
599
+ }]
600
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
601
+ let CatTooltip = class CatTooltip {
602
+ constructor(c, r, z) {
603
+ this.z = z;
604
+ c.detach();
605
+ this.el = r.nativeElement;
606
+ }
607
+ };
608
+ CatTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTooltip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
609
+ CatTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatTooltip, selector: "cat-tooltip", inputs: { content: "content", disabled: "disabled", hideDelay: "hideDelay", longTouchDuration: "longTouchDuration", placement: "placement", showDelay: "showDelay" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
610
+ CatTooltip = __decorate([
611
+ ProxyCmp({
612
+ defineCustomElementFn: undefined,
613
+ inputs: ['content', 'disabled', 'hideDelay', 'longTouchDuration', 'placement', 'showDelay']
614
+ })
615
+ ], CatTooltip);
616
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTooltip, decorators: [{
617
+ type: Component,
618
+ args: [{
619
+ selector: 'cat-tooltip',
620
+ changeDetection: ChangeDetectionStrategy.OnPush,
621
+ template: '<ng-content></ng-content>',
622
+ inputs: ['content', 'disabled', 'hideDelay', 'longTouchDuration', 'placement', 'showDelay']
623
+ }]
624
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
625
+
626
+ class ValueAccessor {
627
+ constructor(el) {
628
+ this.el = el;
629
+ this.onChange = () => { };
630
+ this.onTouched = () => { };
631
+ }
632
+ writeValue(value) {
633
+ this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
634
+ }
635
+ handleChangeEvent(value) {
636
+ if (value !== this.lastValue) {
637
+ this.lastValue = value;
638
+ this.onChange(value);
639
+ }
640
+ }
641
+ _handleBlurEvent() {
642
+ this.onTouched();
643
+ }
644
+ registerOnChange(fn) {
645
+ this.onChange = fn;
646
+ }
647
+ registerOnTouched(fn) {
648
+ this.onTouched = fn;
649
+ }
650
+ setDisabledState(isDisabled) {
651
+ this.el.nativeElement.disabled = isDisabled;
652
+ }
653
+ }
654
+ ValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
655
+ ValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
656
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ValueAccessor, decorators: [{
657
+ type: Directive,
658
+ args: [{}]
659
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
660
+ type: HostListener,
661
+ args: ['focusout']
662
+ }] } });
663
+
664
+ class TextValueAccessor extends ValueAccessor {
665
+ constructor(el) {
666
+ super(el);
667
+ }
668
+ }
669
+ TextValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
670
+ TextValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TextValueAccessor, selector: "cat-input, cat-textarea", host: { listeners: { "catChange": "handleChangeEvent($event.target.value)" } }, providers: [
671
+ {
672
+ provide: NG_VALUE_ACCESSOR,
673
+ useExisting: TextValueAccessor,
674
+ multi: true
675
+ }
676
+ ], usesInheritance: true, ngImport: i0 });
677
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextValueAccessor, decorators: [{
678
+ type: Directive,
679
+ args: [{
680
+ /* tslint:disable-next-line:directive-selector */
681
+ selector: 'cat-input, cat-textarea',
682
+ host: {
683
+ '(catChange)': 'handleChangeEvent($event.target.value)'
684
+ },
685
+ providers: [
686
+ {
687
+ provide: NG_VALUE_ACCESSOR,
688
+ useExisting: TextValueAccessor,
689
+ multi: true
690
+ }
691
+ ]
692
+ }]
693
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
694
+
695
+ class SelectValueAccessor extends ValueAccessor {
696
+ constructor(el) {
697
+ super(el);
698
+ }
699
+ }
700
+ SelectValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
701
+ SelectValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: SelectValueAccessor, selector: "cat-select, cat-select-remote", host: { listeners: { "catChange": "handleChangeEvent($event.target.value)" } }, providers: [
702
+ {
703
+ provide: NG_VALUE_ACCESSOR,
704
+ useExisting: SelectValueAccessor,
705
+ multi: true
706
+ }
707
+ ], usesInheritance: true, ngImport: i0 });
708
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectValueAccessor, decorators: [{
709
+ type: Directive,
710
+ args: [{
711
+ /* tslint:disable-next-line:directive-selector */
712
+ selector: 'cat-select, cat-select-remote',
713
+ host: {
714
+ '(catChange)': 'handleChangeEvent($event.target.value)'
715
+ },
716
+ providers: [
717
+ {
718
+ provide: NG_VALUE_ACCESSOR,
719
+ useExisting: SelectValueAccessor,
720
+ multi: true
721
+ }
722
+ ]
723
+ }]
724
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
725
+
726
+ class RadioValueAccessor extends ValueAccessor {
727
+ constructor(el) {
728
+ super(el);
729
+ }
730
+ }
731
+ RadioValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadioValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
732
+ RadioValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: RadioValueAccessor, selector: "cat-radio, cat-radio-group", host: { listeners: { "catChange": "handleChangeEvent($event.target.value)" } }, providers: [
733
+ {
734
+ provide: NG_VALUE_ACCESSOR,
735
+ useExisting: RadioValueAccessor,
736
+ multi: true
737
+ }
738
+ ], usesInheritance: true, ngImport: i0 });
739
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadioValueAccessor, decorators: [{
740
+ type: Directive,
741
+ args: [{
742
+ /* tslint:disable-next-line:directive-selector */
743
+ selector: 'cat-radio, cat-radio-group',
744
+ host: {
745
+ '(catChange)': 'handleChangeEvent($event.target.value)'
746
+ },
747
+ providers: [
748
+ {
749
+ provide: NG_VALUE_ACCESSOR,
750
+ useExisting: RadioValueAccessor,
751
+ multi: true
752
+ }
753
+ ]
754
+ }]
755
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
756
+
757
+ class BooleanValueAccessor extends ValueAccessor {
758
+ constructor(el) {
759
+ super(el);
760
+ }
761
+ writeValue(value) {
762
+ this.el.nativeElement.checked = this.lastValue = value == null ? false : value;
763
+ }
764
+ }
765
+ BooleanValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BooleanValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
766
+ BooleanValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: BooleanValueAccessor, selector: "cat-checkbox, cat-toggle", host: { listeners: { "catChange": "handleChangeEvent($event.target.value)" } }, providers: [
767
+ {
768
+ provide: NG_VALUE_ACCESSOR,
769
+ useExisting: BooleanValueAccessor,
770
+ multi: true
771
+ }
772
+ ], usesInheritance: true, ngImport: i0 });
773
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BooleanValueAccessor, decorators: [{
774
+ type: Directive,
775
+ args: [{
776
+ /* tslint:disable-next-line:directive-selector */
777
+ selector: 'cat-checkbox, cat-toggle',
778
+ host: {
779
+ '(catChange)': 'handleChangeEvent($event.target.value)'
780
+ },
781
+ providers: [
782
+ {
783
+ provide: NG_VALUE_ACCESSOR,
784
+ useExisting: BooleanValueAccessor,
785
+ multi: true
786
+ }
787
+ ]
788
+ }]
789
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
790
+
791
+ const CatComponents = [
792
+ CatAlert,
793
+ CatAvatar,
794
+ CatBadge,
795
+ CatButton,
796
+ CatCard,
797
+ CatCheckbox,
798
+ CatIcon,
799
+ CatInput,
800
+ CatMenu,
801
+ CatModal,
802
+ CatRadio,
803
+ CatRadioGroup,
804
+ CatScrollable,
805
+ CatSelect,
806
+ CatSkeleton,
807
+ CatSpinner,
808
+ CatTab,
809
+ CatTabs,
810
+ CatTextarea,
811
+ CatToggle,
812
+ CatTooltip
813
+ ];
814
+ const CatDirectives = [
815
+ TextValueAccessor,
816
+ SelectValueAccessor,
817
+ RadioValueAccessor,
818
+ BooleanValueAccessor
819
+ ];
820
+ const CAT_I18N_REGISTRY_TOKEN = new InjectionToken('CAT_I18N_REGISTRY', {
821
+ providedIn: 'root',
822
+ factory: () => CatI18nRegistry.getInstance(),
823
+ });
824
+ const CAT_ICON_REGISTRY_TOKEN = new InjectionToken('CAT_ICON_REGISTRY', {
825
+ providedIn: 'root',
826
+ factory: () => CatIconRegistry.getInstance(),
827
+ });
828
+ class CatalystModule {
829
+ static forRoot() {
830
+ defineCustomElements();
831
+ return {
832
+ ngModule: CatalystModule
833
+ };
834
+ }
835
+ }
836
+ CatalystModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatalystModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
837
+ CatalystModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatalystModule, declarations: [CatAlert, CatAvatar, CatBadge, CatButton, CatCard, CatCheckbox, CatIcon, CatInput, CatMenu, CatModal, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatToggle, CatTooltip, TextValueAccessor,
838
+ SelectValueAccessor,
839
+ RadioValueAccessor,
840
+ BooleanValueAccessor], exports: [CatAlert, CatAvatar, CatBadge, CatButton, CatCard, CatCheckbox, CatIcon, CatInput, CatMenu, CatModal, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatToggle, CatTooltip, TextValueAccessor,
841
+ SelectValueAccessor,
842
+ RadioValueAccessor,
843
+ BooleanValueAccessor] });
844
+ CatalystModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatalystModule, providers: [], imports: [[]] });
845
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatalystModule, decorators: [{
846
+ type: NgModule,
847
+ args: [{
848
+ imports: [],
849
+ declarations: [...CatComponents, ...CatDirectives],
850
+ exports: [...CatComponents, ...CatDirectives],
851
+ providers: []
852
+ }]
853
+ }] });
854
+
855
+ /**
856
+ * Generated bundle index. Do not edit.
857
+ */
858
+
859
+ export { BooleanValueAccessor, CAT_I18N_REGISTRY_TOKEN, CAT_ICON_REGISTRY_TOKEN, CatAlert, CatAvatar, CatBadge, CatButton, CatCard, CatCheckbox, CatIcon, CatInput, CatMenu, CatModal, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSelectDemo, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatToastDemo, CatToggle, CatTooltip, CatalystModule, RadioValueAccessor, SelectValueAccessor, TextValueAccessor, ValueAccessor };
860
+ //# sourceMappingURL=haiilo-catalyst-angular.mjs.map