@haiilo/catalyst-angular 0.15.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/karma.conf.js +44 -0
  3. package/ng-package.json +10 -0
  4. package/package.json +7 -24
  5. package/src/index.ts +1 -0
  6. package/src/lib/catalyst.module.ts +65 -0
  7. package/src/lib/directives/angular-component-lib/utils.ts +63 -0
  8. package/src/lib/directives/boolean-value-accessor.ts +27 -0
  9. package/src/lib/directives/proxies.ts +650 -0
  10. package/src/lib/directives/radio-value-accessor.ts +24 -0
  11. package/src/lib/directives/select-value-accessor.ts +24 -0
  12. package/src/lib/directives/text-value-accessor.ts +24 -0
  13. package/src/lib/directives/value-accessor.ts +39 -0
  14. package/{public-api.d.ts → src/public-api.ts} +0 -0
  15. package/src/test.ts +28 -0
  16. package/tsconfig.lib.json +20 -0
  17. package/tsconfig.lib.prod.json +10 -0
  18. package/tsconfig.spec.json +17 -0
  19. package/esm2020/haiilo-catalyst-angular.mjs +0 -5
  20. package/esm2020/lib/catalyst.module.mjs +0 -75
  21. package/esm2020/lib/directives/angular-component-lib/utils.mjs +0 -53
  22. package/esm2020/lib/directives/boolean-value-accessor.mjs +0 -38
  23. package/esm2020/lib/directives/proxies.mjs +0 -621
  24. package/esm2020/lib/directives/radio-value-accessor.mjs +0 -35
  25. package/esm2020/lib/directives/select-value-accessor.mjs +0 -35
  26. package/esm2020/lib/directives/text-value-accessor.mjs +0 -35
  27. package/esm2020/lib/directives/value-accessor.mjs +0 -40
  28. package/esm2020/public-api.mjs +0 -8
  29. package/fesm2015/haiilo-catalyst-angular.mjs +0 -886
  30. package/fesm2015/haiilo-catalyst-angular.mjs.map +0 -1
  31. package/fesm2020/haiilo-catalyst-angular.mjs +0 -886
  32. package/fesm2020/haiilo-catalyst-angular.mjs.map +0 -1
  33. package/haiilo-catalyst-angular.d.ts +0 -5
  34. package/lib/catalyst.module.d.ts +0 -16
  35. package/lib/directives/angular-component-lib/utils.d.ts +0 -9
  36. package/lib/directives/boolean-value-accessor.d.ts +0 -9
  37. package/lib/directives/proxies.d.ts +0 -359
  38. package/lib/directives/radio-value-accessor.d.ts +0 -8
  39. package/lib/directives/select-value-accessor.d.ts +0 -8
  40. package/lib/directives/text-value-accessor.d.ts +0 -8
  41. package/lib/directives/value-accessor.d.ts +0 -18
@@ -1,886 +0,0 @@
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, ['catChange', 'catSearch', 'catScrolledBottom', '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: { disabled: "disabled", hint: "hint", items: "items", label: "label", labelHidden: "labelHidden", multiple: "multiple", placeholder: "placeholder", position: "position", required: "required", search: "search", 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: ['disabled', 'hint', 'items', 'label', 'labelHidden', 'multiple', 'placeholder', 'position', 'required', 'search', 'value']
396
- })
397
- ], CatSelect);
398
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSelect, decorators: [{
399
- type: Component,
400
- args: [{
401
- selector: 'cat-select',
402
- changeDetection: ChangeDetectionStrategy.OnPush,
403
- template: '<ng-content></ng-content>',
404
- inputs: ['disabled', 'hint', 'items', 'label', 'labelHidden', 'multiple', 'placeholder', 'position', 'required', 'search', 'value']
405
- }]
406
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
407
- let CatSelectRemote = class CatSelectRemote {
408
- constructor(c, r, z) {
409
- this.z = z;
410
- c.detach();
411
- this.el = r.nativeElement;
412
- proxyOutputs(this, this.el, ['catOpen', 'catClose', 'catChange', 'catBlur']);
413
- }
414
- };
415
- CatSelectRemote.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSelectRemote, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
416
- CatSelectRemote.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatSelectRemote, selector: "cat-select-remote", 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 });
417
- CatSelectRemote = __decorate([
418
- ProxyCmp({
419
- defineCustomElementFn: undefined,
420
- inputs: ['clearable', 'debounce', 'disabled', 'hint', 'label', 'labelHidden', 'multiple', 'name', 'placeholder', 'placement', 'required', 'value'],
421
- methods: ['connect']
422
- })
423
- ], CatSelectRemote);
424
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSelectRemote, decorators: [{
425
- type: Component,
426
- args: [{
427
- selector: 'cat-select-remote',
428
- changeDetection: ChangeDetectionStrategy.OnPush,
429
- template: '<ng-content></ng-content>',
430
- inputs: ['clearable', 'debounce', 'disabled', 'hint', 'label', 'labelHidden', 'multiple', 'name', 'placeholder', 'placement', 'required', 'value']
431
- }]
432
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
433
- let CatSelectRemoteTest = class CatSelectRemoteTest {
434
- constructor(c, r, z) {
435
- this.z = z;
436
- c.detach();
437
- this.el = r.nativeElement;
438
- }
439
- };
440
- CatSelectRemoteTest.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSelectRemoteTest, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
441
- CatSelectRemoteTest.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CatSelectRemoteTest, selector: "cat-select-remote-test", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
442
- CatSelectRemoteTest = __decorate([
443
- ProxyCmp({
444
- defineCustomElementFn: undefined
445
- })
446
- ], CatSelectRemoteTest);
447
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSelectRemoteTest, decorators: [{
448
- type: Component,
449
- args: [{
450
- selector: 'cat-select-remote-test',
451
- changeDetection: ChangeDetectionStrategy.OnPush,
452
- template: '<ng-content></ng-content>'
453
- }]
454
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
455
- let CatSkeleton = class CatSkeleton {
456
- constructor(c, r, z) {
457
- this.z = z;
458
- c.detach();
459
- this.el = r.nativeElement;
460
- }
461
- };
462
- 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 });
463
- 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 });
464
- CatSkeleton = __decorate([
465
- ProxyCmp({
466
- defineCustomElementFn: undefined,
467
- inputs: ['effect', 'lines', 'size', 'variant']
468
- })
469
- ], CatSkeleton);
470
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSkeleton, decorators: [{
471
- type: Component,
472
- args: [{
473
- selector: 'cat-skeleton',
474
- changeDetection: ChangeDetectionStrategy.OnPush,
475
- template: '<ng-content></ng-content>',
476
- inputs: ['effect', 'lines', 'size', 'variant']
477
- }]
478
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
479
- let CatSpinner = class CatSpinner {
480
- constructor(c, r, z) {
481
- this.z = z;
482
- c.detach();
483
- this.el = r.nativeElement;
484
- }
485
- };
486
- 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 });
487
- 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 });
488
- CatSpinner = __decorate([
489
- ProxyCmp({
490
- defineCustomElementFn: undefined,
491
- inputs: ['a11yLabel', 'size']
492
- })
493
- ], CatSpinner);
494
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatSpinner, decorators: [{
495
- type: Component,
496
- args: [{
497
- selector: 'cat-spinner',
498
- changeDetection: ChangeDetectionStrategy.OnPush,
499
- template: '<ng-content></ng-content>',
500
- inputs: ['a11yLabel', 'size']
501
- }]
502
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
503
- let CatTab = class CatTab {
504
- constructor(c, r, z) {
505
- this.z = z;
506
- c.detach();
507
- this.el = r.nativeElement;
508
- proxyOutputs(this, this.el, ['tabClick']);
509
- }
510
- };
511
- 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 });
512
- 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 });
513
- CatTab = __decorate([
514
- ProxyCmp({
515
- defineCustomElementFn: undefined,
516
- inputs: ['deactivated', 'icon', 'iconOnly', 'iconRight', 'label', 'url', 'urlTarget']
517
- })
518
- ], CatTab);
519
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTab, decorators: [{
520
- type: Component,
521
- args: [{
522
- selector: 'cat-tab',
523
- changeDetection: ChangeDetectionStrategy.OnPush,
524
- template: '<ng-content></ng-content>',
525
- inputs: ['deactivated', 'icon', 'iconOnly', 'iconRight', 'label', 'url', 'urlTarget']
526
- }]
527
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
528
- let CatTabs = class CatTabs {
529
- constructor(c, r, z) {
530
- this.z = z;
531
- c.detach();
532
- this.el = r.nativeElement;
533
- }
534
- };
535
- 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 });
536
- 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 });
537
- CatTabs = __decorate([
538
- ProxyCmp({
539
- defineCustomElementFn: undefined,
540
- inputs: ['activeTab', 'tabsAlign']
541
- })
542
- ], CatTabs);
543
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTabs, decorators: [{
544
- type: Component,
545
- args: [{
546
- selector: 'cat-tabs',
547
- changeDetection: ChangeDetectionStrategy.OnPush,
548
- template: '<ng-content></ng-content>',
549
- inputs: ['activeTab', 'tabsAlign']
550
- }]
551
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
552
- let CatTextarea = class CatTextarea {
553
- constructor(c, r, z) {
554
- this.z = z;
555
- c.detach();
556
- this.el = r.nativeElement;
557
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
558
- }
559
- };
560
- 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 });
561
- 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 });
562
- CatTextarea = __decorate([
563
- ProxyCmp({
564
- defineCustomElementFn: undefined,
565
- inputs: ['disabled', 'hint', 'label', 'labelHidden', 'maxLength', 'minLength', 'name', 'placeholder', 'readonly', 'required', 'rows', 'value'],
566
- methods: ['setFocus']
567
- })
568
- ], CatTextarea);
569
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTextarea, decorators: [{
570
- type: Component,
571
- args: [{
572
- selector: 'cat-textarea',
573
- changeDetection: ChangeDetectionStrategy.OnPush,
574
- template: '<ng-content></ng-content>',
575
- inputs: ['disabled', 'hint', 'label', 'labelHidden', 'maxLength', 'minLength', 'name', 'placeholder', 'readonly', 'required', 'rows', 'value']
576
- }]
577
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
578
- let CatToastDemo = class CatToastDemo {
579
- constructor(c, r, z) {
580
- this.z = z;
581
- c.detach();
582
- this.el = r.nativeElement;
583
- }
584
- };
585
- 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 });
586
- 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 });
587
- CatToastDemo = __decorate([
588
- ProxyCmp({
589
- defineCustomElementFn: undefined
590
- })
591
- ], CatToastDemo);
592
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatToastDemo, decorators: [{
593
- type: Component,
594
- args: [{
595
- selector: 'cat-toast-demo',
596
- changeDetection: ChangeDetectionStrategy.OnPush,
597
- template: '<ng-content></ng-content>'
598
- }]
599
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
600
- let CatToggle = class CatToggle {
601
- constructor(c, r, z) {
602
- this.z = z;
603
- c.detach();
604
- this.el = r.nativeElement;
605
- proxyOutputs(this, this.el, ['catChange', 'catFocus', 'catBlur']);
606
- }
607
- };
608
- 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 });
609
- 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 });
610
- CatToggle = __decorate([
611
- ProxyCmp({
612
- defineCustomElementFn: undefined,
613
- inputs: ['checked', 'disabled', 'hint', 'label', 'labelHidden', 'labelLeft', 'name', 'required', 'value'],
614
- methods: ['setFocus']
615
- })
616
- ], CatToggle);
617
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatToggle, decorators: [{
618
- type: Component,
619
- args: [{
620
- selector: 'cat-toggle',
621
- changeDetection: ChangeDetectionStrategy.OnPush,
622
- template: '<ng-content></ng-content>',
623
- inputs: ['checked', 'disabled', 'hint', 'label', 'labelHidden', 'labelLeft', 'name', 'required', 'value']
624
- }]
625
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
626
- let CatTooltip = class CatTooltip {
627
- constructor(c, r, z) {
628
- this.z = z;
629
- c.detach();
630
- this.el = r.nativeElement;
631
- }
632
- };
633
- 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 });
634
- 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 });
635
- CatTooltip = __decorate([
636
- ProxyCmp({
637
- defineCustomElementFn: undefined,
638
- inputs: ['content', 'disabled', 'hideDelay', 'longTouchDuration', 'placement', 'showDelay']
639
- })
640
- ], CatTooltip);
641
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatTooltip, decorators: [{
642
- type: Component,
643
- args: [{
644
- selector: 'cat-tooltip',
645
- changeDetection: ChangeDetectionStrategy.OnPush,
646
- template: '<ng-content></ng-content>',
647
- inputs: ['content', 'disabled', 'hideDelay', 'longTouchDuration', 'placement', 'showDelay']
648
- }]
649
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
650
-
651
- class ValueAccessor {
652
- constructor(el) {
653
- this.el = el;
654
- this.onChange = () => { };
655
- this.onTouched = () => { };
656
- }
657
- writeValue(value) {
658
- this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
659
- }
660
- handleChangeEvent(value) {
661
- if (value !== this.lastValue) {
662
- this.lastValue = value;
663
- this.onChange(value);
664
- }
665
- }
666
- _handleBlurEvent() {
667
- this.onTouched();
668
- }
669
- registerOnChange(fn) {
670
- this.onChange = fn;
671
- }
672
- registerOnTouched(fn) {
673
- this.onTouched = fn;
674
- }
675
- setDisabledState(isDisabled) {
676
- this.el.nativeElement.disabled = isDisabled;
677
- }
678
- }
679
- ValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
680
- ValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
681
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ValueAccessor, decorators: [{
682
- type: Directive,
683
- args: [{}]
684
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
685
- type: HostListener,
686
- args: ['focusout']
687
- }] } });
688
-
689
- class TextValueAccessor extends ValueAccessor {
690
- constructor(el) {
691
- super(el);
692
- }
693
- }
694
- TextValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
695
- 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: [
696
- {
697
- provide: NG_VALUE_ACCESSOR,
698
- useExisting: TextValueAccessor,
699
- multi: true
700
- }
701
- ], usesInheritance: true, ngImport: i0 });
702
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextValueAccessor, decorators: [{
703
- type: Directive,
704
- args: [{
705
- /* tslint:disable-next-line:directive-selector */
706
- selector: 'cat-input, cat-textarea',
707
- host: {
708
- '(catChange)': 'handleChangeEvent($event.target.value)'
709
- },
710
- providers: [
711
- {
712
- provide: NG_VALUE_ACCESSOR,
713
- useExisting: TextValueAccessor,
714
- multi: true
715
- }
716
- ]
717
- }]
718
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
719
-
720
- class SelectValueAccessor extends ValueAccessor {
721
- constructor(el) {
722
- super(el);
723
- }
724
- }
725
- SelectValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
726
- 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: [
727
- {
728
- provide: NG_VALUE_ACCESSOR,
729
- useExisting: SelectValueAccessor,
730
- multi: true
731
- }
732
- ], usesInheritance: true, ngImport: i0 });
733
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectValueAccessor, decorators: [{
734
- type: Directive,
735
- args: [{
736
- /* tslint:disable-next-line:directive-selector */
737
- selector: 'cat-select, cat-select-remote',
738
- host: {
739
- '(catChange)': 'handleChangeEvent($event.target.value)'
740
- },
741
- providers: [
742
- {
743
- provide: NG_VALUE_ACCESSOR,
744
- useExisting: SelectValueAccessor,
745
- multi: true
746
- }
747
- ]
748
- }]
749
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
750
-
751
- class RadioValueAccessor extends ValueAccessor {
752
- constructor(el) {
753
- super(el);
754
- }
755
- }
756
- RadioValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadioValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
757
- 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: [
758
- {
759
- provide: NG_VALUE_ACCESSOR,
760
- useExisting: RadioValueAccessor,
761
- multi: true
762
- }
763
- ], usesInheritance: true, ngImport: i0 });
764
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RadioValueAccessor, decorators: [{
765
- type: Directive,
766
- args: [{
767
- /* tslint:disable-next-line:directive-selector */
768
- selector: 'cat-radio, cat-radio-group',
769
- host: {
770
- '(catChange)': 'handleChangeEvent($event.target.value)'
771
- },
772
- providers: [
773
- {
774
- provide: NG_VALUE_ACCESSOR,
775
- useExisting: RadioValueAccessor,
776
- multi: true
777
- }
778
- ]
779
- }]
780
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
781
-
782
- class BooleanValueAccessor extends ValueAccessor {
783
- constructor(el) {
784
- super(el);
785
- }
786
- writeValue(value) {
787
- this.el.nativeElement.checked = this.lastValue = value == null ? false : value;
788
- }
789
- }
790
- BooleanValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BooleanValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
791
- 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: [
792
- {
793
- provide: NG_VALUE_ACCESSOR,
794
- useExisting: BooleanValueAccessor,
795
- multi: true
796
- }
797
- ], usesInheritance: true, ngImport: i0 });
798
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BooleanValueAccessor, decorators: [{
799
- type: Directive,
800
- args: [{
801
- /* tslint:disable-next-line:directive-selector */
802
- selector: 'cat-checkbox, cat-toggle',
803
- host: {
804
- '(catChange)': 'handleChangeEvent($event.target.value)'
805
- },
806
- providers: [
807
- {
808
- provide: NG_VALUE_ACCESSOR,
809
- useExisting: BooleanValueAccessor,
810
- multi: true
811
- }
812
- ]
813
- }]
814
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
815
-
816
- const CatComponents = [
817
- CatAlert,
818
- CatAvatar,
819
- CatBadge,
820
- CatButton,
821
- CatCard,
822
- CatCheckbox,
823
- CatIcon,
824
- CatInput,
825
- CatMenu,
826
- CatModal,
827
- CatRadio,
828
- CatRadioGroup,
829
- CatScrollable,
830
- CatSelect,
831
- CatSelectRemote,
832
- CatSkeleton,
833
- CatSpinner,
834
- CatTab,
835
- CatTabs,
836
- CatTextarea,
837
- CatToggle,
838
- CatTooltip
839
- ];
840
- const CatDirectives = [
841
- TextValueAccessor,
842
- SelectValueAccessor,
843
- RadioValueAccessor,
844
- BooleanValueAccessor
845
- ];
846
- const CAT_I18N_REGISTRY_TOKEN = new InjectionToken('CAT_I18N_REGISTRY', {
847
- providedIn: 'root',
848
- factory: () => CatI18nRegistry.getInstance(),
849
- });
850
- const CAT_ICON_REGISTRY_TOKEN = new InjectionToken('CAT_ICON_REGISTRY', {
851
- providedIn: 'root',
852
- factory: () => CatIconRegistry.getInstance(),
853
- });
854
- class CatalystModule {
855
- static forRoot() {
856
- defineCustomElements();
857
- return {
858
- ngModule: CatalystModule
859
- };
860
- }
861
- }
862
- CatalystModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatalystModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
863
- 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, CatSelectRemote, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatToggle, CatTooltip, TextValueAccessor,
864
- SelectValueAccessor,
865
- RadioValueAccessor,
866
- BooleanValueAccessor], exports: [CatAlert, CatAvatar, CatBadge, CatButton, CatCard, CatCheckbox, CatIcon, CatInput, CatMenu, CatModal, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSelectRemote, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatToggle, CatTooltip, TextValueAccessor,
867
- SelectValueAccessor,
868
- RadioValueAccessor,
869
- BooleanValueAccessor] });
870
- CatalystModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatalystModule, providers: [], imports: [[]] });
871
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CatalystModule, decorators: [{
872
- type: NgModule,
873
- args: [{
874
- imports: [],
875
- declarations: [...CatComponents, ...CatDirectives],
876
- exports: [...CatComponents, ...CatDirectives],
877
- providers: []
878
- }]
879
- }] });
880
-
881
- /**
882
- * Generated bundle index. Do not edit.
883
- */
884
-
885
- export { BooleanValueAccessor, CAT_I18N_REGISTRY_TOKEN, CAT_ICON_REGISTRY_TOKEN, CatAlert, CatAvatar, CatBadge, CatButton, CatCard, CatCheckbox, CatIcon, CatInput, CatMenu, CatModal, CatRadio, CatRadioGroup, CatScrollable, CatSelect, CatSelectRemote, CatSelectRemoteTest, CatSkeleton, CatSpinner, CatTab, CatTabs, CatTextarea, CatToastDemo, CatToggle, CatTooltip, CatalystModule, RadioValueAccessor, SelectValueAccessor, TextValueAccessor, ValueAccessor };
886
- //# sourceMappingURL=haiilo-catalyst-angular.mjs.map